RS-485 basics: the RS-485 receiver


The last post in this series described the structure and basic operation of the RS-485 driver. In this post, I’ll discuss the RS-485 receiver and the relevant parameters in the RS-485 standard.

RS-485 transceivers such as the SN65HVD7x half-duplex family have an equivalent receiver input schematic like the one shown in Figure 1. 1) The receiver input circuitry consists of electro-static discharge (ESD) protection, a resistor-divider network, and a biasing current, all of which play a role in shaping the magnitude and common mode voltage that reaches the differential comparator.

Figure 1: Differential receiver input structure

ESD protection

The most important thing to note in terms of ESD protection for half-duplex transceivers is that the driver and receiver share the same ESD protection, saving space. But for a full-duplex transceiver, both the driver (Y and Z pins) and receiver (A and B pins) need independent ESD protection. This means you’ll need twice the area to support ESD protection.

Resistor-divider network

The resistor-divider network on the A and B inputs serves two functions. The first function is to attenuate large signals that are beyond the range of the receiver’s supply voltage. This attenuation factor is necessary because the RS-485 standard states that voltages as low as -7V and as high as +12V can exist on the bus terminals to account for ground-potential differences that may exist between transceivers on a shared network. These high voltages need attenuation down to voltages that 3.3V or 5V transceivers can handle. A typical attenuation factor is on the order of 10-to-1, greatly reducing the magnitude of the voltages seen internally at the comparator.

The second important function of the resistor-divider network is to bias the bus voltages toward VCC/2. This is necessary because simply attenuating a negative signal will not bring the voltage between the receiver’s local ground and VCC. Attenuating the signal and biasing it toward VCC/2 prevents the inputs of the comparator from getting saturated; thus enabling the comparator to properly evaluate the differential voltage between the A and B terminals.

This ability to bias the voltages also allows the system to perform without a common ground connection between the remote RS-485 driver’s ground and the local RS-485 receiver’s ground. Figure 2 shows how an input signal is both attenuated and biased from the bus terminals to the input of the comparator through the resistor-divider network.

Figure 2: Receiver input-voltage attenuation

The series combination of R1 and R3 || R5 (resistors R3 and R5 in parallel) is the primary factor that determines the receiver’s input impedance. The RS-485 standard specifies that the input leakage current of a compliant receiver must remain within the shaded region shown in Figure 3 when applying -7V to +12V to the input terminals for both powered and unpowered conditions.

Figure 3: RS-485 receiver input I-V characteristic

The trade-off that exists with receiver attenuator design is that in order to lower the leakage current, higher resistor values must be used, which increases the size of the resistors in the attenuator. Larger-sized components create a more expensive die and more parasitic capacitance. This stray capacitance and the input capacitance of the comparator sit in parallel to the resistance of the attenuator, creating a low-pass filter, which in turn limits the receiver’s maximum bandwidth. Therefore, there is a balance between the input leakage current and resistor values and the bandwidth and size of the attenuator. With the SN65HVD78 device, which is the highest speed device in the SN65HVD7x family, you can see it also has the highest bus input-leakage current due to the lower resistor-value attenuator circuit that was needed.

Biasing current

Figure 4 shows the effect of the current source connected between the B input terminal of the comparator and ground. By using the superposition principle, you can see that the current source will cause a voltage drop across R4 and R6 connected to the negative-input terminal of the comparator. This creates a fail-safe bias voltage that causes the negative terminal to have a lower voltage than the positive terminal and the output of the comparator to be in a known high state when applying a 0V differential voltage to the A and B pins.

This fail-safe biasing guarantees that the R output will be high in the presence of bus idle or bus short-circuit conditions. In the VIT numbers for the SN65HVD7x family, the positive threshold has a typical value of -70mV and the negative threshold is typically -150mV. Without fail-safe biasing, transceiver thresholds would be centered around 0V and in an indeterminate state with a 0V differential input voltage.

Figure 4: Effect of the offset bias current

In summary, understanding the basic input structures of an RS-485 receiver should help you understand important receiver electrical specifications like input-leakage current and positive and negative input thresholds. I hope you now understand the trade-offs that exist and where the numbers come from.

Stay tuned for the next RS-485 blog, which will cover the topic of unit loading. As always, feel free to post any comments or questions below.

Additional resources:

  • I find it useful to know what the values of R1 .. R6 actually are. The datasheet shows the values of other resistors, see figures 25 and 26, but not for the resistors in Figure 28. I wonder why.

    You also write that R3/R5 and R4/R6 bias the inputs towards VCC/2. Does that mean that R3 = R5 and R4 = R6? Or actually R3 = R4 = R5 = R6? Otherwise the bias wouldn't be VCC/2, in which case, again, it would be useful to know what the bias actually is.

    Just giving the values of the resistors would make this all simple to calculate.

    Thanks!

  • Hi Stefan,

    I am very sorry for the delay in responding, I was out of the office for vacation and then this email got buried in my inbox.

    I have the SN65HVD72/75/78 datasheet (www.ti.com/.../sn65hvd72.pdf) open and I the figure numbers you mentioned are not aligning with your text. Can you clarify what datasheet you are looking at? You can just respond with the literature number in the top right corner of the document (usually starts with SLLxx##).

    To address your question, the resistor values will vary family to family, and device to device, and we usually do not post the actual values as this gets more into the inner-workings of the devices. Additionally, these values will vary with temperature and process corners as well.

    In terms of which resistors are set equal, since you want to bias both bus pins to the same voltage, each pair of resistors in the figure above need to be equal to each other (R1 = R2, R3 = R4, and R5 = R6).

    If you would like more details on specifics for a particular device, I would recommend first searching for the information in the Industrial Interface forum, and then if you cannot find the information, posting it in the forum. The link for the forum is below:

    e2e.ti.com/.../

    Sorry again for the delay, and sorry I wasn't able to directly give you what you were after.

    John