Difference between EXTI_EMR and EXTI_IMR (events vs interrupts)?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2016-07-11 4:09 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2016-07-11 4:54 AM
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.