EasyManuals Logo

Atmel AVR User Manual

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
Page #104 background imageLoading...
Page #104 background image
67. LAC – Load and Clear
67.1. Description
Load one byte indirect from data space to register and stores and clear the bits in data space specified by
the register. The instruction can only be used towards internal SRAM.
The data location is pointed to by the Z (16 bits) Pointer Register in the Register File. Memory access is
limited to the current data segment of 64KB. To access another data segment in devices with more than
64KB data space, the RAMPZ in register in the I/O area has to be changed.
The Z-pointer Register is left unchanged by the operation. This instruction is especially suited for clearing
status bits stored in SRAM.
Operation:
(i) (Z) ← ($FF – Rd) • (Z), Rd ← (Z)
Syntax: Operands: Program Counter:
(i) LAC Z,Rd 0 ≤ d ≤ 31 PC ← PC + 1
16-bit Opcode:
1001 001r rrrr 0110
67.2. Status Register (SREG) and Boolean Formula
I T H S V N Z C
Words 1 (2 bytes)
Cycles 2
Atmel AVR Instruction Set Manual [OTHER]
Atmel-0856L-AVR-Instruction-Set-Manual_Other-11/2016
104

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Atmel AVR and is the answer not in the manual?

Atmel AVR Specifications

General IconGeneral
Architecture8-bit RISC
SRAMUp to 16 KB
Clock SpeedUp to 20 MHz
Operating Voltage1.8V to 5.5V
ADC10-bit ADC
Communication InterfacesSPI, I2C, USB
PackagesDIP, SOIC, QFN
Special FeaturesWatchdog Timer
Flash Memory1KB to 256KB
EEPROM64B to 4KB

Related product manuals