
XC161 Derivatives
Peripheral Units (Vol. 2 of 2)
The General Purpose Timer Units
User’s Manual
14-19
V2.2, 2004-01
GPT_X1, V2.0
Timers T2 and T4 in Gated Timer Mode
Gated timer mode for an auxiliary timer Tx is selected by setting bitfield TxM in register
TxCON to 010
B
or 011
B
. Bit TxM.0 (TxCON.3) selects the active level of the gate input.
Note: A transition of the gate signal at line TxIN does not cause an interrupt request.
Figure 14-12 Block Diagram of an Auxiliary Timer in Gated Timer Mode
Note: There is no output toggle latch for T2 and T4.
Start/stop of an auxiliary timer can be controlled locally or remotely.
Prescaler
Gate
Ctrl.
Auxiliary
Timer Tx
BPS1
TxI
f
GPT
f
Tx
Count
TxIRQ
TxM
MCB05396
MUX
Up/Down
0
1
TxEUD
=1
TxUD
TxUDE
MUX
TxRC
TxR
T3R
x = 2, 4
0
1
TxIN