Вы находитесь на странице: 1из 11

Scott Kilpatrick Burgess

FILTERS: ACTIVE & PASSIVE Introduction Filters pervade electronic design, as there is always a need to shape the frequency response of signals propagating through the system of interest. To achieve the correct shaping, one considers the Fourier transform of the filter, and designs it so that the magnitude of this transform has the desired shape. In analog design, there are standard filters one encounters, namely the low-pass, high-pass, bandpass, notch and (not as often) all-pass filters. To be sure, there are numerous other filters, but the others such as FIR and IIR filters occur in digital or mixed-signal systems that employ digital signal processing. For this lab, only the analog filters are considered. A distinction can be made between active and passive filters. While passive filters are nice in that they may allow signals of any amplitude to be processed linearly, active filters (which restrict the allowable input signal, due to power supply limitation) afford the advantage of allowing one to cascade filters, without each filter loading the preceding filter, and hence altering the response of that filter. Such isolation is the major advantage of active filters vs. passive filters.

Scott Kilpatrick Burgess

Theory Passive Filters In your first circuits course, you were introduced to the first-order low-pass filter, described by the following transfer function:

j tan H (0 ) H (0) H (0) H (0 ) H (s ) = e = = = 2 s j 2f 1 + (2f p ) 1+ 1+ 1+ j p p p

2f 1

(1)

H(0) is the DC gain, s is the Laplace variable, is the radial frequency, p is the radial pole frequency, f is the frequency in Hertz and pf is the pole frequency in Hertz. The complex Laplace variable has been replaced by the purely imaginary Fourier variable j since the focus of this lab is on steady-state behavior, not the transients involved in approaching steady-state operation. The resultant Fourier description is complex, with an attendant magnitude and phase. For this first-order filter, the magnitude and phase are sketched in Fig. 1: |H(j)| (dB) Phase of H(j) (degrees)

|H(0)| -20 dB/decade

-45

-90 1 f/pf 0.1 1 10 f/pf

Fig. 1

(a) First-order response magnitude (linear-log axes), (b) phase (linear-log axes).

To implement this filter with passive components, one requires one reactive component (i.e., an inductor or capacitor) and one resistor. The standard capacitor verson is shown in Fig. 2 for reference, and the inductor equivalent is left as a prelab exercise.

Scott Kilpatrick Burgess R Vin C Vout

Fig. 2

First-order low-pass filter using a capacitor.

As was pointed out in the introduction to this lab, a major drawback of passive filters is that simply cascading them alters the response one desires; this is because the input and output impedances of each filter are not infinite and zero, respectively, thus the filters are not ideal voltage-to-voltage devices. As an example, consider a cascade of two passive filters, one designed with a pole at 1 kHz, the other at 5 kHz, as shown in Fig. 3:

Vin

R1=1k

R2=1k

Vout

1 = 1kHz 2R1C1

C1=159nF

1 = 5kHz 2R 2 C 2

C2=32nF

Fig. 3

Cascade of two first-order filters.

Solving the appropriate Kirchhoff equations leads to the following result:

H (s ) = H (s ) =

1 1 + (R1C1 + R1C 2 + R 2 C 2 )s + (R1 R 2 C1C 2 )s 2 1 s s 1+ 1+ 2 (807 Hz ) 2 (6.17 kHz )


(2)

As this simple example demonstrates, loading is not negligible in passive filters: the first pole is low by 19.3%, the second high by 23.4%. Active filters alleviate this problem by providing the requisite interstage buffering so that each stage may be designed independent of the others, and later hitched together without

Scott Kilpatrick Burgess

performance degradation. Because active filters are able to supply dynamic power, they make it possible to implement low-pass and high-pass filters with gains greater than 0-dB. Active Filters Active filters employ active elements (e.g., op-amps, transistors, etc.) in addition to passive elements. As an elementary example, recall the finite DC-gain integrator circuit from lab #3 if you did the prelab correctly, you should have determined that this circuit is actually a low-pass filter! Furthermore, since the op-amp has very low-output impedance (further diminshed by the shunt-shunt feedback employed, but lets not confuse the issue with more advanced topics!), appending a second integrator does not alter appreciably the locations of either of the poles. A particularly useful active filter that can implement both low-pass and high-pass responses is the SallenKey filter. The beauty of this filter is that it is scalable, i.e., if you know the parameter values that give you one cutoff frequency, you simply scale all component values by the same factor to give you any other cutoff you desire. To determine the scaling factor, it pays to review the transfer function of a second-order filter:

H (s ) =

as 2 + bs + c s 1 s + 1 + 0 Q 0
2

(3)

A low-pass filter requires a=b=0, a high-pass filter b=c=0, a bandpass filter a=c=0 and a notch-filter b=0. Only the denominator determines the form of the time-domain response; the numerator merely alters the coefficients of each term in the time-domain response equation. Since the denominator is so critical, lets examine it more carefully. Solving for the poles leads to:

p1, 2 = 0

1 2Q

(2Q )2

(4)

The important point here is that for Q > 0.5, the poles are complex. Whereas purely real poles cause the filter response to roll off monotonically with frequency, complex poles with Q > 0.707 cause the magnitude to rise in the vicinity of the imaginary part before ultimately rolling off at 40 dB/decade (i.e., 20dB/decade per pole). Decreasing Q causes the imaginary portion to dominate, and in the limit of infinite Q, the poles become purely imaginary (i.e., they lie on the imaginary axis), leading to an impulse at radial frequency 0. Now, back to the Sallen-Key filter if the component values can be expressed in terms of Q, it should be clear that one may achieve either real or complex poles by suitable adjustment.

Scott Kilpatrick Burgess

C1

R vin

vout

C2

Fig. 4

Sallen-Key low-pass filter.

Analysis of the Sallen-Key low-pass filter of Fig. 1 leads to the following design equations:

C1 2 = (2Q ) C2 Q RC1 = f 0

(5)

For a given Q, the ratio of C1 and C2 is fixed, independent of the cutoff frequency. For instance, if you are designing for a maximally flat response (i.e., no peaking in the frequency domain), Q would be 0.707, mandating C1 = 2C2. Furthermore, for a given f0, the product RC1 is fixed as well. The beauty is that there are only two restrictions for the three component values, leaving one of the component values arbitrary. This flexibility is particularly handy when building the filter, for it allows one the freedom to vary one component value until the other two assume realistic values. For Q = 0.707 (a common choice for a lowpass filter, since it maximizes bandwidth under the constraint of no peaking), a frequency of 1 Hz, and choosing R1 to be 1k (simply because this is the most common value in any lab), C1 = 2C2 = 0.707/1000 = 225F. With these component known for 1 Hz, it is easy to design for any other cutoff frequency just divide the capacitors by the new frequency, and presto, youre done! Suppose you desire a cutoff frequency of 10 kHz: just divide 225F by 10,000 to get C1 = 2C2 = 22.5nF. If the computed capacitor values turn out to be unrealistic, simply scale the capacitor values by an appropriate factor, then divide the resistor by the same factor. Pretty simple! Note that this is only one version of the Sallen-Key filter, suitable for low-pass responses. In the prelab, you will consider a few variations which you will build in the lab to achieve various filter responses.

Scott Kilpatrick Burgess

Butterworth & Chebychev filters In practice, one often needs low-pass filters that roll off beyond the 3-dB frequency substantially faster than the 20 dB/decade achievable with a 1st-order filter, or even the 40 dB/decade achievable with a 2nd-order filter. A Butterworth filter is a filter that is maximally flat (i.e., maximum bandwidth without any peaking) and can achieve arbitrarily high roll off rates beyond the cutoff frequency, the requirement being a highorder denomiator in the transfer function. For a filter of order n, the rolloff rate is 20n dB/decade. A Chebychev filter is similar, except that ripple (i.e., non-monotonic characteristic) is permitted in the passband and stopband, with the advantage that this lack of smoothness leads to an initial roll off beyond the cutoff frequency steeper than that of a Butterworth filter of the same order and cutoff frequency. The point is that for a desired attentuation of x-dB beyond some critical frequency, one must decide whether minimizing electrical component count is most important (Chebychev), or preservation of signal shape in the passband is most important (Butterworth). It turns out that a Butterworth filter is obtained by placing the poles of the transfer function evenly about the negative half of the circle of radius fc in the complex plane. One key result is that for an odd filter order (i.e., odd number of poles), one pole is real and lies on the real axis, with the other complex poles symmetric about the real axis; if the filter order is even, all poles are complex and are symmetric about the real axis. A Chebychev filter places the poles evenly about an ellipse in the complex plane. A sketch of the pole locations for a 5th-order filter realized with both types of filters is shown below in Fig. 5: j j

Fig. 5

Pole locations for (a) 5th-order Butterworth filter, (b) 5th-order Chebychev filter.

The polynomials for an arbitrary order Butterworth filter are easy to determine, and are left as a prelab exercise. However, since ellipses are not so simple as circles, the following is a table of Chebychev denominator polynomials (normalized to the cutoff frequency) through third order:

Scott Kilpatrick Burgess

Cheb1 (s ) = s + 1 s s Cheb2 (s ) = + 0.765 + 1 0.841 0.841 Cheb3 (s ) = s s s + 1 + 1 + 0.325 0.298 0.916 0.916
2 2 2 2

(6)

s s s s Cheb4 (s ) = + 1 + 0.928 + 1 + 0.179 0.950 0.950 0.443 0.443


Plots of the magnitude and phase of the Butterwoth and Chebychev transfer functions is left as a prelab exercise.

Scott Kilpatrick Burgess

Reference Reading 1) 2) Roland E. Thomas & Albert J. Rosa. The Analysis and Design of Linear Circuits, chapter 15. Prentice-Hall Inc., Englewood Cliffs, New Jersey, 1994. L. P. Huelsman, Active and Passive Analog Filter Design: an Introduction. New York: McGrawHill, 1993.

Scott Kilpatrick Burgess

Prelab Exercises 1) Design a passive first-order low-pass filter using an inductor, assuming your input and output variables are both voltages. Choose element values for a 10 kHz pole frequency. Simulate the magnitude and phase responses in SPICE to confirm your design. What are the gain (in dB) and phase (in degrees) at the pole frequency? To develop good habits, both frequency axes should be logarithmic, the magnitude output should be expressed in decibels on a linear scale, and the phase output should be expressed in degrees on a linear scale. This question deals with the idea of cascading active filters. Recall the simple op-amp integrator circuit used in earlier labs. If you complicate this circuit by placing a shunt resistor across the integrating capacitor, what is the new transfer function? What is the DC gain, 3-dB frequency, and approximate unity-gain frequency (assume fu >> f3-dB)? Assuming that the circuit is supposed to act like an integrator at frequencies well beyond the 3-dB frequency, what is the purpose of the additional resistor? Design one of these 1st-order filters for a DC gain of 9.5-dB with a pole at 1 kHz, and a second filter with a DC gain of 6-dB and a pole at 5 kHz. Cascade these two filters, and work out (symbolically) the transfer function of the cascade, assuming ideal op-amps. Does the filter have the desired DC gain of 15.5-dB and poles at 1 kHz and 5 kHz? Why or why not? Verify your design with SPICE. What is the phase at the second pole? What is the slope of the magnitude plot (in dB/decade) at high frequency (i.e., well beyond the second pole)? Consider equation (3). Prove that Q = 0.707 is the boundary between peaked and unpeaked responses (in the frequency domain, not time domain). Do this by showing that with Q < 0.707, the response decreases monotonically, whereas with Q > 0.707, the response peaks at other than DC. (Realize that the numerator is of no consequence here while it is true that complex zeros may cause a dip in the frequency response, were only concerned with what the poles do.) For this value of Q, the filter is called maximally flat. Design a maximally flat Sallen-Key filter with a 3dB frequency of 50 kHz. Using a 741 op-amp for a gain stage, is it possible to achieve a DC gain of 10 as well? Is there a limit on the gain, given a corner frequency of 50 kHz? (Remember the unity-gain frequency you determined for the 741 in a previous lab.) What is the input impedance of this filter in terms of R, C1 and C2? What is the DC input impedance? What is the input impedance at the corner frequency? Consider the following Sallen-Key filter. Determine the transfer function. What kind of filter is this (pay attention to the numerator)? Determine expressions similar to those obtained in equation (5). Again, determine the magic Q value for no (pole) peaking. Design for a cutoff frequency of 10 kHz. Verify your design in SPICE by plotting magnitude and phase responses.

2)

3)

4)

R1

C vin

vout

R2

Scott Kilpatrick Burgess

5)

Consider the following circuit. Determine the transfer function. What kind of filter is this (pay attention to the numerator)? Determine expressions similar to those obtained in equation (5). Design for a center frequency of 10 kHz and a Q of 5. Keeping everything else fixed, how does the peak gain vary with Q? For a given power supply level and peak gain, what restriction must you place on the input signal? Design a simple (active) attenuator that will enable your filter to handle an input signal that is twice the maximum input level when no attenuator is present. What are the penalties for using an active attenuator? Verify your design results in SPICE by plotting magnitude and phase responses.

R2

vin

R1

C vout

6)

Determine the denominator polynomials (normalized to the cutoff frequency) for Butterworth polynomials up to 6th-order. Also, plot the magnitude, phase and delay of the first four Chebychev transfer functions (i.e., the reciprocals of the denominator polynomials) and the first six Butterworth polynomials. To get the most meaningful results, put all Chebychev magnitudes on one graph, all Chebychev phases on one graph, and all Chebychev delays on one graph; do the same for the Butterworth plots. (Delay is defined as the negative derivative of phase with respect to radial frequency.) Additionally, to draw a comparison, plot the 3rd-order Butterworth and Chebychev magnitudes on one graph together, and plot both 4th-order magnitudes together on a separate graph. Verify that the Chebychev magnitude is also less than the Butterworth beyond the cutoff frequency. Which type of filter provides more uniform delay in the passband? Why? Design a Butterworth filter to achieve 0 dB DC gain, a 3-dB cutoff of 10 kHz and at least 50 dB attenuation at 90 kHz. First determine the minimum-order necessary to meet the 50-dB attenuation specification. To do this, examine the magnitude of each Butterworth transfer function at = 9 (remember, were working with normalized frequency). You should find that the order required is higher than 2, so it is prudent to cascade low-order filters, each no higher than 2nd-order. Recall that cascades are best done with active filters. To implement a second-order with complex poles, you may find one of the Sallen-Key filters useful. Verify your design with SPICE before building in the lab!

7)

Scott Kilpatrick Burgess

Lab Exercises 1) Build each filter that you designed in the prelab, and verify all relevant parameters specified in each prelab exercise. Use care with the bandpass filter (see the prelab), and use your judgement as to whether the oscilloscope or spectrum analyzer is most appropriate for each measurement.

Вам также может понравиться