Datasheet

UM10398 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2014. All rights reserved.
User manual Rev. 12.3 — 10 June 2014 504 of 547
NXP Semiconductors
UM10398
Chapter 28: LPC111x/LPC11Cxx Appendix: ARM Cortex-M0 reference
28.5.7.10.5 Examples
SVC #0x32 ; Supervisor Call (SVC handler can extract the immediate value
; by locating it via the stacked PC)
28.5.7.11 WFE
Wait For Event.
Remark: The WFE instruction is not implemented on the LPC111x/LPC11Cxx
28.5.7.11.1 Syntax
WFE
28.5.7.11.2 Operation
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 completes immediately.
For more information see Section 28–28.4.5
.
Remark: WFE is intended for power saving only. When writing software assume that WFE
might behave as NOP.
28.5.7.11.3 Restrictions
There are no restrictions.
28.5.7.11.4 Condition flags
This instruction does not change the flags.
28.5.7.11.5 Examples
WFE ; Wait for event
28.5.7.12 WFI
Wait for Interrupt.
28.5.7.12.1 Syntax
WFI