Addressing Microcontrollers in a Network

Thread Starter

Prajeeshdev

Joined May 26, 2013
1
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
 

kubeek

Joined Sep 20, 2005
5,796
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.
 
Top