EasyManua.ls Logo

Atmel AVR

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...
115. SLEEP
115.1. Description
This instruction sets the circuit in sleep mode defined by the MCU Control Register.
Operation:
(i) Refer to the device documentation for detailed description of SLEEP usage.
Syntax: Operands: Program Counter:
(i) SLEEP None PC ← PC + 1
16-bit Opcode:
1001 0101 1000 1000
115.2. Status Register (SREG) and Boolean Formula
I T H S V N Z C
Example:
mov r0,r11 ; Copy r11 to r0
ldi r16,(1<<SE) ; Enable sleep mode
out MCUCR, r16
sleep ; Put MCU in sleep mode
Words 1 (2 bytes)
Cycles 1
Atmel AVR Instruction Set Manual [OTHER]
Atmel-0856L-AVR-Instruction-Set-Manual_Other-11/2016
168

Table of Contents

Related product manuals