User Manual
544
Rev. 1.1
2019-03-18
TLE984xQX
Microcontroller with LIN and Power Switches for Automotive Applications
Capture/Compare Unit 6 (CCU6)
18.4.3
T13 Compare Mode
Associated with Timer T13 is one compare channel, that can perform compare operations with regard to the
contents of the T13 counter.
gives an overview on the T13 channel in Compare Mode. The channel is connected to the T13
counter register via an equal-to comparator, generating a compare match signal when the contents of the
counter matches the contents of the compare register.
The channel consists of the comparator and a double register structure - the actual compare register, CC63R,
feeding the comparator, and an associated shadow register, CC63SR, that is preloaded by software and
transferred into the compare register when signal T13 shadow transfer, T13_ST, gets active. Providing a
shadow register for the compare value as well as for other values related to the generation of the PWM signal
facilitates a concurrent update by software for all relevant parameters.
Associated with the channel is a State Bit, CMPSTAT.CC63ST, holding the status of the compare operation.
gives an overview on the logic for the State Bit.
Figure 146 T13 State Bit Block Diagram
A compare interrupt event CM_63 is signaled when a compare match is detected. The actual setting of a State
Bit has no influence on the interrupt generation.
The inputs to the switching rule logic for the CC63ST bit are the timer run bit (T13R), the timer zero-match
signal (T13_ZM), and the actual individual compare-match signal CM_63. In addition, the state bit can be set
or cleared by software via bits MCC63S and MCC63R in register CMPMODIF.
A modification of the State Bit CC63ST by hardware is only possible while Timer T13 is running (T13R = 1). If
this is the case, the following switching rules apply for setting and resetting the State Bit in Compare Mode:
State Bit
CC63ST is set
to 1
• with the next T13 clock (
f
T13
) after a compare-match (T13 is always counting up) (i.e., when the counter is
incremented above the compare value);
• with the next T13 clock (
f
T13
) after a zero-match AND a parallel compare-match.
State Bit
CC63ST is cleared
to 0
CCU6_MCB05532
Switching
Rule
Logic
State Bit
CC63ST
CM_63
To Interrupt
Control
To State
Selection and
Output
Modulation
T13_ZM
MCC63S/R
T13R
Comp.
= ?
Compare Register
CC63R
Compare Shadow
Register CC63SR
T13_ST
Counter Register
T13
f
T13