Difference between revisions of "CSC270 Homework 8 2016"
(Created page with "--~~~~ ---- <bluebox> This homework can be done in pairs. It is due on 4/7/16 at 23:55 p.m. </bluebox> <br /> <br /> <br /> =Problem #1= <br /> Design an I/O port that contr...") |
|||
Line 2: | Line 2: | ||
---- | ---- | ||
<bluebox> | <bluebox> | ||
− | This homework can be done in pairs. It is due on 4/7/16 at 23:55 p.m. | + | This homework can be done in pairs. It is due on Thursday 4/7/16 at 23:55 p.m. Submit a pdf with your answer on Moodle. |
</bluebox> | </bluebox> | ||
<br /> | <br /> | ||
Line 30: | Line 30: | ||
Show the assembly language program that implements the 3 seconds green, 1 second yellow, and 3 seconds red cycle. | Show the assembly language program that implements the 3 seconds green, 1 second yellow, and 3 seconds red cycle. | ||
<br /> | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | [[Category:CSC270]][[Category:6800]][[Category:Homework]] |
Revision as of 13:01, 31 March 2016
--D. Thiebaut (talk) 14:00, 31 March 2016 (EDT)
This homework can be done in pairs. It is due on Thursday 4/7/16 at 23:55 p.m. Submit a pdf with your answer on Moodle.
Contents
Problem #1
Design an I/O port that controls 3 LEDs. One is green, one is yellow, and one is red. They are used to control the traffic at some intersection. Typically, green is ON for 3 seconds, then it goes OFF and yellow turns ON and stays ON for 1 second. When yellow turns OFF, red turns ON for 3 seconds, and the cycle of green/yellow/red activation repeats.
Question 1: logic design
Provide a logic design that would work with the current 6811 kit (actually, you could wire it up to verify that it works). Show the 6800, a decoder, and the hardware that activates the 3 LEDs.
Question 2: driver
Show the set of instructions you can use to
- Turn the green LED ON
- Turn the green LED OFF
- Turn the yellow LED ON
- Turn the yellow LED OFF
- Turn the red LED ON
- Turn the red LED OFF
Question 3: software loop
Show the assembly language program that implements the 3 seconds green, 1 second yellow, and 3 seconds red cycle.