http://www.schematica.com/active_filter_resources/a_list_of_active_filter_circuit_topologies.html
A List of Active Filter Circuit Topologies
Shown below are the 78 circuit solutions available in
Filter Wiz PRO, organized into the following categories:
- 1st order low pass
- 1st order high pass
- 2nd order low pass
- 2nd order high pass
- 2nd order band pass
- 2nd order low pass notch
- 2nd order high pass notch
- 2nd order notch
1st Order Low Pass
Low Pass I | Low Pass II | Low Pass III |
1st Order High Pass
High Pass I | High Pass II | High Pass III |
High Pass IV | ||
2nd Order Low Pass
Sallen-Key I | Sallen-Key II |
Multiple Feedback I | Multiple Feedback II |
Fliege | Bach |
Twin-T | KHN |
KHN Inverting | Tow-Thomas |
MB | Berka-Herpy |
Akerberg-Mossberg | PMG |
Natarajan | |
2nd Order High Pass
Sallen-Key I | Sallen-Key II |
Multiple Feedback I | Fliege |
Twin-T | KHN |
KHN Inverting | MB |
Berka-Herpy | Akerberg-Mossberg |
2nd Order Band Pass
Deliyannis I | Deliyannis II |
Sallen-Key | Multiple Feedback I |
Multiple Feedback II | Fliege |
Twin-T | KHN |
KHN Inverting | Tow-Thomas |
MB | Berka-Herpy |
Akerberg-Mossberg | PMG |
Natarajan | |
2nd Order Low Pass Notch
Friend's SAB | Scultety |
Boctor | Fliege |
Twin-T | KHN |
KHN Inverting | MB |
Berka-Herpy | Akerberg-Mossberg |
Natarajan | |
2nd Order High Pass Notch
Friend's SAB | Scultety |
Fliege | Twin-T |
KHN | KHN Inverting |
MB | Berka-Herpy |
Akerberg-Mossberg | Natarajan |
2nd Order Notch (Band Reject)
Sallen-Key | Fliege |
Twin-T I | Twin-T II |
KHN | KHN Inverting |
MB | Berka-Herpy |
Akerberg-Mossberg | Natarajan |
Requirements:
- Windows 7,Vista,XP
- min. 1024x768
A Primer on Active Filter Design Part I
A Primer on Active Filter Design Part II
Single Supply Active Filters
Some Op Amps Suitable for Active Filters - Sorted by Name
Some Op Amps Suitable for Active Filters - Sorted by GBW
Some Op Amps Suitable for Active Filters - Sorted by Slew Rate
Some Op Amps Suitable for Active Filters - Sorted by Supply Current
Selecting Active Filter Op Amps - The Two Most Important Criteria
http://www.circuitstoday.com/active-filter-types
A Primer on Active Filter Design Part II
Single Supply Active Filters
Some Op Amps Suitable for Active Filters - Sorted by Name
Some Op Amps Suitable for Active Filters - Sorted by GBW
Some Op Amps Suitable for Active Filters - Sorted by Slew Rate
Some Op Amps Suitable for Active Filters - Sorted by Supply Current
Selecting Active Filter Op Amps - The Two Most Important Criteria
Active Filter Types
Types of Active Filters
Butterworth, Chebyshev, Bessel and Elliptic filters.
There are basically 4 types of active filters. They are butterworth, Chebyshev, Bessel and Elliptic filters.
Butterworth Filter:
This filter is also called as maximally flat or flat flat filter.
This class of filters approximates the ideal filter well in the pass
band. Frequency response curves of different types of filters are shown
in figure. The Butterworth filter has an essentially flat
amplitude-frequency response upto the cutoff frequency. The sharpness
of the cut-off can be seen in the figure. It is to be noted that all the
three filters reach a roll-off slope of -40 db/decade at frequencies
much larger than cut-off. Although Butterworth filters achieve the
sharpest attenuation, their phase-shift as a function of frequency is
non-linear. It has a monotonic drop in gain with frequency in the
cut-off region and a maximally flat response below cut-off frequency, as
illustrated in figure. The Butterworth filter has characteristic
somewhere between those of Chebyshev and Bessel filters. It has a
moderate roll-off of the skirt and a slightly nonlinear phase
responses.
Chebyshev Filter.
It is also called a equal ripple filter.
It gives a sharper cut-off than Butterworth filter in the passband.
Both Butterworth and Chebyshev filters exhibit large phase shifts near
the cut-off frequency. A drawback of the Chebyshev filter is the
appearance of gain maxima and minima below the cut-off frequency. This
gain ripple, expressed in db, is an adjustable parameter in filter
design.
The faster the roll-off, the greater the
peak-to-peak ripples in the passband. The phase response is highly
non-linear in the skirt region. Such unequal delays of data frequency in
the passband causes severe pulse distortion and thus increased errors
at modern demodulators. This can be overcome somewhat by increasing the
BW of the filter so that the phase region is extended.A Chebyshev
filter is used where very sharp roll-off is required. However, this is
achieved at the expense of a gain ripple in the lower frequency
passband.
Bessel Filter
The Bessel filter
provides ideal phase characteristics with an approximately linear phase
response upto nearly cut-off frequency. Though it has a very linear
phase response but a fairly gentle skirt slope, as shown in figure.For
applications where the phase characteristic is important, the Bessel
filter is used. It is a minimal phase shift filter even though its
cut-off characteristics are not very sharp. It is well suited for pulse
applications.
Elliptic Filter
This filter has the
sharpest roll-off of all filters in the transition region but has
ripples in both the pass band and stop band regions, as illustrated in
figure. The elliptic filter can be designed to have very high
attenuation for certain frequencies in the stop band, which reduces the
attenuation for other frequencies in the stop band.
Custom Search
Leave a Reply
Popular Tags
555 IC 555 timer Audio Amplifier Circuits Audio circuits circuit design circuit diagram Electronic Circuits Electronic Components Electronic Instruments Filter Circuits History of Electronics hobby circuits hobby projects Home Circuits IC Integrated Circuits Most Popular Circuits Nanotechnology NE555 timer Oscillators PIC Power Supplies Radio Circuits SCR Simple Electronics Projects Tech News Thyristors Tutorials VLSI Voltage RegulatorsMost Discussed
Texas Instruments Incorporated
3Q 2009
www.ti.com/aa
j
High-Performance Analog Products
Using the infinite-gain, MFB filter topology
in fully differential active filters
http://www.ti.com/lit/an/slyt343/slyt343.pdf
http://www.analog.com/static/imported-files/application_notes/447952852AN-649_0.pdf
http://www.maximintegrated.com/app-notes/index.mvp/id/1762
http://sound.westhost.com/articles/active-filters.htm
http://www.unc.edu/~finley/BME422/Active%20Filter%20Design%20Techniques%20-%202.ppt
http://www.tec-digital.itcr.ac.cr/file/2471098/tema_iv_-_filtros_activos_-_estudiantes.pdf
http://www.unet.edu.ve/~ielectro/Filtros%20Activos.htm
http://www2.elo.utfsm.cl/~elo108/bibliografia/Filtros.pdf
http://www.slideshare.net/sintesisdecircuitos/filtros-activos-i-13875079
http://www.slideshare.net/sintesisdecircuitos/filtros-activos-i-13875079
http://quidel.inele.ufro.cl/~jhuircan/PDF_CTOSII/ieeefact.pdf
http://www.fceia.unr.edu.ar/enica3/filtros-t.pdf
Elliott Sound Products | Active Filters |
Active Filters - Characteristics, Topologies and Examples
Copyright © 2009 - Rod Elliott (ESP)
Updated Jan 2014 - Digital Filter Overview
Copyright © 2009 - Rod Elliott (ESP)
Updated Jan 2014 - Digital Filter Overview
Articles Index
Main Index
Contents
- Introduction
- 1 - Filter Terminology, Topologies and Slopes
- 2 - Powering the Opamps & Component Selection
- 3 - Sallen-Key Filters
- 4 - Multiple Feedback Filters
- 5 - State-Variable/ Biquad Filters
- 6 - Notch Filters
- 7 - Miscellaneous Filters
- 8 - Digital Filters (Overview)
- 9 - Transient Response
- 10 - Group Delay
- Conclusions
- References
- Copyright Notice
Introduction There is a wide range of filter circuits, each with its own set of advantages and disadvantages. All filters introduce phase shift, and (almost all) filters change the frequency response. There is one class of filter called "all-pass" that does not affect the response, only phase. While at first look this might be thought rather pointless, like all circuits that have been developed over the years it often comes in very handy.
Filters also affect the transient response of the signal passing through, and extreme filters (high order types or filters with a high Q) can even cause ringing (a damped oscillation) at the filter's cutoff frequency. In some cases, this doesn't represent a problem if the ringing is outside the audio band, but can be an issue for filters used in crossover networks (for example).
If you are not already familiar with the concept of filters, it might be better to read the article Designing With Opamps - Part 2, as this gives a bit more background information but a lot less detail than shown here. There is some duplication - the original article was written some time ago, and it was considered worthwhile to include some of the basic info in both articles.
Filters are used at the frequencies where they are needed, so the filters described here need to be recalculated. I have normalised the frequency setting components to 10k for resistors, and 10nF for capacitors. This provides a -3dB frequency of 1.59kHz in most cases. Increasing capacitance or resistance reduces the cutoff frequency and vice versa.
Capacitors used in filter circuits should be polyester, Mylar, polypropylene, polystyrene or similar. NP0 (aka C0G) ceramics can be used for low values. Choose the capacitor dielectric depending on the expected use for the filter. Never use multilayer ceramic caps for filters, because they will introduce distortion and are usually highly voltage and temperature dependent. Likewise, if at all possible avoid electrolytic capacitors - including bipolar and especially tantalum types.
Note
Carefully: Nearly all filter circuits shown expect to be fed from a low
impedance
source, which in some cases must be earth (ground) referenced. Opamp
power connections are not shown, nor are supply bypass capacitors or pin
numbers. All
circuits are functional as shown. Also not shown are output 'stopper' resistors from opamp outputs. These must be included for any signal that leaves an opamp and connects to the outside world using a shielded cable. Most opamps will oscillate if a resistor is not used in series with the output pin. 100 ohms is a convenient value, but it can be lower (less safety margin) or higher (higher output impedance). |
1 - Filter Terminology, Topologies and Slopes The common terminology of filters describes the pass-band and stop-band, and may refer to the transition-band, where the filter passes through the design frequency. Q is a measure of 'quality', but not in the normal sense. A high-Q filter is not inherently 'better' than a low-Q design, and may be much worse for many applications. In some cases, the term 'damping' is used instead, which is simply the inverse of Q (i.e. 1/Q).
- Pass-Band - that portion of the spectrum that is passed (relatively) unaffected
- Stop-Band - that part of the spectrum that is blocked by the filter (this is progressive)
- Q - Quality factor of the filter. A Butterworth filter has a Q of 0.707
- Damping - inverse of Q. A Butterworth filter has a damping of 1.414
- Frequency - the -3dB frequency for high and low pass filters, or centre frequency for bandpass and band-stop filters
- Order - The number of poles that make up the filter. Typically between 1 and 6 for most applications
There are several different filter types, generally described by their behaviour. The basic types are low-pass, high-pass, bandpass, band-stop (notch) and all-pass. There are also many sub-types, where either a combination of filter types is incorporated into a single block, or different filters are combined to produce the desired result.
Then we need to describe the different topologies, some of which are named after their inventor/discoverer, while others are named based on their circuit function. For example the Linkwitz-Riley crossover filter set was invented by Siegfried Linkwitz and Russ Riley, the Sallen-Key filter was invented by R.P. Sallen and E.L. Key (but try as I might, I couldn't find their first names), and the state-variable and multiple feedback filters are described by the functionality of the circuit. The biquad filter is known by the type of equation that describes its operation (the bi-quadratic equation). Wilhelm Cauer was the inventor of the Elliptical filter - also known as a Cauer filter.
Of all the filters, the Sallen-Key is the most common - it has excellent performance, is simple to implement, and it can have an easily varied Q provided you can accept a gain change as Q is changed. Stop-band performance is generally extremely good, with the theoretical attenuation extending to infinity (at an infinite frequency). Other popular types are the multiple-feedback (MFB) filter, and (somewhat surprisingly) the all-pass filter.
Multiple feedback (MFB) filters are also popular, being easy to implement and low cost. Unfortunately, the formulae needed to calculate the component values are somewhat complex, making the design more difficult. In some cases, a seemingly benign filter may also require an opamp with extremely wide bandwidth or it will not work as expected. High-pass MFB filters cannot be recommended because of very high capacitive loading, which will stress most opamps and can cause instability and/or high distortion.
Less common (especially in DIY audio applications) are the rest of the major designs ...
- Cauer - quite complex to design, but offers extremely fast initial rolloff (aka elliptical filter).
- State Variable - offers easy tuning, variable gain and Q, 3 simultaneous outputs.
- Biquad - similar to state-variable, but with subtle differences. May take many different forms.
- Twin-Tee - most common as a notch filter, offers (virtually) infinite rejection of a very narrow band.
- Wien - actually a phase-shift network, common in oscillators and some filters.
- Fliege - uncommon, and requires 2 opamps. Good control of Q and tuning, odd value resistors.
1.1 - Filter Orders All filters are described by their 'order' - the number of reactive elements in the circuit. A reactive element is either a capacitor or inductor, although most active filters do not use inductors. In turn, this determines the ultimate rolloff, specified in either dB/octave or dB/decade. Most filters do not achieve the theoretical rolloff slope until the signal frequency is perhaps several octaves above or below the design frequency. With high Q filters, the initial rolloff is faster than the design value, and vice-versa for low Q filters.
In addition, filters are classified into two distinct groups - odd and even order. Each behaves differently, and this often needs to be accounted for in the final design. The general characteristics are shown below ...
Order (Poles) | dB/Octave | dB/Decade | Phase Shift * | Comments |
1st | 6 | 20 | 90 | Only passive, very common |
2nd | 12 | 40 | 180° | Extremely common - most popular filter |
3rd | 18 | 60 | 270° | Moderately common |
4th | 24 | 80 | 360° | Linkwitz-Riley crossovers |
5th | 30 | 100 | 450° | Very uncommon - rarely used |
6th | 36 | 120 | 540° | Somewhat uncommon (ESP subsonic filter) |
n | n * 6 | n * 20 | n * 90° | Anti-aliasing filters (e.g. before ADC circuits) |
Table 2 - Filter Orders and Rolloff Slopes
* Phase shift refers to the phase difference between a high and low pass filter set for the same rolloff frequencyYou'll see that the first order filter is passive only. While an opamp is often used with these filters, it is only a buffer. The filter's Q and rolloff are fixed by the laws of physics and cannot be changed. All other filters allow a choice of Q, modifying the initial rolloff slope and creating a peak (high Q) or gentle rolloff (low Q) just before the cutoff frequency. By definition, the cutoff frequency of any filter is when the amplitude has fallen by 3dB from the normal output level. If there is a peak in the response, this is ignored when stating the nominal cutoff frequency.
This can be rather confusing to the newcomer, because the formula may show a nominal cutoff frequency of (say) 1.59kHz, yet the measured response can differ considerably. In general, any formula given for frequency assumes Butterworth response. The table below is for second order filters, but the overall Q is the same for all filter orders above the first (these always have a Q of 0.5).
Type | Q | Damping | Description |
Bessel | 0.577 | 1.733 | Maximally flat phase response, fastest settling time |
Butterworth | 0.707 | 1.414 | Maximally flat amplitude |
Chebyshev | > 0.707 | < 1.414 | Peak (and dips) before rolloff. Fastest initial rolloff |
Table 3 - Filter Types and Characteristics
The above covers the most important and common filter classes, but
the Q can actually be anything from 0.5 ("sub-Bessel"), up to often
quite high numbers. Few filters for normal usage will have a Q exceeding
2, and a Sallen-Key filter will become an oscillator if the Q exceeds
3. Extremely high Q factors are generally only used with bandpass and
band stop (notch) filters.2 - Powering the Opamps & Component Selection In general, it is preferable wherever possible to operate all opamps in an audio circuit using a dual power supply. Typically, the supply rails will be ±15V, although this may be as low as ±5V in some cases. While a single supply can be used, it is necessary to bias all opamps to a voltage that's typically half the supply voltage.
This may be done individually at the input of each opamp, or a common 'artificial earth' can be created that is shared by all the analogue circuitry. In either case, all (actual) ground referenced signals must be capacitively coupled, and it is probable that the circuit will generate an audible thump when power is applied or removed. For the purposes of this article, all opamps will be operated from a dual supply. Supply rails, bypass capacitors and opamp supply connections are not shown. If you need to run any of these filter circuits from a single supply, you will need to implement an artificial earth and all coupling capacitors as needed.
This is now your responsibility, and you can expect me to become annoyed if you ask how this should be done. I suggest that you read through Project 32 for a simple split supply circuit that can be used with the filters shown here.
2.1 - Component Values Selecting the right values is more a matter of educated guesswork than an exact science. The choice is determined by a number of factors, including the opamp's ability to drive the impedances presented to it, noise, and sensible values for capacitors. While a 100Hz filter that uses 100pF capacitors is possible, the 15.9M resistors needed are so high that noise will be a real problem. Likewise, it would be silly to design a 20kHz filter that used 10uF capacitors, since the resistance needed is less than 1 ohm.
E12 | 1.0 | 1.2 | 1.5 | 1.8 | 2.2 | 2.7 | 3.3 | 3.9 | 4.7 | 5.6 | 6.8 | 8.2 | ||||||||||||
E24 | 1.0 | 1.1 | 1.2 | 1.3 | 1.5 | 1.6 | 1.8 | 2.0 | 2.2 | 2.4 | 2.7 | 3.0 | 3.3 | 3.6 | 3.9 | 4.3 | 4.7 | 5.1 | 5.6 | 6.2 | 6.8 | 7.5 | 8.2 | 9.1 |
Table 4 - E12 and E24 Component Values
Capacitors are the most limiting, since they are only readily
available in the E12 series. While resistors can be obtained in the E96
series (96 values per decade), for audio work this is rarely necessary
and simply adds needless expense. The E24 series is generally
sufficient, and these values are usually easy to get.
Where possible, I suggest that resistors should not be less than 2.2k, nor higher than 100k - 47k is better, but may not be suitable for very low frequencies. Higher values cause greater circuit noise, and if low value resistances are used, the opamps in the circuit will be prematurely overloaded trying to drive the low impedance. All resistors should be 1% metal film for lowest noise and greatest stability. Capacitance should be kept above 1nF if possible, and larger (within reason) is better. Very small capacitors are unduly influenced by stray capacitance of the PCB tracks and even lead lengths, so should be avoided unless there is no choice.
Capacitors should be polyester or Mylar. Never use ceramic caps except when nothing else is available - if you must use them, use NP0 (C0G) types if possible. Since close tolerance capacitors are hard to get and expensive, it's easier to buy more than you need and match them using a cheap capacitance meter. Absolute accuracy usually isn't needed, but close matching between channels for a stereo system is a requirement for good imaging.
Unless there is absolutely no choice, avoid bipolar (non-polarised) electrolytic capacitors completely. They are not suitable for precision filters, and may cause audible distortion in some cases. Tantalum caps should be avoided altogether!
For this article, all filters are based on 10k resistors and 10nF capacitors. This gives a frequency of 1.59kHz for a first order filter. In many cases, it will be difficult to see where the standard values are actually used, because many second order topologies require modification to get the correct frequency and Q. First order filters are not covered, and all filters described below are second order Butterworth types unless stated otherwise. |
3 - Sallen-Key Filters Sallen-Key filters are by far the most common for a great many applications. They are well behaved, and reasonably tolerant of component variations. All filters are affected by the component values, but some are more critical than others. The general unity gain Sallen-Key topology can be very irksome if you need odd-order filters, and changing the Q of the unity gain filters will subject you to a barrage of maths to contend with. Nothing actually difficult, but tedious.
The general formula for a filter is ...
fo = 1 / ( 2 * π * R * C ) Where R is resistance, C is capacitance, and fo is the cutoff frequency... however, this is modified (sometimes dramatically) once we start using filters of second order and higher.
A modification that allows equal component values and lets the Q be changed at will is easily applied, provided you can accept a change of gain along with the change of Q. Sometimes this is not an issue, but certainly not always. The majority of filters shown in ESP's project pages use unity-gain Sallen-Key filters, but in most cases the required values are already worked out for you. Figure 1 shows the traditional Butterworth low and high pass unity gain filters.
Figure 1 - Standard Butterworth Sallen-Key Low Pass and High Pass Filters
R1 = R2 = R = 10kExactly the same principle is applied to the high pass filter, except that the standardised value for R (10K) used here is modified by Q, with R1 becoming 14.14k and R2 becomes 7.07k. In many cases, it is necessary to make small adjustments to the frequency to allow the use of standard value components.
C1 = C * Q = 10nF * 0.707 = 7.07nF
C2 = C / Q = 10nF / 0.707 = 14.14nF
If all frequency selecting components are equal (equal value Sallen-Key), the Q falls to 0.5, and the filter is best described as 'sub-Bessel'. This is shown below, along with response graphs showing the difference. For calculation, there are countless different formulae (including interactive websites and filter design software), but all eventually come back to the same numbers. I have chosen a simplistic approach, but it is worth noting that the final values are definitely not standard values. This is very common with filters, and it may take several attempts before you get values you can actually buy (or arrange with series/parallel arrangements).
Figure 2 - 'Sub-Bessel' Sallen-Key Low Pass and High Pass Filters
Figure 3 - Comparison Between Butterworth and 'Sub-Bessel' Filters
A useful (but relatively uncommon) change to the Sallen-Key filter allows us to obtain a much more flexible filter. This is a very useful variant, but the added gain may be a problem in some systems. While it is possible to use it as unity gain (see below), there are still limitations.
Figure 4 - Sallen-Key Low Pass and High Pass Filters With Gain
Q = 1 / ( 3 - G ) (where G is gain) ... or ...Once the gain is known, the values of R3 and R4 can be determined. Since gain is calculated from ...
G = 3 - ( 1 / Q )
G = ( R3 / R4 ) + 1 ) ... then ...As a result, the circuit in Figure 4 has a gain of 1.586 and a Q of 0.707 as expected (or close enough to it). It is generally considered that the gain and Q are inextricably linked, but there is no real reason that the output can't be taken from the junction of R3 and R4, via a high impedance buffer (unity gain non-inverting opamp buffer). This restores unity gain, but remember that the opamp is still operating with gain, so there is a requirement to keep levels lower than expected. From ±15V, most opamps will give close to 10V RMS output, but this is reduced to a little over 6V RMS (at the junction of R3 and R4) when operated this way.
R3 = ( G - 1 ) * R4
For a Bessel filter, gain will be reduced to 1.267 (R3 = 2.67k), and for Chebyshev with a Q of 1, the gain is 2 and R3 = R4 = 10k. Remember that the Sallen-Key filter must be operated with a Q of less than 3 or it will oscillate.
For most applications in audio, it's difficult to justify the extra complexity of any other filter type. The Sallen-Key has established itself as the most popular filter type for electronic crossovers, high pass filters (e.g. rumble filters or loudspeaker excursion protection) and many others as well. It does have limitations, but once understood these are easy to work around and generally cause few problems.
4 - Multiple Feedback Filters Multiple feedback (MFB) filters are most commonly used where high gain or high Q is needed - especially in bandpass designs. The design calculations can be extremely tedious, and there is regularly a requirement for component values that are simply unobtainable (or extremely messy - using many different values). The performance is usually as good as a Sallen-Key circuit, but one extra component is needed for a unity gain solution.
While it is accepted that gain, Q and frequency are independently adjustable, this is only really true at the design phase. Again, there is a requirement for widely varying component values. The MFB design is very well suited to bandpass applications though, and its simplicity is hard to beat in that application. You may see MFB filters referred to as Deliyannis, Delyiannis, Deliyannis-Friend or just 'DF'. These are the same as shown here but with a different name.
Note
that the high-pass MFB filter has a capacitive input as well as
capacitive feedback via C2. I received
an email that described exactly this issue, and it caused both serious
opamp oscillation and distortion. A standard fix would be to add Rs1 and
Rs2 (stability
resistors) that isolate the capacitive load from the driving opamp.
Using resistors in both locations raises the impedance but doesn't
change the frequency. (My thanks to Dale Ulan for pointing out the problem and describing the fix for it.) |
The loading is so high that it's almost guaranteed to cause most opamps stress, and distortion will rise rapidly as frequency increases (remember - this is within the pass band of the filter). At the same time, the opamp's open loop gain is falling because of its internal frequency compensation, so distortion rises far more than expected. The additional resistors do reduce the level slightly, but that's a small price to pay if distortion can be reduced to an acceptable level. Don't expect to find this in many text books, but it's a fact nonetheless [8]. Ultimately, it's best to avoid using high pass MFB filters unless there is absolutely no choice - Sallen-Key has none of the problems described. (Note that the low-pass MFB filter has no bad habits and is quite safe to use.)
Figure 5 - Multiple Feedback Unity Gain Low Pass and High Pass Filters
Using the normal frequency formula, R =10k and C = 10nF, but these values don't work properly in the MFB filter. Since we know that Q = 0.707 for a Butterworth filter, we can simplify the component selection quite dramatically as shown below. What? It doesn't look simple? The normal formulae are a great deal more complex than the method described here.
fo = 1 / ( 2 * π * R * C ) ... and ...As with the Sallen-Key filter, it will generally be necessary to change your expectations of the cutoff frequency to allow the use of available component values. Fortunately, it is rarely necessary in audio applications to have very precise frequencies, so minor adjustments are usually not a problem. Using the MFB filter for a crossover network is usually not a good idea though, because you end up with too many different values, increasing the risk of making assembly errors. Because the filter is also slightly more complex, it will be more expensive to build.
R1 = R2 = 2 * R = 20k
C1 = C / Q = 14.14nF
C2 = ½C * Q = 3.54nF
It's difficult to recommend the MFB high pass filter because of its extremely low input impedance and capacitive load on the driving stage at high frequencies. Although adding the resistors as shown mitigates this problem, it's far easier to use a Sallen-Key filter which doesn't have the problem.
MFB Bandpass Filter
Bandpass filters are commonly used for various effects, constant-Q graphic equalisers and parametric EQ circuits. They are also used with analogue analysers and various pieces of test equipment. Where fixed frequency and Q are needed, the MFB bandpass filter is difficult to beat, as it is a straightforward design with no bad habits.
Figure 6 - Multiple Feedback Bandpass Filter. Q = 4, Unity Gain
This filter is used in Project 84 (a one third octave band subwoofer equaliser) and is also referenced in a number of other projects. I suggest that you use the calculator to work out the values, since the formulae are somewhat beyond the intent of this article.
5 - State-Variable/ Biquad Filters The state-variable filter is something of an oddball design, with several different versions of the basic circuit being available, and different formulae being described to calculate the gain and Q. All of the frequency calculations I've seen are correct, but some imply that multiple resistors are involved to change frequency. This is not the case - two resistors affect the frequency, and these can be in the form of a dual-gang pot. This makes the filter tunable, unlike any of the others so far.
In addition, the state-variable filter provides 3 simultaneous outputs - high pass, low pass and bandpass. All have the same frequency (-3dB or peak for the bandpass) and the same Q. It is often said that gain and Q cannot be separated - so as one is varied, the other varies as well. Q and gain can be made independent by adding a fourth opamp. This is desirable (and commonly applied) in parametric equalisers.
Figure 7 - State-Variable Filter
In the example above, R1 changes gain and Q. Increasing R1 reduces gain, and increases the filter's Q, although the change of Q is relatively small compared to the gain change. R2 changes Q, but leaves gain unchanged (contrary to the myriad claims that the two are inseparable without the fourth opamp). Increasing R2 reduces Q, and vice versa.
Rt and Ct are the tuning components, and as shown give a frequency of 1.59kHz. The two Rt resistors can be replaced by a dual-gang pot, allowing a continuous variation of frequency. A series resistor must still be used, typically one tenth of the pot value. In the above circuit, Rt could be replaced by a 100k pot in series with a 10k resistor, giving a range from 145Hz to 1.59kHz - a range of just over 1 decade. When the frequency of a state variable filter is changed, the Q remains the same. This means that as frequency is increased, the bandwidth (for a bandpass or notch filter) is decreased.
fo = 1 / 2 * π * R * CA notch filter is created by adding the high and low pass outputs. Because they are 180° out of phase at the tuning frequency (fo), the result is zero voltage at fo when the two outputs are added. Addition can use a traditional opamp summing amplifier or just a pair of resistors. There will be a 6dB signal loss across the pass band for the simple resistive adder.
R3 = R2 * ( 3 * Q - 1 )
It is beyond the scope of this article to cover the complete design process, and in particular the process for setting the filter Q to a specific value. There are countless examples and design notes available on the Net, and those interested in exploring further are encouraged to do a search for material that gives the information needed.
Biquad Filter
The biquad in its pure form is somewhat remarkable in that it can only be made as a low pass or bandpass filter. There is no ability to use the traditional approach of swapping the positions of tuning resistors and capacitors to obtain a high pass filter. This limits its usefulness, but it is still very usable as a bandpass filter. Like the state-variable, both outputs are available simultaneously. In addition, there is an inverted copy of the low pass output, however this is probably of limited usefulness.
Figure 8 - Biquad Filter
6 - Notch Filters Notch filters are used for a variety of purposes, including distortion analysers and for removing troublesome frequencies. 50/60Hz hum or prominent acoustic feedback frequencies can be reduced (or eliminated almost completely), because typical notch filters have a very narrow band-stop region. The bandwidth can be as low as around 10-20 Hz, with the unwanted frequency reduced by 40dB or more.
There are many circuit topologies that can be used for very narrow notch filters, including the twin-T, Fliege, Wien-bridge and state-variable. All have similar responses, but the twin-T is unique in that it can have an almost infinite notch depth even when configured as a completely passive filter (i.e. with no opamp or other amplification). All other types require active circuitry to achieve usable results.
The twin-T notch requires extraordinary component precision to achieve a complete notch, and for this reason it's not often recommended. However, it is without doubt one of the best filters to use when a very deep notch is needed - especially for completely passive circuits. The following is only a very brief overview of notch filters - there are many more configurations that can be used, each with its own advantages and disadvantages. Notable (but not shown) is the bridged-T filter that has been used in some distortion analysers. It is easier to tune than the twin-T, and comes in a number of different topologies. It's interesting, but IMO not sufficiently useful to describe here. Bridged-T notch filters can never equal a twin-T for notch depth or Q without the addition of active circuitry.
6.1 - Twin-Tee Notch Filter The twin-T (or twin-tee) filter is essentially a notch (band stop) filter, and unlike most filters shown here, can still give an extremely high Q notch without the use of any opamps. In theory, the notch depth is infinite at the tuning frequency, but this is rarely achieved in practice. Notch depths of 100dB are easily achieved, and are common in distortion analysers. If the notch is placed at the fundamental frequency of the applied signal, it is effectively removed completely, so any signal that is measured is noise and distortion. While a notch filter can be converted to a peaking (bandpass) by means of an opamp, the result is usually about the same as you can get with a MFB filter, so there's not much point because of the added complexity.
It is still common to add an opamp to a twin-t filter though, because it makes it possible to ensure that there is little or no attenuation of the second harmonic when used as the basis for a distortion analyser. By applying feedback around the notch filter, the response can be maintained within a dB or less at only one octave from the notch frequency.
Figure 9 - Twin-Tee High Q Notch Filter
The first opamp acts as a buffer, ensuring that the output of the filter is not loaded by the voltage divider that supplies the signal to the second opamp. The second opamp applies feedback via the R/2 and 2C leg of the tee, making the initial rolloff occur closer to the notch frequency. As shown, the second harmonic is attenuated by less than 0.3dB. When used to remove the fundamental frequency for distortion measurements, it can be extremely difficult to maintain a good notch because of minute amounts of frequency drift.
6.2 - Fliege Notch Filter Normally, the Fliege filter is something of an oddity (high and low pass versions are shown below), but it makes an easily tuned notch filter with variable Q. Notch depth is not as good as a twin-T, but it can be tuned with a single resistor (within limits). The Q can be changed by changing two resistors. There is a caveat on the variable Q though - if the frequency tuning resistance is changed, the Q is also changed.
Figure 9A - Fliege Notch Filter
RQ = Rt * Q * 2In the circuit shown, Q is about 5, and that's enough to ensure that the second harmonic of the input frequency is attenuated by well below 0.1dB. Increasing the Q will reduce the notch depth, so the lowest Q that gives an acceptable minimum attenuation of harmonics should be used. It is possible to increase the Q to at least 10, but notch depth will be reduced.
The circuit can be tuned over a reasonable range by varying the resistor Rt* - it can be changed from 5k to 20k, providing frequencies from about 2.25kHz down to 1.13kHz with the other values unchanged. The Q does vary (as does notch depth), but performance is satisfactory over the range. I don't know of any other notch filter that's so easily adjusted, which makes this an excellent candidate for removing any 'nuisance' frequency such as 50/60Hz hum.
Fliege notch filters have unique phase performance. As frequency increases towards the notch frequency the phase is 0° - in phase with the input. As the notch frequency is passed, the phase is -360° above the notch - again exactly in phase with the input. No other notch filter I've looked at does this.
7 - Miscellaneous Filters There are many, many more filter types. Some are extremely obscure (but interesting), and there are no doubt others that richly deserve their obscurity. It would not be sensible to even try to cover them all, and with a few exceptions most will never be even considered as candidates for your next project. Some of the better known types are covered, others are mentioned only in passing.
7.1 - Fliege Filter
The Fliege filters shown below are interesting - gain is fixed at two, but the frequency and Q are independent. The Q can be changed with a single resistor scaled to the frequency tuning resistors, as shown below.
Figure 10 - Low Pass and High Pass Fliege Filters
7.2 - Akerberg-Mossberg Filter
Another obscure design is the Akerberg-Mossberg Filter. This is an easy topology to use, but requires three-op-amps for its operation. It is easy to change gain, type of low-pass and high-pass filter (Butterworth, Chebyshev or Bessel), and the Q of band-pass and notch filters. The notch filter performance is not as good as that of the twin-T but it is supposedly less critical. While undoubtedly useful, the details will not be included here, because there seems little application for audio circuits.
7.3 - Cauer (Elliptic)
One filter that does require further explanation is the Cauer or elliptic filter. As the basis for the NTM™ (Neville Thiele Method) crossover, and a very common anti-aliasing filter for analogue-digital conversion, it deserves some attention. It is an interesting filter, in that it is the only one to have ripple in the stop band. Pass band ripple is common with high-order Chebyshev filters, but no other filter has ripple in the stop band - beyond the cutoff frequency. This is produced because the filter is typically a combination of a (more or less) traditional Sallen-Key filter, followed by one or more notch filters, all tuned to operate beyond the cutoff frequency. The following example uses a Sallen-Key 12dB/octave filter, followed by a state variable filter. The summing amplifier adds the high pass and low-pass outputs together, resulting in a notch because they are out-of-phase. Changing the value of R13 (68k) changes the position of the notch ... a lower value reduces notch frequency, but increases the level of the rebound (see Figure 12).
Figure 11 - Low Pass Cauer (Elliptic) Filter
Figure 12 - Low Pass Cauer (Elliptic) Filter Response
The turnover frequency is a little lower than the 1.59kHz expected (1.48kHz), but that's because the filter was optimised for the 24dB/octave response shown in green. The faster rolloff of the Cauer filter is very pronounced, especially beyond 3kHz. At 4kHz, the level is 44dB below that at 2kHz, but it would be incorrect to say that the rolloff was 44dB/octave, because it changes - very rapidly as the notch frequency is approached (4.1kHz in this example).
While I have only shown a basic 24dB/octave version, it's not uncommon for Cauer filters to be 6th order or above. As the order is increased, the bounce is reduced further, and this is common for anti-aliasing filters. The much-sought-after 'brick wall' filter is almost achieved with this topology.
7.4 - Simulated Inductor
Inductors are without doubt the worst of all electronic components. Not only are they bulky, but they pick up noise from any nearby source of a magnetic field. Inductors also have significant resistance and often high inter-winding capacitance as well. When used for RF applications, the values needed are typically very low and it's easy enough to minimise the deficiencies. For audio frequencies, the failings of inductors make themselves well known. One solution for 'line level' applications, where the voltage and current are low, is the simulated inductor. By configuring an opamp and capacitor appropriately, the combination can be made to act just like a real inductor, but with fewer shortcomings. This is commonly known as a simulated inductor or a gyrator. When used with a capacitor, 'traditional' LC (inductance-capacitance) filters can be created, and these are common building blocks in many filter applications.
The generalised circuits are shown below, one using only an emitter follower (cheap and cheerful) or the 'real' alternative using an opamp.
Figure 13 - Simulated Inductors & Parallel Filter Response
L = R1 * R2 * C1 Henrys (where resistance is in Ohms and capacitance is in Farads)For the above example, the simulated inductors are nominally 1H, but the transistor version is actually slightly less because the gain of an emitter follower is typically only about 0.98 instead of unity. The circuits can be wired for series or parallel resonance, but the "inductors" are earth (ground) referenced. If you need a floating inductor, there is a circuit that can be used, but it's considerably more complex. For a great many equalisers and the like needed in audio, having the inductor earth referenced is not usually a problem.
Simulated inductors are not immune from "winding resistance", but it is fairly obviously not because of the resistance of a coil of wire. R2 is needed for the circuit to work, and is directly equivalent to winding resistance. Although some opamps will be able to work with values lower than the 100 ohms shown, there is a risk of instability if R2 is made too low. In general, 100 ohms is a reasonable compromise, and works well in practice.
7.5 - All-Pass Filter
It's hard to think of this as a filter, since it leaves the frequency response unchanged. Only the phase of the signal is varied, and with this comes a potentially useful time delay. Although the delay is short, it can be used to 'time align' drivers whose acoustic centres are separated far enough to cause problems. Version 'A' produces a lagging phase. That means that the output signal occurs after the input. For the values shown, the delay is about 155us with a 1.59kHz signal. Version 'B' has a leading phase - the output signal occurs before the input. While this seems impossible, for a signal that lasts more than a few cycles it really does happen. In the second example, the output occurs 155us before the input (but only after steady-state conditions are established).
Figure 14 - All-Pass Filter & Phase Response
The leading phase angle of the second circuit makes it unsuitable as a time delay - for that, you might use several of the 'A' circuits in series to get the desired time delay. It must be understood that the time delay is the result of phase shift, so varies with frequency. At one octave either side of 1.59kHz (i.e. 795Hz and 3.18kHz), the delay is roughly 180us and 110us respectively.
Figure 15 - All-Pass Filter Time Response
By adjusting the values to suit the crossover frequency, it is possible to obtain pretty close to perfect time alignment. This may be necessary if the acoustic centres of the loudspeaker drivers cause the relative outputs to be out of phase by less than 180°. It is usually the tweeter signal that has to be delayed to match the midrange (or mid-bass) driver. The details of how to achieve this are outside the scope of this article.
8 - Digital Filters (Overview) Digital filters are not new, but with cheap digital signal processor (DSP) ICs now available, they are becoming very common. In many cases, the end-user is completely unaware that digital filters are in use because they are commonly integrated within equipment. Surround-sound, room 'correction' (which cannot and does not work! ¹), tone controls and many other functions are now implemented using DSPs, rather than analogue circuits. Indeed, many of the functions (whether useful or not) can't even be done using analogue processing because the cost and circuit complexity would be far too high. Some filter implementations are simply impossible with analogue processing.
- Room 'correction' is basically a complete myth. You
cannot use variable amplitude to correct for frequency response
errors that are caused by time delay within the room itself. Some
benefit can be gained at low frequencies (typically below ~80Hz or
so). 'Automatic' analysis and correction systems are almost guaranteed
to produce an end result that is, at best, sub-optimal.
(See Cinema Sound for an in-depth look at this issue.)
As noted in that article, "You cannot correct time with amplitude."
There are basically two different types of digital filter, known as 'finite impulse response' (FIR) and 'infinite impulse response' (IIR). Analogue filters are essentially IIR types, and the IIR digital filter coefficients are commonly derived from the analogue equivalent. All digital filters rely on digital delay lines, plus addition, subtraction and/or multiplication in software. Although all processes needed can be performed by general purpose processors, DSP chips are optimised for these functions so generally require far less code than would be needed for a DSP function performed by the general-purpose microprocessor in a home PC (for example). Basic digital filter characteristics are as follows ...
Finite Impulse Response (FIR) filters
- have linear phase characteristics
- have high filter order (more complex circuits)
- are unconditionally stable
- have non-linear phase characteristics
- use low filter order (less complex circuits)
- have the potential to be unstable
FIR filters have the advantage that they are always stable, but they require greater hardware resources. FIR filters use a mathematical function referred to as convolution - where the final function is a modified form of one of the two original functions. FIR filters have no analogue counterpart, and can be designed to do things that are impossible with any analogue filter. An example is to build a filter with a steep rolloff slope, but with no phase shift.
IIR filters use recursion (feedback), and while this makes the functions more efficient (requiring fewer computing resources), it also means that the final filter may not be stable. IIR filters are virtually identical to conventional analogue filters, and it is not possible to remove phase shift from the output.
A filter using convolution (FIR) requires a separate processing section and delay for each sample being processed, and uses only the input samples in the equations. In contrast, a recursive filter (IIR) uses both input and output samples because of the feedback, and therefore requires fewer processor resources. As noted, this can lead to instability and also 'limit cycles' - basically a form of non-harmonic distortion resulting from quantisation errors that may circulate within the DSP filter block.
It has been claimed (for example [11]) that digital filters are far superior to analogue filters because they "are not subject to the component non-linearities that greatly complicate the design of analogue filters". While this is true up to a point, it also ignores the fact that digital filters are subject to quantisation errors and all the other issues that all digital systems can suffer from. Not the least of these is headroom. Most DSPs operate from 5V or 3.3V, so the level is limited to an absolute maximum of 1.77V or 1.17V RMS, more than 15dB lower than can be used with analogue filters using common opamps.
However, as noted above, digital filters can have far greater rolloff slopes and much higher complexity than analogue equivalents, and FIR filters can be configured as linear-phase so there is no phase shift through the filter. Digital filters can be configured to do things that are simply impossible with an analogue design. Because digital filters rely on signal delay, there is an inevitable latency (time delay) as the signal passes through the filter, analogue to digital converter (ADC) and digital to analogue converter (DAC). Most digital filters also require an analogue low-pass filter ahead of the ADC to prevent aliasing.
Some proponents of the digital approach may claim that the FIR filter's linear-phase characteristic is ideal for audio. However, it should be remembered that the phase of a typical audio signal is virtually random, and eliminating phase shift is of no practical benefit. There is no evidence that the normal phase shift introduced by any (sensible) analogue filter is audible in a blind test.
Overall, the digital approach is likely to cost more for typical audio applications such as electronic crossovers. There are DSP boards available that can easily be configured as crossovers, with optional equalisation in some cases. The end result may well be very good, but it's close to impossible to truly understand what's going on, and little is learned along the way (other than how to drive PC based software to configure the DSP).
Because of the low output level which may not be sufficient to drive a power amp to its maximum, additional analogue circuitry is needed to restore the level, and the digital circuitry must be operated at a level that guarantees that 0dBFS (maximum digital (full scale) level without clipping) is never exceeded. This might mean that the maximum level may need to be kept below perhaps 500mV, and most of the time the level will be a great deal less at normal listening levels.
Of course, once the signal is in the digital domain (after the ADC), any other effects that might be needed are easily accomplished. For example, a digital crossover network can be configured with the necessary time delays to 'time align' the loudspeakers, or to apply equalisation as needed to obtain a flat frequency response. Great care is still required though, because it's easy to apply radical EQ to 'correct' a poor loudspeaker, and while the end result might be flat, it may also sound like a bucket of bolts. Despite claims you may see, digital processing cannot make a silk purse from a sow's ear - a crappy speaker is still crappy no matter how much technology you throw at it!
Digital filters can be used to re-create any analogue response (Butterworth, Bessel, Linkwitz-Riley, Chebychev, 'inverse' Chebychev, elliptic (Cauer), low pass, high pass, band pass, band stop (notch), etc., etc. As explained above, responses and functions can be created in the digital domain that are simply impossible with analogue. Despite all the apparent advantages, it does not follow that digital is necessarily 'better'. Indeed, if the DSP isn't capable of at least 32-bit precision the digital realisation may be a great deal worse, and there is always the additional circuitry (and low signal level requiring additional amplification) that just means that there are a great many more things to go wrong.
There is no doubt that digital filters are immensely useful, and it's expected that entire subsystems will become more powerful and cheaper over time. It's already possible to get fully configured boards and software to drive them quite cheaply (less than $100), and these will eventually replace many analogue designs. Whether they are 'better' than an analogue implementation for 'routine' applications such as electronic crossover networks is subject to some debate - as is to be expected. As always, many of the claims and counter-claims are based on purely subjective testing, without a great deal of science. Most readers will know that I consider subjective claims to be pointless at best, and they are often highly misleading.
I do not propose to cover digital filters in any more detail than has been presented. People who are interested in more information are encouraged to do a web search - there is a vast amount of information available. Be warned that much of what you will find is extremely technical, and assumes that the reader is already acquainted with digital techniques and understands the complex maths involved.
9 - Transient Response As noted earlier, all filters affect the transient response of the signal passed through them. As the order and Q are increased, the transient response becomes worse, with clearly visible ringing on an impulse waveform. While this can often look very scary ("that must ruin the sound"), in reality it's not really a problem for most of the filters we use. Part of the problem is that the typical test waveform is a pulse, and while that does show the problem, it makes it appear much worse than it really is. Music does not consist of very narrow pulses that have infinitely short rise and fall times, but tends to be relatively smooth. Even musical transients do not have very fast rise times, because the instruments do not have fast rise-times and the recording process uses filters to limit the maximum frequency. This reduces the maximum possible risetime of any signal that passes through.
Although it is possible to record a single 50us pulse (half a cycle of 10kHz), loudspeakers can't reproduce it even if it were to get through the recording chain. We would also be hard pressed to hear it, because it takes time before the ear-brain combination can recognise that a signal exists as a tone or the sound of an instrument. Nevertheless, transient response will be examined here, warts and all.
More to the point, while the 'standard' test signal shows the effect, it is totally unrealistic. Being of only one polarity, it is completely unlike any normal signal in audio. There is no musical instrument that can produce such a waveform, and no microphone that can record it intact.
The term 'steady-state', if used strictly, describes a waveform that has existed for eternity. Any disturbance (such as switching it on or off) introduces transient effects. In most cases, steady-state conditions can be seen to be restored after a number of cycles of a sinewave. Minor disturbances will not usually be audible, because the signal needs to exist for a period of several cycles before we can interpret it as a particular tone. This is highly dependent on the frequency and amplitude of the signal.
Figure 16 - Transient Response of 1.66kHz Low Pass, 24dB/Octave Filter
What is more important is the overall change to a normal signal. While music is not steady-state, for most filters it takes only a couple of cycles for steady-state conditions to be established. For the filter used for Figure 15, it takes only one half-cycle at 1kHz before the output signal reaches (approximately) steady-state conditions. When the input signal is above the cutoff frequency, it takes a little longer for the signal to settle down - at 2kHz, 2½ cycles are needed before steady-state conditions apply. This gets progressively worse as frequency is increased, but the filter is also reducing the amplitude of the signal above cutoff, so the effects become immaterial. For example, we don't really care if it takes 3 days for a 20kHz signal to settle from a 1.66kHz filter, because the filter has effectively removed the signal anyway (20kHz is about 88dB down with the test filter).
Figure 17 - Transient Response of 70Hz High Pass, 24dB/Octave Filter
While it is simple enough to create a somewhat more realistic test waveform, there really isn't much point. The simple fact is that filters affect transient response, and it does not matter if they are active, passive or digital. Passive filters are the hardest to control, and if the load is a loudspeaker it presents a different impedance depending on frequency, and will therefore be far less predictable.
Suffice to say that all filters create deviations in transient response, but provided filter Q is kept reasonably low, the effects are generally completely inaudible. Filters with a Q of 0.5 (sub-Bessel) are as close to benign as it is possible to achieve while still maintaining useful frequency response and crossover performance. Low frequency high pass filters (for example, subsonic filters, speaker excursion limiting filters, etc.) introduce phase shift (as do all filters), but their transient response does not usually significantly affect signals within the normal audio range.
While transient response is obviously important, I can find no evidence that listeners are able to detect any statistically relevant differences in a properly conducted blind test. Vast numbers of people listen to vented (ported) loudspeaker enclosures, and their transient response is dreadful. However, it must be considered that bass signals hardly qualify as 'transient', because they are rather slow by nature.
Figure 17A - Transient Response of 723Hz High And Low Pass, 6dB/Octave Filter
This is a more realistic test than using a single polarity pulse, but the waveform is still contrived to show the effect and will never be found in isolation in music. This notwithstanding, the effect of the filters is audible, as you would expect from any filter. There is also a phase shift of 90°, with the high pass output leading the low pass output. A single 3 cycle burst sounds like a click, but at 723Hz the tonality of the signal is just audible. There is also an 'undertone' created by the stop-start nature of the waveform. The filter changes the sound simply because it is a filter. The low pass filter accentuates the non-harmonic 'undertone' that is created by the burst waveform, and the high pass version removes it.
This shows quite clearly that even a first order filter (6dB/octave) will cause transient distortion. The above results can be duplicated easily, and a simulation gives identical results to those captured on the oscilloscope. For those who remain dubious, I recommend that you either run the test yourself if you have the equipment, or at least perform simulations to verify that these effects are very real. A tone-burst gate is shown in Project 143, and Project 86 describes a simple audio oscillator. Both are ideal for this type of test.
Higher order filters do exactly the same thing, but the effects are more pronounced. However, even a 24dB/octave (4th order) filter will show the second cycle from both high and low pass sections to be exactly equal and in phase with each other. Only the first and last cycles are affected in a tone-burst test. Note that any waveform disturbance when the tone burst ends is always after the input stimulus has ended (the filter is not pro-active, and can't make a change before the stimulus has started or stopped).
Filters affect the phase of the signal, and in so doing also affect the time it takes for the signal to pass through the filter. This time is called 'group delay', and is described in the next section.
10 - Group Delay Group delay is best described as the delay difference between one group of frequencies and another different group of frequencies (e.g. above and below 2kHz). To use the analogy of John L Murphy (True Audio), imagine if the treble was heard instantly, but the bass was delayed until the same time tomorrow (24 hours). This would be audible to everyone. All normal filters (and even some loudspeakers ) can be expected to have a delay much less than this, and group delay is not generally a problem.
Figure 18 - Group Delay Comparison, Butterworth and "Sub-Bessel" Filters - 12dB/Octave
There is a table (below) that gives the approximate thresholds of audibility for group delay, and the data were compiled by Blauert and Laws [7]. There is not a lot of research into this for some reason, but there's little or nothing that can be done about it. The group delays of most filters are well below the threshold of audibility based on the available data.
Frequency | Audibility Threshold | No. of Cycles |
500 Hz | 3.2 ms | 1.6 |
1 kHz | 2 ms | 2 |
2 kHz | 1 ms | 2 |
4 kHz | 1.5 ms | 6 |
8 kHz | 2 ms | 16 |
Threshold of Audibility for Group Delay
The table shows the minimum group delay that is thought to be
audible, along with the number of cycles at that frequency. Any delay
time less than shown will not be heard, however there may be exceptions
if the delay causes an anomaly in the frequency response. If this is the
case, it will be detected as a frequency response error - not a time
delay. Although there appears to have been surprisingly little testing
in this area, it is generally thought that human hearing is not
especially sensitive to short time delays. As frequency is increased or
reduced around 2kHz (the most sensitive frequency), greater delays are
required before they become audible.
Audibility of group delay depends on the source material. Sharp impulse sounds can sound 'blurred' if there is too much delay between the low and high frequencies, but you may not hear any significant change if the source material has no transients. It's probably safe to assume that if the group delay never exceeds (say) 0.5 of a cycle at any frequency, it won't be audible. This is a far stricter criterion than we see in the above table, but it's not unreasonable. Some speaker designers consider that up to two complete cycles is "probably ok" (and they are probably right), and a typical vented speaker enclosure has far more group delay than most filters.
One complete cycle at 50Hz is 20ms, so two cycles will take 40ms. At 20Hz, a single cycle is 50ms and two cycles take 100ms. You can work out the cycle time for any frequency and take it from there. In the table above, anything over 1.6 cycles at 500Hz is at the threshold of audibility, but at sub-bass frequencies (below 40Hz) our hearing is not at all sensitive to the delay. There is little or no empirical data though, and the above table is pretty much all that anyone has to work with ... you'll find the same data all over the Net.
Figure 19 - Group Delay Vs. Frequency Response, 18Hz 36dB/Octave High Pass
It also has to be understood that if you have a serious problem with subsonics (for example), then a filter can only improve matters. Anything that fixes a known (and audible) problem can only ever improve the system overall. It's very rare that the cure is worse than the disease .
Conclusions Filters are an ongoing development, with DSP (digital signal processing) now being applied for more complex types. Regardless, the analogue versions are still very much in use, and for DIY applications are generally the cheapest and easiest to use. Performance is every bit as good as a DSP version, but they can't be changed with software coefficients because they must be hard-wired. Of course, many is the claim that digital filters are ever so much better than analogue, and there are just as many counter-claims. I don't believe that either camp is right - both can do the same things. As noted above, digital filters can do things that are impossible with analogue, but are significantly more complex and costly to develop. With the advent of high speed analogue-digital converters, even traditional anti-aliasing filters are often not needed, with a fairly basic filter being adequate. This is achieved by sampling the audio at a much higher than required rate, applying the filter digitally using a DSP, then down-sampling to the required rate (44.1kHz for example).
The hardware basis of analogue filters is rarely a problem for any fixed installation, such as a hi-fi system or a dedicated powered speaker, and the DSP approach is (generally) not cost effective. While even analogue filters can be made adjustable, it's very difficult to get 4-way (or more) ganged pots - and even harder to get them with acceptable tracking. However, it's easy to install machine sockets to allow resistors to be changed if this is needed.
Because of the huge range of different filter types, there is one to suit every need, however obscure. While some of those shown above are suitable for use as a crossover, others are completely unsuitable - often for reasons of cost and complexity. There is no point building a complex filter whose Q can be varied without affecting anything else, because you generally know the Q that's needed for your application before you start. This is determined by the filter topology and the requirements. For an electronic crossover, you need to be able to sum the outputs to get a flat response (generally an absolute requirement, because that's what the loudspeakers will do), so the Q needs to be set accordingly based on the filter slopes.
The Sallen-Key filter is still the easiest to use, and despite its shortcomings is sufficiently well behaved for almost anything needed in audio (for general purpose high and low pass filters at least). While MFB filters are sometimes applied, there is usually no advantage - the required values are more irksome, they are an inverting topology, and IMO offer no benefit to offset the greater complexity. High-pass MFB filters should be avoided altogether. Of course, bandpass MFB filters are ideal and beat most other contenders hands down. State variable filters are probably the most flexible, but need 3 opamps instead of only one for MFB or Sallen-Key types (for 12dB/octave or bandpass filters). The other topologies are interesting, but other than specialised applications, are generally not especially useful for audio/ hi-fi applications.
References Several references were used while compiling this article, with many coming from my own accumulated knowledge. Some of this accumulated knowledge is directly due to the following publications:
1 - National Semiconductor Linear Applications (I and II), published by National SemiconductorRecommended Reading
2 - National Semiconductor Audio Handbook, published by National Semiconductor
3 - IC Op-Amp Cookbook - Walter G Jung (1974), published by Howard W Sams & Co., Inc. ISBN 0-672-20969-1
4 - Active Filter Cookbook - Don Lancaster (1979), published by Howard W Sams & Co., Inc. ISBN 0-672-21168-8
5 - Maxim - A Beginners Guide to Filter Topologies Application Note 1762
6 - Texas Instruments - A Single-Supply Op-Amp Circuit Collection SLOA058
7 - Blauert, J. and Laws, P "Group Delay Distortions in Electroacoustical Systems", Journal of the Acoustical Society of America, Volume 63, Number 5, pp. 1478–1483 (May 1978)
8 - Analog Devices - OP179/279 Data Sheet, p12
9 - Miscellaneous data sheets from National Semiconductor, Texas Instruments, Burr-Brown, Analog Devices, Philips and many others.
10 - Audibility of Group Delay - True Audio forum discussion
11 - Digital filter - Wikipedia
Opamps For Everyone - by Ron Mancini, Editor in Chief, Texas Instruments, Sep 2001
Designing With Opamps - Part 2 - ESP
Main Index
Articles Index
Copyright Notice. This article, including but not limited to all text and diagrams, is the intellectual property of Rod Elliott, and is Copyright © 2009. Reproduction or re-publication by any means whatsoever, whether electronic, mechanical or electro- mechanical, is strictly prohibited under International Copyright laws. The author (Rod Elliott) grants the reader the right to use this information for personal use only, and further allows that one (1) copy may be made for reference. Commercial use is prohibited without express written authorisation from Rod Elliott. |
Page created and copyright © Rod Elliott, 20 August
2009./ Update Jan 2014 - added digital filter overview plus Fig 17A and
associated text.
Hi, this is Arunprakash. I like the way the article is explained. The content is very good. If any of the engineering students who are looking for a Projects Using 8051 Microcontroller I found this site and they are providing the best service to the engineering students regarding the projects Projects Using 8051 Microcontroller
ResponderEliminar