English
Language : 

XC164-16 Datasheet, PDF (195/417 Pages) Infineon Technologies AG – 16-Bit Single-Chip Microcontroller with C166SV2 Core Volume 2 (of 2): Peripheral Units
XC164-16 Derivatives
Peripheral Units (Vol. 2 of 2)
Capture/Compare Unit 6 (CAPCOM6)
18.5.1 Hall Pattern Compare Logic
Figure 18-32 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. The modulation
pattern MCMP is provided to the Output Modulation Control block. The current (CURH)
and expected (EXPH) Hall patterns are compared to the sampled Hall sensor inputs
(pins CC6POSx) by comparators. Sampling of the inputs and the evaluation of the
comparator outputs is controlled by signal HCRDY (Hall Compare Ready), which is
detailed in the next section.
SW Write
SW Write
SW Write
Shadow
Transfer
CM_CHE
CURHS
EXPHS
CURH
EXPH
MCMPS
MCMP
Register
MCMOUTS
Shadow
Transfer
MCM_ST
Register
MCMOUT
To Output
Modulation
HCRDY
Comp.
=?
Comp.
=?
HCRDY
Comb.
Logic
Correct Hall Event
CM_CHE
Wrong Hall Event
CM_WHE
MCA05536
Figure 18-32 Hall Pattern Compare Logic
When the sampled Hall pattern matches the expected one (EXPH), signal CM_CHE
(Correct Hall Event) is generated. When the sampled Hall pattern matches the current
one (CURH), no signal is generated, as this is a normal case after a spike on the input
line. If the sampled pattern matches neither EXPH nor CURH, signal CM_WHE is
generated, which indicates a wrong Hall event.
At every correct Hall event (CM_CHE), the next Hall patterns are transferred from the
shadow register MCMOUTS into MCMOUT, and a new Hall pattern with its
corresponding output pattern can be loaded (from a predefined table) by software into
MCMOUTS. For the Modulation patterns, signal MCM_ST is used to trigger the transfer.
This signal can be generated through signal CM_CHE (see Figure 18-31). Loading this
User’s Manual
CAPCOM6_X, V2.0
18-51
V2.1, 2004-03