Professional Documents
Culture Documents
Intro To DSP PDF
Intro To DSP PDF
Date:
Aim:
Digital signal processing (DSP) is a rapidly growing field within electrical and
computer engineering. Analog processing is achieved using components such as
resistors, capacitors, and inductors, whereas digital processing uses a programmable
microprocessor. The main advantage of digital processing is that applications can be
changed, corrected, or updated very easily by reprogramming the microprocessor,
unlike analog systems, which would require components, such as resistors or
capacitors, to be physically changed.
Additionally, DSPs also reduce noise, power consumption, and cost, when
compared with analog systems.
Digital signal processors are used for a wide range of applications, from
communications and controls to speech and image processing. They're found in
cellular phones, fax/modems, disk drives, radio, GPS (global positioning system)
receivers, portable medical equipment, and digital music players.
DSK SUPPORT TOOLS
2. An IBM-compatible PC. The DSK board connects to the parallel port of the PC
through the DB25 cable included with the DSK package.
3. An oscilloscope, signal generator/microphone, and speakers.
DSK BOARD
The DSK package is powerful, yet relatively inexpensive, with the necessary
hardware and software support tools for real-time signal processing. It is a complete
DSP system. The DSK board includes:
1. The C6711 floating-point digital signal processor and a 16-bit codec AD535 for
input and output.
2. A 4-MHz clock onboard the DSK connects to this codec to provide a fixed
sampling rate of 8 kHz.
3. A daughter card expansion is also provided on the DSK board.
4. 16MB (megabytes) of synchronous dynamic RAM (SDRAM) and 128kB
(kilobytes) of flash ROM.
5. Two connectors on the board provide input and output and are labeled IN (J7) and
OUT (J6).
6. 150 MHz onboard clock. Also onboard the DSK are voltage regulators that
provide 1.8V for the C6711 core and 3.3 V for its memory and peripherals.
TMS320C6711 DIGITAL SIGNAL PROCESSOR
Image of TI TMS320C6711
CODE COMPOSER STUDIO:
PROGRAMMING LANGUAGES:
Assembly language was once the most commonly used programming language
for DSP chips (such as TI’s TMS320 series) and microprocessors (such as Motorola’s
68MC11 series). Coding in assembly forces the programmer to manage CPU core
registers (located on the DSP chip) and to schedule events in the CPU core. It is the most
time consuming way to program, but it is the only way to fully optimize a program.
Assembly language is specific to a given architecture and is primarily used to schedule
time-critical and memory-critical parts of algorithms.
The preferred way to code algorithms is to code them in C. Coding in C requires a
compiler that will convert C code to the assembly code of a given DSP instruction set. C
compilers are very common, so this is not a limitation.
In fact, it is an advantage, because C coded algorithms may be implemented on a
variety of platforms (provided there is a C compiler for a given architecture and
instruction set).
Finally, a hybrid between assembly language and C exists within CCS. It is called
linear assembly code. Linear assembly looks much like assembly language code, but it
allows for symbolic names and does not require the programmer to specify delay slots
and CPU core registers on the DSP. Its advantage over C code is that it uses the DSP
more efficiently, and its advantage over assembly code is that it does not require the
programmer to manage the CPU core registers.
USEFUL TYPES OF FILES
You will be working with a number of files with different extensions. They include:
1. file.pjt: to create and build a project named file.
2. file.c: C source program.
3. file.asm: assembly source program created by the user, by the C compiler, or by
the linear optimizer.
4. file.sa: linear assembly source program. The linear optimizer uses file.sa as input
to produce an assembly program file.asm.
5. file.h: header support file.
6. file.lib: library file, such as the run-time support library file rts6701.lib.
7. file.cmd: linker command file that maps sections to memory.
8. file.obj: object file created by the assembler.
9. file.out: executable file created by the linker to be loaded and run on the
processor.
The Embedded Target for TI C6000 DSP for Texas Instruments DSP lets you
use Real-Time Workshop to generate, target, and execute Simulink models on the
Texas Instruments (TI) C6711 DSP Starter Kit (C6711 DSK). In combination with the
C6711 DSK, your Embedded Target for TI C6000 DSP software is the ideal resource
for rapidly prototyping and developing embedded systems applications for the TI
C6711 Digital Signal Processor. The Embedded Target for TI C6000 DSP software
focuses on developing real-time digital signal processing (DSP) applications for the
C6711 DSK.
Building the Audio Reverberation Model
To build the model for audio reverberation, follow these steps:
1. Open Simulink.
2. Create a new model by selecting File -> New -> Model from the Simulink menu.
3. Use Simulink blocks to create the following model.
Adding C6711 DSK Blocks to Your Model
So that you can send signals to your C6711 DSK and get signals back, TI C6000 includes a
block library that contains five blocks designed to work with the codec and LEDs on your
C6711 DSK:
Input block (C6711 DSK ADC)
Output block (C6711 DSK DAC)
Light emitting diode block (C6711 DSK LED)
DIP switch block (C6711 DIP Switch)
Reset block (Reset C6711 DSK)
Type c6711dsklib at the MATLAB prompt to bring up this window showing the library
contents.
To configure the Embedded Target for TI C6000 DSP blocks in your model, follow
these steps:
1. Click the C6711 DSK ADC block to select it.
2. Select Block Parameters from the Simulink Edit menu.
3. Set the following parameters for the block:
Select the +20 dB mic gain boost check box
For Output data type, select Double from the list
Set Scaling to Normalize
Set Source gain to 0.0
Enter 64 for Samples per frame
4. For ADC source, select Mic In/ DSP Sine Wave With Fs=8 KHZ.
5. Click OK to close the Block Parameters: ADC dialog.
6. Now set the options for the C6711 DSK DAC block.
Set Scaling to Normalize
For DAC attenuation, enter 0.0
Set Overflow mode to Saturate.
7. Click OK to close the dialog.
Now we have completed the model. Now configure the Real-Time Workshop
simulation options to build and download your new model to your C6711 DSK.
The following sections describe how to build and run your real-time digital
signal processing model on your C6711 DSK. Running the model on the target starts
with configuring and building your model from the Simulation Parameters dialog in
Simulink.
Setting Simulink Simulation Parameters
After you have designed and implemented your digital signal processing model in
Simulink, complete the following steps to set the simulation parameters for the model:
1. Open the Simulation Parameters dialog and set the appropriate options on the
Solver pane for your model and for the Embedded Target for TI C6000 DSP.
Set Start time to 0.0 and Stop time to inf (model runs without stopping)
Under Solver options, select the fixed-step and discrete settings from the lists
Set the Fixed step size to auto and select Single Tasking for the Mode
Ignore the Workspace I/O, Diagnostics, and Advanced panes in the Simulation
Parameters dialog. The default settings are correct for your new model.
Result:
Hence the details of TMS320C6711 DSP chip and supporting
architecture (DSK) is studied.