Rainbow Electronics T89C51CC01 User Manual

Page 63

Advertising
background image

63

T89C51CC01

Rev. D – 17-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

Advertising