Skip to content

LEAK-7 Battery measurement divider always connected

Severity Status Implementation
suggestion planned mid, depends on NET-5, CFG-2

Looks at. Which rails are battery rails, divider to an ADC.

What it catches. A divider from a battery rail to ground whose tap goes to an ADC, with no switch: the battery-measurement form of LEAK-1.

Why it matters. The battery is measured a few times an hour but the divider drains it all the time. 100 kΩ + 100 kΩ on a 4.2 V cell is 21 µA, often more than everything else in sleep together.

Example. A CR2032 (≈ 220 mAh) board measuring its own cell through 100 kΩ / 100 kΩ: 15 µA at 3 V, about 1.7 years of the cell spent on the divider alone, before the MCU does anything.

How to check. Dividers from a battery rail (NET-5, CFG-2) whose tap reaches an ADC-capable pin, with no switch in the chain.

Fix. Switch the top of the divider with a PMOS (driven by a small NMOS from a GPIO), or the bottom with an NMOS where the ADC input can tolerate the full voltage when off; or go to 1-10 MΩ with a capacitor at the tap sized for the ADC's sampling charge.

References. Microchip analog TB §5: Figure 5-2 (a switched divider; the low-side switch only works for supplies at or below the MCU supply, hence a high-side switch for a battery above it), the capacitor across the lower resistor for ADC acquisition; catalogue LEAK-1.