Computer Science & Software Engineering |
CSCI 255 |
Part 1: Countdown You need to create a count down timer. The timer should start at a value of 108 (decimal) and count down towards 0. The current value of the timer should be displayed in binary using the D0, D1, ..., D7 LEDs. D0 is the least significant bit. An LED should be lit if its corresponding bit position in the binary representation of the timer's value is currently 1. The count down from 108 to 0 should take between 20 and 30 seconds. The LEDs correspond to port 0 pins P0.0, P0.1, ..., P0.7. |
Part 2: Blow up the island Once the timer reaches zero, stop the count down. Flash all 8 LEDs on and off several times a second. At the same time as the flashing LEDs, cause a buzzer to sound. The flashing and beeping continues forever (or until you unplug the board). |
Page last updated: August 16, 2012. Copyright © 2011 by Keith Vertanen.