User Manual
556
Rev. 1.1
2019-03-18
TLE984xQX
Microcontroller with LIN and Power Switches for Automotive Applications
Capture/Compare Unit 6 (CCU6)
18.7.2
Hall Pattern Compare Logic
gives an overview on the double-register structure and the pattern compare logic. Software writes
the next modulation pattern (MCMPS) and the corresponding current (CURHS) and expected (EXPHS) Hall
patterns into the shadow register MCMOUTS. Register MCMOUT holds the actually used values CURH and
EXPH. The modulation pattern MCMP is provided to the T12 Output Modulation block. The current (CURH) and
expected (EXPH) Hall patterns are compared to the sampled Hall sensor inputs (visible in register CMPSTAT).
Sampling of the inputs and the evaluation of the comparator outputs is triggered by the evaluation signal
HCRDY (Hall Compare Ready), that is detailed in the next section.
Figure 155 Hall Pattern Compare Logic
• If the sampled Hall pattern matches the value programmed in CURH, the detected transition was a spike
(no Hall event) and no further actions are necessary.
• If the sampled Hall pattern matches the value programmed in EXPH, the detected transition was the
expected event (correct Hall event CM_CHE) and the MCMP value has to change.
• If the sampled Hall pattern matches neither CURH nor EXPH, the transition was due to a major error (wrong
Hall event CM_CWE) and can lead to an emergency shut down (IDLE).
At every correct Hall event (CM_CHE), the next Hall patterns are transferred from the shadow register
MCMOUTS into MCMOUT (Hall pattern shadow transfer HP_ST), and a new Hall pattern with its corresponding
output pattern can be loaded (e.g. from a predefined table in memory) by software into MCMOUTS. For the
Modulation patterns, signal MCM_ST is used to trigger the transfer.
Loading this shadow register can also be done by writing MCMOUTS.STRHP = 1 (for EXPH and CURH) or
MCMOUTS.STRMCMP = 1 (for MCMP).
18.7.3
Hall Mode Flags
Depending on the Hall pattern compare operation, a number of flags are set in order to indicate the status of
the module and to trigger further actions and interrupt requests.
CCU6_MCA05536
CM_CHE
CM_WHE
MCMPS
EXPH
CURH
HCRDY
C
C
POS0
..
2
CURHS
EXPHS
HP_ST
MCM_ST
SW Write
SW Write
SW Write
MCMP
Hall
Inputs
Hall Pattern
Evaluation
Multi-Channel Mode Logic
Pattern Compare
Sa
m
p
le
Hall Compare Logic
clear
T12 Output
Modulation
IDLE