Shop OBEX P1 Docs P2 Docs Learn Events
Possible to use one bi-directional Prop SIO with both TX and RX of another device? — Parallax Forums

Possible to use one bi-directional Prop SIO with both TX and RX of another device?

MicksterMickster Posts: 2,694
edited 2013-09-14 08:24 in Propeller 1
As this would be a command/response communication it would be a shame to use more Prop I/O than necessary. The hard wiring for something like this has me scratching my head, though.

Cheers!

Mickster

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2013-09-14 07:42
    How hard this will be depends on if the other device will get confused if it hears itself talk. Do you know whether or not this is the case?

    -Phil
  • phatallicaphatallica Posts: 64
    edited 2013-09-14 07:52
    Did you have a peripheral device in mind? I am not sure if there will be just one answer that covers all possible serial devices. If the behavior of the pins are clearly defined, then an interface can be considered. The last serial communication that I did was to another microcontroller (inside another product). So, I had no idea how behavior of the TX output was defined when inactive (tri-state, idle high, etc.). So I would not risk it in that case.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2013-09-14 07:59
    It is all about good organization and a clear idea of what you are trying to get done. It is hard to generalize. It is easy to just say "yes, you can do it." After all, microcontrollers are extremely flexible in what you can program. And the Propeller is even more so.

    How hard? One devices to another should be pretty easy. When you get multiple devices talking on the same wires, you then have to create more protocol, maybe have each device have an address.
  • JonnyMacJonnyMac Posts: 9,107
    edited 2013-09-14 08:24
    It's likely that on your TX/RX device you'll have to filter transmissions out of the receive buffer, but that's not difficult.
Sign In or Register to comment.