Datasheet

22
4337K–USB–04/08
AT89C5130A/31A-M
The Special Function Registers (SFRs) of the AT89C5131 fall into the following categories:
Table 6-2. C51 Core SFRs
Table 6-3. I/O Port SFRs
Mnemonic Add Name 7 6 5 4 3 2 1 0
ACC E0h Accumulator
B F0h B Register
PSW D0h
Program Status
Word
SP 81h
Stack Pointer
LSB of SPX
DPL 82h
Data Pointer
Low byte
LSB of DPTR
DPH 83h
Data Pointer
High byte
MSB of DPTR
Mnemonic Add Name 7 6 5 4 3 2 1 0
P0 80h Port 0
P1 90h Port 1
P2 A0h Port 2
P3 B0h Port 3
P4 C0h Port 4 (2bits)
Table 6-4. Timer SFR’s
Mnemonic Add Name 7 6 5 4 3 2 1 0
TH0 8Ch Timer/Counter 0 High byte
TL0 8Ah Timer/Counter 0 Low byte
TH1 8Dh Timer/Counter 1 High byte
TL1 8Bh Timer/Counter 1 Low byte
TH2 CDh Timer/Counter 2 High byte
TL2 CCh Timer/Counter 2 Low byte
TCON 88h
Timer/Counter 0 and 1
control
TF1 TR1 TF0 TR0 IE1 IT1 IE0 IT0
TMOD 89h
Timer/Counter 0 and 1
Modes
GATE1 C/T1# M11 M01 GATE0 C/T0# M10 M00
T2CON C8h Timer/Counter 2 control TF2 EXF2 RCLK TCLK EXEN2 TR2 C/T2# CP/RL2#
T2MOD C9h Timer/Counter 2 Mode T2OE DCEN