Download DRM027, 3-Phase Sensorless BLDC Motor Control with Back

Transcript
Freescale Semiconductor, Inc.
Software Algorithms
– The action of bldczcComput:
– preset commutation period Per_CmtPreset (time) is predicted:
Per_CmtPreset[n] = Coef_CmtPrecomp*Per_ZCrosFlt[n-1]
usually coefficient Coef_CmtPrecomp = 2
If Coef_CmtPrecomp*Per_ZCrosFlt>Max_PerCmt
then result is limited at Max_PerCmt
– Then the time of the next commutation:
Commutation Time [n] = T_Cmt0[n] + Per_CmtPreset[n] =
= T_Cmt0[n] +
Coef_CmtPrecomp*Per_ZCrosFlt[n-1]
Freescale Semiconductor, Inc...
will be set by bldczcHndlr if no Zero Crossing received.
•
Service of received Back-EMF Zero Crossing
– After Back-EMF zero crossing received, when
pState_ZCros->Cmd_Comput.B.ZCOKGet_Comput_RqFlag
=1
– Half commutation period Per_HlfCmt(T2*[n] is computed
from the captured Back-EMF zero crossing time (T_ZCros[n]),
and variables updated:
Per_ZCros[n] = T_ZCros[n] -T_ZCros[n-1] =
= T_ZCros[n] - T_ZCros0
Per_ZCrosFlt[n] = (1/2*Per_ZCros[n]+1/2*Per_ZCros0)
Per_HlfCmt[n] = 1/2*Per_ZCrosFlt[n]- Advance_angle =
= 1/2*Per_ZCrosFlt[n]- C_CMT_ADVANCE*Per_ZCrosFlt[n]=
Coef_HlfCmt*Per_ZCrosFlt[n]
usually coefficient C_CMT_ADVANCE = 1/4
Per_Toff[n+1] = Per_ZCrosFlt*Coef_Toff and
Max_PerCmtProc minimum
Per_ZCros0 <-- Per_ZCros[n]
T_ZCros0 <-- T_ZCros[n]
– Then the next commutation time:
Commutation Time [n] = T_ZCros[n] + Per_HlfCmt[n]
will be set by bldczcHndlr.
•
Service of Commutation after non-Zero Crossing - Corrective
Calculation 1
– If no Back-EMF Zero Crossing was captured during preset
commutation period, Per_CmtPreset, when:
pState_ZCros->Cmd_Comput.B.CmtDone_Comput_RqFlag
= 1 and pState_ZCros->Cmd_Comput.B.ZC_ComputFlag = 1:
Designer Reference Manual
130
DRM027 — Rev 0
Software Algorithms
For More Information On This Product,
Go to: www.freescale.com
MOTOROLA