Hi all,
I'm attempting to hook up a 74HC165(n) to my Raspberry Pi 4. I believe I understand the operating principles; I've looked at the datasheet and at some (Arduino) tutorials.
Whenever I attempt to get data out of the shift register, the first 4 data lines return data as expected (0000 0001, 0000 0010, 0000 0100 and 0000 1000 respectively), but data lines 4-8 return the data as 1111 1111, 1010 1010, 0100 1001 and 0010 0010. I don't understand why this happens. I would expect 1000 0000, 0100 0000, 0010 0000 and 0001 0000. Looking at tutorials on YouTube, this is the output other people get.
I'm at a loss. Anyone have a clue? The reason I can't use these outputs is that I eventually intend to multiplex the buttons. I need all outputs + combinations to be unique.
Thanks in advance!