PadhaikoAll subjects

Past exam question: Assignment 3, Q14

Instrumentation · 4 marks

Open in the Padhaiko app

Topic: Connectivity Technology in Instrumentation System

Question

Compare UART, I2C, SPI protocol.

Solution

Side-by-Side Comparison of UART, I²C, and SPI:

Comparison of UART, I2C, and SPI Serial Protocols
FeatureUARTI²C (Inter-Integrated Circuit)SPI (Serial Peripheral Interface)
Full NameUniversal Asynchronous Receiver-TransmitterInter-Integrated Circuit (Two-Wire Interface)Serial Peripheral Interface
Wires Required (TX, RX) + GND (SDA, SCL) + GND (plus pull-up resistors) (MOSI, MISO, SCLK, SS/CS) + GND
SynchronizationAsynchronous (no shared clock; uses preset baud rate)Synchronous (shared SCL clock line)Synchronous (shared SCLK clock line)
Duplex ModeFull-duplex (separate TX and RX)Half-duplex (single shared SDA line)Full-duplex (separate MOSI and MISO)
Topology / AddressingPoint-to-point only ( transmitter to receiver)Multi-master, multi-slave using -bit / -bit software addressesSingle-master, multi-slave using hardware SS/CS lines
Typical Data RateLow to moderate ( – , up to a few Mbps)Standard , Fast , High-speed High speed ()
Framing & HandshakeStart bit, data bits, optional parity, stop bitsStart/Stop conditions, 8-bit transfers with hardware ACK/NACKContinuous shift-register bit stream; no ACK or start/stop overhead
Typical ApplicationsPC/USB-serial debugging, GPS/GSM/Bluetooth modulesOn-board sensors (TC74, BMP280), EEPROMs, RTCs, OLEDsSD cards, high-speed ADCs/DACs, TFT displays, flash memory

Key Trade-Offs in Instrumentation Design:

Answer:

UART is an asynchronous, 2-wire (TX/RX), full-duplex, point-to-point protocol suited for moderate-speed external links; I²C is a synchronous, 2-wire (SDA/SCL), half-duplex, multi-master/multi-slave bus using 7/10-bit addressing and ACK bits (); and SPI is a synchronous, 4-wire (MOSI/MISO/SCLK/SS), full-duplex, highest-speed () single-master protocol using hardware chip-select lines.

All past exam questions for Instrumentation