Detect if Interrupt Happened

I am wondering if there is a way to detect if an interrupt occurred in section of code.  I know in the M3/M4/M7 I can use the LDREX/STREX to see if an exception(interrupt) occurred, is there any other method?  Specifically one of the Cortex M0? 

Thanks

Trampas

Parents
  • Not sure what you want to detect exactly. You can read the Interrupt Control and State Register (ICSR), its fied VECTACTIVE indicates the current active exception. If you want to know whether there has been interrupt occurred before, your system needs to record such event. Otherwise, it's possible.

Reply
  • Not sure what you want to detect exactly. You can read the Interrupt Control and State Register (ICSR), its fied VECTACTIVE indicates the current active exception. If you want to know whether there has been interrupt occurred before, your system needs to record such event. Otherwise, it's possible.

Children
More questions in this forum