Difference between revisions of "LPC11U68 deep power down"
m (1 revision) |
|
(No difference)
|
Latest revision as of 16:52, 11 September 2015
A review of document
UM10732LPC11U6x/E6x User manual Rev. 1.3 — 19 May 2014
Contents
Wake Up sources
- Deep power-down WAKEUP pin PIO0_16
- RTC 1 kHz timer time-out and alarm
Conditions
- Enable the WAKEUP function in the GPREG4 register in the PMU(Power Management Unit).
- Enable the RTC oscillator in the RTC CTRL register.
- Enable RTC alarm signal to wake up the part from Deep power-down mode in the RTC CTRL register.
- Select RTC clock in the RTC CTRL register.
- Start RTC wake-up timer by writing a time-out value to the RTC WAKE register
Programming Deep power-down mode
The following steps must be performed to enter Deep power-down mode:
- Pull the WAKEUP pin externally HIGH.
- Ensure that bit 3 in the PCON register (Table 77) is cleared.
- Write 0x3 to the PD bits in the PCON register (see Table 77).
- Store data to be retained in the general purpose registers (Section 5.4.2).
- Write one to the SLEEPDEEP bit in the ARM Cortex-M0 SCR register.
- Use the ARM WFI instruction.
Wake-up from Deep power-down mode
Pulling the WAKEUP pin LOW wakes up the part from Deep power-down, and the chip goes through the entire reset process
- On the WAKEUP pin, transition from HIGH to LOW.
- The PMU will turn on the on-chip voltage regulator. When the core voltage reaches the power-on-reset (POR) trip point, a system reset will be triggered and the chip re-boots.
- All registers except the GPREG0 to GPREG4 and PCON will be in their reset state.
- Once the chip has booted, read the deep power-down flag in the PCON register (Table 77) to verify that the reset was caused by a wake-up event from Deep power-down and was not a cold reset.
- Clear the deep power-down flag in the PCON register (Table 77).
- (Optional) Read the stored data in the general purpose registers (Section 5.4.2).
- Set up the PMU for the next Deep power-down cycle.
- Remark: The RESET pin has no functionality in Deep power-down mode.
Programming Deep power-down mode using the RTC for wake-up
The following steps must be performed to enter Deep power-down mode when using the RTC for waking up:
- Set up the RTC high-resolution timer. Write to the RTC VAL register. This starts the high-resolution timer if enabled. Another option is to use the 1 Hz alarm timer.
- Ensure that bit 3 in the PCON register (Table 77) is cleared.
- Store data to be retained in the general purpose registers (Section 5.4.2).
- Use the ARM WFI instruction
Wake-up from Deep power-down mode using the RTC
The part goes through the entire reset process when the RTC times out:
- When the high-resolution timer count reaches 0, the following happens:
- – The PMU will turn on the on-chip voltage regulator. When the core voltage reaches
- the power-on-reset (POR) trip point, a system reset will be triggered and the chip boots.
- – All registers except the GPREG0 to GPREG4 registers and PCON will be in their reset state.
- – The PMU will turn on the on-chip voltage regulator. When the core voltage reaches
- Once the chip has booted, read the deep power-down flag in the PCON register
(Table 77) to verify that the reset was caused by a wake-up event from Deep power-down and was not a cold reset.
- Clear the deep power-down flag in the PCON register (Table 77).
- (Optional) Read the stored data in the general purpose registers (Section 5.4.2).
- Set up the PMU for the next Deep power-down cycle.
RTC
• RTC alarm and high-resolution/wake-up timer time-out each generate independent interrupt requests. Either time-out can wake up the part from any of the low power modes, including Deep power-down
RTC CTRL register
- page 399
- This register controls which clock the RTC uses (1.024 kHz or 1 Hz) and enables the two
RTC interrupts to wake up the part from Deep power-down.
- To wake up the part from Deep-sleep or Power-down modes, enable the RTC interrupts in the system control block
STARTLOGIC1 register.