1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

Uart communication between two different microcontrollers

Discussion in 'ARM' started by bsrao, Dec 4, 2012.

  1. bsrao

    bsrao New Member

    Joined:
    Dec 4, 2012
    Messages:
    3
    Likes:
    0
    Hi...i want to communicate usart communication between 2 different microcontrollers...what are the hardware conections we have to give for communicating between 2 different microcontrollers...and how to take care in the software part like baudrate must be same for both controllers...? please suggest as i am new to microcontroller programming..

    Thanks in Advance
     
  2. bsrao

    bsrao New Member

    Joined:
    Dec 4, 2012
    Messages:
    3
    Likes:
    0
    i have done a search on net but i am not able to find any thing for communication between 2 different controllers....
     
  3. Pommie

    Pommie Well-Known Member Most Helpful Member

    Joined:
    Mar 18, 2005
    Messages:
    10,011
    Likes:
    317
    Location:
    Brisbane Australia
    If the distance is short (less than a foot) then you can connect them directly (Tx to RX twice) assuming they are both TTL level devices. For longer distances you will need an RS232 chip at each end. Yes, baudrate must be the same on both ends plus parity and number of bits.

    Mike.
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. bsrao

    bsrao New Member

    Joined:
    Dec 4, 2012
    Messages:
    3
    Likes:
    0

    Thank you sir..i will check it..
     
  6. Mr RB

    Mr RB Well-Known Member

    Joined:
    Jul 22, 2008
    Messages:
    4,716
    Likes:
    194
    Location:
    Out there
    I hate to argue with someone who's opinion I respect so much, but even TTL level comms can run long distances, usually with no problems (at least at lowish baudrates).

    I've had no problems with 0-5v 19200 baud run over 50 feet, even using crappy telephone style cable. The same setup seemed to also work fine at 56k baud in testing but I settled on 19200.

    Hey Pommie, have you been getting into ARM chips now? I wondered why I had not seen you in many PIC threads lately... ;)
     
  7. Pommie

    Pommie Well-Known Member Most Helpful Member

    Joined:
    Mar 18, 2005
    Messages:
    10,011
    Likes:
    317
    Location:
    Brisbane Australia
    Hi Roman,

    I've had problems at a few feet but that was in a very noisy environment. Even so, I was rather cautious at 1 foot.

    Not getting into Arm, this thread just showed up in the New Posts list. I'm not around as much lately hence the lack of siting in PIC threads.

    Mike.
     

Share This Page