This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MFRACF32 (CLA) instruction returns wrong result on TMS320F28035

Hi,

I am calculating the high resolution PWM part inside the CLA and for that i am using the MFRACF32 instruction to get the fractional part of the periode value.

Unfortunately the instruction returns sometimes a wrong fractional part. 

For example:

MR0 = 334.0(float)

          MFRACF32 MR1, MR0

MR1 = 0.999... --> wrong

MR0 = 333.0(float)

          MFRACF32 MR1, MR0

MR1 = 0.0 --> correct

How to solve the issue?

Best regards,

André Meyer