A hysteretic comparator circuit
By using TL431 or TL432 type three-terminal adjustable shunt regulators and voltage divider resistor networks, the problems of high cost and insufficient versatility of existing hysteresis comparator circuits are solved, achieving reduced circuit cost, increased flexibility and the ability to adapt to a wide range of input voltages.
Patent Information
- Application Number
- CN202522738316.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-24
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2035-12-24
AI Technical Summary
Existing hysteresis comparator circuits require additional high-precision voltage regulators or reference voltage sources, resulting in high costs, insufficient versatility and flexibility, and difficulty in adapting to application scenarios with a wide range of input voltages.
The core component is a TL431 or TL432 type three-terminal adjustable shunt regulator. The threshold voltage, upper and lower limits are set by combining a voltage divider resistor network, eliminating the need for an independent high-precision regulator. Different threshold ranges can be adapted by adjusting the resistor parameters.
It significantly reduces circuit costs, improves versatility and flexibility, adapts to an extremely wide input voltage range, requires fewer components, and is easy to assemble and maintain.
Smart Images

Figure CN225020472U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to a hysteresis comparator circuit. Background Technology
[0002] A hysteresis comparator is a comparator circuit with hysteresis loop propagation characteristics. By setting upper and lower hysteresis threshold voltages, it can effectively eliminate poor output conversion caused by noise, signal fluctuations, or slowly changing signals. It is widely used in power management, signal detection, and other scenarios in electronic devices.
[0003] like Figure 1 As shown, a typical existing hysteresis comparator circuit mainly uses a general-purpose integrated chip comparator (or operational amplifier) as the core component. Its basic structure includes a comparator (or operational amplifier), a high-precision voltage regulator (or reference voltage source), and a resistor network. The high-precision voltage regulator powers the comparator and provides a threshold voltage reference through the resistor network, which is used to adjust the threshold voltage range; or a separate high-precision reference voltage source can be used to provide a reference for the threshold voltage.
[0004] However, the aforementioned existing technologies have obvious drawbacks: on the one hand, in addition to the necessary general-purpose integrated chip comparator (or operational amplifier), the circuit also requires additional high-precision voltage regulators or reference voltage sources, which increases the overall cost of the circuit; on the other hand, the model of the high-precision voltage regulator needs to be reselected and adapted according to the input voltage range, which increases the difficulty of device selection and inventory management costs, and lacks versatility and flexibility, making it difficult to adapt to application scenarios with a wide range of input voltages. Utility Model Content
[0005] To address the aforementioned problems, this invention provides a hysteresis comparator circuit, which effectively solves the issues mentioned in the background art.
[0006] The technical solution adopted in this utility model is:
[0007] A hysteresis comparator circuit includes an input voltage terminal Vin, an output voltage terminal Vout, a first three-terminal adjustable shunt regulator U1, a second three-terminal adjustable shunt regulator U2, an electronic switch Q1, a first voltage divider resistor network, a second voltage divider resistor network, a bias resistor R6 biased to provide current to the cathode of the first three-terminal adjustable shunt regulator U1 and the cathode of the second three-terminal adjustable shunt regulator U2, and a current limiting resistor R5.
[0008] The first voltage divider resistor network is composed of resistors R1 and R2 connected in series, and the second voltage divider resistor network is composed of resistors R3 and R4 connected in series;
[0009] The input voltage terminal Vin is electrically connected to the input terminal of the first voltage divider resistor network and the input terminal of the electronic switch Q1, respectively.
[0010] The input terminal of the first voltage divider resistor network is electrically connected to the input voltage terminal Vin, and the output terminal is electrically connected to the reference terminal of the first three-terminal adjustable shunt regulator U1. The input terminal of the second voltage divider resistor network is electrically connected to the output voltage terminal Vout, and the output terminal is electrically connected to the reference terminal of the second three-terminal adjustable shunt regulator U2.
[0011] The cathodes of the first three-terminal adjustable shunt regulator U1 and the second three-terminal adjustable shunt regulator U2 are both electrically connected to the input voltage terminal Vin after passing through the bias resistor R6. At the same time, the cathodes of the first three-terminal adjustable shunt regulator U1 and the second three-terminal adjustable shunt regulator U2 are also electrically connected to the control terminal of the electronic switch Q1 after passing through the current limiting resistor R5.
[0012] The output terminal of the electronic switch Q1 is electrically connected to the output voltage terminal Vout.
[0013] The first voltage divider resistor network is configured to set an upper threshold voltage VH, and the second voltage divider resistor network is configured to set a lower threshold voltage VL, where VH > VL.
[0014] Preferably, the electronic switch Q1 is a PNP transistor;
[0015] The emitter of the PNP transistor serves as the input terminal of the electronic switch Q1 and is electrically connected to the input voltage terminal Vin; the collector of the PNP transistor serves as the output terminal of the electronic switch Q1 and is electrically connected to the output voltage terminal Vout; the base of the PNP transistor serves as the control terminal of the electronic switch Q1 and is electrically connected to the cathode of the first three-terminal adjustable shunt regulator U1 and the cathode of the second three-terminal adjustable shunt regulator U2.
[0016] It also includes a discharge resistor R9, which is connected in parallel between the emitter and base of the PNP transistor.
[0017] Preferably, the electronic switch Q1 is a P-channel MOSFET;
[0018] The source of the P-channel MOSFET serves as the input terminal of the electronic switch Q1 and is electrically connected to the input voltage terminal Vin. The drain of the P-channel MOSFET serves as the output terminal of the electronic switch Q1 and is electrically connected to the output voltage terminal Vout. The gate of the P-channel MOSFET serves as the control terminal of the electronic switch Q1 and is electrically connected to the cathode of the first three-terminal adjustable shunt regulator U1 and the cathode of the second three-terminal adjustable shunt regulator U2.
[0019] It also includes a discharge resistor R9 and a Zener diode Z1. The discharge resistor R9 and the Zener diode Z1 are connected in parallel between the gate and source of the P-channel MOSFET, respectively. The Zener diode Z1 is used to clamp the gate-source voltage to prevent the P-channel MOSFET from being damaged by overvoltage.
[0020] Preferably, to enhance the electromagnetic compatibility (EMC) and stability of the circuit, an EMC filter capacitor is also included, wherein the EMC filter capacitor includes capacitor C1, capacitor C2, and capacitor C3.
[0021] The capacitor C1 is connected in parallel between the input terminal and the control terminal of the electronic switch Q1 to filter out high-frequency noise in the input voltage;
[0022] The capacitor C2 is connected in parallel between the reference terminal of the first three-terminal adjustable shunt regulator U1 and ground, and together with resistors R1 and R2, it forms a filter to filter out high-frequency noise in the input voltage of the reference terminal of the first three-terminal adjustable shunt regulator U1.
[0023] The capacitor C3 is connected in parallel between the reference terminal of the second three-terminal adjustable shunt regulator U2 and ground. Together with resistors R3 and R4, it forms a filter to filter out high-frequency noise in the input voltage of the reference terminal of the first three-terminal adjustable shunt regulator U1.
[0024] As a preferred option, current balancing resistors R7 and R8 are also included to balance the current flowing through the two three-terminal adjustable shunt regulators, ensuring stable operation even if there are differences in their parameters.
[0025] The current balancing resistor R7 is connected in series between the cathode of the first three-terminal adjustable shunt regulator U1 and the bias resistor R6.
[0026] The current balancing resistor R8 is connected in series between the cathode of the second three-terminal adjustable shunt regulator U2 and the bias resistor R6.
[0027] Preferably, the anodes of both the first three-terminal adjustable shunt regulator U1 and the second three-terminal adjustable shunt regulator U2 are grounded.
[0028] Preferably, the first three-terminal adjustable shunt regulator U1 and the second three-terminal adjustable shunt regulator U2 are TL431 or TL432 type three-terminal adjustable shunt regulators. These devices have both reference voltage generation and comparison functions, and are low in cost and highly versatile.
[0029] Compared with the prior art, this utility model has the following advantages:
[0030] 1. Significantly reduced cost: The TL431 (or TL432) is used as the core device. This device has the dual functions of "reference voltage source" and "comparator", eliminating the need for the independent high-precision voltage regulator or reference voltage source required in the existing technology. Moreover, the price of the TL431 device is much lower than that of integrated comparators / operational amplifiers, which greatly reduces the circuit cost.
[0031] 2. Flexible threshold adjustment: The upper and lower limits of the threshold voltage (VH) can be set by using independent first voltage divider resistor networks (R1, R2) and second voltage divider resistor networks (R3, R4) respectively. There is no need to replace the core components. Different threshold ranges can be adapted simply by adjusting the voltage divider resistor parameters. The operation is simple.
[0032] 3. Wide input voltage adaptation range: No need to reselect core components in an extremely wide input voltage range. The wide operating voltage characteristics of TL431, combined with reasonable resistor parameter design, enable the circuit to adapt to an extremely wide input voltage range, which is highly versatile and reduces inventory management costs.
[0033] 4. High precision: The TL431 integrates a high-precision reference voltage to ensure the stability and accuracy of the threshold voltage;
[0034] 5. Simple structure and easy maintenance: The circuit topology is clear, each module has independent function, the number of components is small, and it is easy to assemble, debug and maintain. Attached Figure Description
[0035] Figure 1 This is a schematic diagram of the structure of a hysteresis comparator circuit in the prior art;
[0036] Figure 2 This is a schematic diagram of a hysteresis comparator circuit that uses a PNP transistor as an electronic switch.
[0037] Figure 3 This is a schematic diagram of a hysteresis comparator circuit that uses a P-channel MOSFET as an electronic switch.
[0038] In the diagram: Vin, input voltage terminal; Vout, output voltage terminal; U1, first three-terminal adjustable shunt regulator; U2, second three-terminal adjustable shunt regulator; Q1, electronic switch (PNP transistor or P-channel MOSFET); R1-R9, resistors; C1-C3, filter capacitors; Z1, Zener diode; VH, upper limit of threshold voltage; VL, lower limit of threshold voltage. Detailed Implementation
[0039] It should be noted that the following detailed descriptions are illustrative and intended to provide further explanation of this application. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains.
[0040] It should be noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the exemplary embodiments according to this application. As used herein, the singular form is intended to include the plural form as well, unless the context clearly indicates otherwise. Furthermore, it should be understood that when the terms "comprising" and / or "including" are used in this specification, they indicate the presence of features, steps, operations, devices, components, and / or combinations thereof.
[0041] Furthermore, in the description of this utility model, it should be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "clockwise," and "counterclockwise," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this utility model and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this utility model.
[0042] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this utility model, unless otherwise stated, "a plurality of" means two or more, unless otherwise expressly defined.
[0043] In this utility model, unless otherwise explicitly specified and limited, the terms "installation," "connection," "linking," and "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this utility model according to the specific circumstances.
[0044] In this invention, unless otherwise explicitly specified and limited, "above" or "below" the second feature can include direct contact between the first and second features, or contact between the first and second features through another feature between them. Furthermore, "above," "over," and "on top" of the second feature includes the first feature directly above or diagonally above the second feature, or simply indicates that the first feature is at a higher horizontal level than the second feature. "Below," "below," and "under" the second feature includes the first feature directly below or diagonally below the second feature, or simply indicates that the first feature is at a lower horizontal level than the second feature.
[0045] The present invention will now be described in further detail with reference to specific embodiments and accompanying drawings.
[0046] Example 1: Hysteresis comparator circuit using PNP transistors as electronic switches
[0047] like Figure 2 As shown, the hysteresis comparator circuit of this embodiment includes: an input voltage terminal Vin, an output voltage terminal Vout, a first three-terminal adjustable shunt regulator U1 (TL431), a second three-terminal adjustable shunt regulator U2 (TL431), a PNP transistor Q1, first voltage divider resistors R1 and R2, second voltage divider resistors R3 and R4, a bias resistor R6 biased to provide current to the cathode of the first three-terminal adjustable shunt regulator U1 and the cathode of the second three-terminal adjustable shunt regulator U2, a current limiting resistor R5, a discharge resistor R9, filter capacitors C1, C2, and C3, and current balancing resistors R7 and R8.
[0048] The specific connection relationships of each component are as follows:
[0049] The input voltage terminal Vin is electrically connected to one end of R1, the emitter of PNP transistor Q1, and one end of C1, respectively. The other end of C1 is electrically connected to the base of PNP transistor Q1.
[0050] The other end of R1 is electrically connected to one end of R2, and the output of the first voltage divider resistor network is formed between R1 and R2 and electrically connected to the reference terminal of U1; the other end of R2 is grounded; C2 is connected in parallel between the reference terminal of U1 and ground;
[0051] One end of R3 is electrically connected to the output voltage terminal Vout, and the other end is electrically connected to one end of R4. R3 and R4 form the output terminal of the second voltage divider network and are electrically connected to the reference terminal of U2. The other end of R4 is grounded. C3 is connected in parallel between the reference terminal of U2 and ground.
[0052] The cathode of U1 is electrically connected to one end of R7, and the cathode of U2 is electrically connected to one end of R8; the other ends of R7 and R8 are both electrically connected to one end of R6; the other end of R6 is electrically connected to the input voltage terminal Vin, while the other ends of R7 and R8 are both electrically connected to one end of R5; the other end of R5 is electrically connected to the base of PNP transistor Q1.
[0053] The base of PNP transistor Q1 is also electrically connected to one end of R9; the other end of R9 is electrically connected to the input voltage terminal Vin.
[0054] The collector of PNP transistor Q1 is electrically connected to the output voltage terminal Vout.
[0055] The working principle of this embodiment is as follows:
[0056] 1. Threshold voltage setting: According to the voltage division principle, the upper limit of the threshold voltage VH is determined by the voltage division ratio of R1 and R2 and the internal reference voltage of U1, and the lower limit of the threshold voltage VL is determined by the voltage division ratio of R3 and R4 and the internal reference voltage of U2. Furthermore, the parameters of R1-R4 are selected to ensure that VH > VL.
[0057] 2. Input voltage increases from low to high: When the input voltage Vin > VH, the voltage output of the first voltage divider network reaches the reference voltage threshold of U1, and U1 switches from the off state to the on state; after U1 turns on, Q1 switches from the off state to the on state, and the voltage at the output voltage Vout is approximately equal to Vin (Q1's on-resistance or voltage difference is sufficiently small); since VH > VL, the voltage output of the second voltage divider network is also greater than the reference voltage threshold of U2, and U2 turns on synchronously, providing drive current to the base of Q1 in parallel with U1. At this time, even if the single three-terminal adjustable shunt regulator is missing its on state, Q1 can still be kept on;
[0058] 3. Input voltage between VH and VL: When VL < Vin < VH, the voltage output of the first voltage divider network is lower than the reference voltage threshold of U1, and U1 switches from the on state to the off state, stopping the supply of drive current to the base of Q1; however, at this time, the voltage output of the second voltage divider network is still greater than the reference voltage threshold of U2, and U2 remains on, continuing to supply drive current to the base of Q1, Q1 remains on, and Vout is still approximately equal to Vin (Q1's on-resistance or voltage difference is sufficiently small);
[0059] 4. Input voltage decreases from high to low: When Vin < VL, the voltage output by the second voltage divider resistor network is lower than the reference voltage threshold of U2. U2 switches from the on state to the off state and stops providing drive current to the base of Q1. The emitter of Q1 discharges through R9, accelerating the switch from the on state to the off state. The voltage of Vout changes from approximately equal to Vin to zero volts.
[0060] Example 2: Hysteresis comparator circuit using P-channel MOSFET as electronic switch
[0061] like Figure 3 As shown, the difference between this embodiment and Embodiment 1 lies only in the type of electronic switch and the supporting components. The remaining components and connections are the same, as follows: Electronic switch Q1 adopts a P-channel MOSFET. Its source is electrically connected to the input voltage terminal Vin, and its drain is electrically connected to the output voltage terminal Vout. The gate is electrically connected to the cathodes of U1 and U2 via R5. The gate is also electrically connected to one end of R9, and the other end of R9 is electrically connected to the source of the P-channel MOSFET. A Zener diode Z1 is connected in parallel between the gate and source of the P-channel MOSFET to clamp the gate-source voltage and prevent the MOSFET from being damaged due to gate-source overvoltage.
[0062] The working principle of this embodiment is the same as that of Embodiment 1, except that the turn-on / turn-off control logic of Q1 is adapted to the characteristics of the P-channel MOSFET: when U1 and / or U2 are turned on, the gate obtains drive current through R5, the gate-source voltage meets the turn-on condition, and the P-channel MOSFET is turned on; when both U1 and U2 are turned off, the gate discharges through R9, the gate-source voltage is lower than the turn-on threshold, and the P-channel MOSFET is turned off; Z1 always ensures that the gate-source voltage does not exceed the rated withstand voltage of the P-channel MOSFET, protecting the device safety.
[0063] Finally, it should be noted that the above examples are merely specific embodiments of this utility model. Obviously, this utility model is not limited to the above embodiments and can have many variations. All variations that can be directly derived or conceived by those skilled in the art from the disclosure of this utility model should be considered within the protection scope of this utility model.
Claims
1. A hysteresis comparator circuit, characterized in that, The system includes an input voltage terminal (Vin), an output voltage terminal (Vout), a first three-terminal adjustable shunt regulator (U1), a second three-terminal adjustable shunt regulator (U2), an electronic switch (Q1), a first voltage divider resistor network, a second voltage divider resistor network, a bias resistor (R6) biased to provide current to the cathodes of the first and second three-terminal adjustable shunt regulators (U1) and the second three-terminal adjustable shunt regulator (U2), and a current-limiting resistor (R5). The first voltage divider resistor network is composed of resistors R1 and R2 connected in series, and the second voltage divider resistor network is composed of resistors (R3 and R4) connected in series. The input voltage terminal (Vin) is electrically connected to the input terminal of the first voltage divider resistor network and the input terminal of the electronic switch (Q1). The input terminal of the first voltage divider resistor network is electrically connected to the input voltage terminal (Vin), and the output terminal is connected to the reference of the first three-terminal adjustable shunt regulator (U1). The first voltage divider resistor network is electrically connected to the input voltage terminal (Vout) and the output terminal is electrically connected to the reference terminal of the second three-terminal adjustable shunt regulator (U2). The cathodes of the first three-terminal adjustable shunt regulator (U1) and the second three-terminal adjustable shunt regulator (U2) are electrically connected to the input voltage terminal (Vin) after passing through a bias resistor (R6). At the same time, the cathodes of the first three-terminal adjustable shunt regulator (U1) and the second three-terminal adjustable shunt regulator (U2) are also electrically connected to the control terminal of the electronic switch (Q1) after passing through a current limiting resistor (R5). The output terminal of the electronic switch (Q1) is electrically connected to the output voltage terminal (Vout). The first voltage divider resistor network is configured to set the upper threshold voltage (VH), and the second voltage divider resistor network is configured to set the lower threshold voltage (VL), where VH > VL.
2. The hysteresis comparator circuit according to claim 1, characterized in that, The electronic switch (Q1) is a PNP transistor; the emitter of the PNP transistor serves as the input terminal of the electronic switch (Q1) and is electrically connected to the input voltage terminal (Vin); the collector of the PNP transistor serves as the output terminal of the electronic switch (Q1) and is electrically connected to the output voltage terminal (Vout); the base of the PNP transistor serves as the control terminal of the electronic switch (Q1) and is electrically connected to the cathode of the first three-terminal adjustable shunt regulator (U1) and the cathode of the second three-terminal adjustable shunt regulator (U2); it also includes a discharge resistor (R9), which is connected in parallel between the emitter and base of the PNP transistor.
3. A hysteresis comparator circuit according to claim 1, characterized in that, The electronic switch (Q1) is a P-channel MOSFET; the source of the P-channel MOSFET serves as the input terminal of the electronic switch (Q1) and is electrically connected to the input voltage terminal (Vin); the drain of the P-channel MOSFET serves as the output terminal of the electronic switch (Q1) and is electrically connected to the output voltage terminal (Vout); the gate of the P-channel MOSFET serves as the control terminal of the electronic switch (Q1) and is electrically connected to the cathode of the first three-terminal adjustable shunt regulator (U1) and the cathode of the second three-terminal adjustable shunt regulator (U2); it also includes a discharge resistor (R9) and a Zener diode (Z1), which are connected in parallel between the gate and source of the P-channel MOSFET, respectively, and the Zener diode (Z1) is used to clamp the gate-source voltage.
4. A hysteresis comparator circuit according to claim 2 or 3, characterized in that, It also includes EMC filter capacitors, namely capacitors (C1), (C2), and (C3); capacitor (C1) is connected in parallel between the input terminal and the control terminal of the electronic switch (Q1); capacitor (C2) is connected in parallel between the reference terminal of the first three-terminal adjustable shunt regulator (U1) and ground; and capacitor (C3) is connected in parallel between the reference terminal of the second three-terminal adjustable shunt regulator (U2) and ground.
5. A hysteresis comparator circuit according to claim 4, characterized in that, It also includes current balancing resistors (R7, R8); the current balancing resistor R7 is connected in series between the cathode of the first three-terminal adjustable shunt regulator (U1) and the bias resistor (R6); the current balancing resistor R8 is connected in series between the cathode of the second three-terminal adjustable shunt regulator (U2) and the bias resistor (R6).
6. A hysteresis comparator circuit according to claim 5, characterized in that, The anodes of the first three-terminal adjustable shunt regulator (U1) and the second three-terminal adjustable shunt regulator (U2) are both grounded.
7. A hysteresis comparator circuit according to claim 6, characterized in that, The first three-terminal adjustable shunt regulator (U1) and the second three-terminal adjustable shunt regulator (U2) are TL431 or TL432 type three-terminal adjustable shunt regulators.
