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