Datasheet

DS80C320/DS80C323 High-Speed/Low-Power Microcontrollers
20 of 38
SPECIAL-FUNCTION REGISTERS
Most special features of the DS80C320/DS80C323 or 80C32 are controlled by bits in the SFRs, allowing
the devices to add many features but use the same instruction set. When writing software to use a new
feature, the SFR must be defined to an assembler or compiler using an equate statement. This is the only
change needed to access the new function. The DS80C320/DS80C323 duplicate the SFRs that are
contained in the standard 80C32. Table 5 shows the register addresses and bit locations. Many are
standard 80C32 registers. The High-Speed Microcontroller User’s Guide describes all SFRs.
Table 5. Special-Function Register Locations
REGISTER BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0 ADDRESS
SP 81h
DPL 82h
DPH 83h
DPL1
84h
DPH1
85h
DPS 0 0 0 0 0 0 0 SEL
86h
PCON SMOD_0
SMOD0 —
GF1 GF0 STOP IDLE 87h
TCON TF1 TR1 TF0 TR0 IE1 IT1 IE0 IT0 88h
TMOD GATE
C/
T
M1 M0 GATE
C/ T
M1 M0 89h
TL0 8Ah
TL1 8Bh
TH0 8Ch
TH1 8Dh
CKCON WD1 WD0 T2M T1M T0M MD2 MD1 MD0
8Eh
P1 P1.7 P1.6 P1.5 P1.4 P1.3 P1.2 P1.1 P1.0 90h
EXIF IE5 IE4 IE3 IE2 RGMD RGSL BGS
91h
SCON0 SM0/FE_0 SM1_0 SM2_0 REN_0 TB8_0 RB8_0 TI_0 RI_0 98h
SBUF0 99h
P2 P2.0 P2.6 P2.5 P2.4 P2.3 P2.2 P2.1 P2.0 A0h
IE EA ES1 ET2 ES0 ET1 EX1 ET0 EX0 A8h
SADDR0 A9h
SADDR1 AAh
P3 P3.7 P3.6 P3.5 P3.4 P3.3 P3.2 P3.1 P3.0 B0h
IP
PS1 PT2 PS0 PT1 PX1 PT0 PX0 B8h
SADEN0 B9h
SADEN1 BAh
SCON1 SM0/FE_0 SM1_0 SM2_0 REN_0 TB8_0 RB8_0 TI_0 RI_0
C0h
SBUF1
C1h
STATUS PIP HIP LIP 1 1 1 1 1 C5h
TA
C7h
T2CON TF2 EXF2 RCLK TCLK EXEN2 TR2
C/
T2 CP/ RL2
C8h
T2MOD
T2OE DCEN C9h
RCAP2L CAh
RCAP2H CBh
TL2 CCh
TH2 CDh
PSW CY AC F0 RS1 RS0 OV FL P D0h
WDCON SMOD_1 POR EPFI PFI WDIF WTRF EWT RWT
D8h
ACC E0h
EIE — EWDI EX5 EX4 EX3 EX2
E8h
B F0h
EIP — PWDI PX5 PX4 PX3 PX2
F8h