You are on page 1of 12

Vietnam National University

Ho Chi Minh City University of Technology

Digital Signal Processing

LAB 1 REPORT
Software initialization and first LED demonstrations
Using TMS320C5515 eZDSPTM USB Stick

Instructor: Assoc. Prof. Dr. Thuong Le -Tien


Teaching Asisstants: Chi Hieu, Quoc Huy

Group 7:
Dat Nguyen-Si ID: ILI11006 In-class ID: 2
Trung Le ID: 41103857 In-class ID: 3

February, 27th 2014


Table of Contents
Table of Contents...........................................................1 February, 27th 2014

Abstract..........................................................................2

Introduction....................................................................3

Code Composer Studio Installation steps.......................4

Hardware configuration steps........................................5

LEDs display demonstrations..........................................6

Conclusion....................................................................10

References....................................................................11

1 Lab 1 report
Abstract
This report outlines steps to get started with February, 27th 2014
TMS320C5515 eZDSPTM USB Stick
Development Tool, including Code Composer
Studio installation and hardware
configuration. This report also presents three
brief demonstrations using 4 LEDs of the
board.

2 Lab 1 report
Introduction
TM
TMS320C5515 eZDSP February, 27th Stick
USB 2014
Development Tool is a small form
factor, very low cost USB-
powered DSP development tool
which includes all the hardware
and software needed to evaluate
the industry’s lowest power 16-
bit DSP : TMS320C5515. C5515
provides a foundation for a range
of signal processing applications,
including voice recorder, musical
instruments, portable medical
solutions and other consumer
electronics in industrial and
3 security applications. [1]Lab 1 report
TMS320C5515 eZdsp™ USB Stick Development Tool

In this subject, we use this tool to study various DSP applications. First of all, we
need to get familiar with related materials including CCS and example library
provided with the tool.
Code Composer Studio Installation steps
1. Insert the CCSv4 DVD provided with the tool into computer’s disk drive and wait
for the auto-run to start. Alternatively, we can download CCS on www.ti.com to
February, 27th 2014
get the latest version, and then double-click on the setup file. We used the
second method.
2. The installation wizard window pops up. Follow the instructions to go through
the installation steps.
3. Plug the TMS320C5515 eZDSPTM USB Stick into the USB port on laptop.
Window recognizes the hardware and completes the remaining hardware
installation automatically.
4. When installation has finished, double-click the shortcut icon on desktop created
by the wizard. Precise the workspace we wish to store all the project files.
5. Inside the program, go to Help -> Code Composer Studio Licensing Information ->
choose Free license.

4 Lab 1 report
Hardware configuration steps
1. Inside the program, go to View -> Target configurations -> February, onth 2014
right click27 User
Defined -> New Target Configuration -> specify name and location -> Finish.
2. Double-click on the target icon we have just created. Specify the
corresponding setups for TMS320C5515 eZDSPTM USB Stick -> Save.

5 Lab 1 report

Hardware configuration for TMS320C5515 eZDSPTM USB Stick in CCS

3. Go to File -> Import -> Existing CCS Eclipse Project -> point to the
library provided with the tool, or downloaded from
http://support.spectrumdigital.com/boards/usbstk5515_v2/reva/files/
usbstk5515_BSL_RevA.zip
4. Go to View -> Project Explorer. A list of example project is shown on
the left of the screen. Click on ‘uled’ project.
5. Go back to Target Configuration window -> right-click on the target file we
have just created -> Link File to Project -> choose ‘uled’.
LEDs display demonstrations

1. Right-shift 4 OLEDs February, 27th 2014

Open ‘uled’ project -> choose Debug icon on the toolbar (or press
F11) -> click Resume The 4 LEDs on the board should blink from left to
right, one after another in 6 loops.

6 Lab 1 report

4 LEDs blink from left to right demonstration on TMS320C5515 eZDSPTM USB Stick [2]
We can see the source code for this demonstration in uled_test.c as follows:
#include "usbstk5515.h"
#include "usbstk5515_led.h"
#include "stdio.h"

/* ------------------------------------------------------------------------ *
* February, 27th* 2014
* uled_test( ) *
* User LED tests toggles each of the four user LEDs 6 times *
* *
* ------------------------------------------------------------------------ */
Int16 uled_test( )
{
Int16 i, j;

printf(" User LED tests toggles each of the four user LEDs 6 times\n");
SYS_EXBUSSEL = 0x6000; // Enable user LEDs on external bus
USBSTK5515_ULED_init( );

/* Running LED test */


for ( j = 0 ; j < 6 ; j++ )
{
for ( i = 0 ; i < 4 ; i++ )
{
if ( USBSTK5515_ULED_on( i ) ) // Turn on user LED i
return 1;
USBSTK5515_waitusec( 50000 );
}

7 for ( i = 0 ; i < 4 ; i++ ) Lab 1 report


{
if ( USBSTK5515_ULED_off( i ) ) // Turn off user LED i
return 2;
USBSTK5515_waitusec( 50000 );
}
}
USBSTK5515_ULED_setall( 0x00 );

return 0;
}
2. Left-shift 4 OLEDs
Open ‘uled’ project -> double-click on uled_test.c -> modify the loop as
follows:
/* Running LED test */
for ( j = 0 ; j < 6 ; j++ )
{ February, 27th 2014
for ( i = 0 ; i < 4 ; i++ )
{
if ( USBSTK5515_ULED_on( 3-i ) ) // Turn on user LED i
return 1;
USBSTK5515_waitusec( 50000 );
}

for ( i = 0 ; i < 4 ; i++ )


{
if ( USBSTK5515_ULED_off( 3-i ) ) // Turn off user LED i
return 2;
USBSTK5515_waitusec( 50000 );
}
}

The 4 LEDs now blink from right to left, one after another in 6 loops.

8 Lab 1 report
3. Flashing a 4-bit counter
Open ‘uled’ project -> double-click on uled_test.c -> modify the uled_test
subroutine as follows:

Int16 uled_test( )
{
Int16 i, j; February, 27th 2014

printf(" User LED tests toggles each of the four user LEDs 6 times\n");
SYS_EXBUSSEL = 0x6000; // Enable user LEDs on external bus
USBSTK5515_ULED_init( );

/* Running LED test */


while (1){
for ( j = 15 ; j >= 0 ; j-- )
{
USBSTK5515_ULED_setall(j);
USBSTK5515_waitusec( 500000 );
}
}

return 0;
}

The 4 LEDs now become a 4-bit counter with each LED represents one of four bits. The counter
9 counts up from 0 to 15 and return to 0 to start over again. Lab 1 report
Conclusion
th
In this lab experiment session, we succeeded to get the Code Composer Studio27
February, installed
2014
on our laptops as well as managed to configure CCS to be compatible with
TMS320C5515 eZDSPTM USB Stick. We also succeeded to run our first demonstrations
on the 4 LEDs by modifying the example source codes supplied with the tool.

We can expand further by modifying the example codes to get the 4 LEDs become a 4-
bit counter counting down from 15 to 0, simply by replacing the line

for ( j = 15 ; j >= 0 ; j-- )


by

for ( j = 0 ; j >= 15 ; j++ )

in the uled_test.c file.

10 Lab 1 report
References
[1] Texas Instruments, C5515 eZDSP USB Stick Development Tool description 27th 2014
February,and
features, http://www.ti.com/tool/tmdx5515ezdsp, retrieved on February, 27th 2014.
[2] sensorasia, TMS320C5515_eZdip_USB stick.MP4, http://www.youtube.com/watch?
v=ZFnvH1iZoY8, retrieved on February, 27th 2014.

Illustrating images of C5515 eZDSP USB Stick Development Tool are taken from
http://www.ti.com.

All source codes in this report are taken from the usbstk5515_v1 library associated with
C5515 eZDSP USB Stick Development Tool, provided by Spectrum Digital Inc..

11 Lab 1 report

You might also like