While the circuit is not completed yet, my plans are:
A 74hc597 used for input is daisy chained behind a 74hc595 for output . As a byte of data is sent via SPI to the 595 for output, it pushes input data out of the 597 and into MISO on the micro controller (328p).
How do i read the data received via SPI out of the micro controller?
Also, if I send more than a byte of data at a time through MISO, how do I capture data returned via MISO? Is it all lost but the last byte? SPI does not provide a method of returning data received via MISO?