Datasheet
PIC18F47J13 FAMILY
DS39974A-page 222 Preliminary 2010 Microchip Technology Inc.
REGISTER 15-1: TxCON: TIMER3/5 CONTROL REGISTER (ACCESS F79h, BANKED F22h)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
TMRxCS1 TMRxCS0 TxCKPS1 TxCKPS0 TxOSCEN TxSYNC
RD16 TMRxON
bit 7 bit 0
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 7-6 TMRxCS<1:0>: Clock Source Select bits
10 = Clock source is the pin or TxCKI input pin
01 = Clock source is the system clock (F
OSC)
(1)
00 = Clock source is the instruction clock (FOSC/4)
bit 5-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
bit 3 TxOSCEN: Timer Oscillator Enable bit
1 = T1OSC/SOSC oscillator used as clock source
0 = TxCKI digital input pin used as clock source
bit 2 TxSYNC
: External Clock Input Synchronization Control bit
(Not usable if the device clock comes from Timer1/Timer3.)
When TMRxCS1:TMRxCS0 =
10:
1 = Do not synchronize external clock input
0 = Synchronize external clock input
When TMRxCS1:TMRxCS0 =
0x:
This bit is ignored; Timer3 uses the internal clock.
bit 1 RD16: 16-Bit Read/Write Mode Enable bit
1 = Enables register read/write of timer in one 16-bit operation
0 = Enables register read/write of timer in two eight-bit operations
bit 0 TMRxON: Timer On bit
1 = Enables Timer
0 = Stops Timer
Note 1: The F
OSC clock source should not be selected if the timer will be used with the ECCP capture/compare
features.