The SPI communication requires 5 wires to operate. Also it a full-duplex communication because it can send and receive data using a separate bus. The SPI communication is synchronous communication, meaning it works with the help of a clock signal which is shared between the two devices that are exchanging the data. It is also used to communicate with SD cards, shift registers, Display controllers and much more. It is a common communication protocol that is used to send data between two microcontrollers or to read/write data from a sensor to a microcontroller. The term SPI stands for “ Serial Peripheral Interface”. Let’s focus on the SPI Protocol for now since that is what we are going to learn in this tutorial. Each communication protocol has its own advantage and disadvantage. At some stage of time it has to communicate to other devices to share information, there are many different types of communication protocols to share these information’s, but the most used ones are USART, IIC, SPI and CAN. In the vast system of embedded applications, no microcontroller can perform all the activities by itself. We have already covered I2C with PIC Microcontroller.
#Q lab master slave control how to#
In the same flow we are proceeding to learn the communication protocols available with PIC and how to use them.
If you have been following our PIC tutorials then you would have noticed we have already covered a wide range of tutorials on PIC microcontroller starting from the very basics. PIC Microcontrollers are a powerful platform provided by microchip for embedded projects its versatile nature has enabled it to find ways into many applications and is yet to grow a lot.