From the course: Raspberry Pi: GPIO
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Introduction to SPI devices
From the course: Raspberry Pi: GPIO
Introduction to SPI devices
- [Instructor] Serial peripheral interface, known as SPI, is a common interface protocol used to communicate between computers and integrated circuits. SPI depends on four signals. MOSI, which stands for master out, slave in, MISO, which stands for master in, slave out, SCLK, which is a serial clock, and CS, sometimes CE, for chip select. SPI depends on several timed events initiated by the chip select and timed by the serial clock signal. Each pulse from the clock sends information from the master to the slave, MOSI, and from the slave to the master, MISO. SPI allows multiple devices on the same data bus. Each device can share the same voltage, ground, MOSI and MISO and clock signals. Each device has a unique private chip select. This is the only line that isn't shared and is used to decide which chip is allowed to communicate over the data bus. In this project, I'll demonstrate how to work with two SPI devices on the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.