Multiple PICs on usart network


Closed Thread
Results 1 to 40 of 42

Hybrid View

  1. #1
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185

    Default Re: Multiple PICs on usart network

    1. Two Schottky diodes on TX lines could be one solution. This way, one TX line does not effect the other.

    or if not using diodes,

    2. After each Transmit, you may disable USART and make TX pin input pin. When you need to send again, make TX pin an output pin and enable USART, then transmit.
    If one TX line is an input pin, it will not effect the network during the transmission of other TX line.

    These two are only suggestions and are not tested.
    Last edited by sayzer; - 21st February 2013 at 14:12.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,625

    Default Re: Multiple PICs on usart network

    Can't comment on the diodes, but disabling USART also turns off receive. That's why I disabled only transmit.

  3. #3
    Join Date
    Dec 2005
    Posts
    1,073

    Default Re: Multiple PICs on usart network

    The URL I referenced in post #4 shows diodes in TX lines. There's no coding required. Schottky diodes would be best.
    http://cool-emerald.com/?p=711

  4. #4

    Default Re: Multiple PICs on usart network

    Mr Demon,


    I definitely solve this.
    You will need a couple of transistor per each Tx output and 3 resistor.


    As you said, if you disable the usart, also Rx line will be disable.
    If you use diodes, you will need a conversor as MAX 232...
    Problem with diodos, is due to signal keep positive if Tx is idle. Plus this, Impedance for Tx and Rx line are so sensitive.


    If want to communicate several PIC without using interfacing, you can do it using the schematic that I will post next.


    /jose p.

  5. #5
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,625

    Default Re: Multiple PICs on usart network

    Quote Originally Posted by dhouston View Post
    The URL I referenced in post #4 shows diodes in TX lines. There's no coding required. Schottky diodes would be best.
    http://cool-emerald.com/?p=711
    How fast a baud rate do you think this can handle?

  6. #6
    Join Date
    Dec 2005
    Posts
    1,073

    Default Re: Multiple PICs on usart network

    Quote Originally Posted by Demon View Post
    How fast a baud rate do you think this can handle?
    I don't know. I seldom need more than 9600bps with embedded devices.

  7. #7
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,625

    Default Re: Multiple PICs on usart network

    I needed 115200 at 48mhz, not sure diodes could handle it. Switching coms in software doesn't add hardware limitations.

  8. #8
    Join Date
    Apr 2011
    Location
    Kent, UK
    Posts
    52

    Default Re: Multiple PICs on usart network

    Attached is a pdf schematic similar to Jose P's posting, but halving the number of transistors per channel.
    Also need to add a TX BUSY bus to prevent collision. (Hold to ground when transmitting, tristate when idle).
    A similar circuit ran fine at 115200 baud.

    Almost any signal diode in series to the TX pins (cathode to the TX pin) with a bus pull up resistor on the anode could also work fine.

    Tim.
    Attached Images Attached Images

Similar Threads

  1. PICs in a RS-485 network?
    By atomski in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 12th November 2011, 09:52
  2. Multiple PICS from Same Crystal?
    By WOZZY-2010 in forum General
    Replies: 2
    Last Post: - 6th February 2010, 15:18
  3. Problems controlling multiple pics
    By gandora in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 29th May 2007, 08:59
  4. Multiple Pics to One serial port
    By Rleonard in forum Serial
    Replies: 1
    Last Post: - 18th January 2007, 18:30
  5. Multiple Data on to USART RX pin
    By Squibcakes in forum Serial
    Replies: 2
    Last Post: - 20th July 2006, 00:37

Members who have read this thread : 0

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