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
416 of 464
NXP Semiconductors
UM10850
Chapter 30: LPC5410x Power profiles/Power control API
Remark:
Aside from the analog peripherals listed with this parameter, the serial
peripherals can also wake up the chip from deep-sleep or power-down modes on an
interrupt triggered by an incoming signal. This wake-up scenario is not configured using
the Chip_POWER_EnterPowerMode API. For details, see
Section 22.3.1 “Configure the SPI for wake-up”
30.4.3.1 Param0: mode
The mode parameter defines the low power mode and prepares the chip to enter the
selected mode.
The following modes are valid:
#define SLEEP
0
#define DEEP_SLEEP
1
#define POWER_DOWN
2
#define DEEP_POWER_DOWN
3
30.4.3.2 Param1: peripheral
If sleep mode is selected with the mode parameter, the peripheral parameter is ignored.
The peripheral parameter defines which analog peripherals can wake up the chip from
deep-sleep, power-down, or deep power-down mode. The selected peripherals remain
running in deep-sleep or power-down modes. For example, the watchdog oscillator must
be running if the WWDT is to remain active in deep-sleep or power-down mode or the
RTC must be running if it is to remain active in deep power-down mode.
The peripheral parameter is a 32-bit value that corresponds to the PDRUNCFG register
(see
30.5 Functional description
30.5.1 Example low power mode control
30.5.1.1 Enter sleep mode
/* peripheral parameter is don’t care*/
Chip_POWER_EnterPowerMode
(POWER_SLEEP, 0x0 );
/* going to sleep mode. */
30.5.1.2 Enter deep-sleep mode and set up WWDT and BOD for wake-up
/* configure wwdt and bod event to wake up the chip from deep-sleep*/
LPC_SYSCON->STARTER0 = 0x3;
/* WDT_OSC and BOD are turned on */
Chip_POWER_EnterPowerMode
(
POWER_DEEP_SLEEP, PDRUNCFG_PD_WDT_OSC |
PDRUNCFG_PD_BOD_RESET | PDRUNCFG_PD_BOD_INTR);
/* going to deep-sleep mode. */