English
Language : 

PIC16LF1526 Datasheet, PDF (177/354 Pages) Microchip Technology – 64-Pin Flash Microcontrollers with nanoWatt XLP Technology
PIC16(L)F1526/27
18.12 Timer1/3/5 Gate Control Register
The Timer1/3/5 Gate Control register (TxGCON),
shown in Register 18-2, is used to control Timer1/3/5
Gate.
REGISTER 18-2: TXGCON: TIMER1/3/5 GATE CONTROL REGISTER
R/W-0/u
TMRxGE
bit 7
R/W-0/u
TxGPOL
R/W-0/u
TxGTM
R/W-0/u
TxGSPM
R/W/HC-0/u
TxGGO/
DONE
R-x/x
TxGVAL
R/W-0/u
R/W-0/u
TxGSS<1:0>
bit 0
Legend:
R = Readable bit
u = Bit is unchanged
‘1’ = Bit is set
W = Writable bit
x = Bit is unknown
‘0’ = Bit is cleared
U = Unimplemented bit, read as ‘0’
-n/n = Value at POR and BOR/Value at all other Resets
HC = Bit is cleared by hardware
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1-0
TMRxGE: Timer1/3/5 Gate Enable bit
If TMRxON = 0:
This bit is ignored
If TMRxON = 1:
1 = Timer1/3/5 counting is controlled by the Timer1/3/5 gate function
0 = Timer1/3/5 counts regardless of Timer1/3/5 gate function
TxGPOL: Timer1/3/5 Gate Polarity bit
1 = Timer1/3/5 gate is active-high (Timer1/3/5 counts when gate is high)
0 = Timer1/3/5 gate is active-low (Timer1/3/5 counts when gate is low)
TxGTM: Timer1/3/5 Gate Toggle Mode bit
1 = Timer1/3/5 Gate Toggle mode is enabled
0 = Timer1/3/5 Gate Toggle mode is disabled and toggle flip-flop is cleared
Timer1/3/5 gate flip-flop toggles on every rising edge.
TxGSPM: Timer1/3/5 Gate Single-Pulse Mode bit
1 = Timer1/3/5 Gate Single-Pulse mode is enabled and is controlling Timer1/3/5 gate
0 = Timer1/3/5 Gate Single-Pulse mode is disabled
TxGGO/DONE: Timer1/3/5 Gate Single-Pulse Acquisition Status bit
1 = Timer1/3/5 gate single-pulse acquisition is ready, waiting for an edge
0 = Timer1/3/5 gate single-pulse acquisition has completed or has not been started
TxGVAL: Timer1/3/5 Gate Current State bit
Indicates the current state of the Timer1/3/5 gate that could be provided to TMRxH:TMRxL.
Unaffected by Timer1/3/5 Gate Enable (TMRxGE).
TxGSS<1:0>: Timer1/3/5 Gate Source Select bits
00 = Timer1/3/5 gate pin
01 = Timer0 overflow output
10 = Timer2/4/6/8 match PR2/PR4/PR6/PR8(1)
11 = Timer10 match PR10
Note 1: See Table 18-4 for Timer selection.
 2011 Microchip Technology Inc.
Preliminary
DS41458A-page 177