Other Parts Discussed in Thread: MSP430G2553
Hi,
I'm trying to implement a PI control on MSP430G2553 for a Buck Converter. But the uC is taking to long to execute the maths on floating point.
So, i decided to use the floating point -> fixed point transformations and fixed point arithmetic using the IQMath library.
But , its the my first time on that. I've studied the Qn representation and I understood tha basis. But I still have a difficult:
I don't know how to choose the best "n" representation for numbers smaller than one. I did a table showing maximum numbers that can be represented for each Qn. And the resolution.
I know that 0.52 is better representated on Q15 and
0.49 on Q16, but why?
Can you help me?
Thanks