beautypg.com

Rainbow Electronics AT89C5131 User Manual

Page 15

background image

15

AT89C5131

4136A–USB–03/03

Table 15. 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

RCAP2H

CBh

Timer/Counter 2
Reload/Capture High byte

RCAP2L

CAh

Timer/Counter 2
Reload/Capture Low byte

WDTRST

A6h

WatchDog Timer Reset

WDTPRG

A7h

WatchDog Timer Program

S2

S1

S0

Table 16. Serial I/O Port SFR’s

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

SADEN

B9h

Slave Address Mask

SADDR

A9h

Slave Address

Table 17. Baud Rate Generator SFR’s

Mnemonic

Add

Name

7

6

5

4

3

2

1

0

BRL

9Ah

Baud Rate Reload

BDRCON

9Bh

Baud Rate Control

BRR

TBCK

RBCK

SPD

SRC