0% found this document useful (0 votes)
37 views8 pages

T. Y. B. Tech (ECE) Trimester: VII Subject: Digital Signal Processing

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 8

T. Y. B.

Tech (ECE)
Trimester: VII Subject: Digital Signal Processing
Name: Class:
Roll No: Batch:
Experiment No: 08

Name of the Experiment: Design, simulation and implementation of an FIR filter (Using
FDA Tool)
Marks Teacher’s Signature with date
Performed on:

Submitted on:

Aim: To design, simulation and implementation of an FIR filter (Using FDA Tool).

Prerequisite: FIR filters design using various windows.

Objectives:
1. To understand magnitude and phase response of various windows

Components and equipment required:


PC with MATLAB

Theory:
The Filter Design and Analysis Tool (FDATool) is a powerful user interface for designing and
analyzing filters quickly. FDATool enables you to design digital FIR or IIR filters by setting
filter specifications, by importing filters from your MATLAB workspace, or by adding, moving
or deleting poles and zeros. FDATool also provides tools for analyzing filters, such as magnitude
and phase response and pole-zero plots.
Use FDATOOL in matlab.
If you type
>>fdatool

Expt. 2- 1
in command window, FDAtool will be opened. There you can select FIR or IIR filter, order of
filter and cutoff frequency of a filter (HPF, LPF or BPF). That code will automatically generate
.m file for you.

The GUI has three main regions:


1. The Current Filter Information region
2. The Filter Display region and
3. The Design panel
The upper half of the GUI displays information on filter specifications and responses for
the current filter. The Current Filter Information region, in the upper left, displays filter
properties, namely the filter structure, order, number of sections used and whether the

Expt. 8 - 2
filter is stable or not. It also provides access to the Filter manager for working with
multiple filters.
The Filter Display region, in the upper right, displays various filter responses, such as,
magnitude response, group delay and filter coefficients.
The lower half of the GUI is the interactive portion of FDATool. The Design Panel, in
the lower half is where you define your filter specifications. It controls what is displayed
in the other two upper regions. Other panels can be displayed in the lower half by using
the sidebar buttons.
The tool includes Context-sensitive help. You can right-click or click the What's This?
button to get information on the different parts of the tool.
Designing a Filter

We will design a low pass filter that passes all frequencies less than or equal to 20% of
the Nyquist frequency (half the sampling frequency) and attenuates frequencies greater
than or equal to 50% of the Nyquist frequency.
We will use an FIR Equiripple filter with these specifications:

 Passband attenuation 1 dB
 Stopband attenuation 80 dB
 A passband frequency 0.2 [Normalized (0 to 1)]
 A stopband frequency 0.5 [Normalized (0 to 1)]

Algorithm:
To implement this design, we will use the following specifications:

1. Select Lowpass from the dropdown menu under Response Type and Equiripple
under FIR Design Method. In general, when you change the Response Type or
Design Method, the filter parameters and Filter Display region update
automatically.
2. Select Specify order in the Filter Order area and enter 30.

Expt. 8 - 3
3. The FIR Equiripple filter has a Density Factor option which controls the density
of the frequency grid. Increasing the value creates a filter which more closely
approximates an ideal equiripple filter, but more time is required as the
computation increases. Leave this value at 20.
4. Select Normalized (0 to 1) in the Units pull down menu in the Frequency
Specifications area.
5. Enter 0.2 for wpass and 0.5 for wstop in the Frequency Specifications area.
6. Wpass and Wstop, in the Magnitude Specifications area are positive weights,
one per band, used during optimization in the FIR Equiripple filter. Leave these
values at 1.
7. After setting the design specifications, click the Design Filter button at the
bottom of the GUI to design the filter.

SAMPLE INPUTS:

1. fpass = 100Hz, fstop = 500Hz, F = 10000Hz , Ap(actual) = 0.7943, As(actual) = 0.3162

Expt. 8 - 4
2. fpass = 100Hz, fstop = 500Hz, F = 10000Hz , ApdB = 2dB, As = 10dB

3. fpass = 1150Hz, fstop = 2150Hz, F = 10000Hz , Ap(actual) = 0.7943, As(actual) = 0.2818


Lowpass

Expt. 8 - 5
Highpass

4. fpass = 1150Hz, fstop = 2150Hz, F = 10000Hz , Ap = 2dB, As =11dB


Lowpass

Expt. 8 - 6
Highpass

Expt. 8 - 7
Conclusion:

Additional links for more information:

https://www.mathworks.com/help/dsp/filter-design-and-analysis.html
https://www.mathworks.com/help/signal/examples/introduction-to-filter-
designer.html

Expt. 8 - 8

You might also like