18.3.1.1 Operation
All power-saving modes are controlled by sub-systems: XDS/DS Controller, CRU, PMU Controller and Wireless Subsystem. To enter into the different low power modes, the software performs the following actions:
- Disabling all interrupts
- Setting up the DSCON.DSEN, OSCCON.SLPEN, OSCCON.DRMEN and Wireless Subsystem Sleep mode control bits
- Set the Wireless Subsystem into the Low Power mode
- Enable the appropriate wake-up events
- Checking for any pending interrupts and, if present, abort Deep Sleep mode and service the interrupt
- If no pending interrupts, issue a SLEEP/WFI command from the CPU to get into the appropriate Low Power mode
The Low-Power modes entry and exit commands and wake-up resources are shown in the following table.
Device Power Modes | Entry Commands | Wake-up Resources |
---|---|---|
Run | — | — |
Idle | WFI Instruction + ~OSCCON.SLPEN | IRQ, Reset, Others(1) |
Dream | OSCCON.DREAM + Event + Standby Sleep mode | IRQ, Reset, Others |
Standby Sleep | ~DSCON.DSEN+OSCCON.SLPEN +Wireless Sleep followed by WFI | IRQ, Reset, Others |
Deep Sleep | DSCON.DSEN + {RTCC (Enabled) or DSWDT (Enabled)} + Wireless Sleep followed by WFI | INT0, RTCC, DSWDT, Reset |
Extreme Deep Sleep | DSCON.DSEN + {RTCC (Disabled) and DSWDT (Disabled) and INT0 (Enabled)} + Wireless Sleep followed by WFI | INT0, Reset |
Note:
- Others = System Wake-up (Dream), WDT (Timeout Event), DMT (Timeout Event), PLVD Event, PMU Event, External NMI/INT, DSU/ICD Debug Event, CPU Debug Event.