ANA-2 Sensitive pins next to high-speed pins on a part¶
| Severity | Status | Implementation |
|---|---|---|
| warning | planned | mid, depends on NET-7, NET-12 |
Looks at. Pin numbers, pin functions, net classes.
What it catches. An ADC input or other high-impedance analog pin whose neighbour by pin number (or ball, on a BGA) carries a clock, a fast edge or a switching node: SPI clock, PWM, a UART at high rate, a crystal output.
Why it matters. Adjacent pins and the tracks that leave them are coupled by a few hundred fF to a few pF. Every edge on the neighbour injects a charge into the high-impedance node; the ADC sees spikes or an offset that correlates with the digital activity, and no amount of filtering behind the pin removes what couples in at the pin.
Example. On B153A (STM32G0B1, LQFP48) the INA181 output AN0 is on PB0, pin 19, between PA7 (the button ladder, pin 18) and PB1 (pin 20), which is tied to header pin 1 and can run a UART or SPI on PB3. With a fast signal on PB1 the current reading picks up its edges; with the button ladder next to it the neighbour is quiet.
How to check. For each analog pin in use, look up its neighbours by pin number in the package (and the diagonal ones on a BGA, which needs the ball map) and classify their nets: clocks, PWM, buses by name or net class, switching nodes (NET-6). The adjacency is in the netlist; the function of the pins needs part data.
Fix. Swap pins so the analog input has quiet neighbours (a ground, a static GPIO, another slow analog signal), slow the edges of the neighbour, or route the two apart right at the package.
References. AN2834 §3.2.11 (I/O pin crosstalk), §4.2.11 (minimizing I/O pin crosstalk); MT-031 "Treat the ADC digital outputs with care".