|
MC68HC908GP32_08 Datasheet, PDF (175/266 Pages) Freescale Semiconductor, Inc – M68HC08 Microcontrollers | |||
|
◁ |
Chapter 15
Serial Peripheral Interface Module (SPI)
15.1 Introduction
This section describes the serial peripheral interface (SPI) module, which allows full-duplex,
synchronous, serial communications with peripheral devices.
15.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
⢠I/O (input/output) port bit(s) software configurable with pullup device(s) if configured as input port
bit(s)
15.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 15-1. The generic pin names appear in the text that
follows.
Table 15-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
MC68HC908GP32 Data Sheet, Rev. 10
Freescale Semiconductor
175
|
▷ |