The STM32 Cortex-M0 processor
Wakeup from WFE
The processor wakes up if:
●
it detects an exception with sufficient priority to cause exception entry
●
it detects an external event signal, see
In addition, if the SEVONPEND bit in the SCR is set to 1, any new pending interrupt triggers
an event and wakes up the processor, even if the interrupt is disabled or has insufficient
priority to cause exception entry. For more information about the SCR see
register (SCR) on page
2.5.3
The external event input
The processor provides an external event input signal. This signal can be generated by up
to 16 external input lines and other internal asynchronous events, configured through the
extended interrupt and event controller (EXTI).
This signal can wakeup the processor from WFE, or set the internal WFE event register to
one to indicate that the processor must not enter sleep mode on a later WFE instruction, see
Wait for event on page
section 4.3 Low power modes.
2.5.4
Power management programming hints
ISO/IEC C cannot directly generate the WFI, WFE or SEV instructions. The CMSIS provides
the following functions for these instructions:
void __WFE(void) // Wait for Event
void __WFI(void) // Wait for Interrupt
void __SEV(void) // Send Event
30/91
Section 2.5.3: The external event input
81.
29. Fore more details please refer to the STM32 reference manual,
Doc ID 022979 Rev 1
PM0215
System control
Need help?
Do you have a question about the STM32F0 Series and is the answer not in the manual?
Questions and answers