Draft:Filter Design Process

From Wikipedia, the free encyclopedia


Filter design process[edit]

Filter designs begin with a set of design requirements and end with a final optimized filter of desired topology. Filter design requirements generally consist of pass band attenuation, stop band attenuation, pass band frequency, stop band frequency, and group delay. Some requirements may include cut-off frequencies to be different that the pass band frequency. Once a set of design requirements is defined, they are used as input parameters to design the final filter. Determining the minimum order of the filter to be designed is a common starting point[1], which may be calculated analytically if equations are known to exist, or experimentally, otherwise.

Classical filter design[edit]

Classical filter designs are a category of designs that may be implemented from Characteristic polynomials generally refereed to as that embody the reflection zeros, frequencies where 100% transmission occurs, of the filter in the numerator and the transmission zeros, frequencies where no transmission occurs, in the denominator. The magnitude of is normalized such that . Reflection and transmission zeros may be real, imaginary, complex, 0 or . Imaginary transmission zeros are generally used to filter out specific undesired frequencies. Real and complex transmission zeros may be used to shape the group delay into a more desirable form[2]. Any classical filter may be designed directly with the use of . However, this design method involves the use to root finding, and may not necessarily be the most efficient means to design a classical filter in many cases. Butterworth, Chebyshev, Inverse Chebyshev, and Elliptic filters are all classical filters that may be designed directly with classical design techniques.

The mathematical definition of is as follows:

Reflection zeros and transmission zero at are omitted from the expression above. For example, a five pole Butterworth filter has five reflection zeros at 0 and five transmission zeros at . for this filter, is simply . If the Butterworth has a stop band zero at 2 rad/sec, would be . The addition of "3" to the numerator meets the requirement that . A low pass all-pole (no finite transmission zeros) Chebyshev filter has its reflection zeros at the imaginary Chebyshev nodes and all transmission zeros at infinity, so a Chebyshev would be the Hurwitz (all left half plane roots) Chebyshev polynomial.

The minimum size of the filter, set by variable N in the expression, is determined mathematically using topology dependent equations, or experimentally if no equations are known to exist.

Classical related design[edit]

Some filter designs, such as Legendre and Gaussian filters, are not designed explicitly with a as defined above, but embody style polynomials. For example, the in the Legendre page may be expressed in the form of . The denominator of in the Gaussian filter page may be expressed as , which embodies a term. Both of these expressions may be used in the classical design process.

Nonclassical design[edit]

Other filter designs, such as Bessel filters, are designed directly on the transfer function, , without any interim process resembling a .

Obtaining the transfer function, G(s)[edit]

For the classical and related filter designs, the square of the transfer function is obtained from the expression below[2][3] using the design pass band attenuation in dB..

It can be seen from the expression above that the poles of define the transmission zeros of , the frequencies where , and the zeros of define the reflection zeros of , the frequencies where [3], with as an interim variable used to set the pass band attenuation. It may also be seen in the expression above that a typical 3dB pass band attenuation results in an , which is usually close enough to simply eliminate from the expression when the pass band attenuation is designed to be 3dB.

is a ratio of even polynomials. That is, all zeros and poles of contain an equal and signed opposite zero and pole. To extract from , all opposing signed pairs of zeros and poles need to be found and one of the paired entries needs to be eliminated. For the poles, only the poles with negative real values should be retained for the denominator of , creating a Hurwitz polynomial composed of only left half plane poles. The numerator of may contain positive real values, so determining which zero to remove may be subjective and driven by the application, within the constraint that all zeros with an imaginary component retain their respective conjugate. Frequently, it is simply a matter of eliminating repeating pairs of zeros for the numerator. Since is ultimately derived from polynomials constructed from roots, it is generally necessary to magnitude scale to retain at the reflection zeros.

Nonstandard cut-off attenuation[edit]

The classical design equations assume the pass band edge occurs at the cut-off frequency, which works fine for maximally flat functions such as Butterworth and Inverse Chebyshev. However, functions such as Chebyshev and Legendre that have specific shapes associated with the pass band are problematic in that the design attenuation at the cutoff frequency is not necessarily the same as the design attenuation of the pass band. For example, Chebyshev designs for 0.05 dB pass band attenuation and -3 dB cut-off frequency attenuation are common. Although Chebyshev filters have an algebraic means to set the cutoff attenuation, other filter typologies such as Legendre may not. Therefore, a method is needed to universally set the cut-off attenuation for any filter topology.

Setting the cut-off attenuation frequency involves first finding the frequency that achieves the desired attenuation, which will be referred to as , and then scaling either the polynomials or the final filter design to the inverse of that frequency. If is to be used as the reflection coefficient (see paragraph below), then will also need to be inversely scaled. To scale the polynomials, simply append to the term in each coefficient, as shown in the 3 pole Bessel filter example below.

may be found with Newton's method, or with root finding.

Finding attenuation frequency with Newton's method[edit]

Newton's method requires a known magnitude value and derivative magnitude value for the for . However, it is easier to operate on and use the square of the desired cutoff gain, and is just as accurate, so the square terms will be used.

To obtain , follow the steps below.

  1. If is not already available, multiply by to obtain .
  2. negate all terms of when is divisible by . That would be , , , and so on. The modified function will be called , and this modification will allow the use of real numbers instead of complex numbers when evaluating the polynomial and its derivative. the real can now be used in place of the complex
  3. Convert the desired attenuation in dB, , to a squared arithmetic gain value, , by using . For example, 3.010 dB converts to 0.5, 1 dB converts to 0.79432823 and so on.
  4. Calculate the modified in Newton's method using the real value, . Always take the absolute value.
  5. Calculate the derivative the modified with respect to the real value, . DO NOT take the absolute value of the derivative.

When steps 1) through 4) are complete, the expression involving Newton's method may be written as:

using a real value for with no complex arithmetic needed. The movement of should be limited to prevent it from going negative early in the iterations for increased reliability. When complete, can used for the that can be used to scale the original transfer function denominator. The attenuation of the modified will then be virtually the exact desired value at 1 rad/sec. If performed properly, only a handful of iterations are needed to set the attenuation through a wide range of desired attenuation values for both small and very large order filters.

Finding attenuation frequency from the roots[edit]

Since does not contain any phase information, directly factoring the transfer function will not produce usable results. However, the transfer function may be modified by multiplying it with to eliminate all odd powers of , which in turn forces to be real at all frequencies, and then finding the frequency that result on the square of the desired attention.

  1. If is not already available, multiply by to obtain .
  2. Convert the desired attenuation in dB, , to a squared arithmetic gain value, , by using . For example, 3.010 dB converts to 0.5, 1 dB converts to 0.79432823 and so on.
  3. Find
  4. Find the roots of P(S) using a root finding algorithm.
  5. Of the set of roots from above, select the positive imaginary root for off order filters, and positive real root for even order filters.
    1. Cutoff attenuations that are above the pass band ripple or below the stop band ripple will come back with multiple roots, so the correct root will have to be selected.

Obtaining the reflection coefficient, R(s)[edit]

for doubly terminated networks, networks with a finite resistive termination at both ends[4], the reflection coefficient, , is usually needed to synthesize the network. is obtainable from the network transfer function , where , and and are the input and output termination resistances respectively. For simplicity, may be normalized to 1, yielding , and then the synthesized network may be denormalized later by impedance scaling.

may be derived with use of two-port network scattering parameter theory, namely taking advantage of the relations below[5].


Since is , the deriving expression for for normalized is below.


Since the denominator of is already known, only the numerator need be reconstructed, as shown.

zeros selection to obtain from follows the same guidelines as those for above.

The special case where simplifies substantially in that reduces to . For design cases where and is already known, may be directly substituted for and then simplifies to the following:

When

Obtaining the driving point impedance[edit]

The driving point impedance, , the network impedance seen from the port, may be calculated directly from for doubly terminated networks, and may be calculated directly from for singly terminated networks.

Doubly terminated networks[edit]

Doubly terminated networks are networks with finite termination resistances at both ports[4]. For these networks, may be found with algebraic manipulation of the following well known relation[6][4]:

Algebraic manipulation yields the following relation:

To insure that the final remains normalized to 1, and for simplicity reasons, the driving point impedance is taken from port 2, which effectively drops from the expression above, and the network synthesis process will calculate as the last element, which in some cases is not assured to be the same as the design . This translation is permissible because [5]. The final expression for the driving point impedance, , used to synthesize the network is then as follows, with being computed from shown above.

Singly terminated networks[edit]

Singly terminated networks are networks with no resistive termination at the source[4]. For even order singly terminated networks, may be found by the following relation[7], where "even" and "odd" suffixes refer to the even and odd coefficients of the polynomial, respectively:

for odd order networks, may be found by the following[7]:

Obtaining the network parameters[edit]

For some passive network applications, such as coupling matrix synthesis, it is useful to know the Z parameters, and/or Y parameters of the designed network. When needed, these parameters may be extracted from through Darlington's method without the need to synthesize the network[8].

Final filter designs[edit]

For passive networks, the final frequency and impedance normalized filter design elements may be found through network synthesis from the driving point impedance of port 2. The first element extracted will be attached to port 2, and the final element for singly terminated networks will be attached to port 1. The final element extracted from doubly terminated networks will be the port 1 termination resistance, . Some networks contain a transformative step up or step down, and will result in a termination source resistance other than the design . When this happens, a Norton capacitor or inductor transformer[9] or coupled coil transformer will have to be installed, or the calculated will have to be substituted for the design . The normalized design may be converted to a final design by denormalizing both the impedance and frequency.

Some active filters typologies, such as Sallen and Key, MFB, Tow-Thomas, and GIC, are synthesized directly on the polynomials followed by denormalization of the impedance and frequency. Other active filters simulate the corresponding normalized passive network, such as leapfrog and FDNR typologies followed by denormalization.

Digital filters may be synthesized from and the desired sample rate using digital transformations such as bilinear transform, impulse invariance, or other desired digital transformation.





References[edit]

  1. ^ Paarmann, Larry D. (2001). Design and Analysis of Analog Filters, A Signal Processing Perspective. Norwell, Massachussetts, US: Kluwer Academic Publishers. pp. 17, 117, 137, 161, 197. ISBN 0-7923-7373-1.{{cite book}}: CS1 maint: date and year (link)
  2. ^ a b Dr. Byron Bennett's filter design lecture notes, 1985, Montana State University, EE Department, Bozeman, Montana, US
  3. ^ a b Sedra, Adel S.; Brackett, Peter O. (1978). Filter Theory and Design: Active and Passive. Beaverton, Oegon, US: Matrix Publishers, Inc. pp. 45–73. ISBN 978-0916460143.{{cite book}}: CS1 maint: date and year (link)
  4. ^ a b c d "2.2: Singly and Doubly Terminated Networks". Libre Texts. May 22, 2022.
  5. ^ a b Matthaei, George L.; Young, Leo; Jones, E. M. T. (1984). Microwave Filters, Impudence-Matching Networks, and Coupling Structures. 610 Washington Street, Dedham, Massachusetts, US: Artech House, Inc. (published 1985). p. 44. ISBN 0-89006-099-1.{{cite book}}: CS1 maint: date and year (link) CS1 maint: location (link)
  6. ^ Matthaei, George L.; Young, Leo; Jones, E. M. T. (1984). Microwave Filters, Impudence-Matching Networks, and Coupling Structures. 610 Washington Street, Dedham, Massachusetts, US: Artech House, Inc. (published 1985). p. 43. ISBN 0-89006-099-1.{{cite book}}: CS1 maint: date and year (link) CS1 maint: location (link)
  7. ^ a b Saal, Rudolf (January 1979). Handbook of Filter Design (in English and German) (1st ed.). Munich, Germany: Allgemeine Elektricitais-Gesellschaft. pp. 9–19. ISBN 3-87087-070-2.
  8. ^ Kinayman, Noyan; Aksun, M. I. (2005). Modern Microwave Circuits. 685 Canton Street, Norwood, MA, US: Artech House, Inc. pp. 129–131. ISBN 1-58053-725-1.{{cite book}}: CS1 maint: date and year (link) CS1 maint: location (link)
  9. ^ Williams, Arthur Bernard; Taylor, Fred J. (1995). Electronic Filter Design Handbook (3rd ed.). US: McGraw-Hill, Inc. pp. 8.4–8.6. ISBN 0-07-070441-4.