UM10850
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2016. All rights reserved.
User manual
Rev. 2.4 — 13 September 2016
282 of 464
NXP Semiconductors
UM10850
Chapter 22: LPC5410x Serial Peripheral Interfaces (SPI0/1)
22.4 Pin description
The SPI signals are movable functions and are assigned to external pins via IOCON. See
. Recommended IOCON settings are shown in
.
Table 319: SPI Pin Description
Function
I/O Description
SPI0_SCK
I/O Serial Clock. SCK is a clock signal used to synchronize the transfer of data. It is driven by the master
and received by the slave. When the SPI interface is used, the clock is programmable to be
active-high or active-low. SCK only switches during a data transfer. It is driven whenever the Master bit
in CFG equals 1, regardless of the state of the Enable bit.
SPI0_MOSI
I/O Master Out Slave In. The MOSI signal transfers serial data from the master to the slave. When the SPI
is a master, it outputs serial data on this signal. When the SPI is a slave, it clocks in serial data from
this signal. MOSI is driven whenever the Master bit in SPInCfg equals 1, regardless of the state of the
Enable bit.
SPI0_MISO
I/O Master In Slave Out. The MISO signal transfers serial data from the slave to the master. When the SPI
is a master, serial data is input from this signal. When the SPI is a slave, serial data is output to this
signal. MISO is driven when the SPI block is enabled, the Master bit in CFG equals 0, and when the
slave is selected by one or more SSEL signals.
SPI0_SSEL0
I/O Slave Select 0. When the SPI interface is a master, it will drive the SSEL signals to an active state
before the start of serial data and then release them to an inactive state after the serial data has been
sent. By default, this signal is active low but can be selected to operate as active high. When the SPI is
a slave, any SSEL in an active state indicates that this slave is being addressed. The SSEL pin is
driven whenever the Master bit in the CFG register equals 1, regardless of the state of the Enable bit.
SPI0_SSEL1
I/O Slave Select 1.
SPI0_SSEL2
I/O Slave Select 2.
SPI0_SSEL3
I/O Slave Select 3.
SPI1_SCK
I/O Serial Clock.
SPI1_MOSI
I/O Master Out Slave In.
SPI1_MISO
I/O Master In Slave Out.
SPI1_SSEL0
I/O Slave Select 0.
SPI1_SSEL1
I/O Slave Select 1.
SPI1_SSEL2
I/O Slave Select 2.
SPI1_SSEL3
I/O Slave Select 3.
Table 320: Suggested SPI pin settings
IOCON
bit(s)
Type D pin
Type A pin
Type I pin
10
OD: Set to 0 unless open-drain output is desired.
Same as type D.
I2CFILTER: Set to 1.
9
SLEW: Generally set to 0. Setting to 1 at higher SPI rates
may improve performance.
Not used, set to 0.
I2CDRIVE: Set to 0
8
FILTEROFF: Generally set to 1.
Same as type D.
Same as type D.
7
DIGIMODE: Set to 1.
DIGIMODE: Set to 1.
DIGIMODE: Set to 1.
6
INVERT: Set to 0.
Same as type D.
Same as type D.
5
Not used, set to 0.
Same as type D.
I2CSLEW: Set to 1.