This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Guys,
CCS v 6.2(compiler version = TI v15.12.3.LTS)
TMX320F28075 Control Card
control Suite v 3.4.1
I am going through the SPRUHS1A document. I need to use the absolute function (ABSF32). I called it as follows:
V_D_temp = __ABSF32(V_D_temp);
And I get an error. Please let me know how to call this function and other functions(Multiplying two float and adding two float) of the FPU Instruction Set.
Also please tell me if there is any Saturation function similar to _IQsat() in FPU or TMU.
Hi Prakash,
There is no intrinsic for the ABSF32 instruction. You use the fabs() instead, if you have the fpu32 option turned on the compiler will use the ABSF32 instruction.
Prakash Kumar Thulasi Kumar said:Is there any intrinsic function in FPU or TMU to roll within 0 and 2PI?
Not sure i understand Prakash, could you give me the pseudo code for the operation you are looking for?
if (angle < 0) angle += 6.283185307179586476925286766559; else if (angle >= 6.283185307179586476925286766559) angle -= 6.283185307179586476925286766559;
To roll the angle in radians within 0 and 2pi.