LEAK-1 Resistor divider straight on a power rail¶
| Severity | Status | Implementation |
|---|---|---|
| warning | runs in better_erc | easy, depends on NET-5, IMP-6 |
Data it needs: graph, part classes, values, rails, rail voltages.
Looks at. The power structure, resistor values.
What it catches. Two or more resistors in series from a rail to ground with nothing switching them: a voltage divider for a reference, a sense input or a feedback node that draws current in every power state.
Why it matters. A divider is a load. V / (R1 + R2) flows as long as the rail is up: 1.65 mA for 1 kΩ + 1 kΩ on 3.3 V, which is more than the whole sleep current of most MCUs. Low values are often chosen for a stiff reference without asking whether the load needs it. Regulator feedback dividers are excluded (they are part of the regulator and sized by its datasheet).
Example. On B153A the INA181's REF comes from R603/R604, 1 kΩ / 1 kΩ off 3.3 V: 1.65 mA forever. On a bus-powered dongle that is harmless; on a battery board the same circuit would be the largest consumer in sleep. The REF input current of the INA181 decides how high the divider can go.
How to check. Chains of resistors from a rail to ground (NET-5, NET-2) with no switch in the chain; compute the current from the values (IMP-6) and report it, sorted, against a project budget.
Fix. Raise the values to what the load allows (with a capacitor at the tap if the load is dynamic), use a reference or buffer, or switch the divider (LEAK-7).
References. Wikipedia, Voltage divider; Microchip analog TB §5 (Figure 5-1 "Simple Voltage Divider Circuit", Figure 5-2 "Voltage Divider with On and Off"); B153A review notes §3 (INA181 REF divider).
Settings¶
Set them in the project file under [checks."LEAK-1"], or for one run with --set LEAK-1.NAME=VALUE.
| Setting | Default | Meaning |
|---|---|---|
LEAK-1.max_current |
0.0001 A | the current an always-on divider may draw from its rail (the project's budget) |
LEAK-1.max_chain |
3 | the most resistors in series followed from a rail to a ground |
Test schematics¶
Each schematic below is in test_schematics/sources. The block under it is what berc check --only LEAK-1 reports on it.
leak-1_rail_dividers¶
warning LEAK-1 #dch divider R1, R2 (2 kΩ) from +3V3 to GND draws 1.65 mA in every power state
net +3V3, part R1, part R2
divider resistance = 2 kΩ (derived the Value fields along the chain, in series)
max_current = 100 µA (derived LEAK-1 default)
rail voltage = 3.3 V (derived voltage from the net name)
fix: raise the values to what the load allows (a capacitor at the tap for a dynamic load), use a reference or buffer, or switch the divider (LEAK-7)
LEAK-1 also fires on the test schematics of other checks: ana-10_opamp_feedback, ana-11_unused_channels, io-16_adc_alternate, io-16_pull_up_and_down, io-16_sense_divider, short-4_low_resistance, wire-11_unnamed_nets.