
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
208 of 487
NXP Semiconductors
UM10800
Chapter 14: LPC82x SPI0/1
14.3.1 Configure the SPI for wake-up
In sleep mode, any signal that triggers an SPI interrupt can wake up the part, provided
that the interrupt is enabled in the INTENSET register and the NVIC. As long as the SPI
clock SPI_PCLK remains active in sleep mode, the SPI can wake up the part
independently of whether the SPI block is configured in master or slave mode.
In Deep-sleep or Power-down mode, the SPI clock is turned off as are all peripheral
clocks. However, if the SPI is configured in slave mode and an external master on the
provides the clock signal, the SPI can create an interrupt asynchronously. This interrupt, if
enabled in the NVIC and in the SPI’s INTENSET register, can then wake up the core.
14.3.1.1 Wake-up from Sleep mode
•
Configure the SPI in either master or slave mode. See
.
•
Enable the SPI interrupt in the NVIC.
•
Any SPI interrupt wakes up the part from sleep mode. Enable the SPI interrupt in the
INTENSET register (
).
14.3.1.2 Wake-up from Deep-sleep or Power-down mode
•
Configure the SPI in slave mode. See
. You must connect the SCK function
to a pin and connect the pin to the master.
•
Enable the SPI interrupt in the STARTERP1 register. See
interrupt wake-up enable register (STARTERP1, address 0x4004 8214) bit
description”
.
•
In the PDAWAKE register, configure all peripherals that need to be running when the
part wakes up.
•
Enable the SPI interrupt in the NVIC.
•
Enable the interrupt in the INTENSET register which configures the interrupt as
wake-up event (
). Examples are the following wake-up events:
–
A change in the state of the SSEL pins.
–
Data available to be received.
–
Receiver overrun.
14.4 Pin description
The SPI signals are movable functions and are assigned to external pins through the
switch matrix.
See
Section 7.3.1 “Connect an internal signal to a package pin”
to assign the SPI
functions to pins on the part.