Atmel Evaluation Kit for the SAM4E Series of Flash Microcontrollers ATSAM4E-EK ATSAM4E-EK Data Sheet

Product codes
ATSAM4E-EK
Page of 1506
SAM4E [DATASHEET]
Atmel-11157D-ATARM-SAM4E16-SAM4E8-Datasheet_12-Jun-14
218
12.6.12.11  WFE
Wait For Event.
Syntax
WFE{cond}
where:
cond
is an optional condition code, see 
.
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, se
Condition Flags
This instruction does not change the flags.
Examples
WFE
; Wait for event 
12.6.12.12  WFI
Wait for Interrupt.
Syntax
WFI{cond}
where:
cond
is an optional condition code, see 
.
Operation
WFI is a hint instruction that suspends execution until one of the following events occurs:
An exception
A Debug Entry request, regardless of whether Debug is enabled.
Condition Flags
This instruction does not change the flags.
Examples
WFI ; Wait for interrupt