ATTIny2313-16MI ATMEL Corporation, ATTIny2313-16MI Datasheet - Page 31

no-image

ATTIny2313-16MI

Manufacturer Part Number
ATTIny2313-16MI
Description
8-bit AVR Microcontroller with 2K Bytes In-System Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet
Idle Mode
Power-down Mode
Standby Mode
2543C–AVR–12/03
When the SM1..0 bits are written to 00, the SLEEP instruction makes the MCU enter
Idle mode, stopping the CPU but allowing the UART, Analog Comparator, ADC, USI,
Timer/Counters, Watchdog, and the interrupt system to continue operating. This sleep
mode basically halts clk
Idle mode enables the MCU to wake up from external triggered interrupts as well as
internal ones like the Timer Overflow and UART Transmit Complete interrupts. If wake-
up from the Analog Comparator interrupt is not required, the Analog Comparator can be
powered down by setting the ACD bit in the Analog Comparator Control and Status
Register – ACSR. This will reduce power consumption in Idle mode.
When the SM1..0 bits are written to 01 or 11, the SLEEP instruction makes the MCU
enter Power-down mode. In this mode, the external Oscillator is stopped, while the
external interrupts, the USI start condition detection, and the Watchdog continue operat-
ing (if enabled). Only an External Reset, a Watchdog Reset, a Brown-out Reset, USI
start condition interrupt, an external level interrupt on INT0, or a pin change interrupt can
wake up the MCU. This sleep mode basically halts all generated clocks, allowing opera-
tion of asynchronous modules only.
Note that if a level triggered interrupt is used for wake-up from Power-down mode, the
changed level must be held for some time to wake up the MCU. Refer to “External Inter-
rupts” on page 60 for details.
When waking up from Power-down mode, there is a delay from the wake-up condition
occurs until the wake-up becomes effective. This allows the clock to restart and become
stable after having been stopped. The wake-up period is defined by the same CKSEL
Fuses that define the Reset Time-out period, as described in “Clock Sources” on page
23.
When the SM1..0 bits are 10 and an external crystal/resonator clock option is selected,
the SLEEP instruction makes the MCU enter Standby mode. This mode is identical to
Power-down with the exception that the Oscillator is kept running. From Standby mode,
the device wakes up in six clock cycles.
Table 14. Active Clock Domains and Wake-up Sources in the Different Sleep Modes.
Notes:
Sleep Mode
Idle
Power-down
Standby
1. Only recommended with external crystal or resonator selected as clock source.
2. For INT0, only level interrupt.
(1)
Active Clock Domains
CPU
and clk
FLASH
, while allowing the other clocks to run.
X
Oscillators
X
X
ATtiny2313/V
X
X
X
(2)
(2)
Wake-up Sources
X
X
X
X
X
31

Related parts for ATTIny2313-16MI