
A value is placed in the inputs from 0 to 7 to define how much it counts. Then, the start input is set to 1 to load that value, and it begins to count. When it reaches zero, the end flag is raised.
It is recommended to use switches for the inputs, a button for the start input, and LEDs for all the outputs.
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | in_start | ||
| 1 | |||
| 2 | |||
| 3 | |||
| 4 | out_state | ||
| 5 | out_end_flag | ||
| 6 | |||
| 7 |