Presentation is loading. Please wait.

Presentation is loading. Please wait.

ECE 3551 MICROCOMPUTER SYSTEMS 1 Introduction to Visual DSP++

Similar presentations


Presentation on theme: "ECE 3551 MICROCOMPUTER SYSTEMS 1 Introduction to Visual DSP++"— Presentation transcript:

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

2 ADSP-BF533 EZ-Kit Lite

3 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.

4 Session Create  From VDSP++ 4.0 menu “Session”->”New Session”.  Create two sessions for later use: 1. ADSP-BF533 ADSP-BF5xx Single Processor Simulator 2. ADSP-BF533 ADSP-BFxxx EZ-KIT Lite  Select ADSP BF-533 processor for both sessions

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

6 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”

7 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.

8 Builder the Project  From VDSP++ 4.0 menu “Project”->”Build Project”.  Build successfully, the output window will show:

9 Preferences Settings  Select “Settings”->”Preference”.  Check out the “Load executable after build” from the preferences.

10 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.

11 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.

12 Select Other Session  Select processor simulator session created earlier.

13 New Project  Select “File”->”New”->”Project”.  Input the project name “lab12” in name area and click “Next”.

14 New Project  Click “Yes” from the following dialog.  Select the “ADSP-BF533” processor.  Click “Next”

15 New Project  Select “No” and click “Next”

16 New Project  Click “finish” to finish creating a project.

17 New a File  Select “File”->”New”->”File”  Input the following code in the new edit window: #include 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.

18 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:

19 Close  Select “File”->”Close”->” Project proj.dpj” to close the project.  Unplug AC adapter from the board before you leave the lab.


Download ppt "ECE 3551 MICROCOMPUTER SYSTEMS 1 Introduction to Visual DSP++"

Similar presentations


Ads by Google