2021-07-02 08:28 PM
2021-07-09 02:38 AM
Hi @zquan.1 and welcome to the ST Community.
The variable counter_ARR_Bemf store the last value of Autoreload for Low Frequency timer
With El_Speed_Hz = (int32_t)((SIXSTEP_parameters.SYSCLK_frequency)/(prsc))/(__HAL_TIM_GetAutoreload(&LF_TIMx)*6);
you get the *Eletrical* Motor Speed from ARR value of Commutation / LF TIM
I hope these info can help you; if so, consider to mark it as best answer by clicking the label "Select as Best".
2021-08-05 02:55 AM
Hi @zquan.1,
my reply solved your doubts?