Serial Interconnect between two Propellers
fbeek
Posts: 14
Hello,
i want to connect two propeller chips together over a serial link.
I tried this with the PCFULLDUPLEX serial object and that works gread at 115200 Baud in mode 0.
But there is one thing that i can't understand. When i read a byte with .rxcheck and put this out to my PC over second link i get always 255 out if there is nothing transmitted
I can filter that with
But i think this is not the best way.
Can someone give me some help for this Problem.
fbeek
i want to connect two propeller chips together over a serial link.
I tried this with the PCFULLDUPLEX serial object and that works gread at 115200 Baud in mode 0.
But there is one thing that i can't understand. When i read a byte with .rxcheck and put this out to my PC over second link i get always 255 out if there is nothing transmitted
repeat intercom:=uart[1].rxcheck if(intercom > -1) uart[0].tx(intercom)
I can filter that with
repeat intercom:=uart[1].rxcheck if(intercom > -1 AND intercom < 255) uart[0].tx(intercom)
But i think this is not the best way.
Can someone give me some help for this Problem.
fbeek
Comments
You have a problem in your program:
Duane
thank you for your replies.
@Luis Digital: Thats a C&P Error.Sorry
@BTX: I will try it later but ich think thats not a nice way because the Programm hangs at this point. With rxcheck that can't happen.
Could it be that i must invert the tx signal?
Use your code, don't worried to compare "if(intercom > -1 AND intercom < 255)", that sounds good for me, although talking about best programming technics, I'm not the best to answer you.
Thank you now i understand the whole story.