beautypg.com

sfr mapping, Sfr mapping – Rainbow Electronics T89C51RD2 User Manual

Page 3

background image

Rev. F - 15 February, 2001

3

T89C51RD2

4. SFR Mapping

The Special Function Registers (SFRs) of the T89C51RD2 fall into the following categories:

C51 core registers: ACC, B, DPH, DPL, PSW, SP, AUXR1

I/O port registers: P0, P1, P2, P3, P4, P5

Timer registers: T2CON, T2MOD, TCON, TH0, TH1, TH2, TMOD, TL0, TL1, TL2, RCAP2L, RCAP2H

Serial I/O port registers: SADDR, SADEN, SBUF, SCON

Power and clock control registers: PCON

Hardware Watchdog Timer register: WDTRST, WDTPRG

Interrupt system registers: IE, IP, IPH

Flash and EEPROM registers: FCON, EECON, EETIM

Others: AUXR, AUXR1, CKCON

Table below shows all SFRs with their address and their reset value.

Bit

address-

able

Non Bit addressable

0/8

1/9

2/A

3/B

4/C

5/D

6/E

7/F

F8h

CH

0000 0000

CCAP0H

XXXX XXXX

CCAP1H

XXXX XXXX

CCAPL2H

XXXX XXXX

CCAPL3H

XXXX XXXX

CCAPL4H

XXXX XXXX

FFh

F0h

B

0000 0000

F7h

E8h

P5

1111 1111

CL

0000 0000

CCAP0L

XXXX XXXX

CCAP1L

XXXX XXXX

CCAPL2L

XXXX XXXX

CCAPL3L

XXXX XXXX

CCAPL4L

XXXX XXXX

EFh

E0h

ACC

0000 0000

E7h

D8h

CCON

00X0 0000

CMOD

00XX X000

CCAPM0

X000 0000

CCAPM1

X000 0000

CCAPM2

X000 0000

CCAPM3

X000 0000

CCAPM4

X000 0000

DFh

D0h

PSW

0000 0000

FCON

XXXX 0000

EECON

XXXX XX00

EETIM

0000 0000

D7h

C8h

T2CON

0000 0000

T2MOD

XXXX XX00

RCAP2L

0000 0000

RCAP2H

0000 0000

TL2

0000 0000

TH2

0000 0000

CFh

C0h

P4

1111 1111

P5

1111 1111

C7h

B8h

IP

X000 000

SADEN

0000 0000

BFh

B0h

P3

1111 1111

IPH

X000 0000

B7h

A8h

IE

0000 0000

SADDR

0000 0000

AFh

A0h

P2

1111 1111

AUXR1

XXXX 00X0

WDTRST

XXXX XXXX

WDTPRG

XXXX X000

A7h

98h

SCON

0000 0000

SBUF

XXXX XXXX

9Fh

90h

P1

1111 1111

97h

88h

TCON

0000 0000

TMOD

0000 0000

TL0

0000 0000

TL1

0000 0000

TH0

0000 0000

TH1

0000 0000

AUXR

XX0X 1000

CKCON

X000 0000

8Fh

80h

P0

1111 1111

SP

0000 0111

DPL

0000 0000

DPH

0000 0000

PCON

00X1 0000

87h

0/8

1/9

2/A

3/B

4/C

5/D

6/E

7/F