Hi,
I have to interpolate 2 signals with the arctan but I have no idea what to do exactly. In the Technical Reference Manuel (Trigonometric Math Unit) is one example in assembler. Could I have a code example in C?
Laura
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,
I have to interpolate 2 signals with the arctan but I have no idea what to do exactly. In the Technical Reference Manuel (Trigonometric Math Unit) is one example in assembler. Could I have a code example in C?
Laura
laura,
Is this for F2837x?
Option 1: You can simply use the math.h header file functions, and turn on the tmu_support.. and use relaxed fpu mode..
details are in the compiler guide, you can use the math.h header filer functions in your code like sin, cos etc and then enable the tmu_support, and enable relaxed fpu mode and enable optimizations..
so your compiler options will look like
-v28 -ml -mt --cla_support=cla0 --float_support=fpu32 -O3 --opt_for_speed=5 --fp_mode=relaxed --tmu_support=tmu0
http://www.ti.com/general/docs/lit/getliterature.tsp?baseLiteratureNumber=spru514&fileType=pdf
2. Or alternatively you can use intrinsic defined in the compiler
these are described in the compiler guide above..
It's for TMS320F28377D
Where can I download the compiler version 6.2.4? I use CodeComposerStudio version 5.
Hello Laura,
Here is the link to download the CCS Compiler (C2000 Code Generation Tools Downloads)
https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm
Best regards,
Maria