cwjcwjcwj said:
If i want to write my code in fixed-point format, does it mean i have to use Q8,Q0.8,Q7.1 or etc?
I don’t know what do you mean by "use Q8,Q0.8,Q7.1 or etc".
But whenever talking about writing code (regardless of
what), you’ll need to first specify
how (language and compiler) and
where (chosen HW platform, uC, uP etc.).
When choosing a higher-level programming language, you don’t usually care about internal bus width and stuff like that. You just do your thing and the compiler takes care of the underlying HW details. You can even write floating point expressions and the good compiler will invoke the proper libraries that emulate a floating-point hardware without your noticing (except maybe for the increase in program size and execution time).
If this is not the answer you expected, rephrase your question a little, use more words and specify the
how and
where above so we can have a chance at it.
Arthur