Doering Mydaq Msim Microelectronics PDF
Doering Mydaq Msim Microelectronics PDF
Doering Mydaq Msim Microelectronics PDF
2012
c National Technology and Science Press.
All rights reserved. Neither this book, nor any portion of it, may be copied
or reproduced in any form or by any means without written permission of
the publisher.
Contents
0 Introduction 7
0.1 Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
0.2 Textbook Cross Reference . . . . . . . . . . . . . . . . . . . . 9
0.3 Goals for Student Deliverables . . . . . . . . . . . . . . . . . 9
0.4 Student Deliverables Checklist . . . . . . . . . . . . . . . . . 13
0.5 Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . 14
1 Diode Circuits 15
1.1 Ideal Diodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
1.2 Temperature Sensor . . . . . . . . . . . . . . . . . . . . . . . . 19
1.3 Graphical Analysis . . . . . . . . . . . . . . . . . . . . . . . . 22
1.4 Series-Connected Diodes . . . . . . . . . . . . . . . . . . . . . 26
1.5 Zener Regulator . . . . . . . . . . . . . . . . . . . . . . . . . . 30
1.6 Half-Wave Rectifier . . . . . . . . . . . . . . . . . . . . . . . . 33
1.7 Another Half-Wave Rectifier . . . . . . . . . . . . . . . . . . . 38
1.8 Full-Wave Rectifier . . . . . . . . . . . . . . . . . . . . . . . . 39
1.9 Peak Rectifier . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
1.10 Limiter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
D Diodes 181
D.1 1N4148 Switching Diode . . . . . . . . . . . . . . . . . . . . . 181
D.2 Light-Emitting Diode (LED) . . . . . . . . . . . . . . . . . . . 182
D.3 1N5232B 5.6 V Zener Diode . . . . . . . . . . . . . . . . . . . 183
CONTENTS 5
E Transistors 185
E.1 2N2222A NPN BJT . . . . . . . . . . . . . . . . . . . . . . . . 185
E.2 2N3904 NPN BJT . . . . . . . . . . . . . . . . . . . . . . . . . 186
E.3 2N3906 PNP BJT . . . . . . . . . . . . . . . . . . . . . . . . . . 187
E.4 CA3083 NPN BJT Array . . . . . . . . . . . . . . . . . . . . . 188
E.5 ZVN3306A N-Channel Enhancement MOSFET . . . . . . . . 190
E.6 ZVP3306A P-Channel Enhancement MOSFET . . . . . . . . 192
Introduction
0.1 Resources
• Appendix A details the parts list required to implement all of the cir-
cuits and includes links to component distributors.
• Appendix C provides a pinout diagram and data sheet links for the
Texas Instruments TL072 dual operational amplifier used in many of
the circuits.
• Appendix E provides pinout diagrams for the required BJT and MOS-
FET transistors and links to vendor data sheets. This appendix also
includes SPICE models and links to video tutorials detailing how to
add several components to the NI Multisim “User Database” that are
not included with version 11.0.
including units, and write any additional calculations that were necessary
to reach an end result for simulation.
NOTE: Screen shots in Microsoft Word 2010 can be easily captured and
highlighted as follows:
(a) Analysis
i. “Given / Find” section including original circuit
ii. Detailed solution
iii. End result clearly identified
(b) Simulation – interpreted results from simulation screen shots
(c) Measurement
i. Circuit schematic with myDAQ connections
ii. Interpreted results
(d) Results comparison table
0.5 Acknowledgements
I gratefully acknowledge contributions from the following individuals:
• Tom Robbins (NTS Press) for his editorial support throughout this
project,
Ed Doering
Department of Electrical and Computer Engineering
Rose-Hulman Institute of Technology
Terre Haute, IN 47803
[email protected]
Chapter 1
Diode Circuits
Analysis
N OTE : A three-way numerical comparison is not required for this problem.
1. Determine the state of each diode (on or off) when the switch is in
position “A.”
Component Value
VCC +15 volts
VDD +5 volts
VEE −15 volts
D1 and D2 ideal diode
R1 2.2 kΩ
R2 1.0 kΩ
• The triangle designates the anode side of the diode symbol. Think
of the triangle as an arrow that signifies the preferred direction of
current flow.
1.1. IDEAL DIODES 17
1. Determine the state of each diode (on or off) when the switch is in
position “A.” Use the ELVISmx DMM voltmeter to measure the volt-
age across each diode (red probe on the anode, black probe on the
cathode), and recall that a positive voltage indicates the diode is on.
• Power the circuit with myDAQ +15V for VCC , -15V for VEE , and 5V
for VDD ; use AGND for circuit ground.
• DMM voltmeter:
http://decibel.ni.com/content/docs/DOC-12937
18 CHAPTER 1. DIODE CIRCUITS
Analysis
1. Write an equation for Vo as a function of temperature.
2. Plot Vo as a function of temperature over the range 0◦ C to 100◦ C.
20 CHAPTER 1. DIODE CIRCUITS
Component Value
Dsensor and Dref standard p-n junction diodes
R1 and R2 4.7K kΩ
VCC 15 V
• Name the nets connected to the diode anodes to make them easy to
find in the “Parameter Sweep” dialog box. Alternatively, connect a
Simulate → Instruments → Measurement Probe to each anode.
1.2. TEMPERATURE SENSOR 21
1. Allow both diodes to reach the same temperature, i.e., Tsensor = Tref .
Measure and record the voltage offset as Voffset ; subtract this offset
voltage from your subsequent measurements.
2. Heat the sensor diode by squeezing it between your fingers. Wait for
the voltage to stabilize, subtract Voffset , and then record this value as
the “body temperature” voltage. You may also blow through a straw
to direct warm air at the sensor diode.
3. If available, wrap crushed ice in a thin plastic bag and use it to chill
the sensor diode. Again, wait for the voltage to stabilize, subtract
Voffset , and then record its value as the “freezing point of water” volt-
age.
• Oscilloscope:
http://decibel.ni.com/content/docs/DOC-12942
Analysis
1. Plot the diode current-voltage characteristic over the domain 0.0 ≤
VD ≤ 1.0 V and range 0.0 ≤ ID ≤ 10.0 mA using a tool such as
LabVIEW MathScript or MATLAB. Use a voltage step size of 0.01 V
and calculate values only out to VD =0.8 V. Use the axis function to
set the indicated plot axis limits; in MathScript simply double-click
the upper axis limit of the plot and type in the required value.
1.3. GRAPHICAL ANALYSIS 23
2. Determine the diode current ID for the diode voltage VD = 0.60 volts.
4. Determine the diode’s Q-point, i.e., its operating point IDQ and VDQ
at the intersection of the diode characteristic and the load line.
Component Value
VS 1.70 V
diode IS = 9.076 nA, n=2, and VT =25.84 mV
R1 330 Ω
R2 470 Ω
2. Connect the remaining circuit of Figure 1.3 on the facing page to the
diode and run a DC operating point analysis to determine the diode’s
Q-point IDQ and VDQ .
24 CHAPTER 1. DIODE CIRCUITS
• DMM voltmeter:
http://decibel.ni.com/content/docs/DOC-12937
• DMM ammeter:
http://decibel.ni.com/content/docs/DOC-12939
Analysis
1. Determine the actual power supply voltage Vdig for three scenarios of
digital device operation:
Component Value
D1 – D4 0.7 volt forward-biased voltage drop, ideal diode otherwise
Vbatt 6.0 V
1. Determine the actual power supply voltage Vdig for three scenarios of
digital device operation:
Note that these resistor values approximate the device current values
used in the problem statement.
• Completely remove the resistor for the “no current required” mea-
surement.
1. Determine the actual power supply voltage Vdig for three scenarios of
digital device operation:
Note that these resistor values approximate the device current values
used in the problem statement.
• DMM voltmeter:
http://decibel.ni.com/content/docs/DOC-12937
Analysis
1. Determine the load voltage VL for RL equal to:
Component Value
D ideal zener diode with reverse breakdown voltage VZ = 5.6 volts
RS R = 1 kΩ
VS 15 V
• Connect to the middle terminal and one end terminal of the poten-
tiometer.
• DMM voltmeter:
http://decibel.ni.com/content/docs/DOC-12937
Analysis
1. Plot two periods of vi (t) and vo (t) for each of the three input wave-
forms shown in Figure 1.7 on page 37.
2. Determine the following numerical descriptors for each type of wave-
form output vo (t):
(a) Peak value, and
(b) Effective DC value, also known as RMS value. N OTE : These
calculations are challenging for the sine wave and triangle wave
and are therefore optional.
3. Determine the typical forward-biased diode voltage drop at the peak
output voltage.
Component Value
D 0.7 volt forward-biased voltage drop, ideal diode otherwise
R 10 kΩ
vi (t) VM = 4 V, 100 Hz frequency (T = 0.01 ms)
34 CHAPTER 1. DIODE CIRCUITS
Enter the circuit of Figure 1.6 on the previous page using the 1N4148 diode
model. Use the Simulate → Instruments → Function Generator and Sim-
ulate → Instruments → Oscilloscope instruments. Use a Simulate → In-
struments → Measurement Probe configured to display RMS voltage to
measure the effective DC value of the output vo (t).
1. Plot two periods of vi (t) and vo (t) for each of the three input wave-
forms shown in Figure 1.7 on page 37.
• Set distinct colors for the waveform traces to easily distinguish the
input and output waveforms.
• Refer to the tutorial videos below to learn how to take cursor mea-
surements from the oscilloscope.
1.6. HALF-WAVE RECTIFIER 35
• Oscilloscope:
http://decibel.ni.com/content/docs/DOC-12942
1. How does the waveform for vo (t) compare to your earlier results with
the 1N4148 diode? By how many times does the forward-bias voltage
drop increase?
2. Experiment with the three different waveform shapes while the func-
tion generator remains set to 100 Hz, paying particular attention to
the brightness of the LED. Discuss your observations of waveform
shape and brightness and relate these observations to your measured
effective DC values for each waveform shape.
Figure 1.7: Input waveforms for Problem 1.6 on page 33, Problem 1.8 on
page 39, and Problem 2.9 on page 83
38 CHAPTER 1. DIODE CIRCUITS
1. How does the parallel resistor affect the combined load seen by the
diode?
2. What happens to the LED intensity? What does this suggest about
the new diode current?
Analysis
1. Copy the circuit of Figure 1.8 and sketch the flow of positive current
throughout the entire circuit for vi > 0. Repeat for vi < 0.
2. Plot two periods of vi (t) and vo (t) for each of the three input wave-
forms shown in Figure 1.7 on page 37.
Component Value
D1 –D4 0.7 volt forward-biased voltage drop, ideal diode otherwise
R 2.2 kΩ
vi (t) VM = 5 V, 100 Hz frequency (T = 0.01 ms)
Enter the circuit of Figure 1.8 on the preceding page using the 1N4148
diode model. Use the Simulate → Instruments → Function Generator and
Simulate → Instruments → Oscilloscope instruments. Use a Simulate →
Instruments → Measurement Probe configured to display RMS voltage to
measure the effective DC value of the output vo (t).
1. Plot two periods of vi (t) and vo (t) for each of the three input wave-
forms shown in Figure 1.7 on page 37.
• Set distinct colors for the waveform traces to easily distinguish the
input and output waveforms.
1. Plot two periods of vi (t) and vo (t) for each of the three input wave-
forms shown in Figure 1.7 on page 37.
• Oscilloscope:
http://decibel.ni.com/content/docs/DOC-12942
1. How does the waveform for vo (t) compare to your earlier results with
the 1N4148 diode? By how many times does the forward-bias voltage
drop increase?
2. Experiment with the three different waveform shapes while the func-
tion generator remains set to 100 Hz, paying particular attention to
the brightness of the LEDs. Discuss your observations of waveform
shape and brightness and relate these observations to your measured
effective DC values for each waveform shape.
Analysis
1. Plot the input and output voltage waveforms vi (t) and vo (t) as well
as the capacitor current iC (t) for the input waveform shown in Fig-
ure 1.10 on the next page. Assume the capacitor is initially discharged.
(a) Voltage values of vo (t) at times t =250, 650, and 950 ms.
(b) Peak capacitor current.
Component Value
D 0.7 volt forward-biased voltage drop, ideal diode otherwise
C 1.0 µF
44 CHAPTER 1. DIODE CIRCUITS
Figure 1.10: Input waveform for Problem 1.9 on the preceding page
• Set distinct colors for the waveform traces to easily distinguish the
input and output waveforms.
1.9. PEAK RECTIFIER 45
• Refer to the tutorial videos below to learn how to take cursor mea-
surements from the oscilloscope.
(a) Select “Edge” triggering and trigger on the input waveform (Chan-
nel 0), use falling-edge (negative edge) triggering, set the trigger
level to 0.5 volts, and move the horizontal position to the far
right (100%),
(b) Set both the oscilloscope and arbitrary waveform generator to
“Run Once” acquisition mode,
(c) Temporarily short the capacitor with a wire to reset its voltage
to zero, and
(d) Click “Run” on the oscilloscope and then “Run” on the arbitrary
waveform generator as quickly as possible thereafter.
(a) Voltage values of vo (t) at times t =250, 650, and 950 ms.
(b) Peak capacitor current.
• Oscilloscope:
http://decibel.ni.com/content/docs/DOC-12942
1.10. LIMITER 47
1.10 Limiter
Digital inputs normally include diode limiters to ensure that input signals
that stray beyond the power supply limits do not damage the sensitive
input stages. Figure 1.11 shows such a limiter circuit constructed from a
pair of diodes and a resistor.
Analysis
1. Plot the input and output voltage waveforms vi (t) and vo (t) for a 100-
Hz triangle wave with 5 volts peak amplitude.
Component Value
VDD 3.3 V
D1 , D2 0.7 volt forward-biased voltage drop, ideal diode otherwise
R R = 10 kΩ
Enter the circuit of Figure 1.11 on the preceding page using the 1N4148
diode model. Use the Simulate → Instruments → Function Generator to
create the input waveform described earlier and attach the Simulate → In-
struments → Oscilloscope to view the input and output waveforms.
1. Set up a Simulate → Run analysis to plot the input and output voltage
waveforms vi (t) and vo (t).
• Set distinct colors for the waveform traces to easily distinguish the
input and output waveforms.
• Refer to the tutorial videos below to learn how to take cursor mea-
surements from the oscilloscope.
1.10. LIMITER 49
• Function generator:
http://youtu.be/CeOl6EzD-_c
• Oscilloscope:
http://decibel.ni.com/content/docs/DOC-12942
2.1 Comparator
Figure 2.1 on the following page shows a comparator constructed from an
operational amplifier. Note that no feedback path exists from the op amp
output back to any of its inputs, therefore this is an example of an open-loop
circuit. The comparator serves as a basic component of analog-to-digital
converters by comparing the continuous analog signal to a voltage thresh-
old to produce a high-level voltage when the signal exceeds the threshold
and a low-level voltage otherwise. The LED indicator circuit serves the
dual role of showing the output state of the comparator and limiting the
output voltage to a range that can be measured by the NI myDAQ analog
output.
Analysis
N OTE : A three-way numerical comparison is not required for this problem.
1. Let vi (t) be a 5-volt peak triangle wave at 10 Hz. Plot vi (t) and vo (t).
H INTS : Determine the voltage across R1 using properties of ideal
op amps, and account for saturation of the op amp (the TL072 sat-
urates at approximately ±13.5 V, or 1.5 V inside each power supply
rail).
Component Value
VCC +15 volts
VEE −15 volts
LEDs 2 V forward drop
resistors R1 = 10 kΩ and R2 = 1 kΩ
• Use the “+” terminal and center terminal of the sinewave function
generator.
• Function generator:
http://youtu.be/CeOl6EzD-_c
• Create two components under this segment, one for the triangle
wave and another for the sine wave. Ensure that “Function” is
set to “+” to add the components together.
• Power the op amp with myDAQ +15V for VCC and -15V for VEE ; use
AGND for circuit ground.
• Oscilloscope:
http://decibel.ni.com/content/docs/DOC-12942
2. The frequencies used above were selected to easily visualize the sig-
nals on the oscilloscope. Reduce the frequencies to make the com-
parator behavior visible on the LEDs; try reducing the arbitrary wave-
form generator sampling rate to 5.0 kS/s.
2.2. INVERTING AMPLIFIER 55
Analysis
1. Sketch vi (t) and vo (t) for R1 = 10 kΩ, R2 = 10 kΩ, and with a 2-volt
peak-to-peak triangle wave at 100 Hz as vi (t). What is the maximum
value of vo (t)?
3. The amplifier of Part (1) is cascaded with the amplifier of Part (2), i.e.,
the output of the first amplifier feeds the input of the second to make
a two-stage amplifier. Sketch the output of the second stage when the
input to the first stage is a 200-mV peak square wave at 100 Hz. What
is the maximum value of vo (t)?
56 CHAPTER 2. OPERATIONAL AMPLIFIER CIRCUITS
Component Value
VCC +15 volts
VEE −15 volts
3. The amplifier of Part (1) is cascaded with the amplifier of Part (2), i.e.,
the output of the first amplifier feeds the input of the second to make
a two-stage amplifier. Plot the output of the second stage when the
input to the first stage is a 200-mV peak square wave at 100 Hz; use
the same volts-per-division setting on the oscilloscope. Use the oscil-
loscope cursor to determine the maximum value of vo (t).
• Ground the center terminal of the function generator and leave the
“–” terminal unconnected.
2.2. INVERTING AMPLIFIER 57
• Note that connecting the power supplies to pins 8 and 4 of the “A” de-
vice causes “X”s to appear at the same pins on the “B” device because
both devices share the same power supply connections.
• Function generator:
http://youtu.be/CeOl6EzD-_c
• Use the ELVISmx Oscilloscope to plot the input vi (t) on AI0 and
the output vo (t) on AI1; use the same volts-per-division setting
for both channels.
3. The amplifier of Part (1) is cascaded with the amplifier of Part (2), i.e.,
the output of the first amplifier feeds the input of the second to make
a two-stage amplifier. Plot the output of the second stage when the
input to the first stage is a 200-mV peak square wave at 100 Hz; use
the same volts-per-division setting on the oscilloscope. Use the oscil-
loscope cursor to determine the maximum value of vo (t).
• Power the op amp with myDAQ +15V for VCC and -15V for VEE ; use
AGND for circuit ground.
• Oscilloscope:
http://decibel.ni.com/content/docs/DOC-12942
2.3. SUMMING AMPLIFIER 59
Analysis
1. Derive the general equation for the output voltage vo as a function
of the three input voltages v0 , v1 , and v2 and generic resistor values.
H INT: Apply the superposition circuit analysis method.
2. Suppose the input voltages are binary (two-level) signals, taking only
the values 0 V and Vmax . Tabulate all eight possible values of vo using
the specific resistor values listed below.
3. Plot vo (t) for the input voltages following the binary sequence (v2 v1 v0 )
= 000, 001, 010, 011, 100, 101, 110, and 111 where “0” denotes zero
volts and “1” denotes Vmax .
60 CHAPTER 2. OPERATIONAL AMPLIFIER CIRCUITS
Component Value
VCC +15 volts
VEE −15 volts
resistors R0 = 10 kΩ, R1 = 4.7 kΩ, R2 = 2.2 kΩ, and Rf = 3.3 kΩ
Vmax 3.3 volts
• Flip the Word Generator symbol horizontally (select the symbol and
type Alt+X) to make the needed signals emerge from the right side.
• The Word Generator pattern cursor stops when the simulation stops
and continues from this point when the simulator is restarted. To pro-
duce a consistent trace on the oscilloscope for repeated simulations,
right-click the top row of the Word Generator display and choose “Set
Cursor” to position the cursor at the beginning of the sequence.
2. Launch and run the NI ELVISmx Digital Writer (DigOut). Click the
line buttons to step through all eight possible combinations of lines 0
to 2 and record the RMS measurement indicator value for each com-
bination.
• Power the op amp with myDAQ +15V for VCC and -15V for VEE ; use
AGND for circuit ground.
• Oscilloscope:
http://decibel.ni.com/content/docs/DOC-12942
Analysis
1. Sketch vi (t) and vo (t) for R1 = 10 kΩ, R2 = 10 kΩ, and with a 2-volt
peak-to-peak triangle wave at 100 Hz as vi (t). What is the maximum
value of vo (t)?
3. The amplifier of Part (1) is cascaded with the amplifier of Part (2), i.e.,
the output of the first amplifier feeds the input of the second to make
a two-stage amplifier. Sketch the output of the second stage when the
input to the first stage is a 200-mV peak square wave at 100 Hz. What
is the maximum value of vo (t)?
64 CHAPTER 2. OPERATIONAL AMPLIFIER CIRCUITS
4. Compare and contrast your results for this problem with those of
Problem 2.2 on page 55.
Component Value
VCC +15 volts
VEE −15 volts
3. The amplifier of Part (1) is cascaded with the amplifier of Part (2), i.e.,
the output of the first amplifier feeds the input of the second to make
a two-stage amplifier. Plot the output of the second stage when the
input to the first stage is a 200-mV peak square wave at 100 Hz; use
the same volts-per-division setting on the oscilloscope. Use the oscil-
loscope cursor to determine the maximum value of vo (t).
• Ground the center terminal of the function generator and leave the
“–” terminal unconnected.
2.4. NONINVERTING AMPLIFIER 65
• Note that connecting the power supplies to pins 8 and 4 of the “A” de-
vice causes “X”s to appear at the same pins on the “B” device because
both devices share the same power supply connections.
• Function generator:
http://youtu.be/CeOl6EzD-_c
until the output peak voltage is 6 volts. Report this maximum peak
input voltage.
3. The amplifier of Part (1) is cascaded with the amplifier of Part (2), i.e.,
the output of the first amplifier feeds the input of the second to make
a two-stage amplifier. Plot the output of the second stage when the
input to the first stage is a 200-mV peak square wave at 100 Hz; use
the same volts-per-division setting on the oscilloscope. Use the oscil-
loscope cursor to determine the maximum value of vo (t).
• Power the op amp with myDAQ +15V for VCC and -15V for VEE ; use
AGND for circuit ground.
• Oscilloscope:
http://decibel.ni.com/content/docs/DOC-12942
2.5. DIFFERENCE AMPLIFIER 67
Analysis
1. Derive the equation for vo in terms of generic resistor values and the
input voltages v1 and v2 . H INT: Apply the superposition circuit anal-
ysis technique.
2. Derive the equation for vo for the special case of R3 = R1 and R4 =
R2 .
3. Plot vo (t) for the specific inputs and resistor values listed in the table
below.
68 CHAPTER 2. OPERATIONAL AMPLIFIER CIRCUITS
Component Value
VCC +15 volts
VEE −15 volts
R1 = R3 10 kΩ
R2 = R4 100 kΩ
v1 (t) Squarewave, 500 Hz, 0.1 V amplitude, zero DC offset
v2 (t) Sinewave, 100 Hz, 0.5 V amplitude, zero DC offset
• Function generator:
http://youtu.be/CeOl6EzD-_c
AO1 for v2 (t). Use the NI ELVISmx Oscilloscope to plot v1 (t) and vo (t)
and then v1 (t) and vo (t).
• Power the op amp with myDAQ +15V for VCC and -15V for VEE ; use
AGND for circuit ground.
• Oscilloscope:
http://decibel.ni.com/content/docs/DOC-12942
70 CHAPTER 2. OPERATIONAL AMPLIFIER CIRCUITS
R1 R3
vo = (1 + 2 )( )(v+ − v− ) (2.1)
RG R2
Note that the instrumentation amplifier gain can be adjusted by all four
resistor values, however, it is common to make the single adjustment to
RG , hence “G” stands for gain.
Additional definitions used in this problem:
vo
• Common-mode gain: ACM = viCM for viD = 0
vo
• Differential gain: AD = viD for viCM = 0
|AD |
• Common-mode rejection ratio (CMRR) in decibels: 20log10 |A CM |
Analysis
Assume ideal op amp behavior for this section.
Component Value
VCC +15 volts
VEE −15 volts
RG 1 kΩ
R1 1 kΩ
R2 2.2 kΩ
R3 100 kΩ
Enter the circuit of Figure 2.6 using the TL072CP op amp model. Place the
VCC and VEE power supplies and set their values to +15 V and −15 V.
72 CHAPTER 2. OPERATIONAL AMPLIFIER CIRCUITS
2. Return the ARB gain to 1.00 (which applies 10 volts to both inputs)
and measure the common-mode output voltage. Use this information
to calculate the common-mode gain ACM .
Use this waveform for both analog analog outputs. Set the ARB gain
to +15.00 for AO0 and to −15.00 for AO1. Observe the output voltage,
and then calculate the differential gain AD .
• Power the op amp with myDAQ +15V for VCC and -15V for VEE ; use
AGND for circuit ground.
• Oscilloscope:
http://decibel.ni.com/content/docs/DOC-12942
2.7 Integrator
Figure 2.7 shows an integrator, a circuit that performs real-time integration
of the input signal. Integrators play an important role in analog control
systems and other applications.
The integrator operates as follows:
1
Z t
vo (t) = − vi (x) dx + vo (t0 ) (2.2)
RC t0
Analysis
1. Let vi (t) be the pulse waveform of Figure 2.8 on the next page. Plot
vo (t) for t = 0 to t = 10 ms for an initial integrator output of zero
volts, and determine vo (t) at the times t = 2.5, 4.5, and 9.0 ms.
2. Plot vo (t) when vi (t) is a square wave with 0.5 V amplitude (1 V peak
to peak) at 50, 100, and 200 Hz. Determine the peak-to-peak voltage
of vo (t) for each frequency.
2.7. INTEGRATOR 75
Figure 2.8: Input waveform for Problem 2.7 on the facing page
3. Consider your results from the previous step, and explain the rela-
tionship between the frequency of the input and the amplitude of the
output.
Component Value
VCC +15 volts
VEE −15 volts
R 10 kΩ
C 0.1 µF
1. Use the PIECEWISE LINEAR VOLTAGE source to create the pulse wave-
form shown in Figure 2.8, and use the Simulate → Instruments →
76 CHAPTER 2. OPERATIONAL AMPLIFIER CIRCUITS
Oscilloscope to plot the signals vi (t) and vo (t). Use a distinct color
for each trace. Run an interactive simulation to view the signals, and
then take cursor measurements to determine the values of vo (t) at the
times t = 2.5, 4.5, and 9.0 ms.
• Function generator:
http://youtu.be/CeOl6EzD-_c
• Power the op amp with myDAQ +15V for VCC and -15V for VEE ; use
AGND for circuit ground.
• Use edge triggering and adjust the horizontal position to make the
leading edge of the pulse waveform appear at the far left side of the
oscilloscope display.
• Oscilloscope:
http://decibel.ni.com/content/docs/DOC-12942
2.8 Differentiator
Figure 2.9 shows a differentiator, a circuit that evaluates in real time the
derivative (slope) of the input signal. Differentiators can detect abrupt
changes or transitions in a signal.
The differentiator operates as follows:
dvo (t)
vo (t) = −RC (2.3)
dt
Analysis
1. Let vi (t) be the ramp waveform of Figure 2.10 on the facing page. Plot
vo (t) for t = 0 to t = 10 ms and determine vo (t) at the times t = 3.5,
6.5, and 8.5 ms.
2.8. DIFFERENTIATOR 79
Figure 2.10: Input waveform for Problem 2.8 on the preceding page
3. Consider your results from the previous step, and explain the rela-
tionship between the frequency of the input and the amplitude of the
output.
Component Value
VCC +15 volts
VEE −15 volts
R 10 kΩ
C 0.1 µF
1. Use the PIECEWISE LINEAR VOLTAGE source to create the ramp wave-
form shown in Figure 2.10 on the preceding page, and use the Simu-
late → Instruments → Oscilloscope to plot the signals vi (t) and vo (t).
Use a distinct color for each trace. Run an interactive simulation to
view the signals, and then take cursor measurements to determine
the values of vo (t) at the times t = 2.5, 6.5, and 8.5 ms.
• Function generator:
http://youtu.be/CeOl6EzD-_c
• Power the op amp with myDAQ +15V for VCC and -15V for VEE ; use
AGND for circuit ground.
• Use edge triggering and adjust the horizontal position to make the
leading edge of the ramp waveform appear at the far left side of the
oscilloscope display.
• Oscilloscope:
http://decibel.ni.com/content/docs/DOC-12942
Analysis
1. Determine an equation for vo when vi > 0 and when vi < 0.
2. Plot two periods of vi (t) and vo (t) for each of the three input wave-
forms shown in Figure 1.7 on page 37.
4. Compare and contrast your results for this problem with those of
Problem 1.6 on page 33.
Component Value
VCC +15 volts
VEE −15 volts
R 1 kΩ
D 0.7 volt forward-biased voltage drop, ideal diode otherwise
vi (t) VM = 4 V, 100 Hz frequency (T = 0.01 ms)
1. Plot two periods of vi (t) and vo (t) for each of the three input wave-
forms shown in Figure 1.7 on page 37.
• Ground the center terminal of the function generator and leave the
“–” terminal unconnected.
• Set distinct colors for the waveform traces to easily distinguish the
input and output waveforms.
• Refer to the tutorial videos below to learn how to take cursor mea-
surements from the oscilloscope.
2.9. PRECISION RECTIFIER 85
• Function generator:
http://youtu.be/CeOl6EzD-_c
1. Plot two periods of vi (t) and vo (t) for each of the three input wave-
forms shown in Figure 1.7 on page 37.
• Power the op amp with myDAQ +15V for VCC and -15V for VEE ; use
AGND for circuit ground.
• Oscilloscope:
http://decibel.ni.com/content/docs/DOC-12942
1. How does the waveform for vo (t) compare to your earlier results with
the 1N4148 diode? Recalling that the LED has approximately three
times higher voltage drop than the 1N4148 diode, propose an expla-
nation for your observations.
Analysis
1. Determine the two threshold voltages VLH (as the input vi crosses the
threshold from low to high) and VHL (as the input crosses the thresh-
old from high to low). The TL072 op amp saturates at approximately
1.5 V inside each power supply voltage, i.e., the op amp output volt-
age is limited to ±13.5 V.
2. Let vi (t) be a 5-volt peak triangle wave at 10 Hz. Plot vi (t), vp (t), and
vo (t).
88 CHAPTER 2. OPERATIONAL AMPLIFIER CIRCUITS
Component Value
VCC +15 volts
VEE −15 volts
LEDs 2 V forward drop
resistors R1 = 10 kΩ, R2 = 100 kΩ, and R3 = 1 kΩ
• Use the “+” terminal and center terminal of the sinewave function
generator.
2.10. SCHMITT TRIGGER 89
• Function generator:
http://youtu.be/CeOl6EzD-_c
1. Build the circuit of Figure 2.12 on page 87. Use AO0 to create vi . Set
up the NI ELVISmx Function Generator to create the triangle wave-
form described in the problem statement. Use the NI ELVISmx Os-
cilloscope to display vi (t) and vo (t). Take cursor measurements to
determine the two threshold voltages VLH and VHL .
• Power the op amp with myDAQ +15V for VCC and -15V for VEE ; use
AGND for circuit ground.
90 CHAPTER 2. OPERATIONAL AMPLIFIER CIRCUITS
• Oscilloscope:
http://decibel.ni.com/content/docs/DOC-12942
(a) Describe the behavior of the Schmitt trigger with this higher
level of random noise.
(b) Reduce the feedback resistor R2 to 22 kΩ. Calculate the new val-
ues of VLH and VHL and relate these values to the new behavior
of the Schmitt trigger.
2. The frequencies used above were selected to easily visualize the sig-
nals on the oscilloscope. Reduce the frequencies to make the com-
parator behavior visible on the LEDs; try reducing the arbitrary wave-
form generator sampling rate to 5.0 kS/s.
2.11. SQUAREWAVE OSCILLATOR 91
An operational amplifier serves as the basis of the square wave oscillator pic-
tured in Figure 2.13. The oscillation period is T = 2RC ln(1 + 2(R1 /R2 )).
Analysis
Component Value
VCC +15 volts
VEE −15 volts
LEDs 2 V forward drop
R1 10 kΩ
R2 10 kΩ
R3 1 kΩ
R 33 kΩ
C 0.1 µF
2. Update the values of R and C with your calculated values, re-run the
simulator, and measure the oscillation frequency. See the tips section
below to learn how to adjust the simulator settings for a low oscilla-
tion frequency.
• Power the op amp with myDAQ +15V for VCC and -15V for VEE ; use
AGND for circuit ground.
• Oscilloscope:
http://decibel.ni.com/content/docs/DOC-12942
2. Measure and make note of the actual forward voltage drop of your
LEDs. How close is the value to that obtained by simulation?
94 CHAPTER 2. OPERATIONAL AMPLIFIER CIRCUITS
Chapter 3
A BJT serves as the heart of a logic inverter in Figure 3.1, a basic component
of digital logic circuits. In this application the transistor is driven either to
saturation (the “ON” state) or to cutoff (the “OFF” state).
Analysis
1. Determine the value of RB to establish a “forced beta” (defined as
βforced = ICsat / IB ) of 5 when the input is 3.3 V. Use this resistor value
for the remainder of the problem.
3. Plot vo (t) when vi (t) is a 3.3 V peak-to-peak 100-Hz square wave with
zero minimum value.
Component Value
VCC 15 volts
BJT β = 200, VBE = 0.7 volts, VCEsat = 0.1 volts
RC 3.3 kΩ
2. Plot vo (t) when vi (t) is a 3.3 V peak-to-peak 100-Hz square wave with
zero minimum value.
• Use the Function Generator as the 100-Hz square wave source. Rec-
ognize that “Vp” signifies “peak” voltage which is the same as am-
plitude.
• Function generator:
http://youtu.be/CeOl6EzD-_c
• Use the Function Generator to create the 100-Hz square wave (be sure
to adjust the DC offset to achieve zero minimum value) and view vo (t)
and vi (t).
• DMM voltmeter:
http://decibel.ni.com/content/docs/DOC-12937
• DMM ammeter:
http://decibel.ni.com/content/docs/DOC-12939
• Oscilloscope:
http://decibel.ni.com/content/docs/DOC-12942
Analysis
1. Derive an equation for the load current IL as a function of the emit-
ter resistor value RE and input voltage Vin assuming that β is a high
value.
2. Use the values of Vin and RE listed in the table below for this and
subsequent parts. What is the highest load resistance RL for which
3.2. CURRENT SOURCE 101
the equation you derived in the previous step is valid? H INT: Look
for the transistor’s transition between active and saturation regions,
taking VCE = 100 mV as the boundary between the two regions.
Component Value
VCC +15 volts
BJT β = 200 and VBE = 0.7 volts (active region)
Vin 3.0 V
RE 330 Ω
3. Identify the highest load resistance RL for which the current IL re-
mains constant.
NI Multisim video tutorials:
3. Identify the highest load resistance RL for which the current IL re-
mains constant by following this procedure:
• Power the circuit with myDAQ +15V for VCC and AGND for the cir-
cuit ground.
• Implement the voltage source Vin with the adjustable DC voltage source
circuit of Figure B.2 on page 172.
• DMM voltmeter:
http://decibel.ni.com/content/docs/DOC-12937
• DMM ammeter:
http://decibel.ni.com/content/docs/DOC-12939
the same type, and then record IL again. Repeat for as many transis-
tors as you have available. Also, try using other NPN transistors that
you have on hand such as the 2N3904 (remember to observe proper
pinout, though, the 2N3904 is different than the 2N2222A). Report
the maximum and minimum values you observed, the average value,
and the percentage range of variation (ILmax − ILmin )/ILavg ) × 100%.
2. The input voltage Vin controls the load current in a proportional fash-
ion, making this circuit an implementation of the voltage-controlled
current source you recall studying in your circuits course. Place an
LED as the load device, and leave the DMM ammeter in place to
measure IL . Connect Vin to AO0, and use the NI ELVISmx Function
Generator to control the input voltage. Set the amplitude to zero and
vary the DC offset. Confirm that you can easily set the LED current
to any desired value. Consider using the NI ELVISmx Oscilloscope
to monitor AO0 as confirmation that you are controlling Vin as you
expect.
Analysis
1. Find the Q-point (operating point) values for base current IB , collec-
tor current IC , collector-emitter voltage VCE , and base-collector volt-
age VBC for RC = 1.0 kΩ assuming active-region operation. Deter-
mine the actual operating region of the transistor by comparing the
biases of the base-emitter and base-collector junctions.
Component Value
VCC +15 volts
BJT β = 200 and VBE = 0.7 volts
RB 470 kΩ
Enter the circuit of Figure 3.3 on the preceding page using the 2N2222A
transistor model. Place the VCC power supply and set its value to +15 V.
• Power the circuit with myDAQ +15V for VCC and AGND for the cir-
cuit ground.
• Carefully measure the resistance of each of the two resistors, and then
calculate the associated current from a DMM voltmeter measurement
of the voltage across the resistor. This method permits more precision
for the base current compared to using the DMM ammeter.
3.3. FIXED BIAS 107
• DMM voltmeter:
http://decibel.ni.com/content/docs/DOC-12937
• DMM ammeter:
http://decibel.ni.com/content/docs/DOC-12939
Analysis
1. Find the Q-point (operating point) values for base current IB , collec-
tor current IC , emitter-collector voltage VEC , and collector-base volt-
age VCB for RC = 1.0 kΩ assuming active-region operation. Deter-
mine the actual operating region of the transistor by comparing the
biases of the emitter-base and collector-base junctions.
Component Value
VEE -15 volts
PNP BJT β = 200 and VBE = 0.7 volts
RB 470 kΩ
Enter the circuit of Figure 3.4 on the preceding page using the 2N3906 tran-
sistor model; do not use the similarly-named 2N3906G model because it
has different behavior.
Build the circuit of Figure 3.4 on page 108 using the 2N3906 transistor.
• Power the circuit with myDAQ -15V for VEE and AGND for the circuit
ground.
• Carefully measure the resistance of each of the two resistors, and then
calculate the associated current from a DMM voltmeter measurement
of the voltage across the resistor. This method permits more precision
for the base current compared to using the DMM ammeter.
3.4. FIXED BIAS, PNP 111
• DMM voltmeter:
http://decibel.ni.com/content/docs/DOC-12937
• DMM ammeter:
http://decibel.ni.com/content/docs/DOC-12939
112 CHAPTER 3. BIPOLAR JUNCTION TRANSISTOR (BJT) CIRCUITS
Analysis
Find the Q-point (operating point) values for base current IB , collector cur-
rent IC , collector-emitter voltage VCE , and base-collector voltage VBC as-
suming active-region operation.
Use the following circuit components:
3.5. VOLTAGE-DIVIDER BIAS 113
Component Value
VCC +15 volts
BJT β = 200 and VBE = 0.7 volts
RB1 100 kΩ
RB2 47 kΩ
RC 1.5 kΩ
RE 470 Ω
• Power the circuit with myDAQ +15V for VCC and AGND for the cir-
cuit ground.
• DMM voltmeter:
http://decibel.ni.com/content/docs/DOC-12937
• DMM ammeter:
http://decibel.ni.com/content/docs/DOC-12939
The Darlington pair combines two NPN transistors into a single effective
“super beta” transistor. The Darlington pair boosts the current drive abil-
ity of the common-collector amplifier (also known as an emitter follower) of
Figure 3.6.
Analysis
3. Calculate the effective input resistance of the circuit Rin = Vin /IB .
116 CHAPTER 3. BIPOLAR JUNCTION TRANSISTOR (BJT) CIRCUITS
Component Value
VCC 5V
BJT β = 200 and VBE = 0.7 volts (active region)
resistors RL1 = RL1 = 100 Ω
2. Determine IB , IL , and VL .
3. Calculate the effective input resistance of the circuit Rin = Vin /IB .
3. Calculate the effective input resistance of the circuit Rin = Vin /IB .
3.6. DARLINGTON-PAIR EMITTER FOLLOWER 117
• Power the circuit with myDAQ 5V for VCC and DGND for the circuit
ground; use either AGND or DGND as the circuit ground because they
are connected internally.
• DMM voltmeter:
http://decibel.ni.com/content/docs/DOC-12937
• DMM ammeter:
http://decibel.ni.com/content/docs/DOC-12939
1N4148 diodes to DIO0; refer to Figure 3.7 for the circuit. The diodes
mimic the VBE drops of the Darlington pair to make a fair compari-
son.
2. Toggle the DIO0 line on and off. How well does the output drive the
LEDs? Do they get very bright?
3. Remove the diodes, connect the parallel LEDs to the output of your
emitter follower (remove the two 100 Ω resistors, too), and re-connect
DIO0 to the circuit input.
4. Toggle the DIO0 line on and off – careful, do NOT look directly into the
LEDs! How well does your circuit drive the LEDs? Compare the
“before and after” results of your emitter follower circuit.
Figure 3.7: Parallel LED load with series diodes for direct connection to
DIO0.
3.7. COMMON-EMITTER AMPLIFIER 119
Analysis
1. Determine the Q-point (operating point) values ICQ , VCQ , VBQ , and
VEQ .
Component Value
VCC 9V
BJT β = 200 and VBE = 0.7 volts (active region)
Resistors RB1 = 100 kΩ, RB2 = 47 kΩ, RE = 330 Ω, RC = 680 Ω, and RL = 1 kΩ
Capacitors Cin = 10 µF, Cout = 100 µF, and CE = 470 µF
1. Determine the Q-point (operating point) values ICQ , VCQ , VBQ , and
VEQ ; temporarily replace the function generator with a ground con-
nection as the input.
• Place the cursors at the maximum and minimum values of the output
waveform, and then read the “T2-T1” display as the peak-to-peak
value.
• Function generator:
http://youtu.be/CeOl6EzD-_c
1. Determine the Q-point (operating point) values ICQ , VCQ , VBQ , and
VEQ ; temporarily replace the function generator with a ground con-
nection as the input.
• Oscilloscope:
http://decibel.ni.com/content/docs/DOC-12942
• Probe each of the nodes in the circuit, tracing how the input signal
“moves” through the amplifier,
Analysis
1. Calculate IREF , I1 , and I2 .
Component Value
VCC +15 volts
BJT array, QA to QE β = 70 and VBE = 0.7 volts (active region)
BJT Qcomp β = 200 and VBE = 0.7 volts (active region)
Resistors R0 = 4.7 kΩ, R1 = 4.7 kΩ, and R0 = 1.5 kΩ
124 CHAPTER 3. BIPOLAR JUNCTION TRANSISTOR (BJT) CIRCUITS
1. Determine IC , I1 , and I2 .
1. Measure IC , I1 , and I2 .
2. Measure IREF and then calculate the current mirror gains β1 = I1 /IREF
and β2 = I2 /IREF .
• Power the circuit with myDAQ +15V for VCC and AGND for the cir-
cuit ground.
• Refer to the diagram of Figure D.2 on page 182 to determine the anode
and cathode connections of an LED.
NI myDAQ video tutorials:
• DMM ammeter:
http://decibel.ni.com/content/docs/DOC-12939
126 CHAPTER 3. BIPOLAR JUNCTION TRANSISTOR (BJT) CIRCUITS
Figure 3.10 shows a basic differential amplifier; the two transistors constitute
a differential pair. The differential amplifier creates a high gain for small
differences between the inputs while applying a low gain to common-mode
inputs.
Analysis
Component Value
VCC +15 volts
VEE -15 volts
BJT β = 70 and VBE = 0.7 volts (active region)
RC1 4.7 kΩ
RC2 4.7 kΩ
RE 4.7 kΩ
2. Repeat with both differential inputs connected to 3.0 V, i.e., the common-
mode input is 3.0 V.
Measure the resistance of all of the resistors you have available for RC1 and
RC2 , and select the two closest matching resistors.
1. Use the DMM to measure the operating point values Vo+ , Vo− , Vo , VE ,
and IE with both differential inputs V+ and V− grounded.
2. Repeat with both differential inputs connected to 3.0 V. Use AO0 op-
erated by the NI ELVISmx “DC Level Output” under the “Featured
Instruments” tab of the instrument launcher. Alternatively, use the
Function Generator with zero amplitude and DC offset of 3.0 V.
• Power the circuit with myDAQ +15V for VCC and AGND for the cir-
cuit ground.
• DMM ammeter:
http://decibel.ni.com/content/docs/DOC-12939
3.10. CLASS B PUSH-PULL AMPLIFIER 129
Figure 3.11: Circuit for Problem 3.10, with (a) conceptual circuit and (b)
practical circuit.
Analysis
1. Plot vo (t) of the conceptual circuit of Figure 3.11(a) for an input am-
plitude of 5 volts; repeat for an input amplitude of 1 volt. In each case
determine the peak-to-peak voltage of vo (t).
2. Plot vo (t) of the practical circuit of Figure 3.11(b) for an input ampli-
tude of 5 volts; repeat for an input amplitude of 1 volt. In each case
determine the peak-to-peak voltage of vo (t).
Component Value
VCC +15 volts
VEE -15 volts
vi (t) triangle wave, 100 Hz
BJT NPN β = 200 and VBE = 0.7 volts
BJT PNP β = 200 and VEB = 0.7 volts
RL 1 kΩ
R1 10 kΩ
R2 10 kΩ
1. Plot vo (t) of the conceptual circuit of Figure 3.11(a) for an input am-
plitude of 5 volts; repeat for an input amplitude of 1 volt. In each case
take cursor measurements to determine the peak-to-peak voltage of
vo (t).
2. Modify the circuit to match that of Figure 3.11(b). Plot vo (t) for an
input amplitude of 5 volts; repeat for an input amplitude of 1 volt. In
each case determine the peak-to-peak voltage of vo (t).
• Function generator:
http://youtu.be/CeOl6EzD-_c
1. Plot vo (t) of the conceptual circuit of Figure 3.11(a) for an input am-
plitude of 5 volts; repeat for an input amplitude of 1 volt. In each
read the oscilloscope peak-to-peak meter under the main display to
measure the peak-to-peak voltage of vo (t).
2. Modify the circuit to match that of Figure 3.11(b). Plot vo (t) for an
input amplitude of 5 volts; repeat for an input amplitude of 1 volt. In
each case determine the peak-to-peak voltage of vo (t).
• Use the 2N3904 and 2N3906 matched BJT transistors described in Ap-
pendix E. Follow the pinout diagrams of Figure E.2 on page 186 and
Figure E.3 on page 187 to determine the base, collector, and emitter
connections for each transistor type.
• Power the circuit with myDAQ +15V for VCC , -15V for VEE , and
AGND for circuit ground.
• Oscilloscope:
http://decibel.ni.com/content/docs/DOC-12942
Analysis
1. Derive an equation for ILnpn as a function of Vin and the transistor DC
current gain β. H INTS : Assume ideal op amp constraints; negative
3.11. VOLTAGE-TO-CURRENT CONVERTER 133
3. Plot ILnpn and ILpnp as a function of Vin over the range −10 to 10 V.
Component Value
VCC +15 volts
VEE -15 volts
BJT NPN β = 200 and VBE = 0.7 volts
BJT PNP β = 200 and VEB = 0.7 volts
LEDs 1.8 V drop when active, ideal otherwise
R 100 kΩ
3. Find the transconductance gain ILpnp /Vin at Vin = −4.0 V; place a data
label at the cursor location.
NI Multisim video tutorials:
1. Collect data points at 1-volt intervals to plot ILnpn and ILpnp on the
same graph as a function of Vin over the range −10 to 10 V. You may
do this manually or use the LabVIEW “DC Sweeper” virtual instru-
ment (VI) to collect the measurements automatically; get the VI at
https://decibel.ni.com/content/docs/DOC-20393.
• Power the circuit with myDAQ +15V for VCC , -15V for VEE , and
AGND for circuit ground.
MOSFET Circuits
Analysis
1. Explain why the designated input voltage VGS is the same as the
MOSFET gate-to-source voltage.
136 CHAPTER 4. MOSFET CIRCUITS
Component Value
VDD 15 V
MOSFET Vt = 1.8 V and K = 50 mA/V2
RG 1 MΩ
LED Forward voltage drop = 2.0 V, ideal otherwise
Enter the circuit of Figure 4.1 on the previous page using the ZVN3306A
transistor model and the LED red LED model.
Use the DMM ammeter to monitor the LED current IL . Connect the
transistor gate to AO0, and use the NI ELVISmx DC Level Output instru-
ment under the “Featured Instruments” tab of the ELVISmx Instrument
Launcher to set the gate-to-source voltage VGS .
2. Compare your measurements for IL at VGS equal to 1.8, 1.9, 2.0, 2.1,
2.2, and 2.3 volts to your analytical and simulation results.
• Implement the voltage source VDD with the NI myDAQ +15V supply;
use AGND as the ground connection.
138 CHAPTER 4. MOSFET CIRCUITS
• Refer to the diagram of Figure D.2 on page 182 to determine the anode
and cathode connections of an LED.
NI myDAQ video tutorials:
• DMM voltmeter:
http://decibel.ni.com/content/docs/DOC-12937
Analysis
1. Determine the value of resistor RD that sets the operating point volt-
age VD to 125 mV. Use the closest standard resistor value from the
parts list of Appendix A on page 167.
2. Determine the operating point voltage VD and current ID using your
selected value of RD .
3. Calculate the effective drain-to-source resistance of the MOSFET at
this operating point.
Component Value
VDD 5V
MOSFET Vt = 2.0 V and K = 30 mA/V2
140 CHAPTER 4. MOSFET CIRCUITS
• DMM voltmeter:
http://decibel.ni.com/content/docs/DOC-12937
142 CHAPTER 4. MOSFET CIRCUITS
4.3 Switch
Analysis
Component Value
VDD 5V
MOSFET Vt = 1.8 V and K = 50 mA/V2
LED Turn-on voltage is 1.8 V, ideal diode otherwise
RD 330 Ω
• Power the circuit with myDAQ 5V for VDD and AGND for the circuit
ground.
• Create the 3.3 V constant voltage using digital output DIO0 operated
by the NI ELVISmx Digital Writer; use either AGND or DGND as the
circuit ground because they are connected internally.
• DMM voltmeter:
http://decibel.ni.com/content/docs/DOC-12937
• DMM ammeter:
http://decibel.ni.com/content/docs/DOC-12939
1. What DIO0 voltage causes the LED to light? If you observe that the
LED is always lit, which DIO0 voltage causes the maximum bright-
ness? Also, explain why the LED is always on to some extent.
4.3. SWITCH 145
2. What current is required from DIO0 when the LED is at its brightest
level? Compare this result to the required current when the MOSFET
switch is in place.
146 CHAPTER 4. MOSFET CIRCUITS
Analysis
1. Find the Q-point (operating point) values for drain current ID and
drain-source voltage VDS for RD = 680 Ω.
Component Value
VDD 9V
MOSFET Vt = 1.8 V and K = 50 mA/V2
RG 10 MΩ
Enter the circuit of Figure 4.4 on the facing page using the ZVN3306A tran-
sistor model
1. Measure the Q-point (operating point) values for drain current ID and
drain-source voltage VDS for RD = 680 Ω.
• DMM voltmeter:
http://decibel.ni.com/content/docs/DOC-12937
150 CHAPTER 4. MOSFET CIRCUITS
Analysis
1. Use a suitable plotting tool such as Mathscript or MATLAB to plot
the transistor drain current ID as a function of gate-source voltage
VGS when the device operates in saturation mode; use the transistor
parameters listed in the table below. Set up the plot limits as 0 to 3
volts for VGS and 0 to 50 mA for ID .
2. Draw the load line established by the voltage divider resistors RG1
and RG2 , the supply voltage VDD , and the source resistor RS directly
on the transistor curve from the previous step. Identify the circuit’s
4.5. VOLTAGE-DIVIDER BIAS 151
operating point IDQ and VGSQ at the intersection of the load line and
the transistor curve.
3. Determine the value of resistor RD that sets the drain voltage VDQ
to 5.0 V, and then choose the closest standard resistor value from the
parts list of Appendix A on page 167.
Component Value
VDD 9V
MOSFET Vt = 1.8 V and K = 50 mA/V2
resistors RG1 = 2 MΩ, RG2 = 1 MΩ, and RS = 100 Ω
Enter the circuit of Figure 4.5 on the preceding page using the ZVN3306A
transistor model, the three specified resistors, and your standard resistor
value calculated above. Determine the operating point values IDQ , VGSQ ,
and VDQ .
Additional Multisim tips for this problem:
2. Next, experience why you must enable only one channel when you
use the oscilloscope as a voltmeter. Leave AI1+ and AI1- discon-
nected, disable Channel 1, and set the “Timebase” to its default set-
ting of 5 ms. Observe the RMS indicator for Channel 0 and then en-
able the second channel. Report the change in voltage observed by
the oscilloscope and express this value as percent change.
Why the large change? Take a moment to look at the block diagram
printed on your NI myDAQ. Note how the analog-to-digital con-
verter is shared (or multiplexed) between the two analog inputs. With
two enabled channels the multiplexer rapidly switches back and forth
between the inputs. With each switch the multiplexer “steals” a small
amount of charge from the circuit, a phenomenon called charge injec-
tion. Rapid switching therefore demands a small current from the cir-
cuit, and high impedance circuits such as the MOSFET gate voltage
divider magnify this small current into a significant voltage – recall
that Ohm’s Law tells us voltage is the product of current and resis-
tance.
Analysis
1. Determine the midband AC small-signal model of the circuit. Note
that the portion of the bias network that controls IDQ is the same as
the circuit for Problem 4.5 on page 150; use the results of that problem
to determine the transconductance gain gm .
Component Value
VDD 9V
MOSFET Vt = 1.8 V and K = 50 mA/V2 ; λ = 0
Resistors RG1 = 2 MΩ, RG2 = 1 MΩ, RS = 100 Ω, RD = 330 Ω, and RL = 1 kΩ
Capacitors Cin = 1 µF, Cout = 10 µF, and CS = 470 µF
• Place the cursors at the maximum and minimum values of the output
waveform, and then read the “T2-T1” display as the peak-to-peak
value.
• Function generator:
http://youtu.be/CeOl6EzD-_c
• Oscilloscope:
http://decibel.ni.com/content/docs/DOC-12942
• Probe each of the nodes in the circuit, tracing how the input signal
“moves” through the amplifier (see the point made earlier about how
to probe the high-impedance points in the circuit),
Analysis
1. Determine the MOSFET operating point IDQ and VGSQ .
Component Value
VDD 9V
MOSFET Vt = 1.8 V and K = 50 mA/V2 ; λ = 0
Resistors RG1 = 2 MΩ, RG2 = 1 MΩ, RD = 330 Ω, and RL = 100 Ω
Capacitors Cin = 1 µF and Cout = 470 µF
IS 12.5 mA
• Function generator:
http://youtu.be/CeOl6EzD-_c
• Oscilloscope:
http://decibel.ni.com/content/docs/DOC-12942
• Probe each of the nodes in the circuit, tracing how the input signal
“moves” through the amplifier (see the point made earlier about how
to probe the high-impedance points in the circuit),
Analysis
1. Determine Vout for each inverter when Vin is 0 V (a logical 0) and when
Vin is 5 V (a logical 1); use these input voltages for subsequent steps.
2. Determine IDD in mA for each inverter when Vin takes on the two
possible logic levels.
4.8. LOGIC INVERTERS: RTL AND CMOS 163
Component Value
VDD 5V
n-MOSFET Vt = 1.8 V and K = 50 mA/V2 ; λ = 0
p-MOSFET Vt = 2.9 V and K = 50 mA/V2 ; λ = 0
R 1 kΩ
1. Determine Vout for each inverter when Vin takes on the two possible
logic levels.
2. Determine IDD in mA for each inverter when Vin takes on the two
possible logic levels.
• Neither the ZVN3306A nor the ZVP3306A transistors are part of the
standard NI Multisim components database as of version 11.0. Refer
to Appendix E.5 on page 190 and Appendix E.6 on page 192 to learn
how to create and add these devices to your “User Database.”
• Flip the p-channel MOSFET symbol vertically to ensure that its source
connects to VDD .
164 CHAPTER 4. MOSFET CIRCUITS
Power the circuit with 5V and AGND. Drive Vin with a wire that you
connect either to ground or to 5V. Use the DMM ammeter on its most sen-
sitive range (20 mA) to monitor the power supply current IDD , and use the
RMS meter of the NI ELVISmx Oscilloscope to monitor the output voltage
Vout . Make certain that you enable only one channel on the oscilloscope.
1. Determine Vout for each inverter when Vin takes on the two possible
logic levels.
2. Determine IDD in mA for each inverter when Vin takes on the two
possible logic levels.
• Ensure that you connect the p-channel MOSFET’s source to VDD , not
its drain.
• Measure and record VDD when your circuit is connected; it will likely
not be exactly 5.00 V. Take this measurement for each circuit, too. Cal-
culate PDD as the product of VDD and IDD .
• Oscilloscope:
http://decibel.ni.com/content/docs/DOC-12942
Parts List
Resistors
Potentiometers
The following potentiometers (variable resistors) are 3/8-inch square single-
turn trimming style devices with 1/2-watt power rating.
Capacitors
Breadboard
Circuit Specialists part number WB-102, http://www.circuitspecialists.
com/prod.itml/icOid/6885
Test Leads
Alligator clip style, cut in half with tinned ends.
Circuit Specialists part number M000F0003, http://www.circuitspecialists.
com/prod.itml/icOid/7682
170 APPENDIX A. PARTS LIST
Figure B.1: LM317 adjustable voltage regulator: (a) case and terminals for
1.5-amp device (TO-220 case), (b) case and terminals for 100-mA device
(TO-92 case), and (c) schematic symbol.
172 APPENDIX B. LM317 VOLTAGE AND CURRENT SOURCES
Figure B.2: LM317 as a variable voltage source: (a) schematic diagram and
(b) equivalent circuit.
from the NI myDAQ +15V power supply and effectively operates as a cur-
rent source with one terminal permanently attached to the NI myDAQ ana-
log ground AGND.
The current source will operate as expected for circuits powered by the
NI myDAQ ±15 V dual power supply provided the following conditions
hold:
1. The requested current does not exceed the 30 mA current limit of the
NI myDAQ +15V power supply,
2. The voltage of the ungrounded current source terminal does not rise
higher than 13.5 V above ground, and
3. The current set resistor R does not exceed approximately 1.2 kΩ (the
minimum current ISRC is approximately 1 mA).
Figure B.5 on page 175 illustrates a similar current source that “sinks”
current to the NI myDAQ −15 V power supply. The current source will
operate as expected for circuits powered by the NI myDAQ ±15 V dual
power supply provided the following conditions hold:
1. The requested current does not exceed the 30 mA current limit of the
NI myDAQ −15 V power supply,
174 APPENDIX B. LM317 VOLTAGE AND CURRENT SOURCES
2. The voltage of the ungrounded current source terminal does not fall
lower than 13.5 V below ground, and
3. The current set resistor R does not exceed approximately 1.2 kΩ (the
minimum current ISRC is approximately 1 mA).
B.2. CURRENT SOURCE 175
The Texas Instruments TL072 dual operational amplifier (“op amp”) pro-
vides two op amp devices in a single 8-pin package. For more details
see the datasheet available at http://www.ti.com; enter “tl072” in the
“Search by Part Number” field.
Figure C.1 on the following page shows the pinout diagram for the
TL072. Note the requirement for a dual power supply; the NI myDAQ
±15 V supply serves this purpose. Also note that the op amp device it-
self does not have a ground terminal. Instead the myDAQ AGND (analog
ground) establishes the ground reference.
Figure C.2 on page 179 shows the TL072 placed on the standard bread-
board layout described in Figure B.3 on page 173, connected to power, and
ready for additional circuitry.
NI Multisim provides a circuit model for the TL072: place the TL072CP
device.
178 APPENDIX C. TL072 OPERATIONAL AMPLIFIER
Figure C.1: Texas Instruments TL072 dual op amp pinout diagram (top
view). The plastic package uses either a U-shaped cutout to indicate the
left side or an indented circle to indicate pin 1. N OTE : In this book the
positive supply “VCC+” is called VCC and the negative supply “VCC-” is
called VEE .
179
Figure C.2: Texas Instruments TL072 dual op amp placed on the standard
breadboard layout, connected to power, and ready for additional circuitry.
180 APPENDIX C. TL072 OPERATIONAL AMPLIFIER
Appendix D
Diodes
Transistors
Multisim version 11.0 does not include the CA3083 as a built-in compo-
nent. Follow along with the video tutorial at http://youtu.be/e0lObOAqgbE
to learn how to add this component to your “User Database.” Copy and
paste the SPICE model text on the next page when prompted for the device
model; check the CA3083 product page at http://www.intersil.com
for the most recent model.
E.4. CA3083 NPN BJT ARRAY 189
*
*Zetex ZVN3306A Spice Model v1.1 Last Revised 3/5/00
*
.SUBCKT ZVN3306A 3 4 5
* D G S
M1 3 2 5 5 N3306M
RG 4 2 270
RL 3 5 1.2E8
C1 2 5 28E-12
C2 3 2 3E-12
D1 5 3 N3306D
*
.MODEL N3306M NMOS VTO=1.824 RS=1.572 RD=1.436 IS=1E-15 KP=.1233
+CBD=35E-12 PB=1
.MODEL N3306D D IS=5E-12 RS=.768
.ENDS ZVN3306A
*
*$
*
* (c) 2005 Zetex Semiconductors plc
*
* The copyright in these models and the designs embodied belong
* to Zetex Semiconductors plc (" Zetex "). They are supplied
* free of charge by Zetex for the purpose of research and design
* and may be used or copied intact (including this notice) for
* that purpose only. All other rights are reserved. The models
* are believed accurate but no condition or warranty as to their
* merchantability or fitness for purpose is given and no liability
* in respect of any use is accepted by Zetex PLC, its distributors
* or agents.
*
* Zetex Semiconductors plc, Zetex Technology Park, Chadderton,
* Oldham, United Kingdom, OL9 9LL
192 APPENDIX E. TRANSISTORS
Multisim version 11.0 does not include the ZVP3306A as a built-in com-
ponent. Follow along with the video tutorial at http://youtu.be/HJq6QHOyTsI
to learn how to add this component to your “User Database.” Copy and
paste the SPICE model text on the next page when prompted for the device
model; check the ZVP3306A product page at http://www.diodes.com
for the most recent model.
E.6. ZVP3306A P-CHANNEL ENHANCEMENT MOSFET 193
*
*Zetex ZVP3306A Spice Model v1.1 Last Revised 3/5/00
*
.SUBCKT ZVP3306A 3 4 5
* D G S
M1 3 2 5 5 P3306M
RG 4 2 252
RL 3 5 1.2E8
C1 2 5 28E-12
C2 3 2 3E-12
D1 3 5 P3306D
*
.MODEL P3306M PMOS VTO=-2.875 RS=5.227 RD=7.524 IS=1E-15 KP=.145
+CBD=35E-12 PB=1 LAMBDA=6.67E-3
.MODEL P3306D D IS=5E-12 RS=.768
.ENDS ZVP3306A
*
*$
*
* (c) 2005 Zetex Semiconductors plc
*
* The copyright in these models and the designs embodied belong
* to Zetex Semiconductors plc (" Zetex "). They are supplied
* free of charge by Zetex for the purpose of research and design
* and may be used or copied intact (including this notice) for
* that purpose only. All other rights are reserved. The models
* are believed accurate but no condition or warranty as to their
* merchantability or fitness for purpose is given and no liability
* in respect of any use is accepted by Zetex PLC, its distributors
* or agents.
*
* Zetex Semiconductors plc, Zetex Technology Park, Chadderton,
* Oldham, United Kingdom, OL9 9LL
194 APPENDIX E. TRANSISTORS
Appendix F
Video Links
Sources:
• Function generator:
http://youtu.be/CeOl6EzD-_c
Measure DC current:
• Measure DC current with a measurement probe:
http://youtu.be/uZ56byigymI
Measure DC voltage:
• Measure DC voltage with a voltmeter:
http://youtu.be/XLyslyikUws
Measure DC power:
• Measure DC power with a wattmeter:
http://youtu.be/-axVClpMpiU
Measure resistance:
• Measure resistance with an ohmmeter:
http://youtu.be/3G5V0Hxjkbg
Measure AC power:
• Measure average power and power factor with a wattmeter:
http://youtu.be/kYliPwbWInc
Net names:
• Display and change net names:
http://youtu.be/0iZ-ph9pJjE
Oscilloscope:
• Basic operation of the two-channel oscilloscope:
http://youtu.be/qnRK6QyqjvQ
Word Generator:
• Create digital sequences with Word Generator:
http://youtu.be/vp1l-TeRB3s
Transient response:
• Plot time-domain circuit response with Transient Analysis:
http://youtu.be/waKnad_EXkc
Temperature Sweep:
• Evaluate circuit behavior with Temperature Sweep:
http://youtu.be/74zZaWqTcyU
Voltage-controlled switch:
• Voltage-controlled switch:
http://youtu.be/BaEBjhD4TOw
DC Sweep:
• Plot DC circuit response with DC Sweep:
http://youtu.be/vcYuCt9QjdI
• DMM voltmeter:
http://decibel.ni.com/content/docs/DOC-12937
201
• DMM ammeter:
http://decibel.ni.com/content/docs/DOC-12939
• Oscilloscope:
http://decibel.ni.com/content/docs/DOC-12942
• Bode Analyzer:
http://decibel.ni.com/content/docs/DOC-12943
Measurement techniques:
• Measure current with a shunt resistor and DMM voltmeter:
http://decibel.ni.com/content/docs/DOC-12946