RS485 board/The 120 Ω resistor/05. The 120 Ω resistor
The 120 Ω resistor · 05 of 11

The 120 Ω resistor

A long cable sends an edge back from its far end like an echo, and the echo arrives as noise on the bits that follow. A resistor across A and B equal to the cable's own impedance, about 120 Ω, absorbs the edge instead. Every board ships with one fitted, and on a real bus only two should keep it.

An edge travels

When the driver switches A and B, the change does not appear along the whole cable at once. It travels, at about two thirds of the speed of light: roughly 5 ns for every metre. At the far end it has to go somewhere.

If the far end is open, the edge reflects and comes back, then reflects again off the driver, a little smaller each time, until it dies away. At the receiver this looks like a step that overshoots and rings.

The far end of the cable
reflected
Far end
Cable
Round trip
1.0 µs
Ringing lasts
about 3.0 µs
One bit, 9600 · 115200
104 µs · 8.7 µs
At 100 m it starts to count. The ringing lasts about 3.0 µs: nothing at 9600 baud, but a third of a bit at 115200, and the receiver may read the ring as data.

A resistor that matches the cable

A cable has an impedance of its own, set by the wires and how closely they are twisted; for twisted pair it is about 100 to 120 Ω. An edge arriving at a resistor of that value is taken completely, as if the cable carried on for ever. Nothing comes back. That is termination, and the resistor is the terminator.

RS485 is terminated at both ends of the cable, because either end's board may be the one talking, and an edge heads both ways from a board in the middle.

When it matters

The echoes last a few round trips of the cable. Whether that hurts depends on how long a bit is:

CableRound tripRinging, aboutOne bit at 9600One bit at 115200
1 m0.01 µs0.03 µs104 µs8.7 µs
100 m1 µs3 µs104 µs8.7 µs
1000 m10 µs30 µs104 µs8.7 µs

On a desk, it does not. On a long cable at a high baud rate, the ringing from one bit is still going when the next is read. A slower baud rate is the other cure, and many long industrial buses run at 9600 for that reason.

Where it is on the board

The MAX3485 board from directly above: the screw terminal across the top, and on the right-hand edge two white boxes, the upper printed TR 120R holding one small black resistor, the lower printed RE-DE holding another, above the RE and DE holes at the bottom right.
TR 120R, upper right: the terminator. RE-DE below it is the link from the last article.

The terminator is the small resistor in the box printed TR 120R, wired straight across A and B. It is on every board in the box, which is right for the two boards at the ends of a cable and wrong for every board in between.

When it does not work

My two boards on the desk work with or without the 120 Ω.

They will. On a metre of wire the echoes are over in nanoseconds, far inside one bit. The resistor starts to matter at tens to hundreds of metres, or at high baud rates. On a bench, leaving both fitted is fine.

Is a 100 Ω or 150 Ω resistor close enough?

Yes. The aim is to match the cable, and twisted-pair cables run about 100 to 120 Ω. Anything in that neighbourhood absorbs nearly all of the edge; what matters far more is that there is one at each end and none in between.

Which resistor on the board is it?

The one inside the white box printed TR 120R, on the right-hand side near the terminal. It is marked 121, which is how a 120 Ω chip resistor is printed: 12 followed by one zero.

Where this goes next

Why a bus built straight from the box has too many, and how to take them off.

Only the two ends keep it

Edit this page — content/books/rs485/the-120-ohm-resistor.mdx

Community

Questions about this product

See what other owners have asked, and read their solutions.

This page covers several products. Choose yours to see the right discussions.

Discuss this article

Ask about this page. The answer stays here, on the page it belongs to, for whoever hits the same wall next.

Browse Modules and blocks on the forum