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.

[参考译文] TMS570LC4357:清除 RTI 挂起中断

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/861507/tms570lc4357-clear-rti-pending-interrupt

器件型号:TMS570LC4357

您好!

我的程序正确配置 RTI 中断生成、并且 RTI0 ISR "rtiCompare0Interrupt"被逻辑调用(RTIINTFLAG 寄存器等于0)。

您能否说明要检查哪些寄存器、以及如何在 ISR 函数中获得 RTI0、RT1和 RTI2的中断挂起状态标志?

此致、

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

    您好!

    当由于比较0匹配而产生的中断挂起时、中断标志0 (RTIINTFLAG 寄存器中的域 INT0)被设定为1、并且如果启用了中断、将生成中断。 根据 TRM (第17.3.27节 RTI 中断标志寄存器(RTIINTFLAG))、将1写入 INT0字段会将其清除。

    rtiCompare0中断正在处理此中断。 rtiCompare0Interrupt 的第一个操作是清除 INT0字段:rtiREG1->INTFLAG = 1U;

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

    感谢您的回答。

    此致、