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/TMS320F28374S:有关清除 CLA 中的 OST 位的问题

Guru**** 2538930 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/898477/ccs-tms320f28374s-question-about-clearing-the-ost-bit-in-cla

器件型号:TMS320F28374S

工具/软件:Code Composer Studio

 

您好、专家、

 

我的朋友在他的设计中使用 F28374S、他发现在使用 CLA 函数时 TZ CLEAR 存在一些问题。  

他希望清除 CLA 中 TZ 寄存器中的 OST 位和 INT 位。 根据数据表、他需要按如下方式编写代码。 而他没有成功清除 OST 位。 使用相同的方法并将代码写入 CPU 区域而不是 CLA、可以成功清除 OST 位。 您能不能告诉您导致此问题的原因是什么?

Cla1Regs._MSTF.bit.MEALLOW = 1;

EPwm1Regs.TZCLR.bit.OST=1;

EPWM1Regs.TZCLR.bit.INT=1;

Cla1Regs._MSTF.bit.MEALLOW = 0;

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

    请尝试将第一行和最后一行分别更改为__meallow()和__medis()。  这些是编译器内在函数。  

    有关更多信息、请参阅编译器用户指南(www.ti.com/.../spru514)。  

    此致

    Lori