
In this tutorial I am going to brief you on how to establish a communication between two arduino boards through SPI(Serial Peripheral Interface). SPI is also called as 4 wire interface, because it uses four pins to transmit and receive data, they are MISO (Master In Slave Out), MOSI(Master Out Slave In), SCK – This provides the clock signal for data transfer, usually from master to slave. And SS pin- It selects the slave device, it is an active low signal given by Master device. After completing the data transfer with one slave device, the master device pulls up the SS pin to high. In SPI protocol, it is possible to connect more than one slave to a master device. The master device can communicate with any slave connected to the bus at any time, but the slave can communicate only to the master. Whenever the master device wants to send a data to slave, it pulls down the SS Pin and the slave will listen to data. The master device is controlling the clock signal for data transfer, so the slave cannot be able to initiate data transfer.
Read More.....
Comments
Post a Comment