10-13
SERIAL I/O PORT
You may configure timer 2 as a timer or a counter. In most applications, it is configured for timer
operation (i.e., the C/T2# bit is clear in the T2CON register).
Figure 10-5. Timer 2 in Baud Rate Generator Mode
Table 10-5. Selecting the Baud Rate Generator(s)
RCLCK
Bit
TCLCK
Bit
Receiver
Baud Rate Generator
Transmitter
Baud Rate Generator
0 0 Timer 1 Timer 1
0 1 Timer 1 Timer 2
1 0 Timer 2 Timer 1
1 1 Timer 2 Timer 2
T2EX
2
T2
Timer 1
Overflow
TR2
TH2
(8 Bits)
TL2
(8 Bits)
EXEN2
EXF2
A4120-01
XTAL1
RCAP2H RCAP2L
C/T2#
0
1
Interrupt
Request
0
1
SMOD1
1
0
RCLCK
16
1
0
TCLCK
RX
Clock
TX
Clock
Note:
Oscillator frequency
is divided by 2, not 12.
2
16
Note availability of additional external interrupt.