2.1 RC Filter Example

For this example, it is required to design a simple RC low-pass filter to obtain an analog output from a pulse-width modulated signal with a bandwidth of 4 kHz.

Step 1: Select the low-pass filter’s resistor and capacitor values.

Equation 2-1 shows how to calculate the values for R and C based on the cut-off frequency, ƒC. In this example, the resistor values were calculated based on fixed capacitor values, as shown in Table 2-1.

Equation 2-1. RC Time Constant
RC=12π×fC
where:
R:Resistance
C: Capactiance 
fC:cutofffrequency
Table 2-1. Calculated Resistor Values
Capacitor ValueCalculated Resistor Value
1 pF40 MΩ
0.01 µF4 kΩ
0.022 µF1.8 kΩ

Step 2: Calculate attenuation at the PWM frequency.

Equation 2-2 shows the attenuation in decibels (dB) based on the RC values and the PWM frequency.

Equation 2-2. Attenuation in Decibels (dB)
Attenuation  (dB)@fPWM=10log[1+(2π×fPWM×RC)2]
Table 2-2. Attenuation at the PWM Frequency (FPWM)
FPWMR ValueC ValueAttenuation (dB) @ FPWM
10 kHz40 MΩ1 pF-8.64
10 kHz4 kΩ0.01 µF-8.64
10 kHz1.8 kΩ0.022 µF-8.57
100 kHz40 MΩ1 pF-28.01
100 kHz4 kΩ0.01 µF-28.01
100 kHz1.8 kΩ0.022 µF-27.92
Figure 2-4. Bode Plot
Figure 2-5. Step Response (R = 40 MΩ, C = 1 pF, FPWM = 10 kHz)
Figure 2-6. Step Response (R = 40 MΩ, C = 1 pF, FPWM = 100 kHz)
Figure 2-7. Step Response (R = 4 kΩ, C = 0.01 μF, FPWM = 10 kHz)
Figure 2-8. Step Response (R = 4 kΩ, C = 0.01 μF, FPWM = 100 kHz)
Figure 2-9. Step Response (R = 1.8 kΩ, C = 0.022 μF, FPWM = 10 kHz)
Figure 2-10. Step Response (R = 1.8 kΩ, C = 0.022 μF, FPWM = 100 kHz)