Shop OBEX P1 Docs P2 Docs Learn Events
Proper way to handle 3-4 fullduplexserial instances — Parallax Forums

Proper way to handle 3-4 fullduplexserial instances

w4fejw4fej Posts: 264
edited 2014-12-13 09:46 in Propeller 1
Newbie here...

I am working on a project and have a need to communicate with three (at the moment) serial devices that will each be running in their own cog. I see in the OBEX there is a four port FDS and wonder if that is the way to go.

One device is a serial GPS which I want to update with once a second. The second device is a serial touch screen. Third device is a serial communications receiver/transmitter. I also have a DC motor with built in quad encoder which will be read from on occasion to tune a HF motorized antenna..

Is the four port FDS the way to go or is there a better way??

Thanks for reading..

Mike B.

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2014-12-13 09:21
    The 4-port driver would be best. It can handle up to about 100KB per port (aggregate throughput) and, once the initialization is finished, separate cogs can access separate ports without using locks (semaphores) ... and it only uses one cog for the 4 ports.
  • w4fejw4fej Posts: 264
    edited 2014-12-13 09:46
    Thanks Mike:

    All the devices are running at 9600 so I should be good to go then.. I love these forums.......

    Mike B.
Sign In or Register to comment.