|
|
|
Lab 1: Introduction to the Atmel AT92EB55 Evaluation BoardIntroduction This lab will allow you to learn the basics of using the Atmel ARM evaluation board. You will download an existing application, modify the application, and use the logic analyzer to trace the hardware operation. Information on the Atmel ARM microcontrollers can be found here. Web information on the evaluation board can be found at http://www.atmel.com/atmel/products/prod301.htm. Several copies of the Atmel ARM Thumb information CD-ROM should be in the lab. The manual for the evaluation board can also be found on the CD-ROM: Evaluation Board->EB 55->User Guide. The microprocessor manual is also on the CD-ROM under Products. Lab PrecautionsCMOS circuits are sensitive to voltages. Ideally, you should work with a ground strap attached to your wrist. In any case, try to avoid touching leads on the circuit board and touch the circuit board as little as possible. The probes of the test equipment are both delicate and expensive. Be careful when applying and using probes to avoid bending or breaking them. Do not spill anything on electronic equipment. Manuals, software, and equipment do not leave the lab under any circumstances. Run an existing applicationA simple application has been installed on the redbank PC. Follow the directions on the Atmel CD-ROM to compile, download, and execute the application. The directions can be found at Getting Started->ARM ADS Angel. Follow steps 1 and 3, “Setup and test” and ”Connect your host PC to the board”, to make sure the board is set up properly. The software development platform has been installed on this machine so you do not have to perform steps 2 and 4. Step 5 describes the procedure for downloading the led_swing_eb55 application onto the board. Remember that you have to tell the development environment to Go twice, once to download and another to start the program. Once the program is running, you should see the row of LEDs on the board turn on in sequence. Trace the hardwareThe pinout for the signal headers is shown in the evaluation board user guide in Figure 6-4. Locate the EBI extension connector on the board. Find a ground connector as well as the address lines A0-A7. Use the HP logic analyzer mainframe to trace the signals. For this lab, use the 16500 without the 16505. Select “System->2M Sample LA E” on the touch screen. Set Machine 1 to State mode. Use the “Configuration” button to select between waveforms, hex listings, etc. Hit “Run” to gather samples. Use “Print->Print Disk” to print a section of the waveform to a file on a floppy disk. Modify the existing applicationYou will modify led_swing_eb55 to operate the lights in a different sequence. First you need to copy the application and set it up to compile. Make a directory for yourself in My Documents. Copy the directory c:\at91\software\projects\led_swing_eb55 into your directory, leaving the original in the at91 directory. Double-click on led_swing.mcp to start CodeWarrior. Select the Targets window, then double-click on sram_angel. You will need to change access paths for compilation, since the original access paths are relative to the directory’s original position. Use the Add command to add an absolute version of each path in the project: targets\eb55, etc. When you are done, click save and then remove the window. Next, modify the program. Use File->Edit to open led_swing.c. Study the main() function. You should be able to make a one-character change the program to light every second LED as it counts up the LED chain. Make this change and save the program. You can now compile the project with Project->Make. Check the Project Messages window to be sure that no errors occurred; errors will probably be related to the project paths. Once you have made the project, you can use the same procedure as before to run the project. Turn in You should turn in: ·
A printout of your modified main() function. ·
A printout of your captured waveform. Copyright ã 2002 Wayne Wolf |
|
|