Handling the Hardware Resources
3.1 Memory Addressing Modes
The microcontrollers of the AVR family support powerful and efficient addressing modes for access to the program memory (flash) and data memory (SRAM). This chapter describes the different addressing modes supported by the AVR architecture.
3.1.1 Register Direct Addressing
The immediate instructions include their operands in the instruction word and access directly to the destination register, as Figure 3-1 shows.
Figure 3-1 Direct single-register addressing.
An example of direct single register addressing is the instruction ldi r0, $FF. The immediate value $FF will be stored in ...
Get AVR RISC Microcontroller Handbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.