Arbitration of 232 signals


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2012
    Posts
    2

    Default Arbitration of 232 signals

    My system consists of (2) PICs, and a third 'device' receiving/transmitting 232 signals. Both PICs need to talk to the 'device' via 232.' The device only has one 232 port.

    So how can i separate communication between the two PICs? Do I have to use a third micro to separate the signals?

    Any have or know of a buffering algorithm i can use as a template?

  2. #2
    Join Date
    Mar 2006
    Location
    China
    Posts
    266

    Default Re: Arbitration of 232 signals

    Hi,

    Can you use an extra wire in the cable that is usually pulled up. Then talking pic can can check if this signal is High (tx line free to use) and then pull it low and start the TX to the device. If the PIC sees the wire low it knows it has to wait for the signal to go high (released by the other pic) before it can take control of the signal and do TX.

    Pin 8 in the 9-pin rs-232 connector CTS (clear to send) or pin 7 RTS might be used for this but you will need to pullup the signal so the transmitting PIC can ground the signal when it is in control of it (TRIS.x reg to output and port.x to 0). When finished transmitting the pic sets the pin's TRIS.x register to an input to make it 3-state (floating).

    Hope fully you can change your HW and then this a simple and cheap solution.

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts