Microchip Technology MA160014 Data Sheet

Page of 560
 2010-2012 Microchip Technology Inc.
DS41412F-page 173
PIC18(L)F2X/4XK22
  
REGISTER 12-2:
TXGCON: TIMER1/3/5 GATE CONTROL REGISTER
R/W-0/u
R/W-0/u
R/W-0/u
R/W-0/u
R/W/HC-0/u
R-x/x
R/W-0/u
R/W-0/u
TMRxGE
TxGPOL
TxGTM
TxGSPM
TxGGO/DONE
TxGVAL
TxGSS<1:0>
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
HC = Bit is cleared by hardware
bit 7
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
bit 6
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)
bit 5
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.
bit 4
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
bit 3
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
This bit is automatically cleared when TxGSPM is cleared.
bit 2
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).
bit 1-0
TxGSS<1:0>: Timer1/3/5 Gate Source Select bits
00
 = Timer1/3/5 Gate pin
01
 = Timer2/4/6 Match PR2/4/6 output (See 
 for proper timer match selection)
10
 = Comparator 1 optionally synchronized output (sync_C1OUT)
11
 = Comparator 2 optionally synchronized output (sync_C2OUT)