Lab 2: LED Changer
Due Friday, October 19, 2001 (after lab - 2:30pm)
Program (20 points)
Write a program that meets the following specification exactly:
1) For 1/4 of a second the 4 red motor leds are on.
2) For 1/4 of a second the 4 green motor leds are on.
3) For 1/4 of a second all leds are off.
4) Restart loop at number 1 of the specifications.
Notes:
- One second for a 2 MHz clock is equal to 2,000,000 cycles;
therefore, 1/4 of a second would equal 500,000 cycles.
- You should
comment your code such that it is clear that once you store the
value needed to setup the leds for the current 1/4 second
specification until the value is stored to switch to the next leds
specification is exactly 500,000 cycles (no, not 499,999 or
500,001).
- Each lab partner must turn in a copy of the assembly language
program.
- The comments at the top of the program should indicate:
- Who the author is of the program
- Who you worked with on the program
Demonstration (10 points)
You may demonstrate the downloading of the program as a partnership
or alone, but both partners must be present to demonstrate as a partnership.
For this lab,
- you must hand in the assemby language
file (.asm) using the Web Submission page.
- you must
demonstrate your program works on your newly built board to either the
Instructor or TA.