This application claims the priority of Chinese patent application number 201410097613.1, filed on Mar. 17, 2014, the entire contents of which are incorporated herein by reference.
The present invention relates generally to hysteresis comparators, more particularly, to a rail-to-rail input hysteresis comparator having a stable common mode rejection ratio (CMRR) throughout the variation range of the common mode input voltage.
Generally speaking, there have been many patents issued on rail-to-rail input hysteresis comparators. However, although the circuits disclosed in these patents can meet the requirements for the application as a hysteresis comparator in the respective input voltage ranges, all of these circuits cannot perform satisfactorily in terms of common mode rejection ratio (CMRR) when the common mode input voltages are in certain ranges.
A typical rail-to-rail input hysteresis comparator includes a P-type comparator and an N-type comparator, and according to the superposition principle, the performance of the rail-to-rail input hysteresis comparator depends upon both the performance of the P-type comparator and the performance of the N-type comparator. In general cases, most operational amplifiers and comparators used in integrated circuits (ICs), including the aforementioned P-type and N-type comparators, have a differential architecture, and use of differential amplifiers is intended to take advantage of the characteristic of such devices that, for two input signals, they only amplify their respective differential components but do not amplify their common mode components. This characteristic of differential amplifiers can be measured by CMRR which is defined as the absolute value of a ratio of the amplifiers' differential gain to their common mode gain:
As can be seen from its above definition, CMRR is prone to significant variation.
Although there have been proposed a variety of solutions that can overcome this drawback, they all fail to impart satisfactory CMRR properties to conventional rail-to-rail input hysteresis comparators.
a and 1b show the simulation results of a conventional rail-to-rail input hysteresis comparator. As shown in these figures, with the common mode input voltage Vcm varying linearly from 0 to VDDA, there are two ranges, namely the range II (in which the P-type comparator operates properly, while a current source of the N-type comparator operates in a linear mode) and the range IV (in which a current source of the P-type comparator operates in a linear mode, while the N-type comparator operates properly) shown in
It is a major objective of the present invention to overcome the drawback described above by presenting a rail-to-rail input hysteresis comparator which possesses a stable CMRR enabled by timely turn-off of PMOS transistors of its output comparator when a common mode input voltage is as low as to cause a linear operation of the PMOS transistors and by timely turn-off of NMOS transistors of its output comparator when the common mode input voltage is as high as to cause a linear operation of the NMOS transistors.
To achieve the above and other objectives, the present invention provides a rail-to-rail input hysteresis comparator which includes an input hysteresis comparator module, a transmission module, an output comparator, a switching signal module and a bias module, wherein: the input hysteresis comparator module includes a P-type input hysteresis comparator and an N-type input hysteresis comparator, the P-type input hysteresis comparator having a first input terminal, a second input terminal, a first output terminal, a second output terminal and a P-type common mode voltage control signal output terminal, the N-type input hysteresis comparator having a first input terminal, a second input terminal, a first output terminal, a second output terminal and an N-type common mode voltage control signal output terminal, the input hysteresis comparator module configured to receive a P-type input signal and an N-type input signal and to output a P-type hysteresis signal and an N-type hysteresis signal, each with hysteresis and steeper rise and fall edges relative to a respective one of the P-type input signal and the N-type input signal, to the transmission module and simultaneously a P-type common mode voltage control signal and an N-type common mode voltage control signal; the switching signal module is configured to convert the P-type and N-type common mode voltage control signals output from the input hysteresis comparator module to switching signals for the transmission module; the output comparator includes a P-type comparator and an N-type comparator, both coupled to the transmission module; the transmission module selectively couples one of the P-type and N-type hysteresis signals to the output comparator, under control of the switching signals, such that when the input P-type common mode voltage control signal is as low as to cause a decrease in a common mode rejection ratio, an output of the N-type input hysteresis comparator of the input hysteresis comparator module is disabled and an input voltage of the P-type comparator of the output comparator is set to a high level, thereby rendering the P-type comparator of the output comparator out of operation, and when the input N-type common mode voltage control signal is as high as to cause a decrease in the common mode rejection ratio, an output of the P-type input hysteresis comparator of the input hysteresis comparator module is disabled and an input voltage of the N-type comparator of the output comparator is set to a low level, thereby rendering the N-type comparator of the output comparator out of operation; and the bias module is configured to generate a bias current and a bias voltage, for each of the input hysteresis comparator module, the transmission module, the output comparator and the switching signal module.
Further, the output comparator may include first to seventh NMOS transistors and first to seventh PMOS transistors, the first to third NMOS transistors form the N-type comparator, the fourth and fifth PMOS transistors and the fourth and fifth NMOS transistors form a constant current source load, the first to third PMOS transistors form the P-type comparator, and the sixth and seventh PMOS transistors and the sixth and seventh NMOS transistors form an output buffer circuit.
Further, the first input terminals of the P-type and N-type input hysteresis comparators may be configured to receive the P-type input signal and the second input terminals of the P-type and N-type input hysteresis comparators are configured to receive the N-type input signal.
Further, the transmission module may include a first P-type comparator transmission gate, a second P-type comparator transmission gate, a third P-type comparator transmission gate, a fourth P-type comparator transmission gate, a first N-type comparator transmission gate, a second N-type comparator transmission gate, a third N-type comparator transmission gate and a fourth N-type comparator transmission gate.
Further, the output comparator may have first, second, third and fourth input terminals, each of the first and second P-type comparator transmission gates has one end coupled to a respective one of the first and second output terminals of the P-type input hysteresis comparator and the other end coupled to a respective one of the first and second input terminals of the output comparator; each of the third and fourth P-type comparator transmission gates has one end grounded and the other end coupled to a respective one of said other ends of the first and second P-type comparator transmission gates and thereby coupled to the respective one of the first and second input terminals of the output comparator; each of the first and second N-type comparator transmission gates has one end coupled to a respective one of the first and second output terminals of the N-type input hysteresis comparator and the other end coupled to a respective one of the third and fourth input terminals of the output comparator; and each of the third and fourth N-type comparator transmission gates has one end coupled to a supply voltage and the other end coupled to a respective one of said other ends of the first and second N-type comparator transmission gates and thereby coupled to the respective one of the third and fourth input terminals of the output comparator.
Further, the switching signal module may include a resistor voltage divider network, first and second comparators, and first, second, third and fourth phase inverters, each of the first and second comparators is coupled between the supply voltage and ground and has a first input terminal, a second input terminal and an output terminal; the first input terminals of the first and second comparators are coupled to the P-type and N-type common mode voltage control signals, respectively; the output terminal of the first comparator is coupled to the first and second phase inverters which are connected in series; the first phase inverter is configured to output a first switching signal and the second phase inverter is configured to output a second switching signal; the output terminal of the second comparator is coupled to the third and fourth phase inverters which are connected in series; the third phase inverter is configured to output a third switching signal and the fourth phase inverter is configured to output a fourth switching signal; each of the first, second, third and fourth phase inverters is coupled to both the supply voltage and the ground; the resistor voltage divider network is coupled between the supply voltage and the ground and includes a first resistor, a second resistor, a third resistor and a fourth resistor which are connected in series between the supply voltage and the ground; the second input terminal of the first comparator is coupled to a node between the first and second resistors; and the second input terminal of the second comparator is coupled to a node between the third and fourth resistors.
Further, each of the first, second, third and fourth P-type comparator transmission gates and the first, second, third and fourth N-type comparator transmission gates may include a PMOS transistor and an NMOS transistor; a gate terminal of the PMOS transistor of the first P-type comparator transmission gate is coupled to the second switching signal and a gate terminal of the NMOS transistor of the first P-type comparator transmission gate is coupled to the first switching signal; a gate terminal of the PMOS transistor of the second P-type comparator transmission gate is coupled to the second switching signal and a gate terminal of the NMOS transistor of the second P-type comparator transmission gate is coupled to the first switching signal; a gate terminal of the PMOS transistor of the third P-type comparator transmission gate is coupled to the first switching signal and a gate terminal of the NMOS transistor of the third P-type comparator transmission gate is coupled to the second switching signal; a gate terminal of the PMOS transistor of the fourth P-type comparator transmission gate is coupled to the first switching signal and a gate terminal of the NMOS transistor of the fourth P-type comparator transmission gate is coupled to the second switching signal; a gate terminal of the PMOS transistor of the first N-type comparator transmission gate is coupled to the third switching signal and a gate terminal of the NMOS transistor of the first N-type comparator transmission gate is coupled to the fourth switching signal; a gate terminal of the PMOS transistor of the second N-type comparator transmission gate is coupled to the third switching signal and a gate terminal of the NMOS transistor of the second N-type comparator transmission gate is coupled to the fourth switching signal; a gate terminal of the PMOS transistor of the third N-type comparator transmission gate is coupled to the fourth switching signal and a gate terminal of the NMOS transistor of the third N-type comparator transmission gate is coupled to the third switching signal; and a gate terminal of the PMOS transistor of the fourth N-type comparator transmission gate is coupled to the fourth switching signal and a gate terminal of the NMOS transistor of the fourth N-type comparator transmission gate is coupled to the third switching signal.
Further, the input hysteresis comparator module, the transmission module, the output comparator, the switching signal module and the bias module may be powered either by a same voltage source, or by different voltage sources used in combination with a level converter.
Compared to the conventional device, the rail-to-rail input hysteresis comparator of the present invention can turn off an output of the N-type input hysteresis comparator of the input hysteresis comparator module when the common mode input voltage is relatively low and turn off an output of the P-type input hysteresis comparator of the input hysteresis comparator module when the common mode input voltage is relatively high, thereby avoiding operating in a linear mode and hence achieving a stable CMRR.
a and 1b are diagrams showing simulation results of a conventional rail-to-rail input hysteresis comparator.
a shows a detailed circuit schematic of a P-type input hysteresis comparator PCMP in accordance with a preferred embodiment of the present invention.
b shows a detailed circuit schematic of an N-type input hysteresis comparator NCMP in accordance with a preferred embodiment of the present invention.
a and 5b shows detailed circuit schematics of first and second comparators SCMP1 and SCMP2 of a switching signal module in accordance with a preferred embodiment of the present invention.
a and 6b are diagrams showing simulation results of a rail-to-rail input hysteresis comparator according to the present invention.
To further describe the present invention, reference is made to the following detailed description on exemplary embodiments, taken in conjunction with the accompanying drawings. Other advantages and features of the invention will become readily apparent to those skilled in the art upon reading this specification. The invention may be embodied or utilized in many different forms from the exemplary embodiments and various modifications and variations can be made to details thereof based on different perspectives and applications, without departing from the spirit of the invention.
The input hysteresis comparator module 30 includes a P-type input hysteresis comparator PCMP and an N-type input hysteresis comparator NCMP, each powered by a supply voltage VDDA50 relative to ground GNDA50 of the system and having two input terminals, one positive and one negative, and two output terminals, also one positive and one negative. Each positive input terminal of the PCMP and NCMP is configured to receive a positive input signal INP, while each negative input terminal of the PCMP and NCMP is configured to receive a negative input signal INN. Signals with hysteresis are output from the output terminals OUTP1, OUTP2 of the PCMP and OUTN1 and OUTN2 of the NCMP to the transmission module 31. The P-type input hysteresis comparator PCMP is coupled to a bias signal VBIASP from the bias module 34 and outputs a P-type common mode voltage control signal DETP through source terminal nodes of PMOS transistors P1 and P2 of the PCMP (see
The transmission module 31 includes a first P-type comparator transmission gate PT1, a second P-type comparator transmission gate PT2, a third P-type comparator transmission gate PT3, a fourth P-type comparator transmission gate PT4, a first N-type comparator transmission gate NT1, a second N-type comparator transmission gate NT2, a third N-type comparator transmission gate NT3 and a fourth N-type comparator transmission gate NT4. These transmission gates may, under the control of the switching signals from the switching signal module 33, select ones of the signals output from the input hysteresis comparator module 30 and other input signals and output the selected signals to the output comparator 32. Each of the first and second P-type comparator transmission gates PT1 and PT2 has one end coupled to a respective one of the first and second output terminals OUTP1 and OUTP2 of the P-type input hysteresis comparator PCMP and the other end coupled to a respective one of the first and second input terminals VINP1 and VINP2 of the output comparator 32. Each of the third and fourth P-type comparator transmission gates PT3 and PT4 has one end coupled to the ground GNDA50 and the other end coupled to a respective one of said other ends of the first and second P-type comparator transmission gates PT1 and PT2 and thereby coupled to the respective one of the first and second input terminals VINP1 and VINP2 of the output comparator 32. Each of the first and second N-type comparator transmission gates NT1 and NT2 has one end coupled to a respective one of the first and second output terminals OUTN1 and OUTN2 of the N-type input hysteresis comparator NCMP and the other end coupled to a respective one of input terminals VINN1 and VINN2 of the output comparator 32. Each of the third and fourth N-type comparator transmission gates NT3 and NT4 has one end coupled to the supply voltage VDDA50 and the other end coupled to a respective one of said other ends of the first and second N-type comparator transmission gates NT1 and NT2 and thereby coupled to the respective one of input terminals VINN1 and VINN2 of the output comparator 32. In a preferred embodiment, each of the first, second, third and fourth P-type comparator transmission gates PT1, PT2, PT3 and PT4 and the first, second, third and fourth N-type comparator transmission gates NT1, NT2, NT3 and NT4 includes a PMOS transistor and an NMOS transistor. Additionally, a gate terminal of the PMOS transistor of the first P-type comparator transmission gate PT1 is coupled to a second switching signal S2 and a gate terminal of the NMOS transistor of the first P-type comparator transmission gate PT1 is coupled to a first switching signal S1. A gate terminal of the PMOS transistor of the second P-type comparator transmission gate PT2 is coupled to the second switching signal S2 and a gate terminal of the NMOS transistor of the second P-type comparator transmission gate PT2 is coupled to the first switching signal S1. A gate terminal of the PMOS transistor of the third P-type comparator transmission gate PT3 is coupled to the first switching signal S1 and a gate terminal of the NMOS transistor of the third P-type comparator transmission gate PT3 is coupled to the second switching signal S2. A gate terminal of the PMOS transistor of the fourth P-type comparator transmission gate PT4 is coupled to the first switching signal S1 and a gate terminal of the NMOS transistor of the fourth P-type comparator transmission gate PT4 is coupled to the second switching signal S2. A gate terminal of the PMOS transistor of the first N-type comparator transmission gate NT1 is coupled to a third switching signal S3 and a gate terminal of the NMOS transistor of the first N-type comparator transmission gate NT1 is coupled to a fourth switching signal S4. A gate terminal of the PMOS transistor of the second N-type comparator transmission gate NT2 is coupled to the third switching signal S3 and a gate terminal of the NMOS transistor of the second N-type comparator transmission gate NT2 is coupled to the fourth switching signal S4. A gate terminal of the PMOS transistor of the third N-type comparator transmission gate NT3 is coupled to the fourth switching signal S4 and a gate terminal of the NMOS transistor of the third N-type comparator transmission gate NT3 is coupled to the third switching signal S3. A gate terminal of the PMOS transistor of the fourth N-type comparator transmission gate NT4 is coupled to the fourth switching signal S4 and a gate terminal of the NMOS transistor of the fourth N-type comparator transmission gate NT4 is coupled to the third switching signal S3.
The switching signal module 33 includes a resistor voltage divider network 330, a first comparator SCMP1, a second comparator SCMP2 and first, second, third and fourth phase inverters INV1, INV2, INV3 and INV4. The resistor voltage divider network 330 is coupled between the supply voltage VDDA50 and the ground GNDA50 and includes serially connected first, second, third and fourth resistors R1, R2, R3 and R4. A node between the first and second resistors R1 and R2 is coupled to a negative input terminal of the first comparator SCMP1, and a node between the third and fourth resistors R3 and R4 is coupled to a negative input terminal of the second comparator SCMP2. Each of the first and second comparators SCMP1 and SCMP2 is powered by the supply voltage VDDA50 and coupled to a respective one of the bias voltages VBIASN and VBIASP. A positive input terminal of each of the first and second comparators SCMP1 and SCMP2 is coupled to a respective one of the P-type and N-type common mode input voltages DETP and DETN. An output terminal of the first comparator SCMP1 is coupled to the first and second phase inverters INV1 and INV2. The first phase inverter INV1 outputs the first switching signal S1 and the second phase inverter INV2 outputs the second switching signal S2. An output terminal of the second comparator SCMP2 is coupled to the third and fourth phase inverters INV3 and INV4. The third phase inverter INV3 outputs the third switching signal S3 and the fourth phase inverter INV4 outputs the fourth switching signal S4. The four phase inverters INV1, INV2, INV3 and INV4 are all powered by the supply voltage VDDA50.
The output comparator 32 is for gain and CMRR improvement of the rail-to-rail input hysteresis comparator and rectification of the selected signals of the transmission module 31 and is powered by the supply voltage VDDA50. In order to enable the output comparator 32 to receive the selected signals of the transmission module 31, the output comparator 32 has four input terminals, each coupled to two of the transmission gates. After the rectification, the output comparator 32 provides an output VOUT. Further, the output comparator 32 is also coupled to the bias module 34 and thus capable of receiving bias voltages VBIASP, VBIASN, VBIASP2 and VBIASN2.
The bias module 34 is configured to provide the bias voltages VBIASP, VBIASN, VBIASP2 and VBIASN2 for the other modules described above. As the bias module 34 may be implemented as a conventionally known bias circuit, a detailed description is omitted herein.
a is a detailed circuit schematic of the P-type input hysteresis comparator PCMP in accordance with a preferred embodiment of the present invention, and
a and 5b are detailed circuit schematics of the first and second comparators SCMP1 and SCMP2 of the switching signal module 33 in accordance with a preferred embodiment of the present invention. As each of the first and second comparators SCMP1 and SCMP2 may be implemented as a conventionally known bias circuit, a detailed description is omitted herein.
In the embodiment, the input hysteresis comparator module 30, the transmission module 31, the output comparator 32, the switching signal module 33 and the bias module 34 are powered either by a same voltage source, or by different voltage sources used in combination with a level converter.
Operating principles of the present invention will be described in greater detail below with reference to
When a low common mode input voltage is input, the output common mode voltage control signals DETP and DETN (i.e., the P-type and N-type common mode voltage control signals) are also low, as shown in
When the common mode input voltage is high, the output common mode voltage control signals DETP and DETN (i.e., the P-type and N-type common mode voltage control signals) are also high, as shown in
As can be seen from
As described above, the rail-to-rail input hysteresis comparator of the present invention is capable of, by means of the common mode voltage control signals DETP and DETN output from the input hysteresis comparators, disabling the output of the N-type input hysteresis comparator NCMP and turning off the PMOS transistors of the output comparator in time in the event of a low common mode input voltage and disabling the output of the P-type input hysteresis comparator PCMP and turning off the NMOS transistors of the output comparator in time in the event of a high common mode input voltage, thereby cutting off any passage for the transmission of the common mode voltage during its linear operations and hence achieving an increased CMRR.
The exemplary embodiments disclosed above is merely intended to describe the principles and beneficial effects of the present invention by way of illustration and are not intended to limit the invention in any way. Those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention. Thus, it is intended that the scope of the present invention is defined by the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
2014 1 0097613 | Mar 2014 | CN | national |
Number | Name | Date | Kind |
---|---|---|---|
5973515 | Marbot et al. | Oct 1999 | A |
7973569 | Bashar | Jul 2011 | B1 |
20130027107 | Nohara | Jan 2013 | A1 |
Number | Date | Country | |
---|---|---|---|
20150263718 A1 | Sep 2015 | US |