Microchip Technology Microstick for the 3V PIC24F K-series DM240013-1 DM240013-1 Data Sheet
Product codes
DM240013-1
2011 Microchip Technology Inc.
DS31037B-page 123
PIC24F16KL402 FAMILY
15.0
TIMER4 MODULE
The Timer4 module is implemented in
PIC24FXXKL30X/40X devices only. It has the following
features:
• Eight-bit Timer register (TMR4)
• Eight-bit Period register (PR4)
• Readable and writable (all registers)
• Software programmable prescaler (1:1, 1:4, 1:16)
• Software programmable postscaler (1:1 to 1:16)
• Interrupt on TMR4 match of PR4
PIC24FXXKL30X/40X devices only. It has the following
features:
• Eight-bit Timer register (TMR4)
• Eight-bit Period register (PR4)
• Readable and writable (all registers)
• Software programmable prescaler (1:1, 1:4, 1:16)
• Software programmable postscaler (1:1 to 1:16)
• Interrupt on TMR4 match of PR4
The Timer4 module has a control register shown in
. Timer4 can be shut off by clearing
control bit, TMR4ON (T4CON<2>), to minimize power
consumption. The prescaler and postscaler selection of
Timer4 is controlled by this register.
The prescaler and postscaler counters are cleared
when any of the following occurs:
• A write to the TMR4 register
• A write to the T4CON register
• Any device Reset (POR, BOR, MCLR or WDT
consumption. The prescaler and postscaler selection of
Timer4 is controlled by this register.
The prescaler and postscaler counters are cleared
when any of the following occurs:
• A write to the TMR4 register
• A write to the T4CON register
• Any device Reset (POR, BOR, MCLR or WDT
Reset)
TMR4 is not cleared when T4CON is written.
is a simplified block diagram of the Timer4
module.
FIGURE 15-1:
TIMER4 BLOCK DIAGRAM
Note:
This data sheet summarizes the features
of this group of PIC24F devices. It is not
intended to be a comprehensive refer-
ence source. For more information on
Timers, refer to the “PIC24F Family Refer-
ence Manual”
of this group of PIC24F devices. It is not
intended to be a comprehensive refer-
ence source. For more information on
Timers, refer to the “PIC24F Family Refer-
ence Manual”
, Section 14. “Timers”
(DS39704).
Comparator
TMR4 Output
TMR4
Postscaler
Prescaler
PR4
2
F
OSC
/2
1:1 to 1:16
1:1, 1:4, 1:16
4
T4OUTPS<3:0>
T4CKPS<1:0>
Set T4IF
Internal Data Bus
8
Reset
TMR4/PR4
8
8
(to PWM)
Match