Band Stop Filter Design

Band stop filters are used to separate the frequency components of a signal and pass the higher and lower frequencies while filtering out the middle frequencies. This divides the frequency spectrum into a five bands: two pass bands on the extremes, a stop band in the middle and two transition bands separating the pass and stop bands. A band stop filter is characterized by the limits and characteristics of each band and by a few overall characteristics.

The two pass bands are characterized by their desired gain values (usually +0 dB or x1) and their ripple values which measure the maximum desired deviation from the gain values. The stop band is characterized by its rejection level, which represents the minimum acceptable attenuation. The two transition bands cover the portions of the spectrum between the stop band and the pass bands; they represent unspecified regions within which no constraints are placed on the filter. A narrow transition band indicates a sharp transition between the stop and pass bands, and will, in general, force either a poorer fit or a longer filter.

In addition to the limits and characteristics of each band, an FIR filter design depends on the sampling frequency of the input data. In fact, the usable frequency range is between DC (0 Hz) and half the sampling frequency, which is called the folding frequency. A filter designed for data sampled at one frequency will not behave the same with data sampled at a different rate: the band characteristics remain the same, but the band limits change proportionally with the change in sampling frequency.

Two additional characteristics of an FIR filter are its length and symmetry. The length refers to the number of “taps” or coefficients; increasing the length generally improves the fit at the expense of design speed, execution speed and sample delay. Even length and odd length filters display significantly different behavior. Filter symmetry (even, odd or none) refers to the symmetry of the coefficients and is independent of the evenness or oddness of filter length, although there is some interplay between the two characteristics.

Band stop filters are typically designed to have even symmetry and odd length. Even symmetry is necessary, as odd symmetry filters force the DC response to be zero. Even symmetry, even length designs are also unsuitable, as they force zero response at the folding frequency.

As an example, consider the following band stop audio filter designed with even symmetry and a sampling frequency of 10 KHz:

Type Start Freq Stop Freq Ripple/Rejection Gain
Pass 0 KHz 1.5 KHz 0.2 3
Stop 2.25 KHz 3 KHz 30 dB  
Pass 3.75 KHz 5 KHz 0.2 3

When this filter is generated with 21 taps, the coefficients and frequency response graph are as follows:

Taps:

-0.0446618
-0.096799
0.0949335
0.0223735
0.0163056
0.0623766
-0.367402
-0.140917
0.777386
0.0795676
2.04688
0.0795676
0.777386
-0.140917
-0.367402
0.0623766
0.0163056
0.0223735
0.0949335
-0.096799
-0.0446618
App5.jpg

If you need to design a band stop filter, please contact us today!