User Manual
471
Rev. 1.1
2019-03-18
TLE984xQX
Microcontroller with LIN and Power Switches for Automotive Applications
General Purpose Timer Units (GPT12)
Timer T6 in Counter Mode
Counter Mode for the core timer T6 is selected by setting bitfield T6M in register T6CON to 001
B
. In Counter
Mode, timer T6 is clocked by a transition at the external input pin T6IN. The event causing an increment or
decrement of the timer can be a positive, a negative, or both a positive and a negative transition at this line.
Bitfield T6I in control register T6CON selects the triggering transition (see
).
Figure 106 Block Diagram of Core Timer T6 in Counter Mode
For Counter Mode operation, pin T6IN must be configured as input. The maximum input frequency allowed in
Counter Mode depends on the selected prescaler value. To ensure that a transition of the count input signal
applied to T6IN is recognized correctly, its level must be held high or low for a minimum number of module
clock cycles before it changes. This information can be found in
MCB05405_X4
Core Timer T6
Toggle Latch
Up/Down
T6IN
T6R
Count
T6OUT
T6IRQ
to T5,
CAPREL
T6I
Clear
T6OUF
Edge
Select
MUX
0
1
T6EUD
=1
T6UD
T6UDE