Serial Peripheral Interface (SPI)

From Humanoid Robots Wiki
Revision as of 09:08, 24 April 2024 by Mrroboto (talk | contribs) (Created page with "Serial Peripheral Interface (SPI) is commonly used for connecting to peripheral devices. === Conventions === * <code>CS</code> is Chip Select ** On Raspberry Pi, this is <co...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Serial Peripheral Interface (SPI) is commonly used for connecting to peripheral devices.

Conventions

  • CS is Chip Select
    • On Raspberry Pi, this is CE0 or CE1
    • This is a digital signal that tells the slave device to listen to the master
  • DC is Data/Command
    • This is a digital signal that tells the slave device whether the data on the MOSI line is a command or data
  • SDA is data line
    • Also called MOSI (Master Out Slave In) or DIN (Data In)
    • This is the line that the master sends data to the slave
  • SCL is clock line
    • Also called CLK or SCLK (Serial Clock)
    • This is the line that the master uses to send clock pulses to the slave
  • RST is reset
    • This is a digital signal that resets the slave device