User Manual
504
Rev. 1.1
2019-03-18
TLE984xQX
Microcontroller with LIN and Power Switches for Automotive Applications
Timer2 and Timer21
17.4.2
Control Register
Control register is used to control the operating modes and interrupt of Timer 2.
Timer 2 Control Register
T2_CON
Offset
Reset Value
Timer 2 Control Register
00
H
see
Field
Bits
Type
Description
RES
31:8
r
Reserved
Returns 0 if read; should be written with 0.
TF2
7
r
Timer 2 Overflow/Underflow Flag
Set by a Timer 2 overflow/underflow. Must be cleared by
software.
EXF2
6
r
Timer 2 External Flag
In Capture/Reload Mode, this bit is set by hardware when
a negative/positive transition occurs at pin T2EX, if bit
EXEN2 = 1. This bit must be cleared by software.
Note:
When bit DCEN = 1 in auto-reload mode, no
interrupt request to the core is generated.
RES
5:4
r
Reserved
Returns 0 if read; should be written with 0.
EXEN2
3
rw
Timer 2 External Enable Control
0
B
DISABLED
, External events are disabled.
1
B
ENABLED
, External events are enabled in
Capture/Reload Mode.
TR2
2
rwhis
Timer 2 Start/Stop Control
0
B
STOP
, Timer 2.
1
B
START
, Timer 2.
C_T2
1
rw
Timer or Counter Select
0
B
Timer
, function selected.
1
B
Count
, upon negative edge at pin T2.
31
16
r
RES
15
8
r
RES
77
r
TF2
66
r
EXF2
5
4
r
RES
33
rw
EXEN
2
22
rwhis
TR2
11
rw
C_T2
00
rw
CP_R
L2