Shop OBEX P1 Docs P2 Docs Learn Events
Fast Full-Duplex Serial, 1 Cog - a.k.a. FFDS1 - Page 2 — Parallax Forums

Fast Full-Duplex Serial, 1 Cog - a.k.a. FFDS1

2»

Comments

  • lonesocklonesock Posts: 917
    edited 2013-06-06 09:31
    In the FFDS1 test harness I run multiple instances of the driver, 1 to talk to the PC and 2 more to talk to each other and validate data-flow. In that particular case it is undesirable to for the RX pin to be an input for all cogs, since I am driving it from another cog. There may be other usage scenarios where having the RX pin be an output is beneficial (serial snooping / logging of a different serial driver?). And at the point where you need another parameter to specify if the RX pin should be forced to be an input, you might as well just set the DIRA bit before initializing FFDS1. I should probably add a big note to the comments that I do not enforce RX being an input...would that suffice?

    thanks,
    Jonathan
Sign In or Register to comment.