C1022 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

C10 · Lesson 22 · Differential signaling

Two wires carrying opposite signals: odd and even modes, termination, and why skew matters

USB, Ethernet, PCI Express, HDMI and the LVDS links inside displays all send each bit on two wires driven in opposite directions, and the receiver looks only at the difference. Noise that couples onto both wires equally, from a ground shift or a nearby field, cancels. Lesson 21 showed that two coupled lines support two modes, and a differential pair uses one of them on purpose. Designing one means choosing the odd-mode impedance, terminating both modes properly, and keeping the two wires the same length, because a few picoseconds of skew turn part of the signal into exactly the common-mode noise the scheme was meant to avoid.

  • A differential pair's two legs switching with a skew between them. Their difference (the signal) and their average (the common mode) are plotted while each leg ramps over a 50 ps rise time.
  • With no skew, the legs move in opposite directions at the same instant and the common mode stays flat. Add skew and a common-mode pulse appears, as tall as the skew is long compared with the rise time.

Predict

An LVDS driver pushes 3.5 mA around a loop through a 100 Ω termination at the receiver. What differential voltage does the receiver see?

Name it

Modes on a pair

Two signals Vp and Vn on a pair can be rewritten as a differential part and a common-mode part:

Vd=Vp−Vn,Vcm=Vp+Vn2

A pair of coupled lines (lesson 21) has two natural modes, each with its own impedance:

  • Odd mode (equal and opposite): the lines' mutual coupling lowers the impedance to Zodd. The differential impedance is Zdiff=2Zodd.
  • Even mode (equal and the same): coupling raises it to Zeven. The common-mode impedance is Zcm=Zeven/2.

Tighter coupling (closer lines) spreads Zodd and Zeven further apart. Standards specify the differential impedance: 90 Ω for USB, 100 Ω for Ethernet and most others.

Termination

A single resistor of Zdiff across the pair terminates the differential mode but leaves the common mode open, so common-mode noise reflects. A π termination, a resistor of Zeven from each line to ground (or to a capacitor) and one across, terminates both:

Racross=2ZevenZoddZeven−Zodd

so that differentially Racross‖2Zeven=2Zodd and in common mode Zeven/2.

Skew and mode conversion

If one leg is delayed by Δt relative to the other, during the edge one leg has moved and the other hasn't, and their average jumps. With each leg swinging by a over a rise time tr and Δt<tr,

Vcm,peak=aΔt2tr

That common-mode pulse radiates and couples to other circuits; at high rates skew also eats into the eye. High-speed designs match the two legs' lengths to within a fraction of a rise time, often a few hundred micrometers.

Why it works

A receiver with common-mode rejection ignores noise that appears equally on both legs. Opposite currents in the two legs mean their magnetic fields mostly cancel, so a tightly coupled pair radiates little and picks up little. The return current flows in the partner wire instead of in the ground, so ground noise matters less.

Worked example

A coupled pair has Zodd = 45 Ω and Zeven = 60 Ω. Find its differential and common-mode impedances, and design a π termination.

Show the solution
  1. Differential impedance. Zdiff=2×45Ω=90Ω right for USB.
  2. Common-mode impedance. Zcm=602Ω=30Ω
  3. The π network. Put 60 Ω from each line to ground, and across the lines Racross=2×60×4560−45Ω=360Ω
  4. Check the differential mode. 360 Ω in parallel with the two 60 Ω resistors in series (120 Ω) is 90 Ω.
  5. Check the common mode. The across resistor carries no current, and the two 60 Ω resistors in parallel give 30 Ω. Both modes are matched.

Answer 90 Ω differential and 30 Ω common mode, terminated by 60 Ω from each line to ground and 360 Ω across.

Worked example

A 400 mV differential step (each leg swinging 200 mV) has a 50 ps rise time, and one leg arrives 10 ps late. How big is the common-mode pulse, and how much length mismatch is that on a board where signals travel 6.5 ps/mm?

Show the solution
  1. Common-mode pulse. Vcm,peak=200×102×50mV=20mV for the 40 ps while one leg is moving and the other isn't.
  2. Length mismatch. 10ps6.5ps/mm=1.5mm That's why high-speed pairs are routed with serpentine "length matching" bumps on the shorter leg.

Answer a 20 mV common-mode pulse, from 1.5 mm of extra length.

Worked example

A receiver has 40 dB of common-mode rejection at the frequency of a 1 V common-mode ground noise. How much appears as differential signal, compared with a 350 mV LVDS swing?

Show the solution
  1. Convert the rejection. 40 dB is a factor of 100.
  2. Differential leak. 1V100=10mV
  3. Compare with the swing. That's under 3% of the 350 mV swing, well inside the receiver's ±100 mV threshold.
  4. Single-ended for comparison. A single-ended link with the same ground shift would see the full 1 V.

Answer 10 mV appears as differential signal, under 3% of the 350 mV swing.

Check

A pair has Zodd = 45 Ω and Zeven = 55 Ω. What's its differential impedance?

Write units the way you normally would: 1.5 Ω, 1500 mΩ and 0.0015 kΩ are the same answer.

Check

For a π termination of a pair with Zodd = 45 Ω and Zeven = 55 Ω, with 55 Ω from each line to ground, what resistor goes across the pair?

Write units the way you normally would: 1.5 Ω, 1500 mΩ and 0.0015 kΩ are the same answer.

Check

Each leg of a pair swings 200 mV with a 100 ps rise time, and one leg is 2 ps late. What's the common-mode pulse's height?

Write units the way you normally would: 1.5 mV, 1500 µV and 0.0015 V are the same answer.

Check

A current-mode driver pushes 3.5 mA through an 85 Ω termination. What differential voltage results?

Write units the way you normally would: 1.5 mV, 1500 µV and 0.0015 V are the same answer.

Check

Signals travel 6 ps/mm on a board. What length mismatch between the legs of a pair causes 5 ps of skew?

Write units the way you normally would: 1.5 mm, 1500 µm and 0.0015 m are the same answer.

Check

A 100 Ω resistor across a differential pair terminates it, yet common-mode noise still rings on the line. Why?

Check

Simulate skew. Each leg ramps linearly over tr ps: p(t) rises from 0 to a starting at t = 0, n(t) falls from 0 to -a starting at t = dt. On t = numpy.linspace(-20, 200, 22001) (ps), compute the common mode (p + n)/2 and set cm_peak (its largest absolute value, mV) and cm_width, the time it spends above half its peak (ps). Compare with aΔt/(2tr) when Δt<tr.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Explain why

A gigabit Ethernet cable runs past a motor drive whose switching couples several volts of noise onto both conductors of each pair equally. Explain why the link still works, and what could make it fail.

Practice

Keep practicing

8 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.