What is StallCheck() function in MC9S12ZVML128_BLDC_Sensorless ?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

What is StallCheck() function in MC9S12ZVML128_BLDC_Sensorless ?

跳至解决方案
806 次查看
sohyunjang
Contributor III

I use MC9S12ZVML128_BLDC_Sensorless example project.

I am wondering that Function: void StallCheck(void)'s role.

I think that stallcheck is Overcurrent and Lowcurrent check.

Is it right?

I want a detailed explanation.


TThThank you.

pachamatej

标签 (1)
标记 (3)
0 项奖励
1 解答
596 次查看
pachamatej
NXP Employee
NXP Employee

Actually, it has nothing to do with currents. The StallCheck() function is checking for the motor stall status (the situation when the rotor is blocked).

When the motor is running, an average zero-crossing period is calculated. If one of the acutal periods is greater or less than limit, stallCheckCounter is increased. Or, if one the periods is less then STALLCHECK_MIN_CMT_PERIOD, the stallCheckCounter is increased as well.

If the stallCheckCounter is greater than zero, a "Stall" is indicated. Once it reaches STALLCHECK_MAX_ERRORS, a fault is thrown and the application falls in to FAULT state.

The StallCheck() function is called after a new zero-crossing period is available, but in Sensorless mode only.

 

Please let me know if you need more explanation.

Regards,

Matej

在原帖中查看解决方案

0 项奖励
1 回复
597 次查看
pachamatej
NXP Employee
NXP Employee

Actually, it has nothing to do with currents. The StallCheck() function is checking for the motor stall status (the situation when the rotor is blocked).

When the motor is running, an average zero-crossing period is calculated. If one of the acutal periods is greater or less than limit, stallCheckCounter is increased. Or, if one the periods is less then STALLCHECK_MIN_CMT_PERIOD, the stallCheckCounter is increased as well.

If the stallCheckCounter is greater than zero, a "Stall" is indicated. Once it reaches STALLCHECK_MAX_ERRORS, a fault is thrown and the application falls in to FAULT state.

The StallCheck() function is called after a new zero-crossing period is available, but in Sensorless mode only.

 

Please let me know if you need more explanation.

Regards,

Matej

0 项奖励