![]() Hence SPI is called synchronous serial communication protocol. In the SPI protocol, the master is the one that produces the clock. ![]() When the master wants to communicate with the slave, the data which are there on MOSI or MISO pin will synchronize with the clock. The 4 I/O pins are dedicated to SPI communication with the external devices. SPI is a protocol used for serial data communication between one master and a couple of slave devices in an embedded world. SPI bus which allows communication between one master device and one or more slave device. SPI bus is a collection of a couple of pins. So, there are various protocols like CAN protocol, I2C protocol, Ethernet, USB, RS232, RS485, and SPI is one among them. ![]() A specific protocol is defined, and SPI is one among them. If the master wants to communicate with the slave, that means the master wants to send data to the slave or retrieve data from the slave. The slave may be anything it can be a sensor, and it can be an EPROM chip, it can be an SD card, it can be a display or wireless connectivity chips such as WiFi or Bluetooth controlled. ![]() Let’s say there is one master device and one slave device. Figure 1.Single master to a single slave: Basic SPI bus exampleįrom Figure 1.
0 Comments
Leave a Reply. |