4.4.1 Flexible Second-Order Component Computation

Using the filter design tool (Excel spreadsheet) available in the MPLAB® Mindi Analog Simulator Software Library (see the Appendix), we calculated a 20 kHz low-pass Butterworth filter. The filter is set for maximum gain. The supply voltages and operational amplifier limitations regarding rail-to-rail operation are taken into account. This circuit is for demonstration purposes and ignores any additional circuitry related to the receiver’s AC coupling. The simulation bench is available as the file 2nd_order_LP_active_filter.wxsch in the Library.

Compared to the static maximum gain computed using the Excel spreadsheet, the gain was slightly reduced to account for the small overshoot in the step response, as the quality factor is greater than 0.5. This is achieved through Step 2 inputs, as well as by choosing capacitor values that are easier to find (while complying with the constraint on C2/C1 from Step 1 outputs and with the penalty of lower resistor values).

Table 4-4. Single-Ended Second-Order Active Low-Pass Filter Computation
ParametersValueUnitWarnings/Suggested Normalized Values
Step 1InputsFc (Hz) =20000Hz

WARNING: Q>0.5 generates a peak in the step response that must be taken into account in the max gain computation to avoid saturating the amplifier output. Reduce the global gain according to the step overshoot and check the transient simulation results.

Q =0.71
INmin =0V
INmax =3.3V
OUTmin =0.05V
OUTmax =4.95V
V1 =5
Channels count =1
Capacitors series =12
Resistors series =96
OutputsNo sat. |G|max =1.48
Resonance freq =NONEHz
Extra gain @Fr1.00
Step overshoot =1.04
Min(C2/C1) =4.97
Suggested C1 =2.20E-10F
Suggested C2 =1.20E-09F
Step 2InputsSelect |G| =1.4
Select C1 =2.20E-10F
Select C2 =2.20E-09F
OutputsMin(C2/C1) =4.80
Computed R0 =7.13E+03ΩNearest value from R0 in E96 series =7150Ω
Computed R1 =1.83E+04ΩNearest value from R1 in E96 series =18200Ω
Computed R2 =5.09E+03ΩNearest value from R2 in E96 series =5110Ω
Computed R4 =3.56E+04ΩNearest value from R4 in E96 series =35700Ω
Computed R5 =5.32E+04ΩNearest value from R5 in E96 series =53600Ω
Computed C4 =7.47E-07FNearest value from C4 in E12 series =680nF

The theoretical maximum gain obtained by mapping the input range to the output range (1.48 in this case) is reduced to account for the dynamic behavior during transients, as the expected overshoot is a factor of 1.04 for Q=0.707.

Figure 4-9. Single-Ended Second-Order Active Low-Pass Filter - AC Simulation

C4 is larger than the computed value. The calculation targets a 10 Hz high-pass filter. Implementing a lower corner frequency generally has no practical consequence, and a 1 µF capacitor is more common.

The AC simulation demonstrates a good match between the designed filter and the ideal filter. The blue and red curves are superimposed. The AC current is moderate across the whole frequency range compared to the operational amplifier capability.

Figure 4-10. Single-Ended Second-Order Active Low-Pass Filter - DC Simulation

The DC simulation results show the output range (red curve) versus the input range (green curve). There are ~200 mV margins between the output range and the supplies on both sides. Since the output always includes a DC component, it is necessary to add an AC coupling to the receiver. The impedance observed from the amplifier positive and negative inputs is matched. For a stereo setup, use option 2 for the channel count to compute a single set (R4, R5, C4) that can be shared between the two amplifiers.

Figure 4-11. Single-Ended Second-Order Active Low-Pass Filter Transient Simulation (0 to 50% Duty Cycle Start-Up Transient)

The transient simulation shows the step response with moderate overshoot (~100 mV), in accordance with the computed 1.04 factor. A residual ripple from the PWM is visible on the output voltage.