|
AN2182 Datasheet, PDF (11/18 Pages) STMicroelectronics – Filters using the ST10 DSP library | |||
|
◁ |
AN2182
6 Cutoff band filter
Cutoff band filter
The aim of this section is to create a cutoff band filter with a cutoff frequency F1, a pass
frequency F2> F1, and a gain of G=1, by determining a FIR filter using the digital approach.
The FIR coefficients correspond to h(n) where h is the continuous time response of the filter
and h(n) = h(nTs).
In the frequency domain, the ideal cutoff band filter corresponding to these criteria has the
following response:
Figure 7. Ideal cut-band filter frequency response
1
1
-F2
-F1 0 F1
Cut-band filter
Passband filter
F2 Frequency
-F2
-F1 0
F1
F2 Frequency
If we consider
â HP(f) the frequency response of the passband filter with a pass frequency F1 and cutoff
frequency F2
â HC(f) the frequency response of the cutoff band filter with a cutoff frequency F1 and pass
frequency F2
â Ts is the sampling period
then, we can easily notice that
(8) HC(f) = 1 â HP(f)
In the time domain, this gives
hC(n)
=
δâân â N------2â-----1--â â
â
â
â2
â
F----2--
Fs
sin
cââ2F2ââ
n
â
N------2â-----1--â â
Tsâ â
â
2 F----1--
Fs
sin
cââ
2F1âân
â
N------2â-----1--â â
Tsâ â
â
â
â
with n = 0.. N â 1 and where
â N is the number of FIR coefficients
â N â 1 is the FIRâs order
â W is the window time response
In the case of a cutoff band filter, N should be odd because of the dirac, that is the FIRâs order
should be even.
11/18
|
▷ |