Electronic – To Clear or not to clear ARM Cortex-M NVIC interrupt pending

arminterruptsmicrocontroller

Do I need to clear the pending status of an interrupt in the interrupt service routine of an ARM Cortex-M0 MCU?

Could not find information on this on the web.

Best Answer

No, you don't need to clear the pending status in the NVIC, that is done automatically when the interrupt is serviced (see Joseph Yiu, The Definitive Guide to ARM Cortex-M3 and Cortex-M4 Processors, 3rd Edition, page 247).

However, you may need to clear the condition causing the interrupt on the specific peripheral.