Voltage Comparator Circuit
By introducing an offset voltage compensation circuit into the voltage comparator circuit, the offset voltage is eliminated by using the N-channel compensation constant current source, the problem of large offset voltage in the high-speed low-offset voltage comparator circuit is solved, which improves the comparison speed and reduces the circuit area.
Patent Information
- Application Number
- CN202111213605.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-19
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2041-10-19
AI Technical Summary
The existing high-speed low-offset voltage comparator circuits have problems with large offset voltage, complex circuit and large area, which limit the comparison speed and analog-to-digital conversion efficiency.
A voltage comparator circuit including a preamplifier circuit, a latch and a offset voltage compensation circuit is designed. The latch output is detected by the N-channel VOP compensation constant current source or the VON compensation constant current source in parallel at the differential amplifier output end. Digitally compare the state values to set the compensation current and eliminate the offset voltage.
Effectively eliminates the comparator offset voltage, improves the comparison speed, reduces the circuit area, and accurately compares the 50uv difference signal within the 10ns level time, reducing the impact of flip noise generated by the latch.
Smart Images

Figure CN113949368B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to semiconductor circuit technology, and in particular to a voltage comparator circuit. Background Art
[0002] A comparator is a module that compares an input signal with a reference signal and then generates a logic output level. It is widely used in the conversion of analog signals to digital signals and is a key module in the design of mixed-signal circuits. In the conversion of analog signals to digital signals, the speed of the comparator is a limiting factor in the overall conversion speed. Another extremely important indicator of the comparator is the offset voltage, which describes the minimum input signal at which the comparator can make a correct judgment. For pipeline ADC (analog-to-digital conversion), the offset of the comparator must be at least smaller than the digital correction range. For pipeline ADCs with a large number of single-stage digits, the offset voltage needs to be very small. In view of the above reasons, it is necessary to design a high-speed, low-offset voltage comparator circuit.
[0003] Chinese patent 201610344734.0 discloses a high-speed low-offset voltage comparator circuit, which includes a three-stage pre-low-gain high-bandwidth preamplifier circuit and a first-stage high-speed latch circuit (LATCH). This voltage comparator circuit, because the high-speed latch circuit (LATCH) adopts a cross-coupled positive feedback structure, the regeneration time is very short, and the comparison result can be obtained quickly, but the offset voltage of the latch circuit is large, and it will produce kickback noise, so it is necessary to use a preamplifier for isolation. The function of the pre-preamplifier circuit is to amplify the weak signal, which can reduce the transmission delay of the latch on the one hand, and reduce the equivalent input offset voltage of the latch on the other hand. A sampling circuit can be connected in front of the pre-preamplifier circuit. This high-speed low-offset voltage comparator circuit requires multiple pre-low-gain high-bandwidth preamplifier circuits, or requires DC isolation capacitors, and the circuit is complex and the circuit area is large. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a voltage comparator circuit which can effectively eliminate the comparator offset voltage, thereby facilitating the improvement of comparison speed and the reduction of circuit area.
[0005] In order to solve the above technical problems, the present invention provides a voltage comparator circuit, which includes a pre-amplifier circuit, a latch and an offset voltage compensation circuit;
[0006] The two differential amplification output terminals of the pre-amplifier circuit are respectively connected to the two input terminals of the latch;
[0007] The pre-amplifier circuit is used to differentially amplify voltage signals externally connected to its two differential input terminals, and output two differential amplified signals to the latch through two differential amplification output terminals;
[0008] The latch, whose output terminal serves as the output terminal of the voltage comparator circuit, outputs a digital comparison state value;
[0009] The offset voltage compensation circuit comprises N-way VOP compensation constant current sources and / or N-way VON compensation constant current sources, where N is a positive integer;
[0010] N-channel VOP compensation constant current sources are connected in parallel between a differential amplifier output terminal VOP and ground;
[0011] N-way VON compensation constant current source, connected in parallel between another differential amplifier output terminal VON and ground;
[0012] When the N-way VOP compensation constant current source and the N-way VON compensation constant current source are both disconnected, the difference of the voltage signals externally connected to the two differential input terminals at the moment when the digital comparison state value outputted by the output terminal of the latch changes from 0 to 1 or from 1 to 0 is detected and used as the compensation current setting parameter;
[0013] The number of connected channels of the N-channel VOP compensation constant current sources or the N-channel VON compensation constant current sources is positively correlated with the compensation current setting parameter.
[0014] Preferably, the pre-amplifier circuit includes a zeroth NMOS transistor N0, a first NMOS transistor N1, a second NMOS transistor N2, a third NMOS transistor N3, a fourth NMOS transistor N4, a zeroth PMOS transistor P0, a first PMOS transistor P1, a second PMOS transistor P2, a third PMOS transistor P3, a zeroth resistor R0 and a first resistor R1;
[0015] The gate of the second NMOS tube N2 is connected to the bias voltage VBN, and the drain is connected to the source of the zeroth NMOS tube N0 and the first NMOS tube N1;
[0016] The drain of the zeroth NMOS tube N0 is connected to the drain of the zeroth PMOS tube P0 and the source of the second PMOS tube P2;
[0017] The drain of the first NMOS tube N1 is connected to the drain of the first PMOS tube P1 and the source of the third PMOS tube P3;
[0018] The sources of the zeroth PMOS tube P0 and the first PMOS tube P1 are connected to the working power supply VDD;
[0019] The drains of the zeroth PMOS tube P0 and the first PMOS tube P1 are short-circuited;
[0020] The gates of the second PMOS tube P2 and the third PMOS tube P3 are short-circuited;
[0021] The drain of the second PMOS tube P2 is connected to the drain of the third NMOS tube N3;
[0022] The drain of the third PMOS tube P3 is connected to the drain of the fourth NMOS tube N4;
[0023] The gates of the third NMOS transistor N3 and the fourth NMOS transistor N4 are short-circuited;
[0024] The sources of the second NMOS transistor N2, the third NMOS transistor N3 and the fourth NMOS transistor N4 are grounded;
[0025] A first resistor R1 is connected between the drain and the gate of the fourth NMOS transistor N4, and the drain of the fourth NMOS transistor N4 serves as a differential amplifier output terminal VOP;
[0026] A zeroth resistor R0 is connected between the drain and the gate of the third NMOS transistor N3 , and the drain of the third NMOS transistor N3 serves as a differential amplifier output terminal VON.
[0027] Preferably, R0=R1.
[0028] Preferably, the current value of each VOP compensation constant current source or each VON compensation constant current source is equal.
[0029] Preferably, N is 8, 16 or 32.
[0030] Preferably, the latch includes a fifth NMOS tube N5, a sixth NMOS tube N6, a seventh NMOS tube N7, an eighth NMOS tube N8, a ninth NMOS tube N9, a tenth NMOS tube N10, a fourth PMOS tube P4, a fifth PMOS tube P5, a sixth PMOS tube P6 and a seventh PMOS tube P7;
[0031] The seventh NMOS transistor N7 has a gate connected to a differential amplifier output terminal VOP of the pre-amplifier circuit, and a drain connected to the drain of the fifth NMOS transistor N5, the gate of the sixth NMOS transistor N6 and the source of the ninth NMOS transistor N9;
[0032] The eighth NMOS transistor N8 has a gate connected to another differential amplification output terminal VON of the pre-amplifier circuit, and a drain connected to the drain of the sixth NMOS transistor N6, the gate of the fifth NMOS transistor N5 and the source of the tenth NMOS transistor N10;
[0033] The sources of the fifth NMOS tube N5, the sixth NMOS tube N6, the seventh NMOS tube N7 and the eighth NMOS tube N8 are grounded;
[0034] The drain of the fourth PMOS tube P4, the drain of the sixth PMOS tube P6, the gate of the fifth PMOS tube P5 and the drain of the ninth NMOS tube N9 are short-circuited to serve as an output terminal QB of the latch;
[0035] The drain of the fifth PMOS tube P5, the drain of the seventh PMOS tube P7, the gate of the fourth PMOS tube P4 and the drain of the tenth NMOS tube N10 are short-circuited to serve as another output terminal Q of the latch;
[0036] The sources of the fourth PMOS tube P4, the fifth PMOS tube P5, the sixth PMOS tube P6 and the seventh PMOS tube P7 are connected to the working power supply VDD;
[0037] The gates of the ninth NMOS transistor N9 , the tenth NMOS transistor N10 , the sixth PMOS transistor P6 , and the seventh PMOS transistor P7 are connected to the latch enable signal STROB.
[0038] The voltage comparator circuit of the present invention can effectively eliminate the comparator offset voltage by connecting a corresponding number of built-in compensation constant current sources, which is beneficial to improving the comparison speed and reducing the circuit area. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solution of the present invention, the following briefly introduces the drawings required for use in the present invention. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 is an embodiment of a voltage comparator circuit of the present invention;
[0041] Figure 2 FIG. 4 is a structural diagram of an offset voltage compensation circuit of a voltage comparator circuit according to an embodiment of the present invention. DETAILED DESCRIPTION
[0042] The following will be combined with the accompanying drawings to clearly and completely describe the technical solutions in the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0043] Embodiment 1
[0044] like Figure 1 As shown, the voltage comparator circuit includes a pre-amplifier circuit, a latch and an offset voltage compensation circuit;
[0045] The two differential amplification output terminals of the pre-amplifier circuit are respectively connected to the two input terminals of the latch;
[0046] The pre-amplifier circuit is used to differentially amplify voltage signals externally connected to its two differential input terminals VIN and VIP, and output two differential amplified signals to the latch through two differential amplification output terminals VOP and VON;
[0047] The latch, whose output terminal serves as the output terminal of the voltage comparator circuit, outputs a digital comparison state value;
[0048] The offset voltage compensation circuit comprises N-way VOP compensation constant current sources and / or N-way VON compensation constant current sources, where N is a positive integer;
[0049] N-channel VOP compensation constant current sources are connected in parallel between a differential amplifier output terminal VOP and ground GND;
[0050] N-channel VON compensation constant current source, connected in parallel between another differential amplifier output terminal VON and ground GND;
[0051] When the N-way VOP compensation constant current source and the N-way VON compensation constant current source are both disconnected, the difference of the voltage signals externally connected to the two differential input terminals at the moment when the digital comparison state value outputted by the output terminal of the latch changes from 0 to 1 or from 1 to 0 is detected and used as the compensation current setting parameter;
[0052] The number of connected channels of the N-channel VOP compensation constant current sources or the N-channel VON compensation constant current sources is positively correlated with the compensation current setting parameter.
[0053] In the voltage comparator circuit of the first embodiment, the offset voltage compensation circuit adopts an N+1-bit current-mode DAC (digital-to-analog converter), such as Figure 2 As shown, the comparator offset voltage can be effectively eliminated by connecting a corresponding number of built-in compensation constant current sources, which is beneficial to improving the comparison speed and reducing the circuit area.
[0054] Embodiment 2
[0055] Based on the voltage comparator circuit of the first embodiment, the pre-amplifier circuit includes a zeroth NMOS tube N0, a first NMOS tube N1, a second NMOS tube N2, a third NMOS tube N3, a fourth NMOS tube N4, a zeroth PMOS tube P0, a first PMOS tube P1, a second PMOS tube P2, a third PMOS tube P3, a zeroth resistor R0 and a first resistor R1;
[0056] The gate of the second NMOS tube N2 is connected to the bias voltage VBN, and the drain is connected to the source of the zeroth NMOS tube N0 and the first NMOS tube N1;
[0057] The drain of the zeroth NMOS tube N0 is connected to the drain of the zeroth PMOS tube P0 and the source of the second PMOS tube P2;
[0058] The drain of the first NMOS tube N1 is connected to the drain of the first PMOS tube P1 and the source of the third PMOS tube P3;
[0059] The sources of the zeroth PMOS tube P0 and the first PMOS tube P1 are connected to the working power supply VDD;
[0060] The drains of the zeroth PMOS tube P0 and the first PMOS tube P1 are short-circuited;
[0061] The gates of the second PMOS tube P2 and the third PMOS tube P3 are short-circuited;
[0062] The drain of the second PMOS tube P2 is connected to the drain of the third NMOS tube N3;
[0063] The drain of the third PMOS tube P3 is connected to the drain of the fourth NMOS tube N4;
[0064] The gates of the third NMOS transistor N3 and the fourth NMOS transistor N4 are short-circuited;
[0065] The sources of the second NMOS transistor N2, the third NMOS transistor N3 and the fourth NMOS transistor N4 are grounded;
[0066] A first resistor R1 is connected between the drain and the gate of the fourth NMOS transistor N4, and the drain of the fourth NMOS transistor N4 serves as another differential amplifier output terminal VOP;
[0067] A zeroth resistor R0 is connected between the drain and the gate of the third NMOS transistor N3 , and the drain of the third NMOS transistor N3 serves as a differential amplifier output terminal VON.
[0068] Preferably, R0=R1.
[0069] Preferably, the current value of each VOP compensation constant current source or each VON compensation constant current source is equal.
[0070] Preferably, N is 8, 16 or 32.
[0071] In the voltage comparator circuit of the second embodiment, the voltage difference between the two differential amplifier output terminals is gm*(R0+R1), and the amplification factor of the pre-amplifier circuit is gm*(R0+R1), where gm is the transconductance of the zeroth NMOS transistor N0 and the first NMOS transistor N1. The amplification factor of the pre-amplifier circuit is a fixed value, so that the common mode voltage of the two differential amplified signals output by the two differential amplifier output terminals VOP and VON is fixed, which is beneficial to the latching of the digital comparison state value by the subsequent latch.
[0072] In the voltage comparator circuit of the second embodiment, the offset voltage is compensated with a step size of Istep*(R0+R1), where Istep is the current value of each VOP compensation constant current source or each VON compensation constant current source; the offset voltage compensation range between the two differential amplifier output terminals of the pre-amplifier circuit is 2^(N+1)*(R0+R1) to -2^(N+1)*(R0+R1), which is converted to an offset voltage compensation range of 2^(N+1)*Istep / gm to -2^(N+1)*Istep / gm at the two differential input terminals VIN and VIP of the pre-amplifier circuit.
[0073] The voltage comparator circuit of the second embodiment can quickly compare weak signals and accurately compare 50uv difference signals within a time of 10ns. The flip noise generated by the latch at the comparison time will not affect the previous signal processing circuit.
[0074] Embodiment 3
[0075] Based on the voltage comparator circuit of the first or second embodiment, the latch includes a fifth NMOS tube N5, a sixth NMOS tube N6, a seventh NMOS tube N7, an eighth NMOS tube N8, a ninth NMOS tube N9, a tenth NMOS tube N10, a fourth PMOS tube P4, a fifth PMOS tube P5, a sixth PMOS tube P6 and a seventh PMOS tube P7;
[0076] The seventh NMOS transistor N7 has a gate connected to a differential amplifier output terminal VOP of the pre-amplifier circuit, and a drain connected to the drain of the fifth NMOS transistor N5, the gate of the sixth NMOS transistor N6 and the source of the ninth NMOS transistor N9;
[0077] The eighth NMOS transistor N8 has a gate connected to another differential amplification output terminal VON of the pre-amplifier circuit, and a drain connected to the drain of the sixth NMOS transistor N6, the gate of the fifth NMOS transistor N5 and the source of the tenth NMOS transistor N10;
[0078] The sources of the fifth NMOS tube N5, the sixth NMOS tube N6, the seventh NMOS tube N7 and the eighth NMOS tube N8 are grounded;
[0079] The drain of the fourth PMOS tube P4, the drain of the sixth PMOS tube P6, the gate of the fifth PMOS tube P5 and the drain of the ninth NMOS tube N9 are short-circuited to serve as an output terminal QB of the latch;
[0080] The drain of the fifth PMOS tube P5, the drain of the seventh PMOS tube P7, the gate of the fourth PMOS tube P4 and the drain of the tenth NMOS tube N10 are short-circuited to serve as another output terminal Q of the latch;
[0081] The sources of the fourth PMOS tube P4, the fifth PMOS tube P5, the sixth PMOS tube P6 and the seventh PMOS tube P7 are connected to the working power supply VDD;
[0082] The gates of the ninth NMOS transistor N9 , the tenth NMOS transistor N10 , the sixth PMOS transistor P6 , and the seventh PMOS transistor P7 are connected to the latch enable signal STROB.
[0083] The voltage comparator circuit of the third embodiment, whose latch works when the latch enable signal STROB is in state 1 (STROB=1), if the voltage of one differential amplifier output terminal VOP of the pre-amplifier circuit minus the voltage of the other differential amplifier output terminal VON is greater than 0 (VOP-VON>0), then the other output terminal Q of the latch is in state 1 (Q=1); otherwise, the other output terminal Q of the latch is in state 0 (Q=0). When the latch enable signal STROB of the latch is in state 0 (STROB=0), both output terminals of the latch are in state 1 (Q / QB=1). The voltage comparator circuit of the third embodiment, whose latch works when the latch enable signal STROB is in state 1 (STROB=1), can quickly compare the voltages of the two differential amplifier output terminals of the pre-amplifier circuit and output a digital comparison state value.
[0084] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A voltage comparator circuit, It is characterized in that It includes a pre-amplifier circuit, a latch and an offset voltage compensation circuit; The two differential amplification output terminals of the pre-amplifier circuit are respectively connected to the two input terminals of the latch; The pre-amplifier circuit is used to differentially amplify voltage signals externally connected to its two differential input terminals, and output two differential amplified signals to the latch through two differential amplification output terminals; The latch, whose output terminal serves as the output terminal of the voltage comparator circuit, outputs a digital comparison state value; The offset voltage compensation circuit comprises N-way VOP compensation constant current sources and / or N-way VON compensation constant current sources, where N is a positive integer; N-way VOP compensation constant current source, connected in parallel between a differential amplifier output terminal (VOP) and ground; N-way VON compensation constant current source, connected in parallel between another differential amplifier output terminal (VON) and ground; When the N-way VOP compensation constant current source and the N-way VON compensation constant current source are both disconnected, the difference of the voltage signals externally connected to the two differential input terminals at the moment when the digital comparison state value outputted by the output terminal of the latch changes from 0 to 1 or from 1 to 0 is detected and used as the compensation current setting parameter; The number of connected channels of the N-channel VOP compensation constant current sources or the N-channel VON compensation constant current sources is positively correlated with the compensation current setting parameter.
2. The voltage comparator circuit according to claim 1, It is characterized in that The pre-amplifier circuit comprises a zeroth NMOS tube (N0), a first NMOS tube (N1), a second NMOS tube (N2), a third NMOS tube (N3), a fourth NMOS tube (N4), a zeroth PMOS tube (P0), a first PMOS tube (P1), a second PMOS tube (P2), a third PMOS tube (P3), a zeroth resistor (R0) and a first resistor (R1); The gate of the second NMOS tube (N2) is connected to a bias voltage (VBN), and the drain is connected to the source of the zeroth NMOS tube (N0) and the first NMOS tube (N1); The drain of the zeroth NMOS tube (N0) is connected to the drain of the zeroth PMOS tube (P0) and the source of the second PMOS tube (P2); The drain of the first NMOS tube N1 is connected to the drain of the first PMOS tube (P1) and the source of the third PMOS tube (P3); The source electrodes of the zeroth PMOS tube (P0) and the first PMOS tube (P1) are connected to a working power supply (VDD); The drains of the zeroth PMOS tube (P0) and the first PMOS tube (P1) are short-circuited; The gates of the second PMOS tube (P2) and the third PMOS tube (P3) are short-circuited; The drain of the second PMOS tube (P2) is connected to the drain of the third NMOS tube (N3); The drain of the third PMOS tube (P3) is connected to the drain of the fourth NMOS tube (N4); The gates of the third NMOS tube (N3) and the fourth NMOS tube (N4) are short-circuited; The sources of the second NMOS tube (N2), the third NMOS tube (N3) and the fourth NMOS tube (N4) are grounded; A first resistor (R1) is connected between the drain and the gate of the fourth NMOS tube (N4), and the drain of the fourth NMOS tube (N4) serves as a differential amplifier output terminal (VOP); A zeroth resistor (R0) is connected between the drain and the gate of the third NMOS tube (N3), and the drain of the third NMOS tube (N3) serves as another differential amplifier output terminal (VON).
3. The voltage comparator circuit according to claim 1, It is characterized in that R0=R1.
4. The voltage comparator circuit according to claim 1, It is characterized in that The current value of each VOP compensation constant current source or each (VON) compensation constant current source is equal.
5. The voltage comparator circuit according to claim 1, It is characterized in that N is 8, 16, or 32.
6. The voltage comparator circuit according to claim 1, It is characterized in that The latch comprises a fifth NMOS tube (N5), a sixth NMOS tube (N6), a seventh NMOS tube (N7), an eighth NMOS tube (N8), a ninth NMOS tube (N9), a tenth NMOS tube (N10), a fourth PMOS tube (P4), a fifth PMOS tube (P5), a sixth PMOS tube (P6) and a seventh PMOS tube (P7); The seventh NMOS transistor (N7) has a gate connected to a differential amplifier output terminal (VOP) of the pre-amplifier circuit, and a drain connected to the drain of the fifth NMOS transistor (N5), the gate of the sixth NMOS transistor (N6) and the source of the ninth NMOS transistor (N9); The eighth NMOS tube (N8) has a gate connected to another differential amplifier output terminal (VON) of the pre-amplifier circuit, and a drain connected to the drain of the sixth NMOS tube (N6), the gate of the fifth NMOS tube (N5) and the source of the tenth NMOS tube (N10); The sources of the fifth NMOS transistor (N5), the sixth NMOS transistor (N6), the seventh NMOS transistor (N7) and the eighth NMOS transistor (N8) are grounded; The drain of the fourth PMOS tube (P4), the drain of the sixth PMOS tube (P6), the gate of the fifth PMOS tube (P5) and the drain of the ninth NMOS tube (N9) are short-circuited to serve as an output end (QB) of the latch; The drain of the fifth PMOS tube (P5), the drain of the seventh PMOS tube (P7), the gate of the fourth PMOS tube (P4) and the drain of the tenth NMOS tube (N10) are short-circuited to serve as another output end (Q) of the latch; The source electrodes of the fourth PMOS tube (P4), the fifth PMOS tube (P5), the sixth PMOS tube (P6) and the seventh PMOS tube (P7) are connected to a working power supply (VDD); The gates of the ninth NMOS transistor (N9), the tenth NMOS transistor (N10), the sixth PMOS transistor (P6) and the seventh PMOS transistor (P7) are connected to a latch enable signal (STROB).
