beautypg.com

Rainbow Electronics AT89C5131 User Manual

Page 66

background image

66

AT89C5131

4136A–USB–03/03

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 27. Clock-out Mode C/T2 = 0

: 6

EXF2

TR2

OVERFLOW

T2EX

TH2

(8-bit)

TL2

(8-bit)

Timer 2

RCAP2H

(8-bit)

RCAP2L

(8-bit)

T2OE

T2

F

CLK PERIPH

T2CON

T2CON

T2CON

T2MOD

INTERRUPT

Q

D

Toggle

EXEN2