Microchip Technology MA160014 Hoja De Datos

Descargar
Página de 560
 2010-2012 Microchip Technology Inc.
DS41412F-page 175
PIC18(L)F2X/4XK22
13.0
TIMER2/4/6 MODULE
There are three identical 8-bit Timer2-type modules
available. To maintain pre-existing naming conventions,
the Timers are called Timer2, Timer4 and Timer6 (also
Timer2/4/6).
The Timer2/4/6 module incorporates 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)
• 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)
Se
 for a block diagram of Timer2/4/6.
FIGURE 13-1:
TIMER2/4/6 BLOCK DIAGRAM       
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 refer-
ences PR2, PR4, or PR6.
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>