Assignment No 3 IIR Filter

Embed Size (px)

Citation preview

  • 7/28/2019 Assignment No 3 IIR Filter

    1/4

    ASSISGNMENT NO : 3

    Name:-

    Roll No:-

    Subject:-Advanced Digital Signal Processing

    Class :- M.E.(Signal Processing)

    Date of Conduction:-

    Date of Completion:-

    Signature of Staff Incharge:-

    _____________________________________________________________________________

    Aim:- To design IIR filter with given specification using TMS320C6713 Digital SignalProcessing Starter Kit.

    INTRODUCTION TO CODE COMPOSER STUDIO

    Code composer is the DSP industry`s first fully integrated development environment(IDE) withDSP-specific functionality. With a familiar environment like MS-based C++TM, Code

    Composer lets you edit, build, debug, profile and manage projects from a single unified

    environment. Other unique features include graphical signal analysis, injection/extraction of datasignals via file I/O, multi-processor debugging, automated testing and customization via a C-

    interpretive scripting language and much more.

    CODE COMPOSER FEATURES INCLUDE:

    IDE Debug IDE Advanced watch windows Integrated Editor File I/O, Probe Points and graphical algorithm scope probes Advanced graphical signal analysis Interactive profiling Automated testing and customization via scripting

    Visual Project management system Compile in the background while editing and debugging Multi-processor debugging Help on target DSP

  • 7/28/2019 Assignment No 3 IIR Filter

    2/4

    Procedure to work on Code Composer Studio

    1. To create the New ProjectProject New (File Name.pjt, Ex:- Vectors.pjt)

    2. To Create a Source fileFileNewType the code (Save and give filename Ex:- sum.c)

    3. To add source files to projectProjectAdd files to projectsum.c

    4. To add rts.lib file &Hello.cmdProjectAdd files to projectrts6700.lib

    Library Files:rts6700.lib (Path:c:\ti\c6000\cgtools\lib\rts6700.lib)

    ProjectAdd files to projecthello.cmd

    CMD file-Which is common for all nonreal time programs.

    (Path :c\ti\tutorial\6711\hello1\hello.cmd)Note:- Select Linker command file(*.cmd)in type of files

    5. Reset CPU6. To Compile

    ProjectCompile

    7. To RebuildProjectrebuild,

    Which will create the final.out executable file(Ex:-Vectors.out)

    8. Procedure to Load and Run program:Load the program to DSK: File Load program Vectors.out9. To execute project:

    DebugRun

    APPRTUS REQUIRED:

    SNO Apparatus used Quantity

    1 TMS320C6713 DSK

    Board

    01

    2 +5V Universal PowerSupply

    01

    3 AC Power Cord 01

    4 USB Cable 01

    5 Code Composer Studio

    Version 3.1

    01

  • 7/28/2019 Assignment No 3 IIR Filter

    3/4

    BLOCK DIAGRAM:

    THEORY:GENERAL CONSIDERATIONS:

    In the design of frequency Selective filters, the desired filter characteristics are specifiedin the frequency domain in terms of the desired magnitude and phase response of the filter. In the

    filter design process, we determine the coefficients of a causal IIR filter that closely

    approximates the desired frequency response specifications. An Infinite impulse response (IIR)

    filter possesses an output response to an impulse which is of an infinite duration. The impulseresponse is "infinite" since there is feedback in the filter, that is if you put in an impulse,then its

    output must produced for infinite duration of time.

    In this part, you will design an IIR filter with J-DSP. The filter will be designed using fourdifferent IIR methods (Butterworth, Chebychev I, Chebychev II and Elliptic) so that results of

    the 4 different methods can be compared. The specifications for the filter are shown below.

    Filter Type = Low-pass

    Cutoff frequencies: p1 = 0.4 and s1 = 0.6

    Tolerance in pass-band = 1.0dB

    Tolerance (rejection) in stop-band = -45.0dB

    The design can be done using the IIRblock under the filter blocks menu in J-DSP. This block

    will automatically calculate the filter coefficients based on the filter specifications provided,

    using a bilinear transformation for any of the four design methods mentioned above. Attach the

    output of the IIRblock to a Freq-Respblock to get a plot of the filter's frequency response or toa PZ-Plotblock to see a plot of its poles and zeros, or both through a junction block. Note that

  • 7/28/2019 Assignment No 3 IIR Filter

    4/4

    the IIRblock will calculate filters with a maximum of 10 filter coefficients. Enter the cutoff

    frequencies into the IIRblock as fractions of the sampling frequency. For p1=0.4 simply enter

    0.4.

    For each of the four filter designs, do the following:1. Plot the filter's frequency response.

    2. Create a pole-zero plot of the filter.3. Note the order of the filter.4. Examine the filter's frequency response in the pass-band and in the stop-band.

    5. Observe the phase response of each design.

    Design the filter using each of the following four methods.

    1. Design an IIR Butterworth filter according to the given specifications.

    2. Redesign the filter using the Chebyshev I method.

    3. Repeat the process using a Chebyshev II filter. Plot the frequency response on a dB scale.4. Finally, design using an Elliptic filter. Observe its frequency response in the pass-

    band on a linear scale and its response in the stop-band on a dB scale

    RESULT :- Using TMS320C673 DSK and Code Composer Studio V 3.1 IIR filter is designedand waveforms are verified.

    PRECAUTIONS:-

    1. Perform System Diagnostics before starting the practical2. Check all the connection carefully.

    CONCLUSION: