MAX32665-MAX32668 User Guide
Maxim Integrated Page 56 of 457
4.2.3 DEEPSLEEP Low Power Mode
All internal clocks, except the 8kHz, are gated off. SYS_OSC is gated off, so the two main bus clocks PCLK and HCLK are
inactive. The CPU state is retained. The 32kHz oscillator can be enabled via firmware.
Because the main bus clocks are disabled, all peripherals are inactive except for the RTC which has its own independent
oscillator. Only the RTC, USB wakeup or external interrupt can return the device to ACTIVE. The Watchdog Timers are
inactive in this mode.
All internal register contents and all RAM contents are preserved. The GPIO pins retain their state in this mode.
To enter DEEPSLEEP mode,
SCR.sleepdeep = 1; // DEEPSLEEP mode enabled
WFI (or WFE); // Enter DEEPSLEEP mode