19
ECE 3551 MICROCOMPUTER SYSTEMS 1 Introduction to Visual DSP++

ECE 3551 MICROCOMPUTER SYSTEMS 1 Introduction to Visual DSP++

Embed Size (px)

Citation preview

Page 1: ECE 3551 MICROCOMPUTER SYSTEMS 1 Introduction to Visual DSP++

ECE 3551 MICROCOMPUTER SYSTEMS 1

Introduction to Visual DSP++

Page 2: ECE 3551 MICROCOMPUTER SYSTEMS 1 Introduction to Visual DSP++

ADSP-BF533 EZ-Kit Lite

Page 3: ECE 3551 MICROCOMPUTER SYSTEMS 1 Introduction to Visual DSP++

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.

Page 4: ECE 3551 MICROCOMPUTER SYSTEMS 1 Introduction to Visual DSP++

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

Page 5: ECE 3551 MICROCOMPUTER SYSTEMS 1 Introduction to Visual DSP++

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

Page 6: ECE 3551 MICROCOMPUTER SYSTEMS 1 Introduction to Visual DSP++

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”

Page 7: ECE 3551 MICROCOMPUTER SYSTEMS 1 Introduction to Visual DSP++

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.

Page 8: ECE 3551 MICROCOMPUTER SYSTEMS 1 Introduction to Visual DSP++

Builder the Project

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

Build successfully, the output window will show:

Page 9: ECE 3551 MICROCOMPUTER SYSTEMS 1 Introduction to Visual DSP++

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

build” from the preferences.

Page 10: ECE 3551 MICROCOMPUTER SYSTEMS 1 Introduction to Visual DSP++

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.

Page 11: ECE 3551 MICROCOMPUTER SYSTEMS 1 Introduction to Visual DSP++

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.

Page 12: ECE 3551 MICROCOMPUTER SYSTEMS 1 Introduction to Visual DSP++

Select Other Session

Select processor simulator session created earlier.

Page 13: ECE 3551 MICROCOMPUTER SYSTEMS 1 Introduction to Visual DSP++

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

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

Page 14: ECE 3551 MICROCOMPUTER SYSTEMS 1 Introduction to Visual DSP++

New Project Click “Yes” from the following dialog.

Select the “ADSP-BF533” processor.

Click “Next”

Page 15: ECE 3551 MICROCOMPUTER SYSTEMS 1 Introduction to Visual DSP++

New Project

Select “No” and click “Next”

Page 16: ECE 3551 MICROCOMPUTER SYSTEMS 1 Introduction to Visual DSP++

New Project

Click “finish” to finish creating a project.

Page 17: ECE 3551 MICROCOMPUTER SYSTEMS 1 Introduction to Visual DSP++

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.

Page 18: ECE 3551 MICROCOMPUTER SYSTEMS 1 Introduction to Visual DSP++

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:

Page 19: ECE 3551 MICROCOMPUTER SYSTEMS 1 Introduction to Visual DSP++

Close

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

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