beautypg.com

Rainbow Electronics T89C51AC2 User Manual

Page 61

background image

61

T89C51AC2

Rev. B – 19-Dec-01

It is possible to use timer 2 as a baud rate generator and a clock generator simulta-
neously. For this configuration, the baud rates and clock frequencies are not
independent since both functions use the values in the RCAP2H and RCAP2L registers.

Figure 28. Clock-Out Mode

:2

EXEN2

EXF2

OVERFLOW

T2EX

TH2

(8-bit)

TL2

(8-bit)

TIMER 2

RCAP2H

(8-bit)

RCAP2L

(8-bit)

T2OE

T2

T2CON reg

T2CON reg

T2MOD reg

1

0

C/T2

T2CON reg

INTERRUPT

0

1

CT/2

T2CON.1

TR2

T2CON.2

FT2

CLOCK