English
Language : 

TS80C54_14 Datasheet, PDF (16/62 Pages) ATMEL Corporation – Programmable Clock Out and Up/Down Timer/Counter 2
• Enter a 16-bit initial value in timer registers TH2/TL2. It can be the same as the reload value
or a different one depending on the application.
• To start the timer, set TR2 run control bit in T2CON register.
It is possible to use timer 2 as a baud rate generator and a clock generator simultaneously. For
this configuration, the baud rates and clock frequencies are not independent since both func-
tions use the values in the RCAP2H and RCAP2L registers.
Figure 8-2.
Clock-Out Mode C/T2 = 0
XTAL1
:2
(:1 in X2 mode)
TR2
T2CON reg
TL2
TH2
(8-bit) (8-bit)
OVERFLOW
T2
T2EX
Toggle
QD
EXEN2
T2CON reg
RCAP2L RCAP2H
(8-bit) (8-bit)
T2OE
T2MOD reg
EXF2
T2CON reg
TIMER 2
INTERRUPT
16 AT/TS8xC54/8X2
4431E–8051–04/06