U 相过零: 0° 和 120°
V 相过零: 120° 和 240°
W 相过零:240° 和 360°
源代码:
void FOC_BEMF_Detection(void)
{
//------------------------------------------------------------------------/
// 读取反电动势电压
stru_bemf.AD_Value[0] = (int32_t)ADC1->DATA[ADC1_DATA_UBEMF];
stru_bemf.AD_Value[1] = (int32_t)ADC1->DATA[ADC1_DATA_VBEMF];
stru_bemf.AD_Value[2] = (int32_t)ADC1->DATA[ADC1_DATA_WBEMF];
stru_bemf.ARR[0] = FRACMPY_Q10((stru_bemf.AD_Value[0]),stru_Sample.G_Vbemf);
stru_bemf.ARR[<