RS485 receiver input threshold adjusting circuit
By designing the RS485 receiver input threshold adjustment circuit, the resistor network and threshold adjustment module are used to ensure that the fixed high level is output under abnormal bus state, and the internal resistor network is cancelled, which solves the indefinite state of the receiver output and high power consumption in the prior art. The problem of low power consumption and good abnormal state response is achieved.
Patent Information
- Application Number
- CN202411137420.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-11-26
AI Technical Summary
When the existing RS485 receiver is in abnormal bus state (such as short circuit, open circuit, or all drivers are not operating), the output is indefinite, affecting the signal recognition and working state, and the introduced up and pull-down resistors increase the layout area and power consumption.
A RS485 receiver input threshold adjustment circuit is designed, including a resistor network module, a threshold adjustment module, an amplification comparison module and an output buffer module. Through components such as operational amplifiers and NMOS tubes, the common mode voltage range of the receiver input is adjusted to 0~ VDD ensures that the fixed high level is output in abnormal state, and cancels the resistive network from the internal power supply to ground to achieve complete shutdown of the device.
It avoids the indefinite output of the receiver in an abnormal state, enhances the response ability to bus abnormal problems, facilitates system problems, and is extremely low in power consumption in the shutdown state.
Smart Images

Figure CN119030524A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of integrated circuit design, and in particular relates to an RS485 receiver input threshold adjustment circuit. Background Art
[0002] RS-485 is a serial communication interface standard that defines the electrical characteristics of the driver and receiver. RS-485 can support multiple devices connected to a bus at the same time to achieve multi-point communication. This interface standard is particularly suitable for industrial environments that require long-distance data transmission due to its high noise suppression capabilities and other characteristics.
[0003] An important feature of the RS-485 interface is that it can withstand -7 to 12V common-mode voltage fluctuations on the bus. The receiver input interface and the driver output interface are required to withstand -7 to 12V common-mode voltage fluctuations. To meet the above characteristics, the design of the receiver must be well matched with the resistor divider network and the high-precision comparator. In addition, the RS-485 interface is often used in multi-point transmission systems. A receiver is connected to the same bus with multiple other receivers or drivers. In the system, abnormal states such as bus short circuit, open circuit, or all drivers on the bus not working may occur. When the bus is in the above abnormal state, the output of the existing RS-485 receiver circuit is often in an unstable state, affecting the signal recognition and working state of the receiver's lower-level circuit.
[0004] Existing RS485 receivers mostly adopt the method of connecting pull-up resistors and pull-down resistors at the differential input terminals to solve the problem when the bus is in the above abnormal working state. However, the introduction of pull-up and pull-down resistors will increase the layout area and increase the power consumption of the device in the off state. Summary of the invention
[0005] In view of the shortcomings of the prior art, the present invention proposes an RS485 receiver input threshold adjustment circuit, which includes: a resistor network module, a threshold adjustment module, an amplification comparison module and an output buffer module;
[0006] The resistor network module is connected to the threshold adjustment module and the amplification comparison module, and the resistor network module provides a common mode voltage for the operational amplifier in the amplification comparison module, and adjusts the receiver input common mode voltage range to 0-VDD;
[0007] The threshold adjustment module makes the output of the amplification and comparison module a fixed high level when the differential voltage of the positive and negative terminals of the external input of the receiver is 0V;
[0008] The amplification and comparison module is connected to the output buffer module, and the amplification and comparison module amplifies and compares the receiver input differential voltage after being reduced by the resistor network module, and converts it into a single-ended output;
[0009] The output buffer module shapes and outputs the single-ended signal output by the amplifying and comparing module.
[0010] Preferably, the resistor network module includes an operational amplifier AMP1 and resistors R1 to R6; the positive input terminal of the operational amplifier AMP1 is connected to an external reference voltage Vref, and the negative input terminal of the operational amplifier AMP1 is connected to the positive terminal of resistor R1 and the negative terminal of resistor R2; the output terminal of the operational amplifier AMP1 is connected to the positive terminal of resistor R2, the negative terminal of resistor R5, and the negative terminal of resistor R6; the negative terminal of resistor R1 is grounded; the positive terminal of resistor R5 serves as the negative output terminal of the resistor network module, and the positive terminal of resistor R5 is connected to the negative terminal of resistor R3, the threshold adjustment module and the amplification and comparison module; the positive terminal of resistor R6 serves as the positive output terminal of the resistor network module, and the positive terminal of resistor R6 is connected to the negative terminal of resistor R4, the threshold adjustment module and the amplification and comparison module; the positive terminal of resistor R3 is connected to the external negative input VinN of the receiver; the positive terminal of resistor R4 is connected to the external positive input VinP of the receiver.
[0011] Preferably, the threshold adjustment module includes an NMOS tube NM1, an NMOS tube NM2, resistors R7-R8, and a capacitor C1; the drain of the NMOS tube NM1 is respectively connected to an external input current source, a gate of the NMOS tube NM1, and a gate of the NMOS tube NM2; the source of the NMOS tube NM1, the substrate of the NMOS tube NM1, the source of the NMOS tube NM2, and the substrate of the NMOS tube NM2 are all grounded; the drain of the NMOS tube NM2 is connected to the negative end of the resistor R7; the positive end of the resistor R7 serves as the negative input end of the threshold adjustment module, and the positive end of the resistor R7 is connected to the negative output end of the resistor network module and the negative input end of the amplification and comparison module; the negative end of the capacitor C1 is grounded, and the positive end of the capacitor C1 is connected to the negative end of the resistor R8; the positive end of the resistor R8 serves as the positive input end of the threshold adjustment module, and the positive end of the resistor R8 is respectively connected to the positive output end of the resistor network module and the positive input end of the amplification and comparison module.
[0012] Preferably, the amplification and comparison module includes an operational amplifier AMP2 and a comparator COMP1; the positive input terminal of the operational amplifier AMP2 serves as the positive input terminal of the amplification and comparison module, and the positive input terminal of the operational amplifier AMP2 is connected to the positive output terminal of the resistor network module and the positive input terminal of the threshold adjustment module; the negative input terminal of the operational amplifier AMP2 serves as the negative input terminal of the amplification and comparison module, and the operational amplifier AMP2 is connected to the negative output terminal of the resistor network module and the negative input terminal of the threshold adjustment module; the positive output terminal of the operational amplifier AMP2 is connected to the positive input terminal of the comparator COMP1, and the negative output terminal of the operational amplifier AMP2 is connected to the negative input terminal of the comparator COMP1; the output of the comparator COMP1 is connected to the output buffer module.
[0013] Preferably, the output buffer module includes a Schmitt trigger and a buffer driving unit.
[0014] The beneficial effects of the present invention are as follows: the present invention can avoid the problem of an indeterminate state of the receiver output caused by an abnormal short circuit, an open circuit or all drivers on the bus not working in the existing RS485 receiver; the present invention enables the RS485 receiver to have the ability to respond to abnormal bus problems of the RS485 data transmission system, which is convenient for troubleshooting system problems; the present invention cancels the resistor network structure from the power supply to the ground inside the existing RS485 receiver, which can realize the complete shutdown of the device, so that the power consumption of the device is extremely low when it is in the shutdown state. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 This is a structural diagram of the RS485 receiver input threshold adjustment circuit in the present invention. DETAILED DESCRIPTION
[0016] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0017] The present invention mainly aims at the problem that when the bus is in an abnormal state such as short circuit, open circuit or all drivers on the bus are not working, the receiver output is in an unstable state. An RS485 receiver threshold adjustment circuit is proposed to set the positive and negative input thresholds of the RS485 receiver below 0V, so as to ensure that when the bus is short circuit, open circuit or all drivers on the bus are not working, the receiver outputs a fixed high level, which is convenient for system problem troubleshooting and ensures that there is no additional power consumption when the device is in the off state. Figure 1 As shown, the RS485 receiver input threshold adjustment circuit includes: a resistor network module, a threshold adjustment module, an amplification comparison module and an output buffer module;
[0018] The resistor network module is connected to the threshold adjustment module and the amplification comparison module. The resistor network module provides a common-mode voltage for the operational amplifier in the amplification comparison module and adjusts the receiver input common-mode voltage range to 0-VDD.
[0019] In some preferred embodiments, the resistor network module includes an operational amplifier AMP1 and resistors R1 to R6; the positive input terminal of the operational amplifier AMP1 is connected to an external reference voltage Vref, and the negative input terminal of the operational amplifier AMP1 is connected to the positive terminal of resistor R1 and the negative terminal of resistor R2; the output terminal of the operational amplifier AMP1 is connected to the positive terminal of resistor R2, the negative terminal of resistor R5, and the negative terminal of resistor R6; the negative terminal of resistor R1 is grounded; the positive terminal of resistor R5 serves as the negative output terminal of the resistor network module, and the positive terminal of resistor R5 is connected to the negative terminal of resistor R3, the threshold adjustment module and the amplification and comparison module; the positive terminal of resistor R6 serves as the positive output terminal of the resistor network module, and the positive terminal of resistor R6 is connected to the negative terminal of resistor R4, the threshold adjustment module and the amplification and comparison module; the positive terminal of resistor R3 is connected to the external negative input VinN of the receiver; the positive terminal of resistor R4 is connected to the external positive input VinP of the receiver.
[0020] The threshold adjustment module makes the output of the amplification comparison module be a fixed high level when the differential voltage of the positive and negative terminals of the external input of the receiver is 0V.
[0021] In some preferred embodiments, the threshold adjustment module includes an NMOS tube NM1, an NMOS tube NM2, resistors R7-R8, and a capacitor C1; the drain of the NMOS tube NM1 is respectively connected to an external input current source, a gate of the NMOS tube NM1, and a gate of the NMOS tube NM2; the source of the NMOS tube NM1, the substrate of the NMOS tube NM1, the source of the NMOS tube NM2, and the substrate of the NMOS tube NM2 are all grounded; the drain of the NMOS tube NM2 is connected to the negative end of the resistor R7; the positive end of the resistor R7 serves as the negative input end of the threshold adjustment module, and the positive end of the resistor R7 is connected to the negative output end of the resistor network module and the negative input end of the amplification and comparison module; the negative end of the capacitor C1 is grounded, and the positive end of the capacitor C1 is connected to the negative end of the resistor R8; the positive end of the resistor R8 serves as the positive input end of the threshold adjustment module, and the positive end of the resistor R8 is respectively connected to the positive output end of the resistor network module and the positive input end of the amplification and comparison module.
[0022] The amplification and comparison module is connected to the output buffer module, and the amplification and comparison module amplifies and compares the receiver input differential voltage after being reduced by the resistor network module, and converts it into a single-ended output.
[0023] In some preferred instances, the amplification and comparison module includes an operational amplifier AMP2 and a comparator COMP1; the positive input terminal of the operational amplifier AMP2 serves as the positive input terminal of the amplification and comparison module, and the positive input terminal of the operational amplifier AMP2 is connected to the positive output terminal of the resistor network module and the positive input terminal of the threshold adjustment module; the negative input terminal of the operational amplifier AMP2 serves as the negative input terminal of the amplification and comparison module, and the operational amplifier AMP2 is connected to the negative output terminal of the resistor network module and the negative input terminal of the threshold adjustment module; the positive output terminal of the operational amplifier AMP2 is connected to the positive input terminal of the comparator COMP1, and the negative output terminal of the operational amplifier AMP2 is connected to the negative input terminal of the comparator COMP1; the output of the comparator COMP1 is connected to the output buffer module.
[0024] The output buffer module shapes and outputs the single-ended signal output by the amplifying and comparing module. Preferably, the output buffer module includes a Schmitt trigger and a buffer driving unit.
[0025] The working principle of the RS485 receiver input threshold adjustment circuit designed by the present invention is as follows: the present invention uses an operational amplifier combined with a resistor voltage divider at the RS485 receiver input stage to attenuate the wide common-mode output range of the receiver and provide a common-mode bias voltage for the comparator, replacing the pure resistor network method of the traditional RS485 receiver input stage, avoiding the path from the internal circuit power supply to the ground, and making the power consumption of the circuit extremely low in the off state. The present invention introduces an asymmetric bias at the positive and negative input terminals of the amplification and comparison module of the RS485 receiver internal circuit, so that when an abnormal state such as a short circuit, an open circuit, or all drivers on the bus are not working occurs at the receiver receiving end, there is a voltage difference between the positive and negative input terminals of the internal comparator of the receiver, so that the receiver outputs a fixed high level.
[0026] In summary, the present invention introduces a bias circuit at the internal comparator input of the receiver to ensure that when an abnormal state such as a bus short circuit, an open circuit, or all drivers on the bus are not working occurs, there is a voltage difference between the positive and negative input terminals of the comparator of the receiver, so that the receiver outputs a fixed high level. At the same time, the resistor network from the power supply to the ground inside the circuit is eliminated, so that the power consumption of the circuit is extremely low when it is in the off state.
[0027] The above embodiments further illustrate the purpose, technical solutions and advantages of the present invention in detail. It should be understood that the above embodiments are only preferred implementation modes of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made to the present invention within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. An RS485 receiver input threshold adjustment circuit, characterized in that: include: Resistor network module, threshold adjustment module, amplification comparison module and output buffer module; The resistor network module is connected to the threshold adjustment module and the amplification comparison module, and the resistor network module provides a common mode voltage for the operational amplifier in the amplification comparison module, and adjusts the receiver input common mode voltage range to 0-VDD; The threshold adjustment module makes the output of the amplification and comparison module a fixed high level when the differential voltage of the positive and negative terminals of the external input of the receiver is 0V; The amplification and comparison module is connected to the output buffer module, and the amplification and comparison module amplifies and compares the receiver input differential voltage after being reduced by the resistor network module, and converts it into a single-ended output; The output buffer module shapes and outputs the single-ended signal output by the amplifying and comparing module.
2. The RS485 receiver input threshold adjustment circuit according to claim 1, characterized in that: The resistor network module includes an operational amplifier AMP1 and resistors R1 to R6; the positive input terminal of the operational amplifier AMP1 is connected to an external reference voltage Vref, and the negative input terminal of the operational amplifier AMP1 is connected to the positive terminal of the resistor R1 and the negative terminal of the resistor R2; the output terminal of the operational amplifier AMP1 is connected to the positive terminal of the resistor R2, the negative terminal of the resistor R5, and the negative terminal of the resistor R6; the negative terminal of the resistor R1 is grounded; the positive terminal of the resistor R5 serves as the negative output terminal of the resistor network module, and the positive terminal of the resistor R5 is connected to the negative terminal of the resistor R3, the threshold adjustment module, and the amplification comparison module; the positive terminal of the resistor R6 serves as the positive output terminal of the resistor network module, and the positive terminal of the resistor R6 is connected to the negative terminal of the resistor R4, the threshold adjustment module, and the amplification comparison module; The positive end of the resistor R3 is connected to the external negative input VinN of the receiver; the positive end of the resistor R4 is connected to the external positive input VinP of the receiver.
3. The RS485 receiver input threshold adjustment circuit according to claim 1, characterized in that: The threshold adjustment module includes an NMOS tube NM1, an NMOS tube NM2, resistors R7-R8, and a capacitor C1; the drain of the NMOS tube NM1 is respectively connected to an external input current source, a gate of the NMOS tube NM1, and a gate of the NMOS tube NM2; the source of the NMOS tube NM1, the substrate of the NMOS tube NM1, the source of the NMOS tube NM2, and the substrate of the NMOS tube NM2 are all grounded; the drain of the NMOS tube NM2 is connected to the negative end of the resistor R7; the positive end of the resistor R7 serves as the negative input end of the threshold adjustment module, and the positive end of the resistor R7 is connected to the negative output end of the resistor network module and the negative input end of the amplification comparison module; the negative end of the capacitor C1 is grounded, and the positive end of the capacitor C1 is connected to the negative end of the resistor R8; the positive end of the resistor R8 serves as the positive input end of the threshold adjustment module, and the positive end of the resistor R8 is respectively connected to the positive output end of the resistor network module and the positive input end of the amplification comparison module.
4. The RS485 receiver input threshold adjustment circuit according to claim 1, characterized in that: The amplification and comparison module includes an operational amplifier AMP2 and a comparator COMP1; the positive input terminal of the operational amplifier AMP2 serves as the positive input terminal of the amplification and comparison module, and the positive input terminal of the operational amplifier AMP2 is connected to the positive output terminal of the resistor network module and the positive input terminal of the threshold adjustment module; the negative input terminal of the operational amplifier AMP2 serves as the negative input terminal of the amplification and comparison module, and the operational amplifier AMP2 is connected to the negative output terminal of the resistor network module and the negative input terminal of the threshold adjustment module; the positive output terminal of the operational amplifier AMP2 is connected to the positive input terminal of the comparator COMP1, and the negative output terminal of the operational amplifier AMP2 is connected to the negative input terminal of the comparator COMP1; the output of the comparator COMP1 is connected to the output buffer module.
5. The RS485 receiver input threshold adjustment circuit according to claim 1, characterized in that: The output buffer module includes a Schmitt trigger and a buffer driving unit.
