RS485 communication circuit
By using digital isolation chips and anti-interference circuit units in the RS485 communication circuit, double isolation and interference suppression of signals and power are achieved, solving the problems of signal delay and insufficient anti-interference ability in the existing technology, and improving communication stability and reliability. sex.
Patent Information
- Application Number
- CN202411037268.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-15
AI Technical Summary
Existing RS485 communication circuits suffer from signal delays, data conflicts, and insufficient anti-interference capabilities in complex environments, especially in long-distance or multi-node networks, making it difficult to guarantee communication stability and reliability.
Digital isolation chips are used to achieve double isolation of signals and power, and anti-interference circuit units are designed at the end of the circuit, including common-mode inductors and transient voltage suppressors, to suppress transient voltages and common-mode interference and enhance the anti-interference ability of the circuit. .
It effectively reduces transmission delay and data error rate, ensures signal stability and accuracy, enhances the anti-interference ability of the circuit, and avoids the impact of external interference on the controller circuit.
Smart Images

Figure CN118784398A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of communication technology protection, and in particular to an RS485 communication circuit. Background Art
[0002] RS485 communication circuit is a serial communication interface circuit widely used in industrial control environment. Since RS485 communication circuit involves differential signal transmission and multi-node communication, the design of existing RS485 communication circuit is particularly complex, resulting in a certain delay in the transmission process of RS485 communication circuit. Especially in the case of long-distance transmission or a large number of nodes, when the receiving device is directly or indirectly grounded at different locations, a ground potential difference may be generated, resulting in excessive AC signal between the signal line and the ground, forming strong common mode interference. There are a large number of electromagnetic interference sources in industrial sites or other noisy environments, which interfere with RS485 communication circuits. For example, "A RS485 Communication Circuit" with publication number CN219164584U, such as Figure 3 shown.
[0003] Usually, in order to avoid the interference of power supply on the signal, a digital isolation chip is set between the RS485 communication chip and the controller (i.e., the signal source). For example, the communication module circuit in the "Control System of a Fully Automatic Combined Rice Milling Machine" with publication number CN116679604A, such as Figure 4 As shown. Although this RS485 communication circuit attempts to use digital isolation chips to reduce the interference of power supply to signals, there is still a risk of data conflict during its data transmission. Especially under complex and changing environmental conditions, the stability and reliability of its communication cannot be fully guaranteed, and communication failures are still very likely to occur.
[0004] Therefore, how to improve the reliability of the existing RS485 communication circuit while simplifying the circuit structure, reducing costs and improving anti-interference capabilities is an urgent problem to be solved. Summary of the invention
[0005] The purpose of the present invention is to provide an RS485 communication circuit in view of the corresponding deficiencies of the prior art, which not only adopts a digital isolation chip to achieve double isolation between the signal and the power supply, but also designs an anti-interference circuit unit at the end of the circuit. This circuit structure is simple, not only can it maintain extremely low transmission delay in long-distance or multi-node networks, ensuring the real-time and accuracy of data, but also can effectively suppress transient voltage and common-mode interference, ensuring the stability and accuracy of the signal during transmission, and effectively isolating the influence of external interference on the controller circuit.
[0006] The objective of the present invention is achieved by adopting the following scheme: A RS485 communication circuit includes a digital isolator and an XL3483 chip. The digital isolator is a π131U31 chip for double isolation. The VIA input pin, the VIB input pin and the VOC output pin of the π131U31 chip are used to connect to a controller. The primary power pin of the π131U31 chip is used to connect to a digital power supply voltage, and the secondary power pin is used to connect to an analog power supply voltage. The primary grounding pin of the π131U31 chip is used to connect to a digital ground, and the secondary grounding pin is used to connect to an analog ground. The VOB pin of the π131U31 chip is connected to the DI pin of the XL3483 chip, the VIC pin is connected to the RO pin of the XL3483 chip, and the VOA pin is connected to the RE pin, the DE pin of the XL3483 chip is short-circuited with the RE pin and connected to the analog ground through a resistor R3, the power pin of the XL3483 chip is used to connect the analog power supply voltage, and the ground pin is used to connect the analog ground, the B pin and the A pin of the XL3483 chip are connected to an anti-interference circuit, and the anti-interference circuit includes a common-mode inductor L1, a transient voltage suppressor array D1, a capacitor C4, and a resistor R2 are connected in parallel between the first and second pins of the common-mode inductor L1, a resistor R1 is connected in series between the B pin of the XL3483 chip and the first pin of the common-mode inductor L1, a resistor R4 is connected in series between the A pin and the second pin of the common-mode inductor L1, and the third and fourth pins of the common-mode inductor L1 are used to connect a pair of differential signal lines.
[0007] A capacitor C1 is connected in parallel between the power pin 1 and the ground pin 2 of the primary side of the π131U31 chip, and a capacitor C2 is connected in parallel between the ground pin 15 and the power pin 16 of the secondary side.
[0008] The power pin of the XL3483 chip is connected to the analog power voltage and is connected to the analog ground via a capacitor C3.
[0009] The first pin of the transient voltage suppressor array D1 is connected to the first pin of the common mode inductor L1, the second pin of the transient voltage suppressor array D1 is connected to the second pin of the common mode inductor L1, and the third pin of the transient voltage suppressor array D1 is connected to the analog ground.
[0010] The resistance values of the resistor R1 and the resistor R4 are equal.
[0011] The resistance value of the resistor R3 is 10KΩ.
[0012] The capacitances of the capacitors C1, C2 and C3 are equal.
[0013] The capacitance of the capacitor C4 is 1 nF.
[0014] The transient voltage suppressor array D1 adopts NUP2105LT1G, and the common mode inductor L1 adopts SMW3225S102HTE.
[0015] With the above scheme, the VIA input pin, VIB input pin and VOC output pin of the π131U31 chip are used to connect to the controller, the primary power pin of the π131U31 chip is used to connect to the digital power supply voltage, the secondary power pin is used to connect to the analog power supply voltage, the primary ground pin of the π131U31 chip is used to connect to the digital ground, the secondary ground pin is used to connect to the analog ground, the VOB pin of the π131U31 chip is connected to the DI pin of the XL3483 chip, the VIC pin is connected to the RO pin of the XL3483 chip, the VOA pin is connected to the RE pin of the XL3483 chip, the DE pin of the XL3483 chip is short-circuited with the RE pin, and connected to the analog ground through a resistor R3, the power pin of the XL3483 chip is used to connect to the analog power supply voltage, and the ground pin is used to connect to the analog ground. The signal and power supply at the controller end can be double-isolated from the signal and power supply of the RS485 chip, so that the controller circuit will not be affected by the RS485 communication circuit, greatly increasing the safety and reliability of the entire circuit.
[0016] The B pin and A pin of the XL3483 chip are connected to an anti-interference circuit, which includes a common-mode inductor L1, a transient voltage suppressor array D1, a capacitor C4, and a resistor R2 are connected in parallel between the first and second pins of the common-mode inductor L1, a resistor R1 is connected in series between the B pin of the XL3483 chip and the first pin of the common-mode inductor L1, a resistor R4 is connected in series between the A pin and the second pin of the common-mode inductor L1, and the third and fourth pins of the common-mode inductor L1 are used to connect a pair of differential signal lines. By inserting two small resistors in series on the 485 communication line and using a transient voltage suppressor array and a common-mode inductor at the same time, the anti-interference and protection capabilities of the circuit are increased, so that the anti-interference capability of the circuit is further improved.
[0017] The advantage of the present invention is that it does not rely on a digital isolation chip to achieve interference isolation between the signal and the power supply. An anti-interference circuit unit is designed at the end of the circuit to make up for the shortcomings of the digital isolation chip, so as to effectively suppress transient voltage and common-mode interference, ensure the stability and accuracy of the signal during transmission, and effectively isolate the influence of external interference on the controller circuit. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 It is a principle block diagram of the present invention; Figure 2 A circuit diagram of the present invention; Figure 3 It is the RS485 communication circuit in the prior art; Figure 4 The invention relates to an RS485 communication circuit provided with a digital isolator in the prior art. DETAILED DESCRIPTION
[0019] like Figure 1 to Figure 2 As shown, an RS485 communication circuit includes a digital isolator and an XL3483 chip U2. The digital isolator is a π131U31 chip U1 for double isolation. The third pin VIA, the fourth pin VIB and the fifth pin VOC of the π131U31 chip are used to connect the RE_ST2 port, the TXD_ST2 port and the RXD_ST2 port of the controller.
[0020] The controller in this embodiment can be understood as a main control chip or a host provided with a serial communication port for sending and receiving data.
[0021] The first pin VDD1 of the π131U31 chip U1 is used to connect the digital power supply voltage, the voltage is 3.3V, the sixteenth pin VDD2 is used to connect the analog power supply voltage, the voltage is 3.3V, the eighth pin GND1 of the π131U31 chip U1 is used to connect the digital ground, the ninth pin GND2 is used to connect the analog ground, a capacitor C1 is connected in parallel between the first pin VDD1 and the second pin GND1 of the π131U31 chip U1, and a capacitor C2 is connected in parallel between the fifteenth pin GND2 and the sixteenth pin VDD2, and the capacities of capacitor C1 and capacitor C2 are both 100nF.
[0022] The thirteenth pin VOB of the π131U31 chip U1 is connected to the fourth pin DI of the XL3483 chip U2, the twelfth pin VIC is connected to the first pin RO of the XL3483 chip U2, the fourteenth pin VOA is connected to the second pin RE of the XL3483 chip U2, the third pin DE of the XL3483 chip U2 is short-circuited with the second pin RE, and connected to the analog ground via a resistor R3, and the resistance value of the resistor R3 is 10KΩ.
[0023] The eighth pin VCC of the XL3483 chip U2 is used to connect the analog power supply voltage, the voltage is 3.3V, the eighth pin VCC of the XL3483 chip U2 is connected to the analog power supply voltage and connected to the analog ground through a capacitor C3, the capacity of the capacitor C3 is 100nF, and the fifth pin GND of the XL3483 chip U2 is used to connect the analog ground.
[0024] The seventh pin B and the sixth pin A of the XL3483 chip U2 are connected to an anti-interference circuit, which includes a common-mode inductor L1. A transient voltage suppressor array D1, a capacitor C4, and a resistor R2 are connected in parallel between the first and second pins of the common-mode inductor L1. The common-mode inductor L1 adopts SMW3225S102HTE. The transient voltage suppressor array in this embodiment adopts NUP2105LT1G (composed of two bidirectional transient voltage suppression diodes), the capacity of the capacitor C4 is 1nF, and the resistance of the resistor R2 is 120Ω.
[0025] The resistor R2 serves as a matching resistor for data transmission, and plays a role in reducing the reflection of the transmission signal on the line. The capacitor C4 can reduce the interference of the output signal of the entire RS485 communication circuit, that is, it can reduce the noise spikes - "burrs" - that appear in the output signal waveform due to transient interference, thereby reducing the possibility of data errors in data transmission and playing a filtering role.
[0026] The transient voltage suppressor array D1 can prevent electrostatic discharge, electrical fast transient pulses, lightning surges, etc. from damaging the communication chip, and play an anti-interference protection role. The common-mode inductor L1 can attenuate common-mode interference and play an anti-interference role.
[0027] A resistor R1 is connected in series between the seventh pin B of the XL3483 chip U2 and the first pin of the common-mode inductor L1, and a resistor R4 is connected in series between the sixth pin A and the second pin of the common-mode inductor L1. The resistance values of resistors R1 and R4 are both 22Ω. The third and fourth pins of the common-mode inductor L1 are used to connect a pair of differential signal lines. The differential signal lines in this embodiment are RS485-B2 and RS485-A2.
[0028] The resistor R1 and the resistor R4 can limit the current passing through the fault point, match the characteristic impedance of the bus, reduce the reflection of the signal at the end of the bus, and play a role in reducing data conflicts during data transmission.
[0029] The first pin of the transient voltage suppressor array D1 is connected to the first pin of the common mode inductor L1, the second pin of the transient voltage suppressor array D1 is connected to the second pin of the common mode inductor L1, and the third pin of the transient voltage suppressor array D1 is connected to the analog ground.
[0030] The above technical solution is used to make the following embodiments, and the comparison Figure 2 , Figure 3 , Figure 4 The anti-interference performance of the circuit shown is as follows: (1) Comparative experiment Use Figure 2 , Figure 3 , Figure 4The circuit shown connects the communication interface of the same device to the communication interface of the computer, and conducts a data transmission comparison experiment under the same working conditions. Figure 2 , Figure 3 , Figure 4 The circuit shown is subjected to fast transient pulse group (power port), fast transient pulse group (signal coupling), and radio frequency electromagnetic field tests, and the corresponding communication conditions are recorded (Note: each test is repeated three times).
[0031] Anti-interference test data comparison
[0032] (3) The conclusions are as follows: Analysis and comparison of the above anti-interference test data show that: Figure 3 The circuit shown in the figure has multiple communication failures when the power port is interfered by fast transient pulse groups. The circuit is obviously unable to maintain stable voltage and current output, that is, the communication signal cannot be transmitted stably and accurately, and the test equipment cannot receive stable communication signals. Figure 4 The circuit shown in the figure had two communication failures when the signal and control ports were interfered by fast transient pulse groups, and the test equipment could not receive stable communication signals. Figure 2 The circuit shown can ensure the stability of communication under the same test conditions. It can be seen that the anti-interference ability of the circuit designed by the present invention is significantly better than that of the prior art.
[0033] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modification made to the present invention by those skilled in the art without departing from the spirit of the present invention shall fall within the protection scope of the present invention.
Claims
1. An RS485 communication circuit, comprising a digital isolator, characterized in that: It also includes an XL3483 chip, the digital isolator is a π131U31 chip for double isolation, the VIA input pin, VIB input pin and VOC output pin of the π131U31 chip are used to connect to the controller, the primary power pin of the π131U31 chip is used to connect to the digital power supply voltage, the secondary power pin is used to connect to the analog power supply voltage, the primary ground pin of the π131U31 chip is used to connect to the digital ground, the secondary ground pin is used to connect to the analog ground, the VOB pin of the π131U31 chip is connected to the DI pin of the XL3483 chip, the VIC pin is connected to the RO pin of the XL3483 chip, the VOA pin is connected to the RE pin of the XL3483 chip, and the XL34 The DE pin and RE pin of the XL3483 chip are short-circuited and connected to the analog ground through a resistor R3. The power pin of the XL3483 chip is used to connect the analog power supply voltage, and the ground pin is used to connect the analog ground. The B pin and A pin of the XL3483 chip are connected to an anti-interference circuit. The anti-interference circuit includes a common-mode inductor L1. A transient voltage suppressor array D1, a capacitor C4, and a resistor R2 are connected in parallel between the first and second pins of the common-mode inductor L1. A resistor R1 is connected in series between the B pin of the XL3483 chip and the first pin of the common-mode inductor L1, and a resistor R4 is connected in series between the A pin and the second pin of the common-mode inductor L1. The third and fourth pins of the common-mode inductor L1 are used to connect a pair of differential signal lines.
2. The RS485 communication circuit according to claim 1, characterized in that: A capacitor C1 is connected in parallel between the power pin 1 and the ground pin 2 of the primary side of the π131U31 chip, and a capacitor C2 is connected in parallel between the ground pin 15 and the power pin 16 of the secondary side.
3. The RS485 communication circuit according to claim 1, characterized in that: The power pin of the XL3483 chip is connected to the analog power voltage and is connected to the analog ground via a capacitor C3.
4. The RS485 communication circuit according to claim 1, characterized in that: The first pin of the transient voltage suppressor array D1 is connected to the first pin of the common mode inductor L1, the second pin of the transient voltage suppressor array D1 is connected to the second pin of the common mode inductor L1, and the third pin of the transient voltage suppressor array D1 is connected to the analog ground.
5. The RS485 communication circuit according to claim 1, characterized in that: The resistance values of the resistor R1 and the resistor R4 are equal.
6. The RS485 communication circuit according to claim 1, characterized in that: The resistance value of the resistor R3 is 10KΩ.
7. The RS485 communication circuit according to any one of claims 2 to 3, characterized in that: The capacitances of the capacitors C1, C2 and C3 are equal.
8. The RS485 communication circuit according to claim 1, characterized in that: The capacitance of the capacitor C4 is 1 nF.
9. The RS485 communication circuit according to claim 1, characterized in that: The transient voltage suppressor array D1 adopts NUP2105LT1G, and the common mode inductor L1 adopts SMW3225S102HTE.
