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
221 of 258
NXP Semiconductors
UM10429
Chapter 19: Appendix LPC1102 ARM Cortex-M0 reference
19.4.7.1 BKPT
Breakpoint.
19.4.7.1.1
Syntax
BKPT #
imm
where:
imm
is an integer in the range 0-255.
19.4.7.1.2
Operation
The BKPT instruction causes the processor to enter Debug state. Debug tools can use
this to investigate system state when the instruction at a particular address is reached.
imm
is ignored by the processor. If required, a debugger can use it to store additional
information about the breakpoint.
The processor might also produce a HardFault or go in to lockup if a debugger is not
attached when a BKPT instruction is executed. See
for more
information.
19.4.7.1.3
Restrictions
There are no restrictions.
19.4.7.1.4
Condition flags
This instruction does not change the flags.
19.4.7.1.5
Examples
BKPT #0
; Breakpoint with immediate value set to 0x0.
19.4.7.2 CPS
Change Processor State.
19.4.7.2.1
Syntax
CPSID i
CPSIE i
19.4.7.2.2
Operation
CPS changes the PRIMASK special register values. CPSID causes interrupts to be
disabled by setting PRIMASK. CPSIE cause interrupts to be enabled by clearing
PRIMASK.See
for more information about these registers.
SVC
Supervisor Call
WFE
Wait For Event
WFI
Wait For Interrupt
Table 211. Miscellaneous instructions
Mnemonic
Brief description
See