The IDLE mode allows power optimization with the fastest wake-up time.
The CPU is stopped. To further reduce power
consumption, the user can disable the clocking of modules and clock sources by configuring
the SLEEPCFG bit group to IDLE. The peripheral will be halted regardless of the bit settings of the mask
registers in the MCLK (MCLK.AHBMASK, MCLK.APBxMASK).
- Entering IDLE mode: The IDLE mode is
entered by executing the WFI instruction. Additionally, if the SLEEPONEXIT bit in the
ARM Cortex System Control register (SCR) is set, the IDLE mode will also be entered when
the CPU exits the lowest priority ISR. This mechanism can be useful for applications
that only require the processor to run when an interrupt occurs. Before entering the
IDLE mode, the user must configure the Sleep Configuration register.
- Exiting IDLE mode: The processor wakes
the system up when it detects any non-masked interrupt with sufficient priority to cause
exception entry. The system goes back to the ACTIVE mode. The CPU and affected modules
are restarted.
Regulator operates in normal mode.