SAM3X8E Atmel Corporation, SAM3X8E Datasheet - Page 104

no-image

SAM3X8E

Manufacturer Part Number
SAM3X8E
Description
Manufacturer
Atmel Corporation
Datasheets
11.12.4.2
11.12.4.3
11.12.4.4
11.12.4.5
11.12.5
11.12.5.1
104
104
STRBTEQ
LDRHT
SAM3X/A
SAM3X/A
LDR, PC-relative
Operation
Restrictions
Condition flags
Examples
Syntax
R4, [R7]
R2, [R2, #8]
cond
Rt
Rn
offset
These load and store instructions perform the same function as the memory access instructions
with immediate offset, see
these instructions have only unprivileged access even when used in privileged software.
When used in unprivileged software, these instructions behave in exactly the same way as nor-
mal memory access instructions with immediate offset.
In these instructions:
These instructions do not change the flags.
Load register from memory.
where:
type
cond
• Rn must not be PC
• Rt must not be SP and must not be PC.
LDR{type}{cond} Rt, label
LDRD{cond} Rt, Rt2, label
SH
-
B
SB
H
SH
-
; Conditionally store least significant byte in
; R4 to an address in R7, with unprivileged access
; Load halfword value from an address equal to
; sum of R2 and 8 into R2, with unprivileged access
signed halfword, sign extend to 32 bits (LDR only).
omit, for word.
is an optional condition code, see
is the register to load or store.
is the register on which the memory address is based.
is an offset from Rn and can be 0 to 255.
If offset is omitted, the address is the value in Rn.
is one of:
unsigned byte, zero extend to 32 bits.
signed byte, sign extend to 32 bits.
unsigned halfword, zero extend to 32 bits.
signed halfword, sign extend to 32 bits.
omit, for word.
is an optional condition code, see
“LDR and STR, immediate offset” on page
; Load two words
“Conditional execution” on page
“Conditional execution” on page
100. The difference is that
11057A–ATARM–17-Feb-12
11057A–ATARM–17-Feb-12
96.
96.

Related parts for SAM3X8E