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

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.6.1.2 Operation
25.4.6.1.3 Restrictions
25.4.6.1.4 Condition flags
25.4.6.1.5 Examples
BX Rm
BLX Rm
where:
All these instructions cause a branch to the address indicated by label or contained in the
register specified by Rm. In addition:
BL and BLX instructions also set bit[0] of the LR to 1. This ensures that the value is
suitable for use by a subsequent POP {PC} or BX instruction to perform a successful
return branch.
Table 371
Table 371. Branch ranges
In these instructions:
Remark: Bcond is the only conditional instruction on the Cortex-M0 processor.
These instructions do not change the flags.
Instruction
B label
Bcond label
BL label
BX Rm
BLX Rm
cond is an optional condition code, see
label is a PC-relative expression. See
Rm is a register providing the address to branch to.
The BL and BLX instructions write the address of the next instruction to LR, the link
register R14.
The BX and BLX instructions result in a HardFault exception if bit[0] of Rm is 0.
Do not use SP or PC in the BX or BLX instruction.
For BX and BLX, bit[0] of Rm must be 1 for correct execution. Bit[0] is used to update
the EPSR T-bit and is discarded from the target address.
B
BL
shows the ranges for the various branch instructions.
loopA ; Branch to loopA
All information provided in this document is subject to legal disclaimers.
funC
Rev. 1.1 — 10 March 2011
; Branch with link (Call) to function funC, return address
; stored in LR
Chapter 25: LPC122x Appendix ARM Cortex-M0
Section
Section
Branch range
−2 KB to +2 KB
−256 bytes to +254 bytes
−16 MB to +16 MB
Any value in register
Any value in register
25–25.4.3.5.
25–25.4.3.6.
UM10441
© NXP B.V. 2011. All rights reserved.
401 of 442

Related parts for OM13008,598