Sleep modes and waking up
A battery device spends most of its time asleep. What stays on, what wakes it up, and what is lost while it sleeps.
Read firstWriting a power budget
Key points
- Microcontrollers offer several sleep depths; deeper modes switch off more clocks, regulators and memory, saving power at the cost of longer wake-up times and, in the deepest modes, lost RAM contents.12
- Common wake sources are an RTC alarm, a pin change from a button or sensor interrupt, and a peripheral event such as an incoming byte.12
- Many digital sensors can watch a threshold themselves and raise an interrupt line, letting the main processor stay asleep until something actually changes.3
Where to go next
- Designing for power that cuts out builds on this
Spotted a mistake, or found this useful?
Tell usSources
- ESP-IDF: Sleep Modes · Espressif · Project docs
- RP2350 datasheet · Raspberry Pi · Datasheet
- LIS2DW12 datasheet (ST DocID029682 Rev 4) · STMicroelectronics · Datasheet