PIC16F/LF1946/47
21.0 TIMER2/4/6 MODULES
There are up to three identical Timer2-type modules
available. To maintain pre-existing naming conventions,
the Timers are called Timer2, Timer4 and Timer6 (also
Timer2/4/6).
Note:
The ‘x’ variable used in this section is used
to designate Timer2, Timer4, or Timer6.
For example, TxCON references T2CON,
T4CON or T6CON. PRx references PR2,
PR4 or PR6.
The Timer2/4/6 modules incorporate the following
features:
• 8-bit Timer and Period registers (TMRx and PRx,
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 TMRx match with PRx, respectively
• Optional use as the shift clock for the MSSPx
modules (Timer2 only)
See Figure 21-1 for a block diagram of Timer2/4/6.
FIGURE 21-1:
TIMER2/4/6 BLOCK DIAGRAM
Sets Flag
bit TMRxIF
TMRx
Output
Prescaler
TMRx
Reset
EQ
FOSC/4
1:1, 1:4, 1:16, 1:64
Postscaler
1:1 to 1:16
2
Comparator
TxCKPS<1:0>
PRx
4
TxOUTPS<3:0>
2010 Microchip Technology Inc.
Preliminary
DS41414A-page 203