Question
ACTIVITY 1 Write an assembly language program which displays a repeating 8-bit binary count on a set of LEDs. The count should start at zero,
ACTIVITY 1
Write an assembly language program which displays a repeating 8-bit binary count on a set of LEDs. The count should start at zero, and be displayed when a non-latching push button (RUN) is held down. The count should stop when RUN is released, and reset to zero with another push button (RESET). The output sequence should be easily visible, with appropriate time delay. (Note the switches should be connected to any pins of PORT D and the set of LEDs to port B.
ACTIVITY 2
Modify the program you have written for activity 1 to light the least significant LED, and then rotate it through each bit so that the lit LED appears to scan. Explain what will happen after it reaches the last position, referring to role of the carry flag in the rotate command.
ACTIVITY 3
Modify the program you have written for activity 3 so that the scan direction can be reversed at the end of the row of LEDs.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started