
UM10800
All information provided in this document is subject to legal disclaimers.
© NXP Semiconductors N.V. 2016. All rights reserved.
User manual
Rev. 1.2 — 5 October 2016
71 of 487
NXP Semiconductors
UM10800
Chapter 6: LPC82x Reduced power modes and power management
•
The BOD circuit can be left running in Deep-sleep mode if required by the application.
6.7.5.2 Programming Deep-sleep mode
The following steps must be performed to enter Deep-sleep mode:
1. The PM bits in the PCON register must be set to 0x1 (
2. Select the power configuration in Deep-sleep mode in the PDSLEEPCFG (
)
register.
3. Select the power configuration after wake-up in the PDAWAKECFG (
register.
4. If any of the available wake-up interrupts are needed for wake-up, enable the
interrupts in the interrupt wake-up registers (
,
) and in the NVIC.
5. Select the IRC as the main clock. See
.
6. Write one to the SLEEPDEEP bit in the ARM Cortex-M0+ SCR register (
7. Use the ARM WFI instruction.
6.7.5.3 Wake-up from Deep-sleep mode
The microcontroller can wake up from Deep-sleep mode in the following ways:
•
Signal on one of the eight pin interrupts selected in
. Each pin interrupt must
also be enabled in the STARTERP0 register (
) and in the NVIC.
•
BOD signal, if the BOD is enabled in the PDSLEEPCFG register:
–
BOD interrupt using the deep-sleep interrupt wake-up register 1 (
). The
BOD interrupt must be enabled in the NVIC. The BOD interrupt must be selected in
the BODCTRL register.
–
Reset from the BOD circuit. In this case, the BOD circuit must be enabled in the
PDSLEEPCFG register, and the BOD reset must be enabled in the BODCTRL
register (
).
•
WWDT signal, if the watchdog oscillator is enabled in the PDSLEEPCFG register:
–
WWDT interrupt using the interrupt wake-up register 1 (
). The WWDT
interrupt must be enabled in the NVIC. The WWDT interrupt must be set in the
WWDT MOD register, and the WWDT must be enabled in the SYSAHBCLKCTRL
register.
–
Reset from the watchdog timer. The WWDT reset must be set in the WWDT MOD
register. In this case, the watchdog oscillator must be running in Deep-sleep mode
(see PDSLEEPCFG register), and the WDT must be enabled in the
SYSAHBCLKCTRL register.
•
Via any of the USART blocks if the USART is configured in synchronous mode. See
Section 13.3.2 “Configure the USART for wake-up”
•
Via the I2C. See
•
Via any of the SPI blocks. See
.
6.7.6 Power-down mode
In Power-down mode, the system clock to the processor is disabled as in Sleep mode. All
analog blocks are powered down, except for the BOD circuit and the watchdog oscillator,
which must be selected or deselected during Power-down mode in the PDSLEEPCFG