Documente Academic
Documente Profesional
Documente Cultură
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)
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
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:-