
UM10850
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2016. All rights reserved.
User manual
Rev. 2.4 — 13 September 2016
81 of 464
NXP Semiconductors
UM10850
Chapter 5: LPC5410x Power Management
•
The power API provides an easy way to optimize power consumption depending on
CPU load and performance requirements. See
.
5.3.3 Sleep mode
In Sleep mode, the system clock to the CPU is stopped and execution of instructions is
suspended until either a reset or an interrupt occurs.
Peripheral functions, if selected to be clocked in the AHBCLKCTRL registers, continue
operation during Sleep mode and may generate interrupts to cause the processor to
resume execution. Sleep mode eliminates dynamic power used by the processor itself,
memory systems and related controllers, and internal buses. The processor state and
registers, peripheral registers, and internal SRAM values are maintained, and the logic
levels of the pins remain static.
As in active mode, the power API provides an easy way to optimize power consumption
depending on CPU load and performance requirements in sleep mode. See
Section 30.4.3 “Chip_POWER_EnterPowerMode”
5.3.3.1 Power configuration in Sleep mode
Power consumption in Sleep mode is configured by the same settings as in Active mode:
•
The clock remains running.
•
The system clock frequency remains the same as in Active mode, but the processor is
not clocked.
•
Analog and digital peripherals are powered and selected as in Active mode through
the PDRUNCFG, AHBCLKCTRL0, AHBCLKCTRL1 registers.
5.3.3.2 Programming Sleep mode
The following steps must be performed to enter Sleep mode:
1. In the NVIC, enable all interrupts that are needed to wake up the part.
2. Call power API:
pPWRD->power_mode_configure(SLEEP, peripheral);
Remark:
The
peripheral
parameter is don’t care.
3. Execute the Wait-For-Interrupt (WFI) instruction.
5.3.3.3 Wake-up from Sleep mode
Sleep mode is exited automatically when an interrupt enabled by the NVIC arrives at the
processor or a reset occurs. After wake-up caused by an interrupt, the device returns to its
original power configuration defined by the contents of the PDRUNCFG and the
AHBCLKCTRL registers. If a reset occurs, the microcontroller enters the default
configuration in Active mode.
5.3.4 Deep-sleep mode
In Deep-sleep mode, the system clock to the processor is disabled as in Sleep mode. All
analog blocks are powered down by default but can be selected to keep running through
the power API if needed as wake-up sources. The main clock, and therefore all peripheral
clocks, are disabled. The IRC is disabled. The flash is in stand-by mode.