Suppress Nyquist aliasing ahead of an MCU SAR ADC
Every sampled ADC folds out-of-band noise above half the sampling rate (f_s / 2) right back into your baseband measurements. A simple first-order RC filter (`1 kΩ + 100 nF C0G`, `f_c = 1.59 kHz`) attenuates 20 kHz switching noise by −22 dB while keeping series resistance low enough (`1 kΩ ≤ 10 kΩ`) to satisfy SAR ADC source-impedance specs.
The 100 nF capacitor simultaneously acts as a local charge reservoir for the ADC’s internal sample-and-hold switch.
Formulas
f_c = 1 ÷ (2π × 1,000 Ω × 100 nF) = 1,591.5 Hzτ = R × C = 100 µsAttenuation at 20 kHz = −20·log10(√(1 + (20/1.59)²)) = −22.0 dB
Worked example
With R = 1 kΩ and C = 100 nF, f_c = 1.59 kHz and τ = 100 µs. At a 20 kHz noise source, amplitude drops to 7.9% (−22.02 dB) with −85.5° phase shift.