System OFF is the deepest power-saving mode the system can enter. In this mode, the system's core functionality is powered down and most ongoing tasks are stopped.
Register SYSTEMOFF sets the device into System OFF mode. The following wakeup sources will initiate a wakeup from System OFF:
- The DETECT signal generated by the GPIO peripheral
- The ANADETECT signal generated by the LPCOMP peripheral
- The SENSE signal generated by the NFCT peripheral to wake-on-field
- The SYSCOUNTER compare event generated by the GRTC peripheral
- A valid USB voltage on the VBUS pin is detected, and again when the VBUS voltage falls below the valid range
- A debug session is started
- A pin reset
When the device wakes up from System OFF, a system reset is performed. For more details, see Reset behavior.
One or more RAM sections can be retained in System OFF depending on the RAM retention settings configured in MEMCONF — Memory configuration.
Before entering System OFF mode, the following conditions must be met.
- All on-going EasyDMA transactions must finish. See peripheral specific chapters for more information about how to get the status of EasyDMA transactions.
- The 32 MHz oscillator (HFXO) must be stopped. Stop HFXO with the XOSTOP task. The 32 kHz oscillator (LFXO) can be running.
- The register RESET.RESETREAS must be cleared. Failure to do so can make the system immediately wake up from System OFF mode.