beautypg.com

Data indirect with pre-decrement, Data indirect with post-increment, Constant addressing using the lpm instruction – Rainbow Electronics AT86RF401 User Manual

Page 24

background image

24

AT86RF401

1424D–RKE–09/02

Data Indirect with
Pre-decrement

Figure 17. Data Indirect Addressing with Pre-decrement

The X, Y or Z register is decremented before the operation. Operand address is the
decremented contents of the X, Y or Z register.

Data Indirect with
Post-increment

Figure 18. Data Indirect Addressing with Post-increment

The X, Y or Z register is incremented after the operation. Operand address is the con-
tent of the X, Y or Z register prior to incrementing.

Constant Addressing Using the LPM Instruction

Figure 19. Code Memory Constant Addressing

Constant byte address is specified by the Z register contents. The 10 MSBs select word
address (0–1K). For LPM, the LSB selects low byte if cleared (LSB = 0) or high byte if
set (LSB = 1).

Data Space

$0000

$DF

X, Y OR Z - REGISTER

0

15

-1

Data Space

$0000

$DF

X, Y OR Z - REGISTER

0

15

1

$3FF