The purpose of this lab is to gain some experience with branching, loops, and the bit instruction set.
In this lab, you will design, code, assemble, simulate, download and run a program. The program must produce the ”Knight Rider” effect. Specifically:
Notes:
Build the project in AVR Studio. Once built successfully, set a breakpoint on the first instruction in your program. Next, select the “Start Debugging” command from the Debug menu; the program will start to execute, but will stop on the breakpoint you just set. While simulating, you may wish to comment out the delay loop code. Verify that exactly one LED is on at all times the program is running.
Test-run your program in AVR Studio debugger in order to verify that it runs as expected.
Download your program to the microcontroller using ATmon with the commands introduced in Lab 0.
Demonstrate the program and to your instructor.
You should indicate how much time (in minutes) you spend on this assignment in the FAST database. You are encouraged to log your activity as you work on the project. At a minimum, you should log all of the time spent on this assignment before the due date given above. All time spent on this assignment should be entered into the week 3 column (even if you worked on it in week 2 or 4).
You should follow your instructor's instructions for your lab submission.
If you have any questions, consult your instructor.