Design an automatic elevator controller for an eight-story building. Use eight LEDs to display the elevator\'s progress and a digital tube to display the elevator\'s current floor position. There is a request button switch at the entrance of each floor. When the request button is pressed, the LED of the corresponding floor lights up. Use CLK pulses to control the elevator\'s movement. Each CLK pulse causes the elevator to rise (or fall) one floor. When the elevator reaches the requested floor, the indicator light of the floor goes out, and the elevator door opens (the door opening indicator light is on). After 5 seconds of opening the door, the elevator door automatically closes and the elevator continues to run. The control circuit should be able to memorize all floor request signals and respond in sequence according to the following operating rules: respond to the earliest request first during operation, and then respond to subsequent requests. If there is no request, stay at the current floor. If there are two simultaneous request signals, determine the distance between the request signal and the current floor. Response to the request with a closer distance first, and then respond to the request with a farther distance. Each request signal is retained until it is cleared after execution.
You Might Like
Recommended ContentMore
Open source project More
Popular Components
Searched by Users
Just Take a LookMore
Trending Downloads
Trending ArticlesMore