DSP Lab Spring 23 Exp-14
DSP Lab Spring 23 Exp-14
(EL-3031)
LABORATORY MANUAL
(LAB # 14)
Student Name: ______________________________________________
____________________________________________________________________________________________________________________________________________________________
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
Lab # 14:Starting with DSP Kit and CCStudio
Learning Objectives
1) To Study about the DSK Kit along with its key features
2) To Study & Start Installation of CCSv3.1 and DSK drivers
3) To Study DSK Board Connection to PC.
4) To Study & Start Using Code Composer Studio Software.
Equipment Required
1. PC
2. Code Composer Studio
3. DSP Kit (DSKC6713)
1) Introduction to DSKC6713
The 6713 DSP Starter Kit (DSK) is an all-in-one evaluation platform for the TMS320C6713
Digital Signal Processor from Texas Instruments. It includes a target board that can be used as a
reference design for interfacing the DSP to common devices such as SDRAM, Flash and a codec
as well as a special introductory version of TI's flagship Code Composer Studio development
tools. An on-board JTAG emulator allows debug from Code Composer Studio through your PC's
USB port. This kit contains everything you need to get started with TI DSPs. It can also be used
with the full version of Code Composer Studio and an external JTAG emulator.
_____________________________________________________________________________________________
Page 2 of 26
DSP - Lab National University Roll No: __________
14
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
_____________________________________________________________________________________________
Page 3 of 26
DSP - Lab National University Roll No: __________
14
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
Support Variable sampling rates from 8 to96 kHz
Four connectors on the board provide input and output
o MIC IN for microphone input
o LINE IN for line input
o LINE OUT for line output
o HEADPHONE for a headphone output
DipSwitch/Leds
Four user dip switches on the DSK board can be read from a program and provides the user
with a feedback control interface. Four leds can be activated/deactivated from the program
Different Versions of Code Composer Studio and their compatibility with Windows
versions:
Code Composer Studio has its different versions updated according to the operating(OS)
systems. Every OS is not compaitable with every CCStudio version. So, before installing
CCStudio first check that your OS is supported by this version of CCStudio. Following are
the requirements for each version of CCStudio.
Hardware Requirements
Minimum Recommended
Memory 2GB 4GB
Disk space 400MB* 2GB
Processor 1.0GHz x86 compatible processor Dual core x86 compatible processor
_____________________________________________________________________________________________
Page 5 of 26
DSP - Lab National University Roll No: __________
14
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
Disk space listed depends on features selected during installation. 400MB is for a bare
minimal installation. Does not include temporary space required by the installer.
Note that the most important requirement is memory. At least 2GB of memory or more
memory is highly recommended.
Windows: XP SP3, Windows 7 (SP1 or later) and Windows 8.x is supported by all CCSv6
versions. Windows 10 is supported by CCS versions 6.1.3 and greater
Linux: details on the Linux distributions supported is available here
Hardware Requirements
Minimum Recommended
Memory 1GB 4GB
Disk space 300MB* 2GB
Processor 1.5GHz single core Dual core
Disk space listed depends on features selected during installation. Does not include temporary
space required by the installer.
Note that the most important requirement is memory. 2GB of memory or more memory is
highly recommended, it will run with 1GB but it will be slow.
Windows: XP and Windows 7. For Windows 7, both 32-bit and 64-bit versions are supported.
Linux: details on the Linux distributions supported is available here
Minimum Recommended
Memory 1GB 4GB
Disk space 350MB* 2GB
Processor 1.5GHz single core Dual core
_____________________________________________________________________________________________
Page 6 of 26
DSP - Lab National University Roll No: __________
14
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
Disk space listed depends on features selected during installation. Does not include temporary
space required by the installer.
Note that the most important requirement is memory. 2GB of memory or more memory is
highly recommended, it will run with 1GB but it will be slow.
Hardware Requirements
Minimum Recommended
Memory 512MB 2GB
Disk space 300MB* 1.5GB
Processor 1.5GHz 2GHz
Depends on features selected during installation. Does not include temporary space required
by the installer.
Before you install the DSK software, please make sure you are using Administrator privileges and
any virus checking software is turned off. The DSK board should not be plugged in at this point.
1. Insert the Code Composer Studio installation CD into the CD-ROM Drive or download the
CCStudiov3.1 from the TI website
http://processors.wiki.ti.com/index.php/Download_CCS
_____________________________________________________________________________________________
Page 7 of 26
DSP - Lab National University Roll No: __________
14
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
2. After Extracting the files (if downloaded zip file), run Launch.exe. Select the Install
Products option from the menu.
3. Following dialog box will appear. Install any components you need. To debug with the
DSK you must have
1) A copy of Code Composer Studio, 2) the target content package for your board and a
copy of the Flash Burn plug-in.
4. Users of the full Code Composer Studio package can skip the DSK Code Composer
installation and simply install the target content packages.
3. The installation procedure will create four icons on your desktop if you just install DSKC6713
contents:
1) 6713 DSK CCStudio v3.1
2) 6713 DSK Diagnostics Utility v3.1
3) CCStudio v3.1 setup
4) CCStudio v3.1
_____________________________________________________________________________________________
Page 8 of 26
DSP - Lab National University Roll No: __________
14
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
Connecting the DSK to Your PC
1. Connect the supplied USB cable to your PC or laptop. We recommend that anyone making
hardware modifications connect through a USB hub for safety.
2. If you plan to connect a microphone, speaker, or expansion card these must be plugged in
properly before you connect power to the DSK board.
3. Connect the included 5V power adapter brick to your AC power source using the AC power
cord.
4. Apply power to the DSK by connecting the power brick to the 5V input on the DSK.
5. When power is applied to the board the Power on Self-Test (POST) will run. LEDs 0-3 will
flash. When the POST is complete all LEDs blink on and off then stay on. At this point your DSK
is functional and you can now finish the USB driver install.
Make sure your DSK CD-ROM is installed in your CD-ROM drive. Now connect the DSK to
your PC using the included USB. After few seconds Windows will launch its "Add New
Hardware Wizard" and prompt for the location of the DSK drivers.
Follow the instructions on the screens and let Windows find the USB driver files “dsk6713.inf”
and “sdusb2em.sys” on the DSK CD-ROM. On XP systems Windows will find the drivers
automatically.
Testing Your Connection
If you want to test your DSK and USB connection you can launch the C6713 DSK Diagnostic
Utility from the icon on your desktop.
From the diagnostic utility, press the start button to run the diagnostics. In approximately 30
seconds all the on-screen test indicators should turn green.
To start Code Composer Studio, double click the 6713 DSK CCStudio icon on your desktop.
Running the DSK Tutorial
To run the tutorial, just click the help on toolbar and select tutorial. The detailed tutorial of CCS
will be launched. This tutorial covers almost all the features of CCS.
Debug Hints and Trouble Shooting
1. If installing on Windows XP and your PC is connected to the internet through a firewall the
USB install may take up to 15 minutes if you let it complete normally. The work-around for this
issue is to simply disconnect your network cable during the USB hardware install.
2. Make sure all of the Configuration Switches (SW3) are set in the off position. This configures
the DSK for the factory default settings of little-endian processor mode booting out of the on-
board Flash memory.
3. Some of the Help Files are links to Adobe Acrobat PDF files. If you intend to access these
files you must have Adobe Acrobat installed on your system.
4. If you want to verify a successful USB driver install, open your device manager by right
clicking on the My Computer icon on your desktop and selecting Properties --> HW --> Device
_____________________________________________________________________________________________
Page 9 of 26
DSP - Lab National University Roll No: __________
14
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
Manager. You should see a new class “SD USB Based Debug Tools” and one Spectrum Digital
TMS320C6713 DSK installed.
5. The BUSY LED above the USB connector comes on when power is applied to the DSK. Do
not launch Code Composer until the LED is off.
Error Messages
Many of the error messages below refer to USB enumeration issues. The following window will
appear when launching CCS or the Diagnostic Utility indicating the enumeration status.
1. Message:
Failed: Requires Win98, Win2K or Win XP. Problem: Your operating system does not support
USB.
2. Message:
Failed: USB device is NOT enumerated or plugged in. Problem: Windows cannot find the DSK.
Check power and USB Cable.
3. Message:
Failed: Load USB Application. Problem: Loader could not download the DSK emulation
application. The on-board emulation controller could be in a bad state. Cycle power on the
DSK.
4. Message:
Failed: USB Channel in use by another app.
Problem: Another application is using the DSK USB communication channel. Only one
application is allowed to communicate to the DSK over the USB channel at the same time. Check
for active applications using the Windows Task Manager if open application is not obvious.
5. Message:
Waiting for USB Enumeration.
Status: This is a status message which indicates that Code Composer Studio is waiting for
communication with the on-board JTAG emulator to be established. This should take less than 10
seconds. Do not hit the close button unless it is clear that something is wrong (the progress bar
runs forever).
Precautions:
1) Turn off the DSP kit when you are not using it or you are just coding.
2) Connect all the required devices with kit before turning it on.
3) Run the Code composer studio after turning on the Kit and observing Post.
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
requires specific parameters in order to communicate with the emulator and board setup. Each
emulator is communicated to differently and through a different I/O port. Each attached board has
a unique JTAG scan chain built of individual processors.
Code Composer Studio IDE Key Benefits
• Quick start with familiar tools and interfaces
• Easily manage large multi-user, multi-site and multi-processor projects
• Utilize fast code creation, optimization and debugging tools
• Maximize reuse and portability for faster code development
• Perform real-time analysis enabled by RTDX and DSP/BIOS technologies
Step 1: Go to desktop
Click on icon labeled “Setup CCStudio v3.1”
A window will open as shown below. Maximize it
_____________________________________________________________________________________________
Page 11 of 26
DSP - Lab National University Roll No: __________
14
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
Step 2:
Go to panel labeled “available factory board”, select “C6713DSK” and click “Add” button at
bottom
Step 3:
Desired platform will be added to left panel labeled “System configuration”.
Click “save and quit” button at bottom
You will be asked to start code composer on exit or not. Click “Yes”
_____________________________________________________________________________________________
Page 12 of 26
DSP - Lab National University Roll No: __________
14
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
_____________________________________________________________________________________________
Page 13 of 26
DSP - Lab National University Roll No: __________
14
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
Step 5:
To make a new project go to
Project new
Step 6:
A window with title of “Project creation” will appear. Enter project name and select target type as
TMS320c67xx.
_____________________________________________________________________________________________
Page 14 of 26
DSP - Lab National University Roll No: __________
14
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
Step 7:
Now observe changes in left panel as shown below. There will be an icon with title
“projectname.pjt”.
_____________________________________________________________________________________________
Page 15 of 26
DSP - Lab National University Roll No: __________
14
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
Step 8:
To create a new source file go to
File new source file
Step 9:
Write your desired code in file and save it with .c extension.
_____________________________________________________________________________________________
Page 16 of 26
DSP - Lab National University Roll No: __________
14
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
Step 10:
Copy the following files from any example present in installed directory to your project folder.
C6713dsk.cmd,c6713dskinit.c, vector_int.asm/vector_poll.asm,
rts6700.lib csl6713.lib, DSK6713.lib,
Add these files in your project. To add a file to project go to
Project add file to project.
Now your code composer window should appear as under
_____________________________________________________________________________________________
Page 17 of 26
DSP - Lab National University Roll No: __________
14
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
_____________________________________________________________________________________________
Page 18 of 26
DSP - Lab National University Roll No: __________
14
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
Step 11:
To add header files to your project, go to
Projectscan all file dependencies.
Step 12:
To configure CCS according to your processor, go to
Project build options
_____________________________________________________________________________________________
Page 19 of 26
DSP - Lab National University Roll No: __________
14
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
Give the path of the include folder in settings. Go to tool bar andthen
Project-> Build Options->Compiler->Include serach path
_____________________________________________________________________________________________
Page 20 of 26
DSP - Lab National University Roll No: __________
14
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
_____________________________________________________________________________________________
Page 21 of 26
DSP - Lab National University Roll No: __________
14
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
Step 12:
To build your project, go to
Project rebuild all
Step 13:
View window at bottom to check build results.
_____________________________________________________________________________________________
Page 22 of 26
DSP - Lab National University Roll No: __________
14
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
Step 14:
When your project is build successfully, *.out file of your project will be create. Load this file on
DSP Kit. To do this, go to
Fileload program
Step 15:
Select your *.out file to be loaded.
_____________________________________________________________________________________________
Page 23 of 26
DSP - Lab National University Roll No: __________
14
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
Step 16:
To run your project on DSP Kit, go to
Debug Run
Exercise:
1) Implement the sine generation code on DSK6713 board.
2) Briefly discuss the steps how you created the project and implemented it.
3) Make slight changes in the code and observe the outcomes. Briefly discuss each
line of code.
4) Paste the code and output results here.
5) Practice these steps for different examples stored in CCS directory.
_____________________________________________________________________________________________
Page 24 of 26
DSP - Lab National University Roll No: __________
14
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
Student's feedback:Purpose of feedback is to know the strengths and weaknesses of the
systemfor future improvements. This feedback is for the 'current lab session'. Circle your choice:
[-3 = Extremely Poor, -2 = Very Poor, -1 = Poor, 0 = Average, 1 = Good, 2 = Very Good, 3 = Excellent]:
The following table should describe your experience with:
S# Field Rating Describe in words if required
1 Overall Session -
-2 -1 0 1 2 3
3
2 Lab Instructor -
-2 -1 0 1 2 3
3
3 Lab Staff -
-2 -1 0 1 2 3
3
4 Equipment -
-2 -1 0 1 2 3
3
5 Atmosphere -
-2 -1 0 1 2 3
3
Student'sSignature: _________________________________
AWARDED
Correctness
Conclusion
Originality
of results
Initiative
Neatness
MARKS
Attitude
TOTAL
TOTAL 10 10 10 20 20 30 100
EARNED
_____________________________________________________________________________________________
Page 25 of 26
DSP - Lab National University Roll No: __________
14
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
Assessment Rubric
LLO Statement Assessment Exemplary Proficient Developing Beginning Worst
Method (20%) (20%) (20%) (20%) Performance
(20%)
2 Design of finite- Practical Skill Able to attempt Able to attempt Able to attempt Able to attempt Able to attempt
impulse response Observation complete lab with 80% of the lab 60% of the lab 40% of the lab 20% of the lab
(FIR) and during proper tasks tasks tasks tasks
infinite-impulse experimentati labeling/explanatio
response (IIR) on & Lab n of results and
digital filters in Reports proper commenting
MATLAB. of the code
_____________________________________________________________________________________________
Page 26 of 26