While you're changing pins from inputs to outputs lower in the chain, how does the PIC higher in the chain know to change as well?
Robert
EDIT: This is what we used to call daisy-chain design, there's a reason why it's not used much any more.
There's a reason why people use 2 programs; one dedicated to program a master and another for the slaves. I'm sure you can get this working, somehow, but it's so much simpler to use newer designs.
Too bad you're using 16F818, it doesn't have hardware USART. You could do this at 115200baud, the master runs at 48MHz, the slaves at 64MHz:
http://www.picbasic.co.uk/forum/showthread.php?t=17282
Bookmarks