COMPARATOR HAVING AN OFFSET VOLTAGE CANCELLATION CIRCUIT

Abstract: A comparator including an operational amplifier, includes: a first comparator (CMP1) ; an input switching circuit (A) for passing an input signal in one state wherein a comparison is effected and for interrupting the input signal in another state wherein an input offset voltage is cancelled, in the comparator (CMP1); an output switching circuit (B) for holding an output signal in one state and for outputting a held output signal in the other state of the input switching circuit; and an input/output switching signal generation circuit (C) for generating control signals to switch between the one state and the other state; the first comparator (CMP1) outputting resultant comparison data in the one state and cancelling the input offset voltage in the other state.

Description: The present invention relates to a comparator including an operational amplifier, more particularly, it relates to a comparator circuit enabling switching between one state wherein a comparison is effected and another state wherein an input offset voltage is cancelled, thus making it possible to obtain a precise comparison output voltage which is unaffected by an input offset voltage of the operational amplifier. In a comparator including an operational amplifier, it is well known that decision level errors in a reference voltage used for comparison with the input signal are caused by the input offset voltage. The input offset voltage is that occurring when the input terminals of the comparator are shorted together but a small voltage remains in an internal circuit of the comparator. Such an input offset voltage is caused by the dispersion of electrical characteristics of the circuit elements, for example, FET transistors, resistors and the like, in the comparator and by temperature drift of these circuit elements. When decision level errors are caused by the input offset voltage, a precise comparison output voltage cannot be obtained from the comparator. Conventionally, there have been attempts to reduce or cancel the dispersion of values of the circuit elements, as countermeasures against the input offset voltage. Such countermeasures, however, are not satisfactory because it is difficult to mass-produce precise circuit elements without dispersion of their electrical characteristics. Moreover, it is necessary to provide an external clock generator for generating a clock signal to control an offset voltage cancellation circuit. In this case, it is also necessary to change the frequency of the clock signal when the frequency of an input signal is changed, in order to carry out the offset voltage cancellation over a constant period. US-A-4297642 discloses a comparator including an operational amplifier. Switches are provided for cancelling the offset voltage of the operational amplifier. Control signals to trigger the switches are generated by a switching signal generation circuit which responds to the zero crossing of the input signal. US-A-3748587 discloses an amplifier for weak DC signals. A drift correction circuit is provided. An output circuit is provided which holds a previously stored output of the differential amplifier. This output circuit is connected to the load in place of the output of the amplifier when the amplifier is in the drift correction mode. The present applicant's earlier European application EP-A-0150606 discloses a comparator including an operational amplifier. The comparator comprises a first comparator means; an input switching means for passing an input signal in one state wherein a comparison is effected and for interrupting the input signal in another state wherein an input offset voltage is cancelled, in the comparator the input switching means switching between said one state and said other state in response to a first control signal and, an input/output switching signal generation means (C) connected to the input switching means for generating control signals to switch between said one state and said other state; the first comparator means being connected to the input and switching means for outputting resultant comparison data in said one state and for cancelling said input offset voltage in said other state. According to the present invention, such a comparator is characterised in that there is provided an output switching means for holding an output signal in said one state and for outputting a held output signal in said other state of the input switching means, the output switching means comprising a first switch directly connecting an output signal of the comparator means to an output terminal, a holding means holding an output signal of the comparator means, and a second switch connecting an output signal of the holding means to the output terminal; and in that the input/output switching signal generation means comprises a second comparator to generate control signals in response to the input signal and is also connected to the output switching means, the input/output switching signal generation means being arranged to generate a second control signal, so that after the holding means holds the output of the comparator means, during a predetermined term, the first switch is turned OFF and the second switch is turned ON, and as a state other than the above, the first switch is turned ON, and the second switch is turned OFF, the output switching means switching between the said one and said other state in response to the first control signal generated by the input/output switching signal generation means during the said predetermined period. The present invention provides a comparator which enables generation of a precise comparison output voltage that is not affected by any input offset voltage. It also provides a comparator in which the clock signal for controlling the offset voltage cancellation circuit is generated in the comparator itself, based on the input signal to be compared, thus making it unnecessary to supply a clock signal from the external clock generator. It further prevents instability of an output voltage of the comparator during the offset cancelling operation. A particular embodiment of a comparator in accordance with this invention will now be described with reference to the accompanying drawings; in which:- Fig. 1 is a block diagram of a comparator according to an embodiment of the present invention; Fig. 2 is a signal timing chart for explaining relationships among an input signal waveform, an input offset voltage cancellation period, and a comparison period, according to the present invention; Fig. 3 is a basic block diagram for explaining a comparison function of the comparator shown in Fig. 1; Fig. 4 is a basic. block diagram for explaining a cancellation function of the input offset voltage of the comparator shown in Fig. 1; Fig. 5 is a detailed circuit diagram of the comparator shown in Fig. 1; Fig. 6 is a signal timing chart of each point of the comparator shown in Fig. 5; and, Fig. 7 is a timing chart for explaining the generation of the control signal CNT1. A comparator according to an embodiment of the present invention will be explained in detail with reference to the accompanying drawings. In Fig. 1, the comparator comprises an input switching circuit A, an output switching circuit B, an input/output switching signal generation circuit C, and a first comparator CMP1. A minus side input terminal (-IN) is used for inputting an input signal to be compared, and a plus side input terminal (+IN) for inputting a reference voltage, which is usually a half of a power source voltage V DD . The input switching circuit A can pass or cut the input signal by control of the circuit C in accordance with the comparison of the input signal or the cancellation of the input offset voltage. The output switching circuit B can hold the output signal in the comparison state and can switch the gates so as to output the signal from the holding circuit during a cancellation of input offset voltage. The input/output switching signal generation circuit C generates switching signals for control of the above circuits A and B. The first comparator CMP1 can function in two states, i.e., the input signal comparison state and the input offset voltage cancellation state, as explained in detail hereinafter. In Fig. 2, when the control signal as a clock signal is high level, the period τ denotes a cancellation period, and when the control signal is low level, this period denotes a comparison period. In this case, the period τ is determined by a maximum input frequency in such a way that the relationship between the period τ and the maximum input frequency f max (Hz) is given by τ < 1/2 · f max . Accordingly, the period τ is determined from the maximum frequency thereof based on the above formula. Therefore, the input offset voltage cancellation is performed during this high level period, and the comparison is performed during the low level period of the control signal. As shown by the dotted lines, the comparison period is defined by a changed portion of the polarity of the input signal based on the reference voltage V ref , and the cancellation period is defined by a non-changed portion of the polarity of the input signal. In the comparison period, the output of the comparator is switched from the high level to the low level or from the low level to the high level in response to the input signal. At the same time, the output of the first comparator CMP1 is held to the high level or the low level in the output holding circuit. Therefore, in the present invention, a comparison is performed only when the polarity of the input signal is changed, and the output of the comparator CMP1 is held at the high or low level in the output holding circuit in correspondence with a previous level. Accordingly, even if decision level errors occur due to the input offset voltage, since the comparison is performed during the comparison period; the input offset voltage does not affect the resultant comparison data. In Figs. 3 and 4, these circuits represent one state wherein the comparison is effected (Fig. 3) and the other state wherein the input offset voltage is cancelled, (Fig. 4). In these drawings, gates (transistor switches) G₁ to G₃ are provided in the input switching circuit A shown in Fig. 1 and gates G₄ and G₅ are provided in the output switching circuit B. These gates G₁ to G₅ are controlled by the input/output switching signal generation circuit C. OHC is an output holding circuit provided in the circuit B. The output holding circuit holds resultant comparison data and outputs this data to the output terminal during a cancellation period. In the comparison shown in Fig. 3, the gates G₁ and G₄ are ON and the gates G₂ , G₃ and G₅ are OFF. Therefore, the input signal (-IN) is compared with the reference voltage V ref so that the high or low level output is obtained from the output terminal. Simultaneously, this high or low level signal is held in the output holding circuit OHC. In the cancellation shown in Fig. 4, the gates G₂ , G₃ and G₅ are ON, and the gates G₁ and G₄ are OFF. Accordingly, the input terminals of the comparator CMP1 are shorted together since the gate G₂ is ON, and the feedback loop is formed because the gate G₃ is ON. The input offset voltage can be cancelled by holding the input offset voltage in the capacitor CC. While, since the gate G₅ is ON, the comparison data held in the OHC is output through the gate G₅ during this state so that the comparator CMP1 is not output in the cancellation period. In Fig. 5, the input switching circuit A comprises three gates G₁ to G₃ and a capacitor CC. Each gate is constituted by a pair of a P-channel MOS (PMOS) transistor and an N-channel MOS (NMOS) transistor. As is known, the PMOS transistor can be turned ON when the gate is low level, and the NMOS transistor can be turned ON when the gate is high level. Therefore, the ON or OFF state of each gate is controlled by the high or low level signal applied from the circuit C to each gate. As explained above, the capacitor CC holds the input offset voltage. The output switching circuit B comprises two gates G₄ and G₅ each having a PMOS and an NMOS, and a flip-flop circuit FF used as the output holding circuit OHC. FFO is an output signal of the circuit OHC. The input/output switching signal generation circuit C comprises a second comparator CMP2 for outputting a high or low level signal to generate control signals in response to a change in the input signal, three exclusive OR gates EXOR1 to EXOR3 each outputting control signals CNT1 to CNT3, and a plurality of inverters 1 to 14 and capacitors for inverting the control signal and for obtaining a delay time at each capacitor. The operation of this circuit will be explained with reference to Fig. 6. As explained in Figs. 3 and 4, in the comparison function the gates G₁ and G₄ are ON, and the gates G₂ , G₃ and G₅ are OFF. In order to obtain the above states, the control signals CNT2 and CNT3 are set to the low level during times T b1 and T b2 . The output signal OUT is switched from the low level to the high level during time T b1 , and from the high level to the low level during time T b2 . In this case, when the control signal CNT2 is low level, the PMOS of the gate G₄ is turned ON and the PMOS of the gate G₅ is turned OFF. Simultaneously, since the inverted control signal of the CNT2 is input to the NMOS of the gates G₄ and G₅ through the inverter 14, the gate G₄ is turned ON and the gate G₅ is turned OFF. Moreover, when the control signal CNT3 is low level, the gate G₁ is turned ON, and the gates G₂ and G₃ are turned OFF. These low levels of the control signals CNT2 and CNT3 are obtained from the exclusive OR gates EXOR2 and EXOR3. In the cancellation period, the gates G₁ and G₄ are OFF and the gates G₂ , G₃ and G₅ are ON. In order to obtain the above states, the control signals CNT2 and CNT3 are set to the high level during times T a1 and T a2 . During these times T a1 and T a2 , the output signal OUT is held to the low level during time T a1 or to the high level during time T a2 . In this case, since the output of the first comparator CMP1 is fed back to the inverted input side (minus side), the output of the first comparator CMP1 becomes a half of the power source voltage V DD . Moreover, since the control signal CNT1 from the exclusive OR gate EXOR1 to a clock terminal of the flip-flop circuit FF is held low, the data held in the flip-flop FF is output to the output terminal OUT through the gate G₅ in the cancellation period. This output signal FFO is similar to the low level signal during the time T a1 and to the high level signal during the time T a2 , at the output signal OUT. In the input/output switching signal generation circuit C, the control signal CNT1 is obtained from the outputs of the inverters 2 and 4 as shown in Fig. 7. That is, the output of the inverter 2 is input to the EXOR1 and the delayed output of the inverter 4 is also input to the EXOR1. In this case, the output of the inverter 2 is high level and that of the inverter 4 is low level during this delay time D. Therefore, the output of the EXOR1 becomes high level during this delay time D. That is, the control signal CNT1 can be obtained from the EXOR1. Moreover, the output of the inverter 4 is input to the inverter 5. Regarding the control signals CNT2 and CNT3, the output signal of the inverter 4 is delayed through the pairs of inverters 5 and 6, 7 and 8, 9 and 10, and 11 and 12. In this case, the delayed output signal of the inverter 6 and the other delayed output signal of the inverter 12 are input to the EXOR2, and the output of the inverter 8 and the output of the inverter 10 are input to the EXOR3. Therefore, with both inputs of each exclusive OR circuit EXOR2 and EXOR3 t high or low level, the output of the exclusive OR gate becomes low level, and when any one input is high or low level and another input is at an opposite level, the output becomes high level. In this case, as shown by arrow lines in Fig. 6, the change from high level to low level or from low level to high level is performed in correspondence with the leading edge or trailing edge of the second comparator CMP2. That is, based on the trailing edge and the leading edge of the comparator CMP2, the signals CNT1, CNT2 and CNT3 are changed from low level to high level. Therefore, when the control signal CNT2 is changed from low level to high level, the control signal CNT3 is also changed from low level to high level after a short delay. When the control.signal CNT3 is changed from high level to low level, the control signal CNT2 is also changed from high level to low level after a short delay. As explained above, in the present invention, the change of the input signal (-IN) is detected, the control signals CNT1 to 3 are generated, and the output of the comparator CMP1 is held in the output holding circuit. The offset cancellation state is then automatically realized during a predetermined period, and returns to the comparison state. Therefore, it is not necessary to provide the clock signal supplied from the external clock generator in order to cancel the offset voltage.

Claims: A comparator including an operational amplifier comprising: a first comparator means (CMP1); an input switching means (A, G1, G2, G3, CC) for passing an input signal in one state wherein a comparison is effected and for interrupting the input signal in another state wherein an input offset voltage is cancelled, in the comparator (CMP1), the input switching means switching between said one state and said other state in response to a first control signal (CNT3) and, an input/output switching signal generation means (C) connected to the input (A, G1, G2, G3, CC) switching means for generating control signals to switch between said one state and said other state; the first comparator means (CMP1) being connected to the input (A, G1, G2, G3, CC) switching means for outputting resultant comparison data in said one state and for cancelling said input offset voltage in said other state; characterised in that there is provided an output switching means (B, G4, G5, OHC) for holding an output signal in said one state and for outputting a held output signal in said other state of the input switching means (A, G1, G2, G3 CC), the output switching means comprising a first switch (G4) directly connecting an output signal of the comparator means (CMP1) to an output terminal (OUT), a holding means (FF) holding an output signal of the comparator means (CMP1), and a second switch (G5) connecting an output signal of the holding means (FF) to the output terminal (OUT); and in that the input/output switching signal generation means (C) comprises a second comparator (CMP2) to generate control signals (CNT1-3) in response to the input signal and is also connected to the output switching means (B, G4, G5, OHC), the input/output switching signal generation means (C) being arranged to generate a second control signal (CNT2), so that after the holding means (OHM) holds the output of the comparator means (CMP1), during a predetermined term, the first switch (G4) is turned OFF and the second switch (G5) is turned ON, and as a state other than the above, the first switch (G4) is turned ON, and the second switch (G5) is turned OFF, the output switching means switching between the said one and said other state in response to the first control signal (CNT3) generated by the input/output switching signal generation means during the said predetermined period. A comparator according to claim 1, wherein the input switching means (A) comprises three transistor gates (G1, G2, G3) for passing or interrupting the input signal and a capacitor (CC) for holding the input offset voltage. A comparator according to any one of the preceding claims, wherein the input/output switching signal generation means (C) further comprises three exclusive OR gates (EXOR1, 2 and 3) for outputting the control signals, and a plurality of inverters (5-12) and capacitors for delaying the control signals. A comparator according to any one of the preceding claims, wherein said one state wherein the comparison is effected is applied when the polarity of the input signals is changed based on a reference voltage. A comparator according to any one of the preceding claims, wherein said other state wherein the input offset voltage is cancelled is applied when the polarity of the input signal is not changed based on a reference voltage. A comparator according to any one of the preceding claims, wherein the period (τ) of said other state wherein the input offset voltage is cancelled is determined by a maximum input frequency. A comparator according to claim 6 wherein the relationship between said period (τ) and the maximum input frequency f max is given by τ < 1/2 f max .

Inventors: ITOH, AKIHIKO, KUNITOKI, TADAYOSHI
Applicants: FUJITSU LIMITED
Application year: 1987
Main classification: G01R17
IPC codes: H03K3, H03F1, H03K5, H03K12, G01R19, G01R17