I/o direct, Relative program addressing, rjmp and rcall, Constant addressing using the lpm instruction – Rainbow Electronics ATtiny15L User Manual

Page 8: Attiny15l

Advertising
background image

8

ATtiny15L

1187E–AVR–06/02

Operands are contained in register r (Rr) and d (Rd). The result is stored in register d
(Rd).

I/O Direct

Figure 7. I/O Direct Addressing

Operand address is contained in 6 bits of the instruction word. “n” is the destination or
source register address.

Relative Program Addressing,
RJMP and RCALL

Figure 8. Relative Program Memory Addressing

Program execution continues at address PC + k + 1. The relative address k is -2048 to
2047.

Constant Addressing using
the LPM Instruction

Figure 9. Code Memory Constant Addressing

+1

$1FF

Advertising