1. Field of the Invention
The present invention is in the field of integrated circuits using standard CMOS technology.
2. Related Art
The output terminal of comparator 101 is coupled to the VDD voltage supply terminal through resistor 105. The output terminal of comparator 101 is also coupled to the positive input terminal of comparator 101 through feedback resistor 104. Feedback resistor 104 introduces hysteresis to the output signal SOUT provided on the output terminal of Schmitt trigger circuit 100. The hysteresis characteristic of the output signal SOUT is useful in many conventional circuits.
Most popular hysteresis circuits use a feedback resistor coupled between the output of a comparator and an input of the comparator, similar to feedback resistor 104 of Schmitt trigger circuit 100.
Another popular technique to generate hysteresis is to switch a current branch coupled to an output of the comparator, such that this current branch is coupled in parallel with one branch of a differential pair present within the comparator.
When the potential of the gate electrode of switching transistor 36 is sufficient to turn on this transistor, hysteresis stage 12 provides a parallel path to current mirror transistor 28, thereby creating a current sharing configuration. When the potential of the gate electrode of switching transistor 36 causes this transistor to turn off, hysteresis stage 12 draws no current from current mirror transistor 28. In this manner, switching transistor 36 causes hysteresis stage 12 to be selectively switched in and out as a parallel in current path to current mirror transistor 28, thereby introducing hysteresis to comparator 200. Comparator 200 is described in more detail in U.S. Pat. No. 5,808,496 to Thiel.
The above-described hysteresis implementations increase the quiescent current of the associated circuits. The techniques used to reduce this high quiescent current result in spreading the hysteresis voltage, because of mismatching that exists in the current mirrors and/or resistors.
It would therefore be desirable to have an improved hysteresis circuit, which simplifies the design and control of the hysteresis. It would further be desirable if such circuit exhibited fast operation and a low quiescent current. It would further be desirable if such circuit had a small layout area.
Accordingly, the present invention provides a hysteresis circuit that includes a comparator that operates in response to a capacitive voltage divider circuit. The capacitive voltage divider circuit includes a first capacitor coupled between an input terminal of the hysteresis circuit and the positive input terminal of the comparator. The input terminal is configured to receive an input signal having a voltage swing that is less than the VDD supply voltage of the circuit. The capacitive voltage divider circuit also includes a second capacitor coupled between a ground supply terminal and the positive input terminal of the comparator. The capacitive voltage divider circuit also includes a third capacitor coupled between the output terminal of the comparator and the positive input terminal of the capacitor.
In one embodiment, the comparator is powered by the input signal and the ground supply voltage, such that the output of the comparator swings between the input voltage and ground. In another embodiment, the comparator is powered by the VDD supply voltage and ground, and a level shifter is included between the output of the comparator and third capacitor.
A reference voltage is applied to the negative input terminal of the comparator. When the voltage on the positive input terminal of the comparator is less than the reference voltage, the third capacitor is effectively coupled in parallel with the first capacitor. When the voltage on the positive input terminal of the comparator is greater than the reference voltage, the third capacitor is effectively coupled in parallel with the second capacitor. This configuration provides a hysteresis voltage that can be readily selected by selecting the capacitances of the first, second and third capacitors. The hysteresis circuit of the present invention advantageously requires a relatively small layout area, because no resistors are used. The use of the capacitive voltage divider circuit also advantageously eliminates quiescent current within the hysteresis circuit.
The present invention will be more fully understood in view of the following description and drawings.
The hysteresis circuit 300 uses a capacitive voltage divider, which includes main capacitors 301 and 302 and feedback capacitor 303, to apply a voltage (V1) to the positive input terminal of comparator 305. Capacitors 301, 302 and 303 have capacitances C1, C2 and C3, respectively. Main capacitor 301 is coupled between the positive input terminal of comparator 305 and the input terminal 310. Main capacitor 302 is coupled between the positive input terminal of comparator 305 and the ground terminal. Feedback capacitor 303 is coupled between the output terminal of comparator 305 and the positive input terminal of comparator 305. The output terminal of comparator 305 (and thereby, the counter-electrode of feedback capacitor 303) switches between VIN and ground. Because there is no current flow through a capacitor when biased by a direct current, feedback capacitor 303 reduces the quiescent current of hysteresis circuit 300 to zero in static mode (i.e., direct current mode).
The negative input terminal of comparator 305 is coupled to receive a reference voltage VREF from reference voltage source 304. In one embodiment, reference voltage source 304 may be implemented by circuitry described in commonly owned U.S. patent application Ser. No. 11/611,665 (filed on Dec. 15, 2006), which is hereby incorporated by reference in its entirety.
Hysteresis circuit 300 operates as follows. When the voltage V1 applied to the positive input terminal of comparator 305 is less than the reference voltage VREF applied to the negative input terminal of comparator 305, the output voltage VOUT provided by hysteresis circuit 300 is 0 Volts (ground). Under these conditions, the voltage divider circuit including capacitors 301-303 may be drawn as illustrated in
Series connected capacitors 301 and 401 store the same charge (Q). Because charge (Q) is equal to capacitance times voltage (C×V), the voltage divider circuit of
Q=C1×(VIN−V1)=(C2+C3)×(V1−0) (1)
Equation (1) can be simplified to create equation (2) below.
V
IN
=V1×(C1+C2+C3)/C1 (2)
Comparator 305 will switch from a low output voltage to provide a high output voltage when the voltage V1 exceeds the reference voltage VREF. The value of the input voltage VIN under these conditions defines the trip-point (threshold) of comparator 305 for rising edges of the input signal VIN. The trip point for a rising edge of the input signal VIN, which is hereinafter referred to as VIN(+), can therefore be defined as follows.
V
IN(+)=VREF×(C1+C2+C3)/C1 (3)
When the voltage V1 applied to the positive input terminal of comparator 305 is greater than the reference voltage VREF applied to the negative input terminal of comparator 305, the output voltage VOUT provided by hysteresis circuit 300 is equal to VIN. (The present embodiment assumes that the voltage swing of the input voltage VIN is equal to the voltage swing of the output voltage VOUT. In the described example, the input voltage VIN and the output voltage VOUT both have a voltage swing between ground and the VDD supply voltage.) Under these conditions, the voltage divider circuit including capacitors 301-303 may be drawn as illustrated in
(C1+C3)×(VIN−V1)=C2×(V1−0) (4)
Equation (4) can be simplified to create equation (5) below.
V
IN
=V1×(C1+C2+C3)/(C1+C3) (5)
Comparator 305 will switch from a high output voltage to provide a low output voltage when the voltage V1 becomes less than the reference voltage VREF. The value of the input voltage VIN under these conditions defines the trip-point (threshold) of comparator 305 for falling edges of the input signal VIN. The trip point for a falling edge of the input signal VIN, which is hereinafter referred to as VIN(−), can therefore be defined as follows.
V
IN(−)=VREF×(C1+C2+C3)/(C1+C3) (6)
The hysteresis voltage (VH) is the difference between the trip-points of comparator 305 for rising and falling edges of the output signal VOUT. That is, the hysteresis voltage VH is equal to the difference between VIN (+) and VIN (−). Subtracting equation (6) from equation (3) results in the following equations (7-11).
In typical applications, the hysteresis voltage VH is much less than the reference voltage VREF. To accomplish this result, the value of C3×(C1+C2+C3)/[C1×(C1+C3)] from equation (11) must be very small. Thus, the term “C3×(C1+C2+C3)” must be much smaller than the term “[C1×(C1+C3)]”. For this relationship to exist, the capacitance C3 must be much less than the capacitance C1. Similarly, capacitance C3 must be much less than capacitance C2. As a result, equation (11) may be simplified as follows.
V
H
=V
REF×(C1+C2)×C3/C12 (12)
Using equation (12) simplifies the design and control of threshold hysteresis voltage VH. That is, the hysteresis voltage VH can be precisely control for a given reference voltage VREF by controlling the capacitances C1, C2 and C3 in view of equation (12).
The configuration of hysteresis circuit 300 assumes that the input voltage signal VIN and the output voltage signal VOUT have the same voltage swing (e.g., these signals vary between the same low voltage of 0 Volts and the same high voltage of VDD Volts). However, if the input voltage signal VIN has a different voltage swing than output voltage signal VOUT, a level shifter may be inserted between output terminal 311 and input terminal 310 to compensate for these different voltage swings.
Level shifter 615 operates as follows. On a falling transition of the input voltage VIN, the voltage V1 on the positive input terminal of comparator 305 is pulled down to a voltage less than the reference voltage VREF. As a result, the output voltage VOUT is pulled down to ground. In response to the low output voltage VOUT, inverter 605 applies a logic high voltage to the gate of n-channel transistor 603. As a result, n-channel transistor 603 turns on, thereby pulling the counter-electrode of capacitor 303 to ground. This condition is identical to the equations (1)-(3). Note that p-channel transistor 601 is turned off, p-channel transistor 602 is turned on, and n-channel transistor 604 is turned off at this time.
On a rising transition of the input voltage VIN, the voltage V1 on the positive input terminal of comparator 305 is pulled up to a voltage greater than the reference voltage VREF. As a result, the output voltage VOUT is pulled up to the voltage VDD. The high output voltage VOUT is applied to the gate of n-channel transistor 604. As a result, n-channel transistor 604 turns on, thereby pulling the gate of p-channel transistor 601 to ground. In response, p-channel transistor 601 turns on, thereby coupling the counter-electrode of capacitor C3 to the input voltage VIN. This condition is identical to the condition illustrated in
In the above-described manner, level shifter 615 ensures that the counter-electrode of capacitor 303 has the same voltage swing as the input voltage VIN. As a result, hysteresis circuit 600 operates in substantially the same manner described above for hysteresis circuit 300.
In accordance with one embodiment of the present invention, comparators 300 and/or 600 may be used in combination with a reference voltage circuit 304 that generates the reference voltage VREF using a floating gate reference circuit. One example of such a floating gate reference circuit is described in U.S. patent application Ser. No. 11/611,665 (filed on Dec. 15, 2006), which is incorporated by reference. The floating gate reference circuit generates the reference voltage VREF in response to a charge stored on the floating gate of a non-volatile memory transistor. Capacitors 301-303 have a physical structure that is similar to the physical structure of the floating gate non-volatile memory transistor. As a result, capacitors 301-303 and the floating gate non-volatile memory transistor exhibit a similar temperature coefficient. This advantageously allows the temperature coefficient of the capacitive voltage divider circuit (C1+C2+C3) to be compensated by the temperature coefficient of the floating gate reference circuit.
Another advantage of the present invention is that the capacitive divider circuit is faster than a conventional resistive divider circuit. The resistors used in a conventional hysteresis circuit (e.g., the Schmitt trigger circuit of
In conclusion, the present invention offers a hysteresis circuit with zero static current, a maximum speed limited only by the speed of the comparator, and a small layout area. Moreover, if the present invention is used in combination with a floating gate reference voltage circuit, the temperature coefficient of the trip point of the comparator will be minimized.
Although the invention has been described in connection with several embodiments, it is understood that this invention is not limited to the embodiments disclosed, but is capable of various modifications, which would be apparent to one of ordinary skill in the art. Accordingly, the present invention is only limited by the following claims.