Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

rs485 question - broadcast data

Status
Not open for further replies.

macer_0001

Member level 1
Joined
Aug 15, 2009
Messages
36
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Manila
Activity points
1,491
Hi,

I need to know if it is possible to broadcast the data of master microcontroller to all microcontrollers connected on bus using rs485? Or it is limited to one address at a time?

Thank you
 

you could program the master to transmit a 'general' command and all other slaves conditioned to accept the transmission.
Totally depended on how you write up your firmware.
 

Thank for your response. may i ask some sample code? I am using assembly language in programming 8051.
 

if data were to be distributed over a distance, i don't think SPI or I2C would be suitable
 

If your other microcontrollers are far away from master, then RS485 is good choice.
About your basic question RS485 is meant for multipoint communication,
When you transmit data on RS485 bus, every controller listen, i.e. every controller receives the data. Now its upto ur algorithm and device adressing, which will decide if u want to process data or not.
For sample programm, you just write in slave controller common address like 0x00,
means if incoming data is for 0x00 device it will receive and process the data, it is called broadcasting.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top