Datasheet
2011-2013 Microchip Technology Inc. DS30001037C-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
The Timer4 module has a control register shown in
Register 15-1. 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
Reset)
TMR4 is not cleared when T4CON is written.
Figure 15-1 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 “dsPIC33/PIC24
Family Reference Manual”, “Timers”
(DS39704).
Comparator
TMR4 Output
Postscaler
PR4
2
F
OSC/2
1:1 to 1:16
4
T4OUTPS<3:0>
T4CKPS<1:0>
Set T4IF
Internal Data Bus
8
Reset
TMR4/PR4
8
8
(to PWM)
Match
Prescaler
1:1, 1:4, 1:16
TMR4