Sysctl Low Power Modes
This example showcases different low power modes and their associated wakeup mechanisms.
NOTE: To ensure proper operation, disconnect any active debug sessions in CCS or your IDE, issue a reset, and observe the output on the serial terminal.
This example configures the following peripherals. - TimerG (Power Domain 1). Single Shot mode, Period = 1s - Watchdog (Power Domain 0). Interval Timer Mod, Period = 2s - GPIO connected to Wake button on LP/SOM. Fast Wake enabled - UART - For logging
The following low power modes are demonstrated :
SLEEP
In SLEEP mode, the CPU is disabled via clock gating while maintaining the device’s RUN-mode configuration. Any peripheral interrupt or GPIO input can trigger a wakeup event.
This example uses a Timer interrupt to wake the device from SLEEP mode. The Timer module resides in Power Domain 1 (PD1) and is configured as a single-shot timer with a 1s period.
STOP
In STOP mode, Power Domain 1 (PD1) is powered down, disabling the CPU, DMA, SRAM, FLASH, PLL, XTAL, and PD1 peripherals while maintaining their state in retention mode. The VDDC voltage is reduced to 10% while active PD0 peripherals operate at 4 MHz, clocked by SYSOSC appropriately divided for lower frequency output.
This example uses a Watchdog interrupt to wake the device from STOP mode. The Watchdog module operates in Power Domain 0 (PD0) and is configured as an interval timer with a 2s period. The Timer module is restarted but remains disabled until the device exits STOP mode.
STANDBY0/1
In STANDBY mode, Power Domain 1 (PD1) is powered down, disabling the CPU, DMA, SRAM, FLASH, PLL, XTAL, and PD1 peripherals while retaining their state. The VDDC supply voltage is reduced to 10%, and active PD0 peripherals operate at a maximum frequency of 32.768 kHz, clocked by LFOSC. High-speed oscillators including SYSPLL, XTAL, HFCLK_IN, and SYSOSC are disabled. A GPIO can trigger device wakeup from this mode.
This example configures a GPIO connected to a wakeup button to generate an interrupt and wake the device from STANDBY mode.
External Connections
None. Disconnect the debug session, issue a reset, and observe the output on the serial terminal.