ANA-21 AC-coupled input with no DC return path¶
| Severity | Status | Implementation |
|---|---|---|
| error | runs in better_erc | easy, depends on netlist |
Data it needs: graph, part classes, rails.
Looks at. Amplifier inputs, capacitors, transformers, resistive paths.
What it catches. An op-amp or in-amp input that reaches the rest of the circuit only through a series capacitor or a floating transformer winding, with no resistor (or other DC path) to ground or a bias voltage.
Why it matters. Every input draws a bias current, from picoamps to microamps. With only a capacitor in the path the current has nowhere to go but onto the capacitor, which charges until the input reaches a rail and the amplifier saturates. With FET inputs this takes seconds to hours, so the circuit passes a quick bench test and fails in the field. A transformer secondary that floats has the same problem.
Example. A microphone preamp with 1 µF coupling straight into a CMOS op-amp's non-inverting input, biased nowhere: it works for minutes, then the output drifts to a rail. A 100 kΩ to the mid-rail bias fixes it.
How to check. For each amplifier input, walk the nets through resistors, inductors and transformer windings (not capacitors) and see whether a ground, rail or driven node is reached.
Fix. A resistor from the input to ground (dual supply) or to the bias voltage (single supply), sized against the bias current and the coupling capacitor's corner; a centre tap or resistors to ground on a transformer secondary.
References. Kitchin, "Missing DC bias current return path when ac-coupled" (Figures 1-6); MT-038; AoE3 chapter 4.
Test schematics¶
Each schematic below is in test_schematics/sources. The block under it is what berc check --only ANA-21 reports on it.
ana-21_dc_return¶
error ANA-21 #p5t op-amp U1 input U1.3 (+) reaches the circuit only through a series capacitor: no DC path for its bias current, it drifts to a rail
part U1, pin U1.3
fix: a resistor from the input to ground (dual supply) or to the bias voltage (single supply); a centre tap or resistors to ground on a transformer secondary