Multiple PICs on usart network


Closed Thread
Results 1 to 40 of 52

Hybrid View

  1. #1
    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

  2. #2

    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.

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,170

    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?

  4. #4
    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.

  5. #5
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,170

    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.

  6. #6
    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

  7. #7
    Join Date
    Feb 2010
    Location
    USA, New England
    Posts
    164

    Default Re: Multiple PICs on usart network

    Hey Everybody,

    Thanks for this thread, you saved me a truckload of frustration! The series diodes worked in my case.

    All the Best,
    Paul
    The way to avoid mistakes is to gain experience. The way to gain experience is to make mistakes.

  8. #8

    Default Re: Multiple PICs on usart network

    Look guys,
    My schematic use 2 transistor and 3 Rs per tx line. You dont need any other ic as converter or similar.
    I am mounting 4 PIC forming a network, 1 master and 13 slaves. Tx from master will be conected to all Rx of slaves, then all Tx from slaves will be conected to master Rx.

    Anyway, looks like demon have resolve this...

    /jose p

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 : 3

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