With S32k144 and BLDC control, how to convert fixed-point number to floating-point number?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

With S32k144 and BLDC control, how to convert fixed-point number to floating-point number?

179 Views
fedora
Contributor II

Hello all:

    In the MCSPTE1AK144-BLDC_6Step project, I saw the use of FRAC16() macro to convert floating-point to fixed-point number, but I did not find how to convert fixed-point to floating-point number. May I ask if it is not necessary to convert fixed-point  to floating-point number in the motor control process?

For example, the following code:

NextCmtPeriod = MLIB_Mul_F16(NextCmtPeriod, FRAC16(mcat_startCmtAcceler));

The NextCmdPeriod is fixed-point number,why not convert to floating-point number?

Thanks for your help!

 

Best regards,

Fed.ora

 

0 Kudos
Reply
0 Replies