CAN physical layer: from TXD to the twisted pair, arbitration and bit timing
Classical CAN is a multi-master broadcast bus on one twisted pair. Its physical layer is a wired-AND, like I²C, but differential and terminated: a dominant 0 from any node overrides a recessive 1 from all the others. That single property gives CAN collision-free priority arbitration, in-frame acknowledgement and network-wide error signalling. Because there is no clock wire, every node rebuilds the bit timing from the edges on the bus, which is why CAN stuffs bits, and why bus length, sample point and oscillator tolerance are all one calculation. This page covers the physical side: the levels, how the transceiver turns the MCU's logic bits into the differential pair, arbitration on the wire, the sampling edges, the bit-time arithmetic and the circuit.
Standards: ISO 11898-1 (data link) and ISO 11898-2 (high-speed physical layer) [1][2]. The frame formats, error frames, fault confinement and higher-layer protocols are on CAN Protocol & Frame; CAN FD has its own page.
≈ 2 V (1.5–3.0 V into 60 Ω); receiver reads dominant above 0.9 V
Any transmitter
Messages, not addresses. A frame carries an 11-bit (base) or 29-bit (extended) identifier that names the content and sets its priority. Every node receives every frame and filters by identifier.
Bitwise arbitration. Nodes that start together send their identifiers bit by bit and read the bus back. A node that sends recessive and reads dominant has lost and becomes a receiver. The lowest identifier wins, with no time lost.
Common-mode range −2 to +7 V per ISO 11898-2 (many transceivers ±12 V to ±58 V), so ECUs with a few volts of ground offset still communicate.
Frames. Identifier, control, data, CRC and ACK fields, with stuff bits for resynchronisation; the field-by-field layouts, error frames and fault confinement are on CAN Protocol & Frame.
Typical rates 500 kbit/s for powertrain and chassis, 125–250 kbit/s for body networks, 1 Mbit/s maximum for classical CAN.
02 · Physical layer
From a 0 or 1 on the MCU to a differential level on the bus
The MCU does not produce the differential signal. Its CAN controller serialises the frame (identifier, control, data, CRC, stuff bits) and puts out one single-ended CMOS bit stream on TXD, at the I/O voltage (3.3 V or 5 V). Software only writes bytes into a transmit mailbox; it never toggles TXD. The transceiver converts each TXD level into a bus state, and converts the bus state back into a logic level on RXD.
TXD = 0 → dominant. The driver logic turns on two switches together: a high-side P-MOS (Q1) from \(V_{\text{CC}}\) (5 V) to CANH and a low-side N-MOS (Q2) from CANL to ground, each in series with a diode. Current flows \(V_{\text{CC}}\) → Q1 → D1 → CANH → termination (two 120 Ω in parallel, 60 Ω) → CANL → D2 → Q2 → GND. About 33 mA through 60 Ω puts 2 V across the pair: CANH rises to ≈ 3.5 V and CANL falls to ≈ 1.5 V.
TXD = 1 → recessive. Both switches turn off and the outputs go high-impedance. Nothing drives the bus. Internal bias resistors (tens of kΩ) to \(V_{\text{CC}}\)/2 hold both lines at ≈ 2.5 V, and the termination resistance equalises them, so \(V_{\text{diff}}\) ≈ 0 V.
Opposite, symmetric swings. CANH moves up about 1 V while CANL moves down about 1 V, so the common mode stays near 2.5 V. The bit is in the difference; noise coupled equally into both wires of the twisted pair cancels at the receiver.
Receive path. A differential comparator with hysteresis reads CANH − CANL: above 0.9 V gives RXD = 0, below 0.5 V gives RXD = 1. Every node reads the bus this way, including the transmitter, which compares RXD with what it sent (bit monitoring, arbitration, ACK).
The inversionLogic 0 is the driven state and logic 1 is the undriven state, so a 0 on TXD makes CANH go up. This is deliberate. The state that has to win on a shared bus must be the one a node actively drives, because a node that drives nothing cannot override anything.
Driver simulator: two nodes on one bus
Node A TXD (drawn below)
Node B TXD (off to the right)
Bus waveform · each button press sends one bit
Switching detail · node A's last transition, nanoseconds after the TXD edge
Switching detail: the driver logic charges the gate of Q2 toward 5 V and pulls the gate of Q1 toward 0 V (so its source-gate voltage rises). Nothing flows until the gate crosses the threshold \(V_{\text{th}}\); the channel then forms and \(I_{\text{D}}\) rises; on the Miller plateau the gate voltage stalls while the drain-gate capacitance is charged and \(V_{\text{DS}}\) collapses; then the gate finishes charging and the switch is fully on. Turn-off runs the same steps in reverse. A few ns of skew between Q1 and Q2 is drawn on purpose: it is what steps the common mode (§07). On the schematic the same event plays slowly. Dominant bits are shaded; the outlined bit is the one just sent. The dominant edge is driven and fast; the recessive edge is slow because only the termination discharges the bus, and RXD returns to 1 only when \(V_{\text{diff}}\) falls below 0.5 V. Model: each driver is a 3.6 V source (5 V minus two diode drops) with ≈ 24 Ω in each leg, into a lumped 60 Ω load. Numbers follow a TCAN1042-class part; check the data sheet for real \(V_{\text{OD}}\) and output resistance.
Node A TXD
Node B TXD
Q1 / Q2 (A)
CANH
CANL
\(V_{\text{diff}}\)
RXD (all nodes)
Bus
1
1
off / off
2.5 V
2.5 V
0 V
1
recessive
0
1
on / on
3.5 V
1.5 V
2.0 V
0
dominant
1
0
off / off
3.5 V
1.5 V
2.0 V
0
dominant (B drives it)
0
0
on / on
≈ 3.8 V
≈ 1.2 V
≈ 2.6 V
0
dominant (drivers share current)
Why this is a wired-AND without contention
Recessive is "driver off", not "driver pulling the other way". Two dominant drivers both pull CANH up and CANL down, so they only share the load current (\(V_{\text{diff}}\) rises a little). A recessive node presents only its bias resistors, which a dominant driver overpowers easily. The bus state is therefore \(\text{TXD}_{\text{A}}\) AND \(\text{TXD}_{\text{B}}\) AND … with no fight between outputs. A push-pull output stage would short \(V_{\text{CC}}\) to ground through two nodes the moment one sent 1 and another sent 0. CAN Protocol & Frame runs the same TXD → CANH/CANL → RXD chain through a whole frame.
Inside the partSeries diodes D1 and D2 stop reverse current when the bus sits above \(V_{\text{CC}}\) or below ground (common-mode offset, or an unpowered node), so an off node does not load the bus. TXD has an internal pull-up, so a floating or reset MCU pin reads recessive. The TXD dominant time-out (ms range) turns the drivers off if TXD is held low too long, so a crashed MCU cannot jam the bus. A \(V_{\text{IO}}\) pin sets the TXD/RXD logic levels for a 3.3 V or 1.8 V MCU while the bus side runs from 5 V, and STB or silent mode disables the drivers entirely.
03 · Arbitration
Three nodes start at once
Nodes A (654h), B (652h) and C (612h) start together. All agree until ID6, where A and B send recessive and read dominant from C. They stop transmitting immediately and receive C's frame. C never sees a collision.
Why it worksArbitration requires every node to see every other node's bit within the same bit time, before its sample point. That is what limits CAN's bus length: the round trip from one end of the bus to the other must fit inside Prop_Seg (§05).
04 · Edges
Which edges synchronise, and where the bit is sampled
CAN has no clock line. Each controller divides its bit into time quanta (tq) from its own oscillator and keeps aligned to the bus using edges:
Transmit edge: a transmitter changes TXD at the start of each bit (the Sync_Seg). Its own RXD sees the bus one loop delay later.
Hard synchronisation: on the recessive-to-dominant edge of SOF (after bus idle), every node restarts its bit timing so that the edge lies in its Sync_Seg.
Resynchronisation: on later recessive-to-dominant edges only. If the edge arrives late (inside Phase_Seg1) the node lengthens Phase_Seg1; if early (inside Phase_Seg2 of the previous bit) it shortens Phase_Seg2; by at most SJW quanta. Dominant-to-recessive edges are ignored because they are passive (the termination, not a driver, makes them), slower and less precisely timed.
Sampling: once per bit, at the end of Phase_Seg1, the sample point, typically 80–87.5 % of the bit (CiA 601, SAE J2284 practice). Some controllers offer triple sampling at low bit rates; it is not used at higher rates.
Bit monitoring: a transmitter compares each bit it sent with the bus at its sample point. That is how it detects lost arbitration and bit errors.
Worked example (500 kbit/s, 40 MHz clock). BRP 4 → tq = 100 ns → 20 tq per bit. Sync 1 + Prop 11 + Phase1 4 + Phase2 4; sample point 80 %; SJW 4. Prop = 1.1 µs, so \(2\times (5\ \text{ns}/\text{m}\times L+150\ \text{ns})\le 1.1\ \text{µs}\) gives \(L\le 80\ \text{m}\). Oscillator tolerance: min(4, 4) \(/(2\times (13\times 20-4))=0.78\ \%\), so a crystal or ceramic resonator is required.
Bit rate
1 Mbit/s
500 kbit/s
250 kbit/s
125 kbit/s
50 kbit/s
Approx. max bus length
40 m
100 m
250 m
500 m
1 km
06 · Circuits
Reference circuits
One node (ECU) with split termination
The split terminator (2 × 60 Ω with the centre to ground through ≈ 4.7 nF) terminates the differential mode with 120 Ω and gives common-mode noise a low-impedance path. A common-mode choke (51–100 µH) improves emissions and immunity but can ring with fast edges; a low-capacitance dual TVS rated for 24 V systems goes nearest the connector. Order from the connector: TVS → CMC → termination → transceiver.
The bus
Terminate the two physical ends only. Unterminated stubs reflect; keep them short (roughly inversely proportional to bit rate). Stars and long branches cause ringing on the recessive edge, which is the edge the bus cannot actively drive.
Field checkWith all ECUs unpowered, measure CANH to CANL: 60 Ω is correct; 120 Ω means a missing terminator; 40 Ω means one too many.
07 · Signal integrity
Rise time, fall time, asymmetry and skew
The two edges are not alike. The dominant edge is driven by the transceiver and is fast (tens of ns). The recessive edge is passive: the transceiver lets go and the termination discharges the bus capacitance, so it is slower and, on a long or badly terminated bus, it rings. Ringing that crosses the 0.5–0.9 V receiver threshold after a recessive edge looks like a short dominant pulse: a false resynchronisation edge or a bit error. This is why CAN resynchronises only on recessive-to-dominant edges, and why stubs and stars matter.
Bit-time asymmetry. Transceivers delay dominant and recessive edges differently, and the RC of the bus lengthens dominant bits as seen at the far end. The receiver's RXD bit width differs from the transmitted width; at classical rates this is absorbed by the phase segments, at CAN FD rates it becomes the main limit (see the CAN FD page).
Loop delay. TXD to bus to RXD, 100–255 ns per transceiver, plus any isolator (10–50 ns each way). It appears twice in the round trip that Prop_Seg must cover.
CANH/CANL skew and symmetry. If CANH and CANL do not switch exactly together, or with mirror-image amplitude, the common-mode voltage steps at every edge. That is the main source of CAN radiated emissions. Transceiver symmetry, matched routing of the pair, split termination and a common-mode choke all address it. Any filter capacitors to ground must be small (≤ 100 pF) and matched.
Slope control. Some transceivers offer slower edges (slope control resistor or mode) for low bit rates, reducing emissions and ringing at the cost of loop delay.
Rule setTwisted pair, 120 Ω, linear bus, two terminators, short stubs. Route CANH/CANL on the PCB as a tightly coupled 120 Ω differential pair, symmetric component placement, no plane split underneath, transceiver within ~50 mm of the connector. Budget loop delay and isolators in Prop_Seg. Same sample point on every node.
08 · When it breaks
Failure modes and debug signatures
Symptom
Likely cause
Check / fix
Transmitter sends the same frame forever, error counter rising
No other node to ACK (alone on the bus, wrong bit rate elsewhere)
Need at least one receiver at the same bit rate; check other nodes' configuration.
Errors grow with bus length or at one end only
Prop_Seg too short for the round trip; sample point too early
Recompute bit timing with real loop and cable delays.
Errors only with some nodes, or after warm-up
Different sample points, oscillator drift beyond tolerance
Same sample point on all nodes; crystal clocks.
Ringing on recessive edges, intermittent stuff/form errors
Missing or extra terminator, long stubs, star topology
Measure 60 Ω; shorten stubs; daisy-chain.
Bus stuck dominant
A node with TXD stuck low (the transceiver's dominant time-out releases it), or CANH/CANL shorted to ground or to each other
Unplug nodes one at a time; check TXD dominant time-out.
Emissions failure at the bit-rate harmonics
CANH/CANL asymmetry, missing split termination or choke
Split termination, CMC, symmetric layout; follow the transceiver's EMC note.
Debug setupA differential probe across CANH–CANL (or two probes and math), triggered on the SOF edge after idle, with the scope's CAN decoder set to the bit rate and sample point. Then look at the analog details the decoder hides: recessive-edge ringing, dominant level, and the RXD-to-bit-boundary timing at each end of the bus.
09 · Self-check
Questions
The MCU drives TXD = 0. Which way do CANH and CANL move, and what sets the 2 V difference?
CANH goes up to ≈ 3.5 V and CANL down to ≈ 1.5 V. Both output switches turn on and push ≈ 33 mA through the 60 Ω of the two terminators; the difference is that current times 60 Ω, set by \(V_{\text{CC}}\), the two series diode drops and the switch resistance.
TXD is held low, but CANH and CANL both sit at 2.5 V. What do you check?
The drivers are not enabled: STB or silent mode asserted, \(V_{\text{CC}}\) missing, or the TXD dominant time-out has expired and released the bus. If CANH and CANL are shorted together, both also sit near 2.5 V with the driver in current limit.
Which bus edges do CAN nodes synchronise on, and why only those?
Recessive-to-dominant edges: hard sync on SOF, resync on later ones. The dominant edge is actively driven and well-defined; the recessive edge is made passively by the termination and is slower and less repeatable.
Why does a 500 kbit/s bus stop working beyond about 100 m?
Arbitration and ACK need a node at one end to see the other end's dominant bit before its sample point. The round trip (2 × cable + 2 × loop delay) must fit in Prop_Seg, about 1.1–1.5 µs of the 2 µs bit.
You read 120 Ω across CANH–CANL with everything off. What does that mean?
Only one terminator is present. The correct reading is 60 Ω (two 120 Ω in parallel).
10 · Further reading
References
ISO 11898-1:2015, Road vehicles — Controller area network (CAN) — Part 1: Data link layer and physical signalling.
ISO 11898-2:2016, Part 2: High-speed medium access unit.
CiA 601 series and SAE J2284, bit-timing and sample-point recommendations.
Texas Instruments, Introduction to the Controller Area Network (CAN), SLOA101. Link