Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

SPI is a 4-wire common communication protocol used to communicate with ICs. It is full-duplex, meaning it can receive and transmit at the same time! We use it in our car for high-speed communication with ICs, SD card logging, and in our BMS.

Hardware:

image-20240824-062146.png

MOSI = Master out slave in = Streams binary data
MISO = Master in slave out = Receives binary data
SCLK = Serial clock = Synchronizes binary data. 4 modes to determine the sampling period
CS = Chip select = CS idles high and is pulled low when transmission starts

Since SPI is full-duplex, both the MOSI and MISO lines can be active at the same time, meaning the master can transmit and receive!

Standard-Speed SPI - 100 kHz to 1 MHz

High-Speed SPI - 1 MHz to 50 MHz

Clock Polarity and Phase (CPOL and CPHA):

Daisy-Chaining:

Packet Protocol:

image-20240824-064502.png

https://www.circuitbasics.com/basics-of-the-spi-communication-protocol/

  • No labels