When the SPI is configured as a master, the clock output is routed to the SPSCK pin, the
shifter output is routed to MOSI, and the shifter input is routed from the MISO pin.
When the SPI is configured as a slave, the SPSCK pin is routed to the clock input of the
SPI, the shifter output is routed to MISO, and the shifter input is routed from the MOSI
pin.
In the external SPI system, simply connect all SPSCK pins to each other, all MISO pins
together, and all MOSI pins together. Peripheral devices often use slightly different
names for these pins.
ENABLE
SPI SYSTEM
SHIFT
OUT
SHIFT
DIRECTION
SHIFT
CLOCK
Rx BUFFER
FULL
Tx BUFFER
EMPTY
SHIFT
IN
Tx BUFFER (WRITE SPIxD)
SPI SHIFT REGISTER
Rx BUFFER (READ SPIxD)
PIN CONTROL
MASTER CLOCK
SLAVE CLOCK
BUS RATE
CLOCK
SPIBR
CLOCK GENERATOR
MASTER/SLAVE
MODE SELECT
CLOCK
LOGIC
MODE FAULT
DETECTION
8-BIT COMPARATOR
SPIxM
MASTER/
SLAVE
SPSCK
SS
S
M
S
M
S
M
MOSI
(MOMI)
MISO
(SISO)
INTERRUPT
REQUEST
SPE
LSBFE
MSTR
SPMF
SPMIE
SPTIE
SPIE
MODF
SPRF
SPTEF
MOD-
SSOE
SPC0
BIDIROE
Figure 29-2. SPI module block diagram without FIFO
Introduction
KL02 Sub-Family Reference Manual, Rev. 2.1, July 2013
446
Freescale Semiconductor, Inc.