Hi,

I am having trouble with communication between 2 pics. All I am trying to do is send one word from one pic to another I have a cs and data line and the following code.

Transmitter:

high cs
pause 50
serout serialpin, T1200, [value]
low cs

Receiver:

datain:
serin serialpin, T1200, [value]
return

start:
IF cs = 1 then gosub datain
IF weld = 0 then start

I just cant get it to work. I have tried [#value], serout2 with [dec value], well have tried everything I can think of, but no luck. Help please. I have read all the posts I can find on serial comms, but I still cant see what im doing wrong.

Regards

Bob...