Skip to content

MUX-6 Analog signal on a pin without that analog function

Severity Status Implementation
error planned mid, depends on NET-7, NET-12

Looks at. Analog functions per pin, which nets are analog.

What it catches. A net that carries an analog signal (a divider output, a sensor output, a current-sense amplifier output, a DAC target) landing on a pin with no ADC, DAC or comparator input.

Why it matters. Analog functions exist on a subset of pins only; on the RP2350 the ADC is on GPIO26-29 (QFN-60) or GPIO40-47 (QFN-80) and nowhere else (RP2350 §12.4). A divider on a digital-only pin reads 0 or 1.

Example. A battery divider routed to RP2350A GPIO22 because it was the nearest free pin: the firmware can only compare it against VIH.

How to check. Classify analog nets (connected to an amplifier output, a divider without a digital load, a net named *_ADC, *_SENSE, VBAT_MEAS; NET-7) and require an analog function on the controller pin (NET-12).

Fix. Move to an ADC-capable pin; check the channel is free and in the right ADC instance for simultaneous sampling.

References. RP2350 §12.4; STM32G0B1 Table 12 (ADC_INx per pin); AN4899 §5.2.2 (analog function limits the input voltage).