English
Language : 

MC68HC908LJ12 Datasheet, PDF (271/413 Pages) Freescale Semiconductor, Inc – 8-bit microcontroller units
Serial Peripheral Interface Module (SPI)
INTERNAL BUS
CGMOUT ÷ 2
FROM SIM
÷2
CLOCK ÷ 8
DIVIDER ÷ 32
÷ 128
TRANSMIT DATA REGISTER
SHIFT REGISTER
76543210
RECEIVE DATA REGISTER
SPMSTR SPE
CLOCK
SELECT
SPR1 SPR0
CLOCK
LOGIC
PIN
CONTROL
LOGIC
M
S
SPMSTR CPHA CPOL
MISO
MOSI
SPSCK
SS
RESERVED
TRANSMITTER CPU INTERRUPT REQUEST
RESERVED
RECEIVER/ERROR CPU INTERRUPT REQUEST
SPI
CONTROL
MODFEN
ERRIE
SPTIE
SPRIE
R
SPE
SPRF
SPTE
OVRF
MODF
SPWOM
Figure 14-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.
The following paragraphs describe the operation of the SPI module.
Technical Data
272
Serial Peripheral Interface Module (SPI)
MC68HC908LJ12 — Rev. 2.1
Freescale Semiconductor