Praca laboratoryjna N10. Architektura i symulator Microprocessora Intel 8086.
Projektowanie systemu sterowania windą.
Input Signals
Bits 8 and 7 are unused. Bit 6 is wired to the top call button. Bit 5 is wired to the bottom call button. If these buttons are clicked with the mouse, the corresponding bits come on. Bit 4 senses the lift and goes high when the lift cage reaches the bottom of the shaft. Bit 3 senses the lift and goes high when the lift cage reaches the top of the shaft.
Outputs
Bit 2 turns on the lift motor and the cage goes down.
Bit 1 turns on the lift motor and the cage goes up.
Ways To Destroy the Lift
Turn on bits 1 and 2 at the same time. This causes the motor to go up and down simulatneously!
Crash the lift into the bottom of the shaft.
Crash the lift into the top of the shaft.
Run the simulation too slowly. Even if the code is logically correct, the lift crashes into the end of the shaft before the program has time to switch off the motor.
Sygnały wejściowe
Bity 8 i 7 są nieużywane. Bit 6 jest podłączony do przycisku "do góry". Bit 5 jest podłączony do przycisku "na dół". Jeżeli te przyciski są kliknięciu myszą, odpowiednie bity jest w stanie "1". Bit 4 zmysły dźwigu i idzie w stan "1" kiedy winda osiągnęła dno szybu. Bit 3 zmysły dźwigu i idzie w stan "1" kiedy winda osiągnie szczyt wału.
Wyjścia
Bit 2 włącza się silnik windy i klatki idzie w dół.
Bit 1 włącza się silnik windy i klatki idzie w górę.
Metody niszczenia windy
1. Włącz bity 1 i 2 w tym samym czasie. To powoduje, że silnik idę w górę i w dół w tym samym czasie!
2. Crash dźwigu na dno szybu.
3. Crash wyciągu na szczyt wału.
4. Uruchom symulację zbyt wolno. Nawet jeśli kod jest logicznie poprawne, winda wywala do końca wału zanim program ma czas, aby wyłączyć silnik.