A Sleep mode is entered by executing the Wait For Interrupt instruction (WFI). The Sleep Mode bits in the Sleep Configuration register (SLEEPCFG.SLEEPMODE) select the level of the sleep mode.
| Mode | Mode Entry | Wake-Up Sources |
|---|---|---|
| IDLE | SLEEPCFG.SLEEPMODE = IDLE | Synchronous (2) (APB, AHB), asynchronous (1) |
| STANDBY | SLEEPCFG.SLEEPMODE = STANDBY | Synchronous(3), Asynchronous |
The sleep modes (idle, standby) and their effect on the clocks activity, the regulator and the NVM state are described in the table and the sections below.
| Mode | CPU clock | AHB clock | APB clock | Main clock | GCLK clocks | Oscillators | Regulator | RAM | |
|---|---|---|---|---|---|---|---|---|---|
| ONDEMAND = 0 | ONDEMAND = 1 | ||||||||
| IDLE | Stop | Stop(2) | Stop(2) | Run | Run(1) | Run | Run if requested | Main | Normal |
| STANDBY | Stop | Stop(2) | Stop(2) | Stop | Stop(2) | Run if requested or RUNSTDBY=1 | Run if requested | LPVREG(3) | Low power(4) |