Communication Protocols - Practicals
Communication Protocols - Practicals
Practical
Vimukthi Pathirana
MEng. (AIT), BSc (Hons) Eng. (AIT)
Content
UART
I2C
SPI
What is UART?
• Universal Asynchronous Receiver/Transmitter
• UART convert data into packets for sending or rebuilding data from
packets received
How UART works?
• Data Packet
• SPI.begin()
• SPI.setClockDivider(divider)
• Divider – 2, 4, 8, 16, 32, 64, 128
• SPI.attachInterrupt(handler)
• SPI.transfer(val)
ARDUINO SPI Network
• Follow the example given in the link bellow
https://circuitdigest.com/microcontroller-projects/arduino-spi-communication-tutorial