Difference between revisions of "SPI"

From OpenCircuits
Jump to navigation Jump to search
(short desc with wikipedia link)
 
(link to more general article)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 +
 +
'''Serial Peripheral Interface Bus (SPI bus)'''
 +
Connects circuitry with few wires over serial protocol.
 +
 +
SPI supports an unlimited number of peripherals, which may all be identical.
 +
 +
Daisy-chained SPI connects all the devices on a SPI bus in a loop.
 +
In a daisy-chain SPI loop, the serial data out pin (SDO) of each device connected to the serial data in pin (SDI) of the next device in the loop.
 +
A daisy-chained SPI bus uses 4 GPIO pins on the microcontroller, no matter how many SPI peripherals are attached.
 +
 +
 +
Chip-select SPI uses an additional dedicated chip-select pin for each SPI peripheral.
 +
 +
 +
(Other protocols, such as [[I2C]], require each peripheral on the bus to have a different (unique) address).
 +
 +
 +
== Further reading ==
 +
 +
* [[Microcontroller Serial Communications Articles]]
 +
 
[http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus Serial Peripheral Interface Bus]
 
[http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus Serial Peripheral Interface Bus]
Connects circuitry with few wires over serial protocol.
+
* [https://www.sparkfun.com/spi_signal_names a redefinition of SPI signal names: "A REDEFINTION OF SPI SIGNAL NAMES"] by Nathan Seidle, founder of SparkFun Electronics.

Latest revision as of 11:32, 23 February 2024

Serial Peripheral Interface Bus (SPI bus) Connects circuitry with few wires over serial protocol.

SPI supports an unlimited number of peripherals, which may all be identical.

Daisy-chained SPI connects all the devices on a SPI bus in a loop. In a daisy-chain SPI loop, the serial data out pin (SDO) of each device connected to the serial data in pin (SDI) of the next device in the loop. A daisy-chained SPI bus uses 4 GPIO pins on the microcontroller, no matter how many SPI peripherals are attached.


Chip-select SPI uses an additional dedicated chip-select pin for each SPI peripheral.


(Other protocols, such as I2C, require each peripheral on the bus to have a different (unique) address).


Further reading[edit]

Serial Peripheral Interface Bus