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.

[参考译文] TMS320F280037C:如何在代码中使用正弦和余弦

Guru**** 2391565 points
Other Parts Discussed in Thread: TMS320F280037

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1295528/tms320f280037c-how-to-use-sine-and-cossine-in-my-code

器件型号:TMS320F280037C
主题中讨论的其他器件:TMS320F280037

您好!
 
我尝试使用 TMS320F280037和位编程来计算以弧度为单位的正弦和正弦。

我包含了 在开始我的代码和尝试以下行:

V_a_PLL = 311.126983722 * sin(theta);
feedback_PLL = (V_a/311.126983722) * cos(theta);

但是、我收到了以下警告:


#2614-D (性能)使用--fp_mode=relaxed 启用对 sin 的 TMU 硬件支持。              main.c /F280037 T 类型4行235

#2614-D (性能)使用--fp_mode=relaxed 以启用对 cos 的 TMU 硬件支持。              main.c /F280037 T 类型4行240

#2614-D (性能)使用--fp_mode=relaxed 启用对 FP 分部的 TMU 硬件支持。        f28003x_sysctrl.c /F280037 T 4类行833

目前我不想使用 CLA 或 driverlib 函数。 如何解决这些警告?

感谢您的关注、

乔纳斯·梅农·达·罗莎

电气工程师

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    • 在"Project Explorer"窗口中右键点击该工程。
    • 选择属性
    • 在"Build--> C2000 Compiler--> Optimization (构建--> C2000编译器-->优化)"下
    • 将"浮点"模式更改为"宽松"