RS-485

From RS-485
Revision as of 17:11, 30 April 2026 by Admin (talk | contribs)

RS-485 Standard Overview

Introduction

RS-485 (also known as TIA-485-A or EIA-485) is a balanced differential serial communication standard introduced in 1983 by the Telecommunications Industry Association (TIA). It defines only the physical layer (electrical characteristics), making it protocol-agnostic and highly flexible.

RS-485 is widely adopted in industrial automation, embedded systems, building management, and instrumentation networks due to its robustness, long-distance capability, and resilience to electromagnetic interference (EMI).

Unlike higher-level communication protocols, RS-485 does not define data framing, addressing, or error handling — these are implemented by protocols such as Modbus, BACnet, or proprietary systems.

Core Principles

  • Differential signaling over twisted pair
  • Multi-drop bus architecture
  • Half-duplex dominant communication (full-duplex optional)
  • Shared medium with controlled access (via protocol)

Key Features

Balanced Differential Signaling
Uses two lines (A and B). Signal is represented as voltage difference (Vdiff = VA − VB). Rejects common-mode noise.
Multipoint Capability
Standard supports 32 unit loads. Modern ICs allow 128, 256 or more nodes. Depends on receiver input impedance (1/8 UL, 1/4 UL, etc.)
Unit Load (UL) and Node Calculation
1 UL = 12 kΩ input impedance. Formula: Max nodes = 32 / (receiver UL rating)
Examples:
  • 1 UL receivers → 32 nodes
  • 1/4 UL (48 kΩ) → 128 nodes
  • 1/8 UL (96 kΩ) → 256 nodes
Data Rate vs Distance Tradeoff
  • 10 Mbps up to ~10–15 meters
  • 1 Mbps up to ~100 meters
  • 100 kbps up to ~1200 meters
Slew Rate Control
Some transceivers offer limited slew rate to reduce reflections and EMI on long cables or low-speed applications.
Topology
Linear bus (daisy chain) is REQUIRED for stability. Stub length should be minimized (< 30 cm typical). Star topology causes reflections and is strongly discouraged.
Termination
120 Ω resistors at BOTH ends of the bus. Matches cable impedance → reduces reflections.

Electrical Characteristics

Differential Voltage
  • Logic 1 (MARK): Vdiff > +200 mV
  • Logic 0 (SPACE): Vdiff < -200 mV
  • Typical driver output: ±1.5V to ±5V
Common-Mode Voltage Range
-7 V to +12 V (receiver must tolerate this range)
Receiver Sensitivity
Must detect signals as low as ±200 mV
Driver Output
Must provide at least 1.5 V across 54 Ω load
Driver Output Current
Up to 250 mA typical (check specific transceiver datasheet)
Three-State Drivers
High-Z (tri-state) allows bus sharing. Enables multiple transmitters without conflict.

Bus State Table

RS-485 Bus States
State Vdiff (A−B) Driver Logic Receiver Output
Mark (1) > +200 mV High 1
Space (0) < -200 mV Low 0
Idle (Open, with biasing) approx 0 V (biased to > +200 mV typically) Not defined 1 (if failsafe)

Bus Biasing (Failsafe)

Biasing ensures a defined logic state when no driver is active.

Typical implementation:

  • Pull-up resistor on line A (to VCC)
  • Pull-down resistor on line B (to GND)

Example resistor values: 680 Ω – 4.7 kΩ depending on system.

Without biasing: bus floats → noise → false triggering.

Modern transceivers often include failsafe receivers internally (guarantee logic 1 on open/short/idle bus).

Transmission Line Effects

At higher speeds or longer distances, RS-485 behaves as a transmission line:

  • Signal reflections occur if impedance mismatch exists
  • Propagation delay matters (~5 ns/m typical cable)
  • Ringing and overshoot can corrupt data

Best practices:

  • Always terminate correctly
  • Avoid stubs
  • Use controlled impedance cable (~120 Ω)

Grounding and Isolation

RS-485 is differential but NOT fully immune to ground differences.

Options:

  • Shared signal ground (recommended for small systems)
  • Isolated transceivers for:
    • Industrial environments
    • Long-distance links
    • Different power domains

Isolation methods:

  • Optocouplers
  • Digital isolators (e.g., ADuM series)

Half-Duplex vs Full-Duplex

Half-Duplex (2 wires)
Single pair (A/B). One device transmits at a time. Most common implementation.
Full-Duplex (4 wires)
Two differential pairs (A/B for TX, Z/Y for RX). Simultaneous TX/RX. Less common due to extra wiring.

Collision Avoidance

RS-485 does NOT include collision detection. Handled by protocol:

  • Master-slave (e.g., Modbus RTU)
  • Token passing
  • Time-slot scheduling

Incorrect handling leads to:

  • Bus contention
  • Signal corruption
  • Potential driver damage

Common Transceiver Chips

Popular RS-485 Transceivers
Model Unit Load Max Speed Special Feature
MAX485 1 2.5 Mbps Classic, widely available
SP485 1 5 Mbps Low cost
MAX487 1/4 250 kbps 128 nodes
MAX1487 1/4 2.5 Mbps 128 nodes
ADM2483 1/8 500 kbps Isolated, 256 nodes

Cable Selection

Recommended:

  • Twisted pair (mandatory)
  • Characteristic impedance: 100–120 Ω
  • Shielded cable for noisy environments

Examples:

  • CAT5e / CAT6 (works well)
  • Industrial RS-485 cable (e.g., Belden 9841)

Connectors

Common connector types:

  • Screw terminals
  • DB9 (industrial legacy – pinout NOT standardized!)
  • RJ45 (structured cabling reuse)

Warning: RS-485 does NOT define a connector or pinout. Always verify documentation.

Advantages

  • High immunity to EMI/RFI
  • Long cable lengths
  • Multi-drop capability
  • Low cost implementation
  • Widely supported hardware

Limitations

  • No built-in protocol
  • Requires careful wiring
  • Sensitive to topology errors (no star)
  • No automatic arbitration
  • Ground potential differences can cause issues

Applications

  • Industrial automation (Modbus RTU, PROFIBUS DP)
  • PLC and SCADA systems
  • Building automation (HVAC, lighting, access control)
  • Energy meters and smart grids
  • CNC machines and robotics
  • Remote sensor networks
  • Elevator and security systems

Comparison with Other Standards

Feature RS-232 RS-422 RS-485
Signaling Single-ended Differential Differential
Max Distance ~15 m ~1200 m ~1200 m
Nodes 1 driver, 1 receiver 1 driver, 10 receivers 32 drivers, 32 receivers (up to 256)
Noise Immunity Poor Good Excellent
Duplex Full (3 wires) Full (4 wires) Half (2 wires) or Full (4 wires)

Common Mistakes

  • Missing termination resistors
  • Using star topology
  • Long stubs
  • No biasing resistors
  • Mixing A/B polarity
  • Ignoring grounding
  • Using wrong cable (non-twisted)

Design Best Practices

  • Use termination ONLY at bus ends
  • Keep stubs as short as possible
  • Add biasing resistors if needed (one location only)
  • Use isolated transceivers in harsh environments
  • Validate signal with oscilloscope
  • Label A/B clearly (vendors may swap naming!)

Typical Network Layout

[Master] --- Term --- Device --- Device --- Device --- Term ---
             120Ω                              (last device) 120Ω
               |
            (biasing optional, one location only)

Debugging Tips

  • Measure differential voltage (A-B)
  • Check idle state (should be stable, typically >200 mV with biasing)
  • Look for reflections on oscilloscope
  • Verify polarity consistency (A to A, B to B throughout)
  • Disconnect nodes to isolate faults
  • Verify termination resistance across A-B (should be ~60 Ω if both ends terminated)

Conclusion

RS-485 remains one of the most reliable and widely used physical layer standards for industrial and embedded communication. Its simplicity, robustness, and flexibility ensure its continued relevance even in modern systems alongside Ethernet and wireless technologies.

Proper design — especially topology, termination, and grounding — is critical to achieving stable and high-performance communication.

This page serves as the central reference for RS-485 and links to detailed subtopics such as termination, biasing, isolation, and protocol implementations.

See Also

External References

  • TIA/EIA-485-A Standard (1998)
  • Application notes: Texas Instruments (SLLA272D), Analog Devices (AN-960), Maxim (AN-723)