Power Management
What is commonly used to wake a battery-powered device from sleep at a set time?
- AKeeping the CPU running at maximum frequency
- BAn alarm from a real-time clock (RTC) that keeps running on tiny power during sleep
- CRemoving and reinserting the battery
Show answer and explanation
Answer: B. An alarm from a real-time clock (RTC) that keeps running on tiny power during sleep
Even during sleep, a small real-time clock driven by a 32.768 kHz crystal or similar keeps time on a microampere or less. At the set time it raises an alarm interrupt that wakes the CPU. Other wake sources include button or sensor signal changes and incoming communications. Configuring which sources may wake the device lets it sleep deeply the rest of the time.
- A. Then it is not sleeping at all.
- B. Correct. Pin-change interrupts and the like can also wake it.
- C. Removing the battery loses the time and other state.