I am trying to send data between two PIC 18F242s.
I use the command:
Junk Con 198: Synch Con "A": Dat var byte: INCLUDE "mosdedefs.bas"
Dat = 15
Serout2, PortC.5, 84, [Junk, (Synch), Dat] to send data to the second PIC.
I receive the data with the command: Serin2, PortC.4, 84, [Wait (Synch), Dat]
I receive the data correctly. I then try to send a signal back (using the same commands reversed) from the second Pic to the 1st, and the data is not received.
I can switch the PICs and it will work from the 2nd to the 1st, but will not the 2nd PIC will not receive the data after sending.
I have used this program for some time, but it now does not work.
Bookmarks