Oops, I see in your other thread you've already tried SHIFTIN/OUT.
Something like this might be a start...
Code:
; -- Master Transmit --
For loop = 0 to 15
datapin = temp.0[loop]
clkpin = 1
PauseUS 100
clkpin = 0
Next loop
; -- Master Receive --
For loop = 0 to 15
clkpin = 1
PauseUS 100
datapin = temp.0[loop]
clkpin = 0
Next loop
;________________________
; -- Slave Transmit --
For loop = 0 to 15
while clkpin = 0 : wend
datapin = temp.0[loop]
while clkpin = 1 : wend
Next loop
; -- Slave Receive --
For loop = 0 to 15
while clkpin = 0 : wend
temp.0[loop] = datapin
while clkpin = 1 : wend
Next loop
This way is "Driven" on both ends. Be sure to have a resistor (1K is good) in the Data line between the 2 PICs.
<br>
Bookmarks