Cip,
PIC to PIC connection using 1-Wire is not that simple.
when using OWIN / OWOUT both the PICs claim to be a master.
I have already spent hours to write a 1-Wire slave routine for the PIC, no success so far.
What you could do is: use SerIn / SerOut
When Idle your Slave is in a SerIn loop
As soon as it has been "called" it replies on the same Port using SerOut.
The Master "calls" the Slave using SerOut and after sending its Bits it listens on the same port for the slaves reply using SerIn.
Even this will require some lines of code to get the timing right and make it fail safe, assuming the slave has more to do than looping waiting for it's masters call.
If you can afford to use some more port Bits (up to 3)
"handshaking" will be easier.
@all members
Does anyone have a better solution ?
rgds.
Bookmarks