Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
ATtiny104_Datasheet.pdf
Скачиваний:
0
Добавлен:
12.02.2026
Размер:
3.8 Mб
Скачать

Related Links

SMCR on page 43

Interrupts on page 55

11.3.1.Idle Mode

When the SMCR.SM is written to '0x000', the SLEEP instruction makes the MCU enter Idle mode, stopping the CPU but allowing the Analog Comparator, Timer/Counters, Watchdog, and the interrupt

system to continue operating. This sleep mode basically halts clkCPU and clkNVM, while allowing the other clocks to run.

Idle mode enables the MCU to wake up from external triggered interrupts as well as internal ones like the timer overflow. 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.ACD). This will reduce power consumption in Idle mode. If the ADC is enabled , a conversion starts automatically when this mode is entered.

Related Links

ACSRA on page 162

11.3.2.ADC Noise Reduction Mode

When the SMCR.SM is written to '0x001', the SLEEP instruction makes the MCU enter ADC Noise Reduction mode, stopping the CPU but allowing the ADC, the external interrupts and the Watchdog to

continue operating (if enabled). This sleep mode basically halts clkI/O, clkCPU, and clkNVM, while allowing the other clocks to run.

This improves the noise environment for the ADC, enabling higher resolution measurements. If the ADC is enabled, a conversion starts automatically when this mode is entered.

This mode is available in all devices equipped with an ADC.

11.3.3.Power-Down Mode

When the SMCR.SM is written to '0x010', the SLEEP instruction makes the MCU enter Power-Down mode. In this mode, the external Oscillator is stopped, while the external interrupts and the Watchdog continue operating (if enabled).

Only an these events can wake up the MCU:

Watchdog System Reset

External level interrupt on INT0

Pin change interrupt

This sleep mode basically halts all generated clocks, allowing operation of asynchronous modules only.

11.3.4.Standby Mode

When the SMCR.SM is written to '0x100', 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. This reduces wake-up time, because the oscillator is already running and doesn't need to be started up.

11.4.Power Reduction Register

The Power Reduction Register (PRR) provides a method to stop the clock to individual peripherals to reduce power consumption. When the clock for a peripheral is stopped then:

The current state of the peripheral is frozen.

Atmel ATtiny102 / ATtiny104 [DATASHEET]

40

Atmel-42505D-ATtiny102-ATtiny104_Datasheet_Complete-10/2016