AN367 Explanation of Maxim RS-485 Features
AN367 Explanation of Maxim RS-485 Features
12Mbps, 2.5V supply, unit- Dec 01, 2000 load, ESD protection, protected, +/-15kV ESD, half-duplex, full-duplex, cable termination, fail-safe, low-power shutdown
Figure 1. Driver output waveform and FFT plot of a MAX3485E transmitting a 125kHz (250kbps) signal (a); driver output waveform and FFT plot of a MAX3483E transmitting a 125kHz (250kbps) signal (b).
Figure 2. A close-up of the time domain plots comparing the MAX3483 and the MAX3485 transmitting at 125kHz (250kbps) (a); a close-up of the time domain plots comparing the MAX3486 and the MAX3485 transmitting at 1.25MHz (2.5Mbps) (b). In Figure 1, both a and b show RS-485 signals transmitting at 250kbps (125kHz). Figure 1a was taken using a MAX3485E that is not slew-rate limited and is capable of speeds up to 12Mbps. Figure 1b was taken with the slew-rate limited MAX3483E that has a maximum data rate of 250kbps. In Figure 1a, the Fourier transform shows frequency components well past 2Mbps. These high-frequency components are necessary to produce the nice square edges needed for higher data rates. The Fourier transform of the slew-rate-limited part shows that the frequency components above 2MHz are virtually gone. With these higher-frequency components gone from the signal, a system designed around slew-rate-limited parts will tend to radiate less and will be less susceptible to mismatches in terminations.
Figure 3. A comparison of the rising edges on a MAX3486 (top, not slew-rate limited) and a MAX3483 (bottom,
slew-rate limited) using a 120-ohm impedance cable, improperly terminated with 220 ohms. Table 1 compares three different RS-485 parts. The MAX3485 is the fastest in the family and is capable of up to 12Mbps. The MAX3483 is slew-rate limited and will work to 250kbps. The MAX3486 is a compromise between the two at a maximum speed of 2.5Mbps. Table 1. Comparison of the Part That Is Not Slew-Rate Limited, the MAX3485, with Two Parts That Have Varying Degrees of Slew-Rate Limiting, the MAX3483 and the MAX3486 MAX3483 MAX3485 MAX3486 Maximum data rate Transition time Propagation delay .25Mbps 1200nS max 1500nS max 12Mbps 25nS max 35nS max 2.5Mbps 60nS max 70nS max
Full/Half Duplex
RS-485 is designed in such a way that only one transmitter on a twisted pair can be active at a time. With this constraint, in the system shown in Figure 4a, Box A can transmit data to Box B or Box B can transmit data to Box A, but both can't transmit data at the same time. This is referred to as "half duplex." A full-duplex system, on the other hand, would allow communications in both directions simultaneously. Full-duplex systems can be designed using RS-485, but require two twisted-pair cables running between nodes, as shown in Figure 4b. One twisted pair is dedicated to transmitting information in one direction, and the other twisted pair is dedicated to transmitting data in the opposite direction. Each system requires slightly different physical devices. Figure 5a shows a typical half-duplex part, and Figure 5b shows a typical full-duplex part.
Figure 5. A half-duplex part as used in a system (a); a full-duplex part as used in a system. Because the half-duplex part must be able to transmit and receive on the same twisted pair, the output pins of the transmitter and the input pins to the receiver are tied together. The full-duplex part has the transmitter and the receiver separated. In addition, the half-duplex part will always have a driver-enable (DE in the figure) pin. This is required because the transmitter must be tri-stated while receiving data. Full-duplex parts may or may not have a driver-enable pin, depending on whether or not it is designed for a multidrop system.
Software Selectable
As of January 1, 2001, Maxim will be making three parts that can run either full or half duplex. These are the MAX1485, the MAX1486, and the MAX3089. This can be valuable in systems that may need to connect to both full-duplex and half-duplex systems. Figure 6 shows the MAX1485. Note the pin labeled H/F*. When this pin is pulled low, the half-duplex receiver is disabled; when it is pulled high, the full-duplex receiver is disabled.
Ultimately, up to 32 unit loads can be connected to a single twisted pair. These 32 unit loads can be any combination of parts. For example, 32 x 1/4 unit-load parts plus 16 x 1 unit-load parts can be successfully used in a system. At the present time, Maxim makes devices that are 1 unit load, 1/4 unit load, and 1/8 unit load. Examples of each are shown in the table below. Table 3. Comparison of Three Maxim Parts with Different Unit Loads MAX3485 MAX487 MAX3085 Maximum number of tx/rec per twisted pair Unit loads 32 1 128 1/4 256 1/8
Fail-Safe Operation
Four common fault conditions can occur in an RS-485 system that can cause erroneous data. By having a specially designed input stage, Maxim's fail-safe parts are designed to prevent erroneous data in these conditions. The four common faults that an RS-485 system can experience are as follows:
q q q q
All transmitters in a system are in shutdown. The receiver is not connected to the cable. The cable has an open. The cable has a short.
RS-485 specifies that the input threshold of a receiver be between 200mV differential. This basically means that if the differential voltage on a receiver is 0V, the output state is indeterminate. Unfortunately, unless designed otherwise, this is exactly what happens in each of the faults listed above. Even worse, if a receiver has a threshold very close to 0V, any noise coupled into it may be enough to trip the threshold and cause the output to chatter. This chatter can appear as a signal and confuse the system. Maxim's fail-safe parts, such as the MAX3080, solve this problem by having receiver thresholds that are between -50mV and -200mV. With these parts, if 0V appears across the input stage due to a fault condition, the output is guaranteed to be a logic high. In addition, the receiver has a noise margin of 50mV. All of this is accomplished while still conforming to the RS-
485 specification.
Shutdown
The sole purpose of the shutdown feature is to save power. Putting a part into shutdown significantly lessens its supply current, thus reducing power consumption. An example of the power savings can be illustrated using the MAX3483. During normal operation, the typical supply current is 1.1mA. When in shutdown, the supply current is reduced to 2nA! One important aspect to consider when using shutdown is the time it takes to go from a shutdown state to a valid output. In the case of the MAX3483, this can take as long as 3S. The MAX3485 reduces this time to 900nS in the worst case. References 1. TIA/EIA-485-A Electrical Characteristics of Generators and Receivers for Use in Balanced Digital Multipoint Systems 2. TSB89 Application Guidelines for TIA/EIA-485-A
Application Note 367: http://www.maxim-ic.com/an367 More Information For technical questions and support: http://www.maxim-ic.com/support For samples: http://www.maxim-ic.com/samples Other questions and comments: http://www.maxim-ic.com/contact Related Parts MAX1485: MAX1486: MAX1487: MAX3080: MAX3089: MAX3471: MAX3483: QuickView -- Full (PDF) Data Sheet -- Free Samples QuickView -- Full (PDF) Data Sheet -- Free Samples QuickView -- Full (PDF) Data Sheet -- Free Samples QuickView -- Full (PDF) Data Sheet -- Free Samples QuickView -- Full (PDF) Data Sheet -- Free Samples QuickView -- Full (PDF) Data Sheet -- Free Samples QuickView -- Full (PDF) Data Sheet -- Free Samples
MAX3483E: QuickView -- Full (PDF) Data Sheet -- Free Samples MAX3485: QuickView -- Full (PDF) Data Sheet -- Free Samples MAX3485E: QuickView -- Full (PDF) Data Sheet -- Free Samples MAX3486: MAX481: MAX481E: MAX483E: MAX485: MAX485E: MAX487E: MAX489: QuickView -- Full (PDF) Data Sheet -- Free Samples QuickView -- Full (PDF) Data Sheet -- Free Samples QuickView -- Full (PDF) Data Sheet -- Free Samples QuickView -- Full (PDF) Data Sheet -- Free Samples QuickView -- Full (PDF) Data Sheet -- Free Samples QuickView -- Full (PDF) Data Sheet -- Free Samples QuickView -- Full (PDF) Data Sheet -- Free Samples QuickView -- Full (PDF) Data Sheet
AN367, AN 367, APP367, Appnote367, Appnote 367 Copyright by Maxim Integrated Products