Microchip Technology DM163025-1 Data Sheet
![Microchip Technology](https://files.manualsbrain.com/attachments/cf42c3c895ef469f06d2e47e97fd98d738fcf5cf/common/fit/150/50/7340124dc8aa983aaf764094e2f06faab86f306c03111c5817f7e4e53fb2/brand_logo.gif)
2012 Microchip Technology Inc.
DS30684A-page 177
PIC18(L)F2X/45K50
14.0
TIMER2 MODULE
The Timer2 module incorporates the following features:
• 8-bit Timer and Period registers (TMR2 and PR2,
• 8-bit Timer and Period registers (TMR2 and PR2,
respectively)
• Readable and writable (both registers)
• Software programmable prescaler (1:1, 1:4, 1:16)
• Software programmable postscaler (1:1 to 1:16)
• Interrupt on TMR2 match with PR2, respectively
• Optional use as the shift clock for the MSSP
• Software programmable prescaler (1:1, 1:4, 1:16)
• Software programmable postscaler (1:1 to 1:16)
• Interrupt on TMR2 match with PR2, respectively
• Optional use as the shift clock for the MSSP
module
See
for a block diagram of Timer2.
FIGURE 14-1:
TIMER2 BLOCK DIAGRAM
Comparator
TMRx
Sets Flag
TMRx
Output
Reset
Postscaler
Prescaler
PRx
2
F
OSC
/4
1:1 to 1:16
1:1, 1:4, 1:16
EQ
4
bit TMRxIF
TxOUTPS<3:0>
TxCKPS<1:0>