User Manual
502
Rev. 1.1
2019-03-18
TLE984xQX
Microcontroller with LIN and Power Switches for Automotive Applications
Timer2 and Timer21
17.4.1
Mode Register
The T2MOD is used to configure Timer 2 for various modes of operation.
Timer 2 Mode Register
T2_MOD
Offset
Reset Value
Timer 2 Mode Register
04
H
see
Field
Bits
Type
Description
RES
31:8
r
Reserved
Returns 0 if read; should be written with 0.
T2REGS
7
rw
Edge Select for Timer 2 External Start
0
B
FALLING
, The falling edge at Pin T2EX is selected.
1
B
RISING
, The rising edge at Pin T2EX is selected.
T2RHEN
6
rw
Timer 2 External Start Enable
0
B
DISABLED
, Timer 2 External Start is disabled.
1
B
ENABLED
, Timer 2 External Start is enabled.
EDGESEL
5
rw
Edge Select in Capture Mode/Reload Mode
0
B
FALLING
, The falling edge at Pin T2EX is selected.
1
B
RISING
, The rising edge at Pin T2EX is selected.
PREN
4
rw
Prescaler Enable
0
B
DISABLED
, Prescaler is disabled and the 2 or 12
divider takes effect.
1
B
ENABLED
, Prescaler is enabled (see T2PRE bit) and
the 2 or 12 divider is bypassed.
T2PRE
3:1
rw
Timer 2 Prescaler Bit
Selects the input clock for Timer 2 which is derived from
the peripheral clock.
000
B
DIV1
,
f
T2
=
f
sys
001
B
DIV2
,
f
T2
=
f
sys
/ 2
010
B
DIV4
, D
f
T2
=
f
sys
/ 4
011
B
DIV8
,
f
T2
=
f
sys
/ 8
100
B
DIV16
,
f
T2
=
f
sys
/ 16
101
B
DIV32
,
f
T2
=
f
sys
/ 32
110
B
DIV64
,
f
T2
=
f
sys
/ 64
111
B
DIV128
,
f
T2
=
f
sys
/ 128
31
16
r
RES
15
8
r
RES
77
rw
T2RE
GS
66
rw
T2RH
EN
55
rw
EDGE
SEL
44
rw
PREN
3
1
rw
T2PRE
00
rw
DCEN