13.3.3.1 Sleep Modes
Three different sleep modes can be enabled to reduce power consumption.
- Idle
- The CPU stops executing code, resulting in reduced power consumption.
- Standby
- All high-frequency clocks are stopped unless running in Standby sleep mode is
enabled for a peripheral or clock. This is enabled by writing the corresponding
RUNSTDBY bit to ‘
1’. The power consumption is dependent on the enabled functionality. - Power-Down
- All high-frequency clocks are stopped, resulting in a power consumption lower than the Idle sleep mode.
Important: The TWI address match
and CCL wake-up sources must be disabled when High-Temperature Low Leakage Enable is
activated to avoid unpredictable behavior.
Note:
- Refer to the Sleep Mode Activity tables for further information.
Refer to the Wake-up Time section for information on how the wake-up time is affected by the different sleep modes.
| Clock | Peripheral | Active in Sleep Mode | |||
|---|---|---|---|---|---|
| Idle | Standby | Power-Down | |||
| HTLLEN=0 | HTLLEN=1 | ||||
| CLK_CPU | CPU | - | - | - | - |
| CLK_RTC | RTC | X | X(1,2) | X(2) | X(2) |
| CLK_WDT | WDT | X | X | X | X |
| CLK_BOD(3) | BOD | X | X | X | X |
| (4) | CCL | ||||
| CLK_PER | EVSYS | X | X | X | X |
| NVM(5) | X | X | X | X | |
| ACn | X | X(1) | - | - | |
| ADCn | |||||
| DACn | |||||
| OPAMP | |||||
| TCAn | |||||
| TCBn | |||||
| ZCDn | |||||
| All other peripherals | X | - | - | - | |
Note:
- For the peripheral to run in Standby sleep mode, the RUNSTDBY bit of the corresponding peripheral must be set
- In Standby sleep mode, only the RTC functionality requires the RUNSTDBY bit to be set. In Power-Down sleep mode, only the PIT functionality is available.
- CLK_BOD is required only when the BOD is running in Sampled mode
- The clock domain depends on the clock source selected for CCL
- Programming in progress will be completed, then the NVM peripheral will be disabled
| Clock Source | Active in Sleep Mode | |||
|---|---|---|---|---|
| Idle | Standby | Power-Down | ||
| HTLLEN=0 | HTLLEN=1 | |||
| Main clock source | X | X(1) | - | - |
| RTC clock source | X | X(1,2) | X(2) | X(2) |
| WDT oscillator | X | X | X | X |
| BOD oscillator(3) | X | X | X | X |
| CCL clock source | X | X(1) | - | - |
| TCD clock source | X | - | - | - |
Note:
- For the clock source to run in Standby sleep mode, the RUNSTDBY bit of the corresponding peripheral must be set
- In Standby sleep mode, only the RTC functionality requires the RUNSTDBY bit to be set. In Power-Down sleep mode, only the PIT functionality is available.
- CLK_BOD is required only then the BOD is running in Sampled mode
| Wake-Up Sources | Active in Sleep Mode | |||
|---|---|---|---|---|
| Idle | Standby | Power-Down | ||
| HTLLEN=0 | HTLLEN=1 | |||
| PORT Pin interrupt | X | X(1) | X(1) | X(1) |
| BOD VLM interrupt | X | X | X | X |
| MVIO interrupts | X | X | X | X |
| RTC interrupts | X | X(2,3) | X(3) | X(3) |
| TWI Address Match interrupt | X | X | X | - |
| CCL interrupts | X | X(2) | X(4) | - |
| USART Start-Of-Frame interrupt | X | X | - | - |
| TCAn interrupts | X | X(2) | - | - |
| TCBn interrupts | ||||
| ADCn interrupts | ||||
| ACn interrupts | ||||
| ZCD interrupts | ||||
| All other interrupts | X | - | - | - |
Note:
- The I/O pin must be configured according to Asynchronous Sensing Pin Properties in the PORT section
- For the peripheral to run in Standby sleep mode, the RUNSTDBY bit of the corresponding peripheral must be set
- In Standby sleep mode, only the RTC functionality requires the RUNSTDBY bit to be set. In Power-Down sleep mode, only the PIT functionality is available.
- CCL will only wake up the device if the path
through LUTn is asynchronous (FILTSEL=
0x0and EDGEDET=0x0in the CCL.LUTnCTRLA register)
