Rev. B - 28 April 2000 3
ANM078
4. SFR memory map
Most TS80C51U2 Special Function Registers and DS80C320/DS80C323 Special Function Registers are identical
(address, content and reset value). However some differences exist. The purpose of this chapter is to highlight the
DS80C320/DS80C323 registers that are not identically present in the TS80C51U2. When the same feature is
implemented in the DS80C320/DS80C323 and in the TS80C51U2 but use different SFRs to control it, a detailed
description of the Software changes to replace DS80C320/DS80C323 by TS80C51U2 is given in specific notes below.
The following table lists the DS80C320/DS80C323 Special Function Registers, and gives the equivalent registers
for the TS80C51U2.
Table 3. DS80C320/DS80C323 SFRs
REGISTER BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT2 BIT 1 BIT 0 ADDR COMMENT FOR TS80C51U2
SP 81h Same on TS80C51U2
DPL 82h Same on TS80C51U2
DPH 83h Same on TS80C51U2
DPL1 84h TS80C51U2 DPL1 and DPL use address
82h (note1) No register at address 84h
DPH1 85h TS80C51U2 DPH1 and DPH use address
83h (note1) No register at address 85h
DPS 0000000SEL86h
SEL bit replaced by DPS bit in AUXR1
No register at adr. 86h in TS80C51U2
PCON SMOD
SMOD1
_0
SMOD
0
SMOD
0_0
-
--
POF GF1
GF1 GF0
GF0 STOP
STOP IDLE
IDLE 87h DS80C320/DS80C323 :SMOD (note 4)
TS80C51U2 (note 4)
TCON TF1 TR1 TF0 TR0 IE1 IT1 IE0 IT0 88h Same on TS80C51U2
TMOD GATE C/Tb M1 M0 GATE C/Tb M1 M0 89h Same on TS80C51U2
TL0 8Ah Same on TS80C51U2
TL1 8Bh Same on TS80C51U2
TH0 8Ch Same on TS80C51U2
TH1 8Dh Same on TS80C51U2
CKCON
Dallas
AUXR
ATMEL
WD1 WD0 T2M T1M T0M MD2 MD1 MD0 8Eh
WD1,0 watchdog timeout . see
WDTPRG bit S2,1,0 in TS80C51U2 see
note 2
T2M, T1M, T0M (timer clock) see note 3
MD2, MD1, MD0 (Stretch MOVX) No
stretch feature in TS80C51U2
See TS80C51U2 AUXR on table 4
P1 P1.7 P1.6 P1.5 P1.4 P1.3 P1.2 P1.1 P1.0 90h Same on TS80C51U2
EXIF IE5 IE4 IE3 IE2 - RGMD RGSL BGS 91h
IE5,4,3,2 Extended External Interrupts
Not present in the TS80C51U2
RGMD CPU clock select (XTAL /
RING) No Ring oscillator in
TS80C51U2 always run from XTAL
RGSL : Start with Ring (see above)
BGS : Band Gap Control , No Bandgap
and no Brown-out in TS80C51U2
TS80C51U2 has no SFR at address 91h
SCON0 SM0/
FE0 SM1_0 SM2_0 REN_0 TB8_0 RB8_0 TI_0 RI_0 98h Same on TS80C51U2
SBUF0 99h Same on TS80C51U2
P2 P2.7 P2.6 P2.5 P2.4 P2.3 P2.2 P2.1 P2.0 A0h Same on TS80C51U2
IE EA ES1 ET2 ES0 ET1 EX1 ET0 EX0 A8h Same on TS80C51U2
SADDR0
SADDR1 A9h Same on TS80C51U2
SADDR1 AAh Same on TS80C51U2
P3 P3.7 P3.6 P3.5 P3.4 P3.3 P3.2 P3.1 P3.0 B0h Same on TS80C51U2