Addressing Microcontrollers in a Network

Discussion in 'Embedded Systems and Microcontrollers' started by Prajeeshdev, May 26, 2013.

  1. Prajeeshdev

    Thread Starter New Member

    May 26, 2013
    1
    0
    Hi,
    I want to use three micro controllers (89C52) for a project. And these need to communicate with each other and with a software via RS485. So how can I address these μCs in the network, like μC1,2,3 or any binary/hex IDs? :rolleyes:

    Thanks,
    Dev
     
  2. MrChips

    Moderator

    Oct 2, 2009
    12,435
    3,360
    Firstly, you design a communications protocol.
     
  3. kubeek

    AAC Fanatic!

    Sep 20, 2005
    4,670
    804
    In my last project I had to make a set of modules such that whichever way you stack them together, their addres will be in order from zero to n. They were connected in a line, so each module had two uarts that connected to neighbors. The addressing was done by subtracting 1 on each packet passing, so if you sand module3 set port a, the module would either pass that massage further as module2 set port a, or if the number is zero it would execute the command.
     
    Prajeeshdev likes this.
  4. MrChips

    Moderator

    Oct 2, 2009
    12,435
    3,360
    I simply assign a unique number to each module.
     
  5. GetDeviceInfo

    Senior Member

    Jun 7, 2009
    1,571
    230
    check your devices spec sheet, and it's variants. Many have the ability to interrupt on a specified address receipt.
     
Loading...