Datasheet

39
ATmega323(L)
1457E11/01
In future devices this is subject to change. It is recommended for future code compatibil-
ity to disable Timer/Counter2 interrupts during ADC Noise Reduction mode if the
Timer/Counter2 is clocked synchronously.
Power-down Mode When the SM2..0 bits are 010, the SLEEP instruction makes the MCU enter Power-
down mode. In this mode, the external oscillator is stopped, while the external interrupts,
the 2-wire Serial Interface address watch, and the Watchdog continue operating (if
enabled). Only an external reset, a Watchdog Reset, an 2-wire Serial Interface address
match interrupt, an external level interrupt on INT0 or INT1, or an external edge interrupt
on INT2 can wake up the MCU.
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. This makes the MCU
less sensitive to noise. The changed level is sampled twice by the Watchdog oscillator
clock, and if the input has the required level during this time, the MCU will wake up. The
period of the Watchdog oscillator is 1 µs (nominal) at 5.0V and 25
°C. The frequency of
the Watchdog oscillator is voltage dependent as shown in the Electrical Characteristics
section.
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 seen in Table 6 on page 27.
Power-save Mode When the SM2..0 bits are 011, the SLEEP instruction forces the MCU into the Power-
save mode. This mode is identical to Power-down, with one exception:
If Timer/Counter2 is clocked asynchronously, i.e., the AS2 bit in ASSR is set,
Timer/Counter2 will run during sleep. The device can wake up from either Timer Over-
flow or Output Compare event from Timer/Counter2 if the corresponding
Timer/Counter2 interrupt enable bits are set in TIMSK, and the global interrupt enable
bit in SREG is set.
If the asynchronous timer is NOT clocked asynchronously, Power-down mode is recom-
mended instead of Power-save mode because the contents of the registers in the
asynchronous timer should be considered undefined after wake-up in Power-save mode
if AS2 is 0.
Standby Mode When the SM2..0 bits are 110 and an external crystal/resonator clock option is selected,
the SLEEP instruction forces the MCU into the 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 only 6 clock cycles.
Extended Standby Mode When the SM2..0 bits are 111 and an external crystal/resonator clock option is selected,
the SLEEP instruction forces the MCU into the Extended Standby Mode. This mode is
identical to Power-save mode with the exception that the oscillator is kept running. From
Extended Standby Mode, the device wakes up in only 6 clock cycles.