Fast current comparison circuit

By using a current mirror circuit in the current comparison circuit to convert the reference current and the comparison current into voltage, and using a cascode MOS tube pair to achieve high input impedance and fast response, the existing current comparison circuit solves the problem when the comparison current is large. The problem of inaccurate output and large occupied area is achieved, and a small, stable and highly sensitive current comparison is achieved.

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

Patent Information

Application Number
CN202323229090.5
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2023-11-28
Publication Date
2024-09-03
Estimated Expiration
2033-11-28

AI Technical Summary

Technical Problem

Existing current comparison circuits have inaccurate or unstable output when the comparison current is large, occupy a large area, and have poor sensitivity, making it difficult to achieve current comparison with small size, good stability, and high sensitivity.

Method used

A fast current comparison circuit is used, including a reference current input terminal, a comparison current input terminal, a supply voltage input terminal and a bias voltage input terminal, and the reference current and comparison current are converted into a reference voltage and a comparison voltage through the first and second current mirror circuits. , and compared by a comparison circuit, using a common source and common gate MOS tube pair to achieve high input impedance and fast response.

Benefits of technology

The accuracy and stability of current comparison are achieved. The overall circuit size is small and the sensitivity is high. When the comparison current and the reference current change in a short time, it can respond quickly and output the correct result signal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221652574U
    Figure CN221652574U
Patent Text Reader

Abstract

The utility model discloses a fast current comparison circuit which comprises a reference current input end, a comparison current input end, a power supply voltage input end, a bias voltage input end, a first current mirror circuit, a second current mirror circuit and a comparison circuit. When the reference current and the comparison current are input, the first current mirror circuit converts the input reference current into reference voltage to be output, and the second current mirror circuit converts the input comparison current into comparison voltage to be output. The comparison circuit compares the input reference voltage with the comparison voltage to obtain a result signal. According to the utility model, the first current mirror circuit and the second current mirror circuit are adopted to realize the conversion from current to voltage, the circuit size is small, and the stability is good. When the comparison current input in a short time exceeds the error range compared with the reference current, the comparison voltage output by the first current mirror circuit and the second current mirror circuit also exceeds the error range compared with the reference voltage, the result signal is changed, and the sensitivity of the circuit is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of integrated circuits, in particular to a fast current comparison circuit. Background Art

[0002] In the field of integrated circuit technology, current comparison circuits play an important role in current detection, current protection, current source matching and current control.

[0003] Reference Figure 3 , Figure 3 The present invention is a schematic diagram of the structure of an embodiment of a current comparison circuit in the prior art. The current comparison circuit includes a reference current input terminal, a comparison current input terminal, a first adjustable resistor, a second adjustable resistor, a third capacitor, a fourth capacitor and a first comparator. The comparison voltage input terminal of the first comparator is respectively connected to the comparison current input terminal, the first adjustable resistor and the third capacitor; the reference voltage input terminal of the first comparator is respectively connected to the reference current input terminal, the second adjustable resistor and the fourth capacitor; the other ends of the first adjustable resistor, the third capacitor, the second adjustable resistor and the fourth capacitor are grounded. The current comparison circuit can realize the comparison between the real-time reference current and the comparison current, but because the input voltage range of the comparator usually has certain requirements, when the comparison current is relatively large, it is easy to cause the output of the comparator to be inaccurate or unstable, and the adjustable resistor of the current comparison circuit occupies a large area, which is not conducive to integration.

[0004] Reference Figure 4 , Figure 4 It is a structural schematic diagram of another embodiment of the current comparison circuit in the prior art. The current comparison circuit includes a comparison current source, a reference current source, a fifth capacitor and a second comparator. The comparison voltage input terminal of the second comparator is respectively connected to the negative electrode of the comparison current source, the positive electrode of the reference current source and the fifth capacitor; the reference voltage input terminal of the second comparator inputs the reference voltage; the negative electrode of the reference current source and the other end of the fifth capacitor are grounded. The comparison circuit can compare the reference current with the comparison current. For example, when the current flowing through the comparison current source is greater than the current flowing through the reference current source, the excess current will charge the capacitor and the comparison voltage will increase. However, the charging and discharging of the capacitor takes time. When the comparison current and the reference current change in a short period of time, it is easy to cause errors in the comparison result and the sensitivity is poor.

[0005] In summary, there is an urgent need to propose a current comparison circuit with smaller size, better stability and higher sensitivity. Utility Model Content

[0006] The main purpose of the utility model is to provide a fast current comparison circuit, aiming at proposing a current comparison circuit with small size, good stability and high sensitivity.

[0007] To achieve the above object, the utility model provides a fast current comparison circuit, comprising:

[0008] Reference current input terminal;

[0009] Comparison current input terminal;

[0010] Power supply voltage input terminal;

[0011] Bias voltage input terminal;

[0012] a first current mirror circuit, wherein the first current mirror circuit is respectively connected to the reference current input terminal, the power supply voltage input terminal and the bias voltage input terminal; the first current mirror circuit is used to adjust the working state according to the power supply voltage inputted from the power supply voltage input terminal and the bias voltage inputted from the bias voltage input terminal; the first current mirror circuit is also used to output a reference voltage according to the reference current of the reference current input terminal;

[0013] a second current mirror circuit, wherein the first current mirror circuit is respectively connected to the comparison current input terminal, the power supply voltage input terminal, the bias voltage input terminal and the first current mirror circuit; the second current mirror circuit is used to adjust the working state according to the power supply voltage inputted from the power supply voltage input terminal and the bias voltage inputted from the bias voltage input terminal; the second current mirror circuit is also used to output a comparison voltage according to the comparison current of the comparison current input terminal;

[0014] A comparison circuit, wherein the comparison circuit has a reference voltage input terminal and a comparison voltage input terminal; the reference voltage input terminal is connected to the first current mirror circuit; the comparison voltage input terminal is connected to the second current mirror circuit; the comparison circuit is used to output a result signal according to the reference voltage and the comparison voltage.

[0015] Optionally, the power supply voltage input terminal includes a high voltage input terminal and a low voltage input terminal; the bias voltage input terminal includes a first voltage input terminal and a second voltage input terminal; the first current mirror circuit includes a first NMOS tube, a second NMOS tube, a first PMOS tube and a second PMOS tube;

[0016] The source of the first NMOS tube is connected to the low voltage input terminal; the gate of the first NMOS tube, the drain of the first NMOS tube, and the source of the second NMOS tube are connected to the reference current input terminal; the gate of the second NMOS tube is connected to the first voltage input terminal; the drain of the second NMOS tube and the drain of the first PMOS tube are connected to the reference voltage input terminal; the gate of the first PMOS tube is connected to the second voltage input terminal; the drain of the first PMOS tube, the gate of the second PMOS tube, and the drain of the second PMOS tube are connected; and the drain of the second PMOS tube is connected to the high voltage input terminal.

[0017] Optionally, the second current mirror circuit includes a third NMOS transistor, a fourth NMOS transistor, a third PMOS transistor and a fourth PMOS transistor;

[0018] The source of the third NMOS tube is connected to the low voltage input terminal; the gate of the third NMOS tube, the drain of the third NMOS tube, and the source of the fourth NMOS tube are connected to the comparison current input terminal; the gate of the fourth NMOS tube is connected to the first voltage input terminal; the drain of the fourth NMOS tube and the drain of the third PMOS tube are connected to the comparison voltage input terminal; the gate of the third PMOS tube is connected to the second voltage input terminal; the source of the third PMOS tube is connected to the drain of the fourth PMOS tube; the gate of the fourth PMOS tube is connected to the gate of the second PMOS tube; and the drain of the fourth PMOS tube is connected to the high voltage input terminal.

[0019] Optionally, the first current mirror circuit further includes a first capacitor; the first capacitor is connected to the reference current input terminal and the low voltage input terminal respectively.

[0020] Optionally, the second current mirror circuit further includes a second capacitor; the second capacitor is connected to the comparison current input terminal and the low voltage input terminal respectively.

[0021] Optionally, the fast current comparison circuit further includes:

[0022] Bias current input terminal;

[0023] A bias circuit, the bias circuit is connected to the power supply voltage input terminal and the bias current input terminal respectively; the bias circuit is used to output a bias voltage according to the power supply voltage input to the power supply voltage input terminal and the bias current input to the bias current input terminal; the bias circuit is also used to be connected to the bias voltage input terminal and to provide the bias voltage to the bias voltage input terminal.

[0024] Optionally, the power supply voltage input terminal includes a high voltage input terminal and a low voltage input terminal; the bias voltage input terminal includes a first voltage input terminal and a second voltage input terminal; the bias circuit includes a first bias circuit and a second bias circuit;

[0025] The first bias circuit is connected to the bias current input terminal and the low voltage input terminal respectively; the first bias circuit is also used to be connected to the first voltage input terminal, and to provide a first voltage to the first voltage input terminal according to the power supply voltage and the bias current;

[0026] The second bias circuit is connected to the high voltage input terminal and the first bias circuit respectively; the second bias circuit is also used to connect to the second voltage input terminal and to provide a second voltage to the second voltage input terminal according to the supply voltage and the bias current.

[0027] Optionally, the first bias circuit includes a fifth NMOS transistor, a sixth NMOS transistor, a seventh NMOS transistor and an eighth NMOS transistor;

[0028] The source of the fifth NMOS tube and the source of the seventh NMOS tube are connected to the low voltage input terminal; the gate of the fifth NMOS tube, the drain of the fifth NMOS tube, the source of the sixth NMOS tube and the gate of the seventh NMOS tube are connected; the gate of the sixth NMOS tube, the drain of the sixth NMOS tube, the bias current input terminal, and the gate of the eighth NMOS tube are connected to the first voltage input terminal; the drain of the seventh NMOS tube is connected to the source of the eighth NMOS tube; and the drain of the eighth NMOS tube is connected to the second bias circuit.

[0029] Optionally, the second bias circuit includes a fifth PMOS tube and a sixth PMOS tube;

[0030] The drain of the fifth PMOS tube, the gate of the fifth PMOS tube, the gate of the sixth PMOS tube, and the drain of the eighth NMOS tube are connected to the second voltage input terminal; the source of the fifth PMOS tube is connected to the drain of the sixth PMOS tube; and the source of the sixth PMOS tube is connected to the high voltage input terminal.

[0031] Optionally, the comparison circuit is a comparator; the positive input terminal of the comparator is connected to the reference voltage input terminal; and the negative input terminal of the comparator is connected to the comparison voltage input terminal.

[0032] The technical solution of the utility model adopts a fast current comparison circuit, including a reference current input terminal, a comparison current input terminal, a power supply voltage input terminal, a bias voltage input terminal, a first current mirror circuit, a second current mirror circuit and a comparison circuit. Among them, when the reference current and the comparison current are input, the first current mirror circuit converts the input reference current into a reference voltage output, and the second current mirror circuit converts the input comparison current into a comparison voltage output. The comparison circuit compares the input reference voltage with the comparison voltage to obtain a result signal. In the utility model, the first current mirror circuit and the second current mirror circuit are used to realize the conversion from current to voltage, and the overall circuit size is small and the stability is good. When the comparison current input in a short period of time exceeds the error range compared with the reference current, the comparison voltage output by the first current mirror circuit and the second current mirror circuit also exceeds the error range compared with the reference voltage, resulting in a change in the signal and a high circuit sensitivity. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0034] Figure 1 This is a structural schematic diagram of an embodiment of a fast current comparison circuit of the utility model;

[0035] Figure 2 It is a structural schematic diagram of another embodiment of a fast current comparison circuit of the utility model;

[0036] Figure 3 It is a structural schematic diagram of an embodiment of the prior art;

[0037] Figure 4 It is a structural schematic diagram of another embodiment of the prior art.

[0038] Description of Figure Numbers:

[0039]

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

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

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

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

[0044] The existing current comparison circuit is relatively large in size, and when the comparison current and the reference current change in a short period of time, it is easy to cause errors in the comparison result and the sensitivity is poor.

[0045] In order to solve the above problems, the utility model proposes a fast current comparison circuit.

[0046] In one embodiment of the present invention, Figure 1 As shown, a fast current comparison circuit includes:

[0047] Reference current input terminal;

[0048] Comparison current input terminal;

[0049] Power supply voltage input terminal;

[0050] Bias voltage input terminal;

[0051] A first current mirror circuit 10, wherein the first current mirror circuit 10 is respectively connected to the reference current input terminal, the power supply voltage input terminal and the bias voltage input terminal; the first current mirror circuit 10 is used to adjust the working state according to the power supply voltage inputted from the power supply voltage input terminal and the bias voltage inputted from the bias voltage input terminal; the first current mirror circuit 10 is also used to output a reference voltage Vref according to the reference current Iref of the reference current input terminal;

[0052] The second current mirror circuit 20, the first current mirror circuit 10 is respectively connected to the comparison current input terminal, the power supply voltage input terminal, the bias voltage input terminal and the first current mirror circuit 10; the second current mirror circuit 20 is used to adjust the working state according to the power supply voltage inputted from the power supply voltage input terminal and the bias voltage inputted from the bias voltage input terminal; the second current mirror circuit 20 is also used to output a comparison voltage Vbus according to the comparison current Ibus of the comparison current input terminal;

[0053] The comparison circuit 30 has a reference voltage input terminal and a comparison voltage input terminal; the reference voltage input terminal is connected to the first current mirror circuit 10; the comparison voltage input terminal is connected to the second current mirror circuit 20; the comparison circuit 30 is used to output a result signal according to the reference voltage Vref and the comparison voltage Vbus.

[0054] It should be noted that, in this embodiment, when the error of the comparison current input for a short time is greater than the reference current (for example, greater than 1 μA), the comparison circuit is flipped. When the error of the comparison current input for a short time is less than the reference current (for example, greater than 1 μA), the comparison circuit remains unchanged.

[0055] In this embodiment, the power supply voltage provides a power supply voltage to the fast current comparison circuit. The bias voltage can adjust the working state of the fast current comparison circuit. In this embodiment, the power supply voltage and the bias voltage can affect the process of converting the reference current Iref and the comparison current Ibus into the reference voltage Vref and the comparison voltage Vbus.

[0056] In this embodiment, the first current mirror circuit 10 and the second current mirror circuit 20 can be based on a MOS transistor pair with a common source and a common gate. The first current mirror circuit 10 and the second current mirror circuit 20 can be composed of a plurality of MOS transistor pairs with a common source and a common gate. The MOS transistor pair with a common source and a common gate has a high input impedance, which can improve the matching degree between the signal source and the amplifier. That is, the input impedance of the first current mirror circuit 10 and the second current mirror circuit 20 in this embodiment is relatively high, and the load effect generated by the comparison current Ibus and the reference current Iref is relatively small, which is not easy to cause the result signal obtained by the comparison of the comparator Fast to be distorted. Moreover, the MOS transistor pair with a common source and a common gate can also achieve a faster signal response speed. That is, when the comparison current Ibus and the reference current Iref are not equal (when the error is out of range), the comparison voltage Vbus and the reference voltage Vref output by the first current mirror circuit 10 and the second current mirror circuit 20 with a common source and a common gate structure are no longer equal in a short time, which reduces the conversion delay from the input current to the output voltage, and has a high sensitivity.

[0057] In this embodiment, the first current mirror circuit 10 converts the input reference current Iref into a reference voltage Vref for output, and the second current mirror circuit 20 converts the input comparison current Ibus into a comparison voltage Vbus for output. The comparison circuit 30 compares the input reference voltage Vref with the comparison voltage Vbus to obtain a result signal. When the input comparison current Ibus is equal to the reference current Iref (if the error between Ibus and Iref does not exceed 1μA, they can be considered equal), the comparison voltage Vbus output by the first current mirror circuit 10 under the influence of the bias voltage is also equal to the reference voltage Vref output by the second current mirror circuit 20 under the influence of the bias voltage (Vbus is also within the error range compared to Vref), then the comparison circuit 30 can output a no result signal, such as the comparison circuit does not flip and maintains the original state. When the input comparison current Ibus is greater than the reference current Iref, the comparison voltage Vbus output by the first current mirror circuit 10 under the influence of the bias voltage is also greater than the reference voltage Vref output by the second current mirror circuit 20 under the influence of the bias voltage, then the comparison circuit 30 can output a change result signal, such as the comparison circuit flips. When the input comparison current Ibus is less than the reference current Iref, the comparison voltage Vbus output by the first current mirror circuit 10 under the influence of the bias voltage is also less than the reference voltage Vref output by the second current mirror circuit 20 under the influence of the bias voltage, and the comparison circuit 30 can also output a change result signal, such as the comparison circuit is flipped. In this way, in this embodiment, the first current mirror circuit 10 and the second current mirror circuit 20 can be used to realize the conversion from current to voltage, and the overall circuit size is small and the stability is good. Moreover, when the comparison current Ibus input in a short period of time exceeds the error range compared with the reference current Iref, the comparison voltage Vbus output by the first current mirror circuit 10 and the second current mirror circuit 20 also exceeds the error range compared with the reference voltage Vref, and the result signal changes, so the sensitivity of this embodiment is higher.

[0058] In the present invention, when the reference current Iref and the comparison current Ibus are input, the first current mirror circuit 10 converts the input reference current Iref into a reference voltage Vref output, and the second current mirror circuit 20 converts the input comparison current Ibus into a comparison voltage Vbus output. The comparison circuit 30 compares the input reference voltage Vref with the comparison voltage Vbus to obtain a result signal. In the present invention, the first current mirror circuit 10 and the second current mirror circuit 20 are used to realize the current-to-voltage conversion, and the overall circuit size is small and the stability is good. Moreover, when the comparison current Ibus input in a short period of time exceeds the error range compared with the reference current Iref, the comparison voltage Vbus output by the first current mirror circuit 10 and the second current mirror circuit 20 also exceeds the error range compared with the reference voltage Vref, and the result signal changes, so the sensitivity of the present invention is high.

[0059] Further, in an embodiment of the present invention, if Figure 2 As shown, the power supply voltage input terminal includes a high voltage input terminal and a low voltage input terminal; the bias voltage input terminal includes a first voltage input terminal and a second voltage input terminal; the first current mirror circuit 10 includes a first NMOS tube, a second NMOS tube, a first PMOS tube and a second PMOS tube;

[0060] The source of the first NMOS tube is connected to the low voltage input terminal; the gate of the first NMOS tube, the drain of the first NMOS tube, and the source of the second NMOS tube are connected to the reference current input terminal; the gate of the second NMOS tube is connected to the first voltage input terminal; the drain of the second NMOS tube and the drain of the first PMOS tube are connected to the reference voltage input terminal; the gate of the first PMOS tube is connected to the second voltage input terminal; the drain of the first PMOS tube, the gate of the second PMOS tube, and the drain of the second PMOS tube are connected; and the drain of the second PMOS tube is connected to the high voltage input terminal.

[0061] In this embodiment, the source of the first NMOS transistor is grounded. When the comparison current Ibus is input into the first current mirror circuit 10, the voltage at the Vref point is the reference voltage Vref output by the first current mirror circuit 10. In this embodiment, the MOS transistor can provide a higher current amplification factor, and can convert the input comparison current Ibus with a smaller input into a larger reference voltage Vref to adapt to the input voltage range of the comparison circuit 30.

[0062] In this embodiment, the second NMOS transistor can also play the role of isolating the front and rear stage circuits. The instability of the input reference current Iref will not cause damage to the rear stage comparison circuit 30 and will not affect the stability of the rear stage circuit.

[0063] In this embodiment, the first NMOS tube is in the saturation region under the action of the power supply voltage and the bias voltage, and the first NMOS tube can be considered to be in a diode connection mode. Then the voltage drop generated by the reference current Iref on the first NMOS tube is (VDSn1+Iref*RDSn1), where VDSn1 is the drain-source voltage of the first NMOS tube itself, Iref is the reference current Iref, and RDSn1 is the drain-source resistance of the first NMOS tube when it is in a diode connection mode. At this time, the voltage at the Vref point is the superposition of the voltage drop between the drain and source of the reference current Iref of the first NMOS tube and the voltage drop between the drain and source of the second NMOS tube. In this embodiment, the second NMOS tube can be operated in the variable resistance region by adjusting the power supply voltage and the bias voltage, then the drain-source voltage generated on the second NMOS tube is extremely small and can be almost ignored, then the voltage at the Vref point is the voltage drop on the first NMOS tube, and the sensitivity is high.

[0064] Further, in an embodiment of the present invention, if Figure 2 As shown, the second current mirror circuit 20 includes a third NMOS transistor, a fourth NMOS transistor, a third PMOS transistor and a fourth PMOS transistor;

[0065] The source of the third NMOS tube is connected to the low voltage input terminal; the gate of the third NMOS tube, the drain of the third NMOS tube, and the source of the fourth NMOS tube are connected to the comparison current input terminal; the gate of the fourth NMOS tube is connected to the first voltage input terminal; the drain of the fourth NMOS tube and the drain of the third PMOS tube are connected to the comparison voltage input terminal; the gate of the third PMOS tube is connected to the second voltage input terminal; the drain of the third PMOS tube is connected to the source of the fourth PMOS tube; the gate of the fourth PMOS tube is connected to the gate of the second PMOS tube; and the drain of the fourth PMOS tube is connected to the high voltage input terminal.

[0066] In this embodiment, the source of the first NMOS tube and the source of the third NMOS tube are both grounded, and the drain of the second PMOS tube and the drain of the fourth PMOS tube are both connected to the high voltage input terminal. The voltage at the Vbus point is the comparison voltage Vbus output by the second current mirror circuit 20. In this embodiment, the third NMOS tube is in the saturation region under the action of the power supply voltage and the bias voltage, and the third NMOS tube can be considered to be in a diode connection mode. Then the voltage drop generated by the comparison current Ibus on the third NMOS tube is (VDSn3+Ibus*RDSn3), where VDSn3 is the drain-source voltage of the third NMOS tube itself, Ibus is the comparison current Ibus, and RDSn3 is the drain-source resistance of the third NMOS tube when it is in a diode connection mode. At this time, the voltage at the Vbus point is the superposition of the voltage drop of the comparison current Ibus between the drain and source of the third NMOS tube and the voltage drop between the drain and source of the fourth NMOS tube. In this embodiment, the fourth NMOS tube can be operated in the variable resistance region by adjusting the power supply voltage and the bias voltage, so that the drain-source voltage generated on the fourth NMOS tube is extremely small and almost negligible, and the voltage at the Vref point is the voltage drop on the second NMOS tube, and the sensitivity is relatively high.

[0067] In this embodiment, when the current values ​​of the reference current Iref and the comparison current Ibus are equal, the voltage drop between the drain and the source generated by the reference current Iref on the first NMOS tube is equal to the voltage drop between the drain and the source generated by the comparison current Ibus on the third NMOS tube. In this embodiment, the first voltage can be adjusted to make the second NMOS tube and the fourth NMOS tube work in the linear region, and the drain-source voltage of the second NMOS tube and the fourth NMOS tube at this time is very small and almost negligible, for example, both are 100mV, and the influence of the second NMOS tube and the fourth NMOS on the reference voltage Vref output by the first current mirror circuit 10 and the comparison voltage Vbus output by the second current mirror circuit 20 can be reduced to a minimum, which helps to improve the accuracy of the fast current comparison circuit.

[0068] In this embodiment, the first NMOS tube, the second NMOS tube, the first PMOS tube, the second PMOS tube, the third NMOS tube, the fourth NMOS tube, the third PMOS tube and the fourth PMOS tube adopt a common source and common gate mirror structure. When the input reference current Iref is equal to the comparison current Ibus, if the error does not exceed 1μA, the voltage drop generated by the first current mirror circuit 10 on the first NNMOS tube is also equal to the voltage drop generated by the second current mirror circuit 20 on the third NNMOS tube, and the subsequent comparison circuit does not flip. When the error between the input reference current Iref and the comparison current Ibus exceeds the range, such as exceeding 1μA, due to the use of the common source and common gate mirror structure, the balance between the current flowing through the first current mirror circuit 10 and the current flowing through the second current mirror circuit 20 will be quickly broken, and the comparison between the reference voltage Vref and the comparison voltage Vbus will also exceed the error range, and the subsequent comparison circuit will flip. In this way, the common source and common gate NMOS tube mirror structure in this embodiment is more accurate in identifying and comparing the current, thereby improving the sensitivity of the current comparison circuit.

[0069] Further, in an embodiment of the present invention, if Figure 2 As shown, the first current mirror circuit 10 further includes a first capacitor; the first capacitor is connected to the reference current input terminal and the low voltage input terminal respectively.

[0070] In this embodiment, the first capacitor plays a role in stabilizing and eliminating jitter on the reference voltage Vref output by the first current mirror circuit 10. A relatively thin capacitor can be used to reduce the volume of the fast current comparison circuit.

[0071] Further, in an embodiment of the present invention, if Figure 2 As shown, the second current mirror circuit 20 further includes a second capacitor; the second capacitor is connected to the comparison current input terminal and the low voltage input terminal respectively.

[0072] In this embodiment, the second capacitor plays a role in stabilizing and eliminating jitter on the comparison voltage Vbus output by the second current mirror circuit 20. A relatively thin capacitor can be used to reduce the volume of the fast current comparison circuit.

[0073] Further, in an embodiment of the present invention, if Figure 2 As shown, the fast current comparison circuit also includes:

[0074] Bias current input terminal;

[0075] A bias circuit 40, wherein the bias circuit 40 is connected to the power supply voltage input terminal and the bias current input terminal respectively; the bias circuit 40 is used to output a bias voltage according to the power supply voltage input terminal and the bias current Ibias input to the bias current input terminal; the bias circuit 40 is also used to be connected to the bias voltage input terminal and to provide the bias voltage to the bias voltage input terminal.

[0076] In this embodiment, the bias circuit 40 can provide a bias voltage to the first current mirror circuit 10 and the second current mirror circuit 20. The bias circuit 40 can be connected to the power supply voltage, and only a very small bias current Ibias needs to be input to provide a working bias voltage for the first current mirror circuit 10 and the second current mirror circuit 20. For example, the input bias current Ibias can be 10nA. In this way, the power consumption of this embodiment is extremely low.

[0077] Further, in an embodiment of the present invention, if Figure 2 As shown, the power supply voltage input terminal includes a high voltage input terminal and a low voltage input terminal; the bias voltage input terminal includes a first voltage input terminal and a second voltage input terminal; the bias circuit 40 includes a first bias circuit 41 and a second bias circuit 42;

[0078] The first bias circuit 41 is connected to the bias current input terminal and the low voltage input terminal respectively; the first bias circuit 41 is also used to be connected to the first voltage input terminal, and to provide a first voltage VbN to the first voltage input terminal according to the power supply voltage and the bias current Ibias;

[0079] The second bias circuit 42 is connected to the high voltage input terminal and the first bias circuit 41 respectively; the second bias circuit 42 is also used to connect to the second voltage input terminal and to provide a second voltage VbP to the second voltage input terminal according to the supply voltage and the bias current Ibias.

[0080] In this embodiment, the first bias circuit 41 may include a plurality of NMOS transistors, which are used to provide a first voltage to the NMOS transistors of the first current mirror circuit 10 and the second current mirror circuit 20 so that the NMOS transistors therein can work. The second bias circuit 42 may include a plurality of PMOS transistors, which are used to provide a second voltage to the PMOS transistors of the first current mirror circuit 10 and the second current mirror circuit 20 so that the PMOS transistors therein can work.

[0081] Further, in an embodiment of the present invention, if Figure 2 As shown, the first bias circuit 41 includes a fifth NMOS transistor, a sixth NMOS transistor, a seventh NMOS transistor and an eighth NMOS transistor;

[0082] The source of the fifth NMOS tube and the source of the seventh NMOS tube are connected to the low voltage input terminal; the gate of the fifth NMOS tube, the drain of the fifth NMOS tube, the source of the sixth NMOS tube and the gate of the seventh NMOS tube are connected; the gate of the sixth NMOS tube, the drain of the sixth NMOS tube, the bias current input terminal, and the gate of the eighth NMOS tube are connected to the first voltage input terminal; the drain of the seventh NMOS tube is connected to the source of the eighth NMOS tube; the drain of the eighth NMOS tube is connected to the second bias circuit 42.

[0083] In the present invention, the fifth NMOS tube, the sixth NMOS tube, the seventh NMOS tube and the eighth NMOS tube are used as the first bias circuit 41, which can provide relatively high current stability. By reasonably selecting the configuration and parameters of the fifth NMOS tube, the sixth NMOS tube, the seventh NMOS tube and the eighth NMOS tube in the current mirror, the influence of the circuit on temperature changes, process changes and power supply voltage changes can be reduced, thereby improving the stability of the entire circuit. Moreover, the current mirror circuit of the NMOS tube consumes less power, which helps to save energy and reduce circuit heating, and the overall circuit size is also small.

[0084] Further, in an embodiment of the present invention, if Figure 2 As shown, the second bias circuit 42 includes a fifth PMOS tube and a sixth PMOS tube;

[0085] The drain of the fifth PMOS tube, the gate of the fifth PMOS tube, the gate of the sixth PMOS tube, and the drain of the eighth NMOS tube are connected to the second voltage input terminal; the source of the fifth PMOS tube is connected to the drain of the sixth PMOS tube; and the source of the sixth PMOS tube is connected to the high voltage input terminal.

[0086] In this embodiment, the fifth PMOS tube and the sixth PMOS tube are used as the second bias circuit 42. Since the drain current direction of the PMOS tube is consistent with the direction of the positive current, the high voltage inputted from the high voltage input terminal can be connected to provide the second voltage VbP to the PMOS tubes in the first current mirror circuit 10 and the second current mirror circuit 20. Compared with the NMOS tube, the PMOS tube is more suitable for working at a higher voltage.

[0087] Further, in an embodiment of the present invention, if Figure 2 As shown, the comparison circuit 30 is a comparator Fast; the positive input terminal of the comparator Fast is connected to the reference voltage input terminal; the negative input terminal of the comparator Fast is connected to the comparison voltage input terminal.

[0088] It should be noted that the Fast comparator can quickly compare the input signal, not only has a high-precision comparison capability, but also can respond quickly and give a corresponding output, and is suitable for fast current comparison circuits.

[0089] In one embodiment of the present invention, combined with Figure 1 and Figure 2 , the working principle of the fast current comparison circuit of the utility model is described in detail as follows:

[0090] The reference current Iref flows into the first current mirror circuit 10, and the voltage drop generated on the diode-connected N1 is (VDSn1+Iref*RDSn1), where VDSn1 is the drain-source voltage of N1 when it is in the diode connection mode, and RDSn1 is the drain-source resistance of N1 when it is in the diode connection mode.

[0091] The comparison current Ibus flows into the second current mirror circuit 20, and the voltage drop generated on the diode-connected N3 is (VDSn3+Ibus*RDSn3), where VDSn3 is the drain-source voltage of N3 when it is in the diode connection mode, and RDSn3 is the drain-source resistance of N3 when it is in the diode connection mode.

[0092] In order to keep Vref and Vbus always within VDD / 2 (VSS is grounded at this time) and avoid exceeding the input range of the subsequent comparator Fast, the first bias circuit 41 and the second bias circuit 42 provide a first voltage VbN and a second voltage VbP to adjust the working state of N2 and N4, P1 and P3. In this embodiment, P1 and P3 are always kept in the saturation region, and N2 and N4 are always in the variable resistance region. When N2 and N4 are in the variable resistance region, the drain-source voltage of N2 and N4 is extremely small, and has almost no effect on Vref and Vbus, which can improve the accuracy of the fast current comparison circuit. At this time, the voltages of Vref and Vbus can be approximately equal to (VDSn1+Iref*RDSn1) and (VDSn3+Ibus*RDSn3), respectively.

[0093] Since N1 and N3 of the fast current comparison circuit use NMOS tubes of the same specification, VDSn1=VDSn3, RDSn1=RDSn3, where C1 and C2 can be used for voltage stabilization and debouncing. When the average value of the current flowing into the circuit by Ibus for a short time is within the error range compared with Iref (for example, when the error is within the range of 1μA), the Vbus and Vref at both ends of the input comparator Fast are also within the error range, and the comparator maintains its original state. When the average value of the current flowing into the circuit by Ibus for a short time exceeds the error range compared with Iref (for example, when the error exceeds 1μA, it can be that Ibus is greater than Iref or Ibus is less than Iref), Vbus also exceeds the error range compared with Vref, and the comparator Fast flips.

[0094] In another embodiment, N2 and N4 may also be in the saturation region, and P1 and P3 need to be in the variable resistance region. The adjustment of the working modes of P1 and P3 and the working modes of N2 and N4 can be adjusted by outputting the first voltage VbN and the second voltage VbP by the bias circuit 40. In the present utility model, the working modes of P1, P3, N2 and N4 can be determined according to the working voltage range of the comparator Fast, and the use is more flexible.

[0095] In the utility model, the situation that the error of the comparison current Ibus exceeds the range compared with the reference current Iref can be detected, and the comparison circuit can be flipped when it exceeds the range. Compared with the prior art, since the utility model adopts a completely symmetrical compositive gate structure MOS tube pair, the utility model can detect extremely small current changes, so the sensitivity is higher. In addition, the compositive gate MOS tube pair is used to implement the current mirror circuit for fast current comparison, and the overall circuit size is small and the stability is high. Moreover, when the comparison current Ibus and the reference current Iref change unequally in a short period of time, the comparison voltage output by the first current mirror circuit and the second current mirror circuit is also unequal to the reference voltage, resulting in a signal change, and the sensitivity of the utility model is higher.

[0096] In the present invention, when Ibus is equal to Iref (such as when the error between Iref and Ibus is within 1μA), Vbus is equal to Vref (the error between Vbus and Vref is also within the range), the error range of current measurement is very small and the accuracy is relatively high.

[0097] In the present invention, a very small bias current Ibias can be provided. For example, the input bias current Ibias can be 10nA to adjust the working state of the MOS tubes in the first current mirror circuit 10 and the second current mirror circuit 20, and the power consumption is very low.

[0098] In the present invention, the output values ​​of the reference voltage Vref and the comparison voltage Vbus are not affected by the power supply voltage VDD, but are only related to the magnitudes of the input reference current Iref and the comparison current Ibus.

[0099] The above description is only an optional 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 fast current comparison circuit, It is characterized in that include: Reference current input terminal; Comparison current input terminal; Supply voltage input terminal; Bias voltage input terminal; A first current mirror circuit, wherein the first current mirror circuit is respectively connected to the reference current input terminal, the power supply voltage input terminal and the bias voltage input terminal; The first current mirror circuit is used to adjust the working state according to the power supply voltage inputted by the power supply voltage input terminal and the bias voltage inputted by the bias voltage input terminal; The first current mirror circuit is further used to output a reference voltage according to the reference current of the reference current input terminal; a second current mirror circuit, wherein the first current mirror circuit is respectively connected to the comparison current input terminal, the power supply voltage input terminal, the bias voltage input terminal and the first current mirror circuit; The second current mirror circuit is used to adjust the working state according to the power supply voltage inputted by the power supply voltage input terminal and the bias voltage inputted by the bias voltage input terminal; the second current mirror circuit is also used to output a comparison voltage according to the comparison current of the comparison current input terminal; A comparison circuit, wherein the comparison circuit has a reference voltage input terminal and a comparison voltage input terminal; the reference voltage input terminal is connected to the first current mirror circuit; the comparison voltage input terminal is connected to the second current mirror circuit; the comparison circuit is used to output a result signal according to the reference voltage and the comparison voltage.

2. The fast current comparison circuit as claimed in claim 1, It is characterized in that The power supply voltage input terminal includes a high voltage input terminal and a low voltage input terminal; the bias voltage input terminal includes a first voltage input terminal and a second voltage input terminal; the first current mirror circuit includes a first NMOS tube, a second NMOS tube, a first PMOS tube and a second PMOS tube; The source of the first NMOS tube is connected to the low voltage input terminal; the gate of the first NMOS tube, the drain of the first NMOS tube, and the source of the second NMOS tube are connected to the reference current input terminal; the gate of the second NMOS tube is connected to the first voltage input terminal; the drain of the second NMOS tube and the drain of the first PMOS tube are connected to the reference voltage input terminal; the gate of the first PMOS tube is connected to the second voltage input terminal; the drain of the first PMOS tube, the gate of the second PMOS tube, and the drain of the second PMOS tube are connected; and the drain of the second PMOS tube is connected to the high voltage input terminal.

3. The fast current comparison circuit as claimed in claim 2, It is characterized in that The second current mirror circuit includes a third NMOS transistor, a fourth NMOS transistor, a third PMOS transistor and a fourth PMOS transistor; The source of the third NMOS tube is connected to the low voltage input terminal; the gate of the third NMOS tube, the drain of the third NMOS tube, and the source of the fourth NMOS tube are connected to the comparison current input terminal; the gate of the fourth NMOS tube is connected to the first voltage input terminal; the drain of the fourth NMOS tube and the drain of the third PMOS tube are connected to the comparison voltage input terminal; the gate of the third PMOS tube is connected to the second voltage input terminal; the source of the third PMOS tube is connected to the drain of the fourth PMOS tube; the gate of the fourth PMOS tube is connected to the gate of the second PMOS tube; and the drain of the fourth PMOS tube is connected to the high voltage input terminal.

4. The fast current comparison circuit as claimed in claim 2, It is characterized in that The first current mirror circuit also includes a first capacitor; the first capacitor is connected to the reference current input terminal and the low voltage input terminal respectively.

5. The fast current comparison circuit as claimed in claim 3, It is characterized in that The second current mirror circuit also includes a second capacitor; the second capacitor is connected to the comparison current input terminal and the low voltage input terminal respectively.

6. The fast current comparison circuit as claimed in claim 1, It is characterized in that The fast current comparison circuit also includes: Bias current input terminal; A bias circuit, the bias circuit is connected to the power supply voltage input terminal and the bias current input terminal respectively; the bias circuit is used to output a bias voltage according to the power supply voltage input to the power supply voltage input terminal and the bias current input to the bias current input terminal; the bias circuit is also used to be connected to the bias voltage input terminal and to provide the bias voltage to the bias voltage input terminal.

7. The fast current comparison circuit as claimed in claim 6, It is characterized in that The power supply voltage input terminal includes a high voltage input terminal and a low voltage input terminal; the bias voltage input terminal includes a first voltage input terminal and a second voltage input terminal; the bias circuit includes a first bias circuit and a second bias circuit; The first bias circuit is connected to the bias current input terminal and the low voltage input terminal respectively; the first bias circuit is also used to be connected to the first voltage input terminal, and to provide a first voltage to the first voltage input terminal according to the power supply voltage and the bias current; The second bias circuit is connected to the high voltage input terminal and the first bias circuit respectively; the second bias circuit is also used to connect to the second voltage input terminal and to provide a second voltage to the second voltage input terminal according to the supply voltage and the bias current.

8. The fast current comparison circuit as claimed in claim 7, It is characterized in that The first bias circuit includes a fifth NMOS transistor, a sixth NMOS transistor, a seventh NMOS transistor and an eighth NMOS transistor; The source of the fifth NMOS tube and the source of the seventh NMOS tube are connected to the low voltage input terminal; the gate of the fifth NMOS tube, the drain of the fifth NMOS tube, the source of the sixth NMOS tube and the gate of the seventh NMOS tube are connected; the gate of the sixth NMOS tube, the drain of the sixth NMOS tube, the bias current input terminal, and the gate of the eighth NMOS tube are connected to the first voltage input terminal; the drain of the seventh NMOS tube is connected to the source of the eighth NMOS tube; and the drain of the eighth NMOS tube is connected to the second bias circuit.

9. The fast current comparison circuit as claimed in claim 8, It is characterized in that The second bias circuit includes a fifth PMOS tube and a sixth PMOS tube; The drain of the fifth PMOS tube, the gate of the fifth PMOS tube, the gate of the sixth PMOS tube, and the drain of the eighth NMOS tube are connected to the second voltage input terminal; the source of the fifth PMOS tube is connected to the drain of the sixth PMOS tube; and the source of the sixth PMOS tube is connected to the high voltage input terminal.

10. The fast current comparison circuit as claimed in claim 1, It is characterized in that The comparison circuit is a comparator; the positive input terminal of the comparator is connected to the reference voltage input terminal; and the negative input terminal of the comparator is connected to the comparison voltage input terminal.