EE Primers · Communication interfaces · Interface Engineering

Choosing a board or vehicle interface

Eight interfaces cover almost every link inside an ECU and between ECUs: I²C, SPI, UART (with RS-232/RS-485), CAN, CAN FD and three automotive Ethernet PHYs. They differ in four things that decide the choice: how far the signal goes, how fast, how many devices share it, and how it gets its timing. This page puts them side by side, shows how each one decides when a bit is valid, and ends with a selector that narrows the field from your requirements. Each interface has its own detailed primer.

01 · Side by side

Comparison

PropertyI²CSPIUART / RS-485CANCAN FD10BASE-T1S100BASE-T11000BASE-T1
ScopeOn-boardOn-boardOn-board (TTL); cable (RS-485)Vehicle networkVehicle networkVehicle networkVehicle networkVehicle network
WiresSDA, SCLSCLK, MOSI, MISO, CS# eachTX, RX (+GND); RS-485: one pair1 pair1 pair1 pair1 pair1 pair
SignallingOpen-drainPush-pullPush-pull / differentialDifferential, dominant/recessiveSameDifferential, DMEPAM3PAM3
DuplexHalfFullFull (TTL) / half (RS-485)Half, multi-masterHalf, multi-masterHalf, multidropFullFull
TopologyBusPoint-to-point, shared bus with CSPoint-to-point / multidropLinear busLinear busMultidropPoint-to-pointPoint-to-point
Rate0.1–1 Mbit/s1–100+ MHz9.6 k–10 Mbit/s≤ 1 Mbit/s0.5 / 2–8 Mbit/s10 Mbit/s100 Mbit/s1 Gbit/s
Reach≲ 0.5 mcm – 0.3 m≲ 1 m TTL; 1.2 km RS-48540 m @ 1 M … 500 m @ 125 kData phase limits≥ 25 m segment15 m15 m (40 m Type B)
SpecNXP UM10204None (de facto)TIA-232, TIA-485ISO 11898-1/-2ISO 11898-1:2015802.3cg802.3bw802.3bp
02 · Timing reference

How each interface decides when a bit is valid

The single most useful way to compare interfaces is to ask where the receiver's timing comes from and which edge it uses. That decides what rise time, skew and clock error can break.

InterfaceTiming referenceData launched onData sampled onWhat breaks it
I²CController's SCL (wired-AND, targets can stretch)After SCL falls (≥ 300 ns internal hold)SCL high, effectively the rising edgeSlow SDA rise (tr vs tLOW), hold violations at SCL fall, glitches during SCL high
SPIController's SCLK, source-synchronous for MOSI, round trip for MISOOne clock edge (mode-dependent)The opposite edge, half a period laterSCLK ringing (extra edges), MISO round trip, wrong CPOL/CPHA
UARTEach side's own baud clock; receiver resyncs on every start bitTransmitter's baud tickBit centres, counted from the start-bit falling edge (16× oversampling)Combined clock error > ~4.6 %, pulse-width distortion
CAN / CAN FDEach node's oscillator, hard sync on SOF, resync on recessive→dominant edgesStart of bit (Sync_Seg)Sample point, 70–87.5 % of the bitRound trip > Prop_Seg, oscillator drift, ringing after recessive edges, bit asymmetry (FD)
MDIOStation's MDCAfter MDC falls (station) / ≤ 300 ns after rising (PHY)MDC rising edgeRarely anything; pull-up sizing with many PHYs
RGMIIForwarded clock, DDRBoth clock edges, edge-alignedBoth edges, after a 2 ns clock delayDelay missing or doubled, data-to-clock skew
T1 Ethernet, SGMIIClock recovered from the data (CDR)PHY symbol clockRecovered clockReturn loss, mode conversion, jitter; not skew to a clock wire
03 · Selector

Which interface fits?

Rules of thumb

  • I²C for slow configuration and sensor buses with many devices and few pins.
  • SPI for fast, short on-board data: flash, ADCs, displays, IMUs at high output data rates.
  • UART for debug consoles, modules (GNSS, cellular, Bluetooth) and bootloaders; RS-485 when it must cross a cable.
  • CAN / CAN FD for robust, deterministic control traffic between ECUs; FD when payloads exceed 8 bytes or bus load is high.
  • 10BASE-T1S to bring Ethernet to edge nodes on a shared bus; 100/1000BASE-T1 for bandwidth (cameras, radar, zonal backbones) or IP-based services.
  • Never take single-ended UART, I²C or SPI off the board without a transceiver.
04 · Go deeper

The detailed primers