beautypg.com

Data indirect with post-increment – Rainbow Electronics ATmega103L User Manual

Page 15

background image

ATmega603/103

15

Data Indirect With Post-Increment

Figure 15. Data Indirect Addressing with Post-Increment

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

Constant Addressing Using the LPM and ELPM Instructions

Figure 16. Code Memory Constant Addressing

Constant byte address is specified by the Z-register contents. The 15 MSBs select word address (0 - 32K), LSB selects low
byte if cleared (LSB = 0) or high byte if set (LSB = 1). If ELPM is used, LSB of the RAM Page Z register - RAMPZ is used to
select low or high memory page (RAMPZ0 = 0: Low Page, RAMPZ0 = 1: High Page). ELPM does not apply to the
ATmega603.

Data Space

$0000

$FFFF

X, Y OR Z - REGISTER

0

15

1

PROGRAM MEMORY

$0000

$7FFF/$FFFF

0

1

15

Z - REGISTER