


This allows SPI to be run at higher data speed and easy to use once it is setup. the Master) and therefore does not need the checksum bits. SPI is gnerally designed for high-speed, shorter range of communication at a clock speed set by the data initiator (i.e. In order to ensure the integrity of the data, simple parity check can be introduced into the communication stream as well. UART uses two wires for transmission and reception (Tx and Rx), and requires a clock on both sides to be on the same speed, UART is designed for long range communication, both hardware and software flow control can be added if necessary. SPI is simpler in design compared to UART. The name imply that it is a Serial communication protocol and interface, but it is different from serial communication protocol like UART in many different aspects.

It is important to understand how SPI (Serial Peripheral Interface) works in the embedded world because SPI is widely used deep inside embedded systems, ranging from sensor connection, to SD card interface, to even between the flash memory and its MCU.
