
25
ATtiny40 [DATASHEET]
8263B–AVR–01/2013
BOD disable is controlled by the BODS (BOD Sleep) bit of MCU Control Register, see
“MCUCR – MCU ControlRegister” on page 26. Writing this bit to one turns off BOD in Power-down and Stand-by, while writing a zero keeps
the BOD active. The default setting is zero, i.e. BOD active.
7.3
Power Reduction Register
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 overall power consump-
stopped.
7.4
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 operating. All functions not needed should be disabled. In par-
ticular, the following modules may need special consideration when trying to achieve the lowest possible power
consumption.
7.4.1
Analog Comparator
When entering Idle mode, the analog comparator should be disabled if not used. In the power-down mode, the
7.4.2
Analog to Digital Converter
If enabled, the ADC will be enabled in all sleep modes. To save power, the ADC should be disabled before entering
any sleep mode. When the ADC is turned off and on again, the next conversion will be an extended conversion.
7.4.3
Watchdog Timer
If the Watchdog Timer is not needed in the application, this module should be turned off. If the Watchdog Timer is
enabled, it will be enabled in all sleep modes, and hence, always consume power. In the deeper sleep modes, this
how to configure the Watchdog Timer.
7.4.4
Brown-out Detector
If the Brown-out Detector is not needed in the application, this module should be turned off. If the Brown-out Detec-
tor is enabled by the BODLEVEL Fuses, it will be enabled in all sleep modes, and hence, always consume power.
In the deeper sleep modes, this will contribute significantly to the total current consumption. See
“Brown-out Detec-