Skip to content

ANA-16 Gain or filter resistors far outside the sane range

Severity Status Implementation
warning runs in better_erc easy, depends on netlist

Data it needs: graph, part classes, values, rails.

Looks at. Resistor values around op-amps.

What it catches. Resistors in an op-amp's feedback or input network below about 1 kΩ (loading the output) or above about 1 MΩ (where bias current and leakage dominate), or a filter capacitor so small that board parasitics set the response.

Why it matters. The feedback network is a load on the output too: 10 Ω in a gain stage asks the output for hundreds of mA, which it cannot give, so the gain sags and the part heats. At the other end bias current times the resistance is an offset (1 nA × 10 MΩ = 10 mV), resistor noise grows, and leakage across a dirty board changes the gain with humidity. Values like these usually come from a misplaced unit (10R for 10k, 10M for 10k).

Example. A gain-of-11 stage with Rf = 100 Ω and Rg = 10 Ω, a unit slip from 100 kΩ / 10 kΩ: on a 5 V supply the output must sink or source 45 mA into the network at full swing, more than the TLV9004's typical 40 mA short-circuit current, and the stage clips at a fraction of the expected amplitude.

How to check. Resistors with a pin on an op-amp's IN− or OUT net, compared with a window from the config (and the part's bias current and output current from the library, for the finer version).

Fix. Keep feedback networks in the 1 kΩ to a few hundred kΩ range for general-purpose parts; use FET-input parts when high values are unavoidable.

References. MT-038 (input bias current and its effects); TLV9004 §7.10 (output swing at 10 kΩ and 2 kΩ, ISC ±40 mA); AoE3 chapter 5.

Settings

Set them in the project file under [checks."ANA-16"], or for one run with --set ANA-16.NAME=VALUE.

Setting Default Meaning
ANA-16.min_resistance 1000 ohm a gain or feedback resistor below this loads the output
ANA-16.max_resistance 1000000 ohm a gain or feedback resistor above this lets bias current and leakage set the result
ANA-16.min_capacitance 0.000000000001 F a feedback capacitor below this is in the range of the board's parasitics

Test schematics

Each schematic below is in test_schematics/sources. The block under it is what berc check --only ANA-16 reports on it.

ana-16_gain_resistor_range

The test schematic ana-16_gain_resistor_range The test schematic ana-16_gain_resistor_range

  warning    ANA-16 #mr0    op-amp U2: feedback capacitor C1 = 0.5 pF, below 1 pF: the board's parasitics set the response
                            part C1, part U2
                            min_capacitance = 1 pF (derived ANA-16 default)
                            fix: a larger capacitor with the resistors scaled down, or a check of the value's unit
  warning    ANA-16 #m1k    op-amp U1: R1 = 100 Ω in its gain network, below 1 kΩ: it loads the output
                            part R1, part U1
                            min_resistance = 1 kΩ (derived ANA-16 default)
                            fix: keep feedback networks between 1 kΩ and a few hundred kΩ; FET-input parts where high values are needed
  warning    ANA-16 #ww3    op-amp U1: R2 = 10 Ω in its gain network, below 1 kΩ: it loads the output
                            part R2, part U1
                            min_resistance = 1 kΩ (derived ANA-16 default)
                            fix: keep feedback networks between 1 kΩ and a few hundred kΩ; FET-input parts where high values are needed
  warning    ANA-16 #ejg    op-amp U2: R5 = 10 MΩ in its gain network, above 1 MΩ: bias current and leakage set the result
                            part R5, part U2
                            max_resistance = 1 MΩ (derived ANA-16 default)
                            fix: keep feedback networks between 1 kΩ and a few hundred kΩ; FET-input parts where high values are needed