1
\$\begingroup\$

I am planning to use RS-485 on a network and I do not have too much experience on the standard but I understand that termination resistance must be provided for considerable lengths and transmission speeds. For CAT5e the impedance matching value is typically 120 ohms. If the impedance varies depending on the cable length, then:

  1. Does the impedance matching resistor's value needs to be adjusted depending on the length of wire/speed of transmission, or can this be "activated" as a fixed value (120 ohms) whenever the length of cable increases or the user desires to increase the transmission speed?

  2. Is it possible to provide electronic activation of the IM resistor using bipolar transistors? I have in mind something like this:

enter image description here

  1. As the activation of the transistor may depend on how the polarity is present at the A/B lines of the RS-485, I figure it could be possible to activate a set of resistors via transistors managed by a microcontroller GPIO. Is this correct? if not, can you share a specific circuit arrangement for this?

If the resistance needs to be controlled dynamically (i.e. depending on length, wire type CAT5e = 120 ohms and CAT6 typically 100 ohms) then depending on a command, I figure I can program the 100 ohm IM resistor set or the 120 ohm set if I can use a controllable termination.

I am planning on using MAX3081 with low bias for communications. The recommendation on their diagrams is to use terminators across A/B lines, not from signal to ground (in case someone asks).

enter image description here

Let me know your thoughts/recommendations on this.

\$\endgroup\$
6
  • 1
    \$\begingroup\$ Is your question how to design a product that can be used with either CAT5e or CAT6? \$\endgroup\$
    – ErikR
    Commented May 24, 2021 at 22:09
  • \$\begingroup\$ @jsotola Yes I changed the schematic to force the signal through the resistor \$\endgroup\$
    – Ed Zamper
    Commented May 24, 2021 at 23:10
  • \$\begingroup\$ Basicallly yes @ErikR. How to be able to implement electronic terminator R switching depending on the type of cable. \$\endgroup\$
    – Ed Zamper
    Commented May 24, 2021 at 23:11
  • \$\begingroup\$ For CAT5e and CAT6 I would just split the difference and use 110R. If the cable impedances were vastly different perhaps provide a physical configuration switch or jumper? \$\endgroup\$
    – ErikR
    Commented May 24, 2021 at 23:14
  • \$\begingroup\$ Ok, researching the problem points to using analog or bus switches. See the last response in this TI forum discussion \$\endgroup\$
    – ErikR
    Commented May 24, 2021 at 23:39

2 Answers 2

1
\$\begingroup\$

The impedance should not vary with the length of the cable. It is a combination of the cable inductance with its capacitance:

enter image description here From this article.

See also excellent answers here.

There are ICs with "Activatable" termination (such as LTM2881) but that is for connections that are not point to point.

enter image description here

Your proposed "solution" would just try to short the RS-485 lines to ground directly, not provide a controlled termination. And the 120R resistors are always connected. Also note that "A" is not Tx and "B" is not Rx. "B" is just "A" inverted.

enter image description here

\$\endgroup\$
6
  • \$\begingroup\$ OK you are right on the schema. I edited to show a different schematic that forces use of the resistor, though I suspect it wont' work either. What solution do you propose? \$\endgroup\$
    – Ed Zamper
    Commented May 24, 2021 at 23:08
  • \$\begingroup\$ @EdZamper - What distances are you working with? MAX3081 isn't terribly fast so unless you are trying to solve a very specific problem I'd just use either 100R or 120R (or anything in between). Get some of the cable you want to work with (at the lengths you need), try the different termination values and check them on the scope. Lengths wont change the impedance but will change the effect of reflections. \$\endgroup\$
    – Wesley Lee
    Commented May 24, 2021 at 23:34
  • \$\begingroup\$ It is a group of controllers for which the user can set up the ranges as needed. from 50 mts to 1200 metres. I got a 250 ft CATe5, bridged one side and inject current @5VDC. gave me 40 ohms, so I'm not sure of the calculations, I saw the document you shared and seems that is not the correct way to measure the impedance. I am a bit concerned about your statement that length does not increase impedance. With length the amount of copper increases and resistance on the porous atomic material should increase, but the diagram states otherwise. \$\endgroup\$
    – Ed Zamper
    Commented May 25, 2021 at 0:11
  • \$\begingroup\$ @EdZamper - Impedance is not DC resistance.. \$\endgroup\$
    – Wesley Lee
    Commented May 25, 2021 at 0:21
  • 2
    \$\begingroup\$ Characterisitc impedance is resistance to signals, not to DC current, it's measured in ohms. "capacitance and inductance effects" can also be computed in ohms but the result is a complex number, and is often frequency dependant. With transmission lines however the result tends to be mostly real and not highly frequency dependant. en.wikipedia.org/wiki/Characteristic_impedance \$\endgroup\$ Commented May 25, 2021 at 3:00
0
\$\begingroup\$

the tricky part with your updated schematic would be getting the voltage on GPIO1 and GPIO2 to a voltage somewhere between A+0.6V and B+0.6V the absolute bus voltages in RS485 are poorly constrained. (could be anywhere +/- 12V)

maybe something like this instead:

schematic

simulate this circuit – Schematic created using CircuitLab

this uses a current source based on the GPIO voltage, Q5 and R4 to feed a current mirror Q3 Q4 which sends the current to bias the termination transistor on.

Only one transistor is used exploiting inverted beta.

If you don't have a 12V supply handy, perhaps use an optocoupler instead.

\$\endgroup\$
2
  • \$\begingroup\$ Mmh... this circuit looks sleek, thanks!. I was already thinking on using a couple of these analog switches datasheets.maximintegrated.com/en/ds/MAX14759-MAX14763.pdf which should be more stable in the long run. \$\endgroup\$
    – Ed Zamper
    Commented May 26, 2021 at 3:03
  • \$\begingroup\$ Maxim makes good parts, but also has a reputation for discontinuing them if they don't sell enough. $3.19 at DK it might be cheaper to use a reed relay, or a small MOS based SSR like Panasonic AQY282SX (but they have a higher supply current) \$\endgroup\$ Commented May 26, 2021 at 4:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.