


















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



















OUTLINEOUTLINE
-^
-^
-^
-^
-^
-^
TMS320C6713 DSK diagramTMS320C
DSK diagram
C6713 DSK Key FeaturesC
DSK Key Features
-^
-^
-^
-^
-^
-^
AIC23 stereo codecAIC
stereo codec
OUTLINEOUTLINE
-^
-^
-^
-^
-^
-^
Useful Types of FilesUseful
Types of Files
-^
file.pjt: to create and build a project named file
-^
file.c: C source program
-^
file.asm: assembly source program created by the user,by the C compiler, or by the linear optimizer
y^
p
y^
p
-^
file.h: header support file
-^
file.lib: library file, such as the run-time support library filerts6700.librts6700.lib
-^
file.cmd: linker command file that maps sections tomemory
-^
file obj: object file created by the assemblerfile.obj: object file created by the assembler
-^
file.out: executable file created by the linker to be loadedand run on the C6713 processor
-^
file cdb: configuration file when using DSP/BIOS
-^
file.cdb: configuration file when using DSP/BIOS
Useful directories within
c:
\ti
Useful
directories within
c:
\ti
myprojects
: a folder supplied only for your
yp
j^
pp
y
y
projects.
-^
bin
: contains many utilities.
docs
: contains documentation and manuals.
c6000\cgtools
: contains code generation tools.
c6000\bios
: contains support files for DSP/BIOS.
examples
: contains examples included with
tutorial
: contains additional examples supplied
with CCSwith CCS.
Hardware SetupHardware
Setup
Plug in the microphone and headset properly
g
p
p
p
y
onto DSK.
-^
Power cable MUST be plugged into AC sourceprior to plugging the connector in to DSKprior to plugging the connector in to DSK.
-^
When power is applied to the board, the PowerOn Self Test (POST) will run. LEDs 0-3 willfl
h Wh
th
POST i
l t
ll LED
flash. When the POST is complete, all LEDsblink on and off then stay on. During the testingof the codec, a 1-kHz tone is generated for 1sec.
-^
Connect the USB cable between PC and DSK.
Starting CCSStarting
CCS
-^
Double click the “C6713 DSK CCS” icon on your desktop.
-^
A USB enumeration process takes place. Then CCS will be openedand the LEDs will turn off.
-^
Press GEL->Check DSK->Quick Test. The Quick Test can be used
Q
Q
for confirmation of correct operation and installation.
-^
If four dip switches (0, 1, 2, 3) are all in the up position, the followingmessage will be displayed:
Switches:
^15
Switches:
^15
Board Revision:
^1
CPLD Revision:
^2
Load and Modify A Sample ProjectLoad
and Modify A Sample Project
-^
Select Project->Open to open thesine8 LED pjt file under your groupsine8_LED.pjt file under your groupdirectory\sine8_LED.
-^
Some support files are listed in the “projectview” window on the left side.
,^ dsk6713bsl.lib
, and
l6713 lib csl6713.lib
-^
Modify sine8_LED.c as you wish.
-^
Select Project->Rebuild All to generate thenew sine8_LED.out file.
-^
Select File->Load Program to load the newsine8_LED.out file into DSK.
-^
Select Debug->Run.
-^
Select Debug->Halt.Se ect
ebug
a t
Create Your Own ProjectCreate
Your Own Project
Select Project->New to open your own project.
j^
p
y
p
j
Select Project->Add Files to Project to addsupport files to your project, such as .c, .cmd,asm
lib and cdb
.asm, .lib, and .cdb
-^
Note that you don’t have to manually include theheader file, ex: .h
-^
Select Project->Scan All File Dependencies.This adds/includes the header files (.h) alongwith several board and chip support header files
t^
se e a boa d a d c
p suppo t
eade
es
included with CCS.
-^
Build, Load, and Run your project as illustratedpreviouslypreviously.
Debugging ToolsDebugging
Tools
Toggle breakpoints
gg
p
Select Debug->Run. The program executes upto (excluding) the line of code with the set
g)
breakpoint. A yellow arrow will also point to thatline of code.
-^
Single-step using F8 Trace the variable you are
-^
Single-step using F8. Trace the variable you areinterested in step by step using Watch Window,which we will explain later on.
Monitoring the Watch WindowMonitoring
the Watch Window
-^
The Watch window allows you to change the value
y
g
of a parameter or to monitor a variable in a real-time manner.
-^
Verify that the processor is still running. YouVerify that the processor is still running. Youshould see the indicator “DSP RUNNING” at thebottom left of CCS.
-^
Select View >Quick Watch
-^
Select View->Quick Watch
-^
Enter the variable which you are interested in andpress Add to Watch.
-^
Change the value of variable in the Watch Windowand see the difference. Ex: you can adjust the gainin the sample project sine8 LED.pjt.
p
p
j^
_
pj