Digital filters (FIR) 数字滤波器

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

j
In the stopband s we require j that G (e ) 0 with a deviation s
G (e ) s ,
j
s
Professor A G Constantinides 7
AGC DSP
Digital Filter Specifications
百度文库

Professor A G Constantinides
6
AGC DSP
Digital Filter Specifications
In the passband 0 p we require that with a deviation p G ( e j ) 1

1 p G (e ) 1 p , p


p
p
FT FT s 2 Fs s 2 Fs T FT FT

2 Fp
2 FpT
Professor A G Constantinides
10
AGC DSP
Digital Filter Specifications


Example - Let Fp 7 kHz, Fs 3 and FT 25kHz Then 2 (7 103 ) p 0.56 3 25 10



H(z) must be stable and of lowest order N or M for reduced computational complexity
Professor A G Constantinides 12
p0 p1 z 1 p2 z 2 pM z M H ( z) d 0 d1 z 1 d 2 z 2 d N z N
3
AGC DSP
Digital Filter Specifications
The realisable squared amplitude response transfer function (and its differential) is continuous in Such functions if IIR can be infinite at point but around that point cannot be zero. if FIR cannot be infinite anywhere. Hence previous defferential of ideal response is unrealisable
H ( z ) K (1 i z ). (1 i z )
i 1 1 n2 1


Where i 1, i 1 K , real & zeros occur in conjugates
is
18
Professor A G Constantinides
AGC DSP
Professor A G Constantinides 9

AGC DSP
Digital Filter Specifications
In practice, passband edge frequency F p and stopband edge frequency Fs are specified in Hz For digital filter design, normalized bandedge frequencies need to be computed from specifications in Hz using
Filter specification parameters - passband edge frequency p s - stopband edge frequency p - peak ripple value in the passband s - peak ripple value in the stopband
Professor A G Constantinides 16
AGC DSP
FIR: Linear phase
For phase linearity the FIR transfer function must have zeros outside the unit circle
Professor A G Constantinides
FIR: Linear phase

Let H ( z ) KN1 ( z ) N 2 ( z ) where
N1 ( z ) (1 i z 1 )
Professor A G Constantinides 4



AGC DSP
Digital Filter Specifications
A realisable response would effectively need to have an approximation of the delta functions in the differential This is a necessary condition
17
AGC DSP
FIR: Linear phase

To develop expression for phase response set transfer function (order n) In factored form
n1 i 1
H ( z ) h0 h1z 1 h2 z 2 ... hn z n
AGC DSP
Selection of Filter Type
FIR real digital filter transfer function is a polynomial in z 1 (order N) with real coefficients

H ( z ) h[n] z
n 0

N
n


For reduced computational complexity, degree N of H(z) must be as small as possible If a linear phase is desired then we must have: h[n] h[ N n] Professor A G Constantinides (More on this later) 13
Professor A G Constantinides 2

AGC DSP
Digital Filter Specifications
Consider the ideal LP response squared (same as actual LP response)

Professor A G Constantinides
2 (3 103 ) s 0.24 3 25 10
kHz,
Professor A G Constantinides
11
AGC DSP
Selection of Filter Type
The transfer function H(z) meeting the specifications must be a causal transfer function For IIR real digital filter the transfer function is a real rational function of z 1
Professor A G Constantinides
1
AGC DSP
Digital Filter Specifications
These filters are unealisable because (one of the following is sufficient) their impulse responses infinitely long noncausal Their amplitude responses cannot be equal to a constant over a band of frequencies Another perspective that provides some understanding can be obtained by looking at the ideal amplitude squared.
AGC DSP
Selection of Filter Type
Advantages in using an FIR filter (1) Can be designed with exact linear phase (2) Filter structure always stable with quantised coefficients Disadvantages in using an FIR filter - Order of an FIR filter is considerably higher than that of an equivalent IIR filter meeting the same specifications; this leads to higher computational complexity for FIR
Professor A G Constantinides
15
AGC DSP
Finite Impulse Response Filters

The transfer function is given by
H ( z ) h(n).z
n 0 N 1 n

The length of Impulse Response is N All poles are at z 0 . Zeros can be placed anywhere on the zplane


Professor A G Constantinides
5
AGC DSP
Digital Filter Specifications
For example the magnitude response of a digital lowpass filter may be given as indicated below
AGC DSP

Digital Filter Specifications
Only the magnitude approximation problem Four basic types of ideal filters with magnitude responses as shown below (Piecewise flat)
Professor A G Constantinides 14


AGC DSP
FIR Design
FIR Digital Filter Design Three commonly used approaches to FIR filter design (1) Windowed Fourier series approach (2) Frequency sampling approach (3) Computer-based optimization methods
Professor A G Constantinides 8
AGC DSP
Digital Filter Specifications


Practical specifications are often given in terms of loss function (in dB) G ( ) 20 log10 G (e j ) Peak passband ripple p 20 log10 (1 p ) dB Minimum stopband attenuation s 20 log10 ( s ) dB
相关文档
最新文档