ANA-20 Analog input above VDDA + 0.3 V, also on a 5 V-tolerant pin¶
| Severity | Status | Implementation |
|---|---|---|
| error | planned | mid, depends on NET-5, NET-7, NET-12, CFG-2 |
Looks at. Analog pin functions, pin tolerance per mode (part data), voltage of the nets.
What it catches. An ADC, comparator or op-amp input on an MCU pin that can see more than its analog limit (VDDA + 0.3 V, IOVDD + 10 %, or a fixed limit), trusted because the pin is listed as 5 V tolerant.
Why it matters. "5 V tolerant" describes the digital input buffer, with the pull resistors off. Once the pin is switched to the analog mux, the analog switch has its own protection and the limit drops; above it current flows into the supply, the reading is wrong, and the injection disturbs the neighbouring channels. The datasheet says so in a footnote, not in the pin table.
Example. STM32G0B1 FT_a pins take VDD + 4 V as digital inputs, but "when an FT_a pin is used by an analog peripheral such as ADC, the maximum VIN is 4 V" (DS13560 Table 21, note 3). On the RP2350 the plain GPIOs are fault tolerant up to 5.5 V, while the ADC pins (GPIO40-47 on QFN-80) are a different pin type, and the ADC input must not exceed IOVDD + 10 %; above IOVDD current leaks through the ESD diodes.
How to check. For each pin used as an analog input (NET-12), the maximum voltage on its net (NET-5, CFG-2) against the analog limit of the pin from the part data (NET-7), not its digital tolerance.
Fix. Scale or clamp the signal into the analog range (ANA-13), with a series resistor to limit injection.
References. DS13560 Table 21 (voltage characteristics, note 3); RP2350 §12.4 (maximum ADC input voltage set by IOVDD), §14.8.2.1 (pin types: fault tolerant digital), §14.8.2.2 Table 1674 (ADC GPIOs are not of the FT type); AN2834 §3.2.9 (injection current effect).