Hello there,
I'm new to this shift register thing. I've read the basic about 74HC165 and 74HC595.
My problem is. I would like to, in the same arduino Uno, read from 2 74HC165 and put this into an array so i can display it on a webpage or LCD. and write to 2 other 74HC595.
Is there a way to wire these 4 shift registers together?
Any code example I can follow just to ready/write from/to those ICs?
Thank you in advance,
Yep, use the hardware SPI, this way you can write and read at the same time. Connect MOSI to the chain of HC595, MISO to the chain of HC165 and connect CLK to all and latch to all.
Just realize that SPI input and output is simultaneous.
septillion:
Yep, use the hardware serial, this way you can write and read at the same time.
I think you mean SPI not hardware serial which refers to the UART.
I did indeed mean that... Typed that before my morning coffee....