Shop OBEX P1 Docs P2 Docs Learn Events
transfer 50 longs using FullDuplex Serial driver — Parallax Forums

transfer 50 longs using FullDuplex Serial driver

donnpangydonnpangy Posts: 49
edited 2013-12-22 08:11 in Propeller 1
Hello,
I am looking for a quick and easy way to send about 50 longs between two props. I am only running about 12 inches of cable between the two props. I am running FullDuplexSerial twice, once to the Parallax Serial Terminal and the second to communicate between two props. I am using pins 8 and 9 on both poth props, to transfer the 50 longs.
Let me know if there is an easier way to accomplish this task.
Thanks,
Don

Comments

  • kwinnkwinn Posts: 8,697
    edited 2013-12-22 00:54
    I don't know about an easier way, but there are other options. You could use the four port serial object instead of two copies of FullDuplexSerial if you are short of cogs, one of the I2C objects, or one of the parallel comm objects. Is there a reason for changing?
  • Duane DegnDuane Degn Posts: 10,588
    edited 2013-12-22 08:11
    I second kwinn's words, particularly "Is there a reason for changing?"

    There's a lot to be said for working code. Does your code work?

    Do you want to free up a cog to use for other features?

    The four port serial object is a very useful object to know how to use. Tracy Allen's version also checks for framing errors, something FDS doesn't do.

    Another option is an object Beau wrote for high speed Prop to Prop communication. I'll see it I can find a link and add it here.
Sign In or Register to comment.