Rainbow Electronics AT89C5122 User Manual

Page 37

Advertising
background image

37

AT8xC5122/23

4202E–SCR–06/06

Table 13. Timers SFRs

Mnemonic

Add

Name

7

6

5

4

3

2

1

0

TH0

8Ch Timer/Counter 0 High byte

TH0

TL0

8Ah Timer/Counter 0 Low byte

TL0

TH1

8Dh Timer/Counter 1 High byte

TH1

TL1

8Bh Timer/Counter 1 Low byte

TL1

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

Table 14. Watchdog SFRs

Mnemonic

Add

Name

7

6

5

4

3

2

1

0

WDTRST

A6h Watchdog Timer Reset

WDTRST

WDTPRG

A7h Watchdog Timer Program

S2-0

Table 15. Serial I/O Ports SFRs

Mnemonic

Add

Name

7

6

5

4

3

2

1

0

SCON

98h

Serial Control

FE/SM0

SM1

SM2

REN

TB8

RB8

TI

RI

SBUF

99h

Serial Data Buffer

SBUF

SADEN

B9h Slave Address Mask

SADEN

SADDR

A9h Slave Address

SADDR

Table 16. Baud Rate Generator SFRs

Mnemonic

Add

Name

7

6

5

4

3

2

1

0

BRL

9Ah Baud Rate Reload

BRL

BDRCON

9Bh Baud Rate Control

BRR

TBCK

RBCK

SPD

M0SRC

Table 17. Interrupt SFRs

Mnemonic

Add

Name

7

6

5

4

3

2

1

0

IEN0

A8h Interrupt Enable Control 0

EA

ES

ET1

EX1

ET0

EX0

IEN1

B1h Interrupt Enable Control 1

EUSB

ESCI

ESPI

(1)

EKB

(1)

IPL0

B8h

Interrupt Priority Control
Low 0

PSL

PT1L

PX1L

PT0L

PX0L

Advertising