US20020017928A1 - Comparator circuit - Google Patents
Comparator circuit Download PDFInfo
- Publication number
- US20020017928A1 US20020017928A1 US09/925,167 US92516701A US2002017928A1 US 20020017928 A1 US20020017928 A1 US 20020017928A1 US 92516701 A US92516701 A US 92516701A US 2002017928 A1 US2002017928 A1 US 2002017928A1
- Authority
- US
- United States
- Prior art keywords
- output
- gate
- input
- comparator
- signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K5/00—Manipulating of pulses not covered by one of the other main groups of this subclass
- H03K5/22—Circuits having more than one input and one output for comparing pulses or pulse trains with each other according to input signal characteristics, e.g. slope, integral
- H03K5/24—Circuits having more than one input and one output for comparing pulses or pulse trains with each other according to input signal characteristics, e.g. slope, integral the characteristic being amplitude
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K3/00—Circuits for generating electric pulses; Monostable, bistable or multistable circuits
- H03K3/02—Generators characterised by the type of circuit or by the means used for producing pulses
- H03K3/027—Generators characterised by the type of circuit or by the means used for producing pulses by the use of logic circuits, with internal or external positive feedback
- H03K3/037—Bistable circuits
- H03K3/0377—Bistables with hysteresis, e.g. Schmitt trigger
Definitions
- the invention relates to a comparator circuit.
- Comparators are used in order to map an input variable, for example an input voltage, onto a logic state. If the input voltage is below the threshold value of the comparator, then the output voltage from the comparator is at the first logic level, for example low (L), and if the input voltage is above the threshold value, then the output voltage is at the second logic level, for example high (H).
- L low
- H high
- a quality criterion for comparators is the accuracy with which a specific, defined switching threshold is carried out.
- one problem, which often arises is that the input signal of the comparator is subject to interference or noise. This leads to the comparator switching backward and forward in a rapid sequence between the logic levels L and H. The signal bouncing is undesirable. Bouncing must be avoided, particularly when the aim, for example, is to count events or to generate a clock on the basis of an external signal.
- One known remedial measure is to provide the comparator with hysteresis.
- the threshold above which the input signal must rise is higher for switching from L to H than for switching back from H to L. If the interval between the switching thresholds is made greater than the amplitude of the interference to be expected, then unambiguous signal evaluation is feasible. However, the interference immunity is gained at the expense of switching threshold accuracy, since it is split between two values. If the switching thresholds are chosen such that the upper and the lower value are each symmetrical with respect to the actually desired switching threshold, then this admittedly results in the minimum discrepancies overall, but there is now no longer any switching threshold precisely where it actually should be. This is irrelevant if one just wishes to count events.
- a comparator circuit contains an input for receiving an input signal, an output terminal outputting an output signal, and a first comparator connected to the input and receiving the input signal.
- the first comparator When the input signal exceeds a threshold value T 1 , the first comparator generates a first output signal switching from a first logic signal to a second logic signal, in which case a switching of the output signal from the first logic signal to the second logic signal can be initiated only by the first comparator switching from the first logic signal to the second logic signal.
- a monitoring circuit is connected between the input and the output terminal.
- the monitoring circuit contains a second comparator connected to the input and has a switching hysteresis with a switching-on threshold T 2 and a switching-off threshold T 3 , where T 2 >T 3 .
- the second comparator and the first comparator each have an output.
- An output circuit and a logic circuit are provided.
- the logic circuit is connected to the output circuit, to the output of the first comparator, and to the output of the second comparator.
- the logic circuit links the output of the first comparator and the second comparator to the output circuit in such a manner that, when the input signal exceeds the threshold value T 1 , the output circuit emits the second logic signal and then remains inhibited against returning to the first logic signal until the input signal has once again fallen below the threshold value T 1 after exceeding the switching-on threshold value T 2 .
- a reset circuit is connected to the output circuit and the logic circuit. The reset circuit is able to reset the output circuit to a quiescent state irrespective of a state of the first comparator and the second comparator, and in the quiescent state the output signal at the output terminal is at the first logic signal, and the output circuit maintains its present state until the first comparator and the second comparator output signals are the first logic signal.
- the undesirable bouncing is avoided in that, after switching from the first to the second logic level, the circuit output remains inhibited against switching back until the input signal has reached a second threshold value, which is higher than the switching threshold of the first comparator.
- the switching threshold of the circuit output is governed by the switching threshold of the comparator, but the switching times are dependent on whether and when the input signal reaches the second threshold value.
- the monitoring circuit contains a further comparator, which has hysteresis and whose input is connected to the circuit input, and a logic circuit.
- the monitoring circuit is configured such that the comparator can emit a signal only when the input signal supplied to it is sufficiently large to switch the further comparator that has hysteresis, as well. If the input signal is too low, the output signal is not switched.
- the comparator does not act directly on the output itself, it must, however, enable the circuit to allow the comparator to switch back again and to produce a new output flank.
- a reset circuit by which the comparator circuit can be switched to a defined initial state, which is independent of the switching states of the comparators when the reset signal is present.
- the purpose of the reset circuit is that the very first switching (the very first output flank or edge) of the comparator is not defined by a reset event or by the reset end, but occurs precisely at the time at which the input signal would lead to switching of the comparator.
- the reset signal changes the output signal from the comparator circuit to the reset state, and locks the comparator output circuit. Enabling does not take place until the time when the internal comparator output matches the reset state, which is present at the output. This ensures that the next output flank at the output of the comparator circuit is also related to switching of the comparator.
- a further advantage of the reset circuit is that a defined output situation is reached, in which, for example, the output signals from the comparators assume the level; this has an advantageous effect on the power consumption of the circuit.
- the output circuit is a flip-flop with a set input, a reset input and an output being the output terminal.
- the logic circuit has a first AND gate, a second AND gate, a first NOT gate with an output, and a second NOT gate with an output.
- the first AND gate has a first input connected to the output of the first comparator and a second input connected to the output of the second NOT gate.
- the second NOT gate has an input connected to the output of the second comparator.
- the second AND gate has a first input connected to the output of the first NOT gate and a second input connected to the output of the second comparator.
- the first NOT gate has an input connected to the output of the first comparator.
- the flip-flop includes a first NOR gate having an output and inputs and a second NOR gate having an output and inputs.
- the output of the first NOR gate is connected to one of the inputs of the second NOR gate, and the output of the second NOR gate connected to one of the inputs of the first NOR gate.
- the reset circuit includes a third NOT gate having an input and an output; an input connection connected to the input of the third NOT gate; and a third AND gate having a first input connected to the output of the second NOR gate of the flip-flop, a second input connected to the output of the third NOT gate, and an output connected to one of the inputs of the first NOR gate of the flip-flop.
- a further flip-flop is provided and has a set input, a reset input connected to the input connection for receiving a reset signal, and an output connected to a third input of the first AND gate and to a third input of the second AND gate.
- An exclusive-OR gate is provided and has an output connected to the set input of the further flip-flop, a first input connected to the output of the first NOT gate and to the second input of the second AND gate, and a second input connected to the output of the third AND gate.
- the threshold value T 1 , the switch-on threshold T 2 and the switch-off threshold T 3 are chosen such that T 3 ⁇ T 1 ⁇ T 2 .
- the first logic signal is low (logic 0), and the second logic signal is high (logic 1).
- FIG. 1 is a circuit diagram of a first embodiment of a comparator circuit according to the invention.
- FIG. 2 is a timing diagram of an input signal and of switching processes initiated by the input signal
- FIG. 3 is a circuit diagram of a second embodiment, in which the comparator circuit is provided with a reset circuit.
- FIG. 1 there is shown a first exemplary embodiment of the invention.
- An input is connected to inputs of two comparators K 1 , K 2 and receives an input signal E.
- the comparator K 1 essentially has no hysteresis, and it switches from L to H when the input signal E exceeds a threshold T 1 (see FIG. 2).
- the comparator K 2 has hysteresis.
- the comparator K 2 switches from L to H when the input signal E exceeds a threshold T 2 , and from H to L when the input signal E falls below T 3 .
- the output signals from the comparators K 1 , K 2 are supplied to a logic circuit LS, which itself has two outputs which are supplied to an output circuit F 1 .
- the output circuit F 1 is a flip-flop containing two NOR gates N 1 , N 2 , and whose signal level at an output A is L in the quiescent state.
- the logic circuit LS has two AND gates U 1 , U 2 . An output of the first AND gate U 1 is connected to a set input S 1 of the flip-flop F 1 , and an output of the second AND gate U 2 is connected to a reset input R 1 of the flip-flop F 1 .
- the output of the comparator K 1 is connected to a first input of the AND gate U 1 , and, via a first NOT (inverter) gate I 1 , to the first input of the AND gate U 2 .
- the output of the comparator K 2 is connected to the second input of a second AND gate U 2 , and via a second NOT (inverter) gate I 2 to the second input of the first AND gate U 1 .
- the output signal from the comparators K 1 and K 2 is in each case L.
- the signal L is thus present at the first input of the AND gate U 1 and, as a consequence of the inversion by the NOT gate I 2 , the signal H is present at its second input.
- a value H is present at the first input of the second AND gate U 2
- the output signal from the comparator K 2 which assumes the value L, is present at the second input.
- the signal L is present both at the set input S 1 of the flip-flop F 1 and at its reset input R 1 , and the output signal A from the flip-flop F 1 is likewise L.
- FIG. 2 shows the profile of the input signal E, schematically.
- the line T 1 denotes the switching threshold of the comparator K 1
- the line T 2 the switching-on threshold
- T 3 the switching-off threshold of the comparator K 2 .
- the input signal E rises from the value 0 to the threshold value T 1 of the comparator K 1 , which it reaches at a time t 1 .
- the output signal from K 1 thus becomes H at the time t 1 .
- the signal H is present at both inputs of the AND gate U 1 at the time t 1 , and the output signal from U 1 likewise changes to H. Since the output signal from the AND gate U 1 is supplied to the set input S 1 of the flip-flop F 1 , the flip-flop F 1 is set, and its output assumes the value H at the time t 1 . Since the input signal E is still below the switching-on threshold T 2 of the comparator K 2 , its output signal remains at L at the time t 1 .
- the signal E rises further and reaches the switching-on threshold value T 2 of the comparator K 2 at a time t 2 .
- the output of the comparator K 2 thus switches to H.
- the second input of the first AND gate U 1 thus changes to L, so that the output signal from the AND gate U 1 likewise falls to L.
- the output signal H from the comparator K 1 is inverted by the NOT gate I 1 , so that the signal L is present at the first input of the AND gate U 2 .
- the output signal from the second AND gate remains at L, and the output signal from the flip-flop F 1 remains unchanged at the value H.
- the input signal E falls below the threshold value T 1 of the comparator K 1 at a time t 4 , and its output signal changes back to L.
- the output signal from the comparator K 2 remains at H, since the input signal E has not yet fallen below the threshold value T 3 .
- the signal L is present at each of the inputs of the first AND gate U 1
- the signal H is present at each of the two inputs of the second AND gate U 2 .
- the output signal from the AND gate U 2 is thus reset to H at the time t 4 , and the flip-flop F 1 is reset such that its output changes back from H to L.
- the input signal E once again reaches the threshold value T 1 of the comparator K 1 at the time t 5 , so that its output signal changes to H.
- the inversion by the first NOT gate I 1 results in the first input of the second AND gate U 2 being set to the value L.
- the output of the second AND gate U 2 thus likewise remains at L. Since the inversion of the output signal from the comparator K 2 by the NOT gate I 2 also results in the second input of the first AND gate U 1 being at L, the signal level which is present at the set input S 1 is also L.
- the flip-flop F 1 is thus locked in the state, which it assumed at the time t 4 , and its output signal remains L.
- the input signal E once again falls below the level T 1 , so that the output signal from the comparator K 1 becomes L once again.
- the signal L is thus present at both inputs of the first AND gate U 1 , and its output is likewise L.
- the inversion by the NOT gate I 1 then results in the value H being present at both inputs of the second AND gate U 2 , so that the signal H appears at the output of the second AND gate U 2 , and the flip-flop F 1 is reset.
- the output signal A remains unchanged.
- the input signal E falls below the switching-off threshold value T 3 of the comparator K 2 at a time t 7 .
- the output signal from the comparator K 2 thus changes back to L.
- both comparators K 1 , K 2 produce the output signal L and, in consequence, the output signals from the two AND gates U 1 and U 2 are both L.
- the output of the flip-flop F 1 thus remains unchanged at L.
- the input signal E once again reaches the switching-off threshold value T 1 of the comparator K 2 .
- T 1 of the comparator K 2 since this does not switch from L to H at T 3 , but not until T 2 , and the input signal likewise results in the comparator K 1 output being L, no change in the switching state occurs at time t 8 .
- the input signal E once again reaches the switching-on threshold T 1 of the comparator K 1 at a time t 9 , and its output signal in consequence changes from L to H.
- the output signal from the comparator K 2 is L. This is inverted by the second NOT gate I 2 , so that the signal H is present at both inputs of the first AND gate U 1 at the time t 9 .
- the output signal from the AND gate U 1 thus changes to H at the time t 9 , which results in the flip-flop F 1 being set, and its output A changing from L to H.
- the input signal E once again falls below the threshold value T 1 of the comparator K 1 at the time t 10 , so that its output signal changes from H to L. In consequence, the output of the first AND gate U 1 falls from H to L.
- the inversion of the output signal from the comparator K 1 by the NOT gate I 1 results in the signal H being present at the first input of the second AND gate U 2 , and the output signal from the comparator K 2 , which is L, being present at the second input.
- the output signal from the AND gate U 2 is thus L, and the state of the flip-flop F 1 remains unchanged at the value H.
- the input signal E once again reaches the switching threshold T 1 of the first comparator K 1 at the time t 11 , and its output signal thus becomes H. Since the output signal from the comparator K 2 continues to remain at L, the output signal from the first AND gate U 1 becomes H, and the output signal from the second AND gate U 2 remains at L.
- the flip-flop F 1 is thus set. However, since the output signal had already assumed the value H at t 9 , the output level of the flip-flop F 1 remains unchanged.
- the flip-flop F 1 is set when the threshold value T 1 of the comparator K 1 is exceeded, and is not reset until the higher, upper threshold value T 2 has been exceeded by the comparator K 2 with hysteresis. If the threshold value T 2 is not reached, the output of the comparator K 2 never reaches the value H and, in consequence, the reset input R 1 of the flip-flop F 1 cannot assume the value H required for resetting.
- FIG. 3 shows a further exemplary embodiment of the comparator circuit according to the invention, in which a reset circuit RS is provided.
- the reset circuit RS contains a third AND gate U 3 , whose first input is connected to the output of the second NOR gate N 2 in the flip-flop F 1 .
- the second input of the first NOR gate N 1 is no longer directly connected to the output of the second NOR gate N 2 , but to the output of the third AND gate U 3 .
- the second input of the third AND gate U 3 is connected via a third NOT gate I 3 to a reset input connection C.
- the inversion by the NOT gate I 3 results in the input signal at the second input of the AND gate U 3 assuming the value H.
- the output signal A depends only on whether the second NOR gate N 2 in the flip-flop F 1 is producing the value H or L at its output. Therefore, when the reset input C is at L, the flip-flop F 1 , to which the third AND gate U 3 has been added, operates in precisely the same way as the flip-flop F 1 in FIG. 1. If the signal H is applied to the reset input C, the input signal at the second input of U 3 becomes L and, in consequence, the output A of the circuit is changed to L.
- the reset input connection C is also connected to the reset input R 2 of a second flip-flop F 2 , which contains NOR gates N 3 , N 4 .
- the AND gates U 1 , U 2 each have three inputs.
- the first two inputs are connected in precisely the same way as in the exemplary embodiment shown in FIG. 1.
- the third inputs are both connected to the output A 2 of the second flip-flop F 2 .
- a set input S 2 of the flip-flop F 2 is connected to an output of an exclusive-OR gate X.
- One input of the exclusive-OR gate is connected to the output of the NOT gate I 1 , and to the first input of the second AND gate U 2 .
- the other input of the exclusive-OR gate X is connected to the output A of the circuit.
- the output A is reset to the signal L.
- the signal H is present at the reset input of the flip-flop F 2 .
- the output signal from the comparator K 1 inverted by I 1 , that is to say the signal L, is present at the first input of the exclusive-OR gate X.
- the signal L is likewise present at the second input of the exclusive-OR gate X.
- the output signal from the exclusive-OR gate X is likewise L.
- the output A 2 of the flip-flop F 2 becomes L.
- the AND gates U 1 and U 2 each block the output signals from the comparators K 1 , K 2 .
Landscapes
- Physics & Mathematics (AREA)
- Nonlinear Science (AREA)
- Manipulation Of Pulses (AREA)
- Measurement Of Current Or Voltage (AREA)
Abstract
A comparator circuit is described and contains a comparator, which is provided with an operating point. A monitoring circuit suppresses undesired signal bouncing at the output. The bouncing is produced by interferences of the input signal. The monitoring circuit ensures that the circuit output is locked from being switched back to another logical level after switching until the input signal has reached a second threshold value that is higher than the operating point.
Description
- This application is a continuation of copending International Application No. PCT/DE00/00306, filed Feb. 1, 2000, which designated the United States.
- The invention relates to a comparator circuit. Comparators are used in order to map an input variable, for example an input voltage, onto a logic state. If the input voltage is below the threshold value of the comparator, then the output voltage from the comparator is at the first logic level, for example low (L), and if the input voltage is above the threshold value, then the output voltage is at the second logic level, for example high (H).
- A quality criterion for comparators is the accuracy with which a specific, defined switching threshold is carried out. In a sensor system, or else in comparators, which are used in peripheral circuit parts, one problem, which often arises is that the input signal of the comparator is subject to interference or noise. This leads to the comparator switching backward and forward in a rapid sequence between the logic levels L and H. The signal bouncing is undesirable. Bouncing must be avoided, particularly when the aim, for example, is to count events or to generate a clock on the basis of an external signal.
- One known remedial measure is to provide the comparator with hysteresis. In this case, the threshold above which the input signal must rise is higher for switching from L to H than for switching back from H to L. If the interval between the switching thresholds is made greater than the amplitude of the interference to be expected, then unambiguous signal evaluation is feasible. However, the interference immunity is gained at the expense of switching threshold accuracy, since it is split between two values. If the switching thresholds are chosen such that the upper and the lower value are each symmetrical with respect to the actually desired switching threshold, then this admittedly results in the minimum discrepancies overall, but there is now no longer any switching threshold precisely where it actually should be. This is irrelevant if one just wishes to count events. However, if accurate position or time determination is also intended to be carried out, for example in the sensor system, this response has a disturbing effect. For example, for sensors, which have to evaluate an approximately sinusoidal signal, for example gear wheel sensors, it is advantageous for reasons of accuracy to switch at the signal zero crossing, while one would have to switch in the vicinity of the signal peak, for interference immunity reasons.
- It is accordingly an object of the invention to provide a comparator circuit that overcomes the above-mentioned disadvantages of the prior art devices of this general type, which has an accurate, largely hysteresis-free switching threshold, but which also offers interference immunity, by which disturbing bouncing is avoided.
- With the foregoing and other objects in view there is provided, in accordance with the invention, a comparator circuit. The comparator circuit contains an input for receiving an input signal, an output terminal outputting an output signal, and a first comparator connected to the input and receiving the input signal. When the input signal exceeds a threshold value T1, the first comparator generates a first output signal switching from a first logic signal to a second logic signal, in which case a switching of the output signal from the first logic signal to the second logic signal can be initiated only by the first comparator switching from the first logic signal to the second logic signal. A monitoring circuit is connected between the input and the output terminal. The monitoring circuit contains a second comparator connected to the input and has a switching hysteresis with a switching-on threshold T2 and a switching-off threshold T3, where T2>T3. The second comparator and the first comparator each have an output. An output circuit and a logic circuit are provided. The logic circuit is connected to the output circuit, to the output of the first comparator, and to the output of the second comparator. The logic circuit links the output of the first comparator and the second comparator to the output circuit in such a manner that, when the input signal exceeds the threshold value T1, the output circuit emits the second logic signal and then remains inhibited against returning to the first logic signal until the input signal has once again fallen below the threshold value T1 after exceeding the switching-on threshold value T2. A reset circuit is connected to the output circuit and the logic circuit. The reset circuit is able to reset the output circuit to a quiescent state irrespective of a state of the first comparator and the second comparator, and in the quiescent state the output signal at the output terminal is at the first logic signal, and the output circuit maintains its present state until the first comparator and the second comparator output signals are the first logic signal.
- According to the invention, the undesirable bouncing is avoided in that, after switching from the first to the second logic level, the circuit output remains inhibited against switching back until the input signal has reached a second threshold value, which is higher than the switching threshold of the first comparator. The switching threshold of the circuit output is governed by the switching threshold of the comparator, but the switching times are dependent on whether and when the input signal reaches the second threshold value.
- According to one refinement of the invention, the monitoring circuit contains a further comparator, which has hysteresis and whose input is connected to the circuit input, and a logic circuit. The monitoring circuit is configured such that the comparator can emit a signal only when the input signal supplied to it is sufficiently large to switch the further comparator that has hysteresis, as well. If the input signal is too low, the output signal is not switched. Although the comparator does not act directly on the output itself, it must, however, enable the circuit to allow the comparator to switch back again and to produce a new output flank.
- In one particularly advantageous refinement of the invention, a reset circuit is provided, by which the comparator circuit can be switched to a defined initial state, which is independent of the switching states of the comparators when the reset signal is present. The purpose of the reset circuit is that the very first switching (the very first output flank or edge) of the comparator is not defined by a reset event or by the reset end, but occurs precisely at the time at which the input signal would lead to switching of the comparator. The reset signal changes the output signal from the comparator circuit to the reset state, and locks the comparator output circuit. Enabling does not take place until the time when the internal comparator output matches the reset state, which is present at the output. This ensures that the next output flank at the output of the comparator circuit is also related to switching of the comparator.
- A further advantage of the reset circuit is that a defined output situation is reached, in which, for example, the output signals from the comparators assume the level; this has an advantageous effect on the power consumption of the circuit.
- In accordance with an added feature of the invention, the output circuit is a flip-flop with a set input, a reset input and an output being the output terminal.
- In accordance with an additional feature of the invention, the logic circuit has a first AND gate, a second AND gate, a first NOT gate with an output, and a second NOT gate with an output. The first AND gate has a first input connected to the output of the first comparator and a second input connected to the output of the second NOT gate. The second NOT gate has an input connected to the output of the second comparator. The second AND gate has a first input connected to the output of the first NOT gate and a second input connected to the output of the second comparator. The first NOT gate has an input connected to the output of the first comparator.
- In accordance with a further feature of the invention, the flip-flop includes a first NOR gate having an output and inputs and a second NOR gate having an output and inputs. The output of the first NOR gate is connected to one of the inputs of the second NOR gate, and the output of the second NOR gate connected to one of the inputs of the first NOR gate.
- In accordance with another feature of the invention, the reset circuit includes a third NOT gate having an input and an output; an input connection connected to the input of the third NOT gate; and a third AND gate having a first input connected to the output of the second NOR gate of the flip-flop, a second input connected to the output of the third NOT gate, and an output connected to one of the inputs of the first NOR gate of the flip-flop. A further flip-flop is provided and has a set input, a reset input connected to the input connection for receiving a reset signal, and an output connected to a third input of the first AND gate and to a third input of the second AND gate. An exclusive-OR gate is provided and has an output connected to the set input of the further flip-flop, a first input connected to the output of the first NOT gate and to the second input of the second AND gate, and a second input connected to the output of the third AND gate.
- In accordance with a further added feature of the invention, the threshold value T1, the switch-on threshold T2 and the switch-off threshold T3 are chosen such that T3<T1<T2.
- In accordance with a concomitant feature of the invention, the first logic signal is low (logic 0), and the second logic signal is high (logic 1).
- Other features which are considered as characteristic for the invention are set forth in the appended claims.
- Although the invention is illustrated and described herein as embodied in a comparator circuit, it is nevertheless not intended to be limited to the details shown, since various modifications and structural changes may be made therein without departing from the spirit of the invention and within the scope and range of equivalents of the claims.
- The construction and method of operation of the invention, however, together with additional objects and advantages thereof will be best understood from the following description of specific embodiments when read in connection with the accompanying drawings.
- FIG. 1 is a circuit diagram of a first embodiment of a comparator circuit according to the invention;
- FIG. 2 is a timing diagram of an input signal and of switching processes initiated by the input signal; and
- FIG. 3 is a circuit diagram of a second embodiment, in which the comparator circuit is provided with a reset circuit.
- In all the figures of the drawing, sub-features and integral parts that correspond to one another bear the same reference symbol in each case. Referring now to the figures of the drawing in detail and first, particularly, to FIG. 1 thereof, there is shown a first exemplary embodiment of the invention. An input is connected to inputs of two comparators K1, K2 and receives an input signal E. The comparator K1 essentially has no hysteresis, and it switches from L to H when the input signal E exceeds a threshold T1 (see FIG. 2). The comparator K2 has hysteresis. The comparator K2 switches from L to H when the input signal E exceeds a threshold T2, and from H to L when the input signal E falls below T3. The output signals from the comparators K1, K2 are supplied to a logic circuit LS, which itself has two outputs which are supplied to an output circuit F1. The output circuit F1 is a flip-flop containing two NOR gates N1, N2, and whose signal level at an output A is L in the quiescent state. The logic circuit LS has two AND gates U1, U2. An output of the first AND gate U1 is connected to a set input S1 of the flip-flop F1, and an output of the second AND gate U2 is connected to a reset input R1 of the flip-flop F1. The output of the comparator K1 is connected to a first input of the AND gate U1, and, via a first NOT (inverter) gate I1, to the first input of the AND gate U2. The output of the comparator K2 is connected to the second input of a second AND gate U2, and via a second NOT (inverter) gate I2 to the second input of the first AND gate U1.
- The initial state of the circuit is assumed to be defined by the input signal being E=0. In this case, the output signal from the comparators K1 and K2 is in each case L. The signal L is thus present at the first input of the AND gate U1 and, as a consequence of the inversion by the NOT gate I2, the signal H is present at its second input. As a consequence of the inversion by the NOT gate I1, a value H is present at the first input of the second AND gate U2, and the output signal from the comparator K2, which assumes the value L, is present at the second input. In consequence, the signal L is present both at the set input S1 of the flip-flop F1 and at its reset input R1, and the output signal A from the flip-flop F1 is likewise L.
- FIG. 2 shows the profile of the input signal E, schematically. In the diagram, the line T1 denotes the switching threshold of the comparator K1, the line T2 the switching-on threshold and T3 the switching-off threshold of the comparator K2.
- As shown in FIG. 2, the input signal E rises from the
value 0 to the threshold value T1 of the comparator K1, which it reaches at a time t1. The output signal from K1 thus becomes H at the time t1. In consequence, the signal H is present at both inputs of the AND gate U1 at the time t1, and the output signal from U1 likewise changes to H. Since the output signal from the AND gate U1 is supplied to the set input S1 of the flip-flop F1, the flip-flop F1 is set, and its output assumes the value H at the time t1. Since the input signal E is still below the switching-on threshold T2 of the comparator K2, its output signal remains at L at the time t1. - The signal E rises further and reaches the switching-on threshold value T2 of the comparator K2 at a time t2. The output of the comparator K2 thus switches to H. As a consequence of the inversion by the NOT gate I2, the second input of the first AND gate U1 thus changes to L, so that the output signal from the AND gate U1 likewise falls to L. The output signal H from the comparator K1 is inverted by the NOT gate I1, so that the signal L is present at the first input of the AND gate U2. In consequence, the output signal from the second AND gate remains at L, and the output signal from the flip-flop F1 remains unchanged at the value H.
- At a time t3, the input signal E falls below the threshold value T2. Since, owing to its hysteresis, the output of the comparator K2 does not fall back to L until the input signal E falls below the lower threshold value T3, nothing changes in the switching states of the comparators K1, K2 at the time t3, and the output A of the flip-flop F1 remains at H.
- The input signal E falls below the threshold value T1 of the comparator K1 at a time t4, and its output signal changes back to L. However, the output signal from the comparator K2 remains at H, since the input signal E has not yet fallen below the threshold value T3. In consequence, the signal L is present at each of the inputs of the first AND gate U1, and the signal H is present at each of the two inputs of the second AND gate U2. The output signal from the AND gate U2 is thus reset to H at the time t4, and the flip-flop F1 is reset such that its output changes back from H to L. The input signal E once again reaches the threshold value T1 of the comparator K1 at the time t5, so that its output signal changes to H. The inversion by the first NOT gate I1 results in the first input of the second AND gate U2 being set to the value L. The output of the second AND gate U2 thus likewise remains at L. Since the inversion of the output signal from the comparator K2 by the NOT gate I2 also results in the second input of the first AND gate U1 being at L, the signal level which is present at the set input S1 is also L. The flip-flop F1 is thus locked in the state, which it assumed at the time t4, and its output signal remains L. At a time t6, the input signal E once again falls below the level T1, so that the output signal from the comparator K1 becomes L once again. The signal L is thus present at both inputs of the first AND gate U1, and its output is likewise L. The inversion by the NOT gate I1 then results in the value H being present at both inputs of the second AND gate U2, so that the signal H appears at the output of the second AND gate U2, and the flip-flop F1 is reset. However, since its output had previously assumed the level L, the output signal A remains unchanged. The input signal E falls below the switching-off threshold value T3 of the comparator K2 at a time t7. The output signal from the comparator K2 thus changes back to L. In this state, both comparators K1, K2 produce the output signal L and, in consequence, the output signals from the two AND gates U1 and U2 are both L. The output of the flip-flop F1 thus remains unchanged at L. At a time t8, the input signal E once again reaches the switching-off threshold value T1 of the comparator K2. However, since this does not switch from L to H at T3, but not until T2, and the input signal likewise results in the comparator K1 output being L, no change in the switching state occurs at time t8. The input signal E once again reaches the switching-on threshold T1 of the comparator K1 at a time t9, and its output signal in consequence changes from L to H. At this time, the output signal from the comparator K2 is L. This is inverted by the second NOT gate I2, so that the signal H is present at both inputs of the first AND gate U1 at the time t9. The output signal from the AND gate U1 thus changes to H at the time t9, which results in the flip-flop F1 being set, and its output A changing from L to H. The input signal E once again falls below the threshold value T1 of the comparator K1 at the time t10, so that its output signal changes from H to L. In consequence, the output of the first AND gate U1 falls from H to L. The inversion of the output signal from the comparator K1 by the NOT gate I1 results in the signal H being present at the first input of the second AND gate U2, and the output signal from the comparator K2, which is L, being present at the second input. The output signal from the AND gate U2 is thus L, and the state of the flip-flop F1 remains unchanged at the value H. The input signal E once again reaches the switching threshold T1 of the first comparator K1 at the time t11, and its output signal thus becomes H. Since the output signal from the comparator K2 continues to remain at L, the output signal from the first AND gate U1 becomes H, and the output signal from the second AND gate U2 remains at L. The flip-flop F1 is thus set. However, since the output signal had already assumed the value H at t9, the output level of the flip-flop F1 remains unchanged.
- The switching processes which take place at the times t12 to t17 correspond to those at the times t2 to t7 and therefore do not need to be explained once again.
- It can be seen from the illustration in FIG. 2 that the flip-flop F1 is set when the threshold value T1 of the comparator K1 is exceeded, and is not reset until the higher, upper threshold value T2 has been exceeded by the comparator K2 with hysteresis. If the threshold value T2 is not reached, the output of the comparator K2 never reaches the value H and, in consequence, the reset input R1 of the flip-flop F1 cannot assume the value H required for resetting.
- FIG. 3 shows a further exemplary embodiment of the comparator circuit according to the invention, in which a reset circuit RS is provided. The reset circuit RS contains a third AND gate U3, whose first input is connected to the output of the second NOR gate N2 in the flip-flop F1. However, in contrast to FIG. 1, the second input of the first NOR gate N1 is no longer directly connected to the output of the second NOR gate N2, but to the output of the third AND gate U3. The second input of the third AND gate U3 is connected via a third NOT gate I3 to a reset input connection C. When the signal L is present at the reset input connection C, then the inversion by the NOT gate I3 results in the input signal at the second input of the AND gate U3 assuming the value H. In this situation, the output signal A depends only on whether the second NOR gate N2 in the flip-flop F1 is producing the value H or L at its output. Therefore, when the reset input C is at L, the flip-flop F1, to which the third AND gate U3 has been added, operates in precisely the same way as the flip-flop F1 in FIG. 1. If the signal H is applied to the reset input C, the input signal at the second input of U3 becomes L and, in consequence, the output A of the circuit is changed to L.
- The reset input connection C is also connected to the reset input R2 of a second flip-flop F2, which contains NOR gates N3, N4.
- The AND gates U1, U2 each have three inputs. The first two inputs are connected in precisely the same way as in the exemplary embodiment shown in FIG. 1. The third inputs are both connected to the output A2 of the second flip-flop F2. A set input S2 of the flip-flop F2 is connected to an output of an exclusive-OR gate X. One input of the exclusive-OR gate is connected to the output of the NOT gate I1, and to the first input of the second AND gate U2. The other input of the exclusive-OR gate X is connected to the output A of the circuit.
- In order to describe the method of operation of the reset circuit, the following text assumes the situation in which the output signal from the comparator K1 is H, and the output signal from the comparator K2 is L. This would correspond, for example, to the interval between t9 and t10 in FIG. 2.
- If the signal H is applied to the reset input connection C in this situation, the output A is reset to the signal L. The signal H is present at the reset input of the flip-flop F2. The output signal from the comparator K1, inverted by I1, that is to say the signal L, is present at the first input of the exclusive-OR gate X. The signal L is likewise present at the second input of the exclusive-OR gate X. In consequence, the output signal from the exclusive-OR gate X is likewise L. This results in the flip-flop F2 being set to the basic state. The output A2 of the flip-flop F2 becomes L. In consequence, the AND gates U1 and U2 each block the output signals from the comparators K1, K2.
- If the reset signal now becomes L, then the output A remains at the value L, and the flip-flop F1 remains in the initial state. The flip-flop F2 does not change its state either, and its output A2 remains at L. Thus, as before, the AND gates U1 and U2 block the output signals from the comparators K1, K2.
- If the output signal from the comparator K1 then assumes the value L owing to a change in the input signal, that is to say the situation, which corresponds to the initial state, then one input of the exclusive-OR gate X becomes H, and the other remains at L. In a corresponding way, the output signal from the exclusive-OR gate X assumes the value H, so that H is applied to the set input of the flip-flop F2. The flip-flop F2 is thus set, that is to say its output becomes H. In consequence, the two third inputs of the AND gates U1, U2 are each set to H, so that the blocking of the signals from the comparators K1, K2, which was previously carried out by the reset circuit, is cancelled once again.
- The exemplary embodiments described above can also be implemented using inverted logic, in which the logic signals L and H are interchanged with one another.
Claims (7)
1. A comparator circuit, comprising:
an input for receiving an input signal;
an output terminal outputting an output signal;
a first comparator connected to said input and receiving the input signal, when the input signal exceeds a threshold value T1, said first comparator generates a first output signal switching from a first logic signal to a second logic signal, in which case a switching of the output signal from the first logic signal to the second logic signal can be initiated only by said first comparator switching from the first logic signal to the second logic signal;
a monitoring circuit connected between said input and said output terminal, said monitoring circuit, including:
a second comparator connected to said input and has a switching hysteresis with a switching-on threshold T2 and a switching-off threshold T3, where T2>T3, said second comparator and said first comparator each have an output;
an output circuit; and
a logic circuit connected to said output circuit, to said output of said first comparator, and to said output of said second comparator, said logic circuit links said output of said first comparator and said second comparator to said output circuit in such a manner that, when the input signal exceeds the threshold value T1, said output circuit emits the second logic signal and then remains inhibited against returning to the first logic signal until the input signal has once again fallen below the threshold value T1 after exceeding the switching-on threshold value T2; and
a reset circuit connected to said output circuit and said logic circuit, said reset circuit able to reset said output circuit to a quiescent state irrespective of a state of said first comparator and said second comparator, and in the quiescent state the output signal at said output terminal is at the first logic signal, and the output circuit maintains its present state until said first comparator and said second comparator output signals being the first logic signal.
2. The comparator circuit according to claim 1 , wherein said output circuit is a flip-flop with a set input, a reset input and an output being said output terminal.
3. The comparator circuit according to claim 2 , wherein said logic circuit has a first AND gate, a second AND gate, a first NOT gate with an output, and a second NOT gate with an output, said first AND gate having a first input connected to said output of said first comparator and a second input connected to said output of said second NOT gate, said second NOT gate having an input connected to said output of said second comparator, said second AND gate having a first input connected to said output of said first NOT gate and a second input of said second AND gate connected to said output of said second comparator, said first NOT gate having an input connected to said output of said first comparator.
4. The comparator circuit according to claim 3 , wherein said flip-flop includes a first NOR gate having an output and inputs and a second NOR gate having an output and inputs, said output of said first NOR gate connected to one of said inputs of said second NOR gate, said output of said second NOR gate connected to one of said inputs of said first NOR gate.
5. The comparator circuit according to claim 4 , wherein said reset circuit includes:
a third NOT gate having an input and an output;
an input connection connected to said input of said third NOT gate;
a third AND gate having a first input connected to said output of said second NOR gate of said flip-flop, a second input connected to said output of said third NOT gate, and an output connected to one of said inputs of said first NOR gate of said flip-flop;
a further flip-flop having a set input, a reset input connected to said input connection for receiving a reset signal, and an output connected to a third input of said first AND gate and to a third input of said second AND gate; and
an exclusive-OR gate having an output connected to said set input of said further flip-flop, a first input connected to said output of said first NOT gate and to said second input of said second AND gate, and a second input connected to said output of said third AND gate.
6. The comparator circuit according to claim 1 , wherein the threshold value T1, the switch-on threshold T2 and the switch-off threshold T3 are chosen such that T3<T1<T2.
7. The comparator circuit according to claim 1 , wherein the first logic signal is low, and the second logic signal is high.
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
DE19905053A DE19905053C2 (en) | 1999-02-08 | 1999-02-08 | comparator circuit |
DE19905053.8 | 1999-02-08 | ||
PCT/DE2000/000306 WO2000048315A1 (en) | 1999-02-08 | 2000-02-01 | Comparator circuit |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/DE2000/000306 Continuation WO2000048315A1 (en) | 1999-02-08 | 2000-02-01 | Comparator circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
US20020017928A1 true US20020017928A1 (en) | 2002-02-14 |
US6404242B2 US6404242B2 (en) | 2002-06-11 |
Family
ID=7896771
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US09/925,167 Expired - Lifetime US6404242B2 (en) | 1999-02-08 | 2001-08-08 | Comparator circuit |
Country Status (7)
Country | Link |
---|---|
US (1) | US6404242B2 (en) |
EP (1) | EP1151538A1 (en) |
JP (1) | JP2002537547A (en) |
KR (1) | KR20010101841A (en) |
CN (1) | CN1346542A (en) |
DE (1) | DE19905053C2 (en) |
WO (1) | WO2000048315A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112217497A (en) * | 2017-11-16 | 2021-01-12 | 湖南工业大学 | Continuous interference pulse filtering circuit |
CN113395075A (en) * | 2021-07-08 | 2021-09-14 | 成都智明达电子股份有限公司 | Double-threshold anti-jitter quick response extended AGC dynamic circuit |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7130340B1 (en) * | 2000-10-27 | 2006-10-31 | Sun Microsystems, Inc. | Noise margin self-diagnostic receiver logic |
DE102012015945A1 (en) * | 2012-08-09 | 2014-05-15 | Infineon Technologies Ag | Comparator circuit for use with hidden hysteresis, has comparator, hysteresis comparator, evaluation circuit, input and output, where input is connected to input of comparator and to input of hysteresis comparator |
JP7103836B2 (en) * | 2018-04-24 | 2022-07-20 | エイブリック株式会社 | Zero cross detection circuit and sensor device |
JP7080098B2 (en) * | 2018-04-24 | 2022-06-03 | エイブリック株式会社 | Zero cross detection circuit and sensor device |
JP2023076960A (en) * | 2021-11-24 | 2023-06-05 | エイブリック株式会社 | Schmitt circuit |
Family Cites Families (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US3976949A (en) * | 1975-01-13 | 1976-08-24 | Motorola, Inc. | Edge sensitive set-reset flip flop |
GB1523883A (en) * | 1975-03-26 | 1978-09-06 | Micro Consultants Ltd | Data carrying waveform correction |
DE2522463C3 (en) * | 1975-05-16 | 1987-05-07 | Licentia Patent-Verwaltungs-Gmbh, 6000 Frankfurt | Schmitt trigger with two differential amplifiers |
US4418332A (en) * | 1981-06-24 | 1983-11-29 | Harris Corporation | Noise insensitive comparator |
CA1203290A (en) * | 1982-04-28 | 1986-04-15 | Yoshio Shimizu | Signal comparing circuit |
US4529892A (en) * | 1982-11-23 | 1985-07-16 | Rca Corporation | Detection circuitry with multiple overlapping thresholds |
JPS60113514A (en) * | 1983-11-25 | 1985-06-20 | Oki Electric Ind Co Ltd | Offset correction method of comparator |
DE3837821A1 (en) | 1988-11-08 | 1990-05-10 | Asea Brown Boveri | High-precision CMOS Schmitt trigger |
IT1228028B (en) * | 1988-12-15 | 1991-05-27 | Sgs Thomson Microelectronics | PILOT SIGNAL GENERATOR FOR TRANSISTORS CONNECTED IN HALF BRIDGE CONFIGURATION |
NL8902225A (en) * | 1989-09-05 | 1991-04-02 | Philips Nv | LINKAGE FOR DETECTING IMPULSE, AND VIDEO RECORDER PROVIDING THE LINKING. |
US5436582A (en) * | 1991-02-18 | 1995-07-25 | Matsushita Electric Industrial Co., Ltd. | Comparator device for selecting received signals |
DE4215423A1 (en) * | 1992-05-11 | 1993-11-18 | Sgs Thomson Microelectronics | Schmitt trigger |
DE59305021D1 (en) * | 1992-05-15 | 1997-02-20 | Thomson Brandt Gmbh | Circuit arrangement for generating rectangular signals |
DE4221113C1 (en) * | 1992-06-26 | 1993-12-09 | Sick Optik Elektronik Erwin | Comparator circuit e.g. for optical detector which signals presence of object - uses two comparators to provide two different outputs when input rises above or drops below switch threshold |
US5570052A (en) * | 1995-06-07 | 1996-10-29 | Philips Electronics North America Corporation | Detection circuit with differential input and hysteresis proportional to the peak input voltage |
-
1999
- 1999-02-08 DE DE19905053A patent/DE19905053C2/en not_active Expired - Fee Related
-
2000
- 2000-02-01 CN CN00805984A patent/CN1346542A/en active Pending
- 2000-02-01 WO PCT/DE2000/000306 patent/WO2000048315A1/en active IP Right Grant
- 2000-02-01 JP JP2000599135A patent/JP2002537547A/en active Pending
- 2000-02-01 EP EP00910517A patent/EP1151538A1/en not_active Ceased
- 2000-02-01 KR KR1020017010033A patent/KR20010101841A/en active IP Right Grant
-
2001
- 2001-08-08 US US09/925,167 patent/US6404242B2/en not_active Expired - Lifetime
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112217497A (en) * | 2017-11-16 | 2021-01-12 | 湖南工业大学 | Continuous interference pulse filtering circuit |
CN113395075A (en) * | 2021-07-08 | 2021-09-14 | 成都智明达电子股份有限公司 | Double-threshold anti-jitter quick response extended AGC dynamic circuit |
Also Published As
Publication number | Publication date |
---|---|
DE19905053C2 (en) | 2003-05-08 |
JP2002537547A (en) | 2002-11-05 |
WO2000048315A1 (en) | 2000-08-17 |
CN1346542A (en) | 2002-04-24 |
US6404242B2 (en) | 2002-06-11 |
EP1151538A1 (en) | 2001-11-07 |
KR20010101841A (en) | 2001-11-14 |
DE19905053A1 (en) | 2000-09-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0487743B1 (en) | Microcomputer provided with built-in converter | |
JP3256352B2 (en) | Series bus system with a single-wire system | |
US7746131B2 (en) | Reset signal filter | |
US7372309B2 (en) | Reset circuit | |
US6404242B2 (en) | Comparator circuit | |
US6836127B2 (en) | Dual switching reference voltages | |
US6008672A (en) | Input signal reading circuit having a small delay and a high fidelity | |
KR100309233B1 (en) | Single-end-zero receiver circiut | |
US10191124B2 (en) | Sensor circuit | |
US6417700B1 (en) | Voltage level detection circuit and voltage level detection method | |
TWI701444B (en) | Sensing circuit | |
US6870353B2 (en) | Power supply control circuit and LSI using the same | |
JPH0854418A (en) | Trigger circuit | |
US6670832B1 (en) | Glitch detect filter | |
TWI706635B (en) | Anti-pvt-variation time to digital converter and pvt variation detector thereof | |
JPH0553945A (en) | In-vehicle serial data communication system | |
JP4955725B2 (en) | Binary circuit | |
JPS6335465Y2 (en) | ||
JPS5832343Y2 (en) | Automatic frequency adjustment release device | |
JPH09331243A (en) | Zero-crossing detection circuit | |
JP2006064391A (en) | Temperature sensor and analogue/digital converter | |
KR20060120219A (en) | A method and a system for generating an adaptive slicer threshold | |
JP2955038B2 (en) | PWM waveform generation circuit | |
JPH0218653Y2 (en) | ||
KR100465873B1 (en) | Clock hold circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: INFINEON TECHNOLOGIES AG, GERMANY Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:DRAXELMAYR, DIETER;REEL/FRAME:012871/0207 Effective date: 20010925 |
|
STCF | Information on status: patent grant |
Free format text: PATENTED CASE |
|
CC | Certificate of correction | ||
FPAY | Fee payment |
Year of fee payment: 4 |
|
FPAY | Fee payment |
Year of fee payment: 8 |
|
FPAY | Fee payment |
Year of fee payment: 12 |