Microchip Technology MA160014 データシート

ページ / 560
PIC18(L)F2X/4XK22
DS41412F-page 172
 2010-2012 Microchip Technology Inc.
12.13 Register Definitions: Timer1/3/5 Control 
REGISTER 12-1:
TXCON: TIMER1/3/5 CONTROL REGISTER
R/W-0/u
R/W-0/u
R/W-0/u
R/W-0/u
R/W-0/u
R/W-0/u
R/W-0/0
R/W-0/u
TMRxCS<1:0>
TxCKPS<1:0>
TxSOSCEN
TxSYNC
TxRD16
TMRxON
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
u = Bit is unchanged
x = Bit is unknown
-n/n = Value at POR and BOR/Value at all other Resets
‘1’ = Bit is set
‘0’ = Bit is cleared
bit 7-6
TMRxCS<1:0>: Timer1/3/5 Clock Source Select bits
11
 = Reserved. Do not use.
10
 = Timer1/3/5 clock source is pin or oscillator:
If TxSOSCEN = 
0:
External clock from TxCKI pin (on the rising edge)
If TxSOSCEN = 
1:
Crystal oscillator on SOSCI/SOSCO pins
01
 = Timer1/3/5 clock source is system clock (F
OSC
)
00
 = Timer1/3/5 clock source is instruction clock (F
OSC
/4)
bit 5-4
TxCKPS<1:0>: Timer1/3/5 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
TxSOSCEN: Secondary Oscillator Enable Control bit
1
 = Dedicated Secondary oscillator circuit enabled
0
 = Dedicated Secondary oscillator circuit disabled
bit 2
TxSYNC: Timer1/3/5 External Clock Input Synchronization Control bit
TMRxCS<1:0> = 
1X
1
 = Do not synchronize external clock input
0
 = Synchronize external clock input with system clock (F
OSC
)
TMRxCS<1:0> = 
0X
This bit is ignored. Timer1/3/5 uses the internal clock when TMRxCS<1:0> = 1X.
bit 1
TxRD16: 16-Bit Read/Write Mode Enable bit
1
 = Enables register read/write of Timer1/3/5 in one 16-bit operation
0
 = Enables register read/write of Timer1/3/5 in two 8-bit operation
bit 0
TMRxON: Timer1/3/5 On bit
1
 = Enables Timer1/3/5
0
 = Stops Timer1/3/5
Clears Timer1/3/5 Gate flip-flop