Al, thanks for the advice, but I just dont get it. I thought I would need an input to sink the current and pull the line low. How would an out put on the Tris sink current? Im sure it has to do with the port Tristate hardware but it has been too many years since I could follow the data flow in that hardware. From what youve said it would look like this?
Code:
Toggle line w/pullup
PIC1 5VDC PIC2
TrisC.1=1
..
!
TrisC.1=1
PortC.1=1 PortC.1=1
PIC1 - PIC1 pulls line low PIC2
TrisC.1=0
. TrisC.1=1
PortC.1=0 !
PortC.1=1
PIC1 - PIC2 test line PIC2
TrisC.1=0 TrisC.1=1
PortC.1=0
PortC.1=0
IF PortC.1=0 THEN Whatever
Thanks,
Wayne
Bookmarks