UM10429
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2010. All rights reserved.
User manual
Rev. 1 — 20 October 2010
226 of 258
NXP Semiconductors
UM10429
Chapter 19: Appendix LPC1102 ARM Cortex-M0 reference
19.4.7.10.5
Examples
SVC
#0x32 ; Supervisor Call (SVC handler can extract the immediate value
; by locating it via the stacked PC)
19.4.7.11 WFE
Wait For Event.
Remark:
The WFE instruction is not implemented on the LPC1102.
19.4.7.11.1
Syntax
WFE
19.4.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
.
Remark:
WFE is intended for power saving only. When writing software assume that WFE
might behave as NOP.
19.4.7.11.3
Restrictions
There are no restrictions.
19.4.7.11.4
Condition flags
This instruction does not change the flags.
19.4.7.11.5
Examples
WFE
; Wait for event
19.4.7.12 WFI
Wait for Interrupt.
19.4.7.12.1
Syntax
WFI