Datasheet

SAM3X / SAM3A [DATASHEET]
Atmel-11057C-ATARM-SAM3X-SAM3A-Datasheet_23-Mar-15
150
10.18.11 WFE
Wait For Event.
10.18.11.1 Syntax
WFE{cond}
where:
cond is an optional condition code, see “Conditional execution” on page 91.
10.18.11.2 Operation
WFE is a hint instruction.
If the event register is 0, WFE suspends execution until one of the following events occurs:
an exception, unless masked by the exception mask registers or the current priority level
an exception enters the Pending state, if SEVONPEND in the System Control Register is set
a Debug Entry request, if Debug is enabled
an event signaled by a peripheral or another processor in a multiprocessor system using the SEV
instruction.
If the event register is 1, WFE clears it to 0 and returns immediately.
For more information see “Power management” on page 80.
10.18.11.3 Condition flags
This instruction does not change the flags.
10.18.11.4 Examples
WFE ; Wait for event