Welcome to the Cookbook Filter Guide!
Total Page:16
File Type:pdf, Size:1020Kb
EE133 – Winter 2002 Cookbook Filter Guide Welcome to the Cookbook Filter Guide! Don’t have enough time to spice out that perfect filter before Aunt Thelma comes down for dinner? Well this handout is for you! The following pages detail a fast set of steps towards the design and creation of passive filters for practical use in communications and signal processing. Amaze your friends and neighbors as you do twice the amount of work in half the time! Here’s a brief overview of the steps: ® Specify your filter type ® Implement a low-pass version of your filter ® Transform it to what you really want (high-pass, bandpass, bandstop) ® Simulate and Iterate ® Step 1: What Filter Do I Want? This is where you have to do most of your thinking. It’s no good to cook up a nice steak dinner if Auntie Thelma turned vegetarian last year. Here are the specifications that are most often quoted with filters: Filter Type (Low-Pass, High-Pass, Band-Pass, Band-Stop) Center frequency (rad/s or Hz) Bandwidth (rad/s or Hz) Cut-off/Roll-off rate (dB) Minimum Attenuation Required in Stopband Input Impedance (ohms) Output Impedance (ohms) Overshoot in Step Response Ringing in Step Response We will be creating filters through a method known as the insertion loss method. Insertion Loss, or the Power Loss Ratio PLR.is defined as: PowerSource 1 PLR = = 2 PowerDelivered 1- G(w) G is our famliar reflection coefficient. It turns out that this is expressible in the following form of : M(w2 ) P =1 + LR N(w 2) Where M and N are two real polynomials. Which simply means that we can define an arbitrary filter response and use this formula to match it to real components, thus allowing us to make it physically realizable. There are several standard filter responses, each with their own advanatages and drawbacks Standard Filter Responses · Butterworth (AKA Maximally Flat or Binomial) Filters Butterworth filters are general purpose filters. Another common name for them is a maximally flat filter, which refers to the relatively flat magnitude response in the pass- band. Attenuation is –3dB at the design cutoff frequency with a –20dB/decade roll off per pole above the cutoff frequency. 1 EE133 – Winter 2002 Cookbook Filter Guide · Chebyshev (AKA equal ripple magnitude) Filter Chebyshev filters have a steeper attenuation above the cutoff frequency, but at the expense of amplitude “ripples” in the pass-band. For a given number of poles, a steeper cutoff can be achieved by allowing more pass-band ripple. The cutoff frequency is defined at the point at which the response falls below the ripple band of the pass-band. · Bessel (AKA Linear Phase or Maximally Flat Time Delay) Filters Sometimes a design requires a filter to have a linear phase in order to avoid signal distortion. In general a good phase output (i.e. linear) always comes at the expense of a good magnitude response (i.e. fast attenuation). · Elliptic Filters For the previous filters, as the frequency gets progressively further from the center frequency the attenuation increases. Sometimes a design only requires a minimum attenuation in the stop-band. This relaxes some constraints on the response which allow a better cutoff rate. However, this filter has ripples in both the passband and stop-band. ® Step 2: Prototyping a Low-Pass Design Having finally specified your filter, it’s time to prototype a low-pass version of your filter. Although it seems counterintuitive to spend time on a filter that doesn’t even necessarily have the pass- band/stop-band characteristics of your desired filter, it will become apparent that there is relation between the values derived for a low-pass situation and the other filter types. As an example we will design a low-pass filter for a source impedance of 50 ohm, a cut-off frequency of 1MHz and which requires a minimum attenuation of 40dB at 10MHz. Determine the type of filter and N, the order of the filter: First we have to determine which of the filter types we want to use. Do we care about having linear phase? Or is maxmium cut-off attenuation the critical factor? Once that’s been done, we can then determine the order of the filter necessary to fit the required attenuation spec. Usually, we refer to a graph like the one below showing the attenuation characteristics for various N versus normalized frequency for a particular filter type. In this case, we decide that a flat magnitude response in the most appropriate. So then we look at the graph.The definition of normalized frequency is: w fnorm = -1 wc we find that wc=1MHz wo=10MHz which means the normalized frequency is 9. Looking on the graph we see that N=2 will easily satisfy our requirements for 40dB of attenuation. 2 EE133 – Winter 2002 Cookbook Filter Guide Design a Normalized Low-Pass Filter using a Table: Once that is done, we can now design a second order prototype filter for a source impedance of 1 ohm, a cut-off frequency of 1 rad/sec. As shown in the figure below, we use one of two equivalent ladder circuits. Note the way the element values are numbered, with g0 at the generator to gN+1 at the load. How to read this chart: go= generator resistance or a generator conductance gk= inductance for series inductors or a capacitance for shunt capacitors gN+1= load resistance if gN is a shunt C or a load conductance if gN is a series L A key point is that the components alternate between shunt and series. Note that during out prototyping, inductors are always series, capacitors are always shunt. The only difference is whether or not the first element is series or shunt. 3 EE133 – Winter 2002 Cookbook Filter Guide To design a filter of a particular response (i.e. Butterworth, or Bessel) there is a unique ratio of components to be used. These ratios are usually kept is handy tables like the one below. Element Values for Butterworth (Maximally Flat) Low-Pass Filter Prototypes (go=1,wc=1,N=1 to 10) N g1 g2 g3 g4 g5 g6 g7 g8 g9 g10 g11 1 2.0000 1.0000 2 1.4142 1.4142 1.0000 3 1.0000 2.0000 1.0000 1.0000 4 0.7654 1.8478 1.8478 0.7654 1.0000 5 0.6180 1.6180 2.0000 1.6180 0.6180 1.0000 6 0.5176 1.4142 1.9318 1.9318 1.4142 0.5176 1.0000 7 0.4450 1.2470 1.8019 2.0000 1.8019 1.2470 0.4450 1.0000 8 0.3902 1.1111 1.6629 1.9615 1.9615 1.6629 1.1111 0.3902 1.0000 9 0.3473 1.0000 1.5321 1.8794 2.0000 1.8794 1.5321 1.0000 0.3473 1.0000 10 0.3129 0.9080 1.4142 1.7820 1.9754 1.9754 1.7820 1.4142 0.9080 0.3129 1.0000 For a second order, we see that g1 and g2 must both equal 1.4142 and g3, the load, must equal the go, the source resistance. So the following circuit will get us a low pass filter centered about 1 rad/sec. ® Step 3: Transforming the Low-Pass Prototype to the Desired Filter All we have to do now is transform the prototype into something we can really use. The tables assume a set impedance Rs=Rl=1 ohm (except for Chebyshev filters, where the source and load resistance differ by a set amount). In addition, the filter’s cutoff frequency is 1 rad/sec, a fairly useless value in general. So we need to scale for impedance and frequency. Let’s start with impedance scaling. To take this into account, we need to multiply the impedances of the prototype by the desired Rs. Since the prototype input impedance is always 1 ohm, we can simply multiply by the ratio. Rl naturally needs to scale proportionally, while all capacitors need to be divided by Rs and all inductors need to be multiplied by Rs. Now that we have these original values, we need to swap components in order to obtain the correct filter type. Below are the substitutions. 4 EE133 – Winter 2002 Cookbook Filter Guide w1 - w2 D = is your friend w0 D is a term to describe the sharpness of the filter. If you look at it really hard, you’ll see it’s actually the inverse of Q. In filter design the center frequency is not chosen as the arithmetic mean, but the geometric mean. In other words: w + w w ¹ 1 2 o 2 wo = w1w2 This allows for the math to work out such that straight substitutions are allowable. What this means is that often times, you’ll pick your bandwidth and just go for a center frequency in that area. Of course, you could work out the math to get exactly the center frequency you want, but sometimes, you really don’t want to think that hard about a minor filter. With that all said here are the transformations. The formulas on the next page were derived by comparing the frequency dependent impedances and mapping the cutoff frequency to different situations. In each one, the Lk or Ck from your prototype is coverted into a new Lk’ or Ck’. A derivation of these formulas can by found in Posner’s Microwave Transmission. NOTE: These formulas ALREADY take into account the scaling for impedances. 5 EE133 – Winter 2002 Cookbook Filter Guide TRANSFORMATION TABLE Low-Pass 1 L' = R L k w s k c Simple impedance and frequency scaling.