ANA-18 No anti-aliasing filter before an ADC¶
| Severity | Status | Implementation |
|---|---|---|
| suggestion | planned | judgement, depends on NET-12 |
Looks at. ADC pins, filters, knowledge of the signal.
What it catches. An ADC input fed from a noisy or fast source (a switching converter's current, a motor, a long cable, a sensor with RF pickup) with no low-pass filter in front of it.
Why it matters. A sampled system folds every frequency above half the sample rate back into the band below it. Ripple at 100 kHz sampled at 10 kHz does not average out: it appears as a slow wander or a fixed offset, depending on the beat frequency, and no digital filter after the ADC can tell it from the signal.
Example. A motor current sampled at 1 kHz from a shunt amplifier while the bridge switches at 20 kHz: the reading wobbles at a few hertz from the beat of the PWM against the sampling clock. An RC at 300 Hz in front of the ADC, or sampling synchronised to the PWM, removes it.
How to check. better_erc can list ADC pins without a capacitor to ground or an RC in front; whether the source is noisy, and what bandwidth is wanted, is the designer's knowledge.
Fix. An RC (or an active filter) with its corner below half the sample rate, sized for the attenuation needed at the noise frequency; synchronise sampling to known switching where possible.
References. MT-002 "Baseband antialiasing filters"; AN2834 §4.2.3 (analog-input signal noise elimination); Wikipedia, Anti-aliasing filter; AoE3 chapter 13.