ST7MC1xx/ST7MC2xx
MOTOR CONTROLLER (Cont’d)
Figure 96. Simulated commutation event generation with only 1 Hall effect sensor (SC bit =1)
After C interrupt
MCOMP is written for Cs event
if MCOMP<=MTIM
Immediate CS generation
Z
Z
C interrupt
SC reset in MCRB
Next C event = CH with 8*8 bit multiplication
Z
D
CS
CS
CH
D
CS
CS
CH
C interrupt
SC set in MCRC
Z zero-crossing event
D Demagnetisation event
CH Hardware commutation
CS Simulated commutation
t
Note: If the SC bit is set during Z event interrupt,
then the 8*8 bit hardware multiplication result must
be overwritten in the MCOMP register. Otherwise,
when the SC bit is set, the result of the multiplica-
tion is not taken into account after a Z event.
Figure 97. Simulated commutation and Z event
SC bit is reset
SC bit is set during Z IT
the result of the
the hardware multiplication is taken
hardware multiplication is put into account but the value in MCOMP
in MCOMP-->CH and compared can be overwritten
with MTIM once written
Z
Z
Z
SC bit is already set when Z IT
occurs. The hardware multipli-
-cation is not taken into account
A value has to be written
in the MCOMP register
Z
D
CH
D
Cs
MCOMP
register
D
Cs
Z zero-crossing event
D Demagnetisation event
CH Hardware commutation
CS Simulated commutation
t
177/309
1