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:FPU 中断

Guru**** 2481465 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/858303/tms570lc4357-fpu-interrupt

器件型号:TMS570LC4357

您好!

使用 TMS570LC43、我已激活 FPU 中断(VIM 47)并且当一个零除法完成时、相应的 ISR 被正确调用。 相应的 ISR 只是包含一个递增计数器。

但是,在执行 ISR 之后,程序不会返回主程序。

您会告诉我在执行 ISR 后要执行的操作,以便正确返回主程序吗?

此外,当检测到除零时,INTREQ1在逻辑上等于0x00008000,但在寄存器中写入‘1’无效。

那么、如何获得中断挂起状态标志呢?

此致、

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

    您好!

    中断请求在 FPU 内部生成、因此您需要先清除 FPSCR 中的状态标志、然后清除 VIM 中的标志。

    此致、Sunil