Serial Peripheral Interface Module (SPI)
Technical Data
MC68HC908GP32
•
MC68HC08GP32
—
Rev. 6
306
Serial Peripheral Interface Module (SPI)
MOTOROLA
Figure 20-2. SPI Module Block Diagram
The SPI module allows full-duplex, synchronous, serial communication
between the MCU and peripheral devices, including other MCUs.
Software can poll the SPI status flags or SPI operation can be interrupt-
driven.
If a port bit is configured for input, then an internal pullup device may be
enabled for that port bit.
(See
16.5.3 Port C Input Pullup Enable
Register
.)
TRANSMITTER CPU INTERRUPT REQUEST
RESERVED
RECEIVER/ERROR CPU INTERRUPT REQUEST
7
6
5
4
3
2
1
0
SPR1
SPMSTR
TRANSMIT DATA REGISTER
SHIFT REGISTER
SPR0
CGMOUT
÷
2
CLOCK
SELECT
÷
2
CLOCK
DIVIDER
÷
8
÷
32
÷
128
CLOCK
LOGIC
CPHA
CPOL
SPI
SPRIE
DMAS
SPE
SPWOM
SPRF
SPTE
OVRF
RESERVED
M
S
PIN
CONTROL
LOGIC
RECEIVE DATA REGISTER
SPTIE
SPE
INTERNAL BUS
FROM SIM
MODFEN
ERRIE
CONTROL
MODF
SPMSTR
MOSI
MISO
SPSCK
SS
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
.
..