cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between EXTI_EMR and EXTI_IMR (events vs interrupts)?

arnold_w
Senior
Posted on July 11, 2016 at 13:09

I am working with the Discovery Development Board and I currently trying to get the external interrupts/events working properly. I read in the refererence manual that there are 2 types of enable bits for external interrupts/events, EXTI_EMR and EXTI_IMR. What are the differences between these 2 and when should I use one or the other? In school I learned that interrupts are generated in hardware and are very low-level and events are more high-level and exist in software/firmware, but the STM32F procosssors seem to have both of them??? Can someone please explain?

1 REPLY 1
Radosław
Senior II
Posted on July 11, 2016 at 13:54

RTFM

Event (EMR), can only wakeup to MCU,  Flag from in EXTI will be not set.

Interrupt (IMR). will wakeup MCU and set the pending flag in PR. If  in NVIC this interrupt will be enabled, then interrupt will be called.