Background of the Invention
1. Field of the Invention
The present invention relates to a high speed charge balancing comparator and, more particularly, to an improved charge balancing comparator having a substantially reduced response time whereby the speed of operation of the comparator is greatly improved.
2. Description of the Prior Art
Charge balancing comparators have been known and used for several years. The charge balancing comparator operates on the principle that the net charge onto its input nodes from two or more sources will cause either a positive or a negative voltage swing at the input charge balancing node. The state of the output of the comparator will depend on the polarity of the change of the voltage at this node. The comparator does not respond to the absolute value of the voltage at this node. At a suitable time, the output node is interrogated to see if it has swung in either a positive or a negative direction and this information is stored elsewhere.
This type of comparator is becoming increasingly popular in successive approximation analog-to-digital (A/D) converters using MOS or CMOS semiconductor integrated circuit technologies (although its use is not limited to these applications). One of the principle goals of any A/D converter is usually to minimize its time for making a conversion and most converters are ultimately limited in their high speed operation by the speed of their comparators.
Previous designs of comparators have been limited in speed of response due to the settling time of the input charge balancing node. The initial incorrect voltage on the input charge balancing node causes the output of the comparator, together with its internal nodes, to be disturbed significantly such that when the input charge balancing node does finally settle to its correct value, the comparator must first correct the internal node voltages, resulting in a long total response time at its output.
A better understanding of this problem can be derived with reference to FIG. 1, which shows a schematic diagram of a typical charge balancing comparator, generally designated 10, and to FIG. 2, which shows a series of waveforms as a function of time which are useful in understanding the operation of comparator 10. For purposes of discussion, comparator 10 utilizes an operational amplifier 11 as the gain element. However, in practice, because of speed limitations, other configurations will almost always be used. Switches S.sub.1, . . . S.sub.N apply voltages V.sub.1, . . . V.sub.N, respectively, via capacitors C.sub.1, . . . C.sub.N, respectively, to input node A of operational amplifier 11. Similarly, switches S.sub.11, . . . S.sub.NN apply voltages V.sub.11, . . . V.sub.NN, respectively, via capacitors C.sub.1, . . . C.sub.N, respectively, to input node A. An autozero switch S.sub.AZ connects the inverting input of amplifier 11 to its output. Switches S.sub.1, . . . S.sub.N and S.sub.AZ are controlled by a timing signal shown as waveform 12 in FIG. 2 and switches S.sub.11, . . . S.sub.NN are controlled by a timing signal shown as waveform 13 in FIG. 2. Waveform 14 shown in FIG. 2 is the theoretical output V.sub.OUT of operational amplifier 11.
During the autozero phase, switches S.sub.1, . . . S.sub.N and S.sub.AZ will be closed and switches S.sub.11, . . . S.sub.NN will be open. During this phase, switch S.sub.AZ connects the inverting input of amplifier 11 to its output, thereby putting amplifier 11 into a unity gain configuration. If amplifier 11 is perfect, the voltage V.sub.OUT will be at ground. In practice, because of finite errors such as input offset voltages, V.sub.OUT will be offset from ground potential up to a few millivolts. For the sake of simplicity, it will be assumed that amplifier 11 has no errors and that there are only two input pairs of voltages to be compared, V.sub.1 and V.sub.11 plus V.sub.2 and V.sub.22 (N=2 and NN=22). During the autozero phase, capacitors C.sub.1 and C.sub.2 will be charged to voltages V.sub.1 and V.sub.2, respectively.
During the compare phase, switches S.sub.AZ, S.sub.1 and S.sub.2 are opened and switches S.sub.11 and S.sub.22 are closed. The voltage V.sub.A at the input node A to amplifier 11 will eventually assume a voltage V.sub.A : ##EQU1## It can be seen that V.sub.A can have any real positive or negative value depending on the magnitude of C.sub.1 and C.sub.2 and the magnitudes and polarities of (V.sub.11 -V.sub.1) and (V.sub.22 -V.sub.2).
The output voltage V.sub.OUT will respond after a finite time to the new value of V.sub.A. For example, if voltage V.sub.A has acquired a negative shift of value compared to that during the autozero phase, V.sub.OUT will swing by a positive amount as shown as waveform 14 in FIG. 2. At the end of this phase, V.sub.OUT is detected and stored elsewhere (on a capacitor or latch) and the cycle repeated. Each complete cycle is defined as the analog-to-digital conversion time and it is usually desired that this time be as short as possible.
Problems arise in the use of comparator 10 when the mechanical switches shown in FIG. 1 are replaced by MOS switches or the like having finite values of series resistance and when the values in the numerator of equation (1) are different by a very small value to those in the denominator, i.e.: ##EQU2## The problem manifests itself in an initially inaccurate high value of voltage V.sub.A at node A at the beginning of the compare cycle. Although the voltage V.sub.A will finally settle to its correct value, this initial voltage can make the gain element (operational amplifier 11 in FIG. 1) swing its output and internal node voltages to incorrect values such that when the input voltage V.sub.A has settled down to near its correct value and final polarity, the gain element requires significantly more time to correct its output voltage V.sub.OUT and its internal node voltages compared to the case where this initial transient of input voltage had not occurred.
To demonstrate this initial transient, reference should be had to FIG. 3, wherein the input of comparator 10 is modified by eliminating switches S.sub.11 and S.sub.22 and substituting therefore single switches S.sub.1 and S.sub.2 with their respective series resistors R.sub.1 and R.sub.2. Additionally, for the sake of simplicity, switch S.sub.AZ is shown connecting node A to ground during the autozero phase. Switches S.sub.1 and S.sub.2 also connect capacitors C.sub.1 and C.sub.2, respectively, to voltages V.sub.1 and V.sub.2, respectively, during the autozero phase.
The voltage at node A from the beginning of the compare phase is defined by the equation:
where t=time, ##EQU3##
It should be noted that the initial value of V.sub.A is solely dependent upon the input differential voltages (V.sub.11 -V.sub.1) and (V.sub.22 -V.sub.2) and the equivalent resistance of R.sub.1 and R.sub.2, that the final value of V.sub.A is solely dependent on the same differential voltages and capacitors C.sub.1 and C.sub.2, and that the time constant for the voltage V.sub.A to change from V.sub.A(INITIAL) towards V.sub.A(FINAL) is dependent on the equivalent RC product of the two resistors R.sub.1 and R.sub.2 in series and the two capacitors C.sub.1 and C.sub.2 in series.
To demonstrate this situation, consider a practical case for an 8-bit A/D converter. The reference voltage (V.sub.11 -V.sub.1) is -2.500 volts and the full scale input voltage (V.sub.22 -V.sub.2) less one least significant bit is (5.000-5.000/256) volts or approximately 4.980 volts. In this example, capacitor C.sub.1 has a value of 10 picofarads, capacitor C.sub.2 has a value of 5 picofarads and the equivalent series resistances R.sub.1 and R.sub.2 of the MOS switches are 2000 ohms each. Inserting these values in equations (5) and (1): ##EQU4## The time constant TC for V.sub.A is defined by: ##EQU5## Between four and five time constants (approximately 14 nanoseconds) are required before voltage V.sub.A assumes approximately its correct value.
This example is shown in FIG. 4 where voltage V.sub.A is plotted as a function of time (curve 15). The ratio of the initial magnitude of voltage V.sub.A is almost 200 times that of its final value. More importantly, its initial polarity is reversed from its final condition. As the example shows, the initial input transient can be of such a high magnitude and sign that it can cause the gain element of the comparator to slam its output into an incorrect state and, often just as undesirable, cause its internal nodes to assume grossly incorrect voltage values such that when the input voltage V.sub.A assumes its correct polarity, at time t.sub.1 in FIG. 4, and then its small terminal magnitude, the internal node and output voltages have to be initially corrected to their autozero values and then to their final values. This produces a delay at the output of the comparator which is usually twice to many times that which would occur if no input transient had been allowed and the input voltage V.sub.A had been connected to the input of the comparator only after the time t.sub.1. Since the speed or response time of the comparator is the limiting factor for A/D converters and other systems using comparators, it is highly desirable to eliminate or reduce the effect of input voltage transients for this family of charge balancing comparators.
Summary of the Invention
According to the present invention, these problems are solved by the provision of a new type of comparator in which, without loading or affecting its input, the internal nodes and output node are maintained at voltage levels at or very close to their autozero values until a time after the commencement of the compare phase such that the polarity of the input voltage V.sub.A is correct. This eliminates input transients as shown in FIG. 4 and eliminates the necessity for correcting the internal node and output voltages. It also eliminates delays at the output of the comparator of the type discussed hereinbefore. The result is a substantially increased speed of response for analog-to-digital converters.
Briefly, in a comparator of the type for comparing two or more voltages including a gain stage having an input node responsive to the voltages, plural internal nodes and an output node, and a plurality of switches for sequencing the voltages to the input nodes during alternate autozero and compare phases of a comparator cycle, there is disclosed an improvement comprising switch means for maintaining the gain stage internal nodes and output node at voltage levels close to their values during the autozero phase until a time after the commencement of the compare phase.
Objects, Features and Advantages
It is therefore the object of the present invention to solve the problems resulting from input voltage transients at the charge balancing node in charge balancing comparators. It is a feature of the present invention to solve these problems by maintaining the comparator's gain stage internal nodes and output node at voltage levels close to their values during an autozero phase until a time after the commencement of a compare phase. An advantage to be derived is a comparator having a significantly increased speed. Another advantage is the elimination of the effect of initial input voltage transients. Still another advantage is the ability to prevent internal nodes from assuming grossly incorrect voltages.
Still other objects, features, and attendant advantages of the present invention will become apparent to those skilled in the art from a reading of the following detailed description of the preferred embodiment constructed in accordance therewith, taken in conjuction with the accompanying drawings wherein like numerals designate like or corresponding parts in the several figures and wherein:
Brief Description of the Drawings
FIG. 1 is a schematic diagram of a conventional charge balancing comparator;
FIG. 2 is a series of waveforms useful in explaining the operation of the circuit of FIG. 1;
FIG. 3 is a schematic diagram of a modified input circuit for the comparator of FIG. 1;
FIG. 4 is a plot of input voltage V.sub.A transient as a function of time for the comparator of FIG. 1;
FIG. 5 is a schematic diagram of a charge balancing comparator constructed in accordance with the teachings of the present invention;
FIG. 6 is a timing diagram for the comparator of FIG. 5; and
FIG. 7 is a circuit diagram of a practical implementation of the comparator of FIG. 5.
Description of the Preferred Embodiment
Referring now to FIGS. 5 and 6, according to the present invention, there is provided a new type of charge balancing comparator, generally designated 20, in which, without loading or affecting its input, the internal nodes and output node are maintained at voltage levels at or very close to their autozero values until a time after commencement of the compare phase such that the polarity of the input voltage V.sub.A is correct. The principle of this delayed response comparator can be applied to almost any comparator configuration. However, the particular example to be described is extremely simple to implement in any MOS semiconductor technology, although not limited to MOS technologies.
FIG. 5 is a schematic diagram of comparator 20 in which the input to the gain element is the same as that described hereinbefore with regard to comparator 10 of FIG. 1. The gain element of comparator 10 uses a ratioed trio of three gain stages 21, 22 and 23. Gain stage 21 is AC coupled to gain stage 22 by means of a capacitor 28 whereas DC coupling is used between stages 22 and 23. Each stage 21, 22 and 23 has a switch 24, 25 and 26, respectively, connected between its input and its output. An additional switch 27 is connected between the output of stage 23 and the output of stage 21. In a typical embodiment, the voltage gain of each stage is approximately 40 so that the total voltage gain from point A (input to stage 21) to point E (output of stage 23) is 64,000.
Gain stages 21-23 consist of simple transconductance amplifiers and the internal components of each are ratioed to produce similar output voltages during the autozero phase. Stage 23 is ratioed with respect to stages 21 and 22 so that it has a much higher transconductance and output current capability. The switches all have finite series resistances and switches 26 and 27 have low series resistances such that the combined output conductance of stage 23 and the equivalent conductances (reciprocal of series resistance) of switches 26 and 27 with such switches closed is much higher than the output conductance of either stage 21 or 22 irrespective of the input voltages on stages 21 and 22.
Referring now to the timing diagrams of FIG. 6, there is shown four timing signals 31, 32, 33, and 34, denoted phase 1, phase 2, and phase 3, and "output valid", respectively, for sequencing the operation of switches S.sub.1, S.sub.2, S.sub.11, S.sub.22, and 24-27. The phase 1 timing signal controls switches S.sub.1, S.sub.2, 24 and 25, the phase 2 timing signal controls switches S.sub.11 and S.sub.22 and the phase 3 timing signal controls switches 26 and 27. The "output valid" timing signal is used to interrogate V.sub.OUT at the appropriate time in the comparator cycle.
At time t.sub.1, which marks the start of the autozero phase, switches S.sub.11 and S.sub.22 are open, switches S.sub.1, S.sub.2, 24, 25, 26 and 27 are all closed and the nodes A, B, C, D and E are held at approximately the same voltage (the autozero voltage). At time t.sub.2, which marks the end of the autozero phase, switches S.sub.1, S.sub.2, 24 and 25 are opened. A short time later, at time t.sub.3, switches S.sub.11 and S.sub.22 are closed (establishing a break before make sequence with switches S.sub.1, S.sub.2, S.sub.11 and S.sub.22). At this time, the start of the compare phase, a transient voltage of incorrect polarity can occur at node A if the polarities and the phases of the input voltages (V.sub.1 -V.sub.11) and (V.sub.2 -V.sub.22) are chosen in a similar manner to the example previously described. However, stage 23 maintains minimal voltage excursions on nodes B, C and D, the gain element internal nodes, due to its high output conductance.
A time t.sub.4 is chosen so that the input transient voltage on node A has finished. Accordingly, at time t.sub.4, switches 26 and 27 are opened and comparator 20 is allowed to respond to the new voltage V.sub.A on node A. Since the voltages on nodes B, C, D and E are close to their autozero voltages at time t.sub.4, the output node E will respond in the shortest time to the voltage V.sub.A. If the polarity of V.sub.A is negative with respect to the autozero voltage, node E will swing quickly in a positive direction. Similarly, if the polarity of V.sub.A is positive with respect to the autozero voltage, node E will swing quickly in a negative direction. The time from t.sub.4 to time t.sub.5 allows the nodes B, C, D and E to slew sufficiently so that the output voltage V.sub.OUT at node E is unambiguous. During the time slot from t.sub.5 to time t.sub.6, a timing signal 34 interrogates node E to see if it has swung in either a positive or negative direction and this information is stored elsewhere. The time from t.sub.6 to time t.sub.8 may then be used to provide a break before make for the switching sequence. Thus, at time t.sub.7, switches S.sub.11 and S.sub.22 open. The cycle starts over again at time t.sub.8.
Referring now to FIG. 7, there is shown a practical implementation of comparator 20. This design utilizes CMOS technology for implementation, but the invention is obviously not limited to this technology. In the implementation of FIG. 7, each gain stage 21, 22 and 23 consists of an n-channel MOS transistor common source amplifier N.sub.5, N.sub.7 and N.sub.9, respectively, with a current source p-channel transistor load P.sub.5, P.sub.6 and P.sub.7, respectively. The sizes (channel width to channel length) of transistors P.sub.5, P.sub.6 and P.sub.7 should be ratioed so that P.sub.7 is significantly larger than either P.sub.5 or P.sub.6. Similarly, transistor N.sub.9 should be ratioed to transistors N.sub.5 and N.sub.7 in exactly the same ratio as for transistors P.sub.7, P.sub.5 and P.sub.6. The voltage V.sub.X provides a forward biasing gate-to-source voltage for transistors P.sub.5, P.sub.6 and P.sub.7 so that these transistors act as ratioed current sources; the larger the transistor, the higher the value of the equivalent current source.
Switches 24-27 consist of n-channel transistors N.sub.6, N.sub.8, N.sub.10 and N.sub.11, respectively. Transistors N.sub.6 and N.sub.8 receiving a voltage V.sub.31, shown as timing signal 31 in FIG. 6 and transistors N.sub.10 and N.sub.11 receive a voltage V.sub.33, shown as timing signal 33 in FIG. 6.
Switch S.sub.1 is composed of transistors P.sub.1 and N.sub.1 requiring complementary signals on each gate. Similarly, switch S.sub.11 is composed of transistors N.sub.2 and P.sub.2, switch S.sub.2 is composed of transistors N.sub.3 and P.sub.3, and switch S.sub.22 is composed of transistors N.sub.4 and P.sub.4. For turn-on, the gate of the n-channel transistor should be connected to V+ and the gate of the p-channel transistor should be connected to ground. To open or turn off this complementary switch, the gate voltages should be reversed. It may be desirable to use complementary input switches as shown so that the input common mode range (using gate control voltages of either V+ or ground) can be V+ and ground. For other ranges, these complementary switches may be replaced by single polarity MOS transistors. It should also be noted that where not designated, the substrates of p-channel transistors are connected to V+ and the substrates of n-channel transistors are connected to ground.
The implementation of circuit 20 shown in FIG. 7 uses the same timing sequence as shown in FIG. 6. The system can autozero correctly and resolve to 8-bit accuracy a 5 volt signal compared to a 2.5 volt reference in a total time of 0.5 microsecond.
While the invention has been described with respect to the preferred physical embodiment constructed in accordance therewith, it will be apparent to those skilled in the art that various modifications and improvements may be made without departing from the scope and spirit of the invention. Accordingly, it is to be understood that the invention is not to be limited by the specific illustrative embodiment, but only by the scope of the appended claims.