Shop OBEX P1 Docs P2 Docs Learn Events
Any serial obex object that sets tx pin as input after transmission? — Parallax Forums

Any serial obex object that sets tx pin as input after transmission?

Clock LoopClock Loop Posts: 2,069
edited 2013-03-13 22:51 in Propeller 1
I tried to use fullduplexserial to do my parallel prop communications as simply as possible,
but I ran into the issue of multiple props running full duplex serial which doesn't set the TX pin as an input after transmission is finished.

Has anyone made an object like this?

Or how would I modify fullduplexserial to do this normally?

I looked into it and noticed that it looks like something that would need to be done in assembly in the same cog that is setting it as an output.
I am not good enough with assembly yet that I can read it and see, oh, it needs to go here, or to know why it might not be possible.


Anyone got any advice?

I suppose i could use separate tx - rx objects.

Comments

  • StefanL38StefanL38 Posts: 2,292
    edited 2010-08-04 11:59
    maybe the Half Duplex Serial Port Driver from kye could do what you want?
    but it is limited to 19.200 baud
  • JonnyMacJonnyMac Posts: 9,108
    edited 2010-08-04 14:06
    No need; just use "open-true" baud mode and connect a pull-up to the tx/rx line used. I have a program that exchanges information with a BASIC Stamp that uses this setup of FDS:

    com1.start(SIO, SIO, %1100, 38_400)
    


    Using this setup the TX/RX pin will only pull the line low for a start and 0 bit; otherwise it's floated to the pull-up (which happens for a true mode stop bit). The setup also causes the local unit to ignore its own transmission when using just one pin (you don't want to fill your receive buffer with what you just sent).

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon McPhalen
    Hollywood, CA

    Post Edited (JonnyMac) : 8/4/2010 2:11:25 PM GMT
  • gianallengianallen Posts: 16
    edited 2013-03-13 22:51
    Thanks for the tip Jon. This was very helpful.
Sign In or Register to comment.