548
SPRUI07–March 2020
Submit Documentation Feedback
Copyright © 2020, Texas Instruments Incorporated
Serial Peripheral Interface (SPI)
Chapter 9
SPRUI07–March 2020
Serial Peripheral Interface (SPI)
This chapter describes the serial peripheral interface (SPI) which is a high-speed synchronous serial input
and output (I/O) port that allows a serial bit stream of programmed length (one to 16 bits) to be shifted into
and out of the device at a programmed bit-transfer rate. The SPI is normally used for communications
between the MCU controller and external peripherals or another controller. Typical applications include
external I/O or peripheral expansion via devices such as shift registers, display drivers, and analog-to-
digital converters (ADCs). Multi-device communications are supported by the master or slave operation of
the SPI. The port supports a 16-level, receive and transmit FIFO for reducing CPU servicing overhead.
Topic ........................................................................................................................... Page
9.1 Introduction ..................................................................................................... 549
9.2 System-Level Integration................................................................................... 550
9.3 SPI Operation................................................................................................... 553
9.4 Programming Procedure ................................................................................... 560
9.5 SPI Registers ................................................................................................... 562