CSCI 255
Introduction to Embedded Systems
Fall 2011
Lab #6 - Seven segment display
DUE: Thr Oct 20th, 5PM
Create an assembly language program that interfaces with a 7-segment LED display.
The display should start at 9 and count down to 0, displaying each digit for exactly 1 second (to within 0.01 seconds).
When the counter reaches 0, it should then count back up to 9 and then repeat.
The numbers 0 and 9 should only be displayed for a single second.
While counting up or down, pressing the P2.0 button should immediately (without a delay) cause the counter to jump to 9.
After releasing the button, it should start counting down again.
If the P2.3 button is pressed instead, the counter should jump to 0 and then start counting up after the button is released.
You should use a resistor of at least 330 Ohms in your circuit to avoid sending too much current into the 8052 port.
Here is the datasheet for a 2-digit 7-segment display with the same pinouts as our units.
Submission.
Submit your program to the Lab #6 dropbox on Moodle.
Be sure your submitted source file has the required header with your name, username, and a description of the program.
Your program will be graded on functionality, readability and elegance.