
Serial communication sends data one bit at a time over a communication path. Rather than placing several bits on separate conductors at the same moment, the transmitter creates a timed sequence of logic levels on one signal path. The receiver observes that sequence and reconstructs the transmitted bytes.
This arrangement can reduce wiring, connector size, circuit complexity, and overall cost. It is often a sensible choice when devices are connected by a short cable, when the data volume is moderate, or when a predictable interface is more valuable than maximum throughput.
The phrase “serial communication” describes the order in which bits travel. It does not identify the complete interface or protocol. UART defines a common method for generating and interpreting asynchronous frames. RS-232, RS-422, and RS-485 describe electrical signaling and wiring behavior. USB, SPI, and I2C are also serial interfaces, but they use different rules for timing, addressing, and physical signaling.
A dependable design keeps these layers separate:
• Data format defines how bits and bytes are arranged.
• The protocol defines messages, commands, addresses, responses, and error handling.
• The electrical interface defines voltage levels, polarity, cable behavior, and signal drivers.
Confusing these layers can produce a design that appears correct in software but fails as soon as it is connected to real hardware.
Asynchronous communication does not use a clock line shared by the transmitter and receiver. Each device generates its own local clock, and both devices agree beforehand on the duration of each bit.
Since the clock is not transmitted with the data, the frame must contain enough timing information for the receiver to locate each bit. A typical UART frame contains an idle state, a start bit, data bits, an optional parity bit, and one or more stop bits.

Before a frame begins, the signal normally remains in the idle state. In many UART systems, the idle state is logic high.
This quiet interval gives the receiver a stable electrical condition and allows it to distinguish an active frame from a line that is currently unused. If the line never reaches a valid idle level, the receiver may interpret noise or an incomplete transmission as a new frame.
The transmitter begins a frame by moving the signal from the idle state to the active state, commonly from high to low. This transition forms the start bit.
The receiver watches for the transition and then waits approximately half of one bit period before sampling near the center of the start bit. Sampling near the center gives the receiver more tolerance against small timing errors and helps it reject a brief disturbance that does not represent a valid frame.
If the sampled level does not match the expected start-bit state, the receiver can discard the suspected frame and continue searching for another transition.
After the start bit, the transmitter sends the data bits. Common configurations use 5, 6, 7, or 8 data bits, while some systems support 9-bit operation.
UART data is commonly transmitted least significant bit first. The receiver must use the same bit order as the transmitter. Otherwise, the signal may be electrically clean while every reconstructed value is wrong.
Most embedded systems use 8 data bits because this maps directly to one byte. Older equipment and specialized protocols may use 7 data bits, particularly when the original application used a limited character set.
The data-bit count should be treated as part of the protocol configuration rather than as a minor port setting. A mismatch can shift the interpretation of every field that follows.
A parity bit may follow the data bits. It provides a limited error-detection method by requiring the total number of logic 1 bits in the protected portion of the frame to follow a selected rule.
Common parity modes include:
Even parity: The transmitter chooses the parity bit so that the total number of 1 bits is even.
Odd parity: The transmitter chooses the parity bit so that the total number of 1 bits is odd.
No parity: The frame contains no parity bit, which leaves more space for payload data but removes this basic check.
Parity can detect many single-bit errors, but it does not detect every multiple-bit error. It does not repair damaged data, identify the location of a fault, or prove that the complete message arrived correctly.
Protocols with stronger integrity requirements can add the following mechanisms:
• A checksum.
• A cyclic redundancy check, or CRC.
• A sequence number.
• An acknowledgment.
• A retransmission rule.
The appropriate choice depends on the consequences of corrupted data. A display update may tolerate a discarded frame, while a control command may require confirmation and a defined recovery response.
One or more stop bits mark the end of the frame. During this interval, the line returns to the idle state.
The stop-bit period gives the receiver time to finish processing the current frame and prepare for the next one. Configurations with 1, 1.5, or 2 stop bits are common, depending on the data format and equipment.
Additional stop bits slightly reduce the effective data rate. They can also provide more timing tolerance and improve compatibility with hardware that needs extra time between frames.
A receiver that does not detect the expected stop-bit level reports a framing error. That error may come from a configuration mismatch, clock disagreement, electrical noise, or a distorted signal.
Baud rate specifies the number of signaling symbols transmitted per second. In ordinary binary UART communication, one symbol represents one bit, so the baud rate and bit rate have the same numerical value. This relationship does not apply to every serial technology because some systems encode multiple bits in one symbol.
Common UART rates include the following:
• 9,600 baud
• 19,200 baud
• 38,400 baud
• 57,600 baud
• 115,200 baud
Both devices must use compatible timing. A transmitter configured for 115,200 baud cannot communicate correctly with a receiver configured for 9,600 baud.
Timing error can accumulate throughout a frame. The receiver normally resynchronizes when it detects the start bit, but it does not receive a new timing reference for every data bit. If the transmitter and receiver clocks differ too much, later samples move toward the boundaries between bits.
Once a sample occurs too close to a boundary, the receiver may capture the wrong value. The resulting symptoms can include corrupted bytes, framing errors, failed checksums, and intermittent behavior that is difficult to reproduce.
Actual timing tolerance depends on the UART architecture, oversampling method, frame length, clock source, and signal quality.
An internal oscillator may work well at moderate speeds and with short frames. Its frequency can still change with temperature, supply voltage, manufacturing variation, and device age. Those changes may remain invisible during a brief bench test and appear only after the product is installed.
A common field failure follows this pattern:
• The link works during development.
• The same configuration fails at a customer site.
• The difference comes from clock accuracy, cable length, supply quality, grounding, temperature, or nearby electrical equipment.
For dependable products, the clock error budget should be calculated and tested rather than assumed. The analysis should include the fastest frame, the selected baud rate, the oscillator tolerance on both devices, and the operating conditions expected in the field.
Baud rate does not equal useful application throughput because each data byte carries framing overhead.
For an 8-N-1 configuration, each frame contains the following:
• 1 start bit
• 8 data bits
• No parity bit
• 1 stop bit
The frame therefore contains 10 transmitted bits for every 8 payload bits. At 9,600 baud, the theoretical payload rate is approximately 960 bytes per second before protocol delays, pauses, acknowledgments, and flow-control effects.
The general relationship is:
Effective byte rate = Baud rate / Total bits per frame
A more detailed estimate can account for protocol overhead:
Application data rate = Baud rate x Payload bytes / Total transmitted bits
Increasing the baud rate reduces transmission time, but it also narrows the tolerance for clock error, electromagnetic interference, signal distortion, and grounding problems. A higher setting can therefore improve one part of the system while exposing weaknesses elsewhere.
The transmitter and receiver must agree on the complete frame format. Matching only the baud rate does not establish a working link.
The configuration should be recorded explicitly, tested on both devices, and included in service documentation.

Baud Rate: Both sides must use compatible bit timing. The selected value should fit the clock accuracy, cable conditions, and required response time.
Data Length: Both sides must expect the same number of data bits. A mismatch can cause the receiver to treat part of the next field as data or lose alignment with the frame.
Parity Mode: Both sides must use the same parity setting. A transmitter using even parity will not communicate correctly with a receiver expecting odd parity or no parity.
Stop-Bit Count: Both sides must agree on the number of stop bits. An incorrect setting may produce framing errors or prevent reliable transmission of consecutive frames.
Bit Order and Protocol Meaning:
The UART can reconstruct every byte successfully while the application still interprets the message incorrectly. The devices must also agree on the following items:
• Command codes
• Message length
• Character encoding
• Byte order for multi-byte values
• Signed and unsigned value representation
• Address format
• Response timing
• Timeout behavior
A useful diagnostic record states the complete format, such as “115200 baud, 8 data bits, no parity, 1 stop bit.” The shorter description “115200 UART” leaves several assumptions unresolved and can waste time during integration.
A UART data stream describes logical bits. The voltage levels, polarity, drivers, receivers, and wiring method come from the selected physical interface.
A design should identify the physical layer before a cable or connector is chosen.
A microcontroller often exposes UART signals through logic-level RX and TX pins. Depending on the device, the voltage domain may be 1.8 V, 3.3 V, or 5 V.
These voltage domains are not automatically interchangeable. Connecting a 5 V output directly to a 1.8 V input can exceed the input rating and damage the receiver.
Possible solutions include:
• A level shifter.
• A compatible transceiver.
• An open-drain arrangement designed for the voltage domain.
• A device with native support for both voltage levels.
The input and output thresholds should be checked in the electrical specifications rather than inferred from the connector labels.
RS-232 uses voltage levels and polarity that differ from ordinary microcontroller UART pins. It commonly supports a point-to-point connection through a dedicated driver and receiver.
A direct connection from a microcontroller TX pin to an RS-232 connector is usually incorrect. An RS-232 line driver or transceiver is needed to convert the logic-level signal into the voltage range and polarity expected by the interface.
The connector pinout should also be verified. Similar-looking connectors can assign different functions to the same pin numbers.
RS-485 uses differential signaling and is designed for longer cables, multidrop networks, and greater resistance to electrical noise. It is widely used in industrial installations where single-ended logic signals have little margin.
RS-485 defines the electrical layer, not the complete communication protocol. The application still needs rules for the following:
• Device addressing.
• Message boundaries.
• Bus direction control.
• Collision avoidance.
• Turnaround timing.
• Error detection.
• Retry behavior.
A bus can have excellent differential signal levels and still fail because two devices transmit simultaneously or because the application lacks a clear response timeout.
A standard point-to-point UART connection usually crosses the transmit and receive lines:
• Device A TX connects to Device B RX.
• Device A RX connects to Device B TX.
• Ground connects when the electrical design requires a shared reference.
A frequent installation mistake is connecting TX to TX and RX to RX. Connector labels are sometimes interpreted as destinations instead of signal directions.
Before powering the system, compare the pinout with the device viewpoint, cable documentation, and schematic. A continuity check can confirm the wiring without relying on assumptions about how the connector was labeled.
Serial links are simple at the logical level, but they remain physical electrical systems. A correct frame format cannot compensate for an unstable waveform.
The installation should be reviewed for cable length, reference voltage, interference, connectors, termination, and network loading.
As cable length increases, capacitance, attenuation, propagation delay, and susceptibility to interference also increase. A configuration that works with a short jumper may become unreliable on a long cable.
The allowable length depends on the physical interface, baud rate, cable construction, driver strength, receiver sensitivity, and surrounding noise. Testing with the actual cable is more informative than relying only on a nominal distance estimate.
Logic-level UART signals require a valid voltage reference between the communicating devices. A missing, loose, or unstable ground connection can cause the receiver to judge the signal against the wrong voltage.
Ground loops and large potential differences create a separate risk. In those environments, galvanic isolation or a differential interface may provide a more appropriate electrical arrangement.
The ground path should be evaluated under operating load. A connection that appears correct with a multimeter may still develop a substantial voltage difference when motors, heaters, or switching supplies are active.
Motors, relays, switching power supplies, and high-current conductors can inject noise into a serial cable.
Practical measures include:
• Routing communication wiring away from high-power wiring.
• Using twisted pairs where the interface supports that arrangement.
• Applying shielding when the installation environment warrants it.
• Adding filtering that does not distort the intended signal.
• Separating cable entry points for communication and high-current circuits.
Noise problems often appear as sporadic checksum failures or framing errors rather than as a complete loss of communication. That pattern can make the electrical environment easy to underestimate.
Loose terminals, oxidized contacts, damaged crimp pins, and poorly secured adapters can produce intermittent errors. These faults are easy to miss because the link may work when the cable is pressed, moved, or held at a particular angle.
Inspection should include mechanical retention, contact condition, strain relief, and the quality of each crimp. Replacing a questionable adapter is often faster than trying to infer its internal wiring from inconsistent symptoms.
Differential interfaces such as RS-485 may require termination resistors and biasing networks. Their placement should follow the network topology and transceiver specifications.
A typical bus design places termination at the physical ends of the bus rather than at every device. Biasing should establish a defined idle state without loading the network beyond the transceivers’ limits.
Adding resistors without reviewing the complete bus can increase loading, reduce voltage margin, and worsen the very signal problem the modification was meant to solve.
A transmitter can send data faster than the receiver can process it. When the receive buffer fills, incoming bytes may be discarded even though the cable and signal waveform are functioning correctly.
Flow control coordinates transmission with the receiver’s available space.
Signals such as RTS and CTS allow devices to pause or resume transmission through additional wires. Hardware flow control responds quickly when both devices support it and the wiring, polarity, and software configuration are correct.
Unused control pins should not be assumed to be harmless. Some equipment expects specific states on those pins before it will transmit.
Protocols such as XON and XOFF use reserved characters to pause and resume transmission. This method does not require additional control wires, but it can conflict with binary payloads if those values are not escaped or otherwise handled.
Software flow control also introduces a dependency on the receiver correctly recognizing control characters. Delayed processing can allow additional bytes to arrive before the transmitter reacts.
An application protocol can limit the amount of data sent, require acknowledgments, or divide messages into smaller blocks. This approach can combine flow control with retries, sequencing, and error reporting.
Application-level control is often a good fit when the system already needs a structured message protocol. It can express conditions that hardware signals cannot, such as “the command was received but rejected” or “the message was accepted and executed.”
Buffer sizing should be based on the worst-case processing delay rather than the average delay. A system may appear stable during normal operation and fail when another task temporarily blocks the receiver.
The design should account for:
• The maximum incoming burst.
• The longest receiver-service delay.
• The largest complete message.
• Operating-system or interrupt latency.
• Retry traffic.
• Bytes already in transit when transmission is paused.
UART frames describe individual bytes, but they do not define where an application message begins or ends. The protocol must supply its own message boundaries.
A receiver should also define what happens when a partial message, invalid length, unexpected byte, or timeout appears. Without those rules, one damaged message can leave the parser waiting indefinitely.
Every message has a predetermined size. This approach is simple and efficient, and the receiver can determine completion without searching for a delimiter or decoding a length field.
The tradeoff is reduced flexibility. Optional fields, version changes, and variable-size payloads can require several message definitions or unused reserved space.
A special character marks the beginning or end of a message. Text protocols often use carriage return, line feed, or another reserved delimiter.
A delimiter-based design must define what happens when the delimiter appears inside the payload. Common solutions include:
• Escaping the delimiter.
• Byte-stuffing reserved values.
• Encoding binary data as text.
• Using a separate framing layer.
The parser should also impose a maximum message length. Otherwise, a missing delimiter can cause it to consume an unlimited number of bytes.
The message includes a length field near its beginning. The receiver reads that field and then collects the specified number of bytes.
The length value should be checked against reasonable minimum and maximum limits. Without validation, one corrupted length byte can cause the receiver to wait indefinitely, allocate excessive memory, or consume bytes belonging to later messages.
A robust parser usually rejects an invalid length immediately and returns to a defined search state.
A checksum or CRC protects the complete application message rather than only an individual UART frame. The receiver can reject damaged messages and request retransmission when the protocol supports it.
The integrity calculation should define the following:
• Which fields are included.
• The initial value.
• The polynomial, when a CRC is used.
• The byte order.
• The final transformation.
• The behavior when the integrity check fails.
For control systems, a message will often contain an address or message type, a length field, a payload, an integrity check, and a defined response or timeout rule.
Serial communication failures often come from a small configuration or wiring mismatch. A disciplined diagnostic sequence provides clearer evidence than changing several settings at random.
The investigation should move from simple physical checks toward waveform analysis and protocol behavior. That order reduces guesswork and makes each result easier to interpret.
Check the following:
• The transmitter is enabled and the expected software path is executing.
• TX and RX are crossed correctly.
• The cable has continuity.
• The devices share a valid electrical reference when one is required.
• The selected interface uses compatible voltage levels.
• The correct port is open.
• Another application is not occupying the port.
• The transmitter is using the expected pin or connector.
A logic analyzer or oscilloscope can show whether the transmitter is producing transitions. This separates software configuration problems from wiring and hardware problems.
If no transition appears, examining parity or message parsing will not explain the failure. The investigation should first locate the point where the signal stops being generated.
Garbled text commonly indicates one of the following:
• A baud-rate mismatch.
• An incorrect data-bit, parity, or stop-bit setting.
• Voltage incompatibility.
• Clock error.
• Signal distortion.
• Incorrect bit order.
• A mismatch in character encoding.
The first practical step is to compare the complete configuration on both sides. If the settings match, inspect the waveform and measure the actual bit period.
A display showing transitions does not prove that the receiver is sampling them correctly. The bit centers, voltage levels, idle state, and stop-bit condition should also be examined.
Framing errors occur when the receiver does not detect the expected stop-bit condition. Typical causes include:
• An incorrect baud rate.
• Electrical noise.
• Excessive clock error.
• A missing ground reference.
• An incorrect stop-bit count.
• A distorted or excessively slow edge.
If errors become more frequent at higher baud rates or with longer cables, timing margin and signal integrity should be investigated together. Looking at only the software settings may leave the actual cause untouched.
This problem often results from:
• Buffer overflow.
• Incorrect message-length handling.
• A premature timeout.
• A receiver that is not ready when transmission begins.
• An unexpected delimiter inside the payload.
• A failed checksum followed by incorrect parser recovery.
Adding arbitrary delays may hide the problem temporarily, but it does not explain the timing relationship or establish reliable behavior.
A stronger solution defines buffering, flow control, message timeouts, parser recovery, and retry behavior explicitly.
Intermittent failures deserve careful investigation because they often indicate environmental or physical causes. Inspect the following:
• Connectors and crimps.
• Cable routing.
• Power stability.
• Grounding.
• Operating temperature.
• Nearby switching equipment.
• Mechanical movement.
• Startup and shutdown behavior.
A link that works on a quiet development bench may fail during motor startup, maximum traffic, or operation at the far end of the expected temperature range.
Testing should include the actual cable length, sustained traffic, expected power conditions, and the physical installation environment. A short successful demonstration does not establish field reliability.
RS-232, RS-485, and RS-422 are electrical interface standards. They describe how binary data is represented by voltage, how devices connect to a cable, and how reliably signals can travel through distance and electrical interference.
These standards do not define:
• Data format.
• Message structure.
• Device addressing.
• Error handling.
• Application protocol.
This distinction often surfaces during commissioning. Two devices may both use RS-485 and still refuse to communicate because they use different baud rates, parity settings, frame formats, byte orders, or application protocols. The electrical interface determines whether the signal can travel correctly. The communication protocol determines how the receiving device interprets that signal.
A practical comparison can be organized around four questions:
RS-232 uses single-ended signaling. Each signal is measured relative to a shared signal ground. The transmitter changes the voltage on the TX line, and the receiver interprets that voltage relative to GND.
RS-485 and RS-422 use differential signaling. The receiver evaluates the voltage difference between two conductors instead of depending on the voltage of one conductor relative to ground.
When external noise affects both conductors in a similar way, the receiver can reject much of that interference because the difference between the conductors remains nearly unchanged.
RS-232 is normally a point-to-point interface. One transmitter communicates with one receiver. A direct connection between two devices is easy to understand and usually easy to troubleshoot, but adding more devices generally requires specialized hardware or a different system architecture.
RS-485 is designed for shared buses. Multiple devices can connect to the same differential pair, and each device can transmit when the communication protocol grants permission.
This makes RS-485 suitable for:
• Sensor networks.
• Building automation systems.
• Industrial controllers.
• Meters.
• Motor drives.
• Distributed I/O systems.
RS-422 is primarily intended for point-to-point communication. One RS-422 transmitter can often drive multiple receivers within the limits of a particular implementation, but RS-422 is not normally treated as a multi-transmitter bus in the same way as RS-485.
A full-duplex link can transmit and receive simultaneously. A half-duplex link uses the same signal path for both directions, so the connected devices must take turns transmitting.
A typical RS-232 connection supports full duplex because it has separate TX and RX conductors.
RS-422 also supports full duplex by using:
• One differential pair for transmission.
• One differential pair for reception.
A standard two-wire RS-485 connection is half duplex. The same pair carries data in both directions, so only one device should drive the bus at a time.
A four-wire RS-485 arrangement can support full duplex, but it requires:
• Additional conductors.
• Additional transceivers.
• More detailed protocol coordination.
In many installations, two-wire half duplex remains attractive because it reduces wiring and simplifies the physical layout. That practical simplicity can matter more than simultaneous transmission when the protocol already uses request-and-response communication.

RS-232 commonly uses the following signals:
• TX carries data from the local device to the remote device.
• RX carries data from the remote device to the local device.
• GND provides the signal reference between the two devices.
A basic connection is crossed:
• Device A TX connects to Device B RX.
• Device A RX connects to Device B TX.
• Device A GND connects to Device B GND.
This arrangement is often called a null-modem connection.
Some equipment uses a straight-through connection because one side functions as data terminal equipment and the other functions as data communications equipment. Connector type alone does not reliably identify the required wiring, so the equipment documentation should be checked before the cable is connected.
RS-232 may also include hardware flow-control signals:
• RTS.
• CTS.
• DTR.
• DSR.
These signals are not used in every application. They can, however, become necessary when a device cannot process incoming data continuously and needs a way to ask the other device to pause.
RS-232 represents logic states with voltage levels referenced to signal ground. Its voltage range differs from the logic levels used by a microcontroller.
A microcontroller UART may use:
• 0 V and 3.3 V.
• 0 V and 5 V.
An RS-232 interface generally uses positive and negative voltages.
For that reason, a microcontroller UART usually cannot connect directly to an RS-232 port. A line driver and receiver, such as a suitable RS-232 transceiver, translates the voltage levels between the two interfaces.
Directly connecting the interfaces can cause:
• Unreliable communication.
• Incorrect logic interpretation.
• Excessive electrical stress.
• Damage to the connected circuits.
The exact voltage behavior depends on the standard and the transceiver design, but the underlying distinction remains the same: RS-232 is not the same electrical interface as TTL or CMOS UART signaling.
RS-232 remains useful because it is easy to understand and broadly supported.
Its advantages include:
Simple Point-to-Point Wiring
A basic connection requires only a few conductors. A normal two-device link does not require bus arbitration, device addressing, or a termination network.
Separate TX and RX paths allow both devices to transmit at the same time.
This is useful for:
• Interactive terminals.
• Configuration tools.
• Modems.
• Barcode scanners.
• Laboratory instruments.
• Equipment that sends unsolicited status messages.
Many computers, controllers, instruments, and service tools provide RS-232 directly or through a USB adapter. This makes the interface convenient during commissioning, maintenance, and troubleshooting, when a technician wants a direct and visible connection to the equipment.
RS-232 is less suitable for electrically harsh environments and physically extensive installations.
The commonly cited RS-232 distance is approximately 15 meters at a moderate data rate. Actual performance depends on:
• Baud rate.
• Cable capacitance.
• Driver strength.
• Connector quality.
• Ground conditions.
• Electromagnetic interference.
Lower data rates may work over longer distances, while high-speed communication can become unreliable much sooner.
Treating the nominal distance as a guarantee can create avoidable field failures. A link that behaves perfectly on a workbench may fail after the cable is routed through a plant, placed beside a motor cable, or connected through several adapters. That kind of failure is especially frustrating because the original bench test may have appeared conclusive.
The receiver measures each signal against a shared ground reference. Voltage differences between the two devices can therefore reduce the available noise margin.
Possible sources of trouble include:
• Ground loops.
• Large motor currents.
• Poorly bonded cabinets.
• Long cable shields.
• Different grounding potentials between buildings or equipment frames.
These conditions may produce intermittent errors that are difficult to reproduce during a short service visit.
RS-232 is not intended to operate as a multi-drop bus. Connecting several transmitters to the same line can create electrical contention and corrupt the data unless specialized hardware controls access.
RS-232 is a sensible choice when:
• Only two devices need to communicate.
• The cable is short.
• The electrical environment is reasonably controlled.
• Full-duplex operation is useful.
• The equipment already provides an RS-232 interface.
• The main goal is simple commissioning, service, or terminal access.
For a short connection inside the same cabinet or between nearby instruments, RS-232 is often the most economical solution. Choosing RS-485 only because it sounds more industrial can add configuration and wiring work without improving the actual application.

RS-485 uses a differential pair, commonly labeled A and B. The receiver evaluates the voltage difference between these conductors.
External noise that appears on both wires tends to be rejected as common-mode noise. This gives RS-485 a strong practical advantage in installations where cables pass near switching equipment or other sources of interference.
The A and B labels are not applied consistently by every manufacturer. One vendor's A terminal may correspond electrically to another vendor's B terminal.
Signal polarity should therefore be verified through:
• The transceiver documentation.
• The equipment manual.
• The relevant data sheet.
• A controlled polarity test.
Some equipment uses names such as:
• D+ and D-.
• Data+ and Data-.
• 485+ and 485-.
These labels can vary as well. The electrical meaning and polarity matter more than the terminal name printed on the enclosure. Assuming that every manufacturer's A terminal means the same thing can turn a healthy network into a silent one in a matter of minutes.
The most common RS-485 arrangement uses one twisted pair:
• One conductor pair carries data in both directions.
• Only one transmitter may actively drive the bus at a time.
• All other devices must place their drivers in a high-impedance state.
• The communication protocol must determine when each device may transmit.
A common approach is master-controlled polling:
• The master sends a request.
• The selected slave or field device receives the request.
• The selected device sends a reply.
• The bus returns to its idle state.
Other systems use:
• Token passing.
• Defined time slots.
• Controller-managed transmission windows.
If two devices transmit at the same time, their drivers may conflict. The result can include:
• Corrupted data.
• Excessive current.
• Transceiver stress.
• Unexpected bus behavior.
Software timing, driver-enable control, and bus turnaround delays therefore form part of the practical design, even though the electrical standard does not define the complete communication protocol.
RS-485 can also be implemented with separate transmit and receive pairs. This arrangement supports full-duplex communication, but it requires more conductors and more carefully defined device behavior.
Four-wire operation can be useful when:
• A device must transmit continuously while receiving.
• The protocol requires independent forward and return paths.
• A central controller communicates with several devices through separate directions.
• The application cannot tolerate the turnaround delay of a two-wire bus.
The additional wiring and control complexity may be justified in systems that exchange data continuously. Even so, four-wire RS-485 is less common than two-wire half duplex. Many industrial systems achieve dependable performance with a properly designed two-wire network.
RS-485 generally works best as a linear bus. The main cable runs from one device to the next, with short branch connections leading to individual nodes.
A star topology is usually undesirable because every branch creates an impedance discontinuity. These discontinuities can produce reflections that distort signal edges, particularly at higher baud rates or over long cables.
Long stub connections can create similar problems.
A practical installation usually places the master and field devices along one trunk cable. When the equipment layout forces a star arrangement, the designer may obtain better results with:
• An active hub.
• A repeater.
• A purpose-built topology converter.
Passive star wiring may function during an early test and then become unreliable after the cable length, data rate, or node count increases. That delayed failure can consume considerable troubleshooting time.
Termination resistors reduce signal reflections at the physical ends of the RS-485 bus. The selected resistance depends on the cable impedance, but 120 ohms is widely used with common twisted-pair cables.
Termination is generally placed at:
• One physical end of the main bus.
• The other physical end of the main bus.
It is not normally placed at every device. Terminating every node can load the driver excessively and reduce the differential voltage.
Many industrial devices provide selectable termination through:
• A switch.
• A jumper.
• A resistor network.
A frequent field error is enabling termination at several intermediate nodes simply because those devices provide the option. The bus may operate at low speed over a short cable, then fail after more devices are added or the baud rate is increased.
When no device is transmitting, the RS-485 bus can enter an undefined electrical state unless the system provides a failsafe mechanism. Biasing resistors, also called pull-up and pull-down resistors, establish a known idle differential voltage.
Biasing is normally provided at one suitable location, often near the master or another designated point.
Multiple independent bias networks can:
• Load the bus.
• Reduce the differential voltage margin.
• Change the idle voltage unexpectedly.
• Complicate fault diagnosis.
Modern transceivers may include integrated failsafe behavior, but that feature does not resolve every network issue. The design still has to account for:
• Cable length.
• Termination.
• Node loading.
• Ground potential.
• Noise.
• Transceiver limits.
Differential signaling provides strong noise rejection, but it does not make the network independent of all ground conditions. Every transceiver has a limited common-mode input range.
If the voltage between remote device grounds becomes too large, the receiver may stop operating correctly or suffer damage.
A suitable reference conductor is often recommended alongside the differential pair. When substantial ground potential differences exist, galvanically isolated RS-485 interfaces may provide a more controlled solution.
Cable shields should be connected according to the grounding and EMC design of the installation.
The decision should account for:
• Equipment construction.
• Cabinet design.
• Local electrical regulations.
• Expected interference sources.
• Potential ground-current paths.
Connecting a shield at every point without considering ground currents can create unwanted circulating currents. Leaving every shield floating can also reduce protection against high-frequency interference. Shielding is therefore an installation decision rather than a universal wiring rule.
RS-485 is widely used because it combines:
• Good rejection of common-mode noise.
• Longer practical cable distances than RS-232.
• Support for multiple devices on one bus.
• Flexible data rates when the physical layer is designed correctly.
• Flexible network layouts within the limits of the transmission line.
• Low-cost transceivers.
• Broad industrial support.
The standard does not guarantee a specific distance at every baud rate. A long cable operating at a low data rate may be reliable, while a short cable operating at a high data rate may fail because of:
• Signal reflections.
• Excessive capacitance.
• Poor termination.
• Electromagnetic interference.
• Insufficient driver strength.
• Unexpected node loading.
RS-485 is usually a strong choice when:
• Several devices must share one communication cable.
• The cable is long.
• The cable passes through an electrically noisy area.
• Two-wire half duplex is acceptable.
• Devices are distributed across cabinets, machines, or production areas.
• The system needs a practical balance among cost, distance, and noise immunity.

RS-422 uses differential signaling like RS-485, but it normally separates the transmit and receive paths:
• One differential pair carries TX data.
• A second differential pair carries RX data.
• Both directions can operate simultaneously.
This arrangement combines the noise rejection of differential signaling with full-duplex communication. For applications that exchange data continuously, that distinction can make the system feel much more responsive than a bus that must pause for direction changes.
A typical RS-422 link needs at least four signal conductors, usually arranged as two twisted pairs. A reference conductor may also be recommended, depending on the equipment and grounding design.
The transmitter on one side drives the TX pair, and the receiver on the other side monitors that pair. The return direction uses a separate pair.
Because the directions are electrically independent, the system does not require the same transmit-and-receive turnaround control used by a two-wire RS-485 bus.
The additional pair can improve communication behavior, but it also increases:
• Cable cost.
• Connector size.
• Installation effort.
• The number of possible wiring errors.
RS-422 is generally used for point-to-point communication. Some implementations allow one driver to feed multiple receivers, but multiple active drivers should not share the same signal pair unless the design specifically supports that behavior.
This makes RS-422 a poor substitute for a general multi-drop bus. When several independent devices must take turns transmitting over one cable, RS-485 is usually the more natural choice.
RS-422 offers:
• Differential noise rejection.
• Long-distance capability when suitable cable and data rates are used.
• Full-duplex operation.
• Less dependence on transmit-and-receive turnaround timing.
• Stable performance for dedicated links between controllers and remote equipment.
The main limitations include:
• More conductors than a basic RS-232 or two-wire RS-485 connection.
• Limited suitability for networks with multiple transmitters.
• Less availability in common consumer and industrial equipment.
• Greater installation complexity.
RS-422 is often selected when full duplex and differential signaling must exist together, but it is not always the most efficient design. In many installations, the protocol can tolerate half duplex, making two-wire RS-485 simpler and less expensive.
|
Feature |
RS-232 |
RS-485 |
RS-422 |
|
Signaling |
Single-ended |
Differential |
Differential |
|
Typical
Wiring |
TX, RX, GND |
One twisted
pair, optional reference |
Two twisted
pairs |
|
Duplex |
Usually full
duplex |
Usually half
duplex, optional full duplex |
Full duplex |
|
Topology |
Point-to-point |
Multi-drop
bus |
Point-to-point |
|
Noise
Immunity |
Relatively
limited |
High |
High |
|
Typical
Distance |
Short to
moderate |
Long |
Long |
|
Typical
Applications |
Service
ports, instruments, terminals |
Industrial
networks, sensors, drives, controllers |
Dedicated
controller links, motion systems |
RS-232 is appropriate when:
• Only two devices communicate.
• The distance is short.
• The electrical environment is controlled.
• Full-duplex operation is useful.
• The equipment already has an RS-232 port.
• No bus expansion is expected.
• The main goal is local service, configuration, or terminal access.
For a short connection inside the same cabinet or between nearby instruments, RS-232 is often the most economical solution.
RS-485 is usually a strong general-purpose choice for industrial communication. It fits systems in which:
• Devices are distributed over a distance.
• Several devices share one cable.
• The cable passes near sources of electrical noise.
• The installation requires a practical combination of cost, distance, and noise tolerance.
A dependable RS-485 system requires more than a compatible transceiver. The design should also address:
• Cable routing.
• Termination.
• Biasing.
• Grounding.
• Device addressing.
• Bus access.
• Driver-enable timing.
• Fault behavior.
A well-selected physical layer can still perform poorly when these surrounding decisions are left vague.
RS-422 is a good fit when the system needs differential transmission and reception at the same time, but does not need multiple active transmitters on one bus.
It suits:
• Dedicated controller links.
• Motion systems.
• Remote equipment that exchanges data continuously.
• Applications in which the extra cable pair is justified by the communication requirements.
The electrical interface should support the communication protocol without forcing awkward timing or access rules.
A request-and-response protocol often works well over two-wire RS-485.
A continuous data stream with simultaneous feedback may benefit from RS-422 or full-duplex RS-485.
The protocol should be checked for:
• Device addresses.
• Maximum response time.
• Turnaround delays.
• Maximum cable length or baud rate.
• Error detection and retransmission.
• Device startup behavior.
• Bus recovery behavior.
A physically robust interface cannot compensate for a protocol that permits two devices to transmit simultaneously or fails to describe what happens after a corrupted frame.
Begin by selecting a cable appropriate for the chosen interface. RS-485 and RS-422 normally use twisted-pair cable because keeping the differential conductors together improves noise rejection and signal integrity. The cable should provide suitable impedance, capacitance, insulation, shielding where required, temperature rating, and mechanical durability for the installation environment.
Avoid replacing a twisted pair with two unrelated conductors, even if a short bench test appears successful. Cable geometry becomes increasingly important as cable length, data rate, or electrical interference increases.
Lay out the communication cable as a continuous linear bus whenever possible. Place termination resistors only at the physical ends of the main cable, keep branch connections short, avoid unnecessary connectors and adapters, and minimize junctions, particularly at higher data rates.
A well-organized cable layout generally improves long-term reliability and reduces troubleshooting time after installation.
Route communication cables away from motor leads, variable-frequency drives, contactors, welding equipment, high-current circuits, and other rapidly switching conductors. Physical separation helps reduce electromagnetic interference that may corrupt communication.
When communication and power cables must cross, crossing them at approximately a right angle generally reduces inductive coupling.
Before energizing the system, confirm that the differential signal polarity matches the equipment documentation. Do not rely only on terminal names because manufacturers may use different labeling conventions.
Verify polarity using the device manual, the transceiver data sheet, the manufacturer's wiring diagram, or a controlled communication test. Reversed differential pairs are among the most common causes of complete communication failure.
After wiring is complete, observe the differential bus voltage while no device is transmitting. The bus should remain in a defined idle state rather than floating unpredictably.
An unstable idle state may indicate missing or incorrect biasing, excessive loading, a disconnected cable segment, wiring faults, or a transceiver that is not entering its expected high-impedance state.
For two-wire RS-485 systems, confirm that the transmitter enables its driver before transmission begins and releases the bus only after the final stop bit has completely left the interface.
Releasing the driver too early can truncate messages, while releasing it too late prevents another device from replying. If requests are transmitted successfully but responses never arrive, driver-enable timing should be examined together with the communication waveform.
Measure or estimate the voltage difference between device grounds under normal operating conditions rather than with the equipment idle.
When significant ground potential differences exist, consider using galvanic isolation, an appropriate reference conductor, or a grounding arrangement suitable for the installation environment. Measurements should be made while motors, heaters, or other large loads are operating because these conditions may change the ground relationship.
Complete installation by testing the communication link under the same conditions expected during normal operation. Use the actual cable length, all connected devices, normal electrical loads, the intended communication speed, and the final grounding arrangement.
A practical commissioning sequence is to begin with a low baud rate and a short cable segment, verify wiring and protocol operation, add cable sections and devices one at a time, gradually increase the baud rate, and observe communication while normal electrical equipment is operating. This systematic approach helps determine whether any remaining problems are caused by configuration, topology, loading, or electrical interference.
RS-485 uses differential signaling, which improves noise rejection compared with single-ended interfaces. However, this does not guarantee reliable communication under every installation condition.
Communication problems can still result from poor cable routing, excessive common-mode voltage, incorrect termination, improper grounding, long branch connections, or unsuitable shielding practices. Reliable performance depends on correct system design as well as the signaling method.
A longer communication distance does not automatically guarantee reliable operation at every baud rate. As cable length increases, signal rise time, cable capacitance, attenuation, impedance mismatch, and signal reflections have a greater effect on waveform quality.
For this reason, longer communication links generally require lower data rates or improved transmission-line design. Maximum distance should always be evaluated together with the selected cable, transceiver, topology, and installation environment.
Termination resistors are normally installed only at the two physical ends of an RS-485 bus. Their purpose is to reduce signal reflections along the transmission line.
Installing termination at intermediate devices unnecessarily increases bus loading, reduces signal amplitude, increases driver stress, and can distort the differential signal. More termination does not improve communication quality.
RS-485 specifies only the electrical interface used to transmit data. It does not define how devices are identified or how they communicate with one another.
A complete communication system still requires a higher-level protocol that defines device addresses, bus access, response timing, error detection, recovery procedures, and the handling of missing or unresponsive devices.
A USB-to-serial adapter must match the electrical interface required by the connected equipment. Similar connectors do not indicate electrical compatibility.
For example:
• A USB-to-TTL adapter is not an RS-232 adapter.
• An RS-232 adapter is not an RS-485 adapter.
• An RS-485 adapter is not automatically an RS-422 adapter.
Although these adapters may appear similar, their signal levels, reference requirements, direction-control methods, and electrical behavior are different. Confirming the required interface before making a connection helps prevent communication failures, misleading test results, and possible hardware damage.
Reliable serial communication requires the data format, protocol, and electrical interface to be designed and tested as one system. Correct baud rate and frame settings are only the starting point. Voltage compatibility, cable routing, grounding, termination, biasing, buffer capacity, message integrity, and recovery behavior determine whether a link remains stable outside the laboratory. RS-232 suits short point-to-point connections, RS-485 supports shared and noise-exposed networks, and RS-422 fits dedicated full-duplex links. Final validation should use the actual cable, devices, traffic load, and installation conditions.
Successful communication also requires both devices to use the same data length, parity setting, stop-bit configuration, bit order, and application protocol. In addition, compatible voltage levels, wiring, timing, and message interpretation are essential because a correct baud rate alone cannot guarantee successful data exchange.
RS-232 is best suited for short, point-to-point communication between two devices. RS-485 is designed for longer distances, shared multi-device networks, and electrically noisy environments using differential signaling. RS-422 also uses differential signaling but is generally preferred for dedicated full-duplex links where continuous simultaneous transmission and reception are required.
Cable length, grounding, connector quality, electromagnetic interference, termination, biasing, and cable routing all influence signal quality. Even when software settings are correct, poor physical installation can cause framing errors, corrupted data, intermittent communication, or complete link failure.
UART parity provides only limited protection by detecting many single-bit errors within an individual frame. More reliable communication often requires message-level mechanisms such as checksums or CRCs, acknowledgments, sequence numbers, and retransmission rules to detect corrupted messages and recover from communication failures.
Bench testing with short cables and minimal electrical noise may not reveal problems caused by long cable runs, electromagnetic interference, grounding differences, temperature changes, multiple devices, or sustained communication traffic. Testing the completed installation under realistic operating conditions provides greater confidence in long-term communication reliability.
August 28th, 2024
July 29th, 2024
October 6th, 2024
July 4th, 2024
September 20th, 2025
September 15th, 2025
July 15th, 2024
April 22th, 2024
July 10th, 2024
November 15th, 2024









