User Manual
522
Rev. 1.1
2019-03-18
TLE984xQX
Microcontroller with LIN and Power Switches for Automotive Applications
Capture/Compare Unit 6 (CCU6)
Figure 128 Compare State Bits for Compare Mode
The inputs to the switching rule logic for the CC6xST bits are the timer direction (CDIR), the timer run bit
(T12R), the timer T12 zero-match signal (T12_ZM), and the actual individual compare-match signals CM_6x as
well as the mode control bits, T12MSEL.MSEL6x.
In addition, each state bit can be set or cleared by software via the appropriate set and reset bits in register
CMPMODIF, MCC6xS and MCC6xR. The input signals CCPOSx are used in hysteresis-like compare mode,
whereas in normal compare mode, these inputs are ignored.
Note:
In Hall Sensor, single shot or capture modes, additional/different rules are taken into account (see
related sections).
A compare interrupt event CC6x_R is signaled when a compare match is detected while counting upwards,
whereas the compare interrupt event CC6x_F is signaled when a compare match is detected while counting
down. The actual setting of a State Bit has no influence on the interrupt generation in compare mode.
A modification of a State Bit CC6xST by the switching rule logic due to a compare action is only possible while
Timer T12 is running (T12R = 1). If this is the case, the following switching rules apply for setting and clearing
the State Bits in Compare Mode (illustrated in
A State Bit
CC6xST is set
to 1:
CCU6_MCB05514
Switching
Rule
Logic
State Bit
CC60ST
CM_60
To Interrupt
Control
CC60_R
CC60_F
To Dead_Time
Counter 0
T12_ZM
MCC60S/R
MSEL60
T12R
Switching
Rule
Logic
State Bit
CC61ST
To Interrupt
Control
CC61_R
CC61_F
To Dead_Time
Counter 1
MCC61S/R
MSEL61
Switching
Rule
Logic
State Bit
CC62ST
To Interrupt
Control
CC62_R
CC62_F
To Dead_Time
Counter 2
MCC62S/R
MSEL62
CDIR
CCPOS0
Compare
Channel
CC60
CM_61
Compare
Channel
CC61
CM_62
Compare
Channel
CC62
T12 Counter
CCPOS1
CCPOS2