Skip to content
UPEEC

Communication Protocols

UART, I2C, SPI, CAN, USB and more — how chips and devices exchange data.

Easy
Comments 0

Protocols define the wires, voltage levels, timing and message format. The main choices:

ProtocolWiresSpeedTopology
UART2 (TX, RX)up to ~1 Mbit/spoint-to-point
I2C2 (SDA, SCL)100 k – 1 Mbit/smulti-device bus with addresses
SPI4 (+1 CS per device)1–50+ Mbit/sone controller, many peripherals
CAN2 (differential)1 Mbit/s (CAN FD: up to ~8)robust multi-node bus
USB2 data + power1.5 Mbit/s – 40 Gbit/shost + devices

Sub-topics (7)

UART

Asynchronous serial: start bit, data bits, optional parity and stop bits at an agreed baud rate.

Easy♥ 0🔖 0💬 0

I2C

A two-wire addressed bus: many sensors share SDA and SCL with pull-up resistors.

Easy♥ 0🔖 0💬 0

SPI

A fast four-wire synchronous bus: SCLK, MOSI, MISO and a chip-select per device.

Easy♥ 0🔖 0💬 0

CAN Bus

A robust differential bus for cars and industry with message priorities and built-in error handling.

Intermediate♥ 0🔖 0💬 0

RS-485 and Modbus

RS-485 is a differential multi-drop link for long industrial cables; Modbus RTU is the protocol commonly run on top.

Intermediate♥ 0🔖 0💬 0

USB

Universal Serial Bus: host and device roles, speeds, power and device classes.

Intermediate♥ 0🔖 0💬 0

One-Wire

A single data line (plus ground) that carries both data and, optionally, power — used by DS18B20 sensors.

Easy♥ 0🔖 0💬 0

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.