179
11100B–ATARM–31-Jul-12
SAM4S Series [Preliminary]
11.6.11.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, see
Condition Flags
This instruction does not change the flags.
Examples
WFE
; Wait for event
11.6.11.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
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 ...