Datasheet
2010-2012 Microchip Technology Inc. DS41413C-page 191
PIC12(L)F1822/PIC16(L)F1823
22.0 TIMER2 MODULE
The Timer2 module incorporate the following features:
• 8-bit Timer and Period registers (TMR2 and PR2,
respectively)
• Readable and writable (both registers)
• Software programmable prescaler (1:1, 1:4, 1:16,
and 1:64)
• Software programmable postscaler (1:1 to 1:16)
• Interrupt on TMR2 match with PR2, respectively
• Optional use as the shift clock for the MSSP1
modules (Timer2 only)
See Figure 22-1 for a block diagram of Timer2.
FIGURE 22-1: TIMER2 BLOCK DIAGRAM
Comparator
TMR2
Sets Flag
TMR2
Output
Reset
Postscaler
Prescaler
PR2
2
F
OSC/4
1:1 to 1:16
1:1, 1:4, 1:16, 1:64
EQ
4
bit TMR2IF
T2OUTPS<3:0>
T2CKPS<1:0>