AN1905 ST Microelectronics, Inc., AN1905 Datasheet - Page 42

no-image

AN1905

Manufacturer Part Number
AN1905
Description
St7mc Three-phase BLDC Motor Control Software Library
Manufacturer
ST Microelectronics, Inc.
Datasheet
ST7MC THREE-PHASE BLDC MOTOR CONTROL SOFTWARE LIBRARY
MTC_R_Z_IT
Synopsis
Description
See also
Figure 20. Z event processing (sensorless mode only)
42/77
prescaler ratio into Step_Z buffer
(save step time between two
Save MZREG value and
zero crossing events)
yes
#include "mtc.h"
void MTC_R_Z_IT(void)
This function is dedicated to the Zero-Crossing and Ratio Increment/
Decrement interrupt service routines. Figures 20, 21, 22, 23,
show the routine flowcharts.
ST7MC Datasheet: MTC chapter.
Autoswitchmode?
Return from interrupt
no
Successive Bemf detected?
Z interrupt request?
no
Correct number of
BemfCounter++
MotorStatus = LAST_FORCED_SWITCH
Center last zerocrossing in the middle
of 2 C events (
yes
MCOMP = MZREG x 2
24
&
25
)

Related parts for AN1905