![NXP Semiconductors MKL27Z128VFM4 Reference Manual Download Page 571](http://html1.mh-extra.com/html/nxp-semiconductors/mkl27z128vfm4/mkl27z128vfm4_reference-manual_1721847571.webp)
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 DH:DL)
SPI SHIFT REGISTER
Rx BUFFER (READ DH:DL)
PIN CONTROL
MASTER CLOCK
SLAVE CLOCK
BUS RATE
CLOCK
SPIBR
CLOCK GENERATOR
MASTER/SLAVE
MODE SELECT
CLOCK
LOGIC
MODE FAULT
DETECTION
RX DMA DONE
Rx DMA REQ
TX DMA DONE
TX DMA REQ
16-BIT COMPARATOR
MH:ML
MASTER/
SLAVE
SPSCK
SS
S
M
S
M
S
M
MOSI
(MOMI)
MISO
(SISO)
SPI
INTERRUPT
REQUEST
SPE
LSBFE
MSTR
SPMF
SPMIE
SPTIE
SPIE
MODF
TXDMAE
RXDMAE
SPRF
SPTEF
MODFEN
SSOE
SPC0
BIDIROE
SPIMODE
8 OR 16
BIT MODE
16-BIT LATCH
Figure 35-2. SPI module block diagram without FIFO
Chapter 35 Serial Peripheral Interface (SPI)
KL27 Sub-Family Reference Manual , Rev. 5, 01/2016
Freescale Semiconductor, Inc.
571