Voltage comparison circuit

By using a combination of a current mirror circuit and a comparison output circuit in the voltage comparison circuit, and utilizing the current competition of NMOS and PMOS transistors, the problem of complexity and high cost of the existing voltage comparison circuit is solved, accurate voltage comparison is achieved and the cost is reduced. power consumption.

CN221884193UActive Publication Date: 2024-10-22辰芯半导体(深圳)有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420418728.5
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-03-04
Publication Date
2024-10-22
Estimated Expiration
2034-03-04

AI Technical Summary

Technical Problem

Existing voltage comparison circuits require the use of operational amplifiers and bias modules when comparing input voltages, resulting in high cost, high power consumption, and high complexity.

Method used

A voltage comparison circuit including a first voltage source, a second voltage source, a first current mirror circuit and a second current mirror circuit is used. Through the combination of the current mirror circuit and the comparison output circuit, the bias module in the traditional comparator is avoided. The pull-down and pull-up capabilities of NMOS and PMOS transistors are utilized for current competition to output comparison signals.

Benefits of technology

The structural complexity of the voltage comparison circuit is reduced, the cost and power consumption are reduced, and the accuracy of the voltage comparison is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221884193U_ABST
    Figure CN221884193U_ABST
Patent Text Reader

Abstract

The utility model discloses a voltage comparison circuit, comprising a first voltage source used for outputting a first voltage; the second voltage source is used for outputting a second voltage; the input end of the first current mirror circuit is electrically connected with the output end of the first voltage source, and the first current mirror circuit is used for outputting first pulling current; the input end of the second current mirror circuit is electrically connected with the output end of the second voltage source, and the second current mirror circuit is used for outputting second pulling current; the input end of the comparison output circuit is electrically connected with the output end of the first current mirror circuit and the output end of the second current mirror circuit, and the comparison output circuit is used for comparing the first pulling current output by the first current mirror circuit with the second pulling current output by the second current mirror circuit and outputting a comparison signal. By adopting the voltage comparison circuit, the complexity of the structure of the voltage comparison circuit is reduced.
Need to check novelty before this filing date? Find Prior Art

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 complexity of the voltage comparison circuit structure.

[0004] In order to achieve the above object, the utility model provides a voltage comparison circuit, which includes:

[0005] A first voltage source, the first voltage source is used to output a first voltage;

[0006] a second voltage source, the second voltage source being configured to output a second voltage;

[0007] a first current mirror circuit, wherein an input end of the first current mirror circuit is electrically connected to an output end of the first voltage source, and the first current mirror circuit is used to output a first pull-in current;

[0008] a second current mirror circuit, wherein an input end of the second current mirror circuit is electrically connected to an output end of the second voltage source, and the second current mirror circuit is used to output a second pull-in current;

[0009] A comparison output circuit, wherein the input end of the comparison output circuit is electrically connected to the output end of the first current mirror circuit and the output end of the second current mirror circuit respectively, and the comparison output circuit is used to compare the magnitude of a first pull-in current output by the first current mirror circuit and a second pull-in current output by the second current mirror circuit, and output a comparison signal.

[0010] Preferably, the first current mirror circuit comprises:

[0011] a first switch circuit, wherein an input end of the first switch circuit is electrically connected to an output end of the first voltage source, and the first switch circuit is configured to be turned on and output a copied current when receiving a first voltage;

[0012] A second switch circuit, wherein the input end of the second switch circuit is electrically connected to the output end of the first switch circuit, and the second switch circuit is used to be turned on and replicate the output again when receiving the replication current.

[0013] Preferably, the first current mirror circuit comprises: a first PMOS transistor, a second PMOS transistor, a first NMOS transistor, a second NMOS transistor, and a first resistor;

[0014] Among them, the source of the first PMOS tube is electrically connected to the source of the second PMOS tube and the first voltage source, the gate is electrically connected to the gate of the second PMOS tube and the drain of the first PMOS tube, and the drain is electrically connected to the first end of the first resistor; the second end of the first resistor is electrically connected to the ground end; the drain of the second PMOS tube is electrically connected to the drain of the first NMOS tube and the gate of the first NMOS tube, the gate is electrically connected to the gate of the second NMOS tube, and the source is electrically connected to the ground end; the drain of the second NMOS tube is electrically connected to the second current mirror circuit, and the source is electrically connected to the ground end.

[0015] Preferably, the second current mirror circuit comprises a third switch circuit, an input end of the third switch circuit is electrically connected to an output end of the second voltage source, and the third switch circuit is configured to be turned on and output a copied current when receiving a second voltage.

[0016] Preferably, the second current mirror circuit comprises: a third PMOS transistor, a fourth PMOS transistor, and a second resistor;

[0017] Among them, the source of the third PMOS tube is electrically connected to the source of the fourth PMOS tube and the second voltage source, the gate is electrically connected to the gate of the fourth PMOS tube, and the drain is electrically connected to the first current mirror circuit; the gate of the fourth PMOS tube is electrically connected to the drain of the fourth PMOS tube, and the drain is electrically connected to the first end of the second resistor; the second end of the second resistor is electrically connected to the ground end.

[0018] Preferably, a difference in length-to-width ratio between any two of the first PMOS transistor, the second PMOS transistor, the third PMOS transistor, the fourth PMOS transistor, the first NMOS transistor, and the second NMOS transistor is smaller than a first preset difference.

[0019] Preferably, the resistance difference between the first resistor and the second resistor is smaller than a second preset difference.

[0020] Preferably, the comparison output circuit comprises: a second NMOS tube, a third PMOS tube, and an inverter;

[0021] The drain of the second NMOS tube is electrically connected to the input end of the inverter and the drain of the third PMOS tube.

[0022] The technical solution of the utility model adopts a voltage comparison circuit, wherein the voltage comparison circuit includes a first voltage source, a second voltage source, a first current mirror circuit, a second current mirror circuit, and a comparison output circuit. The first voltage source and the second voltage source pass through the first current mirror circuit and the second current mirror circuit respectively, thereby forming a current and copying it to the comparison output circuit. Furthermore, there is a current competition structure in the comparison output circuit, and by comparing the pull-down capability of the NMOS transistor in the comparison output circuit with the pull-up capability of the PMOS transistor, a comparison signal is output, thereby determining the magnitude of the first voltage and the second voltage. By combining the current mirror circuit with the comparison output circuit, the bias module used by the traditional comparator is avoided, thereby reducing the complexity of the voltage comparison circuit structure. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] 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.

[0024] Figure 1 This is a schematic diagram of the structure of the voltage comparison circuit of the utility model;

[0025] Figure 2 It is a schematic structural diagram of an embodiment of a voltage comparison circuit of the utility model.

[0026] Description of Figure Numbers:

[0027] Label name Label name 10 The first current mirror circuit Q1-Q2 First PMOS tube - second PMOS tube 20 Second current mirror circuit Q3-Q4 First NMOS tube - second NMOS tube 30 Comparison output circuit Q5-Q6 The third PMOS tube - the fourth PMOS tube R1-R2 First resistor - second resistor INV Inverter

[0028] 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

[0029] 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.

[0030] 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.

[0031] 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.

[0032] 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.

[0033] Therefore, reference Figure 1 and Figure 2 The utility model provides a voltage comparison circuit, the voltage comparison circuit comprising:

[0034] A first voltage source, the first voltage source is used to output a first voltage;

[0035] a second voltage source, the second voltage source being configured to output a second voltage;

[0036] a first current mirror circuit 10, wherein an input end of the first current mirror circuit 10 is electrically connected to an output end of the first voltage source, and the first current mirror circuit 10 is used to output a first pull-in current;

[0037] a second current mirror circuit 20, wherein an input end of the second current mirror circuit 20 is electrically connected to an output end of the second voltage source, and the second current mirror circuit 20 is used to output a second pull-in current;

[0038] A comparison output circuit 30, wherein the input end of the comparison output circuit 30 is electrically connected to the output end of the first current mirror circuit 10 and the output end of the second current mirror circuit 20 respectively, and the comparison output circuit 30 is used to compare the magnitude of the first pull-in current output by the first current mirror circuit 10 and the second pull-in current output by the second current mirror circuit 20, and output a comparison signal.

[0039] It should be understood that the first voltage and the second voltage outputted by the first voltage source and the second voltage source are both DC voltages. The technical effect of voltage comparison is achieved by the unidirectional DC voltage outputted by the first voltage source and the second voltage source.

[0040] In this embodiment, both the first current mirror circuit 10 and the second current mirror circuit 20 can be implemented by two groups of identical transistors. Specifically, the first current mirror circuit 10 includes: a first switch circuit, the input end of the first switch circuit is electrically connected to the output end of the first voltage source, the first switch circuit is used to turn on and copy the current output when receiving the first voltage; a second switch circuit, the input end of the second switch circuit is electrically connected to the output end of the first switch circuit, the second switch circuit is used to turn on and copy the output again when receiving the copied current. Further, the first current mirror circuit 10 includes: a first PMOS transistor Q1, a second PMOS transistor Q2, a first NMOS transistor Q3, a second NMOS transistor Q2, and a first resistor R1; wherein the source of the first PMOS transistor Q1 is electrically connected to the source of the second PMOS transistor Q2 and the first voltage source, the gate is electrically connected to the gate of the second PMOS transistor Q2 and the drain of the first PMOS transistor Q1, and the drain is electrically connected to the first end of the first resistor R1; the second end of the first resistor R1 is electrically connected to the ground end; the drain of the second PMOS transistor Q2 is electrically connected to the drain of the first NMOS transistor Q3 and the gate of the first NMOS transistor Q3, the gate is electrically connected to the gate of the second NMOS transistor Q2, and the source is electrically connected to the ground end; the drain of the second NMOS transistor Q2 is electrically connected to the second current mirror circuit 20, and the source is electrically connected to the ground end. It can be understood that when the first voltage source outputs the first voltage, the first PMOS transistor Q1 and the second PMOS transistor Q2 will be in a conducting state, and pass through the first resistor R1, thereby generating a first current. The first current passes through the current mirror circuit formed by the first PMOS tube Q1 and the second PMOS tube Q2, thereby outputting the first current to the first NMOS tube Q3. It should be understood that the first NMOS tube Q3 and the second NMOS tube Q2 together constitute a secondary current mirror circuit, so that the first current is output to the comparison output circuit 30. The second NMOS tube Q2 is not always in the on state. In fact, the second NMOS tube Q2 will only be turned on when the first voltage is greater than the second voltage. This is because, when the first voltage is greater than the second voltage, the gate voltage of the second NMOS tube Q2 will be higher than the source voltage, thereby turning it on. On the contrary, when the first voltage is less than the second voltage, the gate voltage of the second NMOS tube Q2 will be lower than the source voltage, thereby turning it off.

[0041] The second current mirror circuit 20 includes a third switch circuit, the input end of the third switch circuit is electrically connected to the output end of the second voltage source, and the third switch circuit is used to conduct when receiving the second voltage and copy the current for output. Further, the second current mirror circuit 20 includes: a third PMOS tube Q5, a fourth PMOS tube Q6, and a second resistor R2; wherein the source of the third PMOS tube Q5 is electrically connected to the source of the fourth PMOS tube Q6 and the second voltage source, the gate is electrically connected to the gate of the fourth PMOS tube Q6, and the drain is electrically connected to the first current mirror circuit 10; the gate of the fourth PMOS tube Q6 is electrically connected to the drain of the fourth PMOS tube Q6, and the drain is electrically connected to the first end of the second resistor R2; the second end of the second resistor R2 is electrically connected to the ground end. It can be understood that when the second voltage source outputs the second voltage, the fourth PMOS tube Q6 will be in a conducting state and pass through the second resistor R2, thereby generating a second current. The second current passes through the current mirror circuit formed by the fourth PMOS tube Q6 and the third PMOS tube Q5, thereby outputting the second current to the third PMOS tube Q5. The third PMOS tube Q5 will not be in the on state. In fact, the third PMOS tube Q5 will only be turned on when the first voltage is less than the second voltage. This is because, when the first voltage is less than the second voltage, the gate voltage of the third PMOS tube Q5 will be lower than the source voltage, thereby turning it on. On the contrary, when the first voltage is greater than the second voltage, the gate voltage of the PMOS tube of the output stage will be higher than the source voltage, thereby turning it off.

[0042] In this embodiment, the comparison output circuit 30 includes: a second NMOS transistor Q2, a third PMOS transistor Q5, and an inverter INV; wherein the drain of the second NMOS transistor Q2 is electrically connected to the input end of the inverter INV and the drain of the third PMOS transistor Q5.

[0043] If the first voltage is greater than the second voltage, the first current is greater than the second current. At this time, the pull-down capability of the second NMOS transistor Q2 in the comparison output circuit 30 is greater than the pull-up capability of the third PMOS transistor, resulting in the comparison output circuit 30 being pulled down, and the output is a high level after passing through the inverter INV. On the contrary, if the first voltage is less than the second voltage, the first current is less than the second current. At this time, the pull-up capability of the third PMOS transistor Q5 in the comparison output circuit 30 is greater than the pull-down capability of the second NMOS transistor Q2, resulting in the comparison output circuit 30 being pulled up, and the output is a low level after passing through the inverter INV.

[0044] The technical solution of the utility model adopts a voltage comparison circuit, wherein the voltage comparison circuit includes a first voltage source, a second voltage source, a first current mirror circuit 10, a second current mirror circuit 20, and a comparison output circuit 30. The first voltage source and the second voltage source pass through the first current mirror circuit 10 and the second current mirror circuit 20 respectively, thereby forming a current and copying it to the comparison output circuit 30. Further, there is a current competition structure in the comparison output circuit 30, and by comparing the pull-down capability of the NMOS transistor in the comparison output circuit 30 with the pull-up capability of the PMOS transistor, a comparison signal is output, thereby determining the magnitude of the first voltage and the second voltage. By combining the current mirror circuit with the comparison output circuit 30, the bias module used in the traditional comparator is avoided, thereby reducing the complexity of the voltage comparison circuit structure.

[0045] Figure 1 and Figure 2 In one embodiment of the utility model, the difference in length-to-width ratio between any two of the first PMOS tube Q1, the second PMOS tube Q2, the third PMOS tube Q5, the fourth PMOS tube Q6, the first NMOS tube Q3, and the second NMOS tube Q2 is less than the first preset difference.

[0046] In this embodiment, the aspect ratio of the 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 aspect 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. It should be understood that in actual industrial production, there is a certain error in the aspect ratio of the transistor, and in this embodiment, the first preset difference needs to be infinitely close to zero, that is, the error needs to be small enough. The reason why it is necessary to ensure the aspect ratio between each MOS tube is that the on-resistance needs to be considered, so as to ensure that the preset conditions of the first current generated by the first voltage and the second current generated by the second voltage are consistent, thereby ensuring the accuracy of the voltage comparison.

[0047] The resistance difference between the first resistor R1 and the second resistor R2 is smaller than a second preset difference.

[0048] Similarly, the resistance difference between the first resistor R1 and the second resistor R2 should also be negligible, that is, the second preset difference is infinitely close to zero, thereby ensuring the accuracy of voltage comparison.

[0049] 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, characterized in that: The voltage comparison circuit comprises: A first voltage source, the first voltage source is used to output a first voltage; a second voltage source, the second voltage source being configured to output a second voltage; a first current mirror circuit, wherein an input end of the first current mirror circuit is electrically connected to an output end of the first voltage source, and the first current mirror circuit is used to output a first pull-in current; a second current mirror circuit, wherein an input end of the second current mirror circuit is electrically connected to an output end of the second voltage source, and the second current mirror circuit is used to output a second pull-in current; A comparison output circuit, wherein the input end of the comparison output circuit is electrically connected to the output end of the first current mirror circuit and the output end of the second current mirror circuit respectively, and the comparison output circuit is used to compare the magnitude of a first pull-in current output by the first current mirror circuit and a second pull-in current output by the second current mirror circuit, and output a comparison signal.

2. The voltage comparison circuit according to claim 1, wherein: The first current mirror circuit comprises: a first switch circuit, wherein an input end of the first switch circuit is electrically connected to an output end of the first voltage source, and the first switch circuit is configured to be turned on and output a copied current when receiving a first voltage; A second switch circuit, wherein the input end of the second switch circuit is electrically connected to the output end of the first switch circuit, and the second switch circuit is used to be turned on and replicate the output again when receiving the replication current.

3. The voltage comparison circuit according to claim 2, characterized in that: The first current mirror circuit includes: a first PMOS transistor, a second PMOS transistor, a first NMOS transistor, a second NMOS transistor, and a first resistor; Among them, the source of the first PMOS tube is electrically connected to the source of the second PMOS tube and the first voltage source, the gate is electrically connected to the gate of the second PMOS tube and the drain of the first PMOS tube, and the drain is electrically connected to the first end of the first resistor; the second end of the first resistor is electrically connected to the ground end; the drain of the second PMOS tube is electrically connected to the drain of the first NMOS tube and the gate of the first NMOS tube, the gate is electrically connected to the gate of the second NMOS tube, and the source is electrically connected to the ground end; the drain of the second NMOS tube is electrically connected to the second current mirror circuit, and the source is electrically connected to the ground end.

4. The voltage comparison circuit according to claim 3, characterized in that: The second current mirror circuit includes a third switch circuit, an input end of the third switch circuit is electrically connected to the output end of the second voltage source, and the third switch circuit is used to turn on and output a copied current when receiving the second voltage.

5. The voltage comparison circuit according to claim 4, characterized in that: The second current mirror circuit includes: a third PMOS transistor, a fourth PMOS transistor, and a second resistor; Among them, the source of the third PMOS tube is electrically connected to the source of the fourth PMOS tube and the second voltage source, the gate is electrically connected to the gate of the fourth PMOS tube, and the drain is electrically connected to the first current mirror circuit; the gate of the fourth PMOS tube is electrically connected to the drain of the fourth PMOS tube, and the drain is electrically connected to the first end of the second resistor; the second end of the second resistor is electrically connected to the ground end.

6. The voltage comparison circuit according to claim 5, characterized in that: A difference in length-to-width ratio between any two of the first PMOS transistor, the second PMOS transistor, the third PMOS transistor, the fourth PMOS transistor, the first NMOS transistor, and the second NMOS transistor is smaller than a first preset difference.

7. The voltage comparison circuit according to claim 5, characterized in that: The resistance difference between the first resistor and the second resistor is smaller than a second preset difference.

8. The voltage comparison circuit according to any one of claims 2 to 5, characterized in that: The comparison output circuit comprises: a second NMOS tube, a third PMOS tube, and an inverter; The drain of the second NMOS tube is electrically connected to the input end of the inverter and the drain of the third PMOS tube.