Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/03/08 22:27
Read: times


 
#159597 - Easy to control the RS-485 transeciever
Responding to: ???'s previous message
As Erik notes, the chip has enable signals, so don't focus too much on the logic table.

You have one signal that enables the transmitter part to start driving the bus. The serial out from your processor may then modulate the bus.

You have one other signal that enables the receiver part to feed data to your processor. The serial in on your processor may then hear anything that happens on the bus.

If you look closer, you'll notice that one enable signal is active high, and one is active low. That will allow you to control receiver and transmitter with a single processor pin. When your processor pin is high, you may transfer data in one direction, and when the pin is low, you may transfer data in the other direction.

If you select to use two processor pins instead - or hard-code the receive enable signal as active - then you can listen in on your own transmissions. This allows you to hear collisions. You might for example reprogram the receive processor pin from UART RX to normal I/O pin with pin-change interrupt and get an interrupt if the signal line changes state. When used as UART RX, the RX pin will not be able to produce an interrupt unless you get a full byte (or whatever word length you have configured) or you get a missing stop bit or similar.

The transceiver is easy to control, but the problem with multiple units on a bus is that you must either have a single master, or have logic to detect collisions from multiple masters starting to send at the same time. Collision detection must be very fast, which is a reason why a PC with an external RS232 to RS485 adapter don't work well as master in a multi-master system. Windows can't react fast enough to collisions.

List of 24 messages in thread
TopicAuthorDate
Interfacing RS485 (SN75176) with AT89c51            01/01/70 00:00      
   Select your components with care            01/01/70 00:00      
   Compnents are irreplacable !!            01/01/70 00:00      
      What do you miss in the datasheet            01/01/70 00:00      
      It is a simple chip            01/01/70 00:00      
   do not do rs485 without ...            01/01/70 00:00      
   Here's the info for starting            01/01/70 00:00      
   Controlling the sn75176!!            01/01/70 00:00      
      use the \"industrial strangth\" LT1785 instead            01/01/70 00:00      
         Easy to control the RS-485 transeciever            01/01/70 00:00      
            this is one of the biggest mistakes in RS485            01/01/70 00:00      
               Not so much specific for RS-485            01/01/70 00:00      
               might be???            01/01/70 00:00      
                  These are NOT RS485            01/01/70 00:00      
                     Lack of dominant bit state            01/01/70 00:00      
                        that's exactly why on RS485...            01/01/70 00:00      
                           Token-passing requires explicit or arbitrated mast            01/01/70 00:00      
                        the amazing thing is ...            01/01/70 00:00      
                           ... that it matter            01/01/70 00:00      
                              I am NOT talking about multiple masters, ...            01/01/70 00:00      
      follow the link            01/01/70 00:00      
         the two REAL 485 sources            01/01/70 00:00      
            Preview?            01/01/70 00:00      
               I do not know why            01/01/70 00:00      

Back to Subject List