hed
Newbie level 3
Hi guys,
i'm building a system where several 8052 will communicate with each other by sending messages.
The distance between each microcontroller will vary between 1 meter and 50 meters. There will be a master microcontroller which will send messages to all other (slave) microcontrollers. The slave microcontrollers will also be able to reply to the master. However, there will be collisions when 2 slaves respond to the master at the same time.
I'm thinking of some kind of RS-232 bus using the built-in UART of the 8052. Can i simply connect all Tx pins of slaves to Rx pin master and Tx pin of master to all Rx pins of slaves? Will this design work?
Can anybody suggest how this can be done. Or else, if there are some other ways to design this.
Many Thanks
Hed
i'm building a system where several 8052 will communicate with each other by sending messages.
The distance between each microcontroller will vary between 1 meter and 50 meters. There will be a master microcontroller which will send messages to all other (slave) microcontrollers. The slave microcontrollers will also be able to reply to the master. However, there will be collisions when 2 slaves respond to the master at the same time.
I'm thinking of some kind of RS-232 bus using the built-in UART of the 8052. Can i simply connect all Tx pins of slaves to Rx pin master and Tx pin of master to all Rx pins of slaves? Will this design work?
Can anybody suggest how this can be done. Or else, if there are some other ways to design this.
Many Thanks
Hed