User Manual
501
Rev. 1.1
2019-03-18
TLE984xQX
Microcontroller with LIN and Power Switches for Automotive Applications
Timer2 and Timer21
If bit T2RHEN is set, Timer 2 can be started by the falling edge/rising edge on pin T2EX, which is defined by bit
T2REGS.
Note:
If pin T2 is not connected, counting clock function on pin T2 cannot be used.
17.3.4
Interrupt Generation
When an interrupt event happened, the corresponding interrupt flag bit EXF2/TF2 is set. If enabled by the
related interrupt enable bit EXF2EN/TF2EN in register T2CON1, an interrupt for the interrupt event EXF2/TF2
will be generated.
Note:
When the timer/counter is stopped and while the module remains enabled, it is possible for an
external event at T2EX to generate an interrupt. For this to occur, bit EXEN2 in SFR T2CON must be
set. In this case, a dummy reload or capture happens depending on the CP_RL2 bit selection. The
resulting interrupt could therefore be used in the product as an external falling/rising edge
triggered interrupt.
17.4
Timer 2 Register Definition
All Timer 2 and Timer 21 register names described in the following sections will be referenced in other
chapters with the module name prefix “T2_” and “T21_”, respectively.
The registers are addressed wordwise.
Table 272 Register
Address
Space
Module
Base Address
End Address
Note
T2
48004000
H
48004FFF
H
Timer2
T21
48005000
H
48005FFF
H
Timer21
Table 273 Register
Overview
Register Short Name
Register Long Name
Offset Address
Reset Value
Timer 2 Mode Register
04
H
see
Timer 2 Control Register
00
H
see
Timer 2 Control Register 1
1C
H
see
Timer 2 Interrupt Clear Register
18
H
see
Timer 2 Reload/Capture Register
Timer 2 Reload/Capture Register
08
H
see
Timer 2 Count Register
10
H
see