4
\$\begingroup\$

I am having a hard time understanding the RS485 internal circuit. The datasheets don't provide any explanation about the internal circuit. One thing I’m struggling to understand is the voltage level at pins A and B. Are these voltages referenced to the supply ground, or is there another reference point/? Additionally, would there be a short circuit if pin A were accidentally connected to ground? How are the voltages at these pins generated? I’m not sure if my question is detailed enough, but I hope this clarifies what I’m trying to ask.

Image source: Renesas - RS-485 Transceiver Tutorial

\$\endgroup\$
3
  • \$\begingroup\$ Just FYI if you want to understand RS-485 and are already reading Renesas files, they have a lot of whitepapers/appnotes/tutorials/whatever about different aspects of RS-485. You are simply reading a document about one specific topic, not a document about how or why the transceivers do what they do which seems to be what you are asking. \$\endgroup\$
    – Justme
    Commented 2 days ago
  • 1
    \$\begingroup\$ It's important to note that as Justme said in his answer, manufacturers almost never publish the internal schematic for their parts. Showing internal schematics used to be fairly common in the 70's, but has fallen out of favor. \$\endgroup\$
    – SteveSh
    Commented 2 days ago
  • \$\begingroup\$ This diagram here doesn't show a whole transceiver circuit - it shows the general idea of what the transceiver is doing. \$\endgroup\$ Commented yesterday

5 Answers 5

8
\$\begingroup\$

The internal circuits are not relevant and each chip or manufacturer may implement them in any way they see fit, as long as the chip meets RS-485 specifications or works better that required.

Basically a transmitter drives A and B pins in a H bridge fashion to output few volts with polarity chosen by state on data pin. The receiver then compares if voltage on wire A is above or below voltage of wire B to detect level of data sent.

Yes voltages on A and B are referenced to chip ground.

Yes there will be a short circuit if you short A or B to ground accidentally.

The voltages come from power supply. The power supply and ground pins are not drawn in the block diagram for simplicity, as every IC needs power supplies and ground to work.

\$\endgroup\$
6
  • \$\begingroup\$ Thanks for the explanation. I think I need to refresh my understanding of common-mode voltage. I thought the outputs were floating, so connecting one to GND wouldn’t damage the chip. Does this mean that if I take a single-ended measurement—connecting the oscilloscope's positive lead to A and the ground lead to B—it could actually damage the chip? \$\endgroup\$
    – NELD
    Commented 10 hours ago
  • \$\begingroup\$ @NELD Outputs A and B are not floating. When transmitting, one of the wires is connected to GND pin and the other wire to 5V supply pin. Yes if you connect scope ground lead to any of the data wire, it will short that wire to GND if your chip power supply is ground referenced to same ground as the scope, but not if the chip power supply is floating. For the damage, unlikely, many chips tolerate data wire being shorted to chip ground. But like I said, if chip ground is not scope ground then you can connect scope ground to data wire. I do not recommend it though, as it is not always possible. \$\endgroup\$
    – Justme
    Commented 10 hours ago
  • \$\begingroup\$ Thanks again! But would that kind of oscilloscope measurement even make sense if the ground reference isn’t the same? I mean, if the scope’s GND isn’t tied to the same reference as the RS485 circuit, wouldn’t the measurement be meaningless? \$\endgroup\$
    – NELD
    Commented 8 hours ago
  • \$\begingroup\$ @NELD No it would not be meaningless - assume the RS485 device is battery operated and has no connections whatsoever to any other device so it is fully isolated from everything in a plastic box. You can freely put a scope probe tip and ground to A and B if you like. \$\endgroup\$
    – Justme
    Commented 8 hours ago
  • \$\begingroup\$ So you’re saying I will still see a signal, but the reference would be either A or B, depending on where the scope’s GND is connected. So I’d just see one side of the signal instead of the differential signal? \$\endgroup\$
    – NELD
    Commented 8 hours ago
4
\$\begingroup\$

Your link is to a tutorial on the subject of RS-485 and the transceivers - but you're then asking questions about how a specific IC might work.

You'll get the information you need by looking at a datasheet for an RS-485 transceiver IC. An industry-commonplace example is the Texas Instruments THVD1410 which has the same internals as your diagram.

The diagram is only part of the detail of the IC, you can't use the diagram in isolation to understand the IC. You need to refer to the pin-out, description text and then to the electrical specifications. Between them, they cover it all.

\$\endgroup\$
3
\$\begingroup\$

One thing I’m struggling to understand is the voltage level at pins A and B. Are these voltages referenced to the supply ground

Yes.

What you are asking about is the input common mode voltage range. Wikipedia has a summary of the 485 specification, including a subsection on Signals. The A and B signals are referenced to GND, but can go below GND.

When the standard was written, the vast majority of logic circuits ran on +5 V and GND, so that is the "best case" for the A and B signal voltages. The standard allows for a pair of 0-to-5 V signal lines to ride on a DC offset of up to +/-7 V. Thus, the total allowable input voltage range is from -7 V to +12 V. This means that there can be a difference of up to +/-7 V between two system grounds and the transceiver chips will still operate correctly.

https://en.wikipedia.org/wiki/RS-485#Signals

\$\endgroup\$
2
\$\begingroup\$

One thing I’m struggling to understand is the voltage level at pins A and B. Are these voltages referenced to the supply ground, or is there another reference point/?

The A/B voltage levels are usually referenced to the ground pin on the IC. For an isolated RS485 chip it would be referenced to the ground pin on the same side as the A/B pins.

Additionally, would there be a short circuit if pin A were accidentally connected to ground?

Whether there will be a short circuit sort of depends on exactly which chip you are using. Some like the SN65HVD17xx are designed to survive shorts directly to power (up to +70V) or ground. In the case of the SN65HVD17xx the datasheet specifies that the chip has circuitry to limit the current in any shorts to 250mA.

Some chips have no such protection and shorting to power or ground will burn up the chip and the current will only be limited by the resistances of the transistors at the output stage (usually only a few ohms).

How are the voltages at these pins generated? That question is not answerable since each chip can choose its own implementation as long as they meet the RS485 specification with respect to voltage levels, drive strength, impedance, and timing.

Usually there will be some transistors at the output stage on the A/B pins. One to drive the pin high and another to drive it low, plus possibly some circuitry for slew rate limiting or fault protection.

\$\endgroup\$
0
\$\begingroup\$

The transmitter part of the tranceiver IC connects voltages to A and B - as explained in other answers, datasheets and application notes. The voltage polarity between A and B presents the state of the transmitted data bit.

Only one transmitter can talk at a time, the others must stay silent. Every appliance connected to the same cable must obey common "whose turn is it to talk"-rules.

To keep up the order the appliances must run properly designed communication software. The software controls tranceiver IC wire DE to connect the transmitter to A and B only when the appliance talks to other appliances. If 2 transmitters were connected at the same time the voltage between the wires couldn't follow neither of the transmitters. It would be a short circuit like connecting different voltage batteries in parallel.

Communication software design is a branch of engineering. It needs easily much more effort than designing properly working circuits. Fortunately programmers can reuse existing well proven software modules just like hardware designers can utilize component application notes.

\$\endgroup\$
2
  • 1
    \$\begingroup\$ This answer is going off on a tangent away from the question, which has to do with the internal circuitry (schematic) of a '485 device. \$\endgroup\$
    – SteveSh
    Commented 2 days ago
  • \$\begingroup\$ But let's hope it reveals the meaning of signal DE for the operation and usability of the tranceiver IC. \$\endgroup\$
    – oneprivate
    Commented 2 days ago

Your Answer

By clicking “Post Your Answer”, you agree to our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.