Ele724 Lab Manual
Ele724 Lab Manual
in
+
k
3,4
k
1,2
(v
+
o
v
o
), (6.1)
where k
1,2
=
1
2
n
C
ox
W
L
1,2
and k
3,4
=
1
2
p
C
ox
W
L
3,4
. Assume the state
CHAPTER 6. LABORATORYFOUR: VOLTAGE COMPARATOR WITH HYSTERESIS 40
M1 M2
M3 M4 M5
M7
M6
M8
M10 M9
v
o
vo- vo+
J
Figure 6.2: Comparator with hysteresis proposed by A. Allstot.
transition of the Schmitt trigger takes place when v
+
o
= v
o
. It is evident
from (6.1) that this will occur when v
+
in
= v
in
.
Now consider the case where the positive feedback is present. It can be
shown that
v
+
in
(V
ss
+ V
T
) +
k
3
k
1
V
DD
v
o
V
T
1 +
1
2
I
D6
I
D3
,
v
in
(V
ss
+ V
T
) +
k
4
k
2
V
DD
v
o
V
T
1 +
1
2
I
D5
I
D4
,
(6.2)
Note that we have assumed that
I
D6
I
D3
,
I
D5
I
D4
1 and utilized
1 + x1 +
1
2
x
in derivation of (6.2). It follows from (6.2) that
v
+
in
= v
in
+
k
3,4
k
1,2
v
+
o
v
+
I
D5,6
I
D3,4
k
3,4
k
1,2
(v
o
), (6.3)
where v
o
is the variation of the output voltage and is dened from v
+
o
=
v
o
+v
o
and v
o
= v
o
v
o
. A comparison of (6.1) and (6.3) reveals that the
switching point of the comparator has been shifted by the amount quantied
CHAPTER 6. LABORATORYFOUR: VOLTAGE COMPARATOR WITH HYSTERESIS 41
by the second term on the right hand side of (6.3). It also becomes apparent
that by varying the width of M5 and M6, which change I
D5
and I
D6
, the
switching voltages, i.e., the triggering voltage of the comparator, can be
adjusted.
6.1.3 Pre-Lab Requirements
In this laboratory, you are required to design and analyze an Allstot voltage
comparator with only one power supply. You are required to complete
a pre-laboratory report prior to undertaking any laboratory work. The pre-
laboratory report is due on Friday of the week before the start of the labo-
ratory. A 20% penalty will apply to a late pre-laboratory report.
Pre-laboratory reports can be prepared in either Microsoft Word, LaTeX, and
other text editors. Hand-written pre-laboratory reports are also acceptable.
Your pre-laboratory report must contain the followings :
1. A cover page containing the title of the report, the name and student
identication number.
2. The detailed derivation of the preceding expressions of the Allstot volt-
age comparator (100%).
6.2 Laboratory Work
You need to complete the followings:
1. Create the schematic view and symbol view of the comparator.
2. Create a test xture for testing the comparator.
3. Connect an ideal voltage source of 0.6 V to v
in
. Disable the positive
feedback by removing M5 and M6 (You do not need to remove the tran-
sistors. All you need to do is to cut wires connecting these transistors
CHAPTER 6. LABORATORYFOUR: VOLTAGE COMPARATOR WITH HYSTERESIS 42
to the output node. Warning messages will appear when recompiling.
Just ignore them as you know where they come from). Perform DC
sweeping of v
in
+ from 0 to 1.2V and from 1.2 to 0V to nd the trig-
gering voltages of the comparator. Plot the output voltage versus the
input voltage. Identify the triggering voltages in your plots.
4. Connect an ideal voltage source of 0.6 V to v
in
. Enable the positive
feedback by re-connecting M5 and M6 to the output nodes. Perform
DC sweeping of v
in
+ from 0 to 1.2 V and from 1.2 to 0V to nd the
triggering voltages of the comparator. Plot the output voltage versus
the input voltage. Identify the triggering voltages in your plots.
5. Repeat the last step by increasing and decreasing the width of M5 and
M6. This will change the strength of the positive feedback subsequently
the triggering voltages. Plot the output voltage versus the input voltage
for both cases.
6. Connect an ideal square-wave voltage source to v
in+
and keep the 0.6
V ideal voltage source connected to v
in
. The square-wave voltage
source should have voltage swing 0-1.2V and 50% duty cycle. You
can choose the oscillation period between kHz and MHz. Enable the
positive feedback by re-connecting M5 and M6 to the output nodes.
Perform transient analysis over several periods. Note that you should
choose more cycles and discard the initial few cycles, which correspond
to the initial conditions of your simulation. Plot the waveform of both
v
in+
and v
o
in the steady state. Identify the triggering voltages for
0-1.2V transitions and 1.2V-0 transitions.
6.3 Post-Laboratory Report
The report must be prepared in either Microsoft Word, LaTeX, or other text
editors. The cover page must contain the title of the lab report, the name and
identication number of the student. All required gures must be embedded
CHAPTER 6. LABORATORYFOUR: VOLTAGE COMPARATOR WITH HYSTERESIS 43
in the main body of the report. Hand-written post-laboratory reports
will be rejected. The post-laboratory report must contain the followings :
1. Cover page containing the name and identication number of the stu-
dent.
2. Table of content of your report.
3. List of gures and list of tables.
4. An introduction of the laboratory and your design approach
5. The main body of the report that details the laboratory work and
observation
The schematic of the voltage comparator (10%).
Tabulate the dimension of all transistors (10%).
Simulated voltage transfer characteristic with v
in
= 0.6 V when
the positive feedback is removed (20%).
Simulated voltage transfer characteristic with v
in
= 0.6 V when
the positive feedback is enabled (20%).
Simulated voltage transfer characteristic with v
in
= 0.6 V when
the positive feedback is enabled and the width of M5 and that of
M6 are increased and decreased (20%).
Simulated transient response of the output voltage with v
in
= 0.6
V when the positive feedback is enabled (20%).
Bibliography
[1] J. Harkness, An idea man, IEEE Engineering in Medicine and Biology
Maganize, pp.20-41, Nov./Dec. 2004.
[2] O. Schmitt, A thermionic trigger, J. Scientic Instruments, vol.15,
pp. 24-26, Jan. 1938.
[3] A. Allstot, A precision variable-supply CMOS comparator, IEEE J.
Solid-State Circuits, Vol. 17, No. 6, pp. 1080-1087, Dec. 1982.
44
Chapter 7
Laboratory Five : Voltage
References
7.1 Pre-Laboratory
Voltage or current references are a critical component of electronic systems.
The performance of voltage references is primarily measured by voltage coef-
cient (V
o
/V
DD
) dened as the ratio of the change of the output voltage
to that of the supply voltage and temperature coecient (V
o
/T) dened as
the ratio of the change of the output voltage to that of the supply voltage.
In this laboratory, you are required to design and analyze a voltage reference
with only one power supply.
You are required to complete a pre-laboratory report prior to undertak-
ing any laboratory work. The pre-laboratory report is due on Friday of the
week before the start of the laboratory. A 20% penalty will apply to a late
pre-laboratory report.
Pre-laboratory reports can be prepared in either Microsoft Word, LaTeX, and
other text editors. Hand-written pre-laboratory reports are also acceptable.
Your pre-laboratory report must contain the followings :
45
CHAPTER 7. LABORATORY FIVE : VOLTAGE REFERENCES 46
1. A cover page containing the title of the report, the name and student
identication number.
2. The schematic of the voltage reference (30%).
3. Derive the expression of the output voltage of the voltage reference.
Find the condition upon which the output voltage is independent of
temperature (70%).
7.2 Laboratory Work
1. Create the schematic view and symbol view of the voltage reference.
2. Create a test xture for testing the voltage reference.
3. Record V
GS
, V
DS
, and I
DS
of all transistors. Use pinch-o condition to
determine the mode of the operation of the transistors (Saturation or
triode).
4. Sweep the supply voltage from 80% to 120% of the nominal value with
10 steps. Record the output voltage of the voltage reference.
5. Sweep the temperature from -20C to 80C with 10 steps while keeping
V
DD
= 1.2 V. Record the output voltage of the voltage reference.
7.3 Post-Laboratory Report
The post-laboratory report must be prepared in either Microsoft Word, La-
TeX, or other text editors. Figures, tables, and expressions should be em-
bedded in the main body of the report. Hand-written post-laboratory
reports will be rejected. The post-laboratory report must contain the
followings :
1. Cover page containing the name and student identication number;
CHAPTER 7. LABORATORY FIVE : VOLTAGE REFERENCES 47
2. Table of content of the report;
3. List of gures and list of tables,
4. An introduction of the laboratory and your design approach (10%);
5. The main body of the report that details the laboratory work and
observation:
The schematic of the voltage reference (10%);
The schematic of the test xture for testing the voltage reference
(10%);
Tabulate the dimension of the transistors of the voltage reference
(10%);
Tabulate the DC biasing conditions (V
GS
, V
DS
, and I
DS
) of the
transistors of the voltage reference. Use pinch-o condition to nd
out the mode of operation of each transistor (saturation or triode)
(20%);
Tabulate the output voltage versus supply voltage. Find supply
voltage coecient (V
o
/V
DD
).
Tabulate the output voltage versus temperature. Find tempera-
ture coecient (V
o
/T).