English
Language : 

S912XHZ512F1VAG Datasheet, PDF (599/978 Pages) Freescale Semiconductor, Inc – Covers MC9S12XHZ384, MC9S12XHZ256
Chapter 16
Serial Peripheral Interface (S12SPIV4)
16.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.
16.1.1 Glossary of Terms
SPI
SS
SCK
MOSI
MISO
MOMI
SISO
Serial Peripheral Interface
Slave Select
Serial Clock
Master Output, Slave Input
Master Input, Slave Output
Master Output, Master Input
Slave Input, Slave Output
16.1.2 Features
The SPI includes these distinctive features:
• Master mode and slave mode
• 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
16.1.3 Modes of Operation
The SPI functions in three modes: run, wait, and stop.
MC9S12XHZ512 Data Sheet, Rev. 1.06
Freescale Semiconductor
599