ANS: Serial Communication Is The Process of Sending Data One Bit at A Time, Sequentially, Over A
ANS: Serial Communication Is The Process of Sending Data One Bit at A Time, Sequentially, Over A
1. What is communication?
Serial communication
Parallel communication
ANS: serial communication is the process of sending data one bit at a time, sequentially, over a
communication channel or computer bus. ...
Data can be transmitted between a sender and a receiver in two main ways:
Serial and parallel
0 1 0 0 0 0 1 0
Parallel communication
0
1
0
0
0
0
1
0
ANS: SPI is 4-wire (SCLK, MOSI, MISO, and SS) full duplex serial bus.
UART
UART is asynchronous interface (i.e. sender and receiver use different clock source and embed
the sync/clock information into data stream; re-sync is usually done through start and stop bits)
while I2C and SPI are synchronous interfaces (dedicated receive/transmit clock signal, master
device usually outputs clock signal).
UART is mostly used in communication between external devices via cables to bridge larger
distances. I2C and SPI are used to connect peripheral devices on same circuit board and are
suitable for relatively short distances.
Multi-Master Systems:
I2C interface has built in arbitration to detect multiple devices sending on bus at same time. SPI
uses dedicated slave select pin to detect request of devices to become master. Multi-master in
UART requires software protocol implementation to handle bus arbitration as not supported by
hardware.
I2C is bit complex compared to SPI, and requires mechanism to address devices (7/10 bit
addressing). In case of SPI dedicated chip select signal is required for each device and hence pins
increases with device.
I2C is more sensitive to noise and hence lower data integrity. I2C is level triggered and samples
data during the high or low phase of a bit, noise could flip bit. SPI is edge triggered and less
sensitive to noise.
18. WHERE SPI?
ANS: SPI: mainly for high data rates, approx 25 Mhz clock
SPI is better for high speed and low power applications
ANS: I2C is cheaper to implement than the SPI communication protocol I2C requires only two
wires, while SPI requires three or four