Presentation is loading. Please wait.

Presentation is loading. Please wait.

ELEC 1041 Digital Electronics Tutorial: Word Problems

Similar presentations


Presentation on theme: "ELEC 1041 Digital Electronics Tutorial: Word Problems"— Presentation transcript:

1 ELEC 1041 Digital Electronics Tutorial: Word Problems
ELEC1041 – Word Problems - 1

2 Alarm Clock Consider the design of a simple digital alarm clock. The clock can display the current time in HH:MM notation along with a single LED that is illuminated when the time is PM (it is NOT lit up in the AM). There are several control inputs for setting the current time and the alarm time. The TIME SET HH button allows you to rapidly advance through the hours 1 through 12 AM and 1 through 12 PM. The time advances one hour for each time the button is pressed. The TIME SET MM button does the same thing for the minutes 00 through 59. In addition, the clock has a toggle input that indicates CLOCK in one position and ALARM in the other. This refers to which time is being set by the TIME SET buttons: either the current time (CLOCK) or the alarm time (ALARM). If the ALARM button is set, the clock displays the last set alarm time. Finally, there is another input controlled by a push button: ALARM ON when pushed in and ALARM OFF when popped out. Your job is define the state diagram for the clock controller. It should support normal clock display (when CLOCK is set), alarm display (when ALARM is set), set current time (CLOCK + TIME SET buttons), set alarm time (ALARM + TIME SET buttons), and of course, the alarm should sound when current time equals alarm time. (a)    Identify your inputs, outputs, and name and describe your states. (b)    Draw a symbolic state diagram for your design, labeling all state transitions. ELEC1041 – Word Problems - 2

3 Cloth Dryer Captain of the Enterprise has one of those incredibly complicated European Miele clothes dryers. The machine has dryer settings for three mutually exclusive option settings, one of which MUST be selected: Cotton fabrics (Extra Dry, Normal+, Normal, Hand Iron, Hand Iron Damp, Machine Iron Wet), Permanent Press fabrics (Normal+, Normal, Hand Iron), or Timed Drying (15 minutes, 20 minutes, 30 minutes). Presumably the dryer has some kind of embedded humidity sensor that can determine just how wet the wash is, and when this sensor value is reached, the dryer can advance to the next phase. This is Cool Down, which turns off the drying action until the clothes reach a predetermined “cool” temperature. The final stage is Anticrease, which intermixes a tumbling action with periods for which nothing happens (e.g., 10 second spin followed by 30 seconds of nothing). This goes on for five minutes. The machine then advances to Stop, and is ready for the next load. (a)    Identify your inputs, outputs, and name and describe your states. (b)   Draw a symbolic state diagram for your design, labeling all state transitions. Write down any additional assumptions you are making. ELEC1041 – Word Problems - 3

4 Traffic Light Controller (1/3)
Consider the following variation on the classical traffic light controller. The intersection in question is shown in Figure below. A Street runs north-south, B Street runs east-west, and C Street enters the intersection from the southeast. A Street is quite busy, It is frequently difficult for cars heading south on A to make the right turn onto either B or C Streets. In addition, cars rarely enter the intersection from C Street. Right turn path A B C ELEC1041 – Word Problems - 4

5 Traffic Light Controller (2/3)
Design a traffic light state diagram for this three way intersection to the following specifications: There are 5 sets of traffic lights facing cars coming FROM A North, A South, B East, B West, and C Southeast respectively. The red, yellow, and green lights facing cars FROM A North, are augmented with a RIGHT TURN ARROW, which can be lit up as either green or not lit up at all. The normal sequencing of light facing the cars coming from A North is: Arrow Green, Arrow Yellow, Traffic Light Green, Traffic Light Yellow, Traffic Light Red, and repeat. In other words, the Right Turn Arrow light is illuminated in every complete cycle of lights. Lights as seen in from A North heading South Lights as seen in other directions ELEC1041 – Word Problems - 5

6 Traffic Light Controller (2/3)
However, it should be possible for the traffic going from north to south on A Street to cross the intersection even when the RIGHT TURN ARROW illuminated. Therefore, the Traffic Light Green should also be illuminated while the RIGHT TURN ARROW is lit up. Cars travelling from the south to north on A Street (and all directions on B and C Streets) must see a red light while the RIGHT TURN ARROW is illuminated for the traffic heading south. A car sensor C is embedded in C Street to detect whether a car is waiting to enter the intersection from the southeast. A timer generates a long interval signal TL and s short interval signal TS when set by an ST signal. Red and green lights are lit up for at least a TL unit of time. Yellow lights, the green arrow, and the yellow arrow are lit up for exactly a TS unit of time The C Street lights cycle from red to green only if the embedded car sensor indicates that a car is waiting. The lights cycle to yellow then red as soon as there are no cars waiting. Under no circumstances is the C Street green light to be lit for longer than TL unit of time. ELEC1041 – Word Problems - 6


Download ppt "ELEC 1041 Digital Electronics Tutorial: Word Problems"

Similar presentations


Ads by Google