English
Language : 

PIC24F16KL402 Datasheet, PDF (121/260 Pages) Microchip Technology – Low-Power, Low-Cost, General Purpose 16-Bit Flash Microcontrollers with nanoWatt XLP Technology
PIC24F16KL402 FAMILY
REGISTER 14-2: T3GCON: TIMER3 GATE CONTROL REGISTER(1)
U-0
U-0
U-0
U-0
U-0
U-0
U-0
U-0
—
—
—
—
—
—
—
—
bit 15
bit 8
R/W-0
TMR3GE
bit 7
R/W-0
T3GPOL
R/W-0
T3GTM
R/W-0
T3GSPM
R/W-0
T3GGO/
T3DONE
R-x
T3GVAL
R/W-0
T3GSS1
R/W-0
T3GSS0
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 15-8
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1-0
Unimplemented: Read as ‘0’
TMR3GE: Timer Gate Enable bit
If TMR3ON = 0:
This bit is ignored.
If TMR3ON = 1:
1 = Timer counting is controlled by the Timer3 gate function
0 = Timer counts regardless of the Timer3 gate function
T3GPOL: Gate Polarity bit
1 = Timer gate is active-high (Timer3 counts when the gate is high)
0 = Timer gate is active-low (Timer3 counts when the gate is low)
T3GTM: Gate Toggle Mode bit
1 = Timer Gate Toggle mode is enabled.
0 = Timer Gate Toggle mode is disabled and toggle flip-flop is cleared
Timer3 gate flip-flop toggles on every rising edge.
T3GSPM: Timer Gate Single Pulse Mode bit
1 = Timer Gate Single Pulse mode is enabled and is controlling Timer3 gate
0 = Timer Gate Single Pulse mode is disabled
T3GGO/T3DONE: Timer Gate Single Pulse Acquisition Status bit
1 = Timer gate single pulse acquisition is ready, waiting for an edge
0 = Timer gate single pulse acquisition has completed or has not been started
This bit is automatically cleared when TxGSPM is cleared.
T3GVAL: Timer Gate Current State bit
Indicates the current state of the Timer gate that could be provided to the TMR3 register; unaffected by
the state of TMR3GE.
T3GSS<1:0>: Timer Gate Source Select bits
11 = Comparator 2 output
10 = Comparator 1 output
01 = TMR2 to match PR2 output
00 = T3G input pin
Note 1: Initializing T3GCON prior to T3CON is recommended.
 2011 Microchip Technology Inc.
DS31037B-page 121