UM10429
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2010. All rights reserved.
User manual
Rev. 1 — 20 October 2010
31 of 258
NXP Semiconductors
UM10429
Chapter 3: LPC1102 System configuration
3.8.1.1 Power configuration in Active mode
Power consumption in Active mode is determined by the following configuration choices:
•
The SYSAHBCLKCTRL register controls which memories and peripherals are
running (
•
The power to various analog blocks (PLL, oscillators, the ADC, the BOD circuit, and
the flash block) can be controlled at any time individually through the PDRUNCFG
register (
•
The clock source for the system clock can be selected from the IRC (default), the
system oscillator, or the watchdog oscillator (see
and related registers).
•
The system clock frequency can be selected by the SYSPLLCTRL (
) and the
SYSAHBCLKDIV register (
•
Selected peripherals (UART, SPI0, WDT) use individual peripheral clocks with their
own clock dividers. The peripheral clocks can be shut down through the
corresponding clock divider registers.
3.8.2 Sleep mode
In Sleep mode, the system clock to the ARM Cortex-M0 core is stopped, and execution of
instructions is suspended until either a reset or an enabled interrupt occurs.
Peripheral functions, if selected to be clocked in the SYSAHBCLKCTRL register, 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 their 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.
3.8.2.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 selected as in Active mode.
3.8.2.2 Programming Sleep mode
The following steps must be performed to enter Sleep mode:
1. The DPDEN bit in the PCON register must be set to zero (
).
2. The SLEEPDEEP bit in the ARM Cortex-M0 SCR register must be set to zero, see
(
3. Use the ARM Cortex-M0 Wait-For-Interrupt (WFI) instruction.