ECE 3551 MICROCOMPUTER SYSTEMS 1 Introduction to Visual DSP++

Preview:

Citation preview

ECE 3551 MICROCOMPUTER SYSTEMS 1

Introduction to Visual DSP++

ADSP-BF533 EZ-Kit Lite

How To Use VDSP++ in the Lab Log on the PC using your account. Connect the ADSP-BF533 board to the PC using a

USB data cable (USB connection is shown as J10 in above picture, usually, the USB is connected in the lab).

Power up the board by connecting the AC adapter to J9 and verify that the yellow LED (LED11) is lit, which signifies the board is communicating properly with the host PC and is ready to run.

From the windows Start menu, select All Programs->Analog Devices->VisualDSP++4.0 -> VisualDSP++ Environment. Click VisualDSP++ Environment to open the VisualDSP++4.0.

Session Create

From VDSP++ 4.0 menu “Session”->”New Session”.

Create two sessions for later use:1. ADSP-BF533 ADSP-BF5xx Single Processor

Simulator2. ADSP-BF533 ADSP-BFxxx EZ-KIT Lite Select ADSP BF-533 processor for both sessions

Session Select From VDSP++ 4.0 menu “Session”->”Select Session”.

Open a Project Select Session “ADSP-BF533 ADSP-BFxxx EZ-KIT Lite” Copy contents in the folder “C:\Program Files\Analog

Devices\VisualDSP 4.0\Blackfin\EZ-KITs\ADSP-BF533\Examples\Blink\C” to “u:\ece3551\labs\lab11”. (You don’t have the privilege to write to C drive)

From VDSP++ 4.0 menu “File”->”Open”->”Project”

Open file “u:\ece3551\labs\lab11 \BF533 Flags C.dpj”

The Two compiling versions Each Project has two compiling versions:

Debug: The compiler does not optimize the code, runs slow, can run step by step. usually used for developing and debugging.

Release: The compiler optimizes the code, runs fast, can not run step by step. released to customer.

We select “Debug” first.

Builder the Project

From VDSP++ 4.0 menu “Project”->”Build Project”.

Build successfully, the output window will show:

Preferences Settings Select “Settings”->”Preference”. Check out the “Load executable after

build” from the preferences.

Load the Program and Run

Select “File”->”Load Program”. Open “u:\ece5331\labs\lab11 \debug\

BF533 Flags C.dxe” Select “Debug”->”Run”. The Led4 – Led9 will be lit one by one in

one direction. Push PF8 to change the direction of the

moving light.

Close the project

Select “Debug”->”Halt” to stop the program, the light will stop moving.

Select “File”->”Close”->” Project BF533 Flags C.dpj” to close the project.

Select Other Session

Select processor simulator session created earlier.

New Project Select “File”->”New”->”Project”.

Input the project name “lab12” in name area and click “Next”.

New Project Click “Yes” from the following dialog.

Select the “ADSP-BF533” processor.

Click “Next”

New Project

Select “No” and click “Next”

New Project

Click “finish” to finish creating a project.

New a File

Select “File”->”New”->”File” Input the following code in the new edit

window: #include <stdio.h> int main(void) { printf("Welcome to Analog DSP simulator!\n"); return 0; } Select “File”->”Save”->”File”, and save the file

as “main.c”. Select “Project”->”Add to Project”->”File(s)”, add the “main.c” to the project.

Build and Run the Project

Select “Project”->”Build Project”. Select “File”->”Load Program” to load

“u:\proj\debug\proj.dxe”. Select “Debug”->”Run” to run the

project. The result is shown as:

Close

Select “File”->”Close”->” Project proj.dpj” to close the project.

Unplug AC adapter from the board before you leave the lab.

Recommended