Docsity

DSK Introduction - Digital Signal Processing I | ECE 161B, Study notes of Digital Signal Processing

Partial preview of the text

Download DSK Introduction - Digital Signal Processing I | ECE 161B and more Study notes Digital Signal Processing in PDF only on Docsity!

TMS320C6713 DSKTMS320C

DSK

IntroductionIntroduction

ECE 161B LAB

Winter 2010Winter 2010

UCSD

OUTLINEOUTLINE

-^

TMS320C6713 DSK boardTMS320C6713 DSK board

-^

Code Composer Studio (CCS)G tti

St

t d

ith CCS

-^

Getting Started with CCS

-^

Debugging Tools

-^

LAB Contents

-^

ReferencesReferences

TMS320C6713 DSK diagramTMS320C

DSK diagram

C6713 DSK Key FeaturesC

DSK Key Features

-^

C6713 DSP Starter Kit (DSK) is a low-C6713 DSP Starter Kit (DSK) is a lowcost standalone development platformusing TI C6713 DSPusing TI C6713 DSP.

-^

A TI C6713 DSP operating at 225MHzA

AIC

t^

d

-^

An AIC23 stereo codec

-^

8 MB synchronous DRAM (SDRAM)

-^

512 KB flash memory

-^

4 user accessible LEDs and DIP switches4 user accessible LEDs and DIP switches

AIC23 stereo codecAIC

stereo codec

OUTLINEOUTLINE

-^

TMS320C6713 DSK boardTMS320C6713 DSK board

-^

Code Composer Studio (CCS)G tti

St

t d

ith CCS

-^

Getting Started with CCS

-^

Debugging Tools

-^

LAB Contents

-^

ReferencesReferences

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

CCSCCS.

•^

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.

  • C6713dskinit c and C6713dskinit h• C6713dskinit.c and C6713dskinit.h• C6713dsk.cmd• Vectors_intr.asm or Vectors_poll.asm•^ rts6700.lib

,^ 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

  • pauses execution of program• right click on the line you want to set up abreak point select toggle breakpointbreak point, select toggle breakpoint.

•^

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