User Manual
436
Rev. 1.1
2019-03-18
TLE984xQX
Microcontroller with LIN and Power Switches for Automotive Applications
General Purpose Timer Units (GPT12)
16.3
Timer Block GPT1
From a programmer’s point of view, the GPT1 block is composed of a set of SFRs as summarized below. Those
portions of port and direction registers which are used for alternate functions by the GPT1 block are shaded.
Figure 85 SFRs Associated with Timer Block GPT1
All three timers of block GPT1 (T2, T3, T4) can run in one of 4 basic modes: Timer Mode, Gated Timer Mode,
Counter Mode, or Incremental Interface Mode. All timers can count up or down. Each timer of GPT1 is
controlled by a separate control register TxCON.
Each timer has an input pin TxIN (alternate pin function) associated with it, which serves as the gate control in
Gated Timer Mode, or as the count input in Counter Mode. The count direction (up/down) may be
programmed via software or may be dynamically altered by a signal at the External Up/Down control input
TxEUD (alternate pin function). An overflow/underflow of core timer T3 is indicated by the Output Toggle
Latch T3OTL, whose state may be output on the associated pin T3OUT (alternate pin function). The auxiliary
timers T2 and T4 may additionally be concatenated with the core timer T3 (through T3OTL) or may be used as
capture or reload registers for the core timer T3.
The current contents of each timer can be read or modified by the CPU by accessing the corresponding timer
count registers T2, T3, or T4, located in the non-bitaddressable SFR space (see
). When any of
the timer registers is written to by the CPU in the state immediately preceding a timer increment, decrement,
reload, or capture operation, the CPU write operation has priority in order to guarantee correct results.
The interrupts of GPT1 are controlled through the GPTM1IEN and GPTM1IRC. These registers are not part of
the GPT1 block.
The input and output lines of GPT1 are connected to pins. The control registers for the port functions are
located in the respective port modules.
Note:
The timing requirements for external input signals can be found in
summarizes the module interface signals, including pins.
mc_gpt1_registers.vsd
Data Registers
Control Registers
T2CON
Interrupt Control
Tx
GPT1 Timer x Register
TxCON
GPT1 Timer x Control Register
TxIC
GPT1 Timer x Interrupt Ctrl . Reg.
T2
T3
T2IC
T3IC
T4
T2CON
T4CON
T3CON
T4IC
T2CON
KSCCFG
Miscellaneous
PISEL
ID
KSCCFG
Kernel State Configuration Register
PISEL
Port Input Select Register
ID
Module Identification Register