home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
vol_200
/
242_01
/
80751bit.lib
< prev
next >
Wrap
Text File
|
1989-01-13
|
2KB
|
75 lines
;
; This file defines names for the additional Special Function Registers
; (SFRs) of the Signetics 80C751 and their component bits where applicable.
;
; First, the additional SFRs:
;
TL EQU 08AH
RTL EQU 08BH
TH EQU 08CH
RTH EQU 08DH
I2CON EQU 098H
I2DAT EQU 099H
I2CFG EQU 0D8H
I2STA EQU 0F8H
;
; Note that the following 8051 SFR's do not exist in the 80C751:
;
; IP P2 SCON SBUF TH0 TH1 TL0 TL1 TMOD
;
;
; Now, the bits. We benefit from my very loose definition of "alphabetic"
; here!
;
GATE BIT TCON.7 ;TCON register bits -- Note that the 80C751's
C\T BIT TCON.6 ; TCON register is considerably different
TF BIT TCON.5 ; than the 8051's TCON register.
TR BIT TCON.4
I0E BIT TCON.3
I0T BIT TCON.2
I1E BIT TCON.1
I1T BIT TCON.0
RDAT BIT I2CON.7 ;Read bits of the I2CON register.
ATN BIT I2CON.6
DRDY BIT I2CON.5
ARL BIT I2CON.4
STR BIT I2CON.3
STP BIT I2CON.2
MASTER BIT I2CON.1
CXA BIT I2CON.7 ;Write bits of the I2CON register.
IDLE_W BIT I2CON.6
CDR BIT I2CON.5
CARL BIT I2CON.4
CSTR BIT I2CON.3
CSTP BIT I2CON.2
XSTR_W BIT I2CON.1
XSTP_W BIT I2CON.0
SLAVEN BIT I2CFG.7 ;Bits of the I2CFG register.
MASTRQ BIT I2CFG.6
CLRTI BIT I2CFG.5
TIRUN BIT I2CFG.4
CT1 BIT I2CFG.1
CT0 BIT I2CFG.0
IDLE_R BIT I2STA.6 ;Bits of the I2STA register.
XDATA BIT I2STA.5
XACTV BIT I2STA.4
MAKSTR BIT I2STA.3
MAKSTP BIT I2STA.2
XSTR_R BIT I2STA.1
XSTP_R BIT I2STA.0
;
; Note that the following 8051 SFR bits do not exist on the 80C751:
;
; IE0 IE1 IT0 IT1 PS PT0 PT1
; PX0 PX1 RB8 REN RI SM0 SM1
; SM2 TB8 TF0 TF1 TI TR0 TR1
;