This invention relates to comparators, and is particularly concerned with a comparator having complementary differential input stages, for example an NMOS differential input stage and a PMOS differential input stage, referred to below as dual input stages.
It is known to provide a comparator with dual input stages, for example NMOS and PMOS input stages in the case of a CMOS comparator, in order to provide the comparator with a wide common-mode input voltage range. For example in such a comparator with supply voltages of 0 and Vdd the NMOS input stage may have a common mode input voltage range from about 1V to near Vdd and the PMOS input stage may have a common mode input voltage range from near 0 to about Vdd−1V, so that (for voltages Vdd of at least about 2V) the dual input stages together can have a common mode input voltage range from near 0 to near Vdd, i.e. the rail to rail voltage range.
In such a known comparator outputs of the dual input stages are summed and amplified in an analog form, for example using current summation, to constitute an overall analog comparator. Such a comparator may have a relatively complex circuit and may constitute all of an IC (integrated circuit) which is dedicated to the function of a comparator.
In mixed signal and other ICs that may be desired for specific applications, for example for power control, it may be desired to provide one or more comparators with a wide common-mode input voltage range, for example near rail to rail, without involving the complexity and die area of a dedicated comparator circuit.
There is a need to provide such a comparator.
According to one aspect of this invention there is provided a comparator comprising: a first comparator cell responsive to a first range of input voltages for providing a first comparison signal; a second comparator cell responsive to a second range of input voltages, overlapping the first range, for providing a second comparison signal; and a logic arrangement responsive to the first and second comparison signals to provide a comparator output signal, the logic arrangement being responsive to a transition of the first comparison signal or a transition of the second comparison signal, whichever occurs first, representing a first change of comparison result to provide a first state of the comparator output signal, and being responsive to a transition of the first comparison signal or a transition of the second comparison signal, whichever occurs first, representing a second change of comparison result opposite to the first change to provide a second state of the comparator output signal opposite to said first state.
For example the first and second comparator cells can comprise differential input stages having opposite semiconductor types. In particular, in a CMOS implementation the first comparator cell can comprise an NMOS transistor differential input stage and the second comparator cell can comprise a PMOS transistor differential input stage.
In this case for example with supply voltages of 0V and a positive voltage Vdd, the first range of input voltages to which the NMOS transistor differential input stage is responsive can be a range from a voltage Vn above 0V to about Vdd, and the second range of input voltages to which the PMOS transistor differential input stage is responsive can be from about 0V to a voltage Vp less than Vdd, Vp being greater than Vn so that the first and second ranges overlap.
In one form of the comparator, the logic arrangement can comprise a latch providing an output of the comparator, at least one rising edge detector responsive to a transition of at least one of the first and second comparison signals representing said first change of comparison result to set a first state of the latch, and at least one falling edge detector responsive to a transition of at least one of the first and second comparison signals representing said second change of comparison result to produce a second state of the latch.
In a particular form of the comparator, the logic arrangement can comprise: a latch providing an output of the comparator; first and second rising edge detectors responsive to rising edges of the first and second comparison signals, respectively, to produce respective output pulses; a logic function for setting a first state of the latch in response to an output pulse from either of the rising edge detectors; first and second falling edge detectors responsive to falling edges of the first and second comparison signals, respectively, to produce respective output pulses; and a logic function for setting a second state of the latch in response to an output pulse from either of the falling edge detectors.
The logic arrangement can further include a logic function for setting the first state of the latch in response to a high level of both the first and second comparison signals, and a logic function for setting the second state of the latch in response to a low level of both the first and second comparison signals.
The invention will be further understood from the following description by way of example with reference to the accompanying drawings, in which:
Referring to the drawings,
Conversely,
The values of Vn and Vp may vary with manufacturing process, supply voltage, and temperature variations, and with any particular required response speed of the comparator cells. For example, the input stage of
The NMOS comparator cell 40 has a non-inverting (+) input connected to a non-inverting input IN+ of the comparator of
Similarly, the PMOS comparator cell 41 has a non-inverting (+) input connected to the non-inverting input IN+ of the comparator of
Consequently, the comparator cells 40 and 41 of the comparator of
The output of the comparator cell 40 is connected to an input of one of the rising edge detectors 42, to an input of one of the falling edge detectors 43, and to one input of each of the AND gate 46 and the NOR gate 47 if these are present. Similarly, the output of the comparator cell 41 is connected to an input of the other of the rising edge detectors 42, to an input of the other of the falling edge detectors 43, and to the other input of each of the gates 46 and 47 if these are present.
The outputs of the two rising edge detectors 42, and the output of the AND gate 46 if this is present, are connected to respective inputs of the NOR gate 44, whose output is connected to an active-low set input S of the latch 48. The outputs of the two falling edge detectors 43, and the output of the NOR gate 47 if this is present, are connected to respective inputs of the NOR gate 45, whose output is connected to an active-low reset input R of the latch 48.
Each of the falling edge detectors 43 serves to produce a short positive-going output pulse in response to a falling edge supplied to its input, as shown diagrammatically within each block 43 in
Referring to
A falling edge of a digital signal at the input of the falling edge detector of
Conversely, each of the rising edge detectors 42 serves to produce a short positive-going output pulse in response to a rising edge supplied to its input, as shown diagrammatically within each block 42 in
Referring to
A rising edge of a digital signal at the input of the rising edge detector of
The transistor 64 can be replaced by any other form of capacitance, or the capacitance 54 in the falling edge detector of
Referring again to
In any event, at least one of the comparator cells 40 and 41 will produce a rising edge at its output, resulting in a pulse being produced at the output of at least one of the rising edge detectors 42. In response to such a pulse, or the earliest of such pulses, the NOR gate 44 produces a low output signal that sets the latch 48 via the active-low set input S, thereby producing a high level at the Q output of the latch 48 and hence at the output of the comparator of
Conversely, if the input voltages change so that the voltage at the input IN+ crosses and falls below the voltage at the input IN−, depending upon the input voltages one or both of the comparator cells 40 and 41 produces a falling edge that is detected by the respective falling edge detector 43, producing a low output of the gate 45 which resets the latch 48 to produce a low level at the output.
The provision of both the NMOS comparator cell 40 and the PMOS comparator cell 41 ensures that the comparator of
Without the gates 46 and 47, the comparator of
The logic arrangement of
Although a particular form of the logic arrangement is described above, it can be appreciated that the logic arrangement may have any other desired form for responding, for changes in the input voltages, in each case to the earliest transition at the output of one of the comparator cells 40 and 41. For example, the latch 48 could instead be set and reset in response to signals derived by differentiating signals at the outputs of the comparator cells 40 and 41 to respond to the respective transitions, and appropriately combining the differentiated signals. Further, the functions of the edge detectors and logic gates can be combined and rearranged, for example combining the outputs of the comparator cells 40 and 41 prior to any edge detection so that only two edge detectors, one for rising edges and one for falling edges, are required.
Although a CMOS comparator is described above, the invention is not limited in this respect and other embodiments of the invention may use other technologies. For example, the comparator cells can comprise differential input stages using NPN and PNP bipolar transistors instead of NMOS and PMOS transistors, respectively.
In addition, although as described above the comparator provides an approximately rail to rail common mode input voltage range, this need not necessarily be the case and embodiments of the invention may be used anywhere that it is desired to extend the input voltage range of the comparator beyond that of a single NMOS or PMOS comparator cell, or to enhance the response speed of the comparator relative to that of a single NMOS or PMOS comparator cell for any given input voltage.
For example, in a power control IC it may be desired to compare a voltage with a linear ramp in order to determine a switching time. Such an IC may be implemented using a CMOS process which limits the supply voltage (Vdd) to 3.0 or 3.3V. For maximizing resolution and dynamic range, in this case the linear ramp may have a range of 0.5 to 2.5V that is not rail to rail (0V to Vdd) but extends beyond the individual ranges 30 and 31 shown in
Thus although a particular embodiment of the invention is described above by way of example, it can be appreciated that numerous modifications, variations, and adaptations may be made without departing from the scope of the invention as defined in the claims.
Number | Name | Date | Kind |
---|---|---|---|
5142244 | Glica et al. | Aug 1992 | A |
5701331 | Hunt | Dec 1997 | A |
5764086 | Nagamatsu et al. | Jun 1998 | A |
5889419 | Fischer et al. | Mar 1999 | A |
6809566 | Xin-LeBlanc | Oct 2004 | B1 |
7123058 | Kim et al. | Oct 2006 | B2 |
7230485 | De Cremoux et al. | Jun 2007 | B2 |
20040085097 | Ta et al. | May 2004 | A1 |
20040230388 | Kim et al. | Nov 2004 | A1 |
20050218938 | Sugano | Oct 2005 | A1 |
20060082392 | Koo | Apr 2006 | A1 |
20070057723 | Pan et al. | Mar 2007 | A1 |
20070115160 | Kleveland et al. | May 2007 | A1 |
20070279125 | Tripathi et al. | Dec 2007 | A1 |
20070285165 | Mukherjee et al. | Dec 2007 | A1 |
20080018362 | Yu et al. | Jan 2008 | A1 |
Number | Date | Country |
---|---|---|
1129505 | Aug 1982 | CA |
Number | Date | Country | |
---|---|---|---|
20080174342 A1 | Jul 2008 | US |