Unformatted text preview: pattern should be repeated continuously until the turn signal has been cancelled. 5. If button S2 is pressed at the time of the “initiate turn signal” interrupt, start displaying the pattern on the right-turn LEDs (D4-D1). If button S2 is not pressed at the time of the “initiate turn signal” interrupt, start displaying the pattern on the left-turn LEDs (D8-D5). 6. Since there are two interrupt sources, the Vectored Interrupt Controller should be used to coordinate them. 7. If there are no button presses for a period of 6 seconds, turn on all 8 LEDs until the next button press, signifying an “error condition”. Do this whether or not a turn is being signaled. 8. The main program should be a “do-nothing loop”. Submit a printout of your program in class on Friday, and then bring your board to my office to demonstrate the program some time on Friday. I will test the design by connecting power and executing your program....
View Full Document
- Summer '08
- Computer program, Interrupt, vectored interrupt controller, whichever timer-based interrupt