Professional Documents
Culture Documents
filterfilter
coefficients, K+1
The transfer function of the FIR filter: length
𝑰𝒏𝒗𝒆𝒓𝒔𝒆𝒇𝒐𝒖𝒓𝒊𝒆𝒓𝑻𝒓𝒂𝒏𝒔𝒇𝒐𝒓𝒎
Symmetric
• To obtain causal FIR filter, h(n) is delayed by M samples.
Where,
b. Determine the transfer function and difference equation of the designed FIR system.
c. Compute and plot the magnitude frequency response for radians.
Solution
Normalized cut-off frequency
3-tap filter 2
𝑀 +1=3 𝑀 =1 h
( 𝑛 ) 𝑓𝑜𝑟 𝑛 𝑓𝑟𝑜𝑚 − 𝑀 𝑡𝑜 𝑀 𝑛=−1
, 0 ,1 ,
Using symmetry
Delaying h(n) by
M = 1 sample
5
CEN352, Dr. Nassim Ammour, King Saud University
Example - Contd.
inverse z-transform
M=8 samples
delay
Input:
•
Applying the window sequence to
the filter coefficients gives
Solution:
normalized cut-off
frequencies
𝑴=𝟐
5-tap FIR 2M +5 = 1 then M=2
𝑆𝑦𝑚𝑚𝑒𝑡𝑟𝑦
Hamming
window
function 𝑆𝑦𝑚𝑚𝑒𝑡𝑟𝑦
Windowed
impulse
response
By delaying by M = 2 samples,
Solution:
Choose nearest higher odd N = 25
𝑁 =2 𝑀+1=7 ⟶ 𝑀=3 ,
Example 25-Tap FIR filter, 8 bit code (sign + 7 bits for fraction Error is bounded by (less than)
IIR filter
transfer function
23
CEN352, Dr. Nassim Ammour, King Saud University
Example 1: Bilinear Transformation Method
Design a first-order high-pass digital Chebyshev filter with a cut-off frequency of 3
Problem:
kHz and 1 dB ripple on the pass-band using a sampling frequency of 8,000 Hz.
Solution:
Digital frequency (rad/s):
Applying BLT:
CEN352, Dr. Nassim Ammour, King Saud University 24
Example 2: Bilinear Transformation Method
Design a second-order digital band-pass Butterworth filter with the following specifications:
Problem:
Solution:
Digital frequencies:
Applying transformation
LPF to BPF:
Applying BLT:
Pole-zero
placement for a
second-order
narrow BPF.
scale to have unit pass-band BPF gain CEN352, Dr. Nassim Ammour, King Saud University 27
Poles amplitude Determines Pole Zero Placement Method
the 3 dB bandwidth
Second-Order BSF (Notch) Design
The zeros are placed on the unit circle with
the same angles with respect to poles.
Poles angle
Determines the
center frequency
unit pass-band
Transfer function gain scale factor
Example
transfer function of first-order LPF is required to satisfy: unit gain scale factor:
transfer function:
Since cut-off frequency = 100 Hz < pole at:
unit pass-band
Transfer function gain scale factor
Example
transfer function of first-order HPF is required to satisfy: unit gain scale factor:
transfer function:
Since cut-off frequency = 3800 Hz > pole at
30
CEN352, Dr. Nassim Ammour, King Saud University
IIR Filter realization
Example: Realize the first-order digital high-pass Butterworth filter using
a direct-form I realization.
Solution:
Filter coefficients:
DSP equation:
Implementation:
Solution:
60-Hz eliminator design (notch frequency of 60Hz)