Thanks. Well my problem is that I might not fully understand the shiftout command.
The master is another microcontroller, the Atmega8. The Atmega is sending a clock signal and latch data, the pic (slave device) will receive the clock signal and latch data, and then send out a byte of data to the Atmega.
So I'm guessing that I would just connect the clock output of the master (Atmega) to an input pin of the pic (slave) and that would be the clockpin of the command: shiftout dataOutpin, clockpin, (serial data)
The latch output signal of the master (Atmega) would be received by an input pin of the pic (latchReceivePin), and I guess I would do something like this?
If latchReceivePin = 1 then 'if the pic receives a "high" signal on its input pin then shift out a byte of data to the Atmega.
shiftout, etc.
I still don't know if I understand "shiftout" correctly, but I'll experiment with this today. If anyone can offer any advice or clues please let me know.
Thanks again.
Bookmarks