2016-07-11 04:09 AM
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?
2016-07-11 04:54 AM
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.