RS-485 automatic transceiver circuit
By introducing a delay circuit module into the RS-485 automatic transceiver circuit, the problem of untimely transceiver switching at high communication baud rate is solved, packet integrity and high communication success rate are achieved, and the communication rate of 2Mbps is supported.
Patent Information
- Application Number
- CN202420817460.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-18
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2034-04-18
AI Technical Summary
The existing RS-485 automatic transceiver circuit fails to switch transceivers in time under high communication baud rate, resulting in incomplete packet transmission and communication failure problem.
An RS-485 automatic transceiver circuit including a power supply module, a USB to serial port module, a delay circuit module and an inverting circuit module is designed. The transmission state of the RS-485 transceiver is converted to the reception state through the delay circuit module. , avoid incomplete packet transmission.
It realizes automatic switching of RS-485 transceiver at high communication rates, ensures packet integrity, improves communication success rate, and supports communication baud rate to 2Mbps.
Smart Images

Figure CN222073158U_ABST
Abstract
Description
Technical Field
[0001] The utility model belongs to the technical field of automatic transceiver circuits, in particular to an RS-485 automatic transceiver circuit. Background Art
[0002] RS-485 is a standard for multi-point communication with electrical characteristics specified as 2-wire, half-duplex, balanced transmission lines belonging to the physical layer of the OSI model. It is a standard jointly issued by the Telecommunications Industry Association (TIA) and the Electronic Industries Alliance (EIA). A digital communication network that implements this standard can communicate efficiently over long distances in an environment with electronic noise. In a linear multi-point bus configuration, there can be multiple receivers on a network.
[0003] RS-485 uses the voltage difference between the two ends of the cable to represent the transmitted signal, and different voltage differences are marked as logic 1 and logic 0. The voltage difference between the two ends is valid when it is at least 0.2V. Any difference not greater than 12V or not less than -7V is considered correct to the receiving end.
[0004] The main circuit scheme for RS-485 communication at present is to connect the sending and receiving ends of the serial port controller with the receiving and sending ends of the RS-485 transceiver, and then control the sending / receiving control end of the RS-485 transceiver through an IO. The problem with this scheme is that the IO needs to be operated by software to control the switching of the RS-485 transceiver, which consumes additional software resources; and the switching time interval needs to be controlled. When the RS-485 transceiver switches to the receiving state before the transmission is completed, it will cause communication packet loss and communication abnormalities.
[0005] In order to solve the problem of switching RS-485 transceivers by software, some circuits that use MOS tubes or triodes to control the automatic switching of RS-485 transceivers have emerged. For example, Chinese invention application CN106980589A provides an RS-485 automatic transceiver circuit (such as Figure 1 As shown in the figure, this circuit can realize the automatic sending and receiving switching of RS-485 communication under certain conditions, but the automatic sending and receiving switching time of the RS-485 transceiver of this scheme is determined by the conduction and cut-off switching time of the transistor. When communicating at a low rate, such as using a baud rate of 9600bps, this scheme can still send and receive normally. When using a higher communication baud rate, such as above 115200bps, due to the untimely sending and receiving switching, it is impossible to receive a complete data packet, resulting in a communication failure. Utility Model Content
[0006] The purpose of the utility model is to provide an RS-485 automatic transceiver circuit, thereby overcoming the defect of insufficient communication rate of the RS-485 automatic transceiver circuit in the prior art. The specific technical solution is as follows:
[0007] An RS-485 automatic transceiver circuit comprises a power module, a USB to serial port module, a delay circuit module, an inverting circuit module, and an RS485 transceiver;
[0008] The power supply module is respectively connected with the USB to serial port module, the inverter circuit module, and the RS485 transceiver;
[0009] The input end of the USB to serial port module is connected to the output end of the RS485 transceiver, and the output end of the USB to serial port module is respectively connected to the input end of the RS485 transceiver and the input end of the delay circuit module;
[0010] The output end of the delay circuit module is connected to the input end of the inverting circuit module, and the output end of the inverting circuit module is connected to the receiver and driver output enable end of the RS485 transceiver.
[0011] Preferably, the USB to serial port module includes a CH340C chip;
[0012] The input pin RXD of the CH340C chip is connected to the output end of the RS485 transceiver through a current limiting resistor R7;
[0013] The output pin TXD of the CH340C chip is connected to the input terminal of the RS485 transceiver through a current limiting resistor R6;
[0014] The power pin VCC of the CH340C chip is connected to the power module and grounded through the capacitor C7;
[0015] The power pin V3.3 of the CH340C chip is grounded through a capacitor C8.
[0016] Preferably, the delay circuit module includes a resistor R5, a capacitor C6, and a Schottky diode D4;
[0017] One end of the resistor R5 and the cathode of the Schottky diode D4 are respectively connected to the output end of the USB to serial port module;
[0018] The other end of the resistor R5 and the anode of the Schottky diode D4 are respectively connected to one end of the capacitor C6 and the input end of the inverting circuit module;
[0019] The other end of the capacitor C6 is grounded.
[0020] Preferably, the inverter circuit module includes an inverter chip SN74LVC1G14DBVR;
[0021] The A end of the inverter chip SN74LVC1G14DBVR is connected to the output end of the delay circuit module, and the VCC end of the inverter chip SN74LVC1G14DBVR is connected to the power module and grounded through the capacitor C5;
[0022] The Y end of the inverter chip SN74LVC1G14DBVR is connected to one end of the resistor R10, and the other end of the resistor R10 is respectively connected to one end of the capacitor C15, the receiver of the RS485 transceiver and the output enable end of the driver; the other end of the capacitor C15 is grounded.
[0023] Preferably, the power module includes a USB-A type socket, a TVS diode D3, a filter circuit, a resistor R4, and a light emitting diode D6;
[0024] The VCC pin of the USB-A type socket is connected to one end of the TVS diode D3 and the input end of the filter circuit; the other end of the TVS diode D3 is grounded; the output end of the filter circuit is connected to one end of the resistor R4, the other end of the resistor R4 is connected to the anode of the light-emitting diode D6, and the cathode of the light-emitting diode D6 is grounded.
[0025] Preferably, the filter circuit comprises an inductor L1, a capacitor C2, a capacitor C3, and a capacitor C4;
[0026] One end of the inductor is connected to the VCC pin of the USB-A socket, and the other end is respectively connected to one end of the capacitor C2, one end of the capacitor C3, one end of the capacitor C4, and one end of the resistor R4;
[0027] The other end of the capacitor C2, the other end of the capacitor C3, and the other end of the capacitor C4 are grounded.
[0028] Preferably, it also includes a boost circuit module; the boost circuit module includes an input filter circuit, a boost circuit, a voltage regulating circuit, and a TVS diode D9;
[0029] The input filter circuit, the boost circuit, the voltage regulating circuit, and the TVS diode D9 are connected in sequence; the input filter circuit is connected to a power module, and the TVS diode D9 is connected to an external device.
[0030] Preferably, the input filter circuit includes capacitor C12, capacitor C13, and capacitor C14; one end of the capacitor C12, one end of the capacitor C13, and one end of the capacitor C14 are respectively connected to the output end of the power module, and the other end of the capacitor C12, the other end of the capacitor C13, and the other end of the capacitor C14 are respectively grounded.
[0031] Preferably, the boost circuit includes an HX3608 boost chip; the output end of the input filter circuit is respectively connected to the VIN pin, the EN pin, and one end of the inductor L2 of the HX3608 boost chip; the other end of the inductor L2 and the SW pin of the HX3608 boost chip are respectively connected to the anode of the diode D8;
[0032] The cathode of the diode D8 is connected to one end of the capacitor C9, one end of the capacitor C10, and one end of the capacitor C11 respectively; the other end of the capacitor C9, the other end of the capacitor C10, and the other end of the capacitor C11 are grounded.
[0033] Preferably, the voltage regulating circuit includes a resistor R8 and a resistor R9; one end of the resistor R8 is respectively connected to the output end of the boost circuit, one end of the TVS diode D9, one end of the resistor R9, and the FB pin of the HX3608 boost chip; the other end of the resistor R9 and the other end of the TVS diode D9 are grounded.
[0034] Compared with the existing technology, the utility model has the following beneficial effects:
[0035] The utility model includes a power module, a USB to serial port module, a delay circuit module, an inverting circuit module, and an RS485 transceiver. The USB to serial port module can be connected to an external device with a USB interface, such as a computer, and is easy to use. The delay circuit can delay the RS485 transceiver's sending state to the receiving state, thereby avoiding the problem of incomplete data packet transmission and communication failure. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. In all drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, the elements or parts are not necessarily drawn according to the actual scale.
[0037] Figure 1 It is the principle diagram of RS485 automatic transceiver circuit in the prior art;
[0038] Figure 2 It is a schematic diagram of the principle of the utility model;
[0039] Figure 3 It is a circuit schematic diagram of the USB to serial port module, delay circuit module, inverting circuit module, and RS485 transceiver of the utility model;
[0040] Figure 4 It is a circuit schematic diagram of the power module of the utility model. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of the utility model to clearly and completely describe the technical solutions in the embodiments of the utility model. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments in the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.
[0042] In the description of the present invention, it should be noted that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "top", "bottom", "top surface", "bottom surface", "inside", "outside", "inside", "outside" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0043] In the description of the present utility model, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed" etc. are understood to exclude the number itself, and "above", "below", "within" etc. are understood to include the number itself. If the terms "first", "second", "third" are described, they are only used for the purpose of description and distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0044] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", and "set" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal connection of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances. The following is a description of the embodiments of the present invention based on its overall structure.
[0045] like Figure 2 As shown, this embodiment provides an RS-485 automatic transceiver circuit, including a power module, a USB to serial port module U3, a delay circuit module, an inverting circuit module U2, and an RS485 transceiver U1;
[0046] The power module is connected to the USB to serial port module U3, the inverter circuit module U2, and the RS485 transceiver U1 respectively;
[0047] The input end of the USB to serial port module U3 is connected to the output end of the RS485 transceiver U1, and the output end of the USB to serial port module U3 is respectively connected to the input end of the RS485 transceiver U1 and the input end of the delay circuit module;
[0048] The output end of the delay circuit module is connected to the input end of the inverting circuit module U2, and the output end of the inverting circuit module U2 is connected to the receiver and driver output enable end of the RS485 transceiver U1.
[0049] like Figure 3 As shown, RS485 transceiver U1 is Shanghai Silicon Pen SSP485 chip, powered by 5V; R2 is a 120 ohm terminal matching resistor, which does not need to be soldered under normal circumstances; resistor R1 is the pull-down resistor of RS-485 bus B, and resistor R3 is the pull-up resistor of RS-485 bus A, ensuring the default level on the bus. TVS diode D1, TVS diode D2, and TVS diode D10 are TVS devices that improve the anti-static energy and surge capability of the RS-485 interface.
[0050] The USB-to-serial port module U3 includes a Nanjing Qinheng CH340C chip, which does not require an external crystal oscillator and can reduce production costs; the input pin RXD of the CH340C chip is connected to the output end of the RS485 transceiver U1 through a current limiting resistor R7; the output pin TXD of the CH340C chip is connected to the input end of the RS485 transceiver U1 through a current limiting resistor R6; the power pin VCC of the CH340C chip is connected to the power module and is grounded through a capacitor C7; the power pin V3.3 of the CH340C chip is grounded through a capacitor C8.
[0051] The delay circuit module includes a resistor R5, a capacitor C6, and a Schottky diode D4; one end of the resistor R5 and the cathode of the Schottky diode D4 are respectively connected to the output end of the USB to serial port module U3; the other end of the resistor R5 and the anode of the Schottky diode D4 are respectively connected to one end of the capacitor C6 and the input end of the inverting circuit module U2; the other end of the capacitor C6 is grounded.
[0052] The inverter circuit module U2 includes an inverter chip SN74LVC1G14DBVR; the A end of the inverter chip SN74LVC1G14DBVR is connected to the output end of the delay circuit module, the VCC end of the inverter chip SN74LVC1G14DBVR is connected to the power module and grounded through the capacitor C5; the Y end of the inverter chip SN74LVC1G14DBVR is connected to one end of the resistor R10, and the other end of the resistor R10 is respectively connected to one end of the capacitor C15 and the receiver and driver output enable end of the RS485 transceiver U1; the other end of the capacitor C15 is grounded.
[0053] R5 and C6 form an RC delay circuit, which is used to delay the conversion of the RS-485 transceiver's sending state to the receiving state. D4 is a Schottky diode, which is used to quickly release the voltage of C6 and speed up the switching of the A terminal of the SN74LVC1G14DBVR from a high level to a low level. R10 and C15 form a filter circuit, which is used to improve the burrs generated when the Y terminal of the SN74LVC1G14DBVR is output.
[0054] The working principle of the utility model is:
[0055] The power module provides working power to the USB to serial port module U3, the inverter circuit module U2 and the RS485 transceiver U1 respectively. When the utility model is used, the utility model is connected to the computer terminal.
[0056] The idle level of the USB to serial port module U3 is a high level. At this time, the output pin TXD of the USB to serial port module U3 outputs "1", and the input pin DI of the RS485 transceiver U1 is also input as "1". The output pin TXD of the USB to serial port module U3 outputs "1", which is inverted by the inverter circuit module U2 and then outputs "0" to the receiver and driver output enable terminal of the RS485 transceiver U1. The RS485 transceiver U1 is in the receiving state and can receive data on the 485 bus at any time.
[0057] When a data packet needs to be sent, the data packet is sent to the USB to serial port module U3 through the computer, and the USB data is converted into serial port data through the USB to serial port module U3 and sent to the input pin DI of the RS485 transceiver U1 through the output pin TXD of the USB to serial port module U3.
[0058] When data "0" needs to be sent, the output pin TXD of the USB to serial port module U3 jumps from high level to low level, and the input pin DI of the RS485 transceiver U1 immediately becomes low level. At this time, due to the presence of the Schottky diode D4 of the delay circuit, the input terminal A of the inverter circuit module U2 is quickly discharged to a low level, and the output terminal Y of the inverter circuit module U2 is reversely high level, which is input to the receiver and driver output enable terminal of the RS485 transceiver U1. The RS485 transceiver U1 is in the sending state, and the data "0" is sent by the RS485 transceiver U1 through the RS-485 bus.
[0059] When data "1" needs to be sent, the output pin TXD of the USB to serial port module U3 jumps from low level to high level, and the input pin DI of the RS485 transceiver U1 immediately becomes high level. At this time, due to the effect of the delay circuit resistor R5 and the capacitor C6, the C6 capacitor needs to be charged. The level change of the input terminal A of the inverting circuit module U2 is delayed after the level change of the input pin DI of the RS485 transceiver U1. The input terminal A of the inverting circuit module U2 is still at a low level, and the output terminal Y of the inverting circuit module U2 is at a high level. Before the capacitor C6 is fully charged, the RS485 transceiver U1 is still in the sending state, and the data "1" is sent by the RS485 transceiver U1 through the RS-485 bus.
[0060] After all data transmission is completed, the output pin TXD of the USB to serial port module U3 returns to the idle high level. After the capacitor C6 is fully charged, the input terminal A of the inverter circuit module U2 is at a high level, the output terminal Y of the inverter circuit module U2 is at a low level, and the receiver and driver output enable terminals of the RS485 transceiver U1 are at a low level. The transceiver enters the receiving state, and the RS485 transceiver U1 completes the automatic switching from the sending state to the receiving state.
[0061] Prior art Figure 1 In the RS485 circuit in, when data "0" needs to be sent, the TXD terminal is low, the transistor Q1 is turned off, the RE / DE terminal is high, and the SP3485 transceiver is in the sending state. Since the DI data sending terminal is directly grounded, the data "0" at the DI terminal is sent out. When data "1" needs to be sent, the TXD terminal is high, the transistor Q1 is turned on, the RE / DE terminal is low, the SP3485 transceiver is in the receiving state, and the transceiver output is high configuration. The data on the RS-485 bus is determined by the R4 pull-down resistor and the R5 pull-up resistor. At this time, AB is a positive level and the bus is logical "1". The driving capability of this sending scheme when sending logic "1" is determined by the external pull-up and pull-down resistors, which leads to insufficient RS-485 communication driving capability of this scheme. The probability of communication anomalies will be greatly increased in multi-node and long-distance RS-485 application scenarios.
[0062] In the present invention, whether "0" or "1" data is sent, the data is driven by the A and B pins of the RS485 transceiver U1, thereby ensuring the output driving capability of the RS-485 bus.
[0063] After the transmission is completed, the switching from the transmission state to the receiving state will be completed after an RC time constant of the delay circuit. When R5=10K and C6=0.001uF are selected, the theoretical switching time is R*C=10us, and the measured switching time is 8.5us, which is in line with expectations. In actual use, according to the actual communication rate used, the values of R5 and C6 can be fine-tuned to adjust the time for the transceiver U1 to switch from the transmission state to the receiving state. The measured communication baud rate of the utility model can reach 2Mbps, which meets basic usage requirements.
[0064] like Figure 4 As shown, the power module includes a USB-A socket, a TVS diode D3, a filter circuit, a resistor R4, and a light-emitting diode D6; the VCC pin of the USB-A socket is connected to one end of the TVS diode D3 and the input end of the filter circuit; the other end of the TVS diode D3 is grounded; the output end of the filter circuit is connected to one end of the resistor R4, the other end of the resistor R4 is connected to the anode of the light-emitting diode D6, and the cathode of the light-emitting diode D6 is grounded. The filter circuit includes an inductor L1, a capacitor C2, a capacitor C3, and a capacitor C4; one end of the inductor is connected to the VCC pin of the USB-A socket, and the other end is respectively connected to one end of the capacitor C2, one end of the capacitor C3, one end of the capacitor C4, and one end of the resistor R4; the other end of the capacitor C2, the other end of the capacitor C3, and the other end of the capacitor C4 are grounded. Among them, the TVS diode D3 is a TVS protection device for USB 5V power supply. The resistor R4 and the light-emitting diode D6 form a power indicator light circuit. D5 and D7 are ESD devices for the USB line, and the model is UDD32C05L01.
[0065] The power module is equipped with a USB-A socket, which can be connected to the USB port of the computer. It is easy to use and can provide VCC 5V power supply.
[0066] The utility model also includes a boost circuit module; the boost circuit module includes an input filter circuit, a boost circuit, a voltage regulating circuit, and a TVS diode D9; the input filter circuit, the boost circuit, the voltage regulating circuit, and the TVS diode D9 are connected in sequence; the input filter circuit is connected to the power module, and the TVS diode D9 is connected to an external device.
[0067] The input filter circuit includes capacitor C12, capacitor C13, and capacitor C14; one end of capacitor C12, one end of capacitor C13, and one end of capacitor C14 are respectively connected to the output end of the power module, and the other end of capacitor C12, another end of capacitor C13, and another end of capacitor C14 are respectively grounded.
[0068] The boost circuit includes an HX3608 boost chip; the output end of the input filter circuit is respectively connected to the VIN pin, the EN pin, and one end of the inductor L2 of the HX3608 boost chip; the other end of the inductor L2 and the SW pin of the HX3608 boost chip are respectively connected to the anode of the diode D8; the cathode of the diode D8 is respectively connected to one end of the capacitor C9, one end of the capacitor C10, and one end of the capacitor C11; the other end of the capacitor C9, the other end of the capacitor C10, and the other end of the capacitor C11 are grounded.
[0069] The voltage regulating circuit is used to adjust the output voltage of the HX3608 boost chip, including resistors R8 and R9; one end of resistor R8 is respectively connected to the output end of the boost circuit, one end of the TVS diode D9, one end of resistor R9, and the FB pin of the HX3608 boost chip; the other end of resistor R9 and the other end of TVS diode D9 are grounded. TVS diode D9 is the protection TVS of the external RS-485 sensor.
[0070] The boost circuit also includes a 4P terminal block, such as the 5.08mm*4P terminal block J2. Pins 1 and 4 can provide power to the 12V RS-485 sensor, and pins 2 and 3 are used for RS-485 bus communication. The interface is simple, the wiring is convenient, the wiring complexity is reduced, and the RS-485 sensor can be debugged quickly and easily.
[0071] The utility model can convert the 5V input voltage of the USB end into a 12V voltage output to power the external RS-485 sensor through a boost circuit, avoiding the lack of suitable power supply during testing. Note that due to the limited USB power supply current, if the rated power of the external sensor is high, an independent power supply should be used to power the sensor separately.
[0072] The foregoing descriptions of specific exemplary embodiments of the present invention are for the purpose of explanation and illustration. These descriptions are not intended to limit the present invention to the precise form disclosed, and it is obvious that many changes and variations can be made based on the above teachings. Although an embodiment of the present invention has been shown and described, this specific embodiment is merely an explanation of the present invention and is not a limitation of the present invention. The specific features, structures, materials or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. The purpose of selecting and describing the exemplary embodiments is to explain the specific principles of the present invention and its practical application, so that those skilled in the art can make modifications, substitutions, variations and various selections and changes to the embodiments without creative contribution as needed after reading this specification without departing from the principles and purpose of the present invention, but they are protected by patent law as long as they are within the scope of the claims of the present invention.
Claims
1. An RS-485 automatic transceiver circuit, It is characterized in that Including power module, USB to serial port module, delay circuit module, inverter circuit module, RS485 transceiver; The power supply module is respectively connected with the USB to serial port module, the inverter circuit module, and the RS485 transceiver; The input end of the USB to serial port module is connected to the output end of the RS485 transceiver, and the output end of the USB to serial port module is respectively connected to the input end of the RS485 transceiver and the input end of the delay circuit module; The output end of the delay circuit module is connected to the input end of the inverting circuit module, and the output end of the inverting circuit module is connected to the receiver and driver output enable end of the RS485 transceiver.
2. The RS-485 automatic transceiver circuit according to claim 1, It is characterized in that The USB to serial port module includes a CH340C chip; The input pin RXD of the CH340C chip is connected to the output end of the RS485 transceiver through a current limiting resistor R7; The output pin TXD of the CH340C chip is connected to the input terminal of the RS485 transceiver through a current limiting resistor R6; The power pin VCC of the CH340C chip is connected to the power module and grounded through the capacitor C7; The power pin V3.3 of the CH340C chip is grounded through a capacitor C8.
3. The RS-485 automatic transceiver circuit according to claim 1, It is characterized in that The delay circuit module includes a resistor R5, a capacitor C6, and a Schottky diode D4; One end of the resistor R5 and the cathode of the Schottky diode D4 are respectively connected to the output end of the USB to serial port module; The other end of the resistor R5 and the anode of the Schottky diode D4 are respectively connected to one end of the capacitor C6 and the input end of the inverting circuit module; The other end of the capacitor C6 is grounded.
4. The RS-485 automatic transceiver circuit according to claim 1, It is characterized in that The inverting circuit module includes an inverter chip SN74LVC1G14DBVR; The A end of the inverter chip SN74LVC1G14DBVR is connected to the output end of the delay circuit module, and the VCC end of the inverter chip SN74LVC1G14DBVR is connected to the power module and grounded through the capacitor C5; The Y end of the inverter chip SN74LVC1G14DBVR is connected to one end of the resistor R10, and the other end of the resistor R10 is respectively connected to one end of the capacitor C15, the receiver of the RS485 transceiver and the output enable end of the driver; the other end of the capacitor C15 is grounded.
5. The RS-485 automatic transceiver circuit according to claim 1, It is characterized in that The power module includes a USB-A type socket, a TVS diode D3, a filter circuit, a resistor R4, and a light emitting diode D6; The VCC pin of the USB-A type socket is connected to one end of the TVS diode D3 and the input end of the filter circuit; the other end of the TVS diode D3 is grounded; the output end of the filter circuit is connected to one end of the resistor R4, the other end of the resistor R4 is connected to the anode of the light-emitting diode D6, and the cathode of the light-emitting diode D6 is grounded.
6. The RS-485 automatic transceiver circuit according to claim 1, It is characterized in that The filter circuit includes an inductor L1, a capacitor C2, a capacitor C3, and a capacitor C4; One end of the inductor is connected to the VCC pin of the USB-A socket, and the other end is respectively connected to one end of the capacitor C2, one end of the capacitor C3, one end of the capacitor C4, and one end of the resistor R4; The other end of the capacitor C2, the other end of the capacitor C3, and the other end of the capacitor C4 are grounded.
7. The RS-485 automatic transceiver circuit according to claim 1, It is characterized in that It also includes a boost circuit module; the boost circuit module includes an input filter circuit, a boost circuit, a voltage regulation circuit, and a TVS diode D9; The input filter circuit, the boost circuit, the voltage regulating circuit, and the TVS diode D9 are connected in sequence; the input filter circuit is connected to a power module, and the TVS diode D9 is connected to an external device.
8. The RS-485 automatic transceiver circuit according to claim 7, It is characterized in that The input filter circuit includes capacitor C12, capacitor C13, and capacitor C14; one end of the capacitor C12, one end of the capacitor C13, and one end of the capacitor C14 are respectively connected to the output end of the power module, and the other end of the capacitor C12, the other end of the capacitor C13, and the other end of the capacitor C14 are respectively grounded.
9. The RS-485 automatic transceiver circuit according to claim 7, It is characterized in that The boost circuit includes an HX3608 boost chip; the output end of the input filter circuit is respectively connected to the VIN pin, the EN pin, and one end of the inductor L2 of the HX3608 boost chip; the other end of the inductor L2 and the SW pin of the HX3608 boost chip are respectively connected to the anode of the diode D8; The cathode of the diode D8 is connected to one end of the capacitor C9, one end of the capacitor C10, and one end of the capacitor C11 respectively; the other end of the capacitor C9, the other end of the capacitor C10, and the other end of the capacitor C11 are grounded.
10. The RS-485 automatic transceiver circuit according to claim 8, It is characterized in that The voltage regulating circuit includes a resistor R8 and a resistor R9; one end of the resistor R8 is respectively connected to the output end of the boost circuit, one end of the TVS diode D9, one end of the resistor R9, and the FB pin of the HX3608 boost chip; the other end of the resistor R9 and the other end of the TVS diode D9 are grounded.
