|
MC68908GZ8MFJE Datasheet, PDF (231/314 Pages) Freescale Semiconductor, Inc – Microcontrollers | |||
|
◁ |
Chapter 17
Serial Peripheral Interface (SPI) Module
17.1 Introduction
This section describes the serial peripheral interface (SPI) module, which allows full-duplex, synchronous,
serial communications with peripheral devices.
17.2 Features
Features of the SPI module include:
⢠Full-duplex operation
⢠Master and slave modes
⢠Double-buffered operation with separate transmit and receive registers
⢠Four master mode frequencies (maximum = bus frequency ÷ 2)
⢠Maximum slave mode frequency = bus frequency
⢠Serial clock with programmable polarity and phase
⢠Two separately enabled interrupts:
â SPRF (SPI receiver full)
â SPTE (SPI transmitter empty)
⢠Mode fault error flag with CPU interrupt capability
⢠Overflow error flag with CPU interrupt capability
⢠Programmable wired-OR mode
⢠I2C (inter-integrated circuit) compatibility
⢠I/O (input/output) port bit(s) software configurable with pullup device(s) if configured as input port
bit(s)
17.3 Pin Name Conventions
The text that follows describes the SPI. The SPI I/O pin names are SS (slave select), SPSCK (SPI serial
clock), CGND (clock ground), MOSI (master out slave in), and MISO (master in/slave out). The SPI
shares four I/O pins with four parallel I/O ports.
The full names of the SPI I/O pins are shown in Table 17-1. The generic pin names appear in the text that
follows.
Table 17-1. Pin Name Conventions
SPI Generic
Pin Names:
Full SPI
Pin Names:
SPI
MISO
PTD1/MISO
MOSI
PTD2/MOSI
SS
PTD0/SS
SPSCK
PTD3/SPSCK
CGND
VSS
MC68HC908GZ16 ⢠MC68HC908GZ8 Data Sheet, Rev. 4
Freescale Semiconductor
231
|
▷ |