This preview shows page 1. Sign up to view the full content.
Unformatted text preview: Gray: 000,001,011,010,110,111,101,100 4. Draw a state diagram of a traffic light controller, such as the highway and small road intersection as below: A busy highway is intersected by a little used farmroad. Detectors C sense the presence of cars waiting on the farmroad. With no car on farmroad, light remains Green in highway direction. If vehicle on farmroad, highway lights go from Green to Yellow to Red, allowing the farmroad lights to become green. These stay green only as long as a farmroad car is detected but never longer than a set interval. When these are met, farm lights transition from Green to Yellow to Red, allowing highway to return to green. Even if farmroad vehicles are waiting, highway gets at least a set interval as green. Assume having an interval timer that generates a short time pulse (TS) and a long time pulse (TL) TS is to be used for timing yellow lights and TL is for green lights....
View Full Document
- Spring '08
- Electrical Engineering