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 与 sci txinterrupt 的影响

Guru**** 2581345 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/650928/ccs-tms320f28377d-the-effect-of-tmu-with-sci-txinterrupt

器件型号:TMS320F28377D

工具/软件:Code Composer Studio

您好!

在我的程序中、我将 fp_mode 设置为 strict、如下图所示

当我编译此程序时、CCS 将提供一些建议  

然后我将程序下载到28377d、但在我运行程序后、sci TX ISR 将无法 正常工作、我将 sci TX 中断设置为每100us、但 TX ISR 不能按每100us 运行。  

在我将 fp_mode 设置为宽松后、sci TX ISR 将会更好一点、但不会按100us 运行。  

为什么!

谢谢!

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

    如果选择 FP 模式为严格模式、则对浮点计算的计算方式有一些严格的限制(例如空间飞行器)。

    因此、操作需要更长时间、并且您的 CPU 可能会过载、以至于无法进入 ISR

    对于电机和数字电源的许多控制应用、不需要计算这些方法、fp_relaxed 模式也是可以的