Sunteți pe pagina 1din 4

ASSISGNMENT NO: 2

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 study Interpolation and Decimation Theory:INTRODUCTION The digital signal processing structures discussed so far belong to the class of single-rate systems as the sampling rate at the input and the output and all internal nodes are the same. There are applications where it is necessary and often convenient to have unequal rates of sampling at various parts of the system including the input and the output. In this laboratory exercise you will investigate first using MATLAB the properties of the up-sampler and the down-sampler, the two basic components of the multirate system. You will then investigate their use in designing more complex systems, such as interpolators and decimators, and filter banks. BACKGROUND REVIEW 1. The up-sampler, shown in Figure 1, is employed in the increase of the sampling rate of a sequence [ ] by an integer factor L > 1. It inserts L-1 equidistant zero-valued samples between each consecutive pair of samples of [ ] to develop an output sequence [ ] given by [ ] [ ] {

[ ]

[ ]

Figure 1. Representation of an up-sampler The up-sampler is a linear but time-varying discrete time system. In the output relation is given by domain, its input(2)

Where denote, respectively,the the above equation becomes ( ) ( )

transforms of [ ]and

[ ]. For z =

2. The down-sampler shown in Figure 2, is employed in the decrease of the sampling rate of a sequence [ ] by an integer factor M . It removes M 1 in between samples to generate an output sequence [ ] according to the relation [ ] [ ] [ ] [ ]

Figure 2 Representation of a down-sampler The down-sampler is a linear but time-varying discrete-time system. In z domain its i/o relation Is given by (4) Where X(z) and Y(z) denote, resp, the z transform of x[n] and Y[n]. For becomes the above Eq.

( ) (5) It fallows from Eq. 5 that aliasing due to factor of M down-of-sampling is absent if and only if the signal x[n] is bandlimited to /M. 3.cascade of factor of M down sampler with a factor of up-sampler (Fig. 3) interchangable with no change in i/o relation if and only if M and L are relatively prime,That is, M and L do not have a common factor that is an integer k> 1

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

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

S-ar putea să vă placă și