Datasheet
2010 Microchip Technology Inc. Preliminary DS39974A-page 229
PIC18F47J13 FAMILY
FIGURE 15-5: TIMER3/5 GATE SINGLE PULSE AND TOGGLE COMBINED MODE
15.5.5 TIMER3/5 GATE VALUE STATUS
When Timer3/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
Timer3/5 gate is not enabled (TMRxGE bit is cleared).
15.5.6 TIMER3/5 GATE EVENT
INTERRUPT
When the Timer3/5 gate event interrupt is enabled, it is
possible to generate an interrupt upon the completion
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
Timer3/5 gate is not enabled (TMRxGE bit is cleared).
TMRxGE
TxGPOL
TxG_IN
TxCKI
TxGVAL
Timer3/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