How to Solve RS-485 Automatic Transceiver Circuit Application Issues?

Introduction

To save MCU I/O resources, RS-485 automatic transceivers are often used, but these types of transceivers encounter some application problems to varying degrees. How can these issues be resolved? This article will reveal the answers from the working principle.

How to Solve RS-485 Automatic Transceiver Circuit Application Issues? Introduction to Automatic Transceiver Circuits and Application Analysis
Principle of Automatic Transceiver Circuits

The common RS-485 automatic transceiver circuit is shown in Figure 1, and the circuit’s logic truth table is shown in Table 1.

  • When TXD is low, DE and RE are high, and the RS-485 transceiver is in sending state, AB is low, meaning it sends a low signal to other nodes;
  • When TXD changes from low to high, DE and RE become low, putting the RS-485 transceiver in receiving state. At this time, the AB pins are in high impedance state, R3 pulls pin B to GND, and R4 pulls pin A to VCC, making AB high, which sends a high signal to other nodes.

Since TXD is high, the RS-485 transceiver is in receiving state, so TXD only needs to remain high to receive data, meaning the automatic transceiver circuit is in receiving state while sending a high signal.

How to Solve RS-485 Automatic Transceiver Circuit Application Issues?

Figure 1 RS-485 Automatic Transceiver Schematic

Table 1 Automatic Transceiver Circuit Schematic
How to Solve RS-485 Automatic Transceiver Circuit Application Issues?
How to Solve RS-485 Automatic Transceiver Circuit Application Issues? Common Application Problems and Solutions for Automatic Transceiver Circuits
1. Slow Communication Speed

The main reasons for the slow communication speed of RS-485 automatic transceivers are two:

1.1 If using the automatic transceiver circuit shown in Figure 1, the turn-off time of the transistor is relatively long (mainly due to the storage time during the turn-off of the transistor). The turn-on delay time of the transistor in the inverse circuit shown in Figure 1 is 10.2ns, while the turn-off delay time is 1.14μs. Therefore, if TXD sends a low signal, the DE&RE pins will take a long time to rise to high, and the delay time for sending low signals will be long. The delay time for sending low signals in the circuit shown in Figure 1 is 1.468μs.

How to Solve RS-485 Automatic Transceiver Circuit Application Issues?

Figure 2 Turn-On Delay Time
How to Solve RS-485 Automatic Transceiver Circuit Application Issues?
Figure 3 Turn-Off Delay Time
How to Solve RS-485 Automatic Transceiver Circuit Application Issues?
Figure 4 Delay for Sending Low Signal
1.2 The high signal sent by the automatic transceiver circuit is driven by external pull-up and pull-down resistors, causing a slow rising edge. The waveform shown in Figure 5 indicates that the rising edge for sending a high signal is slow, limiting the application of high-speed communication.

How to Solve RS-485 Automatic Transceiver Circuit Application Issues?

Figure 5 Rising Time for Sending High Signal

2. Risk of Communication Abnormalities at High Baud Rates

As shown in Figure 6, when TXD becomes high, DE&RE pins drop to low, and the AB differential voltage rises slowly. Since the RS-485 transceiver is in receiving state at this time, before the AB differential voltage rises to the RS-485 transceiver threshold level, the RXD pin will show a low signal for a period of time. For example, for a transceiver with a threshold level of -200mV~-50mV, the RS-485 transceiver can output a low signal until the AB differential voltage rises to -50mV. The duration of this low signal is related to the rising time of the AB differential voltage and the receiving delay of the RS-485 transceiver.

Since the serial port typically divides each bit into 16 parts and detects the level signal of the middle 3 parts to determine the signal high or low, if this low signal persists during the signal detection of each bit, it will cause the MCU to receive a start bit, thus receiving incorrect data. Therefore, this problem also limits the application of high-speed communication and reduces communication reliability.

How to Solve RS-485 Automatic Transceiver Circuit Application Issues?

Figure 6 TXD Sends High Signal, RXD Receives a Low Signal

To address these issues, you can choose the isolated RS-485 transceiver RSM485MG from ZLG Zhiyuan Electronics, which has a communication speed of up to 500kbps and does not exhibit the phenomenon of receiving a low signal for a period of time when sending a high signal. The communication waveform is shown in Figure 7, greatly enhancing communication reliability.
How to Solve RS-485 Automatic Transceiver Circuit Application Issues?

Isolated RS-485 Transceiver RSM485MG

Mini size or standard modular packaging

• Low electromagnetic radiation and high resistance to electromagnetic interference

• Effectively enhances the bus communication protection level

Reference Price: 29 Yuan

How to Solve RS-485 Automatic Transceiver Circuit Application Issues?

Click to Buy

How to Solve RS-485 Automatic Transceiver Circuit Application Issues?
Figure 7 RSM485MG Communication Waveform
3. Junction Capacitance of Peripheral Circuits Affects Transceiver Communication Stability

In high electrostatic or surge environments, it is necessary to add peripheral protection circuits to protect the RS-485 transceiver. If the junction capacitance of the protection circuit added to the RS-485 bus is large, it will affect the quality of the communication waveform and may even lead to communication abnormalities. The communication waveform using high junction capacitance protection circuits is shown in Figure 8, with severe distortion affecting communication quality.

How to Solve RS-485 Automatic Transceiver Circuit Application Issues?

Figure 8 Waveform Affected by High Junction Capacitance

To address these issues, you can choose ZLG Zhiyuan Electronics’ RSM485MG. According to the protective circuit diagram provided in the data sheet as shown in Figure 9, it can comprehensively enhance the protection capability of the RS-485 bus. The EMC protection capability can reach ±8kV for electrostatic contact, ±4kV for surge common mode, and ±2kV for differential mode, meeting the vast majority of industrial site application requirements.

How to Solve RS-485 Automatic Transceiver Circuit Application Issues?

Figure 9 Low Junction Capacitance Protection Circuit

How to Solve RS-485 Automatic Transceiver Circuit Application Issues?
Figure 10 Communication Waveform After Adding Protection Circuit
4. Weak Driving Ability Poses Risks for Long-Distance Communication

When the automatic transceiver circuit sends a high signal, it is always driven by pull-up and pull-down resistors for a period of time or the entire time. To improve the driving capability of sending high signals, it is necessary to use pull-up and pull-down resistors with a smaller resistance value. Due to the driving capability limitations of the RS-485 transceiver itself, the pull-up and pull-down resistors cannot be chosen too small. Generally, the parallel value of all pull-up and pull-down resistors on the bus cannot be less than 375 ohms; thus, the driving capability of sending high signals in the automatic transceiver circuit is very limited. After adding terminal resistors to the RS-485 bus, the AB differential voltage for sending high signals is obtained from the voltage division of the terminal resistors and pull-up/pull-down resistors, resulting in a low amplitude for the high signal sent. Therefore, when using automatic transceiver RS-485 transceivers, it is advisable not to use terminal resistors.

Due to the limited driving capability of the automatic transceiver circuit, the communication distance it can achieve is also restricted. The communication waveforms for twisted pairs of lengths 8m and 200m are shown in Figures 11 and 12. The communication waveform is good and communication is normal at a distance of 8m, while at 200m, normal communication is no longer possible.Therefore, for longer communication distances, pull-up and pull-down resistors and terminal resistors can be added externally to the automatic transceiver RS-485 transceiver to improve the communication waveform. The improved communication waveform after adding them is shown in Figure 13, where the waveform has significantly improved and normal communication is possible, but the amplitude of the high signal sent remains low.

How to Solve RS-485 Automatic Transceiver Circuit Application Issues?

Figure 11 Communication Waveform Through 8m Twisted Pair

How to Solve RS-485 Automatic Transceiver Circuit Application Issues?
Figure 12 Communication Waveform Through 200m Twisted Pair
How to Solve RS-485 Automatic Transceiver Circuit Application Issues?
Figure 13 Adding 1k Pull-Up and Pull-Down Resistors and Terminal Resistors at Both Ends of the RS-485 Bus

If there are high requirements for communication distance, it is not recommended to use automatic transceiver modules. Instead, you can choose ZLG Zhiyuan Electronics’ isolated RS-485 transceivers with transceiver control functions, RSM485ECHT or RSM3485ECHT, which can achieve communication distances of up to 1200m.With a communication speed of 500kbps and a communication distance of 1200m, the communication waveform with terminal resistors of 120 ohms at both ends of the bus is shown in Figure 14, where the amplitude of the signal sent by RSM485ECHT can reach 2.6V, greatly enhancing communication reliability.

How to Solve RS-485 Automatic Transceiver Circuit Application Issues?

Figure 14 Communication Distance of 1200m, Terminal Resistors Added at Both Ends, RSM485ECHT Sending Waveform

How to Solve RS-485 Automatic Transceiver Circuit Application Issues? Conclusion
The automatic transceiver RS-485 transceiver can save MCU I/O ports and reduce the workload of writing programs. However, conventional automatic transceiver circuits have issues such as slow communication speed and RXD receiving a low signal for a period when sending a high signal. Therefore, if automatic transceivers are needed, it is recommended to use the isolated RS-485 transceiver RSM485MG, which greatly improves communication reliability. Combined with the recommended low junction capacitance protection circuit for RSM485MG, it can withstand higher electrostatic and surge levels, enhancing product reliability. For longer communication distances, it is recommended to use enhanced isolated RS-485 transceivers RSM485ECHT/RSM3485ECHT, which can achieve communication distances of up to 1200m.

Table 2 Product Recommendation Application Situation Description

How to Solve RS-485 Automatic Transceiver Circuit Application Issues?
How to Solve RS-485 Automatic Transceiver Circuit Application Issues?

Isolated CAN Transceiver RSM3485ECHT

3.15~3.45VDC

High-speed type

• 24mA Static Current

Reference Price: 29 Yuan

Click to Buy

How to Solve RS-485 Automatic Transceiver Circuit Application Issues?
How to Solve RS-485 Automatic Transceiver Circuit Application Issues?
How to Solve RS-485 Automatic Transceiver Circuit Application Issues?
How to Solve RS-485 Automatic Transceiver Circuit Application Issues?
How to Solve RS-485 Automatic Transceiver Circuit Application Issues?
How to Solve RS-485 Automatic Transceiver Circuit Application Issues?

Leave a Comment