English
Language : 

PIC18F67J11T-I Datasheet, PDF (210/466 Pages) Microchip Technology – 64/80-Pin, High-Performance, 1-Mbit Flash Microcontrollers
PIC18F87J11 FAMILY
17.2 Timer4 Interrupt
The Timer4 module has an 8-bit period register, PR4,
which is both readable and writable. Timer4 increments
from 00h until it matches PR4 and then resets to 00h on
the next increment cycle. The PR4 register is initialized
to FFh upon Reset.
FIGURE 17-1:
TIMER4 BLOCK DIAGRAM
17.3 Output of TMR4
The output of TMR4 (before the postscaler) is used
only as a PWM time base for the ECCPx/CCPx mod-
ules. It is not used as a baud rate clock for the MSSP
modules as is the Timer2 output.
T4OUTPS<3:0>
T4CKPS<1:0>
FOSC/4
4
2
1:1, 1:4, 1:16
Prescaler
Internal Data Bus
Reset
TMR4
8
1:1 to 1:16
Postscaler
TMR4/PR4
Match
Comparator
8
Set TMR4IF
TMR4 Output
(to PWM)
PR4
8
TABLE 17-1: REGISTERS ASSOCIATED WITH TIMER4 AS A TIMER/COUNTER
Name Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Reset
Values
on Page:
INTCON GIE/GIEH PEIE/GIEL TMR0IE INT0IE
RBIE
TMR0IF INT0IF
RBIF
61
IPR3
SSP2IP BCL2IP RC2IP
TX2IP
TMR4IP CCP5IP CCP4IP CCP3IP
64
PIR3
SSP2IF BCL2IF RC2IF
TX2IF
TMR4IF CCP5IF CCP4IF CCP3IF
64
PIE3
SSP2IE BCL2IE RC2IE
TX2IE
TMR4IE CCP5IE CCP4IE CCP3IE
64
TMR4 Timer4 Register
65
T4CON
— T4OUTPS3 T4OUTPS2 T4OUTPS1 T4OUTPS0 TMR4ON T4CKPS1 T4CKPS0 65
PR4
Timer4 Period Register
65
Legend: — = unimplemented, read as ‘0’. Shaded cells are not used by the Timer4 module.
DS39778E-page 210
 2007-2012 Microchip Technology Inc.