Lab 3: Dancing Car
Due Friday, November 2, 2001 (after lab - 2:30pm)
Program (20 points)
Write a program that meets the following specification exactly:
1) For 2 seconds have your car go forward.
2) For 1 second have your car go backward.
3) For 1 second have your car turn to the left.
4) For 1/4 of a second have your car stop.
5) For 1 second have your car turn to the right.
6) For 1 second have your car stop.
7) Restart loop at number 1 of the specifications.
Notes:
- Remember, 1 second for a 2 MHz clock is equal to 2,000,000 cycles;
therefore, 1/4 of a second would equal 500,000 cycles, or 2 seconds
would equal 4,000,000 cycles.
- You should
comment your code such that it is clear that once you store the
value needed to setup the current
specification until the value is stored to switch to the next
specification is exactly the correct number of cycles.
- 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. Note: You will receive no points for
a program that does not assemble.
- you must
demonstrate your program works on your newly built car to either the
Instructor or TA.