Professional Documents
Culture Documents
Digital Filters What Is A Filter?
Digital Filters What Is A Filter?
Digital Filters
Filters
Definition
(a is a real number)
Time Invariant
Lowpass
Lowpass
Highpass
Bandpass
Band reject
cutoff frequency
Highpass
Bandpass
lets through high
frequencies
Stops low
frequencies
combinations of
lowpass and
highpass filters
lets through only
frequencies above a
certain point and
below another, so
there is a band of
frequencies that get
through
9
Band Reject
10
11
Cutoff Frequency
Defined at the half-power point (filtered output
amplitude at 0.707 of original signal)
Passband
The area where frequencies are passed
Stopband
The area where frequencies are stopped
The filter'
s bandwidth
The width of the band is called
Bandpass Filter
13
Cutoff Frequency
14
Transition Band
15
More on Slope
16
f center
f highcutoff f lowcutoff
18
The Impulse
Impulse Response
Impulse response describes filter
behavior completely.
Why? At all time delays response will be
the same and input can be chopped into
infinite stream of impulses. Sum of
impulse inputs -> Total response
19
20
21
The Math
22
Add time-delayed
signal to itself
z -1
25
FIR Math[1]
Filters generally use more than one sample
delay, with independently determined
coefficients.
26
x[n]
Tapped-delay line
(N-1) delays
N multipliers
1 adder (N inputs)
H ( z) =
3
n =0
hn z
Z-1
h0
Z-1
h1
Z-1
h2
y[n]
x[n-1]
x[n-2]
x[n-3]
h3
27
FIR
28
a,x(r0)
a
#n-1
x0,y0,a
x0,y0,a
x:(r0)+,x0
y:(r4)+,y0
x:(r0)+,x0
(r0)-
y:(r4)+,y0
30
x +
IIR Math[0]
The feedback loop introduced creates the
possibility of an infinite impulse (delayed sample).
The simple averaging filter becomes an
Exponential Time Averaging Filter (ETA Filter),
equivalent to an infinitely long FIR filter.
z -1
IIR
b0
x(n)
w(n)
-a1
Tapped-delay line (N or M)
delays
N + M + 1 multipliers
2 adders (N and M+1
inputs)
X
-a2
X
-a3
X
-aM
X
-aN
X
Z-1
w(n-1)
b1
b2
X
Z-1
w(n-3)
b3
X
Z-1
w(n-M)
y(n)
Z-1
w(n-2)
32
bM
X
Z-1
Assume:
N>M
a0 = 1
w(n-N)
33
IIR Filters
34
35
36
Overflow Issues
Q and Gain
37
38
Second-Order Sections
39
40
x[n]
b + b z + b2 z
H (z ) = 0 1 1
1 + a1 z + a2 z 2
= b0
Z-1
b0
Z-1
b1
1 + k1 z + k 2 z
1 + a1 z 1 + a2 z 2
Z-1
y[n-1]
x[n-1]
2
y[n]
-a1
x[n-2]
b2
Z-1
y[n-2]
-a2
42
w(n)=x(n)-ai1w(n-1)-ai2w(n-2)
y(n)=w(n)+bi1w(n-1)+bi2w(n-2)
#$08,MR
m0 = 2*N-1, m4 = 4*N-1
Initial gain in y1, input in y0, output in a
43
44
y:(r4)+,y0
y:(r4)+,y0
y:(r4)+,y0
y:(r4)+,y0
y:(r4)+,y0
45
Complicated Filters
46
47