Microchip Technology DM183037 Data Sheet

Page of 696
PIC18F97J94 FAMILY
DS30575A-page 292
 2012 Microchip Technology Inc.
FIGURE 15-5:
TIMER1/3/5 GATE SINGLE PULSE AND TOGGLE COMBINED MODE
15.5.5
TIMER1/3/5 GATE VALUE STATUS
When Timer1/3/5 gate value status is utilized, it is
possible to read the most current level of the gate con-
trol value. The value is stored in the TxGVAL bit
(TxGCON<2>). The TxGVAL bit is valid even when the
Timer1/3/5 gate is not enabled (TMRxGE bit is
cleared).
15.5.6
TIMER1/3/5 GATE EVENT 
INTERRUPT
When the Timer1/3/5 gate event interrupt is enabled, it
is possible to generate an interrupt upon the comple-
tion of a gate event. When the falling edge of TxGVAL
occurs, the TMRxGIF flag bit in the PIRx register will be
set. If the TMRxGIE bit in the PIEx register is set, then
an interrupt will be recognized.
The TMRxGIF flag bit operates even when the
Timer1/3/5 gate is not enabled (TMRxGE bit is
cleared).
TMRxGE
TxGPOL
TxG_IN
TxCKI
TxGVAL
Timer1/3/5
N
N + 1
N + 2
TxGSPM
TxGGO/
TxDONE
Set by Software
Cleared by Hardware on
Falling Edge of TxGVAL
Set by Hardware on
Falling Edge of TxGVAL
Cleared by Software
Cleared by
Software
TMRxGIF
TxGTM
Counting Enabled on
Rising Edge of TxG
N + 4
N + 3