User`s manual

RX62N Group, RX621 Group 4. Library Reference
4.2.6. Low Power Consumption
1) R_LPC_Create
Synopsis
Configure the MCU low power conditions.
Prototype
bool R_LPC_Create(
uint32_t data1,
// Configuration options
uint32_t data2
// Waiting times
);
Description (1/2)
Load the registers that control module or CPU operation.
[data1]
Select the required settings. If multiple selections are required, use "|" to separate each selection.
The default settings are shown in bold. Specify PDL_NO_DATA to use the defaults.
Software and Deep Software Standby mode output port control
PDL_LPC_EXT_BUS_ON or
PDL_LPC_EXT_BUS_HI_Z
Leave the external bus address and control signals active, or
set them to the high-impedance state.
On-chip RAM power / USB resume detection control
PDL_LPC_RAM_USB_DETECT_ON or
PDL_LPC_RAM_USB_DETECT_OFF
Enable or disable power to the RAM (from
00000000h to 0000FFFFh) and USB resume
detection function in deep software standby mode.
I/O port retention control
PDL_LPC_IO_SAME or
PDL_LPC_IO_DELAY
Select whether I/O port retention is cancelled when deep software
standby mode is ended, or when CPU operation has resumed.
Deep software standby cancel control
PDL_LPC_CANCEL_IRQ0_DISABLE or
PDL_LPC_CANCEL_IRQ0_FALLING or
PDL_LPC_CANCEL_IRQ0_RISING
Prevent or allow an edge on the IRQ0-A pin to
cancel deep software standby mode.
PDL_LPC_CANCEL_IRQ1_DISABLE or
PDL_LPC_CANCEL_IRQ1_FALLING or
PDL_LPC_CANCEL_IRQ1_RISING
Prevent or allow an edge on the IRQ1-A pin to
cancel deep software standby mode.
PDL_LPC_CANCEL_IRQ2_DISABLE or
PDL_LPC_CANCEL_IRQ2_FALLING or
PDL_LPC_CANCEL_IRQ2_RISING
Prevent or allow an edge on the IRQ2-A pin to
cancel deep software standby mode.
PDL_LPC_CANCEL_IRQ3_DISABLE or
PDL_LPC_CANCEL_IRQ3_FALLING or
PDL_LPC_CANCEL_IRQ3_RISING
Prevent or allow an edge on the IRQ3-A pin to
cancel deep software standby mode.
PDL_LPC_CANCEL_NMI_DISABLE or
PDL_LPC_CANCEL_NMI_FALLING or
PDL_LPC_CANCEL_NMI_RISING
Prevent or allow an edge on the NMI pin to cancel
deep software standby mode.
PDL_LPC_CANCEL_LVD_DISABLE or
PDL_LPC_CANCEL_LVD_ENABLE
Prevent or allow the Voltage Detection Circuit to
cancel deep software standby mode.
PDL_LPC_CANCEL_RTC_DISABLE or
PDL_LPC_CANCEL_RTC_ENABLE
Prevent or allow the Realtime Clock to cancel deep
software standby mode.
PDL_LPC_CANCEL_USB_DISABLE or
PDL_LPC_CANCEL_USB_ENABLE
Prevent or allow the USB Suspend/Resume to
cancel deep software standby mode.
R20UT0084EE0112 Rev.1.12 Page 4-44
July. 16, 2014