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
295 of 464
NXP Semiconductors
UM10850
Chapter 22: LPC5410x Serial Peripheral Interfaces (SPI0/1)
22.7 Functional description
22.7.1 Operating modes: clock and phase selection
SPI interfaces typically allow configuration of clock phase and polarity. These are
sometimes referred to as numbered SPI modes, as described in
and shown in
. CPOL and CPHA are configured by bits in the CFG register (
).
Table 333: SPI mode summary
CPOL CPHA
SPI
Mode
Description
SCK rest
state
SCK data
change edge
SCK data
sample edge
0
0
0
The SPI captures serial data on the first clock transition of
the transfer (when the clock changes away from the rest
state). Data is changed on the following edge.
low
falling
rising
0
1
1
The SPI changes serial data on the first clock transition of
the transfer (when the clock changes away from the rest
state). Data is captured on the following edge.
low
rising
falling
1
0
2
Same as mode 0 with SCK inverted.
high
rising
falling
1
1
3
Same as mode 1 with SCK inverted.
high
falling
rising
Fig 47. Basic SPI operating modes
&3+$
06%
/6%
06%
/6%
&3+$
0,62
026,
66(/
06%
/6%
06%
/6%
0,62
026,
66(/
0RGH&32/ 6&.
0RGH&32/ 6&.
0RGH&32/ 6&.
0RGH&32/ 6&.
'DWDIUDPH
'DWDIUDPH