Voltage comparison circuit
By using a signal output circuit, a PMOS tube drive circuit and an inverter in the voltage comparison circuit, and controlling the circuit on and off according to the voltage difference, the problems of complexity and high power consumption of the existing voltage comparison circuit are solved, and accurate voltage comparison is achieved. and improvement of anti-interference ability.
Patent Information
- Application Number
- CN202420415218.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-04
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2034-03-04
AI Technical Summary
Existing voltage comparison circuits require operational amplifiers and precise voltage offsets and current offsets when comparing input voltages, resulting in high cost, high power consumption, and high complexity.
A voltage comparison circuit is designed, which uses a signal output circuit, a first voltage source, a second voltage source and a switch circuit. The switch circuit is used to conduct or disconnect the path between the voltage source and the signal output circuit according to the voltage difference, using The PMOS tube driver circuit and the inverter implement voltage comparison, reducing the complexity of the circuit.
While realizing voltage comparison, the structural complexity and power consumption of the circuit are reduced, the accuracy and anti-interference ability of voltage comparison are improved, and the cost is reduced.
Smart Images

Figure CN221765975U
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of voltage comparison, in particular to a voltage comparison circuit. Background Art
[0002] In the prior art, the comparison of input voltage is usually implemented by a traditional comparator, that is, an operational amplifier is required, and precise voltage bias and current bias need to be provided. The input of voltage bias and current bias requires the setting of a bias module, which, to a certain extent, increases the cost, power consumption and complexity of the voltage comparison circuit. Utility Model Content
[0003] The main purpose of the utility model is to provide a voltage comparison circuit, aiming to reduce the structural complexity of the voltage comparison circuit
[0004] In order to achieve the above object, the utility model provides a voltage comparison circuit, which includes:
[0005] Signal output circuit;
[0006] A first voltage source, wherein the first voltage source is used to input a first voltage;
[0007] a second voltage source, the second voltage source being used to input a second voltage;
[0008] A switch circuit, wherein a first input terminal of the switch circuit is electrically connected to an output terminal of the first voltage source, and a second input terminal of the switch circuit is electrically connected to an output terminal of the second voltage source; the switch circuit is used to turn on or off a path between the first voltage source, the second voltage source and a signal output circuit according to a difference between the first voltage and the second voltage.
[0009] Preferably, the signal output circuit comprises:
[0010] A first inverter, wherein an input end of the first inverter is electrically connected to an output end of the switch circuit, and the first inverter is used to invert an input signal and output it.
[0011] Preferably, the signal output circuit further includes:
[0012] A second inverter, wherein the input end of the second inverter is electrically connected to the output end of the first inverter, and the second inverter is used for inverting and outputting the result of the inverted output of the first inverter.
[0013] Preferably, the signal output circuit further includes:
[0014] A load circuit, wherein a first end of the load circuit is electrically connected to the output end of the switch circuit, and a second end of the load circuit is electrically connected to the ground end; the load circuit is used to output a voltage signal.
[0015] Preferably, the switch circuit comprises:
[0016] a first switch circuit, wherein a first conduction end of the first switch circuit is electrically connected to an output end of the first voltage source, a second conduction end of the first switch circuit is electrically connected to an output end of the second voltage source, and a controlled end of the first switch circuit is electrically connected to a second conduction end of the first switch;
[0017] a second switch circuit, wherein a first conduction end of the second switch circuit is electrically connected to an output end of the first voltage source, a second conduction end of the first switch circuit is electrically connected to an input end of the signal output circuit, and a controlled end of the second switch circuit is electrically connected to a controlled end of the first switch circuit;
[0018] Among them, the first switching circuit is used to turn on or off the path between the first voltage source and the second voltage source according to the difference between the first voltage and the second voltage; the second switching circuit is used to turn on or off the path between the first voltage source and the signal output circuit according to the difference between the first voltage and the second voltage.
[0019] Preferably, the first switch circuit is a first PMOS transistor drive circuit, and the second switch circuit is also a second PMOS transistor drive circuit.
[0020] Preferably, in the first PMOS tube driving circuit, the width-to-length ratio of the first PMOS tube is much smaller than the width-to-length ratio of the second PMOS tube.
[0021] The technical solution of the utility model adopts a voltage comparison circuit, wherein the voltage comparison circuit includes a signal output terminal, a first voltage source, a second voltage source, and a switch circuit. The first voltage source and the second voltage are respectively inputted by the first voltage source and the second voltage source, and the difference between the first voltage and the second voltage is turned on or off by the switch circuit between the first voltage source, the second voltage source and the signal output circuit, so that the signal output circuit outputs different level signals, thereby judging the magnitude of the first voltage and the second voltage. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the utility model or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the utility model. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0023] Figure 1 It is a schematic structural diagram of an embodiment of a voltage comparison circuit of the utility model.
[0024] Description of Figure Numbers:
[0025] Label name Label name 10 Signal output circuit Q1 The first PMOS tube 11 Load circuit Q2 The second PMOS tube 20 First voltage source R Load resistance 30 Second voltage source INV1 First Inverter 40 Switching Circuit INV2 The second inverter
[0026] The realization of the purpose, functional features and advantages of the utility model will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the utility model to clearly and completely describe the technical solutions in the embodiments of the utility model. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.
[0028] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back...) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0029] In addition, the descriptions of "first", "second", etc. in the present utility model are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present utility model.
[0030] In the prior art, the comparison of input voltage is usually implemented by a traditional comparator, that is, an operational amplifier is required, and precise voltage bias and current bias need to be provided. The input of voltage bias and current bias requires the setting of a bias module, which, to a certain extent, increases the cost, power consumption and complexity of the voltage comparison circuit.
[0031] Therefore, reference Figure 1 The utility model provides a voltage comparison circuit, the voltage comparison circuit comprising:
[0032] Signal output circuit 10;
[0033] A first voltage source 20, wherein the first voltage source 20 is used to input a first voltage;
[0034] A second voltage source 30, wherein the second voltage source 30 is used to input a second voltage;
[0035] A switch circuit 40, wherein a first input terminal of the switch circuit 40 is electrically connected to an output terminal of the first voltage source 20, and a second input terminal of the switch circuit 40 is electrically connected to an output terminal of the second voltage source 30; the switch circuit 40 is used to turn on or off a path between the first voltage source 20, the second voltage source 30 and the signal output circuit 10 according to a difference between the first voltage and the second voltage.
[0036] The signal output circuit 10 comprises:
[0037] A first inverter INV1 , wherein an input terminal of the first inverter INV1 is electrically connected to an output terminal of the switch circuit 40 , and the first inverter INV1 is used for inverting an input signal and outputting the inverted signal.
[0038] The signal output circuit 10 further includes:
[0039] The second inverter INV2 has an input terminal electrically connected to an output terminal of the first inverter INV1 , and is used for inverting and outputting a result of the inverted output of the first inverter INV1 .
[0040] The signal output circuit 10 further includes:
[0041] A load circuit 11, wherein a first end of the load circuit 11 is electrically connected to an output end of the switch circuit 40, and a second end of the load circuit 11 is electrically connected to a ground end; the load circuit 11 is used to output a voltage signal.
[0042] In the present embodiment, the signal output circuit 10 can be implemented by a signal enhancement output circuit, etc., so as to enhance the output of the input signal. Specifically, an inverter circuit can be used to implement it, by converting the level signal outputted by a single-ended output to output an inverted signal with a phase difference of 180 degrees, thereby increasing the anti-interference ability during the level signal transmission process. Further, when the signal inputted to the signal output circuit 10 is a high level signal, it is outputted as a low level signal through the inverter. Among them, the inverter can convert the inputted uneven waveform signal into a rectangular wave, so as to facilitate the recognition of the subsequent circuit. In addition, in order to achieve the consistency between the inputted signal and the outputted signal, the anti-interference ability during the level signal transmission process is improved, and the phase consistency between the level signal inputted to the signal output circuit 10 and the outputted level signal is also ensured.
[0043] In this embodiment, the load identification circuit can be implemented by a load resistor R, so that when the current passes through the two ends of the load identification circuit, a potential difference is presented, thereby obtaining different level signals and outputting them to realize the judgment of the voltage magnitude. Specifically, take the load resistor R as an example. The first end of the load circuit 11 is electrically connected to the output end of the switch circuit 40, and the other end is grounded. When the current passes through the load resistor R, a potential difference is formed, that is, the first end of the load circuit 11 is a high level and the other end is a low level, so that the signal output circuit 10 obtains a level signal. The first voltage source 20 and the second voltage source 30 can be implemented by using DC voltage sources with different output voltages.
[0044] The switch circuit 40 can be implemented by at least one switch tube, such as a MOS tube, an IGBT tube, a thyristor, a triode Q, a power tube, etc. Specifically, the input end of the switch circuit 40 is electrically connected to the first voltage source 20 and the second voltage source 30 respectively, and the difference between the first voltage and the second voltage respectively output by the first voltage source 20 and the second voltage source 30 in the switch circuit 40 is compared with the threshold voltage, thereby turning on or off the path between the first voltage source 20, the second voltage source 30 and the signal output circuit 10, and then controlling the voltage signal output by the output end of the switch circuit 40 to realize the comparison and judgment of the first voltage and the second voltage.
[0045] In this embodiment, the voltage comparison circuit includes a signal output terminal, a first voltage source 20, a second voltage source 30, and a switch circuit 40. The first voltage source 20 and the second voltage source 30 respectively input a first voltage and a second voltage, and the switch circuit 40 switches on or off the path between the first voltage source 20, the second voltage source 30 and the signal output circuit 10 according to the difference between the first voltage and the second voltage, so that the signal output circuit 10 outputs different level signals, thereby determining the magnitude of the first voltage and the second voltage.
[0046] In an embodiment of the present invention, the switch circuit 40 includes:
[0047] a first switch circuit, wherein a first conduction end of the first switch circuit is electrically connected to an output end of the first voltage source 20, a second conduction end of the first switch circuit is electrically connected to an output end of the second voltage source 30, and a controlled end of the first switch circuit is electrically connected to a second conduction end of the first switch;
[0048] a second switch circuit, wherein a first conducting end of the second switch circuit is electrically connected to an output end of the first voltage source 20, a second conducting end of the first switch circuit is electrically connected to an input end of the signal output circuit 10, and a controlled end of the second switch circuit is electrically connected to a controlled end of the first switch circuit;
[0049] Among them, the first switching circuit is used to turn on or off the path between the first voltage source 20 and the second voltage source 30 according to the difference between the first voltage and the second voltage; the second switching circuit is used to turn on or off the path between the first voltage source 20 and the signal output circuit 10 according to the difference between the first voltage and the second voltage.
[0050] The first switch circuit is a first PMOS transistor Q1 driving circuit, and the second switch circuit 40 is also a second PMOS transistor Q2 driving circuit.
[0051] In this embodiment, it should be understood that the PMOS tube is composed of a P-type semiconductor substrate, and an N-type doped source (S) and drain (D) region are made on the substrate through an oxide layer isolation technology, as well as a gate (G) covered on the oxide layer. The gate and the semiconductor are separated by a thin layer of silicon dioxide insulation, thus forming a capacitor structure. When the PMOS tube is in a non-working state, that is, when the gate has no voltage applied relative to the source or the applied voltage is not enough to generate a sufficient electric field, the majority carriers in the P-type substrate are holes, while the majority carriers in the N-type source and drain regions are electrons. Due to the insulating effect of the oxide layer, no current flows. When a negative voltage relative to the source S is applied to the gate G (Vgs is less than 0), the negative voltage attracts the minority carriers in the substrate - electrons, and at the same time, positive charges (holes) are induced on the surface of the P-type substrate below the oxide layer. These positive charges form a P-type conductive channel from the source to the drain below the gate. When this channel is formed wide and deep enough, it allows holes to flow from the source to the drain, thus forming a conduction state. The PMOS tube has a threshold voltage (Vth), which is the minimum gate-source voltage required to make the channel start to conduct. Only when |Vgs| is greater than |Vth|, the channel will be fully opened to form a low-resistance channel, and the resistance between the source and the drain will be significantly reduced, allowing a larger current to pass. As the gate-source voltage |Vgs| increases, the field strength in the channel increases, the channel width increases, and the on-resistance Ron decreases, which means that a larger current can pass through the MOS tube. When Vgs is greater than 0 or |Vgs| is less than |Vth|, the gate cannot effectively attract more electrons to the substrate surface, resulting in the disappearance or insufficiency of the P-type channel. At this time, the MOS tube is in the cut-off state, and almost no current can flow from the source to the drain. Therefore, the work of the PMOS tube is to control the formation and dissipation of the P-type channel by changing the voltage between the gate and the source, thereby controlling the on and off of the current.
[0052] In this embodiment, the first switch circuit and the second switch circuit can be implemented by using PMOS tubes. Among them, the two ends of the first switch circuit are electrically connected to the output ends of the first voltage source 20 and the second voltage source 30 respectively. In addition, the controlled end of the first switch circuit is electrically connected to the output end of the second voltage source 30 and the controlled end of the second switch circuit. Thus, the voltage output by the first voltage source 20 and the second voltage source 30 opens or closes the first switch circuit, and controls the mirror current output by the current mirror circuit formed by the first switch circuit and the second switch circuit. Specifically, the working state of the first voltage source 20 and the second voltage source 30 in the current mirror circuit is: when V1 is higher than V2 by at least one PMOS threshold voltage, the first PMOS tube Q1 driving circuit works in the saturation region because the gate and the drain are connected, |vds|>|vgs-vth|, that is, the current I1=vds / rds is generated. Since the width-to-length ratio of the second PMOS tube in the second PMOS tube Q2 driving circuit is much greater than that of the first PMOS tube Q1, the generated mirror current I2 is much greater than I1, and the voltage value obtained by multiplying it with the load resistor R in the load circuit 11 is close to V1, and then the output is logic 1 after passing through two inverters; when the voltage higher than V2 is lower than a PMOS threshold voltage, because the first PMOS tube Q1 driving circuit is not turned on, I1 is approximately equal to 0. At this time, the generated mirror current I2 is approximately equal to 0, that is, the output is logic 0; when V1 is less than V2, because the source and drain of the first PMOS tube Q1 driving circuit are interchanged, the gate is connected to the source, so the current mirror is not established, and the output is still logic 0. Therefore, the first voltage source 20 and the second voltage source 30 are compared and output through the first switch circuit and the second switch circuit, so as to compare the magnitude of the first voltage and the second voltage output by the first voltage source 20 and the second voltage source 30, respectively. It should be considered that the threshold voltage of the PMOS tube limits the comparison accuracy of the voltage comparison circuit. If a low threshold voltage device is used (for example, the PMOS threshold is reduced to 0.15V), the accuracy of the voltage comparison circuit will be improved.
[0053] Furthermore, in the first PMOS transistor Q1 driving circuit, the width-to-length ratio of the first PMOS transistor Q1 is much smaller than the width-to-length ratio of the second PMOS transistor Q2.
[0054] It should be understood that the width-to-length ratio of a MOS tube refers to the ratio of the width of its conductive channel to its length. This ratio has an important influence on the current transmission and switching characteristics of the MOS tube. A larger width-to-length ratio usually means a higher current carrying capacity and a smaller on-resistance, which helps to improve the driving capability and working stability of the transistor. The width-to-length ratio of the first PMOS tube Q1 is much smaller than the width-to-length ratio of the second PMOS tube Q2, which can be understood as its on-resistance is much larger than the second PMOS tube Q2, which will also result in the current flowing through the second PMOS tube Q2 being much larger than the current of the first PMOS tube Q1 in the current mirror circuit composed of the first switch circuit and the second switch circuit. Therefore, the current flowing through the second PMOS tube Q2 will present a potential difference at both ends of the load circuit 11 when passing through the load circuit 11, thereby generating a high level, so that the signal output circuit 10 can obtain and output it.
[0055] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the inventive concept of the present invention, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present invention.
Claims
1. A voltage comparison circuit, It is characterized in that The voltage comparison circuit comprises: Signal output circuit; A first voltage source, wherein the first voltage source is used to input a first voltage; a second voltage source, the second voltage source being used to input a second voltage; A switch circuit, wherein a first input terminal of the switch circuit is electrically connected to an output terminal of the first voltage source, and a second input terminal of the switch circuit is electrically connected to an output terminal of the second voltage source; the switch circuit is used to turn on or off a path between the first voltage source, the second voltage source and a signal output circuit according to a difference between the first voltage and the second voltage.
2. The voltage comparison circuit according to claim 1, It is characterized in that The signal output circuit comprises: A first inverter, wherein an input end of the first inverter is electrically connected to an output end of the switch circuit, and the first inverter is used to invert an input signal and output it.
3. The voltage comparison circuit as claimed in claim 2, It is characterized in that The signal output circuit also includes: A second inverter, wherein the input end of the second inverter is electrically connected to the output end of the first inverter, and the second inverter is used for inverting and outputting the result of the inverted output of the first inverter.
4. The voltage comparison circuit as claimed in claim 3, It is characterized in that The signal output circuit also includes: A load circuit, wherein a first end of the load circuit is electrically connected to the output end of the switch circuit, and a second end of the load circuit is electrically connected to the ground end; the load circuit is used to output a voltage signal.
5. The voltage comparison circuit according to claim 1, It is characterized in that The switch circuit comprises: a first switch circuit, wherein a first conduction end of the first switch circuit is electrically connected to an output end of the first voltage source, a second conduction end of the first switch circuit is electrically connected to an output end of the second voltage source, and a controlled end of the first switch circuit is electrically connected to a second conduction end of the first switch; a second switch circuit, wherein a first conduction end of the second switch circuit is electrically connected to an output end of the first voltage source, a second conduction end of the first switch circuit is electrically connected to an input end of the signal output circuit, and a controlled end of the second switch circuit is electrically connected to a controlled end of the first switch circuit; Among them, the first switching circuit is used to turn on or off the path between the first voltage source and the second voltage source according to the difference between the first voltage and the second voltage; the second switching circuit is used to turn on or off the path between the first voltage source and the signal output circuit according to the difference between the first voltage and the second voltage.
6. The voltage comparison circuit as claimed in claim 5, It is characterized in that The first switch circuit is a first PMOS transistor driving circuit, and the second switch circuit is also a second PMOS transistor driving circuit.
7. The voltage comparison circuit according to claim 6, It is characterized in that The width-to-length ratio of the first PMOS tube in the first PMOS tube driving circuit is much smaller than the width-to-length ratio of the second PMOS tube.
