What Is the MAX485? RS-485 Wiring and Termination

The MAX485 is a 5 V, half-duplex RS-485/RS-422 transceiver: it puts a microcontroller’s UART output onto a two-wire differential line (A and B) and converts the line signal back to a logic level. Four rules cover a correct connection: wire DI to TX and RO to RX; tie DE and RE̅ together and control direction with one pin; put a 120 Ω termination resistor only at the two physical ends of the line; and add bias resistors at a single point so receivers on an idle, terminated line do not float. The last rule is the one most often skipped, because the MAX485’s built-in fail-safe only protects a receiver whose inputs are open.
This article walks through the MAX485 pinout, the key datasheet values, how it differs from the pin-compatible SN75176B, and the bias resistor calculation step by step. All datasheet values come from the Maxim (Analog Devices) MAX481/MAX483/MAX485/MAX487–MAX491/MAX1487 and Texas Instruments SN65176B/SN75176B datasheets.
Why is RS-485 differential?
RS-485 carries data as the difference between two wires rather than as one wire’s voltage to ground. The driver drives A and B in opposite directions, and the receiver looks only at VA − VB. Noise that couples onto both wires along the cable does not change that difference, so the line reaches much farther than a single-ended UART signal. The MAX485 datasheet states that the RS-485/RS-422 standard covers line lengths up to 4000 feet (about 1200 m) and shows an example measurement over 4000 feet of 26 AWG twisted-pair cable.
The MAX485 receiver follows a simple rule: if A is at least 200 mV above B, RO is high (1); if A is at least 200 mV below B, RO is low (0). Inside the ±200 mV window between those limits the output is not guaranteed. That window is the reason bias resistors are needed, as explained below.
MAX485 pinout
The MAX485 has the same pinout in its 8-pin DIP and SO packages. Per Figure 1 and the Pin Description table in the datasheet:
| Pin | Name | Function |
|---|---|---|
| 1 | RO | Receiver output. High if A − B ≥ +200 mV, low if ≤ −200 mV. |
| 2 | RE̅ | Receiver enable, active low. RO is active when RE̅ = 0 and high impedance when RE̅ = 1. |
| 3 | DE | Driver enable, active high. A and B are driven when DE = 1 and high impedance when DE = 0. |
| 4 | DI | Driver input. DI = 1 drives A high and B low; DI = 0 does the opposite. |
| 5 | GND | Ground. |
| 6 | A | Noninverting receiver input and noninverting driver output. |
| 7 | B | Inverting receiver input and inverting driver output. |
| 8 | VCC | Supply, 4.75 V to 5.25 V. |

Because DE is active high and RE̅ is active low, tying the two pins together and driving them from one microcontroller pin is a common approach; TI’s SN75176B datasheet also notes that DE and RE̅ can be connected together for direction control. With the pin at 1 the driver is on and the receiver is off (transmit); with the pin at 0 the driver goes high impedance and the receiver is on (listen). In this arrangement RO is high impedance while transmitting, so adding a pull-up resistor on the RO line is good practice to keep the microcontroller’s RX input from floating.
Unlike the MAX481, MAX483 and MAX487 in the same family, the MAX485 has no low-power shutdown mode. With RE̅ = 1 and DE = 0 both outputs are high impedance, but supply current stays at its normal operating value.
Key parameters: MAX485 vs. SN75176B
The SN75176B is an older RS-485 transceiver with the same pinout as the MAX485 (1 R, 2 RE̅, 3 DE, 4 D, 5 GND, 6 A, 7 B, 8 VCC). In the same package type (both come in 8-pin DIP and SOIC versions) one can replace the other, but as the table shows, supply current and open-input behavior differ markedly.
| Parameter | MAX485 | SN75176B |
|---|---|---|
| Supply voltage (operating) | 4.75–5.25 V | 4.75–5.25 V |
| Supply voltage (absolute maximum) | 12 V | 7 V |
| Data rate | 2.5 Mbps (fMAX, min.) | Typical application circuit given for 10 Mbps or less |
| No-load supply current, outputs disabled | 300 µA typ., 500 µA max. | 26 mA typ., 35 mA max. |
| No-load supply current, outputs enabled | 500 µA typ., 900 µA max. | 42 mA typ. |
| Receiver threshold | ±200 mV | ±200 mV |
| Receiver hysteresis | 70 mV typ. | 50 mV typ. |
| Receiver input resistance | 12 kΩ min. (1 unit load) | 12 kΩ min. |
| Transceivers on the bus | 32 | 32 |
| Differential output, 54 Ω load | 1.5 V min. (2 × 27 Ω) | 1.5 V min., 2.5 V typ. |
| Receiver output with open inputs | 1 (guaranteed) | Unknown |
| Protection | Current limiting and thermal shutdown | Current limiting and thermal shutdown |
| Operating temperature | MAX485CPA+: 0 to +70 °C, MAX485EPA: −40 to +85 °C | SN75176B: 0 to +70 °C |
In battery-powered or many-node systems the difference is obvious: an SN75176B with its outputs disabled typically draws 26 mA, while a MAX485 draws 300 µA. The MAX485CPA+ and MAX485EPA are electrically the same device; the letter only indicates the temperature grade. For boards that will run in the field, in enclosures or in the cold, choose the E grade, which goes down to −40 °C.
Termination resistor: where and how many ohms?
On a long cable, a signal reaches the end of the line and reflects back. To prevent reflections both datasheets say the same thing: terminate the line at both ends with a resistor equal to the cable’s characteristic impedance, and keep stubs off the main line as short as possible. The typical half-duplex network diagram in the MAX485 datasheet uses 120 Ω at each end, which is also the common value for twisted-pair RS-485 cable.
Nodes other than the two ends get no termination resistor. Many off-the-shelf MAX485 modules carry an on-board termination resistor; if it is not removed from modules in the middle of the line, the total resistance drops and the driver is overloaded. Three 120 Ω resistors in parallel bring the line down to 40 Ω, which is below the 54 Ω test load at which the datasheet guarantees a 1.5 V output.
Why are bias resistors needed?
Only one node talks on an RS-485 line at a time. When nobody is talking, every driver is high impedance and the only thing holding A and B is the termination resistors. Two 120 Ω resistors hold the line close to a short, so A − B falls to about 0 V. That sits right in the middle of the receiver’s ±200 mV undefined window: RO can be 0 or 1 at random, can toggle with noise, and the UART can read it as a false start bit.
The MAX485 datasheet’s fail-safe feature does not cover this case. The function table guarantees RO = 1 only with “inputs open”, and an idle terminated line is not an open circuit. The SN75176B table lists the output as “unknown” even for open inputs, TI lists an external fail-safe implementation among its design requirements and notes that biasing can be added to establish +200 mV across A − B.
The fix is to pull A up to VCC with one resistor and B down to ground with a resistor of the same value, at a single point on the line. While the line is idle, this pair drives a small current through the termination resistors and holds A above B. With A − B positive, every receiver reads 1, which is the level a UART expects at idle.

Example calculation: 5 V, two 120 Ω terminations
On an idle line, the bias resistors (Rb) and the parallel combination of the two terminations (120 Ω ∥ 120 Ω = 60 Ω) form a series voltage divider:
VAB = VCC × 60 / (2 × Rb + 60)
To exceed the receiver’s 200 mV threshold, VAB ≥ 0.2 V is required. At 5 V this means 2 × Rb + 60 ≤ 1500 Ω, so Rb ≤ 720 Ω. Picking a value close to the limit is a bad idea: the supply can drop to 4.75 V, and the input resistance of the receivers on the line loads the divider slightly. Leaving margin, choose Rb = 470 Ω:
- At 5 V: VAB = 5 × 60 / (940 + 60) = 0.30 V
- At 4.75 V: VAB = 4.75 × 60 / 1000 = 0.285 V, 85 mV above the threshold
- Continuous idle current: 5 V / 1000 Ω = 5 mA
The bias resistors stay on the line while the driver is enabled. Differentially, the two Rb resistors appear in series through the supply as 940 Ω in parallel with 60 Ω: 60 ∥ 940 ≈ 56 Ω. On a line with few nodes (such as the three in the figure), that load is lighter than the 54 Ω test load at which the MAX485 guarantees at least 1.5 V differential output. With 32 full unit loads on the line, the receiver inputs add to this load and the total falls slightly below 54 Ω, so do not make the bias resistors smaller than needed. A larger Rb (for example 1 kΩ) reduces the current but drops VAB to about 0.15 V at 5 V, below the threshold.
Placing bias resistors at several nodes has an effect similar to adding extra terminations: the resistors end up in parallel, idle current rises and the driver load gets heavier. One bias point is enough for the whole line; it is usually the master node that controls the line.
What to watch when connecting to a microcontroller
- Direction-control timing. Pulling DE to 0 before the last byte has fully left the UART shift register cuts off that byte’s last bits. On AVR-based Arduino boards,
Serial.flush()waits until the last bit has been sent; drop DE after it returns. On other coresflush()may only wait for the buffer to empty; there, check the UART’s transmit-complete (TX complete) flag. The MAX485’s driver enable and disable times are 70 ns max; the real delay is the moment the software switches direction. - 3.3 V microcontrollers. The MAX485’s DI, DE and RE̅ inputs accept 2.0 V as high, so a 3.3 V output can drive them. In the other direction, RO can swing high up to the supply voltage, about 5 V (the datasheet only guarantees at least 3.5 V), so do not connect it directly to an RX input that is not 5 V tolerant. Use a voltage divider, or choose a transceiver that runs from 3.3 V, such as the MAX3485E.
- Common-mode range. The receiver thresholds are specified for common-mode voltages from −7 V to +12 V. To keep nodes powered from different supplies within this range, run a ground wire alongside A and B.
- Decoupling. Place a 100 nF ceramic capacitor right next to the VCC pin.
- Protection limits. The MAX485 driver limits its current under a short circuit (35–250 mA) and puts its outputs into high impedance if it overheats. This protection is meant for bus contention; for high-voltage transients that may couple onto the line, consider additional protection such as a TVS diode. The absolute maximum voltage on A and B is −8 V to +12.5 V.
Common mistakes
- Swapping A and B. Manufacturers do not always use the A/B labels the same way; some devices are marked D+ and D−, or just + and −. With the line reversed, the receiver reads every bit inverted and the idle bias level turns into 0. If nothing is received on the first try, swapping the two wires is a quick test.
- Leaving the termination resistor on every module. Four 120 Ω resistors on a four-module line add up to a 30 Ω load.
- No bias at all. On a short, unterminated cable the system seems to work thanks to the MAX485’s open-input fail-safe; once termination is added, false start bits and corrupted bytes start to appear at idle.
- Disabling DE too early. The last byte of the packet arrives incomplete, usually showing up as a checksum (CRC) error.
- Connecting to a remote device without a ground connection. A differential pair does not make the ground reference unnecessary.
Checking the line with a multimeter
When an RS-485 line will not communicate, three multimeter measurements are worth making before reaching for an oscilloscope:
- A–B resistance with power off. With 120 Ω at both ends you should read about 60 Ω (bias resistors and receiver inputs lower it slightly). Around 120 Ω means a single termination; 40 Ω or less means extra terminations.
- A–B voltage with power on and the line idle. With the red lead on A and the black lead on B, you should see a positive reading above +200 mV (about 0.3 V with this article’s 470 Ω example). About 0 V points to missing bias; a negative reading points to reversed wiring.
- A and B voltage to ground at each node. Both should stay between −7 V and +12 V; anything outside this range points to a common-ground problem.
Frequently asked questions
How many devices can a MAX485 support on one line?
The MAX485 receiver input resistance is at least 12 kΩ; that counts as one unit load, and up to 32 transceivers can be connected to the line. If you need more nodes, quarter-unit-load (48 kΩ) parts in the same family, such as the MAX487 and MAX1487, allow 128 nodes.
Can the MAX485 and SN75176B replace each other?
Their pinouts are the same, so yes, as long as the package type also matches. For example, the MAX485CPA+ is an 8-pin DIP and the SN75176BDR is an 8-pin SOIC. Two differences matter: the SN75176B typically draws 26–42 mA while the MAX485 draws 300–500 µA, and the SN75176B receiver output is unknown when its inputs are open. On a line with bias resistors, the second point causes no trouble.
Is a termination resistor required on a short line?
Termination is needed to suppress reflections on lines that are long relative to the signal’s edge time. Systems running without termination on a few meters of benchtop cable at a low baud rate are common, but in a design where the line may get longer or the speed higher, putting 120 Ω at both ends and sizing the bias accordingly is the safer choice.
Does the MAX485 work at 3.3 V?
No. The datasheet specifies a supply of 4.75–5.25 V. In a 3.3 V system you either power the MAX485 from 5 V and divide down its RO output, or use an RS-485 transceiver that runs from 3.3 V.
Which node should get the bias resistors?
One point on the line, usually next to the master device that controls the line. A is pulled up to VCC and B down to ground. That way A − B is positive while the line is idle and every receiver reads 1.
Conclusion
The MAX485 is a simple way to set up low-current RS-485 communication in 5 V systems: four logic pins go to the microcontroller and two line pins go to the twisted-pair cable. Most problems come from how the line is set up. Terminating only the two ends, adding a calculated bias such as 470 Ω at one point, and disabling DE only after the last byte has finished clear up most “works sometimes” faults. The MAX485CPA+, the wide-temperature MAX485EPA and the pin-compatible SN75176BDR are on their product pages, and other RS-485, RS-232 and CAN transceivers are in the drivers, receivers and transceivers category. For the RS-232 side of serial communication see our MAX232 article, and for protecting the line against overvoltage see our TVS diode selection article.
References
Ask Claude or ChatGPT about the parts in this article and their alternatives: your assistant brings them from our catalog with stock and prices.
How do I connect?Products in this article
-
$0.79MAX485CPA+
Analog Devices Inc. · EE01282IC TXRX RS485/RS422 LOWPWR 8-DIP290 In Stock -
$0.90MAX485EPA
Analog Devices Inc. · EE02052-10IC TXRX RS485/RS422 8-DIP5 In Stock -
$1.94SN75176BDR
Texas Instruments · EE00569IC TXRX DIFF BUSS 8SOIC14 In Stock
More from Product Reviews
- Product ReviewsIntermediate
CD4051 Analog Multiplexer: Pinout and Arduino Wiring
What is the CD4051 analog multiplexer? Pinout, an Arduino circuit for reading 8 analog channels, on-resistance math and datasheet values from two makers.
10 min read
- Product ReviewsAdvanced
Zero-Crossing Detector and Mains Sensing with the SFH620A
A 230 V zero-crossing detector built on the SFH620A AC-input optocoupler: pinout, datasheet ratings, series resistor and pull-up calculations, and a pulse-width estimate.
10 min read
- Product ReviewsIntermediate
What Is the ULN2003? Relay and Stepper Motor Driver Circuit
The ULN2003 is a 7-channel Darlington IC that drives relays and stepper motors. Pinout, the COM pin, a relay driver circuit and current limits,…
10 min read


