4.3 Use Case 3 Output Filter Computation

A fourth-order filter is typically built from two second-order filters, using Q1 and Q2 as quality factors. A good approximation can be achieved using Q’1 and Q’2 with Q’1*Q’2=Q1*Q2. When using a single amplifier, the only quality factor under control is Q’2, while the two passive RC cells combine into a Q=0.5 second-order cell. Hence, to match a known filter defined by Q1 and Q2, Q=Q1*Q2/0.5 must be used.

As an example, we will refer to the latter case and generate a quasi-B4 filter. A fourth-order Butterworth filter is defined by:

Q1=1/√(2-√2) and Q2=1/√(2+√2)

Q1*Q2=1/√((2-√2)*(2+√2))=1/√(2²-(√2)²)=1/√(4-2)=1/√2

Therefore, Q=√2 (Q=2/√2) must be selected for a single operational amplifier.

In Use Case 3: Stereo Audio DAC with Active Differential to Single-Ended Low-Pass Filter, the resulting gain is too high, causing saturation. The gain can be adjusted using the filter calculator as shown below.

The filter calculator (Excel spreadsheet) is available in the MPLAB® Mindi Analog Simulator Software Library, together with the simulation bench (file Datasheet_differential_active_filter_corrected.wxsch). See the Appendix.

Table 4-3. 20 kHz Differential Fourth-Order B4-Like Low-Pass Filter Computation
ParametersValueUnitWarnings/Suggested Normalized Values
Step 1InputsFc =20000Hz

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

WARNING: Q>1 generates a gain peak at resonance that must be taken into account to avoid saturating the amplifier output. Reduce global gain according to the gain at resonance frequency and check AC simulation results. Do not cumulate step overshoot and extra gain at resonance frequency correction: apply the highest values from both.

Q =1.41
INmin =-3.3V
INmax =3.3V
OUTmin =0.05V
OUTmax =4.95V
V1 =5V
Capacitors series =12
Resistors  series =96
OutputsNo  sat. |G| max =0.74
Resonance freq =15824Hz
Extra gain @Fr =1.17
Step overshoot =1.18
Min(C2/C1) =13.94
Suggested C1 =1.20E-10F
Suggested C2 =1.80E-09F
Step 2InputsSelect |G| =0.6
Select R7 =1.00E+05Ω
Select R8 =2.20E+04Ω
Select C1 =2.20E-10F
Select C2 =3.30E-09F
Select C6 =6.80E-09F
OutputsMin(C2/C1) =12.80
Computed R0 =7.89E+03ΩNearest value from R0 in E96 series =7870Ω
Computed R1 =1.11E+04ΩNearest value from R1 in E96 series =11000Ω
Computed R2 =1.05E+04ΩNearest value from R2 in E96 series =10500Ω
Computed R3 = 2.63E+03ΩNearest value from R3 in E96 series =2610Ω
Computed R4 =5.00E+04ΩNearest value from R3 in E96 series =49900Ω
Computed R5 =5.00E+04ΩNearest value from R3 in E96 series =49900Ω
Computed R6 =1.17E+03ΩNearest value from R6 in E96 series =1180Ω
Computed C3 =3.03E-09FNearest value from C3 in E12 series =3.2nF
Computed C4 =3.18E-07FNearest value from C4 in E12 series =320nF
Computed C7 =8.83E-07FNearest value from C7 in E12 series =830nF
R6 induced loss =0.94Effective overall gain = -0.56
Note: The passive RC input cell interacts with the second-order active low-pass filter, causing the effective transfer function to differ slightly from the target. Tuning C3 in the simulation is generally the best way to match the prototype filter.
Figure 4-6. Differential Fourth-Order B4-Like Low-Pass Filter – First-Pass AC Simulation Results

As shown, the response is quite close to the Butterworth target. Some extra damping will help. As mentioned in the filter calculator for the third and fourth orders, the upfront passive first-order cell interferes with the second-order cell. Experience shows that adjusting the C3 value is the best way to bring the behavior back to the target.

Figure 4-7. Differential Fourth-Order B4-Like Low-Pass Filter – Second-Pass AC Simulation

Changing C3 from 3.3 to 3.9 nF brings the simulated response to the B4 target.

Figure 4-8. Differential Fourth-Order B4-Like Low-Pass Filter - Transient Simulation

The transient simulation confirms there is no longer any saturation with the full-scale signal.