How to connect 74HC165 ?

max232,
Any octal clocked register part could be used as shift register.
The right hand of this schematic shows 2 74F374s wired up as output shift registers.
I used these because:

  • I had them on hand
  • they can sink 24mA of current to turn some LEDs on
  • I didn't have any shift registers to play with.
  • I didn't care that there was the barest of flicker on the LEDs as the bits shifted thru.

They worked great with the standard shiftout commands.
// shift out highbyte
//shiftOut(shiftdataout, serialclock, MSBFIRST, (outdata >> 8));
// shift out lowbyte
// shiftOut(shiftdataout, serialclock, MSBFIRST, outdata);