This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Rs485

Hello,

Maybe this is not a question for this forum, but I still give it a try:

I would like to have different 8051's (or derivatives) "talking to each other" via a serial protocol. One uC would be a 'master'. The other ones should trigger the master when some info (decoded RC5-signal) is available.

Since the different devices will be put quite far from each other (several meters, up to maybe 25 meters each), I think the RS232 protocol is not suitable anymore for this (distance too long).

Therefore, I was thinking to use RS485, but I have to be honest: I don't know a lot of this protocol/standard.

Can someone tell me where to find useful information about this protocol? Eventually sites where some C source code for the protocol is already available to give it a start?

Does Keil have some useful example programs next to the tig amounts of other examples already available? I didn't find anything regarding RS485 myself on the site, but there might be some 'hidden places' with more useful information...

Any help would be highly appreciated.

Rgds,

--Geert

Parents
  • Review the 9-Bit Serial data mode for most 80C51 family. With the ninth bit you can build a simple protocol checking the ninth bit to define an address byte. Working with a single master and multi units on a bus, the RS485 driver devices provide the support for bus loading.
    With an RS232 driver, one device turned off will block the serial bus but RS485 devices will isolate each unpowered driver.
    The older device was a sn75176 (TI) but I'm sure I have read of newer devices from Maxim/Dallas Semi about RS485 drivers chips supporting four to eight differential lines.
    WATCH the pull up value ranges as devices are added or removed from the seral bus. Bradford

Reply
  • Review the 9-Bit Serial data mode for most 80C51 family. With the ninth bit you can build a simple protocol checking the ninth bit to define an address byte. Working with a single master and multi units on a bus, the RS485 driver devices provide the support for bus loading.
    With an RS232 driver, one device turned off will block the serial bus but RS485 devices will isolate each unpowered driver.
    The older device was a sn75176 (TI) but I'm sure I have read of newer devices from Maxim/Dallas Semi about RS485 drivers chips supporting four to eight differential lines.
    WATCH the pull up value ranges as devices are added or removed from the seral bus. Bradford

Children