Projects

On-the-fly LVDS line-fault detection

A window comparator whose two outputs take turns topping up one capacitor. Valid data keeps the node high; a fault, even on a single line, lets it leak down and raises a flag, with no help from the LVDS receiver.

Circuit diagram. The LVDS lines D+ and D− pass through an optional RC filter and a weak common-mode bias network into two comparators with a built-in offset. Each comparator output drives the gate of a PMOS transistor from VDD to node POLE. Capacitor C2 and a small leakage current source I1 sit between POLE and ground, and a Schmitt trigger on POLE produces the FAULT flag. An inset shows POLE held high during valid data and decaying past the Schmitt threshold after a line is cut, at which point FAULT goes high.
Circuit diagram, after US 10,530,366 B1.

An LVDS link can fail with both lines open, the lines shorted to each other or to a supply, or one line cut while the other keeps switching. In most of these the differential voltage VOD collapses towards zero, well below the 100 mV or more of normal traffic. The awkward case is a single cut line at a high data rate: the floating line follows its partner with a delay, so VOD shows brief spikes that look like data.

A plain window comparator catches faults at low frequency, but at high data rates its outputs stop swinging fully and good traffic reads as a fault. Receiver-integrated fail-safe schemes inherit the receiver’s hysteresis and sensitivity, and noise on its output keeps resetting their timer, masking the fault.

My detector sits beside the receiver and never touches it. Whenever a valid differential is present, one of two offset comparators has its output low, and its PMOS tops up a capacitor at node POLE. A small leakage current pulls the node down all the time, but the brief moments when both outputs are high cost only a little charge. In a fault both outputs stay high, both PMOS are off, and once the capacitor has leaked below the Schmitt trigger’s threshold, FAULT goes high; the hysteresis also rejects glitches. An optional RC filter damps the spike of a single cut line while barely touching normal VOD, and a weak common-mode network keeps the comparators in range when both lines float.

It monitors continuously during data transfer with no handshake, over a wide common-mode range, and sees a fault on a single line; an SoC can read the FAULT flags, keep the working links and power down the rest. US 10,530,366 B1, granted 2020.

Published sources