English
Language : 

PIC18F87K22 Datasheet, PDF (210/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 16-1: TxCON: TIMERx CONTROL REGISTER
R/W-0
TMRxCS1
bit 7
R/W-0
TMRxCS0
R/W-0
TxCKPS1
R/W-0
TxCKPS0
R/W-0
SOSCEN
R/W-0
TxSYNC
R/W-0
RD16
R/W-0
TMRxON
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-6
bit 5-4
bit 3
bit 2
bit 1
bit 0
TMRxCS<1:0>: Timerx Clock Source Select bits
10 = Timer1 clock source depends on the SOSCEN bit:
SOSCEN = 0:
External clock from the T1CKI pin (on the rising edge).
SOSCEN = 1:
Depending on the SOSCSEL fuses, either a crystal oscillator on the SOSCI/SOSCO pins or an external
clock from the SCLKI pin.
01 = Timerx clock source is system clock (FOSC)(1)
00 = Timerx clock source is instruction clock (FOSC/4)
TxCKPS<1:0>: Timerx Input Clock Prescale Select bits
11 = 1:8 Prescale value
10 = 1:4 Prescale value
01 = 1:2 Prescale value
00 = 1:1 Prescale value
SOSCEN: SOSC Oscillator Enable bit
1 = SOSC/SCLKI enabled for Timerx (based on the SOSCSEL fuses)
0 = SOSC/SCLKI disabled for Timerx and TxCKI is enabled
TxSYNC: Timerx External Clock Input Synchronization Control bit
(Not usable if the device clock comes from Timer1/Timer3.)
When TMRxCS<1:0> = 10:
1 = Do not synchronize external clock input
0 = Synchronize external clock input
When TMRxCS<1:0> = 0x:
This bit is ignored; Timer3 uses the internal clock.
RD16: 16-Bit Read/Write Mode Enable bit
1 = Enables register read/write of Timerx in one 16-bit operation
0 = Enables register read/write of Timerx in two eight-bit operations
TMRxON: Timerx On bit
1 = Enables Timerx
0 = Stops Timerx
Note 1: The FOSC clock source should not be selected if the timer will be used with the ECCP capture/compare
features.
DS39960B-page 210
Preliminary
 2010 Microchip Technology Inc.