English
Language : 

MC68HC08AS32A Datasheet, PDF (215/296 Pages) Motorola, Inc – Microcontrollers
Freescale Semiconductor, Inc.
Data Sheet — MC68HC08AS32A
Section 15. Serial Peripheral Interface (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 mode and slave mode
• 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 with CPU service:
• 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
15.3 Pin Name and Register Name Conventions
The generic names of the SPI input/output (I/O) pins are:
• SS (slave select)
• SPSCK (SPI serial clock)
• MOSI (master out/slave in)
• MISO (master in/slave out)
The SPI shares four I/O pins with a parallel I/O port. The full name of an SPI pin
reflects the name of the shared port pin. Table 15-1 shows the full names of the
SPI I/O pins. The generic pin names appear in the text that follows.
Table 15-1. Pin Name Conventions
SPI Generic Pin Name:
Full SPI Pin Name:
MISO
PTE5/MISO
MOSI
PTE6/MOSI
SS
PTE4/SS
SPSCK
PTE7/SPSCK
MC68HC08AS32A — Rev. 1
MOTOROLA
Serial Peripheral Interface (SPI)
For More Information On This Product,
Go to: www.freescale.com
Data Sheet
215