Chapter 12
Serial Peripheral Interface (S12SPIV5)
Table 12-1. Revision History
Revision
Number
Sections
Affected
Revision Date
Description of Changes
V05.00
24 Mar 2005
12.3.2/12-403 - Added 16-bit transfer width feature.
12.1 Introduction
The SPI module allows a duplex, synchronous, serial communication between the MCU and peripheral
devices. Software can poll the SPI status flags or the SPI operation can be interrupt driven.
12.1.1 Glossary of Terms
Serial Peripheral Interface
Slave Select
SPI
SS
Serial Clock
SCK
MOSI
MISO
MOMI
SISO
Master Output, Slave Input
Master Input, Slave Output
Master Output, Master Input
Slave Input, Slave Output
12.1.2 Features
The SPI includes these distinctive features:
•
•
•
•
•
•
•
•
Master mode and slave mode
Selectable 8 or 16-bit transfer width
Bidirectional mode
Slave select output
Mode fault error flag with CPU interrupt capability
Double-buffered data register
Serial clock with programmable polarity and phase
Control of SPI operation during wait mode
12.1.3 Modes of Operation
The SPI functions in three modes: run, wait, and stop.
S12P-Family Reference Manual, Rev. 1.13
Freescale Semiconductor
399