CSC270 Homework 8 2016

From dftwiki3
Revision as of 14:00, 31 March 2016 by Thiebaut (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

--D. Thiebaut (talk) 14:00, 31 March 2016 (EDT)


This homework can be done in pairs. It is due on 4/7/16 at 23:55 p.m.




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.