PortDock

UART vs SPI vs I2C vs CAN vs RS-485 — choosing by distance, speed, device count and wiring

UART, SPI and I2C link chips on a board; CAN and RS-485 link devices. Wires, signals, device count, speed, distance and termination compared.

Tools for this guideSerial Windows program · freeUART Baud Rate Error Calculator web · no installCAN Bit Timing Calculator web · no install

All five send bits one after another, but they live in different places. UART, SPI and I2C usually connect chips on one board, or over very short wires, with logic-level (3.3 V or 5 V) signals; CAN and RS-485 use differential signals to connect devices tens or hundreds of metres apart. The figures below follow manufacturers' public summaries of the standards (TI SLLA067C and SLLA270, NXP UM10204).

UARTSPII2CCANRS-485
WiresTX, RX, GNDSCK, MOSI, MISO, GND + one CS per deviceSCL, SDA, GND + pull-up resistorsCAN_H, CAN_L (+ common ground)A, B (+ SG)
SignalSingle-ended (logic level)Single-endedOpen drain + pull-upDifferential (dominant/recessive)Differential
ClockNone — both sides agree on the baud rateSCK line (from the master)SCL line (from the master)None — resynchronizes on edgesNone (UART frames on top)
Devices1:11 master + as many as CS linesBy address (112 of the 7-bit addresses after 16 reserved); bus capacitance usually limits firstISO 11898: 30 nodes32 unit loads
SpeedAgreed by both sides (9600, 115200 bit/s …)No standard — the chip's maximum SCK100 k, 400 k, 1 M, 3.4 Mbit/sUp to 1 Mbit/s (CAN FD data phase is faster)< 40 Mbit/s (short lines)
DistanceOn board, short wires (no standard)On board, short wires (no standard)Capacitance, not length: 400 pF (550 pF in 1 Mbit/s mode)40 m at 1 Mbit/s to 1000 m at 50 kbit/s< 1200 m (at low speed)
TerminationNoneNonePull-up value120 Ω at both ends120 Ω at both ends

Distance and speed cannot both be at their maximum. For CAN, TI SLLA270 table 1 lowers the rate as the bus gets longer (40 m 1 Mbit/s, 100 m 500 kbit/s, 200 m 250 kbit/s, 500 m 100 kbit/s, 1000 m 50 kbit/s), and RS-485's 1200 m is also a low-speed figure.

On the board: UART, SPI, I2C

Between devices: CAN, RS-485

How to choose

Common mix-ups

In PortDock

Sources

Published 2026-11-01