OM13008,598 NXP Semiconductors, OM13008,598 Datasheet - Page 390

no-image

OM13008,598

Manufacturer Part Number
OM13008,598
Description
BOARD LPC XPRESSO LPC122X
Manufacturer
NXP Semiconductors
Series
LPCXpressor
Datasheets

Specifications of OM13008,598

Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
568-6642
OM13008
NXP Semiconductors
UM10441
User manual
25.4.4.5.5 Examples
25.4.4.5.6 Incorrect examples
25.4.4.6.1 Syntax
25.4.4.6.2 Operation
25.4.4.6.3 Restrictions
25.4.4.6.4 Condition flags
25.4.4.6 PUSH and POP
Push registers onto, and pop registers off a full-descending stack.
PUSH reglist
POP reglist
where:
PUSH stores registers on the stack, with the lowest numbered register using the lowest
memory address and the highest numbered register using the highest memory address.
POP loads registers from the stack, with the lowest numbered register using the lowest
memory address and the highest numbered register using the highest memory address.
PUSH uses the value in the SP register minus four as the highest memory address,
POP uses the value in the SP register as the lowest memory address, implementing a
full-descending stack. On completion,
PUSH updates the SP register to point to the location of the lowest store value,
POP updates the SP register to point to the location above the highest location loaded.
If a POP instruction includes PC in its reglist, a branch to this location is performed when
the POP instruction has completed. Bit[0] of the value read for the PC is used to update
the APSR T-bit. This bit must be 1 to ensure correct operation.
In these instructions:
These instructions do not change the flags.
reglist is a non-empty list of registers, enclosed in braces. It can contain register ranges.
It must be comma separated if it contains more than one register or register range.
LDM
STM
reglist must use only R0-R7.
The exception is LR for a PUSH and PC for a POP.
STMIA
LDM
R0,{R0,R3,R4}
R5!,{R4,R5,R6} ; Value stored for R5 is unpredictable
All information provided in this document is subject to legal disclaimers.
R1!,{R2-R4,R6}
R2,{}
Rev. 1.1 — 10 March 2011
; LDMIA is a synonym for LDM
; There must be at least one register in the list
Chapter 25: LPC122x Appendix ARM Cortex-M0
UM10441
© NXP B.V. 2011. All rights reserved.
390 of 442

Related parts for OM13008,598