Electronic – How to cycle through outputs ONLY given clock signal

digital-logic

Purely using digital logic devices (no microcontroller) I was hoping to create something that will cycle through its outputs (only 1 pin high) given only a clock line.

Daisy chain flip-flops?

I wanted to use a shift-register to create a ring counter but then the issue how do you set the first bit high?

Best Answer

You can use a counter and then a decoder. The input to the counter will be your clock and reset (which can be omitted if you don't care what the state of the system is initially). The output of the counter will go into the decoder, which converts the binary number into a 'one hot' representation, where only one of the decoded outputs will be '1' at once. For example, a 74161 4-bit counter and 74154 4-bit decoder should work and give you 16 outputs.