
This project is a ring counter that shifts binary data to the right and rotates around. Each input pin can be used to set each of the bits HIGH. The CLK input is used to shift the register. The RST_N input is asserted HIGH to rotate the counter, or asserted LOW to clear the data.
Set RST_N to HIGH, set IN0 to HIGH, then toggle the CLK a few times to inject 1s into the counter. Set IN0 to LOW, then toggle the CLK a few times to inject 0s into the counter. The counter will rotate the data around on each rising clock edge.
Connect a push-button to the CLK. Connect a slide-switch to RST_N. Connect a set of 8 DIP switches to the data inputs. Connect a set of 8 LEDs (with current limiting resistors) to the data outputs.
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | IN0 | OUT0 | |
| 1 | IN1 | OUT1 | |
| 2 | IN2 | OUT2 | |
| 3 | IN3 | OUT3 | |
| 4 | IN4 | OUT4 | |
| 5 | IN5 | OUT5 | |
| 6 | IN6 | OUT6 | |
| 7 | IN7 | OUT7 |