User Manual
517
Rev. 1.1
2019-03-18
TLE984xQX
Microcontroller with LIN and Power Switches for Automotive Applications
Capture/Compare Unit 6 (CCU6)
18.3.2
T12 Counting Scheme
This section describes the clocking and counting capabilities of T12.
18.3.2.1 Clock Selection
In
Timer Mode
(PISEL2.ISCNT12 = 00
B
), the input clock
f
T12
of Timer T12 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 T12 is cleared while T12 is not running (TCTR0.T12R = 0) to ensure
reproducible timings and delays.
In
Counter Mode
, timer T12 counts one step:
• If a 1 is written to TCTR4.T12CNT and PISEL2.ISCNT12 = 01
B
• If a rising edge of input signal T12HR is detected and PISEL2.ISCNT12 = 10
B
• If a falling edge of input signal T12HR is detected and PISEL2.ISCNT12 = 11
B
Table 280 Timer T12 Input Frequency Options
T12CLK
Resulting Input Clock
f
T12
Prescaler Off (T12PRE = 0)
Resulting Input Clock
f
T12
Prescaler On (T12PRE = 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