Renesas RA Family Getting Started with Low Power Applications for RA6 and
RA4 Groups
R11AN0471EU0104 Rev.1.04 Page 12 of 40
Oct.1.21
3.3.1 LPM Configuration
The LPM applications add the r_lpm driver module as the main component to configure the Renesas RA
MCUs in Low Power Modes, for Sleep, Software Standby, Snooze, and Deep Software Standby. The main
settings of Low Power Modes configures the trigger/cancel sources, and internal power supply conditions for
Deep Software Standby mode.
3.3.1.1 Activation and Cancelation Sources
The cancelation source of an LPM will wake up the MCU from the specific LPM. The request for Snooze
mode puts the MCU into Snooze mode from Software Standby mode. These sources are interrupt sources.
Refer to the Low Power Modes section in Renesas RA MCU Hardware Manual for more details on what
interrupts are available in the LPM.
Table 5 shows the activation and cancelation sources using in the LPM applications.
Table 5. Activation and Cancelation Source Configuration
Clock Changing and
LPM Transition
AGT Channel 1 Underflow Interrupt
LPM Transition
AGT Channel 1 Underflow Interrupt
Source
AGT Channel 1 Underflow Interrupt
Clock Changing and
LPM Transition
Clock Changing and
LPM Transition
LPM Transition
3.3.1.2 Sleep Mode Configuration
Since Sleep mode is canceled by any interrupts, there is no need to set up a cancel source for this mode in
driver r_lpm configuration, as long as there is at least one source of interrupt active in the system. If the LPM
application is using RTOS, the Systick timer must be stopped before entering the Sleep mode because the
Systick interrupt will wake up the MCU. When you are using the RTOS, if the Systick timer is stopped, it must
be restarted after waking up for the proper RTOS kernel operation.
3.3.1.3 Software Standby Mode Configuration
Figure 8 shows how the LPM may be configured to exit Software Standby mode with AGT1 underflow
interrupt as the wake source.