I want to do floating point operations like multiplication, division and square root to calculate PWM duty ratio in dsPIC. I want to do these operations at high frequency.
But I am encountering problems because my dsPIC is not able to do all the floating point computations at high frequency rate. I know that fixed point operations are much faster.
So is there any method to convert floating point operations to fixed point operation?
You have to do it by hand, using shifting operations for multiplication and division.
I had a similar situation for color conversion functions. I replaced floating point operations to fixed point operations. Target multiplication and division operations first.
--
Amr