EasyManua.ls Logo

Atmel AVR - 2.8. Data Indirect with Post-increment; 2.9. Program Memory Constant Addressing using the LPM, ELPM, and SPM Instructions

Atmel AVR
191 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2.8. Data Indirect with Post-increment
Figure 2-8. 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.
2.9. Program Memory Constant Addressing using the LPM, ELPM, and SPM
Instructions
Figure 2-9. Program Memory Constant Addressing
Constant byte address is specified by the Z-register contents. The 15 MSBs select word address. For
LPM, the LSB selects low byte if cleared (LSB = 0) or high byte if set (LSB = 1). For SPM, the LSB should
be cleared. If ELPM is used, the RAMPZ Register is used to extend the Z-register.
Atmel AVR Instruction Set Manual [OTHER]
Atmel-0856L-AVR-Instruction-Set-Manual_Other-11/2016
18

Table of Contents

Related product manuals