Skip to content
BENIBIX Learn

Serial Peripheral Interface (SPI)

Development🔌 Embedded & IoTDevice Communication

Also known as SPI Bus, SPI Protocol

A fast link where one chip picks a part with its own wire, then swaps data.

Think of it like

It is like a teacher who taps one kid on the arm. Then she talks to just that kid.

Example

A small colour screen and an SD card share SPI wires on Lucy's board. Each one has its own select wire.

Why it matters

Screens and memory cards need lots of data quickly. SPI gives them the speed.

Definition

SPI is a fast way for one main chip to swap data with nearby parts. It uses a clock wire, one data wire each way, and a select wire for each part. The main chip pulls one part's select wire to pick it. Then data flows both ways at once, in time with the clock. It is faster than I2C but needs more wires.
SPI, on the right: a select wire for each part and a shared clock.

Common mistake

Leaving two select wires active at once. Two parts try to talk on the same data wire and both get muddled.

Key takeaways

  1. 1
    Clock led. The main chip sets the pace.
  2. 2
    Select wire. One wire picks each part.
  3. 3
    Both ways. Data goes in and out at once.

Compare