User Manual
475
Rev. 1.1
2019-03-18
TLE984xQX
Microcontroller with LIN and Power Switches for Automotive Applications
General Purpose Timer Units (GPT12)
Note:
Only state transitions of T6OTL which are caused by the overflows/underflows of T6 will trigger the
counter function of T5. Modifications of T6OTL via software will NOT trigger the counter function of
T5.
For counter operation, pin T5IN 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 T5IN 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
Timer Concatenation
Using the toggle bit T6OTL as a clock source for the auxiliary timer in Counter Mode concatenates the core
timer T6 with the auxiliary timer T5. This concatenation forms either a 32-bit or a 33-bit timer/counter,
depending on which transition of T6OTL is selected to clock the auxiliary timer.
•
32-bit Timer/Counter:
If both a positive and a negative transition of T6OTL are used to clock the auxiliary
timer, this timer is clocked on every overflow/underflow of the core timer T6. Thus, the two timers form a
32-bit timer.
•
33-bit Timer/Counter:
If either a positive or a negative transition of T6OTL is selected to clock the auxiliary
timer, this timer is clocked on every second overflow/underflow of the core timer T6. This configuration
forms a 33-bit timer (16-bit core timer + T6OTL + 16-bit auxiliary timer).
As long as bit T6OTL is not modified by software, it represents the state of the internal toggle latch, and can
be regarded as part of the 33-bit timer.
The count directions of the two concatenated timers are not required to be the same. This offers a wide variety
of different configurations.
T6, which represents the low-order part of the concatenated timer, can operate in Timer Mode, Gated Timer
Mode or Counter Mode in this case.
Figure 110 Concatenation of Core Timer T6 and Auxiliary Timer T5
MCA05409
Toggle Latch
T6OUT
T6IRQ
Count
T6R
Core Timer T6
Operating
Mode
Control
BPS2
T6I
Clear
T6IN
f
GPT
Auxiliary
Timer T5
T5I
0
1
MUX
T5I.2
T5IN
T5IRQ
Up/Down
Clear
Up/Down
Count
MUX
T5RC
T5R
T6R
0
1
Edge
Select