Digital Signal Processing Reference
In-Depth Information
When CCS “built” your project, it compiled the C-coded source files
and header files into assembly code, using a built-in compiler. Then
it assembled the assembly code into a COFF (common object file
format) file that contains the program instructions, organized into
modules. Finally, the linker organized these modules and the run-
time support library ( rts6701.lib ) into memory locations to create an
executable.out file. This executable file can be downloaded onto the
DSK. When this executable file is loaded onto the DSK, the assem-
bled program instructions, global variables, and run-time support
libraries are loaded to their linker-specified memory locations.
At this point, you should have the following files established on
your c: drive:
C6xdsk.h, C6xdskinit.c, C6xdskinit.h, c6xinterrupts.h, vectors.asm,
vectors_11.asm, C6xdsk.cmd, rts6701.lib, Amplitude.gel.
c:\ti\myprojects\Sine_gen {Sine_ gen.pjt, Sine_ gen.c}
c:\ti\myprojects\Sine_gen\Debug\Sine_gen.out
To test this newly built program Sine_gen.out on the DSK, you must first
load the program onto the board. But, before a new program is loaded onto
the board, it is good practice to reset the CPU. To reset the CPU:
Click on the Debug pull-down menu and select Reset CPU .
Then, to load the program onto the DSK, click on the File pull-down
menu and select Load Program .
In the new window that appears, double click on the folder Debug ,
select the Sine_gen.out file, and click on Open . This will download
the executable file Sine_gen.out onto the DSK. A new window will
appear within CCS entitled Disassembly , which contains the assem-
bled version of your program. Ignore this window for now.
Before you run this program, make sure that the cable between the 1/8-
inch headphone jack on the DSK board (the J6 connector) and the oscilloscope
is connected, and make sure that the oscilloscope is turned on.
In CCS, select the Debug pull-down menu and then select Run , or
just simply click on the top running man on the left side toolbar.
Verify a 1 kHz sine wave of amplitude approximately 1.75 volts peak
to peak on the oscilloscope. Once you have verified the signal, dis-
connect the oscilloscope from the DSK and attach a pair of speakers
or headphones to the DSK. You should hear a 1 kHz pure tone .
After you have completed both of these tasks, either click on the
icon of the blue running man with a red X on it or go to the Debug
pull-down menu to select Halt .
Search WWH ::




Custom Search