Just use any of the Serial Output commands for the Master PIC... SEROUT, SEROUT2, DEBUG, HSEROUT, your choice. In it's simplest form, send the Data as if you were going to send it to your LCD... eg...
SEROUT2 0,16780,[$FE,$01,"Stand Clear",$FE,$C0,"Train Arriving"]
The value of 16780 is dependant on your chosen baud rate (see PICBasic manual).
At the receiving end every character received by the receiving PIC is passed straight to it's LCD. Easy Peasy....
Finally, if you're running long lengths of cable (ie greater than say 5 metres), use a proper RS-232 driver chip (like the MAX232), don't rely on the PICs measly 5v output to drive long distances reliably.
Oh, and a finally, finally... it's serial comms, so use a Resonator or Xtal.




Bookmarks