+ Post New Thread
Results 1 to 8 of 8
  1. #1
    Member level 1
    Points: 501, Level: 4

    Join Date
    Dec 2013
    Posts
    35
    Helped
    1 / 1
    Points
    501
    Level
    4

    Micro-controller to Micro-controller communication

    Hello Friends,
    I have 3 questions and i listed it below

    1) Which kind of communication is best to connect two micro-controllers?

    2) If it is possible to connect two micro-controllers in different bits(For example 8 bit & 16 bit or 16 bit &32 bit like that) ?

    3) I want to connect PIC32MX795F512L USB 2 STARTER KIT and PIC32MX360F512L STATER KIT.
    It is possible to connect two starter kit's are not?

    Thanks in advance

    I am waiting for your reply

    •   AltAdvertisement

        
       

  2. #2
    Super Moderator
    Points: 81,434, Level: 69
    Achievements:
    7 years registered
    Awards:
    2nd Helpful Member
    betwixt's Avatar
    Join Date
    Jul 2009
    Location
    Aberdyfi, West Wales, UK
    Posts
    13,349
    Helped
    4456 / 4456
    Points
    81,434
    Level
    69

    Re: Micro-controller to Micro-controller communication

    1. It depends on how far apart they are and how fast you need to transfer data. Over short distances (<10cm) a parallel bus is fastest because it can transfer a whole byte at a time. Over longer distances it is more practical to use a serial system which transfers on ebit at a time so is slower but uses less wiring.

    2. Yes, but if you want to send say 32 bits to an 8-bit device you have to split it into four 8-bit sections and send them individually. You can only transfer as much in one step as the smaller processor can manage.

    3. USB requires a host system. If one is a host (I do not have the data sheets here to check) yes you can do it. You cannot connect two USB slave (client) devices directly together.

    Brian.
    PLEASE - no friends requests or private emails, I simply don't have time to reply to them all.
    It's better to share your questions and answers on Edaboard so we can all benefit from each others experiences.



  3. #3
    Banned
    Points: 3,760, Level: 14
    Achievements:
    7 years registered

    Join Date
    Feb 2010
    Location
    Muscat, Oman, Oman
    Posts
    388
    Helped
    64 / 64
    Points
    3,760
    Level
    14

    Re: Micro-controller to Micro-controller communication

    I guess its best answered above by betwixt..

    Just to add to it , I would say if speed isn't a big issue go for serial communication.



    •   AltAdvertisement

        
       

  4. #4
    Newbie level 3
    Points: 24, Level: 1

    Join Date
    May 2014
    Posts
    4
    Helped
    0 / 0
    Points
    24
    Level
    1

    Re: Micro-controller to Micro-controller communication

    there are some protocols like I2C,SPI etc. try to use that to communicate if the distance is less. if its larger distances then its better to use modbus protocol through rs485



  5. #5
    Member level 1
    Points: 501, Level: 4

    Join Date
    Dec 2013
    Posts
    35
    Helped
    1 / 1
    Points
    501
    Level
    4

    Re: Micro-controller to Micro-controller communication

    Thanks for your reply friends



  6. #6
    Advanced Member level 5
    Points: 12,735, Level: 27
    Achievements:
    7 years registered

    Join Date
    Nov 2008
    Location
    Norwich, UK
    Posts
    2,123
    Helped
    598 / 598
    Points
    12,735
    Level
    27

    Re: Micro-controller to Micro-controller communication

    there are number of alternatives
    1. UART to UART is probably the simplest and you can use hardware flow control if required
    2. I2C or SPI if the devices are close to each other
    3. USB - make one PIC32 USB host and the second USB device
    4. wired Ethernet or wireless for distances over 10 metres
    http://www.microchip.com/pagehandler...less/home.html



  7. #7
    Advanced Member level 3
    Points: 3,983, Level: 14
    embpic's Avatar
    Join Date
    May 2013
    Location
    india
    Posts
    742
    Helped
    80 / 80
    Points
    3,983
    Level
    14

    Re: Micro-controller to Micro-controller communication

    i think UART communication will be best if these are the free for that.Bcoz no need to consider master and slave.If they are engaged then u have to go for I2C, SPI or parellel port communiaction.
    Thanks & Regards,
    embpic



    •   AltAdvertisement

        
       

  8. #8
    Advanced Member level 5
    Points: 12,735, Level: 27
    Achievements:
    7 years registered

    Join Date
    Nov 2008
    Location
    Norwich, UK
    Posts
    2,123
    Helped
    598 / 598
    Points
    12,735
    Level
    27

    Re: Micro-controller to Micro-controller communication

    Quote Originally Posted by embpic View Post
    i think UART communication will be best if these are the free for that.Bcoz no need to consider master and slave.If they are engaged then u have to go for I2C, SPI or parellel port communiaction.
    the PIC32MX795F512L and PIC32MX360F512L have a Parallel Master Port for parallel communication - one also could use DMA for high speed transfers



--[[ ]]--