You are on page 1of 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 unified environment. 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 Cinterpretive 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

Procedure to work on Code Composer Studio


1. To create the New Project Project New (File Name.pjt, Ex:- Vectors.pjt) 2. To Create a Source file FileNewType the code (Save and give filename Ex:- sum.c) 3. To add source files to project ProjectAdd files to projectsum.c 4. To add rts.lib file &Hello.cmd ProjectAdd 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 CPU 6. To Compile Project Compile 7. To Rebuild Projectrebuild, 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.out 9. To execute project: DebugRun

a) Convolution Sum Linear Convolution involves the following operations 1. Folding 2. Multiplication 3. Addition 4. Shifting These operations can be represented by a mathematical expression as follows. ( ) ( ) ( ) ( ) ( )

Where x[n ]=input signal samples

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.asm 4. 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 the shortcut icon on the left side of program window. 8. Compile the program using the project-compile pull down menu or by clicking the shortcut icon on the left side of program window. 9. Build the program using the project-build pull down menu or by clicking the shortcut icon on the left side of program window. 10. Load the program(lconv.out) in program memory of DSP chip using the file-load program pull down menu. 11. To view output graphically Select view - graph- time and frequency Configure the graphical window values Start address -- y DSP 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:

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

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:-

You might also like