A user turns on the chip by pressing the START button. Between 0 to ~5 seconds an LED will light up, this LED marks the active window to then press the REACT button. The time between the LED first lighting up and the button pressed will be recorded. After the press, the light turns off and a 7 segment display will output the time in milliseconds (shown between 0 to 9999 ms). If the REACT button was pressed before the LED turns on, the 7-segment display will display "Err" (Error). The time accumulates everytime a successful trial has been performed, only pressing the RESET button will the time displayed reset.
(Work in Progress)
There are 3 moving parts to test:
# | Input | Output | Bidirectional |
---|---|---|---|
0 | start_btn | led | an[0] |
1 | react_btn | seg[0] | an[1] |
2 | reset_btn | seg[1] | an[2] |
3 | seg[2] | an[3] | |
4 | seg[3] | ||
5 | seg[4] | ||
6 | seg[5] | ||
7 | seg[6] |