assignment no 1 linear convolution

Upload: fmail667

Post on 03-Apr-2018

218 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/28/2019 Assignment No 1 Linear Convolution

    1/5

    ASSISGNMENT NO: 1

    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 implement the following applications of DSP.

    Theory:-

    INTRODUCTION TO CODE COMPOSER STUDIO

    Code composer is the DSP industry`s first fully integrated development environment(IDE) with

    DSP-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 unifiedenvironment. Other unique features include graphical signal analysis, injection/extraction of data

    signals 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 1 Linear Convolution

    2/5

    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

    a) Convolution Sum

    Linear Convolution involves the following operations

    1. Folding 2. Multiplication 3. Addition 4. ShiftingThese operations can be represented by a mathematical expression as follows.

    () () () () ()

    Where

    x[n ]=input signal samples

  • 7/28/2019 Assignment No 1 Linear Convolution

    3/5

    h [n]= impulse response coefficient.

    y[n]= convolution output

    n= No. of input samples

    h= No. of impulse response coefficient.

    Algorithm:-

    1. Open code composer studio, make sure the DSP kit turned on.2. Start new project using project new pull down menu, save it in a separate

    directory(c:\ti\my projects) with name lconv.pjt

    3. Add the source file conv.asm4. To the project using project -> add file to project pull down menu.5. Add the linker command file hello.cmd

    (path: c:\ti\tutorial\dsk6711\hello1\hello.cmd)

    6. Add the run time support library file rts6700.lib( path : c:\ti\c6000\cgtools\lib\rts6700.lib)

    7.

    Compile the program using the project-compile pull down menu or by clicking theshortcut icon on the left side of program window.

    8. Compile the program using the project-compile pull down menu or by clicking theshortcut icon on the left side of program window.

    9. Build the program using the project-build pull down menu or by clicking theshortcut icon on the left side of program window.

    10.Load the program(lconv.out) in program memory of DSP chip using the file-loadprogram pull down menu.

    11.To view output graphicallySelect view - graph- time and frequency

    Configure the graphical window values

    Start address -- yDSP data type - 32- bit signed integer.

    Problem statement:

    To calculate convolution sum for following sequences. And implement the same using

    TMS320C6711 processor.

    1)X[n]={1 2 3 4 }

    H[n]={1 2 3 4 }

    Solution:

  • 7/28/2019 Assignment No 1 Linear Convolution

    4/5

    2)X[n]={1 2 3 4 5 6}

    H[n]={1 2 3 4 5 6}

    Solution:

  • 7/28/2019 Assignment No 1 Linear Convolution

    5/5

    3) X[n]={ 2 3 4 5 6 7 8 5 4 2}

    H[n]={1 2 3 4 5 6 7 8 4 4}

    Conclusion:-