Schmitt Trigger
Schmitt Trigger
2 Regeneration
Learning Objectives:
At the end of this topic you will be able to;
recall and describe the difference between noise and distortion.
understand that the signal to noise ratio degrades down a transmission
In the first diagram we can see a strong digital signal, ready for transmission.
In the middle we see the same signal after transmission, which is now
attenuated and the effect of noise from the transmission process is clearly
visible.
In the final diagram we see a completely regenerated signal which can either
be passed down the next section of the transmission link or it can be used to
produce the final outcome e.g. a television picture.
We are generally unable to affect what happens during the transmission
medium, and so we have to concentrate on how we can reproduce the original
signal from the noisy input signal. The device responsible for this is similar to
the Schmitt NOT gate or Schmitt inverter we met briefly in Module ET2.
The symbol for the Schmitt inverter is as follows:
A
The Schmitt NOT gate has a unique switching characteristic which is very
different to the standard NOT gate. The following diagrams illustrate the
difference between to two.
VOUT
Switching Characteristic
for a standard NOT Gate
VIN
VIN
Switching Characteristic
for a Schmitt NOT Gate
Looking at the two characteristics you should notice that for a standard NOT
gate operating on a 5V supply that the switching point is at the midpoint of the
supply voltage for an increasing or decreasing input voltage.
Comparing this to the Schmitt characteristic reveals a different situation
altogether. As VIN increases the voltage has to increase above 3V before the
output voltage changes. Once the output has changed however, if the input is
then decreased back to 3V, the output does not change back, as it would in the
normal case, but now the voltage has to fall to below 2V before the output will
go high again.
We have therefore created some hysteresis in the NOT gate with two
distinct switching thresholds. It is these different switching thresholds that
allow the regeneration of the digital signal.
The following example will illustrate how this works.
Vin/V
time/s
Vout/V
time/s
We will consider the construction of the output signal in stages so that you will
be able to see how the solution is obtained, once you have mastered the steps
required you will be able to complete this on one graph.
5
Vin/V
upper
threshold
lower
threshold
time/s
Vout/V
time/s
Vin/V
upper
threshold
lower
threshold
time/s
Vout/V
time/s
Vin/V
upper
threshold
lower
threshold
time/s
Vout/V
time/s
This example should illustrate the usefulness of the Schmitt inverter in being
able to remove noise from an incoming digital signal and produce a clean digital
signal at the output.
There are two limitations with the simple Schmitt inverter
the switching thresholds are usually a function of the supply voltage,
they are unable to cope with negative voltage inputs.
As a number of transmission systems use a dual rail system where digital logic
levels might be at 5V for example, this is a big problem.
8
Vin/V
time (s)
-2
-4
-6
10
-10
10
Vout/V
time (s)
Vin/V
Upper
Threshold
time (s)
-2
Lower
threshold
-4
-6
10
Vout/V
time (s)
-10
11
Vin/V
Upper
Threshold
time (s)
-2
Lower
threshold
-4
-6
10
-10
12
Vout/V
time (s)
Vin/V
Upper
Threshold
time (s)
-2
Lower
threshold
-4
-6
10
Vout/V
time (s)
-10
13
Vin
Vout
If the comparator is run on a dual rail supply of 15V, the output will saturate
at approximately 13V. We will assume to begin with that the output is in
positive saturation, i.e. Vout = +13V. This voltage will be fed back to the noninverting input. For the output to switch to the negative saturation value, the
voltage at the inverting input to the comparator, Vin will need to go above +13V.
Similarly if the comparator is in negative saturation, i.e. -13V, then for the
output to switch to the positive saturation value, the voltage at the inverting
input to the comparator, Vin will need to go below -13V.
For the example given above you should be able to work out that the switching
thresholds are at the saturation values of the comparator (op amp). The
switching characteristic for the circuit above would be as follows:
+15
-15
+15
-15
14
Vout/V
Vin/V
Vin
Vout
4.3V
4.3V
If you remember from your ET2
module the zener diode in forward
bias, has a voltage drop of 0.7V across
it, whilst in reverse bias, it is the zener voltage that appears across it.
For the two zener diodes in the circuit above, one will always be forward
biased and one always reversed biased, when the comparator tries to reach its
saturation voltage of 13V, the action of the zener diodes will be to force the
output voltage to remain at 5V, also keeping the switching threshold to 5V,
as shown on the characteristic below.
+15
-15
Vout/V
+15
Vin/V
-15
15
Vin
Vout
6.2V
2.7V
When the output voltage tries to reach positive saturation, the 6.2V zener is
forward biased, therefore the voltage drop across it will be 0.7V. The 2.7V
zener is reversed bias, and therefore the voltage drop across it will be the
zener voltage of 2.7V. Vout will therefore be clamped at 0.7+2.7=3.4V.
When the output voltage tries to reach negative saturation, the 6.2V zener is
reverse biased, therefore the voltage drop across it will be the zener voltage
of 6.2V. The 2.7V zener is forward biased, and therefore the voltage drop
across it will be 0.7V. Vout will therefore be clamped at (6.2+0.7)=-6.9V.
The characteristic for this circuit therefore looks like this:
+15
-15
+15
-15
16
Vout/V
Vin/V
(ii)
A different approach is therefore needed, and one which does not prevent the
output voltage from reaching its saturation value.
17
VIN
10k X 20k
VOUT
Let us assume that this comparator made from an op-amp saturates at 12V.
So how does the circuit work ?
You need to think back to the basic operation of the comparator, when the
voltage at the non-inverting input is greater than the voltage at the inverting
input the output will be in positive saturation. For the circuit above, this means
when the voltage at point X goes above 0V the output will be in positive
saturation.
Similarly if the voltage at point X goes below 0V the output will be in negative
saturation since the voltage at the inverting input will now be larger than the
voltage at the non-inverting input.
The voltage at X is determined by the value of VIN and the value of VOUT. To
make the Schmitt trigger switch between positive and negative saturation, we
need to change the value of VIN, to make the voltage at X pass through 0V.
The voltage required to make the voltage at X pass through 0V, will be the
switching thresholds for the Schmitt trigger.
18
+12V
+
VIN
10k X 20k
If the circuit is in the condition shown with VOUT at +12V, then VX must be >0V.
We now need to calculate the value of VIN that will cause VX to fall to 0V since
anything below this will then cause VX to be <0V and the output will be in
negative saturation.
We can re-draw the equivalent circuit as shown below:
IR1
R1
+12V
20k
VX=0V
R2
10k
12 0
12
0.6mA
20k
20k
VIN
19
-12V
Note: From the diagram VIN > 0V, and IR1 flows from VX
towards the -12V.
20k
I R1
VX=0V
R2
0 ( 12 ) 12
0.6mA
20k
20k
V10 k 0.6mA 10k
6V
10k
VIN V X V10 k
0 6 6V
VIN
This calculation shows that the value of VIN that causes the voltage at X to
rise to 0V is +6V, in practice the output will switch as this voltage transfers
from 5.999V to 6.001V for example. The comparator will switch instantly to
positive saturation because of the high open loop gain of the amplifier, and
therefore we say that effectively this is the upper switching threshold.
The characteristic for this Schmitt trigger is therefore as shown below.
+15
-15
20
Vout/V
+15
-15
Vin/V
The output voltage of the Schmitt trigger is now at the threshold values.
The switching thresholds are lower than the saturation values.
The action of the Schmitt trigger is non-inverting.
The solution to this problem was derived using the equivalent circuit of a
voltage divider.
An alternative solution can be obtained by considering a balanced current
approach which can be found in some text books. We will now consider the
same problem and obtain the solution using the alternative approach.
Balanced Current Approach.
Let us assume that the output is in positive saturation, at +12V.
0V
+12V
+
VIN
10k X 20k
From Module ET2, you should remember that the input impedance of the
comparator is extremely high, and considered to be infinite for the purposes
of calculations. This means that no current will flow from point X into the
non-inverting input of the comparator. Therefore the current in the 20k
resistor must be the same as the current in the 10k resistor. So to calculate
the switching thresholds we need to find the voltage at V IN that causes the
voltage at X to be 0V.
We can write down two equations that could be used to calculate the current
through the resistors.
I
12V VIN
20k 10k
or
12 0
20k
21
20k 10k
20k
12 30k
12 VIN
20k
12 VIN 18V
12 18 VIN
VIN 6V
We can carryout a similar analysis for when the output is at -12V to determine
the upper threshold.
12 VIN
12 0
20k 10k
20k
12 30k
12 VIN
20k
12 VIN 18V
12 18 VIN
VIN 6V
Using this method we have arrived at the same solution, as before. In the
examination you can use either method. You will never be asked to use one
particular method so use whichever you are most comfortable with.
22
3V
VOUT
+
R2
VIN
10k
R1
20k
Calculate the value of VIN which causes VOUT to change from +9V to -9V
Method A Voltage Divider
VOUT = +9V
VOUT VIN
V
VX
OUT
R1 R2
R1
IR1
R1
20k
R2
10k
VX = 3V
VIN = ?V
Note: From diagram V IN < 3V
9 VIN
93
( 20 10) k
20k
9 VIN
6
30k
20k
6 30k
9 VIN
20k
9 VIN 9
9 9 VIN
VIN 0V
23
Calculate the value of VIN which causes VOUT to change from -9V to +9V.
Method B Balanced Currents
VOUT VIN
V
VX
OUT
R1 R2
R1
IR1
R1
20k
R2
10k
9 VIN
93
( 20 10) k
20k
9 VIN
12
30k
20k
12 30k
9 VIN
20k
9 VIN 18
VX = 3V
VIN = ?V
9 18 VIN
VIN 9V
-15
+15
-15
24
Vout/V
Vin/V
VIN
VOUT
VREF=3V
R2
10k
R1
20k
Careful observation of the circuit will show that the only change has been to
swap the location of VIN and the 3V reference voltage.
The analysis can be performed in exactly the same way, its just that the value
of VIN now appears at X in the equivalent circuits. Consider the following
example to see how this is carried out.
25
VIN
VOUT
+
R2
VREF= 2V
10k
R1
30k
Calculate the value of VIN which causes VOUT to change from +10V to -10V
Method A Voltage Divider
VOUT = +10V
I
R1
30k
VIN = ?V
R2
10k
VR= +2V
Note:
26
R1
R1 R2
10 VIN
10 2
30k
30k 10k
10 VIN
8
30k
40k
8 30k
10 VIN
40k
10 VIN 6
10 6 VIN
VIN 4V
Calculate the value of VIN which causes VOUT to change from -10V to +10V.
Method B Balanced Currents
R1
R1 R2
I
R1
30k
R2
10k
10 VIN
10 2
30k
30k 10k
10 VIN
12
30k
40k
12 30k
10 VIN
40k
10 VIN 9
VIN = ?V
VR= +2V
10 9 VIN
VIN 1V
-15
Vout/V
+15
Vin/V
-15
27
3V
VOUT
+
R2
VIN
i)
10k
20k
20k
R2
10k
VIN = +6V
Note:
VX = ?V
28
R1
9 VX
96
( 20 10) k
20k
3 20k
9 VX
30k
2 9 VX
V X 9 2 7V
29
Vin
Vout
4.3V
3.9V
a.
b.
30
VIN
VOUT
VR= 3V
R2
20k
R1
30k
Calculate the value of VIN which causes VOUT to change from +12V to -12V
..
..
..
..
..
..
..
..
..
ii)
Calculate the value of VIN which causes VOUT to change from -12V to +12V.
..
..
..
..
..
..
..
..
..
..
31
+15
-15
+15
Vin/V
-15
3.
1V
VOUT
VIN
R2
15k
R1
30k
32
Calculate the value of VIN which causes VOUT to change from +10V to 10V
..
..
..
..
..
..
..
..
..
ii)
Calculate the value of VIN which causes VOUT to change from -10V to +10V.
..
..
..
..
..
..
..
..
..
iii)
-15
Vout/V
+15
Vin/V
-15
33
Vin/V
time/s
34
Vin/V
Upper Threshold
Lower Threshold
time/s
35
VREF
VOUT
VIN
R2
15k
R1
30k
i)
ii)
VOUT = +12V
I
R1
VX = 0V
R2
VIN =-3V
36
I
R1
VX = 0V
R2
VIN =-3V
We have arrived at the same ratio for the resistors using both methods.
Either method is suitable in the examination.
So all that remains now is to choose suitable values for the resistors. Any
values over 1k in an appropriate ratio would be fine, so for example,
R1 = 4k, R2 = 1k;
R1 = 16k, R2 = 4k;
R1 = 40k, R2 = 10k;R1 = 8.8k, R2 = 2.2k; etc are all
acceptable answers.
The final circuit could then look like this:
-
0V
VOUT
VIN
R2
10k
R1
40k
37
VREF=3V
VOUT
VIN
R2
15k
R1
30k
VOUT = +13V
I
R1
VX = 3V
R2
VIN =+0.8V
13 3 10
R1
R1
and
3 0.8 2.2
R2
R2
R1
R2
10 R2 2.2 R1
R2 0.22 R1
38
VR1 10V
VR2 2.2V
R1
so
VX = 3V
VR1
VR2
R2
R1
R2
R
10
1
2 . 2 R2
VIN =+0.8V
R2 0.22 R1
3V
VOUT
VIN
R2
2.2k
R1
10k
39
VIN
VOUT
VREF=2V
R2
15k
R1
30k
VOUT = +10V
I
R1
VIN = 5V
R2
VREF =+2V
10 5 5
R1
R1
and
52 3
R2
R2
R1
R2
5 R2 3R1
R2 0.6 R1
40
VR1 5V
VR2 3V
R1
so
VIN =+5V
VR1
VR2
R2
R1
R2
5 R1
3 R2
VREF =+2V
R2 0.6 R1
We have arrived at the same ratio for the resistors using both methods.
The final circuit could then look like this:
-
VIN
VOUT
2V
R2
10k
R1
6k
Note: In an examination you will only be asked to give VREF for symmetrical
switching thresholds which means that VREF will be 0V. In non-symetrical
circuits VREF will be provided.
Now here are some examples for you to do.
41
a.
Using your switching thresholds from part (a) complete the output
signal for a non-inverting Schmitt trigger with saturation at 8V.
Vin/V
time (s)
-2
-4
-6
10
0
42
-10
Vout/V
time (s)
VREF
VOUT
VIN
R2
15k
R1
30k
i)
ii)
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
R1 = ....................................
R2 = .......................................
43
VIN
VOUT
VREF
R2
15k
R1
30k
i)
ii)
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
R1 = ....................................
44
R2 = .......................................
VREF=-1V
VOUT
VIN
R2
15k
R1
30k
R2 = .......................................
45
Vin
Vout
4.3V
3.9V
a.
b.
VOUT/V
-10
-5
-5
-10
46
10 VIN/V
VIN
VOUT
+
R2
VR= 3V
20k
R1
30k
Calculate the value of VIN which causes VOUT to change from +12V to -12V
Method A Voltage Divider
VOUT = +12V
R1
R1 R2
I
R1
30k
R2
20k
VIN = ?V
VR =+3V
12 VIN
12 3
30k
30k 20k
12 VIN
9
30k
50k
9 30k
12 VIN
50k
12 VIN 5.4
12 5.4 VIN
VIN 6.6V
47
Calculate the value of VIN which causes VOUT to change from -12V to +12V.
Method B Balanced Currents
R1
R1 R2
I
R1
30k
12 VIN
12 3
30k
30k 20k
12 VIN
15
30k
50 k
15 30 k
12 VIN
50k
12 VIN 9
VIN = ?V
R2
20k
VR= +3V
12 9 VIN
VIN 3V
-15
+15
-15
48
Vout/V
Vin/V
1V
VOUT
+
R2
VIN
15k
R1
30k
VOUT VIN
V
VX
OUT
R1 R2
R1
VOUT = +10V
R1
30k
R2
15k
VX = ?V
VIN = +4V
10 4
10 V X
( 30 15 )k
30k
6 30k
10 V X
45k
4 10 V X
V X 10 4 6V
10 4
6
0.133mA
45k
45k
49
Calculate the value of VIN which causes VOUT to change from +10V to -10V
Method A Voltage Divider
VOUT = +10V
R1 R2
R1
I
R1
30k
R2
15k
VX = ?V
ii)
Calculate the value of VIN which causes VOUT to change from -10V to +10V.
Method A Voltage Divider
VOUT = -10V
IR1
R1
30k
R2
15k
VX = 1V
VIN = ?V
Note: From diagram VIN > 1V
50
10 V X
10 4
( 30 15 )k
30k
6 30k
10 V X
45k
4 10 V X
V X 10 4 6V
VIN = +4V
Note:
R1 R2
R1
10 VIN
10 1
( 30 15 )k
30k
10 VIN
11
45k
30k
11 45k
10 VIN
30k
10 VIN 16.5
10 16.5 VIN
VIN 6.5V
-15
Vout/V
+15
Vin/V
-15
51
Vin/V
time (s)
-2
-4
-6
10
-10
52
Vout/V
time (s)
Vin/V
time (s)
-2
-4
-6
10
Vout/V
-10
53
VREF
VOUT
+
R2
VIN
15k
R1
30k
i)
ii)
VOUT = +9V
I
R1
VX = 0V
R2
VIN =-4V
54
I
R1
V X = 0V
R2
VIN =-4V
0V
VOUT
VIN
R2
20k
R1
45k
55
VIN
VOUT
VREF
R2
15k
R1
30k
i)
ii)
VOUT = +15V
I
R1
VIN = 5V
R2
VREF = 0V
15 5 10
and
R1
R1
R1
R2
10 R2 5 R1
R1 2 R2
56
50 5
R2
R2
I
R1
VIN = 5V
R2
VREF =0V
VIN
VOUT
0V
R2
10k
R1
20k
57
VREF=-1V
VOUT
+
R2
VIN
15k
R1
30k
VOUT = +11V
I
R1
VX = -1V
R2
VIN =-5V
11 ( 1 ) 12
R1
R1
and
1 ( 5 )
4
R2
R2
R1
R2
12 R2 4 R1
R1 3R2
58
I
R1
VX = -1V
R2
VIN =-5V
-1V
VOUT
VIN
R2
2k
R1
6k
59
The following circuit diagram shows an op-amp connected as a Schmitt trigger. The op-amp
saturates at +10V and 0V.
+2V
VOUT
VIN
(a)
R2
10k
R1
20k
..
[1]
(b)
(c)
....................................................................................................................................................
[2]
Calculate the upper switching threshold by calculating the value of VIN that produces a
voltage of +2V at X when VOUT=0V.
....................................................................................................................................................
....................................................................................................................................................
(d)
....................................................................................................................................................
[2]
Calculate the lower switching threshold.
....................................................................................................................................................
....................................................................................................................................................
(e)
....................................................................................................................................................
[2]
Give a use for this circuit in a digital communication system.
....................................................................................................................................................
[1]
60
(i)
....................................................................................................................................................
....................................................................................................................................................
....................................................................................................................................................
[1]
(ii)
Identify one possible source of noise.
....................................................................................................................................................
....................................................................................................................................................
....................................................................................................................................................
[1]
(b)
61
The next diagram shows an inverting Schmitt trigger. The output of the comparator
saturates at 10V.
VIN
VOUT
0V
R2
R1
330k
220k
62
A Schmitt trigger has the following input/output characteristic, when connected to a +15V/-15V
power supply.
63
The graph shows the signal applied to the input of the Schmitt trigger.
On the same axes draw the resulting output signal.
(b)
Design a suitable circuit for this Schmitt trigger, based on an op-amp running on a +15V/15V supply.
Calculate suitable values for any resistors used, and mark these values on the circuit
diagram.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[4]
64
The following diagram shows the circuit for an inverting Schmitt trigger.
VIN
VOUT
4V
R2
R1
10k
20k
(b)
....................................................................................................................................................
[2]
Calculate the voltage at X when VOUT = 0V
....................................................................................................................................................
....................................................................................................................................................
(c)
....................................................................................................................................................
[2]
Write down the switching thresholds of the Schmitt trigger.
Lower switching threshold
...............................................
...............................................
[1]
65
A different inverting Schmitt trigger has switching thresholds at +0.8V and +3.2V. Draw the
output for this new Schmitt trigger if the following analogue signal is applied to the input.
The comparator saturates at 10V.
[3]
66
4V
VOUT
VIN
R2
22k
R1
47k
......................................................................................................................................................
......................................................................................................................................................
[2]
(ii)
Determine the upper switching threshold by calculating the value of VIN which produces a
voltage of +4V at X when VOUT = 0V.
......................................................................................................................................................
......................................................................................................................................................
......................................................................................................................................................
......................................................................................................................................................
[2]
(iii)
......................................................................................................................................................
......................................................................................................................................................
......................................................................................................................................................
......................................................................................................................................................
[2]
67
Sketch the characteristic for VOUT against VIN for this Schmitt trigger using the axes
provided.
[3]
68
The following diagram shows the circuit for a Schmitt trigger. The comparator saturates at +10V
and 0V.
+4V
VOUT
VIN
R2
200k
R1
400k
(a)
(b)
....................................................................................................................................................
[1]
Calculate the voltage at X when VIN = 7V, and VOUT= +10V.
....................................................................................................................................................
....................................................................................................................................................
(c)
....................................................................................................................................................
[2]
Calculate the value of VIN that causes VOUT to change from 0V to +10V.
....................................................................................................................................................
....................................................................................................................................................
(d)
....................................................................................................................................................
[2]
Calculate the value of VIN that causes VOUT to change from +10V to 0V.
....................................................................................................................................................
....................................................................................................................................................
....................................................................................................................................................
[2]
69
[3]
70
(a)
The following circuit diagram shows how a Schmitt trigger circuit can be made using an opamp and two zener diodes.
Draw the switching characteristic of the Schmitt trigger when the op-amp is connected to a
12V power supply using the axes below.
[3]
71
+2V
VOUT
VIN
R2
150k
R1
300k
....................................................................................................................................................
....................................................................................................................................................
....................................................................................................................................................
[2]
(ii)
Calculate the value of VIN that causes VOUT to change from +12V to -12V.
....................................................................................................................................................
....................................................................................................................................................
....................................................................................................................................................
[2]
(iii)
Calculate the value of VIN that causes VOUT to change from -12V to +12V.
....................................................................................................................................................
....................................................................................................................................................
(c)
....................................................................................................................................................
[2]
Identify a situation where a Schmitt trigger would be needed in a communication system
and what improvement it would make.
....................................................................................................................................................
....................................................................................................................................................
....................................................................................................................................................
[2]
72
A Schmitt trigger circuit has the following input/output characteristic when connected to a 10V
supply.
(a)
(b)
(i)
What is the value of VIN that causes VOUT to change from -9V to +9V? ..................
(ii)
What is the value of VIN that causes VOUT to change from +9V to -9V? ..................
[1]
Design a suitable circuit for this Schmitt trigger based on a comparator running on a 10V
supply. The comparator output saturates at 9V. Calculate suitable values for any resistors
used and mark these on the circuit diagram.
[4]
73
+3V
VOUT
VIN
R2
10k
R1
30k
(b)
....................................................................................................................................................
[1]
Calculate the voltage at X when VIN = 7V, and VOUT= +12V.
....................................................................................................................................................
....................................................................................................................................................
(c)
....................................................................................................................................................
[2]
Calculate the value of VIN that causes VOUT to change from 0V to +12V.
....................................................................................................................................................
....................................................................................................................................................
(d)
....................................................................................................................................................
[2]
Calculate the value of VIN that causes VOUT to change from +12V to 0V.
....................................................................................................................................................
....................................................................................................................................................
....................................................................................................................................................
[2]
74
Learning Objectives
1.
2.
75