Abstract:
A CMOS Schmitt trigger circuit responsive to TTL logic levels is disclosed. A supply regulator circuit renders the circuit independent of temperature, supply voltage and device parameters.

Description:
BACKGROUND OF THE INVENTION 
     The invention relates to a circuit useful in complementary metal oxide semiconductor (CMOS) structures and is particularly adapted for those involving a large number of gates fabricated into a single chip. Such arrays are known as gate arrays which are useful in fabricating logic circuits in which the gates are interconnected to achieve the desired logic function. Typically a gate array is fabricated into a silicon substrate in a mass produced wafer process. The final metallization, in which the logic function is personalized, is then tailored in accordance with the intended application. In my copending patent application, Ser. No. 321,839, now U.S. Pat. No. 4,430,582, filed Nov. 16, 1981, and titled FAST CMOS BUFFER FOR TTL INPUT LEVELS, now U.S. Pat. No. 4,430,582 a circuit is disclosed for making a large number of CMOS gates in an array conform to transistor-transistor logic (TTL) levels. The teaching in that application is incorporated herein by reference. 
     One of the problems in CMOS gate arrays is the mass manufacture of gates that respond to the TTL logic levels over a substantial range of power supply voltage, temperature, and transistor parameters. This is particularly true when the gate array includes elements that display hysteresis as found in the Schmitt trigger. 
     SUMMARY OF THE INVENTION 
     It is an object of the invention to provide a CMOS Schmitt trigger circuit having hysteresis and responding to the TTL logic levels. 
     It is a further object of the invention to provide a CMOS Schmitt trigger circuit responsive to TTL logic levels and suitable for incorporation into gate arrays. 
     It is a still further object of the invention to provide a CMOS gate array Schmitt trigger circuit that displays hysteresis that conforms to TTL logic levels and is functional over a wide range of supply voltage, temperature, and transistor parameters. 
     These and other objects are achieved in a circuit configured as follows. Four transistors, specifically three N channel and one P channel, are coupled in series across the supply voltage input. The first N channel transistor has its drain coupled to the +V CC  rail and its gate is coupled to a source of reference voltage of the kind disclosed in my U.S. Pat. No. 4,430,582. The source of the first N channel transistor comprises the supply node for the Schmitt trigger. The remaining two N channel transistors have their gates coupled to the circuit input terminal. The P channel transistor has its source coupled to the source of the first N channel transistor and it acts as the load element for the second and third series connected N channel transistors with the P channel transistor drain comprising the hysteresis node. The P channel transistor gate is either grounded or coupled to the input terminal. A fourth N channel transistor has its source coupled to the juncture of the second and third N channel transistors and its drain is coupled to the juncture of the first N channel and the P channel transistor sources. The gate of the fourth N channel transistor is coupled to the hysteresis node. A conventional inverter is coupled between the hysteresis node and the circuit output terminal to provide a rail to rail output swing. 
    
    
     BRIEF DESCRIPTION OF THE DRAWING 
     FIG. 1 is a schematic diagram of an N well CMOS Schmitt trigger circuit. 
     FIG. 2 is a graph showing the operation of the circuit of FIG. 1. 
     FIG. 3 is a schematic diagram of a P well CMOS Schmitt trigger circuit. 
     FIG. 4 is a schematic diagram of an alternative N well CMOS Schmitt trigger circuit. 
     FIG. 5 is a schematic diagram of the circuit of FIG. 1 with a power down feature added. 
    
    
     DESCRIPTION OF THE INVENTION 
     With reference to the schematic diagram of FIG. 1 a compensated Schmitt trigger circuit is shown. The circuit operates from a V CC  power supply connected+to terminal 10 and-to ground terminal 11. Since the circuit is to be compatible with TTL logic, this supply is ordinarily 5±0.5 volts. The circuit shown is for N well CMOS construction in which the P channel transistors have individual back gate connections as shown. All of the N channel transistor back gates (not shown) are connected to the substrate which is grounded. Input terminal 12 responds to the preceding logic circuitry which is at TTL levels. In this logic family a logic one is typically in excess of 2 volts and a logic zero is less than 0.8 volt. Output terminal 13 which swings substantially rail-to-rail, or zero to five volts, responds as a noninverting buffer with hysteresis to input terminal 12. 
     N channel transistor 14, which has its gate returned to a reference source 15, supplies current to node 16. This part of the circuit operates in accordance with the teaching in U.S. Pat. No. 4,430,582. The voltage at node 16 is regulated to make the inverter gates in a gate array operate with TTL logic inputs and to make them operate substantially independent of temperature, supply voltage and transistor parameters. While node 16 is shown connected to a single Schmitt trigger circuit it is to be understood that a single transistor 14 and reference source 15 could supply a plurality of similar trigger circuits. It is only necessary that transistor 14 be made large enough to handle the combined currents of the plural trigger circuits. 
     V REF  is obtained as follows. Resistors 28 and 29 form a voltage divider across the power supply. They are proportioned so that about 1.4 volts is applied to the input of inverter 30. Transistors 31 and 32 are proportioned so that a 1.4 volt input produces a V CC  /2 output or about 2.5 volts. Inverter 33 is designed to act as a level shifter so that its output is close to V CC . Transistor 34 which acts as a source follower supplies operating current to inverter 30. Thus a negative feedback loop exists around inverter 30 which is operated against a 1.4 volt reference. The potential at node 35 will adjust the circuit operating point so that the inverter 30 will be in its high gain states or active, at the TTL logic reference level. If node 35 is connected to supply a number of similar logic gates in an array, they all will be compensated for variations in temperature, supply voltage and device parameters. 
     The Schmitt trigger circuit itself is made up of transistors 17-20 and inverter 21. N channel transistors 18 and 19 together form a CMOS inverter with P channel transistor 17. The gates of all three devices are returned to input terminal 12. N channel transistor 20 is coupled between nodes 16 and 23 with its gate returned to node 22 which could be described and the hysteresis node. The graph of FIG. 2 portrays the operation of the circuit of FIG. 1. 
     When the input at terminal 12 is zero transistors 18 and 19 are off and node 22 is pulled high by transistor 17. Due to the action of inverter 21 the output at terminal 13 is low or close to zero. Since node 22 is high transistor 20 will be on and will pull node 23 high. As the input rises transistor 19 will turn on first at an input of V TN , or one N channel transistor threshold, and start to pull node 23 down. At this point transistors 19 and 20 act as a voltage divider. As the input continues to increase node 23 will be pulled lower and at some point transistor 18 will turn on. When this occurs transistors 18-20 form an active high gain regenerative loop that will rapidly pull node 22 down as a function of the rising input. The output of inverter 21 will suddenly snap up close to +V CC . This produces transition 25 of FIG. 2. The parameters of transistors 18-20 are selected so that transition 25 occurs at close to 1.6 volts which is below the TTL logic one but higher than the TTL logic reference of 1.4 volts. As the input is increased further the output will remain at +V CC . Note the left to right arrows in the graph of FIG. 2. At this output high point transistors 18 and 19 are on while transistors 17 and 20 are off. Nodes 22 and 23 are low. 
     When the input is swung from high to low at terminal 12 the right to left arrows of FIG. 2 are invoked. The input will drop until the threshold of the inverter formed by transistors 17-19 is reached. At this point transistor 17 will pull node 22 up to where transistor 20 turns on to engender transition 26 of FIG. 2. During this transition transistors 17-20 form a regenerative combination that acts to rapidly pull nodes 22 and 23 high. As node 23 rises it will turn transistor 18 off so as to allow transistor 17 to snap node 22 high. Inverter 21 responding to node 22 produces a logic zero at terminal 13. The parameters of transistors 17-19 are selected so that transition 26 occurs at about 1.1 volts which is higher than a TTL logic zero of 0.8 volt but lower than the TTL logic reference of 1.4 volts. 
     From the above it can be seen that the circuit hysteresis is 0.5 volt. Simulation of the circuit of FIG. 1 shows that over the temperature range of -40° C. to 105° C., the supply voltage range of 4.5 to 5.5 and the maximum processing variables that affect transistor threshold values, transition 25 occurred at 1.6 volts ±0.35 volt, transition 26 occurred at 1.1 volts ±0.25 volt, and the hysteresis voltage varied over the range of 0.3 volt minimum to slightly over 1 volt maximum. 
     Thus, the circuit parameters remained acceptable over these variations. 
     FIG. 3 shows the invention embodied in CMOS P well construction. In this form of construction all of the P channel transistors back gates (not shown) are returned to the substrate which is connected to +V CC . N channel transistors 14&#39;, 18&#39;, 19&#39;, and 20&#39; have their back gates returned to their sources. This eliminates body effect in these N channel transistors. In turn this simplifies the ratioing of transistors 19&#39; and 20&#39; which controls the potential present at node 23. It furthermore permits scaling transistors 17&#39;-20&#39; up so as to increase the circuit speed. In such scaling the W/L ratios should be maintained so that the transitions 25 and 26 of FIG. 2 are unchanged. 
     FIG. 4 shows an alternative N well CMOS construction embodiment of the invention. The circuit is similar to that of FIG. 1 except that the gate of transistor 17 is grounded. This means that transistor 17 is always turned on so that it acts as a resistor. Thus when transistor 18 is off, node 22 will be pulled up towards node 16. 
     FIG. 5 illustrates the embodiment of FIG. 1 with a power down circuit added. Terminal 25 has been added to control the circuit operation. PWR DWN is applied to terminal 25 so that it is normally high. This turns transistor 26 on and transistor 27 off. Thus, circuit 15&#39; will operate normally as did circuit 15 of FIG. 1. The value of V REF  at the output of inverter 33 will adjust V REF  for TTL signal input levels. N channel transistor 26 is ratioed to provide a negligible &#34;on&#34; resistance compared to resistors 28 and 29. 
     When the PWR DWN signal at terminal 25 goes low, for a power down condition, transistor 26 turns off and transistor 27 turns on. This pulls the input to inverter 30 high so that the output from inverter 33 also goes high. As a result of this action, node 35 is pulled close to +V CC  by conduction in transistor 34. Since conduction in transistor 27 has pulled the gate of transistor 31 high it will be off so that inverter 30 will not pass any current. Thus inverter 30, and therefore circuit 15&#39;, is disabled by pulling its input high. The input to inverter 33 is so low that it does not draw any power either. 
     In the power down state node 16 will also be close to +V CC . The currents passed by the Schmitt triggers connected to node 16 will then be determined by their input states. For example, if the trigger input terminal 12 is returned to +V CC  through a conventional pull up device, transistor 17 will be turned off so that no power drain occurs. This action will also turn transistors 18 and 19 on so that node 22 will be pulled low. If terminal 12 is returned to ground by means of a conventional pull down device, transistors 18 and 19 will be off so that no current flows and transistor 17 will be on so as to pull node 22 high. However, since node 22 has two series transistors to +V CC  it might not go sufficiently close to V CC  to turn inverter 21 completely off. For this reason transistor 36 is added to inverter 21 to form a soft latch. When terminal 13 goes low it turns transistor 36 on so as to pull node 22 sufficiently close to +V CC  to fully turn inverter 21 off. 
     The invention has been described and several embodiments detailed. When a person skilled in the art reads the foregoing description, alternatives and equivalents, within the spirit and intent of the invention, will become apparent. Accordingly, it is intended that the invention be limited only by the claims that follow.