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.

[参考译文] MSP430FR2355:ISR 唤醒 main --如何辨别?

Guru**** 2538955 points


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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/901990/msp430fr2355-isr-wakes-up-main----how-to-tell

器件型号:MSP430FR2355

我有多个 ISR 可唤醒 main、我想知道如何判断它是哪个 ISR、以便有条件地执行某些代码块?

谢谢

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

    您好、Steve、

    如何设置每个 ISR 所独有的软件标志? 然后,可以在 main()中有一条 if ()语句,该语句检查这些标志,并在设置了一个标志时执行某些操作。

    此致、

    James

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

    谢谢 James

    是的,这就是我所处的位置...我想我可以查询寄存器,但当你进入 ISR 时,大多数标志都会被清除...

    谢谢

    Steve