In comparison to the previously discussed filters, an all-pass filter has a constant gain across the entire frequency range, and a phase response that changes linearly with frequency.
Because of these properties, all-pass filters are used in phase compensation and signal delay circuits.
Similar to the low-pass filters, all-pass circuits of higher order consist of cascaded first-order and second-order all-pass stages. To develop the all-pass transfer function from a low-pass response, replace A0 with the conjugate complex denominator.
The general transfer function of an all-pass is
A(s)=∏i(1−ais+bis2)∏i(1+ais+bis2)
(16.23)
with ai and bi being the coefficients of a partial filter. The all-pass coefficients are listed in Table 16.12 of Section 16.9.
Expressing Eq. (16.23) in magnitude and phase yields
This gives a constant gain of 1, and a phase shift,φ, of:
φ=−2α=−2∑iarctanaiΩ1−biΩ2
(16.25)
To transmit a signal with minimum phase distortion, the all-pass filter must have a constant group delay across the specified frequency band. The group delay is the time by which the all-pass filter delays each frequency within that band.
The frequency at which the group delay drops to 1/2–√ times its initial value is the corner frequency, fC.
The group delay is defined through:
tgr=−dφdω
(16.26)
To present the group delay in normalized form, refer tgr to the period of the corner frequency, TC, of the all-pass circuit:
Inserting the φ term in Eq. (16.25) into Eq. (16.28) and completing the derivation, results in:
Tgr=1π∑iai(1+biΩ2)1+(a21−2b1)⋅Ω2+b21Ω4
(16.29)
Setting Ω=0 in Eq. (16.29) gives the group delay for the low frequencies, 0<Ω<1, which is
Tgr0=1π∑iai
(16.30)
The values for Tgr0 are listed in Table 16.12, Section 16.9, from the first to the tenth order.
In addition, Fig. 16.42 shows the group delay response versus the frequency for the first ten orders of all-pass filters.
16.7.1. First-Order All-Pass Filter
Fig. 16.43 shows a first-order all-pass filter with a gain of +1 at low frequencies and a gain of −1 at high frequencies. Therefore, the magnitude of the gain is 1, while the phase changes from 0degrees to −180degrees.
The transfer function of the circuit above is
A(s)=1−RCωc⋅s1+RCωc⋅s
The coefficient comparison with Eq. (16.23) (b1=1) results in:
ai=RC⋅2πfc
(16.31)
To design a first-order all-pass, specify fC and C and then solve for R:
R=ai2πfc⋅C
(16.32)
Inserting Eq. (16.31) into Eq. (16.30) and substituting ωC with Eq. (16.27) provides the maximum group delay of a first-order all-pass filter:
tgr0=2RC
(16.33)
16.7.2. Second-Order All-Pass Filter
Fig. 16.44 shows that one possible design for a second-order all-pass filter is to subtract the output voltage of a second-order band-pass filter from its input voltage.
The transfer function of the circuit in Fig. 16.44 is
The coefficient comparison with Eq. (16.23) yields
a1=4πfcR1C
(16.34)
b1=a1πfcR2C
(16.35)
α=a21b1=RR3
(16.36)
To design the circuit, specify fC, C, and R, and then solve for the resistor values:
R1=a14πfcC
(16.37)
R2=b1a1πfcC
(16.38)
R3=Rα
(16.39)
Inserting Eq. (16.34) into Eq. (16.30) and substituting ωC with Eq. (16.27) gives the maximum group delay of a second-order all-pass filter:
tgr0=4R1C
(16.40)
16.7.3. Higher-Order All-Pass Filter
Higher-order all-pass filters consist of cascaded first-order and second-order filter stages.
Example 16.7. 2-ms Delay All-Pass Filter.
A signal with the frequency spectrum, 0<f<1kHz, needs to be delayed by 2ms. To keep the phase distortions at a minimum, the corner frequency of the all-pass filter must be fC≥1kHz.
Eq. (16.27) determines the normalized group delay for frequencies below 1kHz:
Tgr0=tgr0Tc=2ms⋅1kHz=2.0
Fig. 16.42 confirms that a seventh-order all-pass is needed to accomplish the desired delay. The exact value, however, is Tgr0=2.1737. To set the group delay to precisely 2ms, solve Eq. (16.27) for fC and obtain the corner frequency:
fC=Tgr0tgr0=1.087kHz
To complete the design, look up the filter coefficients for a seventh-order all-pass filter, specify C, and calculate the resistor values for each partial filter.
Cascading the first-order all-pass with the three second-order stages results in the desired seventh-order all-pass filter (See Fig. 16.45).