ANA-3 Shunt lines to the amplifier without a filter¶
| Severity | Status | Implementation |
|---|---|---|
| suggestion | runs in better_erc | easy, depends on netlist |
Data it needs: graph, part classes, values, rails.
Looks at. Shunt (low-value resistor), current-sense amplifier inputs, capacitors.
What it catches. A current-sense amplifier whose inputs come straight from the shunt, with no differential capacitor (and small series resistors) across the inputs and no RC at the output either.
Why it matters. A shunt in a switching converter, a motor bridge or a PWM-driven load carries ripple and fast edges far above the bandwidth anyone wants to measure. The sense amplifier rectifies or aliases part of it (ANA-18) and the ADC samples random points of the ripple; common-mode steps on the bus couple in too. A filter at the output is usually best; a filter at the inputs is the second choice and must keep its series resistors small, because the amplifier's input bias currents flow through them and turn into a gain error.
Example. An INA181 on a 10 mΩ shunt in a 100 kHz buck output: the reading jumps by tens of mA from sample to sample. 10 Ω + 10 Ω with 1 µF across the inputs puts the corner at about 8 kHz; on the A2 gain version these 10 Ω already add 0.89 % of gain error (the datasheet's own figure), and 100 Ω would add about 8 %.
How to check. Find low-value resistors (below about 1 Ω) whose two ends go to the two inputs of a part with current-sense pin names (IN+/IN−, VIN+/VIN−, SENSE+/−); look for a capacitor between the input nets, or an RC on the output net before the ADC.
Fix. RC on the output into the ADC; where the input must be filtered, ≤ 10 Ω in each line and a capacitor across the inputs (plus small ones to ground, matched).
References. INA181 §8.1.3 (signal filtering, Figure 8-2, series resistors ≤ 10 Ω, Tables 8-1 and 8-2); MT-068 (applications of current sensing).
Settings¶
Set them in the project file under [checks."ANA-3"], or for one run with --set ANA-3.NAME=VALUE.
| Setting | Default | Meaning |
|---|---|---|
ANA-3.max_shunt |
1 ohm | a resistor below this value is a current shunt |
Test schematics¶
Each schematic below is in test_schematics/sources. The block under it is what berc check --only ANA-3 reports on it.
ana-3_shunt_filters¶
suggestion ANA-3 #7qr shunt R1 (10 mΩ) into U1 with no filter: no capacitor across the sense inputs and no RC at the output; ripple and edges reach the ADC
part R1, part U1
max_shunt = 1 (derived ANA-3 default)
fix: an RC on the output into the ADC; or ≤ 10 Ω in each sense line and a capacitor across the inputs