Skip to main content
arnold_w
Senior II
July 11, 2016
Question

Difference between EXTI_EMR and EXTI_IMR (events vs interrupts)?

  • July 11, 2016
  • 1 reply
  • 1675 views
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?

    This topic has been closed for replies.

    1 reply

    Radosław
    Associate II
    July 11, 2016
    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.