
Uses input 1 and 2 to display a 2-digit number on a 7-segment display. This works by using 'and' and 'or' gates for switching between digits.
Toggle either input 1 or 2 or both.
Seven segment display
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | Connects to an and gate that checks if input 1 is not active and then switches on output pins for digit '1'. Also connects to a not gate for checking if input 1 is active and thus stops displaying a number. | Toggled by input 0 to display segment A on the 7-segment display. | |
| 1 | Connects to an and gate that checks if input 0 is not active and then switches on output pins for digit '2'. Also connects to a not gate for checking if input 0 is active and thus stops displaying a number. | Toggled by input 0 and 1 to display segment B on the 7-segment display. | |
| 2 | Toggled by input 0 and 1 to display segment C on the 7-segment display. | ||
| 3 | Toggled by input 0 to display segment D on the 7-segment display. | ||
| 4 | Toggled by input 0 to display segment E on the 7-segment display. | ||
| 5 | |||
| 6 | Toggled by input 0 to display segment G on the 7-segment display. | ||
| 7 |