|
|
|
Lab 1: Sharc EZ-Lite FamiliarizationBoard setupIn addition to the board and its power supply, you need to connect the following:
Run a canned demoYou can run the host program by selecting the Sharc EZ-Kit Lite host from theWindows menu. To run a demo, you can either use File->Open or File-Demo. Try running the Peter Gunn Theme demo, then try running the bandpass filter. Compile your own program Copy the source for the bandpass filter demo from the Sharc installation directory to your own directory. You will need bp.c, bp.h, and mk.bat. One simple way to set up the compilation process is to use a text editor to write a simple makefile. You will also find a Mk.bat file in the Sharc installation directory. You will need to modify it for your directory structure. Here is an example (your directories will vary): g21k
-Id:\Ez-kit\Ezsharc\include -o e:\Projects\Sharc\lsense\lsense.21k
e:\Projects\Sharc\lsense\lsense.c -Id:\Ez-kit\Ezsharc\libdh.a You can run the makefile from the DOS prompt. Once you have a .21k file, you can use the File->Open command on the host program to load your executable onto the board. Make a modified version of Mk.bat (call it Mkasm.bat) which adds the -S flag and removes the -o option. This will generate an assembly language listing in a file with a .s extension. Generate the assembly code for your program and take a look at it. Turn inA printed copy of your assembly language file. Copyright ã 1998, 2000 Wayne Wolf |