3-18 Intel® PXA26x Processor Fa mily Developer’s Manual
Clocks and Power Manager
in software by reading the Saved Program Status Register (SPSR) to see if the previous context
was executing in abort mode.
To enter sleep mode, software must complete this sequence:
1. Software uses external memory a nd the Power Manager Scratch Pad Register (PSPR) to
preserve critical states.
2. Software sets sleep mode in PW RMODE [M]. A n inte rr upt imm edia tel y abo rt s s leep m ode a nd
normal processing resumes.
3. The CPU waits until all instructions in the pipeline are complete.
4. The memory controller completes outstanding transact ions in its buffers and from the CPU.
New transactions from the LCD or DMA contro lle rs are ignored.
5. The memory controller places the SDRAM in self-refresh mode.
6. The power manager switches the GPIO output pins to their sleep state. This sleep state is
programmed in advance by loading the Power Mana ge r GPIO Sleep State registers (PGSR0,
PGSR1, and PGSR2). To avoid contention on the bus when the processor attem pts t o wake up,
ensure that the chip selects are not set to 0 during sleep mode.
7. The CPU clock stops and power is removed from the Core.
8. PWR_EN is deasserted.
When the power manger gets the indication from the memory controller that it has finished its
outstanding transactions and has put the SDRAM into self-refresh, there ar e eigh t co re clock cycles
before the GPIOs latch the PGSR values and four core clock cycles after that, nRESET_OUT
asserts low.
In some systems the imprecise data abort latency lasts longer than the residual charge in the failed
power supply can sustain operation. This norm a l ly only occurs when the processor is in a power
mode or sequence that requires that the processor exit before sleep mode starts. Frequency change
sequence is an example of such a power sequence. In these power modes and sequences, the IDAE
bit must not be set. This allows the processor to enter sleep mode immedia tely but any critical
states in the processor are lost.
If the IDAE bit is not set and the nVDD_FAULT or nBATT_FAULT pin is asserted, the sleep
sequence begins at step 4 in the list above.
3.4.9.4 Behavior in Sleep Mode
In sleep mode, all processor and peripheral clocks (except the RTC) are disabled. The processor
does not recognize interrupts or external pin tran s iti ons exce pt val id w ake- up signa ls, re set si gnal s,
and the nBATT_FAULT signal.
If the nBATT_FAULT signal is asserted while in sleep mode, GPIO[1:0] are set as the only valid
wake-up signals.
The power manager watches for wake up events programmed by the CPU before sl eep mo de st art s
or set by the power manager it d etect s a fa ult cond iti on . In or der t o de tec t a GP IO p in r is ing -ed ge or
falling-edge, the rising- or falling-edge must be held for more than one full 32.768-KHz-cloc k
cycle. The power manager takes three 32.768-KHz-clock cycles to acknowledge the GPIO edge
and begin the wake up sequence.