Field of the Invention
This invention relates to a Schmitt trigger circuit and in particular to a complementary metal oxide silicon (CMOS) implementation of a Schmitt trigger circuit.
Background of the Present Invention
The Schmitt trigger circuit responds to a slowly changing input waveform to produce fast transitions at the output. The Schmitt trigger is particularly useful in digital circuits, where it may be used to maintain the integrity of the logical one and zero levels. It can also be used with analog systems as a level detector. An important feature of the circuit is that the switching thresholds are different for increasing and decreasing input signals, that is the circuit exhibits hysteresis.
In CMOS, as with other integration technologies, there is a continuing desire to increase the degree of integration to produce more circuits on a wafer of given size. One way in which the number of circuits per unit area may be increased is, of course, to reduce the complexity of circuits.
Known CMOS Schmitt triggers require relatively large numbers (10 or more) of transistors and correspondingly large areas of wafer.
Summary of the Invention
The present invention provides a Schmitt trigger comprising a first p-channel MOSFET whose drain is connected to a ground rail and a first n-channel MOSFET whose drain is connected to a voltage supply rail positive with respect to said ground rail, whose gates are connected to a common input, and whose sources are connected together; a second p-channel MOSFET whose source is connected to said voltage supply rail, and whose gate is connected to the source of said first p-channel MOSFET, and a second n-channel MOSFET whose source is connected to the ground rail, whose gate is connected to the gate of the second p-channel MOSFET and whose drain is connected to the drain of the second p-channel MOSFET to form a common output; a third p-channel MOSFET whose source is connected to said voltage supply rail, whose drain is connected to the gate of the second p-channel MOSFET and whose gate is connected to the drain of the second p-channel MOSFET; and a third n-channel MOSFET whose source is connected to said ground rail, whose drain is connected to the gate of the second n-channel MOSFET and whose gate is connected to the drain of the second n-channel MOSFET.
Such an arrangement enables a Schmitt trigger to be constructed in CMOS using only six transistors.
A further advantage of this circuit is that its hysteresis is adjustable by varying the size of the pull-up and pull-down MOSFETS so that the desired switching values can be selected.
Brief Description of the Drawings
An embodiment of the invention will now be described with reference to the accompanying figures in which:
FIG. 1 shows a Schmitt trigger according to the present invention; and
FIG. 2 shows the output waveform of the circuit shown in FIG. 1 for a given input waveform.
Detailed Description of the Drawings
In FIG. 1 a Schmitt trigger circuit according to the present invention is shown. The trigger comprises two stages the first (T1,T2) being non-inverting, and the second (T3,T4,T5,T6) being inverting and including a p-channel MOSFET (T3) and an n-channel MOSFET (T4) arranged as a conventional inverter. The first stage, however, has the usual topology of n and p transistors reversed. Thus when switched on the n-channel transistor (T1) is attempting to pull node B up to 5 volts. However, an n-channel transistor cannot pass a voltage greater than a threshold value below the voltage on its gate. Thus for an n-channel transistor with a threshold of 0.7 volts, with its drain at 5 volts and its gate at 5 volts, the voltage on the source could go no higher than 4.3 volts. Similarly with the p transistor (T2) shown in FIG. 1 the node B will always be about 0.7 volts above the gate voltage when the p transistor is on and trying to pull node B down to ground. However, third p and n channel transistors T5 and T6 are provided to ensure that node B is finally pulled to the appropriate supply rail. The gates of T5 and T6 are connected to the commoned drains of inverting pair T3 and T4, their sources are connected to the + 5 v supply rail (3) and the ground rail (4) respectively, and their drains connected to the commoned sources of the first transistor pair (T1 and T2).
The Schmitt trigger shown in FIG. 1 operates in the following way. With the input A at a low input voltage level transistor T2 is on and T1 is off. The resulting low at node B ensures that transistor T4 is off and T3 is on. The resulting high at output C caused by the inverting stage between B and C turns transistor T6 on ensuring a true zero at node B and turns transistor T5 off. When the input A changes to a high voltage input level transistor T1 begins to turn on. As explained above though, the voltage level at node B will always be a threshold behind the input so that no charge is passed to B until the input voltage level exceeds 0.7 volts. The rise of voltage level at node B is further delayed though by transistor T6 pulling the node B level to ground. A point is eventually reached where transistor T6 can no longer sink the current being passed by transistor T1 This point is dependent on the ratio in sizes of transistor T6 and T1 and can thus be usefully varied if required. The voltage at node B then rises turning transistor T4 on and T3 off. The voltage at output C falls as a result and this further limits transistor T6's ability to sink the increasing current supplied by transistor T1. The result is a snap action giving a very sharp edge to the change in voltage at node C.
The circuit operates in a similar but opposite fashion when the input voltage level changes from high to low when a falling waveform is applied to the input (the switching points being dependent on the ratio in sizes of transistors T5 and T2).
The circuit has a number of advantages. The circuit only comprises 6 transistors, two of which (T5 and T6) can be very small which means the circuit can save space when incorporated in an integrated circuit. Preferable dimensions for the transistors use would be a uniform length of 2.5 .mu.m with the following widths: T1, 120 .mu.m; T2, 175 .mu.m; T3, 125.mu.; T4, 80 .mu.m; T5, 5 .mu.m; T6, 5 .mu.m. The design of the circuit uses the intrinsic threshold drops of the transistors to produce a guaranteed hysteresis which together with the switching levels can be varied by appropriate selection of transistor sizes. The circuit is also able to work with many kinds of waveforms such as stepped, ramped or fast waveforms and the switching points are independent on the driving waveform. The circuit can also tolerate large amounts of noise energy.
Transistors T1 and T2 may be provided with a common source electrode.
The circuit may be used as an interface between a TTL circuit and a CMOS circuit.