2 adc noise reduction mode, 3 power-down mode, 4 standby mode – Rainbow Electronics ATtiny10 User Manual
Page 24: 2 power reduction register, 3 minimizing power consumption
24
8127B–AVR–08/09
ATtiny4/5/9/10
analog comparator can be powered down by setting the ACD bit in
Control and Status Register” on page 81
. This will reduce power consumption in idle mode. If the
ADC is enabled (ATtiny5/10, only), a conversion starts automatically when this mode is entered.
7.1.2
ADC Noise Reduction Mode
When bits SM2:0 are written to 001, the SLEEP instruction makes the MCU enter ADC Noise
Reduction mode, stopping the CPU but allowing the ADC, the external interrupts, and the watch-
dog to continue operating (if enabled). This sleep mode halts clk
I/O
, clk
CPU
, and clk
NVM
, while
allowing the other clocks to run.
This mode improves the noise environment for the ADC, enabling higher resolution measure-
ments. If the ADC is enabled, a conversion starts automatically when this mode is entered.
This mode is available in all devices, although only ATtiny5/10 are equipped with an ADC.
7.1.3
Power-down Mode
When bits SM2:0 are written to 010, the SLEEP instruction makes the MCU enter Power-down
mode. In this mode, the oscillator is stopped, while the external interrupts, and the watchdog
continue operating (if enabled). Only a watchdog reset, an external level interrupt on INT0, or a
pin change interrupt can wake up the MCU. This sleep mode halts all generated clocks, allowing
operation of asynchronous modules only.
7.1.4
Standby Mode
When bits SM2:0 are written to 100, the SLEEP instruction makes the MCU enter Standby
mode. This mode is identical to Power-down with the exception that the oscillator is kept run-
ning. This reduces wake-up time, because the oscillator is already running and doesn't need to
be started up.
7.2
Power Reduction Register
The Power Reduction Register (PRR), see
“PRR – Power Reduction Register” on page 26
, pro-
vides a method to reduce power consumption by stopping the clock to individual peripherals.
When the clock for a peripheral is stopped then:
• The current state of the peripheral is frozen.
• The associated registers can not be read or written.
• Resources used by the peripheral will remain occupied.
The peripheral should in most cases be disabled before stopping the clock. Clearing the PRR bit
wakes up the peripheral and puts it in the same state as before shutdown.
Peripheral shutdown can be used in Idle mode and Active mode to significantly reduce the over-
all power consumption. See
“Supply Current of I/O Modules” on page 122
for examples. In all
other sleep modes, the clock is already stopped.
7.3
Minimizing Power Consumption
There are several issues to consider when trying to minimize the power consumption in an AVR
Core controlled system. In general, sleep modes should be used as much as possible, and the
sleep mode should be selected so that as few as possible of the device’s functions are operat-
ing. All functions not needed should be disabled. In particular, the following modules may need
special consideration when trying to achieve the lowest possible power consumption.