Electronic circuit comprising a comparator

Abstract: This invention relates to the operation of common electronic comparators and particularly to an electronic circuit with a comparator for the operational test of integrated circuits (ICs). According to the invention, the electronic circuit comprises a common comparator (1) with an input (2), an output (4) and a reference input (3). To the reference input (3) a constant reference voltage (V ref ) is applied. The input voltage (V in ) to be compared with the reference voltage (V ref ) is superimposed to a time-dependent signal (8) and the resulting voltage is applied to the input (2) of the comparator (1).

Description: FIELD OF THE INVENTION The present invention relates to the operation of common electronic comparators and particularly to an electronic circuit with a comparator for the operational test of integrated circuits (ICs). BACKGROUND OF THE INVENTION A common electronic comparator (such as an operational amplifier) has two inputs and one output. To the first input a signal to be compared is applied and to the second input a reference voltage is applied. If the voltage of the signal to be compared exceeds the reference voltage, the voltage level of the output of the comparator changes its state from a low voltage level to a high voltage level or vice versa, depending on the comparator type. The reference voltage is a DC voltage adjusted to a specific voltage level. Most of the comparators have a hysteresis, i.e. an input voltage to be compared with the reference voltage will not be detected as being larger or smaller than the reference voltage, if the signal to be compared lies within the hysteresis area around the reference voltage. A comparator having the above features is known from document US-A-4 546 403. In the known art, a dither signal is superimposed on the analog input voltage. Furthermore, every electronic comparator has a delay, i.e. a time shift between the time when the signal to be compared is applied to the first input of the comparator and the time when the comparator generates an output signal depending on the result of the comparison of the input and the reference voltage. The delay depends on the specific overdrive, i.e. the voltage difference between the reference voltage and the input voltage to be compared, before the input voltage to be compared changes its state from a voltage level below the reference voltage to a level above the reference voltage or vice versa. The larger the overdrive the shorter the delay and vice versa. Thus there is a need for an electronic circuit comprising a comparator with a small hysteresis and a delay being stabilized and constant for different signals to be compared with a reference voltage. SUMMARY The present invention relates to an arrangement for the operational test of ICs and an electronic circuit comprising a comparator. Basically, an electronic circuit according to the invention comprises: a comparator with an input, an output and a reference input; a first signal source generating a constant voltage being applied to said reference input as a reference voltage; a second signal source generating a time-dependent voltage; and an adder adding an input voltage and said time-dependent voltage, generating a time-dependent voltage being applied to said input of said comparator, or a comparator with an input, an output and a reference input, an input voltage being applied to said input ; a first signal source generating a constant voltage; a second signal source generating a time-dependent voltage; an adder adding said constant voltage and said time-dependent voltage, generating a time-dependent voltage being applied to said reference input of said comparator. Furthermore, in the electronic circuit of the present invention the output of the comparator is applied to the input of a sampler while the time-dependent signal is applied to the clock input of the sampler. According to the invention, the voltage difference between the reference input and the input of the comparator is made time-dependent. A time-dependent voltage is superimposed either to an input voltage to be compared or to a constant reference voltage being applied to the comparator. Preferably, the time-dependent voltage is a strong increasing and falling periodic signal, such as a square wave signal. If the voltage level of the time-dependent voltage is periodical and exceeds the reference voltage significantly, the time delay of the comparator is nearly independent from the input signal to be compared. Furthermore, the delay of the comparator is very short as the larger the overdrive, the shorter the delay. In case that the input voltage lies within the hysteresis voltage area of the comparator, by superimposing of the time-dependent signal to the input voltage, one can achieve that the transfer characteristic of the comparator does not or nearly does not comprise a hysteresis area as described below in greater detail. According to a first embodiment of the invention the time-dependent voltage comprises a first and a second voltage level. The difference between both levels is chosen to be at least as large as the hysteresis voltage area around the reference voltage of said comparator. If an increasing input voltage reaches the bottom line of the hysteresis voltage area and the time-dependent voltage is superimposed to the input voltage, the voltage obtained has a level above the top line of the hysteresis voltage area. The output of the comparator switches from a first state to a second state and remains at the second state even if the time-dependent voltage falls to its lower voltage level. If an input signal lying above the top line of the hysteresis voltage area of the comparator decreases and enters the top line of the hysteresis voltage area, the comparator output will remain in its second state until the further decreasing input signal reaches the bottom line of the hysteresis area (in case that the time-dependent voltage is on its low level, i.e. a zero-voltage-level). The transmission characteristic of the comparator does not or nearly does not comprise a hysteresis area. According to a second embodiment of the invention the time-dependent voltage is a periodic square-wave signal with an increasing and falling signal flank which can be easily generated by common square-wave generators. According to a third embodiment of the invention a signal flank of the time-dependent signal can be used to trigger the sampler. If a time-delay circuit is connected between the time-dependent signal and the clock input of the sampler, the time-delay circuit is preferably adjusted that the sampler samples shortly after the signal flank. The present invention may be applied to an arrangement with several of the described circuits being used. Each comparator has a different reference voltage level and the signal to be compared is applied to each input of the comparators. The reference voltage level increases step-wise from one comparator to the next and from the minimum to the maximum expected voltage level of the input signal. Thus the resulting arrangement operates like an analog-to-digital converter and allows to determine the signal to be compared very precisely. This is of particular interest when analyzing the behavior of integrated circuits (ICs) under test. It is understood and expressly noted that the present invention relating to useful and novel combinations of the above disclosed features is defined in the appended claims. Furthermore, all cited advantages can be seen as objects solved by the invention in its entirety. BRIEF DESCRIPTION OF THE DRAWINGS For better understanding of the present invention, together with other and further objects, advantages and capabilities thereof, reference is made to the accompanying drawings, which are incorporated herein by reference and in which: Fig. 1 depicts a block diagram of an electronic circuit with a comparator and a D.C. reference voltage source according to prior art; Fig. 2 shows the transfer characteristic (output voltage versus input voltage) of the comparator in Fig. 1; Fig. 3a is a diagram showing a delay between an input signal and the corresponding output signal of the comparator in Fig. 1 for a first overdrive voltage; Fig. 3b is a diagram showing a delay for a second overdrive voltage being larger than the first overdrive voltage; Fig. 4 shows an electronic circuit with a comparator, an adder adding an input signal and a time-dependent signal; the resulting signal is applied to the input of the comparator of Fig. 1; Fig. 5a is a diagram voltage versus time with an input signal, a time-dependent signal being added to the input signal, a reference voltage and the hysteresis area of the comparator of Fig. 1; Fig. 5b shows the transfer characteristic (output voltage versus input voltage) of the comparator of Fig. 4; Fig. 6 is a block diagram of the electronic circuit of Fig. 4 comprising additionally a time-delay circuit and a sampling circuit. Fig. 1 shows a common comparator 1 with an input 2, an output 4 and a reference input 3. The input voltage V in to be compared with a reference voltage V ref is applied to the input 2 and the reference voltage V ref is applied to the reference input 3. The reference voltage V ref is generated by a D.C. signal source 5a. The voltage difference between V in and V ref is indicated by V comp . Fig. 2 shows the transfer characteristic of the comparator in Fig. 1 (output voltage versus input voltage of the comparator). Additionally, Fig. 2 shows the reference voltage V ref and a hysteresis voltage area ΔV hyst of the comparator 1 around the reference voltage V ref . An input signal 30 is applied to the input 2 of the comparator 1 in Fig. 1. When the voltage of the input signal 30 reaches the top line of the hysteresis voltage area, lying above the reference voltage V ref , at the input voltage V 2 , the output voltage of the comparator 1 changes its state to a high voltage level. When an input signal 31 with a decreasing voltage reaches the bottom line of the hysteresis voltage area of the comparator 1, at a voltage V 1 , lying below the reference voltage V ref , the output voltage of the comparator 1 switches from its high level voltage to its low level voltage. The voltage area between V 1 and V 2 is the hysteresis voltage area Δv hyst . Fig. 3a and 3b are diagrams of voltage versus time each showing the same reference voltage V ref , different input voltages V in1 , V in2 and corresponding output voltages V out1 , V out2 of the comparator 1. By comparison of Fig. 3a and 3b it will be seen that the delay t 2 in Fig. 3b is shorter than the delay t 1 in Fig. 3a, corresponding to a larger overdrive voltage V over2 in Fig. 3b with regard to the overdrive voltage V over1 in Fig. 3a. The voltage difference between a reference voltage V ref and an input voltage V in is called overdrive voltage. Fig. 4 shows a comparator 1 with an input 2, a reference input 3 and an output 4. The reference input 3 is connected with a first signal source 5a generating a constant voltage V ref . The input 2 of the comparator 1 is connected with a common adder, such as an integrating operational amplifier, which adds the input voltage V in to be compared with the reference voltage and a periodic square-wave signal generated by a second signal source 5b. Fig. 5a is a diagram voltage versus time for an example of an input signal with a time-dependent input voltage V in being added with a periodic square-wave signal 8. Furthermore, the diagram shows a constant reference voltage V ref and the voltage hysteresis area ΔV hyst around the reference voltage of the comparator 1. From t 0 to t switch the voltage V in of the input signal increases slowly and lies below the bottom line (dashed line in Fig. 5a) of the hysteresis voltage area. The periodic square-wave signal 8 is added to the time-dependent input signal to be compared. At t switch the input voltage is added to an increasing flank 18 of the periodic square-wave signal and the resulting voltage exceeds the top-line of the hysteresis voltage area ΔV hyst . From Fig. 5b showing output voltage V out versus input voltage V in of the comparator 1 it will be seen that at t switch and V switch the comparator 1 changes its state and the output voltage of the comparator increases from its low level to its high level. The periodic square-wave signal 8 comprises a signal breadth t 3 . After the time t switch + t 3 the periodic square-wave signal 8 has a zero voltage level, such as at t 4 . From t switch to t x the input voltage V in still increases. At t 4 the voltage of the input signal lies within the hysteresis voltage area ΔV hyst and the common comparator 1 still remains in its high level state up to the time t x . From the dashed line in Fig. 5b it will be seen that the output voltage of the common comparator 1 switches from its high level state to its low level state at t switch and V switch if the input signal is the same as described before but being a descending signal starting at t x . By comparison of Fig. 2 (prior art) and Fig. 5b it will be seen that the hysteresis voltage area ΔV hyst does not or nearly does not exist when the electronic circuit according to the invention is used. It should be noted that the time-dependent additional input voltage generated by the second signal source 5b may be chosen to have a significantly larger voltage difference between first voltage level 16 and second voltage level 17 than shown in Fig. 5a. The larger the overdrive, i.e. the voltage difference of the added input signal of the comparator 1 and its reference voltage, the smaller the delay-dependency. The same applies to delay-dependency of different slow rates of the input signal to be compared. Preferably, the voltage difference between the first voltage level 16 and the second voltage level 17 of the time-dependent voltage 8 is at least as large as the hysteresis voltage area ΔV hyst . This ensures that there is no or nearly no hysteresis voltage area in the transfer characteristic of the common comparator 1 as shown in Fig. 5b. It will be understood that a time-dependent additional input voltage having a higher frequency than that shown in Fig. 5a can be chosen to improve the transfer characteristic. Fig. 6 shows the electronic circuit of Fig. 4 and additionally a time-delay circuit 13 and a sampler 9, such as an edge-triggered flip-flop. The sampler input 10 of the sampler 9 is connected with the output 4 of the comparator 1. The clock input 11 of the sampler 9 is connected with the output 15 of the time-delay circuit 13. The input 14 of the time-delay circuit 13 is connected with the second signal source 5b generating a time-dependent additional input voltage, such as a periodic square-wave signal 8. The output of the sampler 9 is designated with 12. The sampler 9 is triggered by first signal flank 18 of the periodic square-wave signal 8. It will be understood that also the second signal flank 19 could be used to trigger the sampler 9. The time-delay circuit 13 is adjusted to a time-delay that the sampler samples after the first or second signal flank. The breadth of the square-wave signal 8, is indicated by t 3 . Preferably, the time-delay is adjusted to a time-delay t 3 + the decay time of the square-wave signal to ensure that only the input voltage V in to be compared with the reference voltage V ref is sampled. The common sampler 9 detects whether the output voltage V out of the comparator 1 is low or high when the triggering signal flank reaches the clock input of the sampler 9. Depending on whether the output signal V out of the comparator 1 is low or high, the sampler output 12 changes its voltage level. If the second signal flank 19 is used to trigger the sampler 9, the time-delay of the time-delay circuit 13 has to be chosen accordingly. It will be understood that the electronic circuit shown in Fig. 6 may comprise further time-delay circuits, such as a further time-delay circuit to delay the input voltage of the electronic circuit.

Claims: Electronic circuit comprising: a comparator (1) with an input (2), an output (4) and a reference input (3); a first signal source (5a) generating a constant voltage, being applied to said reference input (3) as a reference voltage (V ref ); a second signal source (5b) generating a time-dependent voltage (8); an adder (20) adding an input voltage (V in ) and said time-dependent voltage (8), generating a time-dependent voltage being applied to said input (2) of said comparator (1); a sampler (9), such as an edge-triggered flip-flop, with a sampler input (10), a clock input (11), and a sampler output (12); said sampler input (10) being connected with said output (4) of said comparator (1) and said clock input (11) being connected with said second signal source (5b) generating said time-dependent voltage (8); said time-dependent voltage (8) triggers said sampler (9). Electronic circuit comprising: a comparator (1) with an input (2), an output (4) and a reference input (3), an input voltage (V in ) being applied to said input (2) ; a first signal source (5a) generating a constant voltage; a second signal source (5b) generating a time-dependent voltage (8); an adder (20) adding said constant voltage and said time-dependent voltage (8), generating a time-dependent voltage being applied to said reference input (3) of said comparator (1); a sampler (9), such as an edge-triggered flip-flop, with a sampler input (10), a clock input (11), and a sampler output (12); said sampler input (10) being connected with said output (4) of said comparator (1) and said clock input (11) being connected with said second signal source (5b) generating said time-dependent voltage (8); said time-dependent voltage (8) triggers said sampler (9). Electronic circuit as defined in claim 1 or 2, wherein said time-dependent voltage (8) comprises a first (16) and a second voltage level (17) and the difference between said first and second voltage level (16, 17) being at least as large as the hysteresis voltage area (Δv hyst ) of said comparator (1). Electronic circuit as defined in claims 1 to 3, wherein said second signal source (5b) generates a time-dependent voltage (8) with a signal flank (18, 19). Electronic circuit as defined in claims 1 to 4, wherein said time-dependent voltage is a periodic signal (8). Electronic circuit as defined in claims 1 to 5, wherein said second signal source (5b) generates a square-wave signal (8). Electronic circuit as defined in any one of the above claims, wherein said signal flank (18, 19) of said time-dependent voltage (8) triggers said sampler (9). Electronic circuit as defined in claim 7, wherein a positive signal flank and/or negative signal flank (19) of said time-dependent voltage (8) triggers said sampler. Electronic circuit as defined in any one of the above claims comprising a time-delay circuit (13), such as an individually adjustable time-delay circuit (13), with an input (14) and an output (15), wherein said input (14) of said time-delay circuit being connected with an output of said second signal source (5b), generating a time dependent voltage, and said output (15) of said time-delay circuit being connected with said clock input of said sampler (9). Electronic circuit as defined in claim 9, wherein said time-delay circuit comprises a time delay that the sampler (9) samples after a first or second signal flank (18, 19).

Inventors: SCHINZEL PETER, SCHINZEL, PETER
Applicants: HEWLETT PACKARD GMBH, HEWLETT-PACKARD GMBH
Application year: 1995
Main classification: H03K3
IPC codes: G01R19, H03K5, H03K3, G01R31