Hello,
I am pretty new to programming microcontrollers and i am useing a msp4330fg4618 with IAR Embedded Workbench.
I am looking to do quite a bit of multiplication and division within my code. I need to use both signed numbers and fractions.
My question is what is the most efficient way to do this?
Currently in my code i just declare all my variables as floats and use the * and / symbles, so it would look like somthing like this:
float a, b, c, x;
x = (a* b) / c;
The problem is that this is too slow and I need to increase the speed at which my code runs.
Is there a way to do multiplication and divisionuseing with fractions useing fixed point numbers? Maybe with the hardware multiplier?
Any help will be greatly appreciated
Thanks,
Jacob