Background of the Invention
1. Technical Field
This invention relates generally to a voltage clamping circuit and, more particularly, to a circuit for clamping input voltages to CMOS integrated circuits near the voltage rails and preventing forward biasing of semiconductor junctions.
2. Discussion
Clamping devices are commonly employed to limit the voltage input to electrical circuits, and are especially important for maintaining a reliable rail-to-rail voltage input so as to prevent damage to integrated circuitry on a semiconductor chip. Voltage clamping is particularly significant with regard to the CMOS family of digital logic circuits. Without the proper clamping device, the delicate input circuits to CMOS integrated circuitry may be easily destroyed if the input voltage deviates from the rail-to-rail output voltage range.
More specifically, when CMOS integrated circuitry is subjected to positive voltage transients, it is generally necessary to prevent the input voltage from exceeding the upper rail voltage limit. Excessive voltage inputs, which could be caused by static electricity discharges that may occur during handling operations, could damage the electrical circuitry. Similarly, when CMOS integrated circuitry is subjected to negative transients, it is generally desirable to prevent the input voltage from falling below the lower rail voltage limit. Quite often, the lower voltage rail limit is set to ground. Negative transients can potentially cause undesirable effects such as the inducement of excessive current leakage through the associated semiconductor chip. Furthermore, the existence of positive or negative transients outside of the rail-to-rail voltage range can cause undesirable crosstalk between multiplexed inputs.
To handle the positive voltage transient situation, conventional clamping approaches have employed diode clamps. According to this approach, input-protection diodes are typically added to the positive rail input and operate to prevent an input voltage from exceeding a selected upper rail voltage limit. For negative voltage transients, conventional approaches commonly rely on the forward biasing of a parasitic input junction to the CMOS substrate to suppress adverse effects caused by the input voltage falling below the lower rail voltage.
According to the conventional approaches, positive and/or negative transient voltages can be clamped by allowing junctions to forward bias and, in the negative transient, cause minority carrier injection into the semiconductor substrate. A CMOS chip can go into a "latchup" state if the input voltage is driven beyond the supply voltage. The resulting current through the clamp diodes generally turns "on" a pair of parasitic cross-connected transistors that are a side effect of the junction isolated CMOS process. Furthermore, with the diode clamp, the input voltage may drop below ground through the inherency of the parasitic diode. That is, if the input voltage goes below ground, the parasitic diode turns "on" and causes an undesirable reverse current which can result in undesirable current leakage through associated CMOS devices on the semiconductor chip.
Prior art approaches, such as the above parasitic diode approach, generally tend to suffer for a number of reasons. For example, the presence of undesirable reverse currents can affect circuit accuracy and possibly lead to circuit damage. In addition, the conventional parasitic approach generally operates with a dependency on process and temperature conditions. As a consequence, changing conditions may effect the accuracy of the input voltages and thus diminish the reliability of the CMOS integrated circuits over varying conditions.
It is therefore desirable to provide for a circuit for clamping input voltages to CMOS devices which prevents forward biased junctions.
It is also desirable to provide for a voltage clamping circuit for CMOS integrated circuits which prevents undesirable current leakage and minority carrier injection into the substrate.
It is further desirable to provide for a voltage clamping circuit which may clamp CMOS IC input voltages near the rails independent of process and temperature conditions.
Summary of the Invention
In accordance with the teachings of the present invention, a voltage clamping circuit is provided for clamping voltage inputs to CMOS devices. The circuit includes an input for receiving an input voltage and an output for providing an output voltage within a rail-to-rail voltage range. The clamping circuit has a bias circuit with a first input for receiving an upper rail voltage and a PMOS device for providing a p-channel threshold drop to the upper rail voltage so as to generate an upper threshold bias voltage. The bias circuit has a second input for receiving a lower rail voltage and an NMOS device for providing an n-channel threshold increase to the lower rail voltage so as to generate a lower threshold bias voltage. The voltage clamping circuit has a first clamping transistor coupled to the input for clamping the input voltage so as to prevent the input voltage from rising above the upper rail voltage. A second clamping transistor is coupled to the input for clamping the input voltage so as to prevent the input voltage from dropping below the lower rail voltage. A first gain stage controls the first clamping transistor in response to the upper threshold bias voltage and the input voltage so as to cause the first clamping transistor to clamp the input voltage. A second gain stage controls the second clamping transistor in response to the lower threshold bias voltage and the input voltage so as to cause the second clamping transistor to clamp the input voltage.
Brief Description of the Drawings
Other objects and advantages of the present invention will become apparent to those skilled in the art upon reading the following detailed description and upon reference to the drawings in which:
FIG. 1 is a circuit diagram of a bias circuit which generates bias reference voltages for use with the present invention;
FIG. 2 is a circuit diagram of a voltage clamping circuit according to the present invention; and
FIG. 3 is a chip layout which illustrates the bias circuit and a plurality of voltage clamping circuits employed on a CMOS semiconductor chip according to an illustrative example.
Detailed Description of the Preferred Embodiment
Turning now to FIG. 1, a bias circuit 10 is shown therein for generating a pair of bias reference voltages V.sub.P and V.sub.N which in turn are employed by a clamping circuit according to the present invention. The bias circuit 10 is electrically coupled to an upper rail voltage V.sub.DD and a lower rail voltage V.sub.SS. Upper and lower rail voltages V.sub.DD and V.sub.SS are commonly employed as rail-to-rail supply voltage inputs to complementary MOS (CMOS) devices for defining the voltage operating range (i.e., output swing) thereof. Quite often, lower rail voltage V.sub.SS is coupled to ground, while upper rail voltage V.sub.DD is connected to a positive DC supply voltage up to +15 volts.
The bias circuit 10 includes a diode connected p-channel MOSFET (PMOS) transistor M1 and a diode connected n-channel MOSFET (NMOS) transistor M2. PMOS transistor M1 has a source terminal 13 connected to an upper rail voltage input terminal 12 for receiving the upper rail voltage V.sub.DD. PMOS transistor M1 also has a drain terminal 15 and a gate terminal 11, both of which are commonly joined at node A. Node A, in turn, is coupled to an upper bias output 16 for outputting a p-channel reference voltage V.sub.P. Reference voltage V.sub.P is employed as an upper bias output voltage.
The NMOS transistor M2 has a source terminal 21 coupled to a lower rail voltage input terminal 14 for receiving the lower rail voltage V.sub.SS. As is quite often the situation for CMOS devices, lower rail voltage terminal 14 may commonly be connected to ground. NMOS transistor M2 also has a gate terminal 17 and a drain terminal 19, both of which are commonly joined together at node B. Node B, in turn, is coupled to a lower bias output 18 for outputting an n-channel reference voltage V.sub.N. Reference voltage V.sub.N is employed as a lower bias output voltage.
The PMOS transistor M1 is connected in series with the NMOS transistor M2 via a resistor R1. More specifically, resistor R1 is connected between node A and node B. A small current I generally ranging from approximately 5 to 50 microamps flows from upper rail voltage V.sub.DD to lower rail voltage V.sub.SS and through resistor R1. Accordingly, current I is essentially controlled by the threshold drop of transistors M1 and M2 and resistor R1.
In accordance with the bias circuit configuration shown in FIG. 1, the upper bias output voltage V.sub.P will be approximately one p-channel threshold drop below upper rail voltage V.sub.DD. Likewise, the lower bias output voltage V.sub.N will be approximately one n-channel threshold above lower rail voltage V.sub.SS. A p-channel threshold drop typically amounts to a voltage potential drop of approximately 1.0 volts, while an n-channel threshold will amount to a rise of approximately 1.0 volts. It should be apparent that the p-channel threshold drop and n-channel threshold rise may vary depending on the process and amount of current I. Accordingly, output bias reference voltages V.sub.P and V.sub.N are bias references employed for p-channel and n-channel current mirrors and voltage references as will be described below in connection with the circuit provided in FIG. 2.
Referring now to FIG. 2, a voltage clamping circuit 20 is shown according to the present invention. Voltage clamping circuit 20 includes a pair of rail-to-rail voltage input terminals 26 and 28 for receiving bias output voltages V.sub.P and V.sub.N, respectively. Voltage clamping circuit 20 further includes an input terminal 30 for receiving an input voltage V.sub.IN and an output terminal 40 for providing a voltage clamped output voltage V.sub.OUT. Output voltage V.sub.OUT is thereafter supplied as an input to CMOS devices (not shown), and is particularly suited to feed CMOS integrated circuitry.
The voltage clamping circuit 20 essentially includes two similar circuits, one for clamping input voltage V.sub.IN from going below lower rail voltage V.sub.SS and the other for clamping input voltage V.sub.IN from going above the upper rail voltage V.sub.DD. To clamp high or positive voltages, voltage clamping circuit 20 employs three transistors M6, M7 and M8. Transistor M6 is an n-channel MOSFET transistor referred to herein as a first clamping transistor. First clamping transistor M6 has a gate terminal 42 coupled to node D and a source terminal 43 coupled to the lower rail voltage input terminal 24 for receiving lower rail voltage V.sub.SS. Clamping transistor M6 further includes a drain terminal 41 which is connected to a signal line 51. Signal line 51 connects input terminal 30 with output terminal 40.
Transistor M7 is a p-channel MOSFET transistor which has a gate terminal 45 connected to the upper bias voltage input 26 for receiving upper threshold voltage V.sub.P. Transistor M7 further includes a source terminal 44 coupled to signal line 51 which is connected between the input and output terminals 30 and 40. A drain terminal 46 of transistor M7 is also coupled to node D.
Transistor M8 is an n-channel MOSFET transistor which has a drain terminal 47 coupled to node D. Transistor M8 has a gate terminal 48 connected to the lower bias voltage input 28 for receiving the lower threshold voltage V.sub.N. A source terminal 49 of transistor M8 is further coupled to the lower rail voltage terminal 24 for receiving lower rail voltage V.sub.SS.
The clamping circuit 20 as described thus far has a first active gain stage made up of transistors M7 and M8 and a first clamping transistor M6. However, a single transistor M7 may be used alone to provide the necessary gain stage. A feedback capacitor C2 is connected between the first gain stage and clamping transistor M6 for purposes of providing compensation in order to obtain stability around the point where clamping operations occur. More specifically, feedback capacitor C2 is connected between the drain terminal 41 of clamping transistor M6 and node D. Thus, capacitor C2 also forms a feedback connection across the gate and drain terminals 42 and 41 of clamping transistor M6.
Voltage clamping circuit 20 likewise includes three similarly connected transistors M3, M4 and M5 for purposes of performing a similar function of clamping-so as to prevent input voltage V.sub.IN from going below the lower rail voltage V.sub.SS. Transistor M3 is a p-channel MOSFET transistor herein referred to as a second clamping transistor. Second clamping transistor M3 has a source terminal 23 connected to the upper rail input terminal 12 for receiving the upper rail voltage V.sub.DD. Clamping transistor M3 also has a gate terminal 25 coupled to node C and a drain terminal 27 coupled to line 51 which is connected between input and output terminals 30 and 40.
Transistor M4 is a p-channel MOSFET transistor which has a source terminal 29 connected to the upper rail voltage input 12 for receiving upper rail voltage V.sub.DD. A drain terminal 33 of transistor M4 is connected to node C. Transistor M4 further has a gate terminal 31 connected to the upper bias-voltage input terminal 26 for receiving the upper threshold voltage V.sub.P.
Transistor M5 is an n-channel MOSFET transistor which has a gate terminal 37 connected to the lower bias voltage input terminal 28 for receiving lower threshold voltage V.sub.N. A drain terminal 35 of transistor M5 is also connected to node C. Transistor M5 further has a source terminal 39 coupled to line 51 and thus source terminal 39 is therefore coupled between input and output terminals 30 and 40.
The portion of the clamping circuit 20 which includes transistors M3, M4 and M5 likewise has a second active gain stage made up of transistors M4 and M5, and a second clamping transistor M3. However, transistor M5 may be used alone to provide the necessary gain stage. A feedback capacitor C1 is connected between the second gain stage and second clamping transistor M3 for purposes of providing compensation in order to obtain stability around the point where clamping operations occur, similar to the function capacitor C1 is connected between the drain terminal 27 of transistor M3 and node C. Thus, capacitor C1 also forms a feedback connection across the drain terminal 27 and gate terminal 25 of second clamping transistor M3.
As previously mentioned, the present invention is particularly suited for clamping input voltages V.sub.IN so as to prevent the input voltage V.sub.IN from deviating from the rail-to-rail voltage operating range for CMOS integrated circuit (IC) devices on a semiconductor chip. With particular reference to FIG. 3, an example of the bias circuit 10 and a plurality of voltage clamping circuits 20 are shown formed on a semiconductor chip along with CMOS integrated circuitry. According to this example, a plurality of voltage clamping circuits 20 may be employed to provide multiple input protection lines to CMOS circuit devices. In doing so, the single bias circuit 10 may be used to generate the high and low threshold voltages V.sub.P and V.sub.N which in turn may be supplied to and employed by the plurality of voltage clamping circuits 20. Thus, a single bias circuit 10 may supply multiple voltage clamping circuits 20.
In operation, the bias circuit 10 receives the normal rail-to-rail voltage supply signals V.sub.DD and V.sub.SS which are typically supplied to CMOS integrated circuitry and which define the rail-to-rail voltage output swing thereof. The bias circuit 10, with the use of transistors M1 and M2, generates a pair of threshold voltages V.sub.P and V.sub.N. Threshold voltage V.sub.P is approximately one p-channel threshold below upper rail voltage V.sub.DD, while threshold voltage V.sub.N is approximately one n-channel threshold above lower rail voltage V.sub.SS. Threshold voltages V.sub.P and V.sub.N are then employed by the voltage clamping circuit 20 for purposes of determining the bias or turn "on" of clamping transistors M3 and M6.
Threshold voltages V.sub.P and V.sub.N are supplied to the voltage clamping circuit 20 via terminals 26 and 28. As previously mentioned, voltage clamping circuit 20 essentially is made up of two circuits, one circuit for preventing input voltages from exceeding the upper rail voltage limit, and another circuit for preventing input voltages from dropping below the lower rail voltage limit. To clamp positive or upper voltages, transistors M6, M7 and M8 are employed. A first gain stage formed by transistors M7 and M8 operates to turn "on" first clamping transistor M6. Since the gate terminal 45 of transistor M7 is connected to upper threshold voltage V.sub.P, the gate terminal 45 of transistor M7 will be at approximately V.sub.DD minus a p-channel threshold. The gate terminal 48 of transistor M8 which is connected to the lower threshold voltage V.sub.N will act as a current mirror to transistor M2 in the bias circuit 10. If the input voltage V.sub.IN is less than the upper rail voltage V.sub.DD, then transistor M7 will be "off" and transistor M8 will pull node D to V.sub.SS ground, thereby holding transistor M6 "off". Due to inherent electrical characteristics of transistor M7, the transistor M7 will not turn "on" until the input voltage V.sub.IN at source terminal 49 exceeds the upper threshold bias voltage V.sub.P at gate terminal 45 by an amount of a p-channel voltage threshold. Since the upper threshold bias voltage V.sub.P is one p-channel threshold below the upper rail voltage V.sub.DD, transistor M7 will not turn "on" until the input voltage V.sub.IN reaches upper rail voltage V.sub.DD. When the input voltage V.sub.IN tries to rise above the upper rail voltage V.sub.DD, transistor M7 will start to conduct thereby pulling node D "high". In turn, node D going "high" will turn "on" transistor M6 and try to pull the input voltage V.sub.IN below the upper rail voltage V.sub.DD.
Transistors M3, M4 and M5 will perform a function similar to transistors M6, M7 and M8 for clamping and thus preventing input voltage V.sub.IN from going below the lower rail voltage V.sub.SS. In doing so, a first gain stage formed by transistors M4 and M5 operate to turn "on" second clamping transistor M3. Since the gate terminal 37 of transistor M5 is connected to lower threshold voltage V.sub.N, the gate terminal 37 of transistor M5 will be at approximately V.sub.SS plus an n-channel threshold. The gate terminal 31 of transistor M4, which is connected to the threshold voltage V.sub.P, will act as a current mirror to transistor M1 in the bias circuit 10. If the input voltage V.sub.IN is greater than the lower rail voltage V.sub.SS, then transistor M5 will be "off" and transistor M4 will pull node C to V.sub.DD, thereby holding transistor M3 "off". Due to inherent electrical characteristics of transistor M5, the transistor M5 will not turn "on" until the input voltage V.sub.IN at source terminal 39 drops below the lower threshold bias voltage V.sub.N at gate terminal 37 by an amount of an n-channel threshold voltage. Since the lower threshold bias voltage V.sub.N is one n-channel threshold voltage above the lower rail voltage V.sub.SS, transistor M5 will not turn "on" until the input voltage V.sub.IN reaches lower rail voltage V.sub.SS. When the input voltage V.sub.IN tries to fall below the lower rail voltage V.sub. SS, transistor M5 will start to conduct thereby pulling node C "low". In turn, node C going "low" will turn "on" transistor M3 and try to pull the input voltage V.sub.IN above the lower rail voltage V.sub.SS.
Transistors M1 and M2 as described in relation to the bias circuit 10 are preferably multiple parallel devices in similar size to the transistors employed in the voltage clamping circuit 20. In effect, transistors M1 and M2 further divide down the current to the transistors in the clamping circuit 20. However, it should be appreciated that varying size transistors may be employed as should be obvious to one skilled in the art. Furthermore, it should be noted that the use of p-channel and n-channel transistors as described in relation to each transistor may be modified without departing from the spirit of the invention. This may include employing transistors which will achieve different desired amounts of n-channel or p-channel thresholds.
While this invention has been disclosed in connection with a particular example thereof, no limitation is intended thereby except as defined in the following claims. This is because a skilled practitioner recognizes that other modifications can be made without departing from the spirit of this invention after studying the specification and drawings.