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.

CCS/TMS320F28377D: TMU: How to use?

Part Number: TMS320F28377D


Tool/software: Code Composer Studio

Hello everyone,

I have just started working with the DSP TMS320F28377D and I do not have much experience. I saw in the datasheet that it has a trigonometric math unit (TMU)  which can execute operations shown in the table below. My question is: how to use it?

In a code example from TI I found this code line:

park1.Sine   = __sinpuf32(park1.Angle);

Is this code already using the TMU?

Thanks

  • Correct.  This is an intrinsic which translates to the TMU instruction SINPUF.  You can read about it on p.157 of the C compiler user's guide, here:

    In general, if your device has a TMU you can tell the compiler to generate instructions by enabling the --tmu_support compiler flag.  To do this, right-click on the project name in your CCS explorer window, and select "Properties".  Go to "CCS Build -> C2000 Compiler -> Processor Options", and use the drop-down box next to "Specify TMU Support".

    Regards,

    Richard