intele
8XC51FXHARDWAREDESCRIPTION
Osc
—
-12
IJ
,X.N2CE” ‘
‘COJTROL
‘“=” “V’’’’owi ‘x h
INTERRUPT
TRx
RELOAD
GATE
I
(elk)
~ PIN
x= owl
27065S-7
Figure 10. Timer/Counter 1 Mode 2 8-Bit Auto-Reload
E1-El--’’12f0sc
lllzfo’~
~b
*
TLo
- INTERRUPT
.p,.~cf~’l I ~
(8Bib)
CONTFIOL
OVERFLOW
TRO
GATE
~ PIN
1/12 f“=
l~i
:
INTERRUPT
*
CONTFIOL
TR1
OVERFLOW
270S5S-8
Figure 11. ~mer/Counter 0 Mode 3: Two S-BitCountere
5.2 Timer 2
Timer 2 is a 16-bitTimer/Counter which can operate
eitheras a timer or as an event counter.This is selected
by bit Cm in the Speoial Function Register T2CON
cable 8). It has three operatingmodes: capture, auto-
relosd (up or down counting), and b+mdrategenerator.
The modes are selected by bits in T2CON as shown in
Table 7.
Tablei
RCLK+ TCLK
o
0
1
x
x
Timer 2 Operating Modes
cP/m T2”OE TR2
Mode
o
0
1
I&Bit
1
x
o
x
o
x
1
x
1
1
1
0
Auto-Reload
16-Bit
Capture
Baud-Rate
Generator
Clock-Out
‘onPI.0
TimerOff