User Manual
540
Rev. 1.1
2019-03-18
TLE984xQX
Microcontroller with LIN and Power Switches for Automotive Applications
Capture/Compare Unit 6 (CCU6)
18.4.2
T13 Counting Scheme
This section describes the clocking and the counting capabilities of T13.
18.4.2.1 Clock Selection
In
Timer Mode
(PISEL2. ISCNT13 = 00
B
), the input clock
f
T13
of Timer T13 is derived from the internal module
clock
f
CC6
through a programmable prescaler and an optional 1/256 divider. The resulting prescaler factors are
listed in
. The prescaler of T13 is cleared while T13 is not running (TCTR0.T13R = 0) to ensure
reproducible timings and delays.
In
Counter Mode
, timer T13 counts one step:
• If a 1 is written to TCTR4.T13CNT and PISEL2.ISCNT13 = 01
B
• If a rising edge of input signal T13HR is detected and PISEL2.ISCNT13 = 10
B
• If a falling edge of input signal T13HR is detected and PISEL2.ISCNT13 = 11
B
Table 284 Timer T13 Input Clock Options
T13CLK
Resulting Input Clock
f
T13
Prescaler Off (T13PRE = 0)
Resulting Input Clock
f
T13
Prescaler On (T13PRE = 1)
000
B
f
CC6
f
CC6
/ 256
001
B
f
CC6
/ 2
f
CC6
/ 512
010
B
f
CC6
/ 4
f
CC6
/ 1024
011
B
f
CC6
/ 8
f
CC6
/ 2048
100
B
f
CC6
/ 16
f
CC6
/ 4096
101
B
f
CC6
/ 32
f
CC6
/ 8192
110
B
f
CC6
/ 64
f
CC6
/ 16384
111
B
f
CC6
/ 128
f
CC6
/ 32768