Design first-order RC and RL filters with exact Bode attenuation and phase
First-order RC and RL networks appear everywhere in embedded hardware: anti-aliasing before an ADC, smoothing PWM into an analog reference, AC-coupling audio signals, debouncing mechanical switches and damping high-frequency rail noise.
At the cutoff frequency f_c, output amplitude drops to 70.7% (−3.01 dB) and phase shifts by 45°. Beyond f_c, magnitude rolls off asymptotically at −20 dB per decade (10× frequency reduces amplitude by 10×). Use C0G/NP0 ceramics for precision filtering so capacitance stays stable across DC bias and temperature.
Formulas
RC: τ = R × C; f_c = 1 ÷ (2π × R × C)RL: τ = L ÷ R; f_c = R ÷ (2π × L)Low-Pass |H(f)| = 1 ÷ √(1 + (f/f_c)²); Gain (dB) = 20·log10(|H|)
Worked example
A 10 kΩ resistor and 100 nF capacitor form an RC low-pass filter with τ = 1.00 ms and f_c = 159.15 Hz. At a 1 kHz test frequency (6.28× f_c), signal magnitude drops to 15.7% (−16.07 dB) with a −80.9° phase lag.