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
180 of 258
NXP Semiconductors
UM10429
Chapter 19: Appendix LPC1102 ARM Cortex-M0 reference
See the instruction descriptions
and
for more
information about how to access the program status registers.
Application Program Status Register:
The APSR contains the current state of the
condition flags, from previous instruction executions. See the register summary in
for its attributes. The bit assignments are:
See
for more information about the APSR negative, zero, carry or
borrow, and overflow flags.
Interrupt Program Status Register:
The IPSR contains the exception number of the
current
Interrupt Service Routine
(ISR). See the register summary in
its attributes. The bit assignments are:
Execution Program Status Register:
The EPSR contains the Thumb state bit.
See the register summary in
for the EPSR attributes. The bit assignments
are:
Table 194. APSR bit assignments
Bits
Name
Function
[31]
N
Negative flag
[30]
Z
Zero flag
[29]
C
Carry or borrow flag
[28]
V
Overflow flag
[27:0]
-
Reserved
Table 195. IPSR bit assignments
Bits
Name
Function
[31:6]
-
Reserved
[5:0]
Exception number This is the number of the current exception:
0 = Thread mode
1 = Reserved
2 = NMI
3 = HardFault
4-10 = Reserved
11 = SVCall
12, 13 = Reserved
14 = PendSV
15 = SysTick
16 = IRQ0
.
.
.
47 = IRQ31
48-63 = Reserved.
for more information.