DIGITAL SIGNAL PROCESSING
Signal processing is a method of extracting information from the signal which in turn
depends on the type of signal and the nature of information it carries.
Digital signal processing is concerned with the digital representation of the signals and
the use of digital processors to analyse, modify or extract information from the signals.
Most signals in nature in analog form mean that they are varying with time, and represent
the variations of physical quantities such as sound waves. The specific mean for
processing a digital signal may be, for example, to remove interference of noise from the
signal, to obtain the spectrum of the data or to transform the signal from the signal into
more suitable form.
Block Diagram of Real Time DSP System
Advantages Of Digital Signal Processing
1. Guaranteed Accuracy: Accuracy is only determined by the number of bits used.
2. Perfect Reproducibility: Identical performance from unit to unit is obtained since
there is no variation due to component tolerances.
3. Greater Flexibility: DSP system can be programmed and reprogrammed to perform a
variety of functions, without modifying the hardware.
4. Superior Performance: DSP can be used to perform functions not possible with
analog signal processing.
DSP Systems and Applications
DSP systems are often embedded in larger systems to perform specialized DSP
operations thus allowing the overall systems to handle the general purpose tasks. For eg,
a DSP processor is a modem, used for data transmission in the embedded DSP system of
a computer. Often this type of a DSP system runs only one application and is not
programmed by the end user.
The TMS320 family :
SINE WAVE GENERATION
Sine wave generation consists of following steps:
1. Creating a new project:
• Install the Code Composer Studio program in the C:\CCStudio_v3.10.
• Create a folder called Sine wave in C:\CCStudio_v3.10\myprojects folder.
• Copy the contents of C:\CCStudio_v3.10\programmes\waveform
generator\sinewave folder to this new folder.
• From the project menu, choose New.
• In the Project Name field , type sinewave .
• In the location field, browse to the working folder you created in step 2.
• In the Project type field, select Executable(.out).
• In the target field , select the target configuration, and click Finish.
The CCStudio program creates a project file called sinewave.pjt
2. Creating a Configuration File:
• Choose File/New/DSP/BIOS Configuration.
• Select the template for your DSP target and click OK.
• You see the Configuration window. The left side of window lists categories of
modules.
• You can see a list of modules by clicking the plus symbol next to the category.
You can see a module’s objects by clicking the plus symbol to the left of a
module manager. The right side of the window shows the properties of the
selected manager or object.
• Click the plus sign next to the Instrumentation category to display its list of
modules.
• Choose File/Save. Move to your working folder and save this configuration
file with a file name of sinewave.cdb. Saving this configuration generates the
following files.
• Sinewave.cdb stores configuration settings.
• Sinewavecfg.cmd linker command file.
• Sinewavecfg.h
• Sinewavecfg.s62 assembly language source file for DSP/BIOS settings.
• Sinewavecfg.h62 assembly language header file included by hellocfg.s62.
3. Adding files to a project:
• Choose Project Add Files to project. Select sinewave.c from the working
folder you created and click Open.
• Choose Project, Add files to project. Go to the compiler library
folder(C:\CCStudio_v3.10\C6000\dsk6713\lib)
• Select Object and Library Files in the Files of typebox. Select the
dsk6713bsl.lib file for the target you are configured for and click Open. This
library provides board support for the target DSP.
• Choose Project, then Add Files to Project. Select configuration file
(.cdb) I the files of typebox. Select the .cdb file and click Open.
• In the project view window, right click on sinewave.pjt and select
Scan All File Dependencies.
4. Building and Running the program:
• Choose Project, Rebuild All. The program recompiles , reassembles and
relinks all the files in the project. The Build frame at the bottom of the
window , displays the messages about this process.
• By default, th .out file is built into a debug directory located under your
current project folder. You can change this location by selecting a
different one from toolbar.
5. Enabling RTDX Channel:
• Choose Tools, RTDX, Configure, Enable RTDX.
• Choose File, Load Program, Select the program you just rebuilt, sinewave.out and
click Open.CCStudio loads the program onto the target DSP and opens a
disassembly window that shows the disassembled instructions that makeup the
program.
• Choose debug, Go Main to begin execution from the main function.
• Choose debug, then Run. The text “sinewave example started” should appear in
the stdout tab of the message window on the bottom of the CCStudio screen.
• Go To program, then DSPlab2.0, then realtime option.
• Click on Test On option and watch the waveform.
• Choose Debug, Halt to quit running the program.