User Manual
539
Rev. 1.1
2019-03-18
TLE984xQX
Microcontroller with LIN and Power Switches for Automotive Applications
Capture/Compare Unit 6 (CCU6)
Figure 142 T13 Counter Logic and Period Comparators
The start or stop of T13 is controlled by the Run bit, T13R. This control bit can be set by software via the
associated set/clear bits T13RS or T13RR in register TCTR4, or it is cleared by hardware according to
preselected conditions (single-shot mode).
The timer T13 run bit T13R must not be set while the applied T13 period value is zero. Bit T13R can be set
automatically if an event of T12 is detected to synchronize T13 timings to T12 events, e.g. to generate a
programmable delay via T13 after an edge of a T12 compare channel before triggering an AD conversion (T13
can trigger ADC conversions).
Timer T13 can be cleared to 0000
H
via control bit T13RES. Setting this write-only bit only clears the timer
contents, but has no further effects, e.g., it does not stop the timer.
The generation of the T13 shadow transfer control signal, T13_ST, is enabled via bit STE13. This bit can be set
or cleared by software indirectly through its associated set/reset control bits T13STR and T13STD.
Two bit fields, T13TEC and T13TED, control the synchronization of T13 to Timer T12 events. T13TEC selects the
trigger event, while T13TED determines for which T12 count direction the trigger should be active.
While Timer T13 is running, write accesses to the count register T13 are not taken into account. If T13 is
stopped, write actions to register T13 are immediately taken into account.
Note:
The T13 Period Register and its associated shadow register are located at the same physical
address. A write access to this address targets the Shadow Register, while a read access reads from
the actual period register.
CCU6_MCA05527
Comp.
= ?
Period Register
Period Shadow
Register
T13_PM
Counter Register
T13
Write to
T13PR
Read from
T13PR
T13_ZM
= 0000
H
T13_ST
f
T13
edge
detection
T13HR
T13PRE
T13CLK
ISCNT13
T13STD
T13STR
T13RR
T13RS
T13R
T13RES
T13SSC
T13
Control
& Status
STE13
edge
detection
T13RSEL
T13CNT
Sync. to T12
f
CC6
256
n
Clock
Selection