Hi
I'm designing a BLDC driver ,with Automotive Math and Motor Control
Library Set for NXP MC9S12ZVM。
I have three questions about Function GFLIB_ControllerPIrAW。
1、Are there three functions here, and what is the relationship between them
(1)Function GFLIB_ControllerPIrAW;
(2)Function GFLIB_ControllerPIrAW_F32;
(3)Function GFLIB_ControllerPIrAW_F16;
2、How to distinguish "differentiation methods"?
(1) “Trapezoidal”,
(2)“Backward Rect”,
(3)“Forward Rect”
Which one is used in “S12ZVML-MINIBRD_BLDC_Sensorless_CW_IDE” ?
I think it's using the “Forward Rect”,then,But put the parameters in the formula

The result is
u(k) = u(k-1) + KP*(e(k)-e(k-1)) + KI*Ts*e(k-1),
However,The standard formula of discrete PI is
u(k) = u(k-1) + KP*(e(k)-e(k-1)) + KI*Ts*e(k),
The two formulas are not the same. Is there something wrong with my deduction
3、 What is the specific meaning of f32acc and f16inerrk1?
f32acc
f16inerrk1
There is no detailed description of the document, which I can't understand
Hope to get the help of experts, thank you very much!