Skip to content

ANA-1 ADC input from a high-impedance source without a buffer

Severity Status Implementation
warning planned mid, depends on NET-7, NET-12, RPT-6

Looks at. ADC pins (pin functions), source impedance through the resistor network.

What it catches. An MCU or ADC input whose source impedance (the Thevenin resistance of the divider, sensor or filter in front of it) is above what the ADC can settle in its sampling time, with no buffer and no reservoir capacitor at the pin.

Why it matters. A SAR ADC samples by connecting a small capacitor (a few pF) to the pin for a short time. The source has to recharge it through its own resistance; when that takes longer than the sampling window the conversion reads low, and the error depends on what the previous channel was. Input leakage into a large source resistance adds an offset on top. The error is silent: plausible numbers, a few percent off, worse at fast scan rates.

Example. A battery monitor with a 1 MΩ / 100 kΩ divider (chosen for a tiny standby current) straight into an STM32G0B1 ADC pin: the Thevenin resistance is 91 kΩ, while the datasheet allows at most 50 kΩ for 12 bits even at the longest sampling time of 160.5 cycles (DS13560 Table 64). B153A's VBUS sense on PA3 (10 kΩ / 1.62 kΩ, about 1.4 kΩ) is fine, and it carries a 100 nF capacitor at the pin as well.

How to check. Find the ADC-capable pins in use (pin functions, NET-12), compute the source resistance seen from the pin through the resistor network (RPT-6), and compare it with the part's limit per resolution and sampling time (library or project data). A capacitor to ground at the pin, large against the sampling capacitor, or an op-amp output on the net exempts it.

Fix. A follower in front of the ADC, a capacitor at the pin (≥ 1000 × the sampling capacitance, and accept the slower signal), lower divider values, or a longer sampling time where the part allows it.

References. AN2834 §3.2.7 (effect of the analog signal source resistance), §4.2.7 (external analog buffer usage), §4.4 (high impedance source measurement); DS13560 Table 64 (maximum ADC RAIN); AoE3 chapter 13.