User Manual
470
Rev. 1.1
2019-03-18
TLE984xQX
Microcontroller with LIN and Power Switches for Automotive Applications
General Purpose Timer Units (GPT12)
Timer T6 in Gated Timer Mode
Gated Timer Mode for the core timer T6 is selected by setting bitfield T6M in register T6CON to 010
B
or 011
B
.
Bit T6M.0 (T6CON.3) selects the active level of the gate input. The same options for the input frequency are
available in Gated Timer Mode as in Timer Mode (see
). However, the input clock to the timer in
this mode is gated by the external input pin T6IN (Timer T6 External Input).
To enable this operation, the associated pin T6IN must be configured as input.
Figure 105 Block Diagram of Core Timer T6 in Gated Timer Mode
If T6M = 010
B
, the timer is enabled when T6IN shows a low level. A high level at this line stops the timer. If T6M
= 011
B
, line T6IN must have a high level in order to enable the timer. Additionally, the timer can be turned on
or off by software using bit T6R. The timer will only run if T6R is 1 and the gate is active. It will stop if either T6R
is 0 or the gate is inactive.
Note:
A transition of the gate signal at pin T6IN does not cause an interrupt request.
Prescaler
Gate
Ctrl.
Core Timer T6
Toggle Latch
MCB05404_X4
BPS2
T6I
Up/Down
f
GPT
f
T6
T6R
Count
T6OUT
T6IRQ
to T5,
CAPREL
Clear
T6OUF
T6IN
MUX
0
1
T6EUD
=1
T6UD
T6UDE