A hysteresis comparator with wide input voltage range
By designing voltage dividing resistors and parameter ratio components in the hysteresis comparator, the problem of small input voltage range and susceptibility to offset is solved, and a wider input voltage range and higher stability are achieved.
Patent Information
- Application Number
- CN202410599945.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-05-15
AI Technical Summary
Existing hysteresis comparators have a small input voltage range and are susceptible to process offsets and temperature offsets, which limits the flexibility and reliability of their practical applications.
A wide input voltage range hysteresis comparator including a startup module, a reference current and bias voltage module, an input threshold and hysteresis voltage module and a comparator module is designed. By setting the components of the voltage dividing resistor and parameter ratio, it ensures The input voltage range is extended and the effects of temperature and process offsets are eliminated.
It effectively increases the input voltage range, avoids premature saturation of the transistor, ensures the stability and reliability of the circuit, eliminates the effects of temperature and process offset, and improves the application flexibility of the hysteresis comparator.
Smart Images

Figure CN118174701B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of hysteresis comparators, and in particular to a hysteresis comparator with a wide input voltage range. Background Art
[0002] The hysteresis comparator introduces the hysteresis effect into its circuit. In simple terms, the hysteresis effect means that during the magnetization process of a material, its magnetization state depends not only on the current magnetic field strength, but also on the previous magnetization history, resulting in a hysteresis in the magnetization curve.
[0003] In the application of hysteresis comparator, this characteristic is used to enhance the stability and anti-interference ability of the comparator. By introducing hysteresis, the comparator no longer relies solely on the instantaneous signal value when judging the state change of the input signal, but takes into account the change trend and historical state of the signal, thereby avoiding misjudgment caused by noise or interference to a certain extent.
[0004] Hysteresis comparators are used in many fields. For example, in power electronics and motor control, hysteresis comparators can be used to achieve accurate voltage and current comparisons and improve the stability and performance of the control system. In addition, in the field of sensors and signal processing, hysteresis comparators can also be used to filter out noise and improve the quality of signals. In addition, hysteresis comparators are also used in signal processing of magnetic sensors, especially in automotive applications, such as the detection of gearbox speed, wheel speed, camshaft speed, etc. In these applications, hysteresis comparators can effectively suppress noise caused by external interference such as vibration, ensure the accuracy of the output signal, and thus ensure the reliability of the system.
[0005] However, most existing hysteresis comparators have a small input voltage range, and the hysteresis voltage is easily affected by process offset and temperature offset, which greatly limits their practical applications. Summary of the invention
[0006] The purpose of the present invention is to provide a hysteresis comparator with a wide input voltage range, aiming to improve the problems that most of the existing hysteresis comparators have a small input voltage range and the hysteresis voltage is easily affected by process imbalance and temperature imbalance, which has great limitations in practical applications.
[0007] To achieve the above object, the present invention adopts the following technical solutions:
[0008] A hysteresis comparator with a wide input voltage range includes a startup module, a reference current and bias voltage module, an input threshold and hysteresis voltage module and a comparator module.
[0009] The signal output terminal of the start-up module is electrically connected to the signal input terminal of the reference current and bias voltage module, and the start-up module outputs a start signal or a shutdown signal to the reference current and bias voltage module;
[0010] The signal output end of the reference current and bias voltage module is electrically connected to the signal input end of the input threshold and hysteresis voltage module and the comparator module, the reference current and bias voltage module outputs a first reference current to the comparator module, and the reference current and bias voltage module outputs a second reference current to the input threshold and hysteresis voltage module; the reference current and bias voltage module outputs a first bias voltage VBIAS0 and a second bias voltage VBIAS1 to the input threshold and hysteresis voltage module; the reference current and bias voltage module outputs a third bias voltage VBIAS2, a fourth bias voltage VBIAS3, a fifth bias voltage VBIAS4 and a sixth bias voltage VBIAS5 to the comparator module;
[0011] The output end of the input threshold and hysteresis voltage module is electrically connected to the input end of the comparator module, and the output end of the comparator module is connected to the output interface Y;
[0012] The power input terminals of the startup module, the reference current and bias voltage module, the input threshold and hysteresis voltage module and the comparator module are electrically connected to the Vdd port.
[0013] Further, the startup module includes a current source I0, a resistor R0, a MOS tube N0, a MOS tube N1, a MOS tube N2, a MOS tube N3, a MOS tube N4, a MOS tube N5 and a MOS tube P0, a MOS tube P1, and a MOS tube P2;
[0014] The cathode of the current source I0, the drain of the MOS transistor N2, the source of the MOS transistor P0 and the source of the MOS transistor P1 are all electrically connected to the Vdd port;
[0015] The positive electrode of the current source I0 is electrically connected to one end of the resistor R0, and the other end of the resistor R0 is electrically connected to the drain and gate of the MOS transistor N0, the gate of the MOS transistor N2, and the gate of the MOS transistor N4;
[0016] The source of the MOS transistor N0 is electrically connected to the drain and gate of the MOS transistor N1, the gate of the MOS transistor N3, and the gate of the MOS transistor N5; the source of the MOS transistor N2 is electrically connected to the drain of the MOS transistor N3, the source of the MOS transistor N4 is electrically connected to the drain of the MOS transistor N5; the drain of the MOS transistor N4 is electrically connected to the drain of the MOS transistor P0 and the gate of the MOS transistor P2;
[0017] The source of the MOS transistor P2 is electrically connected to the gate and drain of the MOS transistor P1; the drain of the MOS transistor P2 and the gate of the MOS transistor P0 are both electrically connected to the signal input terminal of the reference current and bias voltage module;
[0018] The source of the MOS transistor N1 , the source of the MOS transistor N3 and the source of the MOS transistor N5 are all grounded.
[0019] Further, the reference current and bias voltage module includes a first output branch, a second output branch, a third output branch, a fourth output branch, a fifth output branch and a sixth output branch electrically connected to each other;
[0020] The gate of the MOS transistor P0 is electrically connected to the second output branch, the third output branch, the fourth output branch and the sixth output branch, and the drain of the MOS transistor P2 is electrically connected to the third output branch.
[0021] Further, the first output branch includes MOS transistor P7, MOS transistor P8, MOS transistor N8, resistor R3, resistor R4 and capacitor C2;
[0022] The second output branch includes MOS transistor P9, MOS transistor P10, MOS transistor P11, transistor Q2, transistor Q3, resistor R5, resistor R6 and capacitor C3;
[0023] The third output branch includes MOS transistor P3, MOS transistor P4, MOS transistor P5, MOS transistor P6, MOS transistor N6, MOS transistor N7, triode Q0, triode Q1, capacitor C0, capacitor C1, resistor R1, and resistor R2;
[0024] The source of the MOS transistor P3, the source of the MOS transistor P5, the source of the MOS transistor P7, the source of the MOS transistor P9 and the source of the MOS transistor P10 are all electrically connected to the Vdd port;
[0025] The drain of the MOS transistor P3 is electrically connected to the source of the MOS transistor P4, and the drain of the MOS transistor P4 is electrically connected to the drain of the MOS transistor P2, the drain and gate of the MOS transistor N6, the gate of the MOS transistor N7 and one end of the resistor R3; the drain of the MOS transistor P5 is electrically connected to the source of the MOS transistor P6, and the drain of the MOS transistor P6 is electrically connected to the drain of the MOS transistor N7, and outputs the third bias voltage VBIAS2 to the comparator module as an output end; the source of the MOS transistor N6 is electrically connected to the collector and base of the transistor Q0, the base of the transistor Q1 and the capacitor C0, and one end of the capacitor C1, the emitter of the transistor Q0 is electrically connected to one end of the resistor R1, one end of the resistor R2 and the other end of the capacitor C0, the source of the MOS transistor N7 is electrically connected to the collector of the transistor Q1, and the emitter of the transistor Q1 is electrically connected to the other end of the resistor R1;
[0026] The gate of the MOS transistor P7 is electrically connected to the drain of the MOS transistor P8 and the drain of the MOS transistor N8, and serves as an output terminal to output the first bias voltage VBIAS0 to the input threshold and hysteresis voltage module; the drain of the MOS transistor P7 is electrically connected to the source of the MOS transistor P8, the gate of the MOS transistor N8 is electrically connected to the other end of the resistor R3 and one end of the capacitor C2, and the source of the MOS transistor N8 is electrically connected to one end of the resistor R4;
[0027] The drain and gate of the MOS transistor P9 are electrically connected to the gate of the MOS transistor P8 and the collector of the transistor Q2, and serve as an output terminal to output the second bias voltage VBIAS1 to the input threshold and hysteresis voltage module; the emitter of the transistor Q2 is electrically connected to one end of the resistor R5, the base of the transistor Q2 is electrically connected to the base and collector of the transistor Q3, the drain of the MOS transistor P11 and one end of the capacitor C3; the emitter of the transistor Q3 is electrically connected to one end of the resistor R6; the drain of the MOS transistor P10 is electrically connected to the source of the MOS transistor P11;
[0028] The gate of the MOS transistor P0 is electrically connected to the gate of the MOS transistor P3, the gate of the MOS transistor P4, the gate of the MOS transistor P5, the gate and the drain of the MOS transistor P6, the gate of the MOS transistor P10 and the gate of the MOS transistor P11;
[0029] The other ends of the capacitor C1 , the capacitor C2 , the capacitor C3 , the resistor R2 , the resistor R4 , the resistor R5 , and the resistor R6 are all grounded.
[0030] Furthermore, the fourth output branch includes a MOS transistor P12, a MOS transistor P13, a transistor Q4, a resistor R7 and a capacitor C4;
[0031] The fifth output branch includes a MOS transistor P14, a MOS transistor P15, a transistor Q5, a resistor R8 and a capacitor C5;
[0032] The sixth output branch includes MOS transistor P16, MOS transistor P17, transistor Q6, transistor Q7, transistor Q8, resistor R9, resistor R10 and capacitor C6, capacitor C7;
[0033] The source of the MOS transistor P12, the source of the MOS transistor P14, the source of the MOS transistor P16, the collector of the transistor Q8, one end of the capacitor C4 and one end of the capacitor C5 are all electrically connected to the Vdd port;
[0034] The gate of the MOS transistor P12 is electrically connected to the other end of the capacitor C4, the drain of the MOS transistor P13 and the collector of the transistor Q4, and outputs the fourth bias voltage VBIAS3 to the comparator module as an output end; the drain of the MOS transistor P12 is electrically connected to the source of the MOS transistor P13; the base of the transistor Q4 is electrically connected to the base of the transistor Q5, the base and collector of the transistor Q7, the base of the transistor Q6 and the emitter of the transistor Q8; the emitter of the transistor Q4 is electrically connected to one end of the resistor R7;
[0035] The gate of the MOS transistor P14 is electrically connected to the other end of the capacitor C5, the gate and drain of the MOS transistor P15, and the collector of the transistor Q5, and outputs the fifth bias voltage VBIAS4 to the comparator module as an output end; the drain of the MOS transistor P14 is electrically connected to the source of the MOS transistor P15; the emitter of the transistor Q5 is electrically connected to one end of the resistor R8;
[0036] The drain of the MOS transistor P16 is electrically connected to the source of the MOS transistor P17, and the drain of the MOS transistor P17 is electrically connected to the base of the transistor Q8, the collector of the transistor Q6, one end of the capacitor C6, and one end of the capacitor C7; the emitter of the transistor Q6 is electrically connected to one end of the resistor R9, the emitter of the transistor Q7 is electrically connected to one end of the resistor R10, and the emitter of the transistor Q8 is used as an output end to output the sixth bias voltage VBIAS5 to the comparator module;
[0037] The gate of the MOS transistor P0 is electrically connected to the gate of the MOS transistor P13, the gate of the MOS transistor P16 and the gate of the MOS transistor P17;
[0038] The other ends of the resistor R7 , the resistor R8 , the resistor R9 , the resistor R10 , the capacitor C6 and the capacitor C7 are all grounded.
[0039] Further, the input threshold and hysteresis voltage module includes MOS transistor P18, MOS transistor P19, MOS transistor P20, MOS transistor P21, MOS transistor P22, MOS transistor P27, MOS transistor P28, MOS transistor P29, MOS transistor P30, MOS transistor P31 and resistors R15, R18, R22, R23, R24 and R25;
[0040] The source of the MOS transistor P18, the source of the MOS transistor P20, the source of the MOS transistor P27 and the source of the MOS transistor P30 are all electrically connected to the Vdd port;
[0041] The gate of the MOS transistor P7 is electrically connected to the gate of the MOS transistor P18, the gate of the MOS transistor P20, the gate of the MOS transistor P27, and the gate of the MOS transistor P30; the drain of the MOS transistor P18 is electrically connected to the source of the MOS transistor P19, the drain of the MOS transistor P21, and the source and drain of the MOS transistor P22;
[0042] The drain of the MOS transistor P9 is electrically connected to the gate of the MOS transistor P19 and the gate of the MOS transistor P31; the drain of the MOS transistor P20 is electrically connected to the source of the MOS transistor P21; the gate of the MOS transistor P21 is electrically connected to the gate of the MOS transistor P28 and the comparator module; the gate of the MOS transistor P22 is electrically connected to the gate of the MOS transistor P29 and the comparator module;
[0043] The drain of the MOS transistor 27 is electrically connected to the source of the MOS transistor P28, and the drain of the MOS transistor P28 is electrically connected to the source and drain of the MOS transistor P29, the source of the MOS transistor P31, and the drain of the MOS transistor P30;
[0044] The drain of the MOS tube P19 is electrically connected to one end of the resistor R15 and the comparator module, the other end of the resistor R15 is electrically connected to the resistor R22, one end of the resistor R23 and the comparator module, and the other end of the resistor R22 is electrically connected to the external negative input terminal;
[0045] The drain of the MOS tube P31 is electrically connected to one end of the resistor R18, the resistor R25, the resistor R24 and the comparator module, the other end of the resistor R18 is electrically connected to the comparator module, and the other end of the resistor R24 is electrically connected to the external positive input terminal;
[0046] The other ends of the resistor R23 and the resistor R25 are both grounded.
[0047] Further, the comparator module includes a first-stage amplifier unit, a folded cascode amplifier unit, a slew rate boost unit and an output buffer unit;
[0048] The input threshold and hysteresis voltage module is electrically connected to the first-stage amplifier unit and the output buffer unit, the first-stage amplifier unit is electrically connected to the folded common-source and common-gate amplifier unit, the folded common-source and common-gate amplifier unit is electrically connected to the slew rate enhancement unit and the output buffer unit, the slew rate enhancement unit is electrically connected to the output buffer unit, and the output end of the output buffer unit is connected to the output interface Y.
[0049] Further, the first-stage amplifier unit includes MOS transistor P23, MOS transistor P24, MOS transistor P25, MOS transistor P26, transistor Q9, transistor Q10, transistor Q11, transistor Q12, transistor Q13 and resistors R11, R13, R16 and R17;
[0050] The folded cascode amplifier unit includes MOS transistor P32, MOS transistor P33, MOS transistor P34, MOS transistor P35, triode Q14, triode Q15, triode Q16, triode Q17, triode Q18 and resistor R19, resistor R20;
[0051] The source of the MOS transistor P23, the source of the MOS transistor P25, the source of the MOS transistor P32, the source of the MOS transistor P34 and the collector and base of the transistor Q9 are all electrically connected to the Vdd port;
[0052] The gate of the MOS transistor P14 is electrically connected to the gate of the MOS transistor P23, the gate of the MOS transistor P24, the gate of the MOS transistor P25, the gate of the MOS transistor P26 and the slew rate improvement unit; the drain of the MOS transistor P23 is electrically connected to the source of the MOS transistor P24, and the drain of the MOS transistor P25 is electrically connected to the source of the MOS transistor P26;
[0053] The drain of the MOS tube P24 is electrically connected to the collector, base and base of the transistor Q10 and the base of the transistor Q11, and the emitter of the transistor Q10 is electrically connected to the drain of the MOS tube P19; the collector of the transistor Q11 is electrically connected to the base of the transistor Q14 and one end of the resistor R11, and the emitter of the transistor Q11 is electrically connected to the emitter of the transistor Q12, one end of the resistor R16 and one end of the resistor R17, and the transistor Q14 is electrically connected to the base of the transistor Q14 and one end of the resistor R11. The other end of the resistor R16 is electrically connected to the other end of the resistor R15; the other end of the resistor R17 is electrically connected to the drain of the MOS tube P31; the base of the transistor Q12 is electrically connected to the base and collector of the transistor Q13 and the drain of the MOS tube P26; the emitter of the transistor Q13 is electrically connected to the other end of the resistor R18; the collector of the transistor Q12 is electrically connected to the base of the transistor Q15 and one end of the resistor R13;
[0054] The emitter of the transistor Q9 is electrically connected to the other end of the resistor R11 and the resistor R13; the emitter of the transistor Q8 is electrically connected to the base of the transistor Q16, and the emitter of the transistor Q16 is electrically connected to one end of the resistor R19; the collector of the transistor Q16 is electrically connected to the emitter of the transistor Q14 and the emitter of the transistor Q15;
[0055] The collector of the transistor Q14 is electrically connected to the drain of the MOS transistor P32 and the source of the MOS transistor P33; the collector of the transistor Q15 is electrically connected to the drain of the MOS transistor P34 and the source of the MOS transistor P35; the gate of the MOS transistor P12 is electrically connected to the gate of the MOS transistor P32 and the gate of the MOS transistor P34; the drain of the MOS transistor P6 is electrically connected to the gate of the MOS transistor P33 and the gate of the MOS transistor P35;
[0056] The drain of the MOS transistor P33 is electrically connected to one end of the resistor R20, and the other end of the resistor R20 is electrically connected to the collector and base of the transistor Q17 and the base of the transistor Q18; the drain of the MOS transistor P35 is electrically connected to the collector of the transistor Q18, the slew rate boosting unit and the output buffer unit;
[0057] The other end of the resistor R19, the emitter of the transistor Q17 and the emitter of the transistor Q18 are all grounded.
[0058] Further, the slew rate enhancement unit includes MOS transistor P36, MOS transistor P37, MOS transistor N9, MOS transistor N10, transistor Q19 and resistor R21;
[0059] The source of the MOS transistor P36 and the drain of the MOS transistor N10 are both electrically connected to the Vdd port;
[0060] The gate of the MOS transistor P14 is electrically connected to the gate of the MOS transistor P36 and the gate of the MOS transistor P37; the drain of the MOS transistor P36 is electrically connected to the source of the MOS transistor P37; the drain of the MOS transistor P37 is electrically connected to the drain and gate of the MOS transistor N9 and the gate of the MOS transistor N10; the source of the MOS transistor N10 is electrically connected to the drain of the MOS transistor P35 and the output buffer unit;
[0061] The source of the MOS transistor N9 is electrically connected to one end of the resistor R21, the other end of the resistor R21 is electrically connected to the collector and base of the transistor Q19, and the emitter of the transistor Q19 is grounded.
[0062] Further, the output buffer unit includes MOS transistor P38, MOS transistor P39, MOS transistor P40, MOS transistor P41, MOS transistor P42, MOS transistor P43, MOS transistor P44, MOS transistor P45, MOS transistor N11, MOS transistor N12, MOS transistor N13, MOS transistor N14, MOS transistor N15, MOS transistor N16, MOS transistor N17 and MOS transistor N18;
[0063] The source of the MOS transistor P38, the source of the MOS transistor P39, the source of the MOS transistor P40, the source of the MOS transistor P41, the source of the MOS transistor P42, the source of the MOS transistor P43, the source of the MOS transistor P44 and the source of the MOS transistor P45 are all electrically connected to the Vdd port;
[0064] The gate of the MOS tube P38 and the gate of the MOS tube N11 are both electrically connected to the source of the MOS tube N10 and the drain of the MOS tube P35; the drain of the MOS tube P38 is electrically connected to the drain of the MOS tube N11, the gate of the MOS tube P39 and the gate of the MOS tube N12; the drain of the MOS tube P39 is electrically connected to the drain of the MOS tube N12, the gate of the MOS tube P40, the gate of the MOS tube N13 and the gate of the MOS tube N15; the drain of the MOS tube P40 is electrically connected to the drain of the MOS tube N13, the gate of the MOS tube N14, the gate of the MOS tube P45 and the gate of the MOS tube N18; the MOS tube P41 is electrically connected to the drain of the MOS tube N11, the gate of the MOS tube P39 and the gate of the MOS tube N12; the drain of the MOS tube P40 is electrically connected to the drain of the MOS tube N13, the gate of the MOS tube N14, the gate of the MOS tube P45 and the gate of the MOS tube N18; The gate of the MOS tube P42 is electrically connected to the drain of the MOS tube P42, the drain of the MOS tube N15, the gate of the MOS tube P43 and the gate of the MOS tube N16; the gate of the MOS tube P42 is electrically connected to the drain of the MOS tube P41 and the drain of the MOS tube N14; the drain of the MOS tube P43 is electrically connected to the drain of the MOS tube N16, the gate of the MOS tube P44, the gate of the MOS tube N17 and the gate of the MOS tube P21; the drain of the MOS tube P44 is electrically connected to the drain of the MOS tube N17 and the gate of the MOS tube P22; the drain of the MOS tube P45 is electrically connected to the drain of the MOS tube N18, and is connected to the output interface Y as an output end;
[0065] The sources of the MOS transistors N11, N12, N13, N14, N15, N16, N17 and N18 are all grounded.
[0066] After adopting the above technical solution, the present invention has the following advantages compared with the background technology:
[0067] 1. In this solution, the comparator module generates a voltage drop on the voltage-dividing resistor by setting a voltage-dividing resistor, effectively raising the common-mode voltage of the input port, and preventing the transistor of the comparator module from entering the saturation region too early, thereby achieving the purpose of increasing the input voltage range; the positive input terminal voltage and the negative input terminal voltage are input by the input threshold and hysteresis voltage module, and the input threshold and hysteresis voltage module sets a voltage-dividing resistor at the positive input terminal and the negative input terminal, and inputs after voltage division, thereby further increasing the input voltage range.
[0068] 2. In this solution, by setting the components with parameters in corresponding proportions, the reference voltage V ref Precise replication is performed to ensure that the simulated values are consistent with the calculated values, effectively eliminating the effects of resistor temperature offset and process offset. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] Figure 1 A circuit diagram of a startup module, a reference current and a bias voltage module of the hysteresis comparator with a wide input voltage range according to the present invention;
[0070] Figure 2 The circuit diagram of the input threshold and hysteresis voltage module and the comparator module of the hysteresis comparator with a wide input voltage range of the present invention;
[0071] Figure 3 It is a simulation waveform diagram of input threshold voltage of the hysteresis comparator with wide input voltage range of the present invention;
[0072] Figure 4 This is a simulation waveform diagram of the hysteresis voltage of the hysteresis comparator with a wide input voltage range described in the present invention. DETAILED DESCRIPTION
[0073] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0074] In addition, it should be noted that the terms "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside", etc. are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element of the present invention must have a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0075] When an element is referred to as being “fixed to” or “disposed on” or “provided on” another element, it may be directly on the other element or indirectly on the other element. When an element is referred to as being “connected to” another element, it may be directly connected to the other element or indirectly connected to the other element.
[0076] Unless otherwise clearly specified and limited, the terms "installed", "connected" and "connected" 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 an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the invention can be understood according to specific circumstances. Example
[0077] In this embodiment, (W / L) Nn is the width-to-length ratio of the MOS tube Nn; (W / L) Pn is the width-to-length ratio of the MOS tube Pn; EA Qn is the emitter area of transistor Qn; V IN- 、V IN+ is the input voltage provided by the outside; points A and B are V IN- 、V IN+ A potential is generated at this node through resistor voltage division; Y is the output port of the comparator.
[0078] Please refer to Figure 1-4 As shown, this embodiment provides a hysteresis comparator with a wide input voltage range, including a startup module, a reference current and bias voltage module, an input threshold and hysteresis voltage module and a comparator module.
[0079] The signal output terminal of the start-up module is electrically connected to the signal input terminal of the reference current and bias voltage module, and the start-up module outputs a start signal or a shutdown signal to the reference current and bias voltage module;
[0080] The signal output end of the reference current and bias voltage module is electrically connected to the signal input end of the input threshold and hysteresis voltage module and the comparator module, the reference current and bias voltage module outputs a first reference current to the comparator module, and the reference current and bias voltage module outputs a second reference current to the input threshold and hysteresis voltage module; the reference current and bias voltage module outputs a first bias voltage VBIAS0 and a second bias voltage VBIAS1 to the input threshold and hysteresis voltage module; the reference current and bias voltage module outputs a third bias voltage VBIAS2, a fourth bias voltage VBIAS3, a fifth bias voltage VBIAS4 and a sixth bias voltage VBIAS5 to the comparator module;
[0081] The output end of the input threshold and hysteresis voltage module is electrically connected to the input end of the comparator module, and the output end of the comparator module is connected to the output interface Y;
[0082] The power input end of the startup module, the reference current and bias voltage module, the input threshold and hysteresis voltage module and the comparator module are electrically connected to the Vdd port.
[0083] Please refer to Figure 1-4 As shown, specifically, the startup module includes a current source I0, a resistor R0, a MOS transistor N0, a MOS transistor N1, a MOS transistor N2, a MOS transistor N3, a MOS transistor N4, a MOS transistor N5 and a MOS transistor P0, a MOS transistor P1, and a MOS transistor P2.
[0084] The negative electrode of the current source I0, the drain of the MOS transistor N2, the source of the MOS transistor P0 and the source of the MOS transistor P1 are all electrically connected to the Vdd port. The positive electrode of the current source I0 is electrically connected to one end of the resistor R0, and the other end of the resistor R0 is electrically connected to the drain and gate of the MOS transistor N0, the gate of the MOS transistor N2 and the gate of the MOS transistor N4.
[0085] The source of MOS tube N0 is electrically connected to the drain and gate of MOS tube N1, the gate of MOS tube N3, and the gate of MOS tube N5; the source of MOS tube N2 is electrically connected to the drain of MOS tube N3, the source of MOS tube N4 is electrically connected to the drain of MOS tube N5; the drain of MOS tube N4 is electrically connected to the drain of MOS tube P0 and the gate of MOS tube P2.
[0086] The source of MOS transistor P2 is electrically connected to the gate and drain of MOS transistor P1; the drain of MOS transistor P2 and the gate of MOS transistor P0 are electrically connected to the signal input terminal of the reference current and bias voltage module. The source of MOS transistor N1, the source of MOS transistor N3 and the source of MOS transistor N5 are all grounded.
[0087] When the circuit is powered on, current I0 flows through MOS transistor N0 and MOS transistor N1, and a voltage is generated at the gate of MOS transistor N0 and the gate of MOS transistor N1 to turn on MOS transistor N4 and MOS transistor N5. At this time, the gate potential of MOS transistor P2 will be pulled down to turn on MOS transistor P2. Subsequently, the gate potential of MOS transistor N7 is pulled up, and MOS transistor N7 is turned on to generate potentials at each node of the circuit, and the circuit is started. After that, the current generated by current source I0 is mirrored to MOS transistor P0 through MOS transistor P3, and at the same time, the current of current source I0 is mirrored to MOS transistor N5, so that the pull-up current mirrored to MOS transistor P0 is greater than the pull-down current of MOS transistor N5, thereby pulling up the gate potential of MOS transistor P2, turning off MOS transistor P2, and closing the startup circuit, and the circuit startup is completed.
[0088] Please refer to Figure 1 As shown, the reference current and bias voltage module includes a first output branch, a second output branch, a third output branch, a fourth output branch, a fifth output branch and a sixth output branch which are electrically connected to each other; the gate of the MOS tube P0 is electrically connected to the second output branch, the third output branch, the fourth output branch and the sixth output branch, and the drain of the MOS tube P2 is electrically connected to the third output branch.
[0089] Specifically, the first output branch includes MOS transistor P7, MOS transistor P8, MOS transistor N8, resistor R3, resistor R4 and capacitor C2;
[0090] The second output branch includes MOS transistor P9, MOS transistor P10, MOS transistor P11, transistor Q2, transistor Q3, resistor R5, resistor R6 and capacitor C3;
[0091] The third output branch includes MOS transistor P3, MOS transistor P4, MOS transistor P5, MOS transistor P6, MOS transistor N6, MOS transistor N7, triode Q0, triode Q1, capacitor C0, capacitor C1, resistor R1, and resistor R2;
[0092] The fourth output branch includes a MOS transistor P12, a MOS transistor P13, a transistor Q4, a resistor R7 and a capacitor C4;
[0093] The fifth output branch includes a MOS transistor P14, a MOS transistor P15, a transistor Q5, a resistor R8 and a capacitor C5;
[0094] The sixth output branch includes MOS transistor P16, MOS transistor P17, transistor Q6, transistor Q7, transistor Q8, resistor R9, resistor R10, capacitor C6, and capacitor C7.
[0095] The source of MOS transistor P3, the source of MOS transistor P5, the source of MOS transistor P7, the source of MOS transistor P9 and the source of MOS transistor P10 are all electrically connected to the Vdd port; the source of MOS transistor P12, the source of MOS transistor P14, the source of MOS transistor P16, the collector of transistor Q8, one end of capacitor C4 and one end of capacitor C5 are all electrically connected to the Vdd port.
[0096] The drain of MOS transistor P3 is electrically connected to the source of MOS transistor P4, and the drain of MOS transistor P4 is electrically connected to the drain of MOS transistor P2, the drain and gate of MOS transistor N6, the gate of MOS transistor N7 and one end of resistor R3; the drain of MOS transistor P5 is electrically connected to the source of MOS transistor P6, and the drain of MOS transistor P6 is electrically connected to the drain of MOS transistor N7, and outputs the third bias voltage VBIAS2 to the comparator module as an output end. The source of MOS transistor N6 is electrically connected to the collector and base of transistor Q0, the base of transistor Q1 and capacitor C0, and one end of capacitor C1, the emitter of transistor Q0 is electrically connected to one end of resistor R1, one end of resistor R2 and the other end of capacitor C0, the source of MOS transistor N7 is electrically connected to the collector of transistor Q1, and the emitter of transistor Q1 is electrically connected to the other end of resistor R1.
[0097] The gate of the MOS transistor P7 is electrically connected to the drain of the MOS transistor P8 and the drain of the MOS transistor N8, and serves as an output terminal to output the first bias voltage VBIAS0 to the input threshold and hysteresis voltage module. The drain of the MOS transistor P7 is electrically connected to the source of the MOS transistor P8, the gate of the MOS transistor N8 is electrically connected to the other end of the resistor R3 and one end of the capacitor C2, and the source of the MOS transistor N8 is electrically connected to one end of the resistor R4.
[0098] The drain and gate of MOS transistor P9 are electrically connected to the gate of MOS transistor P8 and the collector of transistor Q2, and output the second bias voltage VBIAS1 to the input threshold and hysteresis voltage module as an output terminal. The emitter of transistor Q2 is electrically connected to one end of resistor R5, the base of transistor Q2 is electrically connected to the base and collector of transistor Q3, the drain of MOS transistor P11 and one end of capacitor C3; the emitter of transistor Q3 is electrically connected to one end of resistor R6; the drain of MOS transistor P10 is electrically connected to the source of MOS transistor P11.
[0099] The gate of the MOS transistor P0 is electrically connected to the gate of the MOS transistor P3, the gate of the MOS transistor P4, the gate of the MOS transistor P5, the gate of the MOS transistor P6, the drain, the gate of the MOS transistor P10 and the gate of the MOS transistor P11; the other ends of the capacitor C1, the capacitor C2, the capacitor C3, the resistor R2, the resistor R4, the resistor R5 and the resistor R6 are all grounded.
[0100] The gate of the MOS transistor P12 is electrically connected to the other end of the capacitor C4, the drain of the MOS transistor P13 and the collector of the transistor Q4, and outputs the fourth bias voltage VBIAS3 to the comparator module as an output end. The drain of the MOS transistor P12 is electrically connected to the source of the MOS transistor P13; the base of the transistor Q4 is electrically connected to the base of the transistor Q5, the base and collector of the transistor Q7, the base of the transistor Q6 and the emitter of the transistor Q8; the emitter of the transistor Q4 is electrically connected to one end of the resistor R7.
[0101] The gate of the MOS transistor P14 is electrically connected to the other end of the capacitor C5, the gate and drain of the MOS transistor P15, and the collector of the transistor Q5, and outputs the fifth bias voltage VBIAS4 to the comparator module as an output terminal. The drain of the MOS transistor P14 is electrically connected to the source of the MOS transistor P15; the emitter of the transistor Q5 is electrically connected to one end of the resistor R8.
[0102] The drain of the MOS transistor P16 is electrically connected to the source of the MOS transistor P17, the drain of the MOS transistor P17 is electrically connected to the base of the transistor Q8, the collector of the transistor Q6, one end of the capacitor C6 and one end of the capacitor C7; the emitter of the transistor Q6 is electrically connected to one end of the resistor R9, the emitter of the transistor Q7 is electrically connected to one end of the resistor R10, and the emitter of the transistor Q8 serves as an output end to output the sixth bias voltage VBIAS5 to the comparator module.
[0103] The gate of the MOS transistor P0 is electrically connected to the gates of the MOS transistors P13, P16 and P17; the other ends of the resistors R7, R8, R9, R10, capacitors C6 and C7 are all grounded.
[0104] Please refer to Figure 2 As shown, the input threshold and hysteresis voltage module includes MOS transistor P18, MOS transistor P19, MOS transistor P20, MOS transistor P21, MOS transistor P22, MOS transistor P27, MOS transistor P28, MOS transistor P29, MOS transistor P30, MOS transistor P31 and resistors R15, R18, R22, R23, R24, and R25.
[0105] The source of MOS transistor P18, the source of MOS transistor P20, the source of MOS transistor P27 and the source of MOS transistor P30 are all electrically connected to the Vdd port. The gate of MOS transistor P7 is electrically connected to the gate of MOS transistor P18, the gate of MOS transistor P20, the gate of MOS transistor P27 and the gate of MOS transistor P30; the drain of MOS transistor P18 is electrically connected to the source of MOS transistor P19, the drain of MOS transistor P21 and the source and drain of MOS transistor P22.
[0106] The drain of MOS transistor P9 is electrically connected to the gate of MOS transistor P19 and the gate of MOS transistor P31; the drain of MOS transistor P20 is electrically connected to the source of MOS transistor P21; the gate of MOS transistor P21 is electrically connected to the gate of MOS transistor P28 and the comparator module; the gate of MOS transistor P22 is electrically connected to the gate of MOS transistor P29 and the comparator module. The drain of MOS transistor 27 is electrically connected to the source of MOS transistor P28, and the drain of MOS transistor P28 is electrically connected to the source and drain of MOS transistor P29, the source of MOS transistor P31, and the drain of MOS transistor P30.
[0107] The drain of MOS tube P19 is electrically connected to one end of resistor R15 and the comparator module, the other end of resistor R15 is electrically connected to one end of resistor R22, resistor R23 and the comparator module, and the other end of resistor R22 is electrically connected to the external negative input terminal. The drain of MOS tube P31 is electrically connected to one end of resistor R18, resistor R25, resistor R24 and the comparator module, the other end of resistor R18 is electrically connected to the comparator module, and the other end of resistor R24 is electrically connected to the external positive input terminal; the other ends of resistor R23 and resistor R25 are both grounded.
[0108] The input threshold voltage is obtained by multiplying the current flowing through MOS transistor P18 and MOS transistor P20 by resistor R15, and the current flowing through MOS transistor P18 is equal to the current flowing through MOS transistor P30; the current flowing through MOS transistor P20 is equal to the current flowing through MOS transistor P27; the current of MOS transistor P30 and MOS transistor P27 reaches the ground through resistor R25; the current of MOS transistor P18 and MOS transistor P20 also reaches the ground through resistor R23; so that the current at the input end of the circuit can match. Since resistor R15 is consistent with the resistor R4 of the second reference current I2 generated by the reference current and bias voltage module and is highly matched, MOS transistor P7 mirrors the second reference current I2 to P18, MOS transistor P20, MOS transistor P27, and MOS transistor P30. When V IN+ <V d +V IN- When MOS tube P21 and MOS tube P28 are turned on, V d is the input threshold voltage of the circuit.
[0109] Please refer to Figure 2 As shown, the comparator module includes a first-stage amplifier unit, a folded common-source common-gate amplifier unit, a slew rate improvement unit and an output buffer unit;
[0110] The input threshold and hysteresis voltage module is electrically connected to the first-stage amplifier unit and the output buffer unit, the first-stage amplifier unit is electrically connected to the folded common-source and common-gate amplifier unit, the folded common-source and common-gate amplifier unit is electrically connected to the slew rate enhancement unit and the output buffer unit, the slew rate enhancement unit is electrically connected to the output buffer unit, and the output end of the output buffer unit is connected to the output interface Y.
[0111] Specifically, the first-stage amplifier unit includes MOS transistor P23, MOS transistor P24, MOS transistor P25, MOS transistor P26, transistor Q9, transistor Q10, transistor Q11, transistor Q12, transistor Q13 and resistors R11, R13, R16 and R17;
[0112] The folded cascode amplifier unit includes MOS transistor P32, MOS transistor P33, MOS transistor P34, MOS transistor P35, triode Q14, triode Q15, triode Q16, triode Q17, triode Q18 and resistor R19 and resistor R20.
[0113] The source of MOS transistor P23, the source of MOS transistor P25, the source of MOS transistor P32, the source of MOS transistor P34, and the collector and base of transistor Q9 are all electrically connected to the Vdd port. The gate of MOS transistor P14 is electrically connected to the gate of MOS transistor P23, the gate of MOS transistor P24, the gate of MOS transistor P25, the gate of MOS transistor P26, and the slew rate boosting unit; the drain of MOS transistor P23 is electrically connected to the source of MOS transistor P24, and the drain of MOS transistor P25 is electrically connected to the source of MOS transistor P26.
[0114] The drain of the MOS transistor P24 is electrically connected to the collector and base of the transistor Q10 and the base of the transistor Q11, and the emitter of the transistor Q10 is electrically connected to the drain of the MOS transistor P19; the collector of the transistor Q11 is electrically connected to the base of the transistor Q14 and one end of the resistor R11, the emitter of the transistor Q11 is electrically connected to the emitter of the transistor Q12, one end of the resistor R16 and one end of the resistor R17, and the other end of the resistor R16 is electrically connected to the other end of the resistor R15; the other end of the resistor R17 is electrically connected to the drain of the MOS transistor P31; the base of the transistor Q12 is electrically connected to the base and collector of the transistor Q13 and the drain of the MOS transistor P26; the emitter of the transistor Q13 is electrically connected to the other end of the resistor R18; the collector of the transistor Q12 is electrically connected to the base of the transistor Q15 and one end of the resistor R13.
[0115] The emitter of transistor Q9 is electrically connected to the other end of resistor R11 and resistor R13; the emitter of transistor Q8 is electrically connected to the base of transistor Q16, and the emitter of transistor Q16 is electrically connected to one end of resistor R19; the collector of transistor Q16 is electrically connected to the emitter of transistor Q14 and the emitter of transistor Q15. The collector of transistor Q14 is electrically connected to the drain of MOS transistor P32 and the source of MOS transistor P33; the collector of transistor Q15 is electrically connected to the drain of MOS transistor P34 and the source of MOS transistor P35; the gate of MOS transistor P12 is electrically connected to the gate of MOS transistor P32 and the gate of MOS transistor P34; the drain of MOS transistor P6 is electrically connected to the gate of MOS transistor P33 and the gate of MOS transistor P35.
[0116] The drain of MOS transistor P33 is electrically connected to one end of resistor R20, and the other end of resistor R20 is electrically connected to the collector and base of transistor Q17 and the base of transistor Q18; the drain of MOS transistor P35 is electrically connected to the collector of transistor Q18, the slew rate boosting unit and the output buffer unit. The other end of resistor R19, the emitter of transistor Q17 and the emitter of transistor Q18 are all grounded.
[0117] In this embodiment, resistors R11 and R13 are provided, and voltage drops are generated on resistors R11 and R13, effectively raising the common mode voltage of the input port, and preventing transistors Q14 and Q15 from entering the saturation region too early. The positive input terminal voltage is divided by resistors R24 and R25 before input, and the negative input terminal voltage is divided by resistors R23 and R22 before input.
[0118] Specifically, the slew rate improving unit includes a MOS transistor P36, a MOS transistor P37, a MOS transistor N9, a MOS transistor N10, a transistor Q19 and a resistor R21.
[0119] The source of MOS transistor P36 and the drain of MOS transistor N10 are both electrically connected to the Vdd port. The gate of MOS transistor P14 is electrically connected to the gate of MOS transistor P36 and the gate of MOS transistor P37; the drain of MOS transistor P36 is electrically connected to the source of MOS transistor P37; the drain of MOS transistor P37 is electrically connected to the drain and gate of MOS transistor N9 and the gate of MOS transistor N10; the source of MOS transistor N10 is electrically connected to the drain of MOS transistor P35 and the output buffer unit.
[0120] The source of the MOS transistor N9 is electrically connected to one end of the resistor R21 , the other end of the resistor R21 is electrically connected to the collector and base of the transistor Q19 , and the emitter of the transistor Q19 is grounded.
[0121] Assuming that transistor Q18 enters the saturation region, the forward bias of the collector will cause the parasitic capacitance at this point to be too large, making the collector voltage of Q18 rise too slowly and the slew rate too low. This situation will occur at V IN+ <V d +V IN- In order to avoid this situation, a slew rate boost unit is added. First, MOS tube P36 and MOS tube P37 act as a current source, mirroring a current to this branch. Let the current be I5. After calculation, the gate voltage of MOS tube N10 can be obtained as:
[0122] ;
[0123] Where V BE19 is the voltage difference between the base and emitter of transistor Q19, V THN9is the threshold voltage of MOS tube N9, V dsat9 It is the over-drive voltage of MOS tube N9. The source potential of MOS tube N10 is jointly determined by MOS tube N10, transistor Q18 and MOS tube P35. When the current mirrored by transistor Q18 from transistor Q17 is greater than the current flowing through MOS tube P35, MOS tube N10 will provide a current to flow through transistor Q18, so that transistor Q18 is still in the linear region, achieving the effect of increasing the slew rate.
[0124] Specifically, the output buffer unit includes MOS transistor P38, MOS transistor P39, MOS transistor P40, MOS transistor P41, MOS transistor P42, MOS transistor P43, MOS transistor P44, MOS transistor P45, MOS transistor N11, MOS transistor N12, MOS transistor N13, MOS transistor N14, MOS transistor N15, MOS transistor N16, MOS transistor N17 and MOS transistor N18.
[0125] The source of the MOS transistor P38, the source of the MOS transistor P39, the source of the MOS transistor P40, the source of the MOS transistor P41, the source of the MOS transistor P42, the source of the MOS transistor P43, the source of the MOS transistor P44 and the source of the MOS transistor P45 are all electrically connected to the Vdd port.
[0126] The gate of MOS tube P38 and the gate of MOS tube N11 are both electrically connected to the source of MOS tube N10 and the drain of MOS tube P35; the drain of MOS tube P38 is electrically connected to the drain of MOS tube N11, the gate of MOS tube P39 and the gate of MOS tube N12; the drain of MOS tube P39 is electrically connected to the drain of MOS tube N12, the gate of MOS tube P40, the gate of MOS tube N13 and the gate of MOS tube N15; the drain of MOS tube P40 is electrically connected to the drain of MOS tube N13, the gate of MOS tube N14, the gate of MOS tube P45 and the gate of MOS tube N18; the drain of MOS tube P41 is electrically connected to the drain of MOS tube N12, the gate of MOS tube P40, the gate of MOS tube N13 and the gate of MOS tube N15; the drain of MOS tube P40 is electrically connected to the drain of MOS tube N13, the gate of MOS tube N14, the gate of MOS tube P45 and the gate of MOS tube N18; the drain of MOS tube P41 is electrically connected to the drain of MOS tube N11, the gate of MOS tube N12 and the gate of MOS tube N13. The gate is electrically connected to the drain of the MOS tube P42, the drain of the MOS tube N15, the gate of the MOS tube P43 and the gate of the MOS tube N16; the gate of the MOS tube P42 is electrically connected to the drain of the MOS tube P41 and the drain of the MOS tube N14; the drain of the MOS tube P43 is electrically connected to the drain of the MOS tube N16, the gate of the MOS tube P44, the gate of the MOS tube N17 and the gate of the MOS tube P21; the drain of the MOS tube P44 is electrically connected to the drain of the MOS tube N17 and the gate of the MOS tube P22; the drain of the MOS tube P45 is electrically connected to the drain of the MOS tube N18, and is connected to the output interface Y as an output end.
[0127] The source of the MOS transistor N11, the source of the MOS transistor N12, the source of the MOS transistor N13, the source of the MOS transistor N14, the source of the MOS transistor N15, the source of the MOS transistor N16, the source of the MOS transistor N17 and the source of the MOS transistor N18 are all grounded.
[0128] The inverter output formed by MOS tube P43 and MOS tube N16 and the inverter output formed by MOS tube P44 and MOS tube N17 provide an inverted input waveform to the gates of MOS tube P21 and MOS tube P28 and the gates of MOS tubes P22 and P29. A four-stage inverter chain is provided to the second-stage amplifier output of the comparator for shaping to obtain the comparator output Y.
[0129] In this embodiment, MOS transistor N0, MOS transistor N1, MOS transistor N2, MOS transistor N3, MOS transistor N4, MOS transistor N5, MOS transistor N6, MOS transistor N7, MOS transistor N8, MOS transistor N9, MOS transistor N10, MOS transistor N11, MOS transistor N12, MOS transistor N13, MOS transistor N14, MOS transistor N15, MOS transistor N16, MOS transistor N17 and MOS transistor N18 are all NMOS transistors;
[0130] MOS tube P0, MOS tube P1, MOS tube P2, MOS tube P3, MOS tube P4, MOS tube P5, MOS tube P6, MOS tube P7, MOS tube P8, MOS tube P9, MOS tube P10, MOS tube P11, MOS tube P12, MOS tube P13, MOS tube P14, MOS tube P15, MOS tube P16, MOS tube P17, MOS tube P18, MOS tube P19, MOS tube P20, MOS tube P21, MOS tube P22, MOS tube P23, MOS tube P24, MOS tube P25, MOS tube P26, MOS tube P27, MOS tube P28, MOS tube P29, MOS tube P30, MOS tube P31, MOS tube P32, MOS tube P33, MOS tube P34, MOS tube P35, MOS tube P36, MOS tube P37, MOS tube P38, MOS tube P39, MOS tube P40, MOS tube P42, MOS tube P43, MOS tube P44 and MOS tube P45 are all PMOS tubes.
[0131] And the following conditions are met:
[0132] (W / L) N0 =(W / L) N2 =(W / L) N4 ;
[0133] (W / L) N5 =6(W / L) N1=6(W / L) N3 ;
[0134] (W / L) N6 =(W / L) N7 =4(W / L) N8 ;
[0135] (W / L) N9 =(W / L) N10 ;
[0136] (W / L) P10 =4(W / L) P0 =4(W / L) P3 =4(W / L) P5 =8(W / L) P16 ;
[0137] (W / L) P11 =4(W / L) P4 =4(W / L) P6 ;
[0138] (W / L) P7 =10(W / L) P20 =10(W / L) P27 =2.5(W / L) P18 =2.5(W / L) P30 ;
[0139] (W / L) P32 =(W / L) P34 =3(W / L) P12 ;
[0140] (W / L) P14 =(W / L) P23 =(W / L) P25 =2(W / L) P36 ;
[0141] (W / L) P21 =(W / L) P22 =(W / L) P28 =(W / L) P29 ;
[0142] EA Q1 =2EA Q0 =2EA Q2 =8EA Q3 ;
[0143] EA Q16 =2.25EA Q4 =9EA Q5 =9EA Q6 =9EAQ7 =9EA Q8 ;
[0144] EA Q14 =EA Q15 ;
[0145] EA Q10 =EA Q11 =EA Q12 =EA Q13 ;
[0146] EA Q17 =EA Q18 =EA Q19 ;
[0147] R2=14R1;
[0148] R4=15R15=15R18;
[0149] R6=4R5;
[0150] R8=R9=R10=4R7=9R19;
[0151] R11=R13;
[0152] R16=R1;
[0153] R22=R24=14R23=14R25;
[0154] I0=100nA;
[0155] In this embodiment, the reference current and bias voltage module generates two reference currents and six bias voltages. Let the first reference current be I1. The first reference current I1 is used for comparator bias voltage generation and current bias. Specifically, the calculation formula of the first reference current I1 is as follows:
[0156] ;
[0157] Where V BE0 is the voltage difference between the base and emitter of transistor Q0, V BE1 is the voltage drop between the base and emitter of the transistor.
[0158] From the above formula, we can get;
[0159] ;
[0160] Where k is the Boltzmann constant, T is the thermodynamic temperature, and q is the charge of the electron.
[0161] A reference voltage can be generated at the base of transistor Q0 through the first reference current I1. Let the reference voltage be V ref, the reference voltage is a zero temperature drift voltage, the analysis and calculation formula are shown below.
[0162] ;
[0163] In the above formula, since the on-state voltage of the transistor decreases with increasing temperature, V BE0 It is a negative temperature coefficient voltage. As the temperature rises, the second term 14(kT / q)ln(2) in the expression increases with temperature. This term is a positive temperature coefficient voltage. Therefore, the temperature coefficient of the components can be adjusted to make the generated V ref It is a zero temperature drift voltage.
[0164] Assume that the second reference current is I2, and the second reference current I2 is used to generate the input threshold voltage and the hysteresis voltage. Specifically, the calculation formula of the second reference current I2 is as follows:
[0165] ;
[0166] Where V SN8 is the source voltage of MOS tube N8.
[0167] From the above formula, we can get:
[0168] ;
[0169] Among them U n8 is the migration rate of electrons in MOS tube N8, C oxN8 is the gate oxide capacitance per unit area of MOS tube N8, V GSN8 is the voltage difference between the gate and source of MOS tube N8, V THN8 It is the threshold voltage of MOS tube N8.
[0170] ;
[0171] ;
[0172] ;
[0173] Where V GN8 is the gate voltage of MOS tube N8, V GN6 is the gate voltage of MOS tube N6, V THN6 is the threshold voltage of MOS tube N6, V dsatN6 is the over-drive voltage of MOS tube N6. In this embodiment, resistors R3 and R4 are large resistors, and MOS tubes N6 and N8 are MOS tubes with large aspect ratios, then the following formula holds:
[0174] ;
[0175] ;
[0176] Among them U n6 is the electron migration rate of MOS tube N6, C oxN6 is the gate oxide capacitance per unit area of MOS tube N6, which can be obtained from the above formula:
[0177] ;
[0178] Among them, the first bias voltage output by the reference current and bias voltage module is VBIAS0, and the first bias voltage VBIAS0 is used to provide voltage bias to the gates of MOS transistors P18, MOS transistors P20, MOS transistors P27, and MOS transistors P30. Since the current flowing through MOS transistor P7 is equal to the second reference current I2, the calculation formula for the first bias voltage VBIAS0 is as follows:
[0179] ;
[0180] ;
[0181] Among them U p7 is the migration rate of holes in MOS tube P7, C oxP7 is the gate oxide capacitance per unit area of MOS tube P7, V GSP7 is the gate-source voltage difference of MOS tube P7, V THP7 is the threshold voltage of MOS tube P7, and Vdd is the power supply voltage of the circuit.
[0182] From the above formula, we can get:
[0183] ;
[0184] The second bias voltage output by the reference current and bias voltage module is VBIAS1, and the second bias voltage VBIAS1 is used to provide voltage bias to the gates of MOS tubes P19 and P31. Since the size of MOS tube P10 is 4 times that of MOS tube P5, the first reference current I1 is amplified 4 times and mirrored to flow through MOS tube P10, MOS tube P11, transistor Q3, resistor R6 to ground, and the current is 4I1; since the area ratio of transistor Q3 to transistor Q2 is 4 to 1, and the size ratio of resistor R6 to resistor R5 is 1 to 4, the current is reduced by 4 times and flows through MOS tube P9, transistor Q2 and resistor R5, that is, the current is equal to the first reference current I1. Since the current flowing through MOS tube P9 is equal to the first reference current I1, the calculation formula for the second bias voltage VBIAS1 is as follows:
[0185] ;
[0186] ;
[0187] Among them U p9 is the migration rate of holes in MOS tube P9, C oxP9 is the gate oxide capacitance per unit area of MOS tube P9, V GSP9 is the voltage difference between the gate and source of MOS tube P9, V THP9 It is the threshold voltage of MOS tube P9.
[0188] From the above formula, we can get:
[0189] ;
[0190] The third bias voltage output by the reference current and bias voltage module is VBIAS2, and the third bias voltage VBIAS2 is used to provide voltage bias to the gates of MOS transistors P33 and P35. Since the current flowing through MOS transistor P5 is equal to the first reference current I1, the calculation formula of the third bias voltage VBIAS2 is as follows:
[0191] ;
[0192] ;
[0193] Among them U p5 is the migration rate of holes in MOS tube P5, C oxP5 is the gate oxide capacitance per unit area of MOS tube P5, V GSP5 is the voltage difference between the gate and source of MOS tube P5, V THP5 It is the threshold voltage of MOS tube P5.
[0194] From the above formula, we can get:
[0195] ;
[0196] The fourth bias voltage output by the reference current and bias voltage module is VBIAS3, and the fourth bias voltage VBIAS3 is used to provide voltage bias for the gates of MOS transistors P32 and P34. Since the size of MOS transistor P16 is half the size of MOS transistor P5, the first reference current I1 is reduced by 2 times and mirrored to flow through MOS transistor P16, MOS transistor P17, transistor Q6, resistor R9 to ground, and the current size is (1 / 2) I1; since the area of transistor Q4 is 4 times the area of transistor Q6, the size ratio of resistor R9 to resistor R7 is 4 to 1, so the current (1 / 2) I1 is amplified by 4 times and flows through MOS transistor P12, MOS transistor P13, transistor Q4, resistor R7, and the current size is 2I1. Since the current flowing through MOS transistor P12 is twice the size of the first reference current I1, the calculation formula of the fourth bias voltage VBIAS3 is as follows:
[0197] ;
[0198] ;
[0199] Among them U p12 is the migration rate of holes in MOS tube P12, C oxP12 is the gate oxide capacitance per unit area of MOS tube P12, V GSP12 is the voltage difference between the gate and source of MOS tube P12, V THP12 It is the threshold voltage of MOS tube P12.
[0200] From the above formula, we can get:
[0201] ;
[0202] The fifth bias voltage output by the reference current and bias voltage module is VBIAS4, and the fifth bias voltage VBIAS4 is used to provide voltage bias to the gates of MOS transistors P23, MOS transistors P24, MOS transistors P25, MOS transistors P26, MOS transistors P36, and MOS transistors P37. Since the area of transistor Q4 is four times that of transistor Q5, and the ratio of the size of resistor R7 to resistor R8 is 1 to 4, the current 2I1 is reduced by four times and flows through MOS transistor P14, MOS transistor P15, transistor Q5, and resistor R8 in a mirror image, and the current size is (1 / 2)I1; since the current size flowing through MOS transistor P14 is 1 / 2 times the first reference current I1, the calculation formula of the fifth bias voltage VBIAS4 is as follows:
[0203] ;
[0204] ;
[0205] Among them Up14 is the migration rate of holes in MOS tube P14, C oxP14 is the gate oxide capacitance per unit area of MOS tube P14, V GSP14 is the voltage difference between the gate and source of MOS tube P14, V THP14 It is the threshold voltage of MOS tube P14.
[0206] From the above formula, we can get:
[0207] ;
[0208] The sixth bias voltage output by the reference current and bias voltage module is VBIAS5, and the sixth bias voltage VBIAS5 is used to provide a voltage bias to the gate of the transistor Q16. Since the area of the transistor Q7 is the same as the area of the transistor Q6, and the size of the resistor R9 is the same as the size of the resistor R10, the current (1 / 2) I1 is directly mirrored and flows through the transistor Q8, the transistor Q7 and the resistor R10, and the current size is 1 / 2 times the first reference current I1; since the current size flowing through the transistor Q7 and the resistor R10 is 1 / 2 times the first reference current I1, the calculation formula of the sixth bias voltage VBIAS5 is as follows:
[0209] ;
[0210] Where V BE7 is the voltage difference between the base and emitter of transistor Q7.
[0211] Assume that the current flowing through the MOS transistor P19 is I3. Since the MOS transistor P7 and the MOS transistor P18 as well as the MOS transistor P7 and the MOS transistor P21 satisfy the following conditional formula:
[0212] (W / L) P7 =2.5(W / L) P18 ;
[0213] (W / L) P7 =10(W / L) P21 ;
[0214] We can get:
[0215] ;
[0216] Due to the following relationship between resistors R4 and R15 as well as resistors R22 and R23: R4=15R15; R22=14R23.
[0217] Available
[0218] ;
[0219] ;
[0220] That is, the comparator input threshold voltage is 0.5V ref .
[0221] Since the resistor R15 is of the same type as the resistor R4 generating the second reference current I2 and is highly matched, the MOS transistor P7 mirrors the second reference current I2 to the MOS transistors P21 and P27. IN+ >V INd +V IN- When , MOS tube P21 and MOS tube P28 will be turned off;
[0222] Assume that the current flowing through MOS tube P19 is I4. Since (W / L) P7 =2.5(W / L) P18 , we can get:
[0223] ;
[0224] Due to the following relationship between resistors R4 and R15 as well as resistors R22 and R23: R4=15R15; R22=14R23.
[0225] Available
[0226] ;
[0227] ;
[0228] That is, the hysteresis voltage of the comparator is V ref / 10.
[0229] When the hysteresis function is turned on, the gate potential of MOS tube P21 and MOS tube P28 is reversed, and the gate potential is coupled to the drain of MOS tube P18 and MOS tube P27 through capacitance, resulting in an erroneous output of the circuit. Therefore, MOS tube P22 and MOS tube P28 are added to the circuit. The gate potential of MOS tube P22 and MOS tube P28 is the reverse signal of the gate potential of MOS tube P21 and MOS tube P28 output through an inverter. This voltage is also coupled to the drain of MOS tube P18 and MOS tube P27 through capacitance, thereby avoiding such erroneous output.
[0230] Assume that the voltage at point A is V1, the voltage at point B is V2, the current flowing through point A is I6, and the current flowing through point B is I7. The superposition theorem gives the following formula:
[0231] ;
[0232] ;
[0233] Subtracting the above formula, we can get:
[0234] ;
[0235] From the above formula, we can see that as long as I6=I7, R22=R24, R23=R25 are satisfied, the differential voltage between point A and point B is only related to V IN+ With V IN- The difference is related to the ratio of the resistance values of resistors R22 and R23.
[0236] For small signal analysis, the emitters of transistors Q11 and Q12 are connected together here to make this node an AC point. Then the positive input of the comparator is amplified to the base of transistor Q15 through resistor R18 and transistors Q13 and Q12, and the negative input of the comparator is amplified to the base of transistor Q14 through resistor R15 and transistors Q10 and Q11.
[0237] Please refer to the attached Figure 3 and attached Figure 4 , attached Figure 3 The input threshold voltage simulation waveform is shown in the figure below. Figure 4 is the hysteresis voltage simulation waveform.
[0238] In the simulation, set the circuit parameters so that V ref The value is 1.2V, Figure 3 The horizontal axis is V IN+ With V IN- The vertical axis is the output Y of the comparator. Figure 3 It can be seen that there is an input threshold at the input of the comparator, and the input threshold voltage is consistent with the calculated result, which is (1 / 2)V ref , is V ref Precise replication of size ratios eliminates the effects of resistor temperature and process offsets.
[0239] Figure 4 The horizontal axis is V IN+ With V IN- The vertical axis is the output Y of the comparator. Figure 4 It can be seen that the hysteresis voltage of the comparator is consistent with the calculated result, which is (1 / 10)V ref , is V ref Precise replication of size ratios eliminates the effects of resistor temperature and process offsets.
[0240] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A hysteresis comparator with a wide input voltage range, characterized in that: Including startup module, reference current and bias voltage module, input threshold and hysteresis voltage module and comparator module, The signal output terminal of the start-up module is electrically connected to the signal input terminal of the reference current and bias voltage module, and the start-up module outputs a start signal or a shutdown signal to the reference current and bias voltage module; The signal output terminal of the reference current and bias voltage module is electrically connected to the signal input terminal of the input threshold and hysteresis voltage module and the comparator module, the reference current and bias voltage module outputs a first reference current to the comparator module, and the reference current and bias voltage module outputs a second reference current to the input threshold and hysteresis voltage module; The reference current and bias voltage module outputs a first bias voltage VBIAS0 and a second bias voltage VBIAS1 to an input threshold and hysteresis voltage module; The reference current and bias voltage module outputs a third bias voltage VBIAS2, a fourth bias voltage VBIAS3, a fifth bias voltage VBIAS4 and a sixth bias voltage VBIAS5 to the comparator module; The output end of the input threshold and hysteresis voltage module is electrically connected to the input end of the comparator module, and the output end of the comparator module is connected to the output interface Y; The power input terminals of the startup module, the reference current and bias voltage module, the input threshold and hysteresis voltage module and the comparator module are electrically connected to the Vdd port; The input threshold and hysteresis voltage module includes MOS transistor P18, MOS transistor P19, MOS transistor P20, MOS transistor P21, MOS transistor P22, MOS transistor P27, MOS transistor P28, MOS transistor P29, MOS transistor P30, MOS transistor P31 and resistors R15, R18, R22, R23, R24 and R25; The source of the MOS transistor P18, the source of the MOS transistor P20, the source of the MOS transistor P27 and the source of the MOS transistor P30 are all electrically connected to the Vdd port; The reference current and bias voltage module outputs a first bias voltage VBIAS0 to the gate of MOS transistor P18, the gate of MOS transistor P20, the gate of MOS transistor P27 and the gate of MOS transistor P30; the drain of MOS transistor P18 is electrically connected to the source of MOS transistor P19, the drain of MOS transistor P21 and the source and drain of MOS transistor P22; The reference current and bias voltage module outputs the second bias voltage VBIAS1 to the gate of the MOS tube P19 and the gate of the MOS tube P31; the drain of the MOS tube P20 is electrically connected to the source of the MOS tube P21; the gate of the MOS tube P21 is electrically connected to the gate of the MOS tube P28 and the comparator module; the gate of the MOS tube P22 is electrically connected to the gate of the MOS tube P29 and the comparator module; The drain of the MOS transistor 27 is electrically connected to the source of the MOS transistor P28, and the drain of the MOS transistor P28 is electrically connected to the source and drain of the MOS transistor P29, the source of the MOS transistor P31, and the drain of the MOS transistor P30; The drain of the MOS tube P19 is electrically connected to one end of the resistor R15 and the comparator module, the other end of the resistor R15 is electrically connected to the resistor R22, one end of the resistor R23 and the comparator module, and the other end of the resistor R22 is electrically connected to the external negative input terminal; The drain of the MOS tube P31 is electrically connected to one end of the resistor R18, the resistor R25, the resistor R24 and the comparator module, the other end of the resistor R18 is electrically connected to the comparator module, and the other end of the resistor R24 is electrically connected to the external positive input terminal; The other ends of the resistors R23 and R25 are both grounded.
2. The hysteresis comparator with a wide input voltage range according to claim 1, characterized in that: The startup module includes a current source I0, a resistor R0, a MOS tube N0, a MOS tube N1, a MOS tube N2, a MOS tube N3, a MOS tube N4, a MOS tube N5, and a MOS tube P0, a MOS tube P1, and a MOS tube P2; The cathode of the current source I0, the drain of the MOS transistor N2, the source of the MOS transistor P0 and the source of the MOS transistor P1 are all electrically connected to the Vdd port; The positive electrode of the current source I0 is electrically connected to one end of the resistor R0, and the other end of the resistor R0 is electrically connected to the drain and gate of the MOS transistor N0, the gate of the MOS transistor N2, and the gate of the MOS transistor N4; The source of the MOS transistor N0 is electrically connected to the drain and gate of the MOS transistor N1, the gate of the MOS transistor N3, and the gate of the MOS transistor N5; the source of the MOS transistor N2 is electrically connected to the drain of the MOS transistor N3, the source of the MOS transistor N4 is electrically connected to the drain of the MOS transistor N5; the drain of the MOS transistor N4 is electrically connected to the drain of the MOS transistor P0 and the gate of the MOS transistor P2; The source of the MOS transistor P2 is electrically connected to the gate and drain of the MOS transistor P1; the drain of the MOS transistor P2 and the gate of the MOS transistor P0 are both electrically connected to the signal input terminal of the reference current and bias voltage module; The source of the MOS transistor N1 , the source of the MOS transistor N3 and the source of the MOS transistor N5 are all grounded.
3. The hysteresis comparator with a wide input voltage range according to claim 2, characterized in that: The reference current and bias voltage module comprises a first output branch, a second output branch, a third output branch, a fourth output branch, a fifth output branch and a sixth output branch which are electrically connected to each other; The gate of the MOS transistor P0 is electrically connected to the second output branch, the third output branch, the fourth output branch and the sixth output branch, and the drain of the MOS transistor P2 is electrically connected to the third output branch.
4. The hysteresis comparator with a wide input voltage range according to claim 3, characterized in that: The first output branch includes MOS transistor P7, MOS transistor P8, MOS transistor N8, resistor R3, resistor R4 and capacitor C2; The second output branch includes MOS transistor P9, MOS transistor P10, MOS transistor P11, transistor Q2, transistor Q3, resistor R5, resistor R6 and capacitor C3; The third output branch includes MOS transistor P3, MOS transistor P4, MOS transistor P5, MOS transistor P6, MOS transistor N6, MOS transistor N7, triode Q0, triode Q1, capacitor C0, capacitor C1, resistor R1, and resistor R2; The source of the MOS transistor P3, the source of the MOS transistor P5, the source of the MOS transistor P7, the source of the MOS transistor P9 and the source of the MOS transistor P10 are all electrically connected to the Vdd port; The drain of the MOS transistor P3 is electrically connected to the source of the MOS transistor P4, and the drain of the MOS transistor P4 is electrically connected to the drain of the MOS transistor P2, the drain and gate of the MOS transistor N6, the gate of the MOS transistor N7 and one end of the resistor R3; the drain of the MOS transistor P5 is electrically connected to the source of the MOS transistor P6, and the drain of the MOS transistor P6 is electrically connected to the drain of the MOS transistor N7, and outputs the third bias voltage VBIAS2 to the comparator module as an output end; the source of the MOS transistor N6 is electrically connected to the collector and base of the transistor Q0, the base of the transistor Q1 and the capacitor C0, and one end of the capacitor C1, the emitter of the transistor Q0 is electrically connected to one end of the resistor R1, one end of the resistor R2 and the other end of the capacitor C0, the source of the MOS transistor N7 is electrically connected to the collector of the transistor Q1, and the emitter of the transistor Q1 is electrically connected to the other end of the resistor R1; The gate of the MOS transistor P7 is electrically connected to the drain of the MOS transistor P8 and the drain of the MOS transistor N8, and serves as an output terminal to output the first bias voltage VBIAS0 to the input threshold and hysteresis voltage module; the drain of the MOS transistor P7 is electrically connected to the source of the MOS transistor P8, the gate of the MOS transistor N8 is electrically connected to the other end of the resistor R3 and one end of the capacitor C2, and the source of the MOS transistor N8 is electrically connected to one end of the resistor R4; The drain and gate of the MOS transistor P9 are electrically connected to the gate of the MOS transistor P8 and the collector of the transistor Q2, and serve as an output terminal to output the second bias voltage VBIAS1 to the input threshold and hysteresis voltage module; the emitter of the transistor Q2 is electrically connected to one end of the resistor R5, the base of the transistor Q2 is electrically connected to the base and collector of the transistor Q3, the drain of the MOS transistor P11 and one end of the capacitor C3; the emitter of the transistor Q3 is electrically connected to one end of the resistor R6; the drain of the MOS transistor P10 is electrically connected to the source of the MOS transistor P11; The gate of the MOS transistor P0 is electrically connected to the gate of the MOS transistor P3, the gate of the MOS transistor P4, the gate of the MOS transistor P5, the gate and the drain of the MOS transistor P6, the gate of the MOS transistor P10 and the gate of the MOS transistor P11; The other ends of the capacitor C1 , the capacitor C2 , the capacitor C3 , the resistor R2 , the resistor R4 , the resistor R5 , and the resistor R6 are all grounded.
5. The hysteresis comparator with a wide input voltage range according to claim 4, characterized in that: The fourth output branch includes a MOS transistor P12, a MOS transistor P13, a transistor Q4, a resistor R7 and a capacitor C4; The fifth output branch includes a MOS transistor P14, a MOS transistor P15, a transistor Q5, a resistor R8 and a capacitor C5; The sixth output branch includes MOS transistor P16, MOS transistor P17, transistor Q6, transistor Q7, transistor Q8, resistor R9, resistor R10 and capacitor C6, capacitor C7; The source of the MOS transistor P12, the source of the MOS transistor P14, the source of the MOS transistor P16, the collector of the transistor Q8, one end of the capacitor C4 and one end of the capacitor C5 are all electrically connected to the Vdd port; The gate of the MOS transistor P12 is electrically connected to the other end of the capacitor C4, the drain of the MOS transistor P13 and the collector of the transistor Q4, and outputs the fourth bias voltage VBIAS3 to the comparator module as an output end; the drain of the MOS transistor P12 is electrically connected to the source of the MOS transistor P13; the base of the transistor Q4 is electrically connected to the base of the transistor Q5, the base and collector of the transistor Q7, the base of the transistor Q6 and the emitter of the transistor Q8; the emitter of the transistor Q4 is electrically connected to one end of the resistor R7; The gate of the MOS transistor P14 is electrically connected to the other end of the capacitor C5, the gate and drain of the MOS transistor P15, and the collector of the transistor Q5, and outputs the fifth bias voltage VBIAS4 to the comparator module as an output end; the drain of the MOS transistor P14 is electrically connected to the source of the MOS transistor P15; the emitter of the transistor Q5 is electrically connected to one end of the resistor R8; The drain of the MOS transistor P16 is electrically connected to the source of the MOS transistor P17, and the drain of the MOS transistor P17 is electrically connected to the base of the transistor Q8, the collector of the transistor Q6, one end of the capacitor C6, and one end of the capacitor C7; the emitter of the transistor Q6 is electrically connected to one end of the resistor R9, the emitter of the transistor Q7 is electrically connected to one end of the resistor R10, and the emitter of the transistor Q8 is used as an output end to output the sixth bias voltage VBIAS5 to the comparator module; The gate of the MOS transistor P0 is electrically connected to the gate of the MOS transistor P13, the gate of the MOS transistor P16 and the gate of the MOS transistor P17; The other ends of the resistor R7 , the resistor R8 , the resistor R9 , the resistor R10 , the capacitor C6 and the capacitor C7 are all grounded.
6. The hysteresis comparator with a wide input voltage range according to claim 5, characterized in that: The comparator module includes a first-stage amplifier unit, a folded cascode amplifier unit, a slew rate boost unit and an output buffer unit; The input threshold and hysteresis voltage module is electrically connected to the first-stage amplifier unit and the output buffer unit, the first-stage amplifier unit is electrically connected to the folded common-source and common-gate amplifier unit, the folded common-source and common-gate amplifier unit is electrically connected to the slew rate enhancement unit and the output buffer unit, the slew rate enhancement unit is electrically connected to the output buffer unit, and the output end of the output buffer unit is connected to the output interface Y.
7. The hysteresis comparator with a wide input voltage range according to claim 6, characterized in that: The first-stage amplifier unit includes MOS transistor P23, MOS transistor P24, MOS transistor P25, MOS transistor P26, transistor Q9, transistor Q10, transistor Q11, transistor Q12, transistor Q13 and resistors R11, R13, R16 and R17; The folded cascode amplifier unit includes MOS transistor P32, MOS transistor P33, MOS transistor P34, MOS transistor P35, triode Q14, triode Q15, triode Q16, triode Q17, triode Q18 and resistor R19, resistor R20; The source of the MOS transistor P23, the source of the MOS transistor P25, the source of the MOS transistor P32, the source of the MOS transistor P34 and the collector and base of the transistor Q9 are all electrically connected to the Vdd port; The gate of the MOS transistor P14 is electrically connected to the gate of the MOS transistor P23, the gate of the MOS transistor P24, the gate of the MOS transistor P25, the gate of the MOS transistor P26 and the slew rate improvement unit; the drain of the MOS transistor P23 is electrically connected to the source of the MOS transistor P24, and the drain of the MOS transistor P25 is electrically connected to the source of the MOS transistor P26; The drain of the MOS tube P24 is electrically connected to the collector, base and base of the transistor Q10 and the base of the transistor Q11, and the emitter of the transistor Q10 is electrically connected to the drain of the MOS tube P19; the collector of the transistor Q11 is electrically connected to the base of the transistor Q14 and one end of the resistor R11, and the emitter of the transistor Q11 is electrically connected to the emitter of the transistor Q12, one end of the resistor R16 and one end of the resistor R17, and the transistor Q14 is electrically connected to the base of the transistor Q14 and one end of the resistor R11. The other end of the resistor R16 is electrically connected to the other end of the resistor R15; the other end of the resistor R17 is electrically connected to the drain of the MOS tube P31; the base of the transistor Q12 is electrically connected to the base and collector of the transistor Q13 and the drain of the MOS tube P26; the emitter of the transistor Q13 is electrically connected to the other end of the resistor R18; the collector of the transistor Q12 is electrically connected to the base of the transistor Q15 and one end of the resistor R13; The emitter of the transistor Q9 is electrically connected to the other end of the resistor R11 and the resistor R13; the emitter of the transistor Q8 is electrically connected to the base of the transistor Q16, and the emitter of the transistor Q16 is electrically connected to one end of the resistor R19; the collector of the transistor Q16 is electrically connected to the emitter of the transistor Q14 and the emitter of the transistor Q15; The collector of the transistor Q14 is electrically connected to the drain of the MOS transistor P32 and the source of the MOS transistor P33; the collector of the transistor Q15 is electrically connected to the drain of the MOS transistor P34 and the source of the MOS transistor P35; the gate of the MOS transistor P12 is electrically connected to the gate of the MOS transistor P32 and the gate of the MOS transistor P34; the drain of the MOS transistor P6 is electrically connected to the gate of the MOS transistor P33 and the gate of the MOS transistor P35; The drain of the MOS transistor P33 is electrically connected to one end of the resistor R20, and the other end of the resistor R20 is electrically connected to the collector and base of the transistor Q17 and the base of the transistor Q18; the drain of the MOS transistor P35 is electrically connected to the collector of the transistor Q18, the slew rate boosting unit and the output buffer unit; The other end of the resistor R19, the emitter of the transistor Q17 and the emitter of the transistor Q18 are all grounded.
8. The hysteresis comparator with a wide input voltage range according to claim 7, characterized in that: The slew rate improving unit includes MOS transistor P36, MOS transistor P37, MOS transistor N9, MOS transistor N10, transistor Q19 and resistor R21; The source of the MOS transistor P36 and the drain of the MOS transistor N10 are both electrically connected to the Vdd port; The gate of the MOS transistor P14 is electrically connected to the gate of the MOS transistor P36 and the gate of the MOS transistor P37; the drain of the MOS transistor P36 is electrically connected to the source of the MOS transistor P37; the drain of the MOS transistor P37 is electrically connected to the drain and gate of the MOS transistor N9 and the gate of the MOS transistor N10; the source of the MOS transistor N10 is electrically connected to the drain of the MOS transistor P35 and the output buffer unit; The source of the MOS transistor N9 is electrically connected to one end of the resistor R21, the other end of the resistor R21 is electrically connected to the collector and base of the transistor Q19, and the emitter of the transistor Q19 is grounded.
9. The hysteresis comparator with a wide input voltage range according to claim 8, characterized in that: The output buffer unit includes MOS transistor P38, MOS transistor P39, MOS transistor P40, MOS transistor P41, MOS transistor P42, MOS transistor P43, MOS transistor P44, MOS transistor P45, MOS transistor N11, MOS transistor N12, MOS transistor N13, MOS transistor N14, MOS transistor N15, MOS transistor N16, MOS transistor N17 and MOS transistor N18; The source of the MOS transistor P38, the source of the MOS transistor P39, the source of the MOS transistor P40, the source of the MOS transistor P41, the source of the MOS transistor P42, the source of the MOS transistor P43, the source of the MOS transistor P44 and the source of the MOS transistor P45 are all electrically connected to the Vdd port; The gate of the MOS tube P38 and the gate of the MOS tube N11 are both electrically connected to the source of the MOS tube N10 and the drain of the MOS tube P35; the drain of the MOS tube P38 is electrically connected to the drain of the MOS tube N11, the gate of the MOS tube P39 and the gate of the MOS tube N12; the drain of the MOS tube P39 is electrically connected to the drain of the MOS tube N12, the gate of the MOS tube P40, the gate of the MOS tube N13 and the gate of the MOS tube N15; the drain of the MOS tube P40 is electrically connected to the drain of the MOS tube N13, the gate of the MOS tube N14, the gate of the MOS tube P45 and the gate of the MOS tube N18; the MOS tube P41 is electrically connected to the drain of the MOS tube N11, the gate of the MOS tube P39 and the gate of the MOS tube N12; the drain of the MOS tube P40 is electrically connected to the drain of the MOS tube N13, the gate of the MOS tube N14, the gate of the MOS tube P45 and the gate of the MOS tube N18; The gate of the MOS tube P42 is electrically connected to the drain of the MOS tube P42, the drain of the MOS tube N15, the gate of the MOS tube P43 and the gate of the MOS tube N16; the gate of the MOS tube P42 is electrically connected to the drain of the MOS tube P41 and the drain of the MOS tube N14; the drain of the MOS tube P43 is electrically connected to the drain of the MOS tube N16, the gate of the MOS tube P44, the gate of the MOS tube N17 and the gate of the MOS tube P21; the drain of the MOS tube P44 is electrically connected to the drain of the MOS tube N17 and the gate of the MOS tube P22; the drain of the MOS tube P45 is electrically connected to the drain of the MOS tube N18, and is connected to the output interface Y as an output end; The sources of the MOS transistors N11, N12, N13, N14, N15, N16, N17 and N18 are all grounded.
