Chapter 4
Chapter 4
Filters are essential building blocks in many systems, particularly in communication and instrumentation systems. A filter passes one band of frequencies while rejecting another. Typically implemented in one of three technologies: passive RLC filters, active RC filters and switchedcapacitor filters. Crystal and SAW filters are normally used at very high frequencies. Passive filters work well at high frequencies, however, at low frequencies the required inductors are larges, bulky and non-ideal. Furthermore, inductors are difficult to fabricate in monolithic from and are incompatible with many modern assembly systems. Active RC filters utilize op-amps together with resistors and capacitors and are fabricated using discrete, thick film and thin-film technologies. The performance of these filters is limited by the performance of the op-amps (e.g., frequency response, bandwidth, noise, offsets, etc.). Switched-capacitor filters are monolithic filters which typically offer the best performance in the term of cost. Fabricated using capacitors, switched and op-amps. Generally poorer performance compared to passive LC or active RC filters. Filters are generally linear circuits that can be represented as a two-port network:
+ Vi(s) -
Filter circuit
+ Vo(s)
-
The magnitude of the transmission is often expressed in dB in terms of gain function: G()dB=20log(|T(j)| Or, alternatively, in terms of the attenuation function: A( )dB=-20log(|T(j)| A filter shapes the frequency spectrum of the input signal, according to the magnitude of the transfer function. The phase characteristics of the signal are also modified as it passes through the filter. Filters can be classified into a number of categories based on which frequency bands are passes through and which frequency bands are stopped. Figures below show ideal responses of various filters. A A
Passband fc
EE 323 - Filters
Stopband f
Stopband fc
Passband f
68
A BW Passband f1 f2 Stopband f
A BW Stopband f1 f2 Passband f
BANDSTOP FILTER RESPONSE Quality factor Q (how fast the roll-off is)
f 0 = f1f 2
Q=
f0 BW
EE 323 - Filters
69
Transmission of a low pass filter is specified by four parameters: - Passband edge, p - Maximum allowed variation in passband transmission, Amax - Stopband edge, s - Minimum required stopband attenuation, Amin The ratio s/ p is usually used to measure the sharpness of the filter response and is called the selectivity factor. The more tightly one specifies a filter (i.e., lower Amax, higher Amin, s/ p closer to unity) the resulting filter must be of higher order and thus more complex and expensive. Amax is commonly referred as the passband ripple. The process of obtaining a transfer function that meets given specifications is known as filter approximation. Filter approximation is usually performed using computer programs or filter design tables. In simple cases, filter approximation can be performed using closed form expressions. Figure below shows transmission specifications for a bandpass filter.
General notes: -
Each capacitive/inductive element adds a pole or zero to the frequency response. By adding additional poles/zeroes we can increase the roll-off of the filter response (e.g., two-pole lowpass filter would have a 40dB/decade roll-off at high frequency). In adding poles, we must take into account the loading of successive stages as shown
EE 323 - Filters
70
Additional of buffer removes impedance matching effects. When capacitors are combined with inductors, it is possible to make circuits with very sharp response.
j2fL=sL
Vin
1/j2fC=1/sC
Vout
T (s ) =
1 sC R + sL + 1 LC
1 sC Q
1 s 2 LC + sRC + 1 Q= L R
2 o
s2 + 1 L R C
o s+
o =
0 = R
0 =
Q of the circuit affects response. When Q=0.5, response is equivalent to 2 pole RC filter. High Q pumps up gain below cutoff and increases slope after cut off. Single RC filter has large passband ripple and shallow rolloff. Addition of RC stages increase rolloff, however, passband flatness not affected and using a large number of stages does not give sharp cutoff of first 50dB. Eight-section LC is better than 32-section RC.
EE 323 - Filters
71
By adjusting the Q of each section of a filter, it is possible to achieve better response. For a two-section filter, we can increase the Q of the second stage so that the peak fills in the rounded area just beyond cutoff of the first section. The scheme improves the passband flatness just short of cutoff and allows us to reach ultimate slope just after cutoff. There are Qs which give optimum performance of the filter. How to select the Q to give optimum performance and what is the optimum response?
Butterworth response:
For a Butterworth filter, the optimum is flat response in the passband and steep slope soon after cutoff (maximum flat filter). This is done by combining low Q section and high Q section. The problem is similar to finding Fourier series of a square wave. The solution lies in the use of the Butterworth polynomial. Four and eight-pole Butterworth filters are common. Standard table can be used to find component values. Butterworth filters are also called maximum flat filter.
Chebyshev response:
In some applications, the sharpness of the cutoff response is more important than the passband flatness. By adding higher resonant peaks, it is possible to obtain sharper cutoff at the expense of peaks in the passband. The section cutoff frequencies and Q factors can be determined using Chebyshev polynomials. Whereas for the Butterworth filter, we only specify the number of poles or zeroes of the filter, for a Chebyshev filter, we specify the number of poles (zeroes) and passband flatness (i.e., a 0.5dB Chebyshev filter has a minimum peak 0.5dB above the minimum valley in the passband (equalripple filter).
EE 323 - Filters 72
Due to large number of options, it is difficult to find tables for Cauer filters.
EE 323 - Filters 73
T (s) =
a M s M + a M 1s M 1 + s + b N 1s
N N 1
+ a0 + b0
The degree of the denominator, N, is the filter order. For the filter to be stable, NM. The numerator and denominator coefficients are real numbers. The polynomials in the numerator and denominator can be factored and T(s) can be expressed in the form:
EE 323 - Filters
74
This particular filter can be seen to have infinite attenuation (zero transmission) at two stopband frequencies l1 and l2. The filter must have zeroes at s=+jl1 and s=+jl2. However, since complex zeroes occur in conjugate pairs, there must also be zeroes at s=-jl1 and s=-j jl2. Thus the numerator polynomial of this filter will have the factors: (s+jl1)(s-jl1)(s+jl2)(s-jl1) which can be written as:
2 2 2 (s 2 + l 1 )(s + l 2 )
which is zero at =l1 and =l2. It is also seen that the transmission decreases toward - (i.e., 0dB) at approaches , thus the filter must have one more zero at s=. In general, the number of zeroes at s= is the difference between the degree of the numerator polynomial, M, and the degree of the denominator polynomial, N. This is because as s approach to , T(s) approaches a M and thus is said to have N-M zeroes at For a filter circuit to be stable, all its poles must lie in the left half of the s plane and thus all the poles must have negative real parts. The figure below shows typical pole and zero location for the transmission function depicted in the figure above. s=.
sNM
EE 323 - Filters
75
This filter is a fifth order (N=5); it has two pairs of complex conjugate poles and one realaxis pole. All the poles lie in the vicinity of the passband which gives the filter its high transmission at passband frequencies. The transfer function of this filter is of the form:
T (s) =
s 5 + b 4 s 4 + b 3s 3 + b 2s 2 + b1s + b 0
2 2 a 4 (s 2 + l2 1 )(s + l 2 )
As a further example, consider the lowpass filter below; it is observed that there is no finite value of at which transmission is zero. Thus all zeroes are at s=. The filter transfer function is of the form a4 T(s) = 5 4 3 s + b 4s + b 3s + b 2s 2 + b1s + b 0
by:
The magnitude function for an Nth-order Butterworth filter with a passband edge is given
T( j) =
1 1 + 2 ( 2N ) p
at = p,
T( jp ) =
1 1 + 2
The parameter determines the maximum variation in passband transmission, AMAX (i.e., passband ripple).
A MAX = 20 log( 1 +
and
A MAX = 10 10 1
EE 323 - Filters
77
A ( s ) = 20 log( 1+ or
1
2
)
s 2N p
A ( s ) = 10 log[1 + 2 ( s ) 2 N ]
p
The last equation is used to determine the filter order required, which is the lowest value of N that yields A( s)AMIN. The poles of a Butterworth filter can be determined from the graphical construction below. The poles lie on a circle of radius (1/)1/N and are spaced at equal angles of /N.
Since all poles have equal radial distance from the origin, they all have the same frequency 0= P(1/)1/N, i.e., all have the same Bode plot, just different Q. Once the poles are known, the transfer function can be written as:
T(s) =
(s p1 )(s = p 2 )
N K 0
(s p N )
The Chebyshev filter exhibits an equal ripple response in the passband and a monotonically decreasing transmission in the stopband. The total number of passband maxima and minima equals the order of the filter (i.e. number of poles). All the transmission zeroes of the Chebyshev filter are at = making it an all pole filter. The magnitude of the transfer function of an NTH-order Chebyshev filter with a passband edge p is given by:
T ( j) =
1 1 + 2 cos 2 [ N (cos 1 ( )] p
where p
and
T ( j) =
1 1 + 2 cosh 2 [ N (cosh 1 (
1 1 + 2
)] p
where p
A MAX = 10 log(1 + )
or
The attenuation achieved by the Chebyshev filter at the stopband edge ( =s) is:
This equation is used to find the order N of the Chebyshev filter for a specific ripple, , stopband edge, s, passband edge, p, and an attenuation A(s) in dB. The poles of a Chebyshev filter are given by:
p k = p sin(
T (s) =
2 N 1 (s p1 )(s p 2 )
N K p
(s p N )
As shown, the Chebyshev filter provides greater stopband attenuation than the Butterworth filter at the expense of passband ripple.
Let
km=system impedance (e.g., 50, 75) kf=2fc , where fc is the cutoff frequency RN, LN, CN= normalized values from the table
Then
R f = kmR N k Lf = m LN kf Cf = 1 CN k mkf
EE 323 - Filters
80
EE 323 - Filters
81
Example:
Design a RLC Butterworth filter for a wideband AM receiver using in a 50 system with the specifications given below: - Stopband edge: fs=2.8MHz. - Passband edge, fp,=1.6MHz. - Attenuation A(fs)=20dB - Maximum ripple AMAX=1dB.
LPF R1 1 2 50 L1 2 3 1.287uH C1 3 0 1.508nF L2 3 4 5.978uH C2 4 0 3.089nF L3 4 5 8.784uH C3 5 0 3.05nF VAC 1 0 AC 0.001 .AC DEC 10 100K 4MEG .PRINT AC V(1) V(4) V(5) (V(5)/V(1)) .END
EE 323 - Filters
82
Example:
Design the above filter using Chebyshev filter, using an AMAX of 0.1dB.
EE 323 - Filters
83
LPF (Chebyshev) R1 1 2 50 L1 2 3 6.8198uH C1 2 0 2.281nF L2 3 4 6.8198uH C2 3 0 3.929nF C3 4 0 2.281nF VAC 1 0 AC 0.001 .AC DEC 10 100K 4MEG .PRINT AC V(1) V(4) (V(4)/V(1)) .END
The pole is at s=- 0 and a zero at s=-a0/a1. The high frequency gain approached to a1. The numerator coefficients (a0,a1) determine the type of filter (i.e., LP, HP, etc.).These filters are simple to design and they can be cascaded to form higher order filter. First order filters can be realized using RC or op-amp RC as shown in the figure below.
EE 323 - Filters
84
EE 323 - Filters
85
p1 , p 2 =
2Q
j 0 1
1 4Q 2
We are usually interested in the case of complex conjugate poles obtained for Q>0.5.
The radial distance of the poles from the origin is the pole frequency ( 0). Q is called the pole quality factor. The higher the value of the Q, the closer the poles are to the j axis and the more selective (higher peak and initial roll-off) the filter response becomes. An infinite value of Q locates the poles on the j axis and can yield sustained oscillations.
86
EE 323 - Filters
Followings are the transfer functions and responses of various 2nd order filters.
EE 323 - Filters
87
EE 323 - Filters
88
The resonator (a dead network) in figure (a) is excited by a current source I in figure (b), the output voltage Vo across the network is: s Vo 1 1 C = = = 1 1 1 1 I Y + ( ) + sC + s2 + s sL R RC LC Equating the denominator to standard form of a second order response: where
s2 + s
2 o = 1 LC
o 2 + o Q
o = 1 LC and o 1 = Q RC Q = o RC
EE 323 - Filters
89
The realization of various second-order filter functions using the LCR resonator is shown in figure below.
EE 323 - Filters
90
EE 323 - Filters
91
R Z2
ZC = Zin =
1 jC
I in =
Vin = Vin jC ZC
L=
Typically, R1= R2= R3= R5=R and C4=C, then
C 4 R 1R 3 R 5 R2
L=CR2
EE 323 - Filters
92
The Antoniou inductor simulating circuit is replacing the inductor in the LCR resonator as shown in figure below and the circuit parameter can be derived as:
o = 1 = LC 6 1 C 4 C 6 R 1R 3 R 5 R2 C6 R2 C 4 R 1R 3 R 5
Q = o C 6 R 6 = R 6 If
C 4 = C6 = C R1 = R 3 = R 5 = R 1 RC Q= R6 R
EE 323 - Filters
then o =
93
Various filters using LCR second order resonator realization using the inductor simulating circuits with design data are shown in the followings.
EE 323 - Filters
94
EE 323 - Filters
95
EE 323 - Filters
96
EE 323 - Filters
97
T (s) =
VHP = Vi
Ks 2 2 s 2 + s o + o Q
VHP
The signal,
can be obtained by passing VHP through an integrator with a time constant equal to 1/0. Passing the resulting signal through another identical integrator generate:
)VHP s2 Then the output signal VHP can be generated as the feedback configuration as shown below: ( 2 o
o VHP s
EE 323 - Filters
98
function.
0 VHP ) is the signal at the output of the first integrator which is a bandpass The term ( s Vi
2 TLP (s) = s
VHP
Vi
= K2
s 2 + 0 s + 2 0 Q
The two-integrator loop biquad realizes three basic second order filter functions LP, BP and HP simultaneously. This circuit is very popular and is commonly called the universal active filter (the Kirwin-Huelsman-Newcomb = KHN biquad).
Rf = 1 , and RC = 1 R1 0
EE 323 - Filters
By summing the LP, BP and HP outputs, the overall transfer function of the KHN biquad and the summer in figure (b) is:
R RF 2 RF s 0s + F RL RB R V0 = K H Vi s2 + 0 s + 2 0 Q
2 0
Although the two-integrator loop biquads are versatile and easy to design, their performance is adversely affected by the finite bandwidth of the op-amps.
t (s) =
N ( s) D(s)
L(s) = At (s) =
AN (s) D(s)
Refer this to the negative feedback configuration, the feedback loop gain is:
A FB = A 0 , set the loop gain 1+L(s)=0, which results in the poles sp of the closed-loop circuit at: 1 + A 0
t (s p ) =
1 A
assume an ideal op-amp with an infinity gain A, the poles are obtained from: N(sp)=0
EE 323 - Filters
That is, the poles are identical to the zeroes of the RC network above.
100
Since our objective is to realize a pair of complex conjugate poles, we should select an RC network that has complex conjugate zeroes. The simplest such networks are bridge-T networks.
The pole polynomial of the active filter circuit will be equal to the numerator polynomial of the bridge-T network.
s + 0 1 1 1 1 ) s + 2 = s2 + s ( + + 0 C1 C 2 R 3 C1C 2 R 3 R 4 Q
and
0 =
1 C1C 2 R 3R 4
and Q = [
C1C 2 R 3 R 4 R3
1 1 1 + )] C1 C 2
Common implementation,
2Q 0
EE 323 - Filters
101
A common implementation of the single amplifier biquad is the Salen-Key filter. A LP filter using Salen-Key circuit is shown below. C1
Vin
+
0 =
Vout
1 R 2 C1C 2
C2 In the design,
Given ...C 2 , f , Q C1 = 4Q 2 C 2 R= 1 2f C1C 2
and Q = 0.5
C1 C2
Given....R , f , Q Q C1 = fR C C2 = 1 4Q 2
EE 323 - Filters
102
EE 323 - Filters
103
IX. SENSITIVITY
Because of tolerances in component values and because of the finite op-amp gain, the response of the actual filter will deviate from the ideal response. As a means of predicting such deviations, filter designers employs the concept of sensitivity. For second order filters, one is normally interested in finding how sensitive their poles are relative to variations (both initial tolerances and future changes) in RC component values and amplifier gain. This is important because positions of the poles in s-plane determine stability of the circuits. These sensitivities can be quantified using the classical sensitivity function:
Y X Y SY X = lim X = X Y X 0 Y
Here the X denotes the values of a component and Y denotes a circuit parameter of interest (e.g., 0, Q, ), for small changes, the approximation below is used:
SY X = X / Y Y / X
Thus we use the value of sensitivity S to determine the per unit change in Y due to a given per unit change in X. For example, if the sensitivity of Q relative to a particular resistance R1 is 5, then 1% increase in R1 results in a 5% increase in the value of Q.
X. SWITCHED-CAPACITOR FILTERS
Active RC filters are difficult to implement totally on an Integrated Circuit (IC) due to the requirements of large-valued capacitors and accurate RC time constants. The switched-capacitor filter technique is based on the realization that a capacitor switched between two circuit nodes that a sufficiently high rate is equivalent to a resistor connecting these two nodes. Consider the following circuits.
EE 323 - Filters
104
From the circuit, we see that during each clock period, TC, an amount of charge qC1=C1Vi is subtracted from the input source and supplied to the integrator capacitor C2. The average current flow between the input node and virtual ground (VG) is
i av = C1v i ch arg e = TC cycle
If TC is sufficiently short, one can think of the process as continuous and define an equivalent resistance REQ that is an effect present between nodes in and VG: v T R EQ = i = C i av C1 The time constant for the integrator can be calculated as:
C2 C1
Thus the time constant that determines the frequency response of the filter is determined by the clock period TC and the capacitor ratio C2/C1. Both of these parameters can be well controlled in an IC fabrication process.
Note: The dependence is on capacitor ratio rather than capacitor absolute values. The accuracy of capacitor ratio in MOS technology is on the order of 0.1%. For reasonable clock frequencies (100KHz) and not to large capacitor ratios (10) one can obtain relatively large time constants (10-4s). The clock frequency must be higher than any frequency component of the signal (typically 100x). The filter cut off frequency can be easily programmed by changing the clock frequency. Some of clock signal will feedthrough to output, signals near the clock frequency can be aliased into the passband, overall increases in the noise floor (due to the on-off switching of the clock). Switched-capacitor filter IC offers a low cost high order filter on a single IC.
EE 323 - Filters
105
EE 323 - Filters
106