![Atmel SAM4S Series Preliminary Data Sheet Download Page 80](http://html1.mh-extra.com/html/atmel/sam4s-series/sam4s-series_preliminary-data-sheet_3003408080.webp)
80
11100B–ATARM–31-Jul-12
SAM4S Series [Preliminary]
11.5.2.2
Wakeup from WFE
The processor wakes up if:
• it detects an exception with sufficient priority to cause an exception entry
• it detects an external event signal. See
• in a multiprocessor system, another processor in the system executes an SEV instruction.
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 an exception entry. For more information about the SCR, see
.
11.5.2.3
External Event Input
The processor provides an external event input signal. Peripherals can drive this signal, either to
wake the processor from WFE, or to set the internal WFE event register to 1 to indicate that the
processor must not enter sleep mode on a later WFE instruction. See
for more
information.
11.5.3
Power Management Programming Hints
ISO/IEC C cannot directly generate the WFI and WFE instructions. The CMSIS provides the fol-
lowing functions for these instructions:
void __WFE(void) // Wait for Event
void __WFE(void) // Wait for Interrupt
Summary of Contents for SAM4S Series
Page 44: ...44 11100B ATARM 31 Jul 12 SAM4S Series Preliminary ...
Page 412: ...412 11100B ATARM 31 Jul 12 SAM4S Series Preliminary ...
Page 1105: ...1105 11100B ATARM 31 Jul 12 SAM4S Series Preliminary ...
Page 1143: ...1143 11100B ATARM 31 Jul 12 SAM4S Series Preliminary Figure 43 4 64 lead LQFP Package Drawing ...
Page 1145: ...1145 11100B ATARM 31 Jul 12 SAM4S Series Preliminary Figure 43 5 64 lead QFN Package Drawing ...