Let's say we have an 8-Bit shift register. We reset it so that its outputs are as follows:
00000000We then set the data input high and clock it:
10000000We then drop the data input low and continuously clock it:
01000000 00100000 00010000 00001000 00000100 00000010 00000001This is done easily using two pins from a microcontroller, one pin for the data input and another pin for the clock input.
I'm looking for something that will do the same job with just one pin (i.e. a pin to clock it). That is to say, when you reset it, it becomes:
10000000and then when you clock it, it cycles thru the outputs:
01000000 00100000 00010000 00001000 00000100 00000010 00000001 10000000 01000000 01000000I've googled a bit and the closest I've come to this specification is the 4017 chip in the 4000 CMOS family. Here's a quick paragraph about it:
The only problem though is that I need a chip that will count to 16 instead of 10. Does anyone know of a similar chip that will cycle thru
16 different outputs?Then again I could always just use two of these chips, but I just thought I'd check to see whether there was a more suitable chip out there.