Shop OBEX P1 Docs P2 Docs Learn Events
Serial driver options for Mulitple ports on a single cog? — Parallax Forums

Serial driver options for Mulitple ports on a single cog?

RobotWorkshopRobotWorkshop Posts: 2,307
edited 2011-04-13 15:00 in Propeller 1
While going through the OBEX it appears that most of the Serial objects just handle a single serial port per cog. There is one I found that can do up to 4 but it uses a 6Mhz crystal instead of the regular 5Mhz one that many of the other objects are using.

Are there any other serial drivers that handle more that one serial port per cog? If not has anyone already tried to modify the 4-port driver to work using a 5Mhz crystal?

With the exception of talking to a 2nd Propeller board most of the devices only need to communicate at 9600 baud.

Robert

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2011-04-13 15:00
    The 4-port serial driver in the ObEx can work at other crystal frequencies including 5MHz. The overall throughput of the driver depends on the system clock frequency. If you run it at 6MHz, the total (or highest) speed available is greater than if you run it at 5MHz. It still works though.

    Based on the figures in the comments at the beginning of the driver, you should do fine with 3 ports at 9600 Baud and one port at 115KBaud. Give it a try.
Sign In or Register to comment.