English
Language : 

PIC18F87K22 Datasheet, PDF (222/548 Pages) Microchip Technology – 64/80-Pin, High-Performance, 1-Mbit Enhanced Flash Microcontrollers with 12-Bit A/D and nanoWatt XLP Technology
PIC18F87K22 FAMILY
REGISTER 17-1: TxCON: TIMERx CONTROL REGISTER
U-0
—
bit 7
R/W-0
R/W-0
R/W-0
R/W-0
TxOUTPS3 TxOUTPS2 TxOUTPS1 TxOUTPS0
R/W-0
TMRxON
R/W-0
TxCKPS1
R/W-0
TxCKPS0
bit 0
Legend:
R = Readable bit
-n = Value at POR
W = Writable bit
‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
x = Bit is unknown
bit 7
bit 6-3
bit 2
bit 1-0
Unimplemented: Read as ‘0’
TxOUTPS<3:0>: Timerx Output Postscale Select bits
0000 = 1:1 Postscale
0001 = 1:2 Postscale
•
•
•
1111 = 1:16 Postscale
TMRxON: Timerx On bit
1 = Timerx is on
0 = Timerx is off
TxCKPS<1:0>: Timerx Clock Prescale Select bits
00 = Prescaler is 1
01 = Prescaler is 4
1x = Prescaler is 16
17.2 Timer4/6/8/10/12 Interrupt
The Timer4/6/8/10/12 modules have eight-bit period
registers, PRx, that are both readable and writable.
Timer4/6/8/10/12 increment from 00h until they match
PR4/6/8/10/12 and then reset to 00h on the next
increment cycle. The PRx registers are initialized to
FFh upon Reset.
FIGURE 17-1:
TIMER4 BLOCK DIAGRAM
17.3 Output of TMRx
The outputs of TMRx (before the postscaler) are used
only as a PWM time base for the ECCP modules. They
are not used as baud rate clocks for the MSSP
modules as is the Timer2 output.
TxOUTPS<3:0>
TxCKPS<1:0>
FOSC/4
4
2
1:1, 1:4, 1:16
Prescaler
Internal Data Bus
Reset
TMRx
8
1:1 to 1:16
Postscaler
TMRx/PRx
Match
Comparator
8
Set TMRxIF
TMRx Output
(to PWM)
PRx
8
DS39960B-page 222
Preliminary
 2010 Microchip Technology Inc.