DRAFT
DRAFT DRAFT DR
DRAFT DRAFT DRAFT
D
RAF
DRAFT DRAFT DRA
FT D
RAFT DR
AFT D
DRA
FT DRAFT DRAFT
D
RAFT
DRAFT
D
RAFT
DRA
UM10601
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2012. All rights reserved.
Preliminary user manual
Rev. 1.0 — 7 November 2012
220 of 313
NXP Semiconductors
UM10601
Chapter 17: LPC800 SPI0/1
17.7 Functional description
17.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 200: 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 frame (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 frame (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 28. 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