Reference to Copending Application
Reference is hereby made to a copending application by James L. Gorecki Ser. No. 418,516, entitled "Process Insensitive CMOS Window Detector", which is filed on even date herewith and is assigned to the same assignee.
Background of the Invention
1. Field of the Invention
The present invention relates to a voltage window detector and in particular to an integrated circuit CMOS window detector having an output exhibiting hysteresis.
2. Description of the Prior Art
A voltage window detector is a commonly used circuit element which provides outputs indicating whether an input voltage is within a "window" defined by a high and a low voltage level. The prior art includes several window detector circuits suitable for use in an integrated circuit. Nutz Pat. No. 4,184,087, Tanaka Pat. No. 4,292,552 and Dunphy et al Pat. No. 4,300,063 all describe window detectors using bipolar transistors. These circuits are implemented using many elements, and are not described as being insensitive to semiconductor process variations. All of these designs establish the threshold level of the window by means of a resistive voltage divider network.
The Dingwall Pat. No. 4,262,221 is an FET voltage comparator circuit designed for integration on a silicon-on-sapphire monolithic die. A technique for minimizing the transient offsets associated with this type of technology is described. The Musa et al Pat. No. 4,224,539 describes a FET voltage level detector which is insensitive to variations in power supply voltage.
There is a continuing need for improved integrated circuit voltage window detectors which utilize fewer components than the prior art, thus reducing area used on the integrated circuit chip and improving reliability. In addition, an integrated circuit window detector with reduced power consumption, insensitivity to semiconductor process variations, reduced temperature sensitivity, higher speed, and capability of operating with low supply voltages is needed.
Summary of the Invention
The present invention is a FET voltage window detector which includes first and second supply means between which a supply voltage is provided and input means for receiving the input voltage. Bias circuit means are used to establish bias current flow between the first and second supply means. The first current mirror FET means establishes a first current flow through its source--drain current path as a function of the bias current flow. The first current control FET means is connected in a first series current path with the first current mirror FET means. The first current control FET means is connected to the input means and controls the first current flow in the first series current path. The first current control FET means changes conductive state when the input voltage reaches a first window voltage level representing one end of the desired voltage window.
In a similar manner, a second current mirror FET means establishes a second current flow as a function of bias current flow. The second current control FET means is connected in a second series current path with the second current mirror FET means. The second current control FET means is also connected to the input means and controls current flow in the second series current path. The second current control FET means changes conductive state when the input voltage reaches a second window voltage level which represents the other end of the desired voltage window.
Output means are connected to the first and second current paths. The output means provide a digital output signal indicating the relationship of the input voltage to the voltage window as a function of a previous digital output signal.
In preferred embodiments of the present invention the bias circuit is comprised of a means for providing a plurality of reference voltages and first and second current source means. The first current source means establishes a first bias current flow and is formed by first and second bias current FETs connected in a series current path between the supply means. The second current source means establishes a second bias current flow and is similarly formed by third and fourth bias current FETs.
The first current flow is established in the first series current path as a function of the first bias current flow and a ratio of channel shape factors of the second bias current FET means and the first current mirror FET means. Similarly, the second current flow is established in the second series current path as a function of the second bias current flow and a ratio of the channel shape factors of the fourth bias current FET means and the second current mirror FET means.
The output means is further comprised of a NAND-latch formed by first and second NAND logic gates. This output means provides an output signal exhibiting hysteresis with respect to the input signal. The NAND-latch switches from a first state to to a second state if the digital output signal was previously in the first state and the input signal increases to a voltage level greater than the first reference voltage level. The NAND-latch switches from the second state to the first state if the digital output signal was previously in the second state and the input signal decreases to a level less than the second reference voltage level.
Brief Description of the Drawings
FIG. 1 is a schematic drawing of the window detector with hysteresis of the present invention.
FIG. 2 is a table listing the states of the individual FETs comprising the NAND logic gates of the present invention for four possible input signal conditions.
FIG. 3 is a graphical representation of the input-output characteristics of the window detector of the present invention.
Detailed Description of the Preferred Embodiments
A preferred embodiment of window detector 10 of the present invention is illustrated in FIG. 1. This particular embodiment is fabricated using P-tub, metal gate CMOS technology, although the present invention is applicable to other complementary FET integrated circuit technologies as well.
Window detector 10 includes six interconnected circuit elements between a relatively positive voltage supply V.sub.DD and a relatively negative voltage supply V.sub.SS. Input signal V.sub.IN is applied to window detector 10 at input terminal 12. A digital output signal, V.sub.OUT, indicating whether the input signal is within or outside a predetermined voltage window as a function of a previous digital output signal is provided at output terminal 14.
Voltage reference circuit 16 functions as a voltage divider and establishes two reference voltages, V.sub.ref1 and V.sub.ref2. First current source circuit 18 operates to produce a voltage-to-current conversion. A first bias current I.sub.b1 is produced in a series current path of first current source circuit 18 as a function of the first reference voltage V.sub.ref1. First inverter circuit 20 operates to produce a current-to-voltage conversion. The bias current, I.sub.B1, established in first current source circuit 18, I.sub.B1, is mirrored into first inverter circuit 20. The current in first inverter circuit 20, I.sub.I1 is then controlled as a function of the input signal. Second current source circuit 22, like first current source circuit 16, produces a voltage-to-current conversion. A second bias current I.sub.B2 is established in a series current path of second current source circuit 22 as a function of the second reference voltage V.sub.ref2. Like first inverter circuit 20, second inverter/NAND gate circuit 24 produces a current-to-voltage conversion. The second bias current I.sub.B2 is mirrored into a series current path of second inverter/NAND gate circuit 24 and this current, I.sub.I2, controlled as a function of the input signal.
The magnitude of the current flow I.sub.I1, I.sub.I2 in each inverter circuit 20, 24 is determined by the input signal. The voltage level in each inverter circuit 20, 24 therefore represents the relationship of the input signal V.sub.IN to one of two window voltage levels V.sub.H, V.sub.L which together represent the desired window voltage range. Second inverter/NAND gate circuit 24 and first NAND gate circuit 26 are interconnected to form a NAND-latch. The NAND gates of second inverter/NAND gate circuit 24 and first NAND gate circuit 26 are connected to the two inverter circuits 24, 20. Output terminal 14 of the NAND-latch indicates the relationship of the input signal to the voltage window as a function of the previous digital output signal of the NAND-latch.
The operation of window detector 10 is determined to a large extent by the operating characteristics of the individual field effect transistors of the circuit. A brief description of FET operating characteristics will therefore be useful.
Current flow through an N-channel FET operating within its saturation region is described by the following equation: ##EQU1## Current flow through a P-channel FET operating in its saturation region is described by a similar equation: ##EQU2## .beta. is the gain of the FET in amperes/volt.sup.2. This parameter is often seen in the alternate form:
The mobility, .mu..sub.o, refers to the ability of electrons (or holes) to flow through the channel of the FET. C.sub.OX represents the capacitance of the oxide layer separating the gate and channel of the FET.
The gain .beta. of the FET is a physical constant determined by the process used to fabricate the FET. All FETs of a given channel conductivity type on an integrated circuit will have nearly identical .beta. values. .beta. values from chip to chip of a given batch of integrated circuits are also typically within close tolerances.
S is the shape factor of an individual FET, and is a ratio of channel width to channel length. Shape factor S is determined by the size of the mask used in fabrication of the FET.
V.sub.GS is the voltage potential applied across the gate-to-source terminals of the FET. V.sub.T is the threshold voltage of the FET. The threshold voltage V.sub.T of an FET, like .beta., is a physical constant determined by the process used to fabricate the device. All FETs of a particular channel conductivity type on a single chip will have nearly identical threshold voltage V.sub.T. Tolerances from chip-to-chip using the same process also are very close. Nominal values of V.sub.T are 0.6.+-.0.3 volts. The variation (.+-.0.3 volts) reflects the difference in process specifications and not the variation across the chip or from chip-to-chip formed using the same process. Threshold voltage variation of less than one percent across a particular integrated circuit chip is typical.
The quantities (V.sub.GS -V.sub.T) and (V.sub.T -V.sub.GS) are commonly known as the excess voltage, as it is actually the amount of voltage with which the FET is turned on. To make the N-channel enhancement mode FET of Equation 1 conductive, V.sub.GS must be a positive quantity. This means the gate must be at a relatively positive potential with respect to the source. Under this convention V.sub.T is also a positive quantity for the N-channel enhancement mode device. V.sub.GS must therefore be greater than V.sub.T to produce an excess voltage and form a conductive channel in a N-channel enhancement mode FET.
The P-channel enhancement mode FET described by Equation 2 requires a negative V.sub.GS in order to become conductive. This means the gate must be at a relatively negative voltage potential with respect to the source. V.sub.T is also a negative quantity for the P-channel enhancement mode FET under this convention. V.sub.GS must therefore be more negative than V.sub.T in order for the quantity (V.sub.T -V.sub.GS) to become positive, produce an excess voltage, and make the channel of the P-channel FET conductive. Drain current flow through N-channel and P-channel enhancement mode FETs is therefore directly proportional to shape factor S and gain .beta. and proportional to the square of the excess voltage.
Voltage reference circuit 16, first current source circuit 18, and second current source circuit 22 together comprise a bias circuit for window detector 10. Voltage reference circuit 16 is formed by identical enhancement mode N-channel FETs 28, 30 and 32. FET 28 has its gate 34 and drain 36 connected to the relatively positive supply V.sub.DD. Substrate 38 and source 40 of FET 28 are connected to node 42. FET 30 also has its gate 44 and drain 46 connected to node 42. Substrate 48 and source 50 of FET 30 are connected to node 52. Gate 54 and drain 56 of FET 32 are also connected to node 52. Substrate 58 and source 60 of FET 32 are connected to the relatively negative supply V.sub.SS.
FETs 28, 30 and 32 of voltage reference circuit 16 are identical devices, all having the same shape factor S and gain .beta.. These FETs all operate in the saturation region and all conduct identical drain current I.sub.D as described by Equation 1. FETs 28, 30 and 32 function as a voltage divider and establish a first and second reference voltage V.sub.ref1 and V.sub.ref2. Since FETs 28, 30 and 32 of voltage reference circuit 16 all conduct identical drain current I.sub.D and have the same threshold voltage V.sub.T, each has an identical source-to-drain voltage drop. The first reference voltage V.sub.ref1 established at node 42 therefore is found to be:
The second reference voltage V.sub.ref2 established at node 52 is:
In the preferred embodiment of window detector 10 V.sub.SS =0, therefore:
First current source circuit 18 of window detector 10 is formed by enhancment mode P-channel FET 62 and enhancement mode N-channel FET 64. FET 62 has its source 66 and substrate 68 connected to receive the relatively positive suppl V.sub.DD. Gate 70 of FET 62 is connected to node 42. Drain 72 of FET 62 is connected to drain 74 and gate 76 of FET 64. FET 64 has its substrate 78 and source 80 connected to the relatively negative supply V.sub.SS. A first bias current I.sub.B1 is established in first current source circuit 18 by first bias current FET 62. First bias current I.sub.b1 is determined as a function of first reference voltage V.sub.ref1. Magnitude of the first bias current I.sub.b1 is found using Equation 9: ##EQU3## S.sub.62 is the shape factor of FET 62. V.sub.TP and .beta..sub.P are the threshold voltage and gain of P-channel FETs of the integrated circuit window detector 10. Gate 70 of first bias current FET 62 is connected to node 42 to receive the first reference voltage V.sub.ref1. This represents the gate-to-drain voltage potential across the device. The gate-to-source voltage, V.sub.GS, of bias current FET 62 is therefore found to be:
Equation 9 describing the first bias current flow I.sub.B1 through first current source circuit 18 then takes the form: ##EQU4##
First inverter circuit 20 is formed by enhancement mode P-channel FET 82 and enhancement mode N-channel FET 84. Source 86 and substrate 88 of FET 82 are connected to the relatively positive supply V.sub.DD. FET 82 has its gate 100 connected to node 102 to receive the input signal V.sub.IN. Drains 104 of FET 82 and 106 of FET 84 are connected to node 108. FET 84 has its gate 110 connected to gate 76 of FET 64. Substrate 112 and source 114 of FET 84 are connected to the relatively negative supply V.sub.SS.
FET 84 of first inverter circuit 20 functions as a first current mirror FET. In the preferred embodiment of the present invention, first current mirror FET 84 and second bias current FET 64 have identical gain .beta. and shape factor S. Since FETs 84 and 64 have their gates connected together and their sources connected to V.sub.SS, both have identical gate-to-source voltage V.sub.GS. The first bias current I.sub.b1 is therefore mirrored into first inverter circuit 20. A first inverter current I.sub.I1, of magnitude equal to I.sub.b1 is established in first inverter circuit 20.
FET 82 of first inverter circuit 20 is a current control device. Current control FET 82 is a P-channel device operating within its saturation region so its current flow is described by Equation 2. Since the gain .beta..sub.p of FET 82 is large, typically within the range of 31 to 100, and I.sub.D is proportional to the square of the excess voltage, a very narrow range of gate-to-source voltage V.sub.GS will cause the FET to pass from a low conductivity state with little or no drain current flow, to a high conductivity state with a large drain current flow. Current control FET 82, therefore, effectively operates as a switch and controls the flow of the first inverter current I.sub.I1 which was established in first inverter circuit 20 by current mirror FET 84.
Current control FET 82 performs a current-to-voltage conversion. First inverter current I.sub.I1 is converted by current control FET 82 into a voltage level. This voltage defines the high window voltage level of the window voltage range and is designated V.sub.H. The gate-to-source voltage VGS needed for current control FET 82 to change conductivity state is found by setting the first inverter current I.sub.I1 equal to Equation 2 which describes the current flow through current control FET 82. The resulting equation is solved for V.sub.GS. This parameter represents the high window voltage level V.sub.H. ##EQU5## In the preferred embodiment of window detector 10 S.sub.62 =S.sub.82. Therefore: ##EQU6##
Current control FET 82 of first inverter circuit 20 therefore changes conductivity state when its gate-to-source voltage V.sub.GS reaches a level of -1/3V.sub.DD. It should be noted that this V.sub.GS is the same gate-to-source voltage which was applied to first bias current FET 62 of first inverter circuit 18. The high window voltage level V.sub.H (i.e. the "trip point" of FET 82) is therefore made equal to the first reference voltage level V.sub.ref1 due to the circuit geometry.
When the input signal V.sub.IN applied to input terminal 12 is less than the first reference voltage V.sub.ref1, current control FET 82 will be in its high conductivity state with the first inverter current I.sub.I1 flowing through first inverter circuit 20. The voltage potential V.sub.1 at node 108 will then be drawn toward the relatively positive supply V.sub.DD. As the input signal V.sub.IN increases to a level above the first reference voltage V.sub.ref1, current control FET 82 changes to a low conductivity state and effectively appears as an open circuit with very little current flowing through its source-to-drain current path. The voltage potential V.sub.1 at node 108 is then drawn toward the relatively negative supply V.sub.SS.
Second current source circuit 22 and second inverter/NAND gate circuit 24 function together in a manner very similar to first current source circuit 18 and first inverter circuit 20. Second current source circuit 22 is formed by enhancement mode P-channel FET 116 and enhancement mode N-channel FET 118. Source 120 and substrate 122 of FET 116 are connected to the relatively positive supply V.sub.DD. Gate 124 and drain 126 of FET 116 are connected to drain 128 of FET 118. Substrate 130 and source 132 of FET 118 are connected to the relatively negative supply V.sub.SS. FET 118 has its gate 134 connected to node 52 to receive the second reference voltage V.sub.ref2.
A second bias current I.sub.B2 is established in second current source circuit 22 by third bias current FET 118 as a function of V.sub.ref2. The second bias current I.sub.B2 is found by Equation 1 to be: ##EQU7##
.beta..sub.N is the gain and V.sub.TN the threshold voltage of N-channel FET in the integrated circuit of window detector 10. S.sub.118 is the shape factor of FET 118. The gate of FET 118 is connected to node 52 to receive the second reference voltage V.sub.ref2. Its gate-to-source voltage V.sub.GS of third bias current FET.sub.118 is then found to be:
Equation 18, which describes the second bias current I.sub.B2 flowing through second current source circuit 22 then takes the form: ##EQU8##
Second inverter/NAND gate circuit 24 is formed by enhancement mode P-channel FET 136, enhancement mode N-channel FET 138 and enhancement mode N-channel FET 140. Source 142 and substrate 144 of FET 136 are connected to the relatively positive supply V.sub.DD. Gate 146 of FET 136 is connected to gate 124 of FET 116. FET 136 has its drain 148 connected to node 150. Drain 152 of FET 138 is also connected to node 150. Gate 154 of FET 138 is connected to node 156. FET 138 has its substrate 158 and source 160 connected to drain 162 of FET 140. Gate 164 of FET 140 is connected to node 102 to receive the input signal V.sub.IN through input terminal 12. Substrate 166 and source 168 of FET 140 are connected to the relatively negative supply V.sub.SS.
For purposes of describing the inverter action of second inverter/NAND gate circuit 24, FET 138 may be treated as if it were not present in the circuit and its source-to-drain path replaced by a short circuit. FET 136 functions as a second current mirror. Second current mirror FET 136 and fourth bias current FET 116 have identical shape factor S and gain .beta. and gate-to-source voltage V.sub.GS. The second bias current I.sub.B2 is therefore mirrored into second inverter/NAND gate circuit 24 and a second inverter current I.sub.I2 of a magnitude equal to I.sub.B2 established.
FET 140 of second inverter/NAND gate circuit 24 is a N-channel device operating within its saturation region. It controls flow of the second inverter NAND/gate current I.sub.I2 through the second inverter/NAND gate circuit 24. Current control FET 140 will change from its low conductivity state to its high conductivity state over a very narrow range of voltage V.sub.GS in much the same manner as first current control FET 82 previously described. Second current control FET 140 also functions as a current-to-voltage conversion device. Second inverter/NAND gate current I.sub.I2 is converted into a voltage V.sub.L defining the low window voltage level of the window voltage range. The gate-to-source voltage V.sub.GS at which current control FET 140 changes conductivity states (i.e. the trip point) is found by setting the second inverter/NAND gate current I.sub.I2 equal to Equation 1. ##EQU9## In the preferred embodiment of the present invention S118=S140. Therefore:
Current control FET 140 therefore changes conductivity state when the input signal reaches a voltage level of 1/3V.sub.DD. This is the same voltage (V.sub.ref2) with which the second bias current I.sub.B2 was established in second current source circuit 22. The low window voltage level (i.e. the "trip point" of FET 140) is therefore made equal the second reference voltage level V.sub.ref2 due to the circuit geometry.
When the input signal V.sub.IN applied to input terminal 12 is lower than the second reference voltage V.sub.ref2, current control FET 140 will be in its low conductivity state and its source-to-drain current path effectively appears as an open circuit with very little current. The voltage potential V.sub.2 at node 150 will therefore be drawn toward the relatively positive supply V.sub.DD. As the input signal V.sub.IN increases beyond the low window voltage level V.sub.L, current control FET 140 changes to a high conductivity state and allows the second inverter/NAND gate current I.sub.I2 to flow through its drain-to-source current path. The voltage potential V.sub.2 at node 150 is then drawn toward the relatively negative supply V.sub.SS.
It has been shown that the window voltage levels V.sub.L and V.sub.H of the present invention are determined solely by first and second reference voltages V.sub.ref1 and V.sub.ref2, respectively. Window voltage range .DELTA.V of window detector 10 is determined by the difference between the high and low window voltage levels.
Because of the geometry of the current source and inverter circuits, the window voltage levels V.sub.L and V.sub.H, (and therefore the window voltage range .DELTA.V) are independent of all process variations. In particular, it should be noted that the window voltage range is not dependent on the gain .beta. or threshold voltage V.sub.T of the individual FETs. This is a very desirable and advantageous result, since the window voltage range .DELTA.V is also independent of any temperature variation of .beta. and V.sub.T as well.
The supply voltage range of the present invention was divided into thirds with the center portion of the range used as the window voltage range .DELTA.V. Those skilled in the art will realize that the supply voltage range can be divided into other increments using a greater or lesser number of FETs. Other portions of this range can likewise be used as the window voltage range .DELTA.V.
Window detector 10 of the present invention does not merely provide an output signal indication of whether or not the input signal V.sub.IN is within the window voltage range .DELTA.V, but rather provides this output signal with hysteresis. An output exhibiting hysteresis is one which is combinational for some inputs (i.e. determined simply as a function of the inputs) and works as a memory device for other inputs. The output signal is therefore determined as a function of the input signal and a previous output signal. To provide an output signal exhibiting hysteresis, the present invention has a NAND-latch logic element connected to the first and second inverter circuits. The NAND-latch is formed by interconnecting two individual NAND logic gates.
First NAND logic gate 26 is formed by enhancement mode P-channel FETs 170 and 172 and enhancement mode N-channel FETs 174 and 176. Source 178 and substrate 180 of FET 170 are connected to the relatively positive supply V.sub.DD. Gate 182 of FET 170 is connected to second inverter/NAND gate circuit 24 at node 150. Drain 184 of FET 170 is connected to node 156. FET 172 has its source 186 and substrate 188 connected to the relatively positive supply V.sub.DD. Gate 190 of FET 172 is connected to first inverter circuit 20 at node 108. Drain 192 of FET 172 is connected to drain 184 of FET 170. FET 174 has its drain 194 connected to drain 192 of FET 172 while gate 196 of FET 174 is connected to gate 190 of FET 172. Substrate 198 and source 200 of FET 174 are connected to drain 202 of FET 176. Gate 204 of FET 176 is connected to gate 182 of FET 170 at node 150. Substrate 206 and source 208 of FET 174 are connected to the relatively negative supply V.sub.SS.
The second NAND logic gate is formed by second inverter/NAND gate circuit 24 already described. This is one of the unique aspects of the present invention. With the addition of FET 138 to the inverter circuit comprised of FETs 136 and 140 a NAND logic gate is formed.
There are three possible relationships between the input signal V.sub.IN and the voltage window .DELTA..sub.V : (1) V.sub.IN is below the window, i.e. V.sub.IN less than V.sub.L ; (2) V.sub.IN is within the window, i.e. V.sub.L less than V.sub.IN less than V.sub.H ; and (3) V.sub.IN is above the window, i.e. V.sub.IN greater than V.sub.H. Depending upon which relationship exists, and the previous state of the digital output signal V.sub.OUT, the one bit binary code of logic output 14 is different.
FIG. 2 is a table which describes the overall operation of window detector 10 for each of these inputs as a function of the previous digital output signal. FIG. 3 is a graphical representation of the input-output characteristics of window detector 10.
For purposes of describing the logic gate operation of second inverter/NAND gate circuit 24, the input signal V.sub.IN applied to gate 164 of FET 140 and the previous output signal V.sub.OUT applied to gate 154 of FET 138 are used as inputs. Voltage V.sub.2 at node 150 represents an output of second inverter/NAND gate circuit 24.
Voltage V.sub.2 at node 150 is an input to first NAND gate circuit 26 along with voltage V.sub.I1 at node 108. The output signal V.sub.OUT taken from node 156 is the output of first NAND gate circut 156 as well as the output of window detector 10.
Row 1 of FIG. 2 describes the operation of the window detector 10 when the input signal V.sub.IN applied to input terminal 12 is below the low window voltage level V.sub.L =V.sub.ref2 =1/3V.sub.DD. With this input current control FET 140 of second inverter/NAND gate circuit 24 is in a low conductivity state ("off"). Voltage V.sub.2 at node 150 is then at a high potential. First current control FET 82 of first inverter circuit 20 is in its high conductivity state ("on") and voltage V.sub.1 at node 108 is also at a high potential. P-channel FETs 170 and 172 of first NAND gate circuit 26, both having a high voltage potential applied to respective gates 182 and 190, are "off". N-channel FETs 174 and 176 of first NAND gate circuit 126, both have a high voltage potential applied to respective gates 196 and 204 therefore are "on". Node 156 and therefore output terminal 14 are at a low voltage potential. Since FET 138 has the low voltage potential at node 156 applied to its gate it also is " off". Logic output terminal 14 therefore always indicates a "low" or "0" logic level when the input signal is less than the second voltage reference level V.sub.ref2, (i.e. the low window voltage level V.sub.L).
Row 2 of FIG. 2 illustrates the operation of window detector 10 when the output signal is already in its "low" or "0" logic state and the input signal increases from a level below the second reference voltage V.sub.ref2 to a level above the second reference voltage. Since the input signal is now within the window voltage range .DELTA.V and greater than the second reference voltage V.sub.ref2, current control FET 140 is in its high conductivity state ("on"). N-channel FET 138 is still off since the low voltage potential of the previous digital output signal is applied to its gate 154 through node 156. Voltage V.sub.2 at node 150 is therefore still at a high voltage potential. First current control FET 82 is still in its high conductivity state ("on") since the input signal has not reached the first reference voltage level V.sub.ref1, and V.sub.1 at node 108 is therefore still at a high potential. The states of FETs 170, 172, 174 and 176 of first NAND gate circuit 126 are therefore unchanged. The digital output signal at output terminal 14 therefore remains at a "low" or "0" logic level if the previous digital output signal was at a "low" or "0" logic level and the input signal increases from a level below to a level above the second reference voltage level V.sub.ref2 =1/3V.sub.DD.
As shown in FIGS. 2 and 3, the transition between "row 1" and "row 2" conditions is reversible, without a change in state of V.sub.OUT. As long as V.sub.IN remains below V.sub.ref1, so that a transition from "row 2" to "row 3" does not occur, V.sub.OUT remains "0 ".
Row 3 of FIG. 2 illustrates the operation of window detector 10 when the input signal increases to a level greater than the first reference voltage level V.sub.ref1 =2/3V.sub.DD when the previous digital output signal was in a "low" or "0" logic state. Since the input signal is now greater than the first reference voltage V.sub.ref1, current control FET 82 of first inverter circuit 20 is in its low conductivity state ("off"). Voltage V.sub.1 at node 108 is therefore at a low potential. P-channel FET 172 of first NAND gate circuit 26 therefore switches "on" while N-channel FET 174 of the same circuit switches "off". With P-channel FET 172 now "on", the voltage at node 156 and therefore output terminal 14, is at a "high" or "1" logic level. N-channel FET 138 of second inverter/NAND gate circuit 24 now has a high voltage potential applied to its gate 154 and is therefore turned on. Since the second current control FET 140 was already on, the current I.sub.I2 now flows through the second inverter/NAND gate circuit 24. Voltage V.sub.2 at node 150 is therefore at a low voltage potential. FET 176 of first NAND gate circuit 26 switches to its "off" state while P-channel FET 170 switches to its "on" state. The transition is then complete. The digital output signal taken from terminal 14 therefore switches from a "low" or "0" logical level to a "high" or "1" logic level if the digital output signal was previously in the "low" or "0" logic state and the input signal has increased to a voltage greater than the first reference voltage V.sub.ref1. Row 3 of FIG. 2 also illustrates the operation of the window detector 10 if the digital output signal is already in a "high" or "1" logic state and the input signal increases to any level greater than the first reference voltage V.sub.ref1.
Row 4 of FIG. 2 illustrates the operation of window detector 10 when the input signal V.sub.IN decreases from a level greater than to a level less than V.sub.ref1 while still remaining greater than the second reference voltage level V.sub.ref2. The input signal V.sub.IN is now within the window voltage range .DELTA.V with the previous digital output signal V.sub.OUT at terminal 14 at a "high" or "1" logic state. Since the input signal V.sub.IN is now less than the first reference voltage level V.sub.ref1, current control FET 82 has changed back to its high conductivity state ("on") drawing voltage V.sub.1 at node 108 to a high potential. P-channel FET 172 of first NAND gate 26 therefore switches back to its "off" state while N-channel FET 174 switches back to its "on" state. Second current control FET 140 of second inverter/NAND gate circuit 24 is still in its high conductivity state ("on") since the input signal applied to its gate 164 is greater than the second reference voltage level V.sub.ref2. FET 138 of second inverter/NAND gate circuit 24 is "on" as the voltage applied to its gate 154 from node 156 is at a high potential. N-channel FET 176 of first NAND gate circuit 26 therefore remains "off" while P-channel FET 170 remains "on". The digital output signal V.sub.OUT at output terminal 14 therefore remains at its "high" or "1" logic level state. The digital output signal V.sub.OUT of window detector 10 is therefore in a "high" or "1" logic level state when the digital output signal V.sub.OUT was previously at its "high" or "1" logic state and the input signal is at any voltage greater than the second reference voltage V.sub.ref2.
As shown in FIGS. 2 and 3, the transition between "row 3" and "row 4" conditions is reversible without a change in state of V.sub.OUT, so that a transition from "row 4" to "row 1" does not occur, V.sub.OUT remains "1".
Row 1 of FIG. 2 illustrates the operation of window detector 10 when the digital output signal V.sub.OUT at output terminal 14 is at a "high" or "1" logic level state when the input signal V.sub.IN applied to input terminal 12 decreases to a level less than the second reference voltage V.sub.ref2. Since the signal applied to gate 164 of second current control FET 140 is now less than the second reference voltage V.sub.ref2 second current control FET 140 changes to its low conductivity state ("off"). Voltage V.sub.2 at node 150 therefore is drawn to a high potential. N-channel FET 176 then switches "on", while P-channel FET 170 switches "off". First current control FET 82 is still in its high conductivity state ("on") since the input signal V.sub.IN is less than the first reference voltage V.sub.ref1. Voltage V.sub.I at node 108 is therefore at a high potential and the states of N-channel FET 174 and P-channel FET 172 remain unchanged. The voltage at node 156 has therefore changed to a low potential and as a result the output signal V.sub.OUT at output terminal 14 switches to a "low" or "0" logic level. FET 138 switches "off" to complete the transition putting the circuit of window detector 10 in the same state as described previously with respect to row 1.
The operation of window detector 10 may be summarized as follows: If the output signal V.sub.OUT at output terminal 14 is in its "low" or "0" logic level state, it remains in its "low" or "0" logic level state until the input signal V.sub.IN applied to input terminal 12 increases to a level greater than the first reference voltage V.sub.ref1. At this point the output signal V.sub.OUT at output terminal 14 switches to a "high" or "1" logic level state. The digital output signal V.sub.OUT at output terminal 14 will remains in its "high" or "1" logic level state for any input signal V.sub.IN applied to terminal 12 which is greater than the second reference voltage V.sub.ref2. Only when the input signal V.sub.IN applied to input terminal 12 decreases to a level less than the second reference voltage V.sub.ref2 does the digital output signal V.sub.OUT at output terminal 14 switch back to its "low" or "0" logic level state and complete the input-output cycle.
Using a small number of additional FETs (four in first NAND gate circuit 26 and one in second inverter/NAND gate circuit 24), the window detector has been converted to a window detector with hysteresis. This particular circuit is designed to detect the locked state of a phase locked loop (PLL). The circuit is, of course, well suited for any application where some method of noise reduction is needed or where a Schmitt Trigger might otherwise be used.
In conclusion, the CMOS window detector with hysteresis of the present invention provide a means for determining whether the input signal V.sub.IN is within a predetermined voltage window as a function of the previous digital output signal. Window detector 10 uses very few components and is capable of being fully integrated. Performance is independent of all process variation. The window voltage levels are determined by physical constants (shape factors of the FETs) used in fabrication.
The window detector of the present invention has other important advantages as well. First, the speed of the window detector of the present invention is higher than the prior art implementations which use complete integrated circuit comparators. Second, the present invention uses fewer components, thus requiring less area on an integrated circuit chip. Third, the window detector of the present invention is capable of operation with very low supply voltages (e.g. as low as 2.5 volts) .
Although the present invention has been described with reference to preferred embodiments, workers skilled in the art will recognize that changes may be made in form and detail without departing from the spirit and scope of the invention. In particular, it should be noted that although the specific preferred embodiment described uses P-tub metal gate CMOS technology, the present invention can be fabricated in complementary form (i.e. N-tub CMOS technology), using metal gate CMOS technology, or using other FET integrated circuit technologies such as JFET technology.