Comparator circuit
By converting the input voltage into current information through a conversion module for comparison, the problem of inaccurate comparison between high and low voltage in existing comparator circuits is solved, enabling wider application and lower power consumption.
Patent Information
- Application Number
- CN202211144340.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-20
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-09-20
AI Technical Summary
Existing comparator circuits cannot accurately compare two input voltages when the voltage difference is large, which limits their application scenarios.
The input voltage is converted into current information by the conversion module, and the bias current and comparison voltage are used to compare the voltage, thereby widening the input voltage range and realizing voltage comparison between high voltage and low voltage.
It achieves voltage comparison that is not limited by the input voltage range of traditional comparator structures, reduces circuit complexity and power consumption, and broadens application scenarios.
Smart Images

Figure CN115498988B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electronic technology, and in particular to a comparator circuit. Background Technology
[0002] A comparator circuit is a commonly used signal processing circuit that compares two input voltages and outputs the result, which can be either a logic high level or a logic low level. In automatic control and automatic measurement systems, comparator circuits are frequently used for over-limit alarms, analog-to-digital conversion, and the generation and manipulation of various non-sinusoidal waves. Therefore, comparator circuits are widely used in communications, PCs, consumer electronics, automotive, and industrial fields.
[0003] Current comparator circuit structures have limitations on the voltage difference range between the two input voltages. When the voltage difference between the two input voltages is large, accurate comparison results may not be obtained. In other words, the application scenarios of current comparator circuits are limited.
[0004] Therefore, an improved comparator circuit is needed to solve the technical problems that limit the application scenarios mentioned above. Summary of the Invention
[0005] In view of the above problems, the purpose of this invention is to provide a comparator circuit that can overcome the limitation of application scenarios due to the input voltage range.
[0006] According to one aspect of the present invention, a comparator circuit is provided, comprising:
[0007] The first input terminal receives the first input voltage;
[0008] The second input terminal receives the second input voltage.
[0009] The conversion module forms a current path between the first input terminal and the second input terminal, generates a first comparison voltage based on the path current, the bias current and the first input voltage, and generates a second comparison voltage based on the path current and the bias current and the second input voltage.
[0010] The comparison module generates a comparison signal based on the first comparison voltage, the second comparison voltage, the first input voltage, and the second input voltage, wherein the comparison signal represents the comparison result between the first input voltage and the second input voltage; and
[0011] The output terminal outputs the comparison signal.
[0012] Optionally, the conversion module includes:
[0013] The voltage-to-current conversion unit provides the path currents with different flow directions according to the first input voltage and the second input voltage, generates a first node voltage according to the path current, the bias current and the first input voltage, and generates a second node voltage according to the path current, the bias current and the second input voltage;
[0014] A first biasing unit provides the bias current and generates a first comparison voltage based on the first node voltage and the bias current; and
[0015] The second bias unit provides the bias current and generates a second comparison voltage based on the second node voltage and the bias current.
[0016] Optionally, the voltage-to-current conversion unit includes:
[0017] The first resistor is connected between the first input terminal and the first node;
[0018] The second resistor is connected between the second input terminal and the second node;
[0019] A first transistor and a second transistor are connected in series between the first node and the second node.
[0020] The first node also receives the bias current, and the second node also receives the bias current.
[0021] Optionally, the resistance values of the first resistor and the second resistor are equal.
[0022] Optionally, the first bias unit includes:
[0023] The third transistor has a first terminal connected to the first node, a second terminal providing the first comparison voltage, and a control terminal connected to the second terminal of the third transistor and the control terminal of the first transistor.
[0024] A first current source, connected between the second terminal of the third transistor and ground, provides the bias current.
[0025] Optionally, the second bias unit includes:
[0026] The fourth transistor has a first terminal connected to the second node, a second terminal providing the second comparison voltage, and a control terminal connected to the second terminal of the fourth transistor and the control terminal of the second transistor.
[0027] A second current source, connected between the second terminal of the fourth transistor and ground, provides the bias current.
[0028] Optionally, the first transistor and the second transistor are source-drain interchangeable transistors.
[0029] Optionally, the comparison module includes:
[0030] The fifth transistor has its first terminal connected to the first input terminal, and its control terminal receives the first comparison voltage.
[0031] The sixth transistor has its first terminal connected to the second input terminal, and its control terminal receives the second comparison voltage.
[0032] The first current mirror has its first current terminal connected to the second terminal of the fifth transistor, and its second current terminal connected to the second terminal of the sixth transistor and the output terminal.
[0033] Optionally, when the first input voltage is greater than the second input voltage, the current flowing through the fifth transistor is greater than the current flowing through the sixth transistor; when the first input voltage is less than the second input voltage, the current flowing through the fifth transistor is less than the current flowing through the sixth transistor.
[0034] Optionally, the first current mirror includes:
[0035] The seventh transistor has a first terminal that is the first current terminal and is connected to the control terminal of the seventh transistor, and a second terminal that is grounded.
[0036] The eighth transistor has a first terminal that is the second current terminal, a control terminal that is connected to the control terminal of the seventh transistor, and a second terminal that is grounded.
[0037] The comparator circuit provided in this application converts the voltage information of the first input voltage and the second input voltage into current information of a fixed magnitude through a conversion module, forming a current path between the first input terminal and the second input terminal, and can ultimately be reacted through the first comparison voltage and the second comparison voltage. This voltage-to-current and then-to-voltage signal transmission form can realize voltage comparison between high voltage and low voltage, without being limited by the input voltage range limitation in the traditional comparator structure.
[0038] In some embodiments of the comparator circuit of this application, the source terminal of the transistor in the comparison module receives the input voltage, and the gate terminal receives the comparison voltage corresponding to the input voltage, thereby widening the voltage range of the input voltage. Furthermore, the first and second input voltages received in the comparator circuit are sufficient to support normal circuit operation, eliminating the need for an additional power supply voltage and reducing the complexity and application limitations of the comparator circuit.
[0039] In some embodiments of the present application, the comparator circuit has a known and controllable current flowing through the fifth and sixth transistors in its comparison module, thereby making the power consumption of the comparator circuit controllable. Attached Figure Description
[0040] The above and other objects, features and advantages of the present invention will become more apparent from the following description of embodiments of the invention with reference to the accompanying drawings, in which:
[0041] Figure 1 A circuit structure diagram of a comparator circuit according to an embodiment of the present invention is shown;
[0042] Figure 2 A waveform diagram of a comparator circuit according to an embodiment of the present invention is shown. Detailed Implementation
[0043] Various embodiments of the invention will now be described in more detail with reference to the accompanying drawings. In the various drawings, the same elements or modules are indicated by the same or similar reference numerals. For clarity, the various parts in the drawings are not drawn to scale.
[0044] It should be understood that, in the following description, "circuit" may include single or combined hardware circuits, programmable circuits, state machine circuits, and / or elements capable of storing instructions executed by the programmable circuit. When an element or circuit is said to be "connected" to another element or "connected" between two nodes, it may be directly coupled or connected to the other element, or there may be intermediate elements; the connection between elements may be physical, logical, or a combination thereof. Conversely, when an element is said to be "directly coupled to" or "directly connected" to another element, it means that there are no intermediate elements between them.
[0045] Furthermore, certain terms are used in this patent specification and claims to refer to specific components. Those skilled in the art will understand that hardware manufacturers may use different names to refer to the same component. This patent specification and claims do not distinguish components based on differences in name, but rather on differences in function.
[0046] In this application, the transistor can operate in switching mode or linear mode, including one selected from bipolar transistors or field-effect transistors. Generally, the first terminal and the second terminal of the transistor are the high potential terminal and the low potential terminal on the current path, respectively, and the control terminal is used to receive a drive signal to control the transistor. A MOSFET (Metal-Oxide-Semiconductor Field-Effect Transistor) includes a first terminal, a second terminal, and a control terminal. In the on state of the MOSFET, current flows from the first terminal to the second terminal. The first terminal, the second terminal, and the control terminal of a P-type MOSFET are the source, the drain, and the gate, respectively, and the first terminal, the second terminal, and the control terminal of an N-type MOSFET are the drain, the source, and the gate, respectively. It should be noted that the first terminal and the second terminal in a source-drain interchangeable transistor are symmetrical and can be used interchangeably.
[0047] Furthermore, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0048] Figure 1 A circuit diagram of a comparator circuit according to an embodiment of the present invention is shown. Figure 2 A waveform diagram of a comparator circuit according to an embodiment of the present invention is shown.
[0049] like Figure 1 As shown, the comparator circuit 100 includes a first input terminal, a second input terminal, an output terminal, a conversion module 110, and a comparison module 120.
[0050] The first input terminal receives the first input voltage VA. The second input terminal receives the second input voltage VB.
[0051] The conversion module 110 is used to form a current path between the first input terminal and the second input terminal, and to generate a first comparison voltage V1 based on the path current Id, the bias current Is and the first input voltage VA, and to generate a second comparison voltage V2 based on the path current Id, the bias current Is and the second input voltage VB.
[0052] The comparison module 120 compares the voltage values of the first comparison voltage V1, the second comparison voltage V2, the first input voltage VA, and the second input voltage VB, and generates a comparison signal COMP.
[0053] The output terminal outputs a comparison signal COMP.
[0054] Exemplarily, the comparison module 120 includes transistor MP5, transistor MP6, and a first current mirror. A first terminal of transistor MP5 is connected to a first input terminal to receive a first input voltage VA, and a control terminal of transistor MP5 receives a first comparison voltage V1. A first terminal of transistor MP6 is connected to a second input terminal to receive a second input voltage VB, and a control terminal of transistor MP6 receives a second comparison voltage V2. A first current terminal of the first current mirror is connected to a second terminal of transistor MP5, and a second current terminal of the first current mirror is connected to a second terminal and an output terminal of transistor MP6. Exemplarily, the first current mirror includes, for example, transistors MN7 and MN8. The second terminal of transistor MN7 is grounded, and the first terminal of transistor MN7 is a first current terminal and connected to the control terminal of transistor MN7. The first terminal of transistor MN8 serves as a second current terminal, the second terminal of transistor MN8 is grounded, and the control terminal of transistor MN8 is connected to the control terminal of transistor MN7. Further, the mirror ratio of the first current mirror is, for example, 1:1. In this embodiment, when the current flowing through transistor MP5 is greater than the current flowing through transistor MP6, the comparison signal COMP output from the output terminal is at a logic low level, indicating that the first input voltage VA is greater than the second input voltage; when the current flowing through transistor MP5 is less than the current flowing through transistor MP6, the comparison signal COMP output from the output terminal is at a logic high level, indicating that the first input voltage VA is less than the second input voltage. In other embodiments, the threshold voltages of transistors MP5 and MP6 are equal. Correspondingly, by comparing the gate-source voltages of transistors MP5 and MP6, the magnitude relationship between the current flowing through transistor MP5 and the current flowing through transistor MP6 can be determined, and thus the comparison signal COMP indicating the magnitude relationship between the first input voltage VA and the second input voltage VB can be obtained.
[0055] For example, the conversion module 110 includes a voltage-to-current conversion voltage 111, a first bias unit 112, and a second bias unit 113.
[0056] The voltage-to-current conversion unit 111 provides path currents Id with different directions based on the first input voltage and the second input voltage, and generates a first node voltage VC based on the path current Id, the bias current Is, and the first input voltage VA, and generates a second node voltage VD based on the path current Id, the bias current Is, and the second input voltage VB. Specifically, the voltage-to-current conversion unit 111 includes, for example, resistors R1 and R2, transistor MP1, and transistor MP2. Resistor R1 is connected between the first input terminal and the first node C. The first node C and the second node D also receive bias currents Is of the same direction and magnitude. Resistor R2 is connected between the second input terminal and the second node D. Transistors MP1 and MP2 are connected in series between the first node C and the second node D. Further, transistors MP1 and MP2 are source-drain interchangeable transistors. When the first input voltage VA is greater than the second input voltage VB, a current path is formed between the first and second input terminals, and the path current Id flows from the first input terminal to the second input terminal. When the first input voltage VA is less than the second input voltage VB, a current path is formed between the first and second input terminals, and the path current Id flows from the second input terminal to the first input terminal. Correspondingly, the voltage VC at the first node C is obtained based on the current flowing through resistor R1 and the first input voltage VA. The current flowing through resistor R1 is related to the path current Id and the bias current Is. The voltage VD at the second node D is obtained based on the current flowing through resistor R2 and the second input voltage VB. The current flowing through resistor R2 is related to the path current Id and the bias current Is.
[0057] The first bias unit 112 is used to provide a bias current Id and generate a first comparison voltage V1 based on the first node voltage VC and the bias current Is. Exemplarily, the first bias unit 112 includes a transistor MP3 and a first current source I1. A first terminal of transistor MP3 is connected to the first node C, a second terminal of transistor MP3 provides the first comparison voltage V1, and a control terminal of transistor MP3 is connected to both the second terminal of transistor MP3 and the control terminal of transistor MP1. The first current source I1 is connected between the second terminal of transistor MP3 and ground to provide the bias current Is. Further, the first comparison voltage V1 is related to the voltage at the first node C and the gate-source voltage of transistor MP3 under the bias current Is. Additionally, transistors MP3 and MP1 form a second current mirror, thus the magnitude of the path current Id is related to the bias current Is and the mirror coefficient of the second current mirror.
[0058] The second bias unit 113 is used to provide a bias current Id and generate a second comparison voltage V2 based on the second node voltage VD and the bias current Is. Exemplarily, the second bias unit 113 includes a transistor MP4 and a first current source I2. A first terminal of transistor MP4 is connected to the second node D, a second terminal of transistor MP4 provides the second comparison voltage V2, and a control terminal of transistor MP4 is connected to both the second terminal of transistor MP4 and the control terminal of transistor MP2. The second current source I2 is connected between the second terminal of transistor MP4 and ground to provide the bias current Is. Further, the second comparison voltage V2 is related to the voltage at the second node D and the gate-source voltage of transistor MP4 under the bias current Is. Additionally, transistors MP4 and MP2 form a third current mirror, and thus the magnitude of the path current Id is also related to the bias current Is and the mirror factor of the third current mirror. In this embodiment, the mirror factors of the second and third current mirrors are the same.
[0059] like Figure 2 As shown, for example, at time T1, the first input voltage VA is less than the second input voltage VB. For instance, the first input voltage VA is 5V, and the second input voltage VB is 15V. Then, the voltage-to-current conversion unit 111 in the conversion module 110 forms a current path flowing from the second input terminal to the first input terminal. Figure 1 (The dashed path shown) At this point, the source and drain terminals of transistor MP1 in the diagram interchange conduct. And when the mirror ratios of the second and third current mirrors are 1:k, the path current I... d =k*I S Where k is a positive number. Correspondingly, the voltage at the first node VC = VA - R1·(I S -I d )=VA-R1·I S ·(1-k), the voltage at the second node VD=VB-R2·I s ·(1+k). First comparison voltage V1=VC+VDS MP3 =VC+VGS MP3 The second comparison voltage V2 = VD + VDS MP4 =VD+VGS MP4 The source-gate voltage VSG of transistor MP5 MP5 =VA-V1=R1·I s ·(1-k)-VGS MP3 The source-gate voltage VSG of transistor MP6 MP6 =VB-V2=R2·I s ·(1+k)-VGS MP4 Since transistors MP3 and MP4 are biased in the same state, R1 = R2, ΔVSG = VSG. MP6 -VSG MP5=2·k·R1·I s At this time, the current flowing through transistor MP6 is greater than the current flowing through transistor MP5, and the output terminal is pulled high, that is, the comparison signal COMP is at a logic high level.
[0060] For example, at time T2, the first input voltage VA is greater than the second input voltage VB. For instance, the first input voltage VA is 15V, and the second input voltage VB is 5V. Then, the voltage-to-current conversion unit 111 in the conversion module 110 forms a current path flowing from the first input terminal to the second input terminal. Figure 1 (Solid line path shown), at this time, the source and drain terminals of transistor MP2 in the diagram are interchanged. And when the mirror factor of the second current mirror and the third current mirror is 1:k, the path current I d =k*I S Where k is a positive number. Correspondingly, the voltage at the first node VC = VA - R1·(I S +I d )=VA-R1·I S ·(1+k), the voltage at the second node VD=VB-R2·(I s -I d ) = VB-R2·I s ·(1-k). First comparison voltage V1=VC+VDS MP3 =VC+VGS MP3 The second comparison voltage V2 = VD + VDS MP4 =VD+VGS MP4 The source-gate voltage VSG of transistor MP5 MP5 =VA-V1=R1·I s ·(1+k)-VGS MP3 The source-gate voltage VSG of transistor MP6 MP6 =VB-V2=R2·I s ·(1-k)-VGS MP4 Since transistors MP3 and MP4 are biased in the same state, R1 = R2, ΔVSG = VSG. MP6 -VSG MP5 =-2·k·R1·I s At this time, the current flowing through transistor MP6 is less than the current flowing through transistor MP5, and the output terminal is pulled low, that is, the comparison signal COMP is at a logic low level.
[0061] The conversion module in the comparator circuit of this application embodiment converts the input voltage information into a current information of fixed magnitude, forming a current path between the first and second input terminals, and ultimately reflecting the voltage drop across resistors R1 and R2. This voltage-to-current and then-to-voltage signal transmission method can realize voltage comparison between high and low voltages, without being limited by the input voltage range restrictions in traditional comparator structures. Furthermore, under the application conditions of satisfying a wide input voltage range, the gate-source voltage (source-gate voltage) of transistors MP5 and MP6 in the comparator module is related to resistors R1 and R2 and the mirror coefficient k. Therefore, by reasonably setting the values of k and R1 and R2, the magnitude of the current flowing through transistors MP5 and MP6 can be determined and controlled, thus making the power consumption of the comparator circuit controllable. For example, the overall power consumption of the above comparator circuit is approximately 16 microamps, and the response time is approximately 1 microsecond.
[0062] In summary, the comparator circuit provided in this embodiment converts the voltage information of the first input voltage and the second input voltage into current information of a fixed magnitude through a conversion module, forming a current path between the first input terminal and the second input terminal, and can ultimately be reacted through the first comparison voltage and the second comparison voltage. This voltage-to-current and then-to-voltage signal transmission form can realize voltage comparison between high voltage and low voltage, without being limited by the input voltage range limitation in the traditional comparator structure.
[0063] Optionally, in the comparator circuit of this application embodiment, the source terminal of the transistor in the comparison module receives the input voltage, and the gate terminal receives the comparison voltage corresponding to the input voltage, thereby widening the voltage range of the input voltage. Furthermore, the first and second input voltages received in the above comparator circuit are sufficient to support normal circuit operation, eliminating the need for an additional power supply voltage and reducing the complexity and application limitations of the comparator circuit.
[0064] Optionally, in the comparator circuit of this application embodiment, the magnitude of the current flowing through the fifth and sixth transistors in its comparison module is determined and controllable, thereby making the power consumption of the comparator circuit controllable.
[0065] It should be noted that those skilled in the art will understand that the terms “during,” “when,” and “when…” used herein in relation to circuit operation are not strict terms indicating an action that occurs immediately upon the commencement of a startup action, but rather that there may be some small but reasonable delays, such as various propagation delays, between the startup action and the reaction action initiated by it. The terms “approximately” or “substantially” used herein mean that an element value is expected to be close to the declared value or position. However, as is well known in the art, there are always small deviations that make it difficult for the value or position to be strictly the declared value. It has been properly determined in the art that a deviation of at least ten percent (10%) (or at least twenty percent (20%) for semiconductor doping concentration) is a reasonable deviation from the described accurate ideal target. When used in conjunction with signal states, the actual voltage value or logic state of the signal (e.g., “1” or “0”) depends on whether positive or negative logic is used.
[0066] As described above, these embodiments of the present invention do not exhaustively describe all details, nor do they limit the invention to specific embodiments. Clearly, many modifications and variations can be made based on the above description. This specification selects and specifically describes these embodiments to better explain the principles and practical applications of the invention, thereby enabling those skilled in the art to effectively utilize the invention and its modifications. The scope of protection of this invention should be determined by the scope defined in the claims and their equivalents.
Claims
1. A comparator circuit, comprising: include: The first input terminal receives the first input voltage; The second input terminal receives the second input voltage. A conversion module forms a current path between the first input terminal and the second input terminal, generates a first comparison voltage based on the path current, the bias current, and the first input voltage, and generates a second comparison voltage based on the path current, the bias current, and the second input voltage. The conversion module includes: The voltage-to-current conversion unit provides the path currents with different flow directions according to the first input voltage and the second input voltage, generates a first node voltage according to the path current, the bias current and the first input voltage, and generates a second node voltage according to the path current, the bias current and the second input voltage; A first biasing unit provides the bias current and generates a first comparison voltage based on the first node voltage and the bias current; and The second bias unit provides the bias current and generates a second comparison voltage based on the second node voltage and the bias current; The comparison module generates a comparison signal based on the first comparison voltage, the second comparison voltage, the first input voltage, and the second input voltage, wherein the comparison signal represents the comparison result between the first input voltage and the second input voltage; and The comparison signal is output at the output terminal. The comparison module includes: The fifth transistor has its first terminal connected to the first input terminal, and its control terminal receives the first comparison voltage. The sixth transistor has its first terminal connected to the second input terminal, and its control terminal receives the second comparison voltage. The first current mirror has its first current terminal connected to the second terminal of the fifth transistor, and its second current terminal connected to the second terminal of the sixth transistor and the output terminal.
2. The comparator circuit of claim 1, wherein, The voltage-to-current conversion unit includes: The first resistor is connected between the first input terminal and the first node; The second resistor is connected between the second input terminal and the second node; A first transistor and a second transistor are connected in series between the first node and the second node. The first node also receives the bias current, and the second node also receives the bias current.
3. The comparator circuit of claim 2, wherein, The resistance values of the first resistor and the second resistor are equal.
4. The comparator circuit of claim 2, wherein, The first bias unit includes: The third transistor has a first terminal connected to the first node, a second terminal providing the first comparison voltage, and a control terminal connected to the second terminal of the third transistor and the control terminal of the first transistor. A first current source, connected between the second terminal of the third transistor and ground, provides the bias current.
5. The comparator circuit of claim 2, wherein, The second bias unit includes: The fourth transistor has a first terminal connected to the second node, a second terminal providing the second comparison voltage, and a control terminal connected to the second terminal of the fourth transistor and the control terminal of the second transistor. A second current source, connected between the second terminal of the fourth transistor and ground, provides the bias current.
6. The comparator circuit of claim 2, wherein, The first transistor and the second transistor are source-drain interchangeable transistors.
7. The comparator circuit of claim 1, wherein, When the first input voltage is greater than the second input voltage, the current flowing through the fifth transistor is greater than the current flowing through the sixth transistor; when the first input voltage is less than the second input voltage, the current flowing through the fifth transistor is less than the current flowing through the sixth transistor.
8. The comparator circuit of claim 1, wherein, The first current mirror comprises: a seventh transistor, a first end of which is the first current end and connected to a control end of the seventh transistor, and a second end of which is grounded; an eighth transistor, a first end of which is the second current end, a control end of which is connected to the control end of the seventh transistor, and a second end of which is grounded.
Citation Information
Patent Citations
Current comparator circuit
JP1998065463A
