Learning the Art of Electronics: 19L.1.3 State Definitions
The Reaction Timer Control logic FSM requires four states:
STATE | Functional Description | duration LED | cheat LED |
---|---|---|---|
A | reset state: Waiting for Player 1 to press start (or player 2 to cheat) | OFF | OFF |
B | timer running: start pressed and duration LED lit. Waiting for Player 2 to to press stop. | ON | OFF |
C | no cheat stop: Player 2 pressed stop after Player 1 pressed start. duration time is valid. | OFF | OFF |
D | cheat stop: Player 2 pressed stop before Player 1 pressed start. | OFF | ON |