User Manual
445
Rev. 1.1
2019-03-18
TLE984xQX
Microcontroller with LIN and Power Switches for Automotive Applications
General Purpose Timer Units (GPT12)
16.3.3
GPT1 Auxiliary Timers T2/T4 Control
Auxiliary timers T2 and T4 have exactly the same functionality. They can be configured for Timer Mode, Gated
Timer Mode, Counter Mode, or Incremental Interface Mode with the same options for the timer frequencies
and the count signal as the core timer T3. In addition to these 4 counting modes, the auxiliary timers can be
concatenated with the core timer, or they may be used as reload or capture registers in conjunction with the
core timer. The start/stop function of the auxiliary timers can be remotely controlled by the T3 run control bit.
Several timers may thus be controlled synchronously.
The current contents of an auxiliary timer are reflected by its count register T2 or T4, respectively. These
registers can also be written to by the CPU, for example, to set the initial start value.
The individual configurations for timers T2 and T4 are determined by their control registers T2CON and
T4CON, which are organized identically. Note that functions which are present in all 3 timers of block GPT1 are
controlled in the same bit positions and in the same manner in each of the specific control registers.
Note:
The auxiliary timers have no output toggle latch and no alternate output function.
Timer T2/T4 Run Control
Each of the auxiliary timers T2 and T4 can be started or stopped by software in two different ways:
• Through the associated timer run bit (T2R or T4R). In this case it is required that the respective control bit
TxRC = 0.
• Through the core timer’s run bit (T3R). In this case the respective remote control bit must be set (TxRC = 1).
The selected run bit is relevant in all operating modes of T2/T4. Setting the bit will start the timer, clearing the
bit stops the timer.
In Gated Timer Mode, the timer will only run if the selected run bit is set and the gate is active (high or low, as
programmed).
Note:
If remote control is selected T3R will start/stop timer T3 and the selected auxiliary timer(s)
synchronously.
Count Direction Control
The count direction of the GPT1 timers (core timer and auxiliary timers) is controlled in the same way, either
by software or by the external input pin TxEUD. Please refer to the description in
Note:
When pin TxEUD is used as external count direction control input, it must be configured as input.