Circuit Analysis With Multisim PDF
Circuit Analysis With Multisim PDF
Circuit Analysis With Multisim PDF
SeriesISSN:
Series ISSN:1932-3166
ISSN: 1932-3166
1932-3166
MM
BÁEZ-LÓPEZ
BÁEZ-LÓPEZ •• GUERRERO-CASTRO
BÁEZ-LÓPEZ
SSSYNTHESIS
YNTHESISL L
LECTURES
&C
& C
YNTHESIS ECTURESON
ECTURES ON
ON gan&
DD IGITALC
DIGITAL
IGITAL C
CIRCUITS ANDS
IRCUITSAND
IRCUITS AND SSYSTEMS
YSTEMS
YSTEMS
Mor
Morgan
Mor gan &Cl
Claypool
Cl aypool Publishers
aypool Publishers
Publishers
• GUERRERO-CASTRO
GUERRERO-CASTRO
Circuit
Circuit Analysis
Analysis with
with
Series
SeriesEditor:
Series Editor:Mitchell
Editor: MitchellThornton,
Mitchell Thornton,Southern
Thornton, SouthernMethodist
Southern MethodistUniversity
Methodist University
University
Circuit
CircuitAnalysis
Circuit Analysiswith
Analysis withMultisim
with Multisim
Multisim
David
DavidBáez-López
David
This
Báez-Lópezand
Báez-López
Universidad
Universidadde
Universidad
Thisbook
This
delas
de
andFélix
and FélixE.
Félix
bookisisisconcerned
book
E.Guerrero-Castro
E.
concernedwith
concerned
Guerrero-Castro
Guerrero-Castro
lasAméricas-Puebla,
las Américas-Puebla,México
Américas-Puebla, México
México
withcircuit
with circuitsimulation
circuit simulationusing
simulation usingNational
using NationalInstruments
National InstrumentsMultisim.
Instruments Multisim.ItItItfocuses
Multisim. focuseson
focuses on
on
Multisim
Multisim
the
the use
theuse and
useand comprehension
andcomprehension
comprehensionof of the
ofthe working
theworking techniques
workingtechniques
techniquesforfor electrical
forelectrical and
electricaland electronic
andelectronic circuit
electroniccircuit simulation.
circuitsimulation.
simulation.
The
Thefirst
The firstchapters
first chaptersare
chapters aredevoted
are devotedto
devoted tobasic
to basiccircuit
basic circuitanalysis.
circuit analysis.ItItItstarts
analysis. startsby
starts bybydescribing
describingin
describing indetail
in detailhow
detail howto
how totoperform
perform
perform
aaaDC
DCanalysis
DC analysisusing
analysis usingonly
using onlyresistors
only resistorsand
resistors andindependent
and independentand
independent andcontrolled
and controlledsources.
controlled sources.Then,
sources. Then,itititintroduces
Then, introduces
introduces
CIRCUIT
CIRCUIT ANALYSIS
CIRCUIT
capacitors
capacitorsand
capacitors andinductors
and inductorsto
inductors tomake
to makeaaatransient
make transientanalysis.
transient analysis.In
analysis. Inthe
In thecase
the caseof
case oftransient
of transientanalysis,
transient analysis,itititisisispossible
analysis, possible
possible
to
to have
tohave
haveanan initial
aninitial condition
initialcondition either
conditioneither in
eitherin the
inthe capacitor
thecapacitor voltage
capacitorvoltage
voltageor or in
orin the
inthe inductor
theinductor current,
inductorcurrent, or
current,or both.
orboth.
both.FourierFourier
Fourier
analysis
analysisisisisdiscussed
discussedin inthe
thecontext
contextof oftransient
transientanalysis.
analysis.Next, Next,we wemake
makeaaatreatment
treatmentof ofAC ACanalysis
ANALYSIS WITH
analysis discussed in the context of transient analysis. Next, we make treatment of AC analysis
analysis
ANALYSIS WITH
totosimulate
to simulatethe
simulate thefrequency
the frequencyresponse
frequency responseof
response ofaaacircuit.
of circuit.Then,
circuit. Then,we
Then, weintroduce
we introducediodes,
introduce diodes,transistors,
diodes, transistors,and
transistors, andcircuits
and circuits
circuits
composed
composedby
composed bythem
by themand
them andperform
and performDC,
perform DC,transient,
DC, transient,and
transient, andAC
and ACACanalyses.
analyses.The
analyses. Thebook
The bookends
book endswith
ends withsimulation
with simulation
simulation
of
of digital
ofdigital circuits.
digitalcircuits.
circuits.
WITH MULTISIM
A
AApractical
practicalapproach
practical approachisisisfollowed
approach followedthrough
followed throughthe
through thechapters,
the chapters,using
chapters, usingstep-by-step
using step-by-stepexamples
step-by-step examplesto
examples totointroduce
introduce
introduce
new
newMultisim
new Multisimcircuit
Multisim circuitelements,
circuit elements,tools,
elements, tools,analyses,
tools, analyses,and
analyses, andvirtual
and virtualinstruments
virtual instrumentsfor
instruments formeasurement.
for measurement.The
measurement. Theexamples
The examples
examples David
DavidBáez-López
David Báez-López
Báez-López
MULTISIM
MULTISIM
are
areclearly
are clearlycommented
clearly
appropriate
appropriate
appropriateso
commentedand
commented
so readers
soreaders learn
readerslearn
andillustrated.
and illustrated.The
illustrated.
which
learnwhich analyses
whichanalyses
Thedifferent
The
analysesareare
differenttools
different
available
areavailable to
availableto
toolsavailable
tools
them.
tothem.
availableon
available
This
them.This is
onMultisim
on
part
Thisisispart
Multisimare
Multisim
of
partof the
ofthe
areused
are
learning
thelearning
usedwhen
used when
outcomes
learningoutcomes
when
outcomes
Félix
FélixE.
Félix E.Guerrero-Castro
E. Guerrero-Castro
Guerrero-Castro
that
thatshould
that shouldresult
should resultafter
result aftereach
after eachset
each setof
set ofend-of-chapter
of end-of-chapterexercises
end-of-chapter exercisesisisisworked
exercises workedout.
worked out.
out.
About
AboutSYNTHESIs
About SYNTHESIs
SYNTHESIs
This
Thisvolume
This volumeisisisaaaprinted
volume printedversion
printed versionof
version ofofaaawork
workthat
work thatappears
that appearsin
appears inthe
in theSynthesis
the Synthesis
Synthesis
Digital
DigitalLibrary
Digital Libraryof
Library ofofEngineering
Engineeringand
Engineering andComputer
and ComputerScience.
Computer Science.Synthesis
Science. SynthesisLectures
Synthesis Lectures
Lectures
MOR
MOR GAN&CL
MOR
provide
provideconcise,
provide concise,original
concise, originalpresentations
original presentationsof
presentations ofofimportant
importantresearch
important researchand
research anddevelopment
and development
development
topics,
topics,published
topics, publishedquickly,
published quickly,in
quickly, indigital
in digitaland
digital andprint
and printformats.
print formats.For
formats. Formore
For moreinformation
more information
information
GAN&CL AYPOOL
GAN&CL AYPOOL
visit
visit www.morganclaypool.com
visitwww.morganclaypool.com
www.morganclaypool.com
SSYNTHESIS
YNTHESISL
YNTHESIS LECTURES
ECTURESON
ECTURES ON
ON
D IGITALC
DIGITAL CIRCUITS ANDSSYSTEMS
ISBN:
ISBN:978-1-60845-756-4
&
ISBN: 978-1-60845-756-4
978-1-60845-756-4
Mor
Morgan
Mor gan
gan &
&Cl
Claypool
Cl aypool Publishers
aypool Publishers
Publishers 90000
90000
90000
IGITAL IRCUITSAND
IRCUITS AND YSTEMS
YSTEMS
AYPOOL
wwwwwwwww.. .m
mmooorrrgggaaannncccll laaayyypppooooooll l.. .cccooom
mm
999781608
781608457564
781608 457564
457564
Mitchell
MitchellThornton,
Mitchell Thornton,Series
Thornton, SeriesEditor
Series Editor
Editor
Circuit Analysis with Multisim
Synthesis Lectures on Digital
Circuits and Systems
Editor
Mitchell A. Thornton, Southern Methodist University
The Synthesis Lectures on Digital Circuits and Systems series is comprised of 50- to 100-page
books targeted for audience members with a wide-ranging background. The Lectures include
topics that are of interest to students, professionals, and researchers in the area of design and
analysis of digital circuits and systems. Each Lecture is self-contained and focuses on the
background information required to understand the subject matter and practical case studies that
illustrate applications. The format of a Lecture is structured such that each will be devoted to a
specific topic in digital circuits and systems rather than a larger overview of several topics such as
that found in a comprehensive handbook. The Lectures cover both well-established areas as well as
newly developed or emerging material in digital circuits and systems design and analysis.
Embedded Systems Interfacing for Engineers using the Freescale HCS08 Microcontroller II:
Digital and Analog Hardware Interfacing
Douglas H. Summerville
2009
Embedded Systems Interfacing for Engineers using the Freescale HCS08 Microcontroller I:
Assembly Language Programming
Douglas H.Summerville
2009
iv
Developing Embedded Software using DaVinci & OMAP Technology
B.I. (Raj) Pawate
2009
Pragmatic Power
William J. Eccles
2008
Pragmatic Logic
William J. Eccles
2007
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in
any form or by any means—electronic, mechanical, photocopy, recording, or any other except for brief quotations in
printed reviews, without the prior permission of the publisher.
DOI 10.2200/S00386ED1V01Y201109DCS035
Lecture #35
Series Editor: Mitchell A. Thornton, Southern Methodist University
Series ISSN
Synthesis Lectures on Digital Circuits and Systems
Print 1932-3166 Electronic 1932-3174
Circuit Analysis with Multisim
M
&C Morgan & cLaypool publishers
ABSTRACT
This book is concerned with circuit simulation using National Instruments Multisim. It focuses on
the use and comprehension of the working techniques for electrical and electronic circuit simulation.
The first chapters are devoted to basic circuit analysis. It starts by describing in detail how to perform
a DC analysis using only resistors and independent and controlled sources. Then, it introduces
capacitors and inductors to make a transient analysis. In the case of transient analysis, it is possible
to have an initial condition either in the capacitor voltage or in the inductor current, or both. Fourier
analysis is discussed in the context of transient analysis. Next, we make a treatment of AC analysis
to simulate the frequency response of a circuit. Then, we introduce diodes, transistors, and circuits
composed by them and perform DC, transient, and AC analyses. The book ends with simulation of
digital circuits.
A practical approach is followed through the chapters, using step-by-step examples to intro-
duce new Multisim circuit elements, tools, analyses, and virtual instruments for measurement. The
examples are clearly commented and illustrated. The different tools available on Multisim are used
when appropriate so readers learn which analyses are available to them. This is part of the learning
outcomes that should result after each set of end-of-chapter exercises is worked out.
KEYWORDS
circuit simulation, electrical circuits, electronic circuits, DC analysis, transient analysis,
AC analysis, frequency response, Bode plots, Fourier analysis, operational amplifiers,
digital circuit simulation, virtual instruments
This book is dedicated to Ofelia, who is the best part of each day.
Contents
Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
2 Resistive Circuits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.1 Circuit Editing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.1.1 Basic DC Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.2 Multisim Measurement Instruments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.2.1 Basic Measurement Instruments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.2.2 The Multimeter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.2.3 The Oscilloscope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.2.4 The Wattmeter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
2.2.5 The Probe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
2.3 Breadboard Circuit Capture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
2.3.1 Three Dimensional Virtual Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
2.4 Use of the Multisim Grapher . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
2.5 Circuits with Controlled Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
2.5.1 Circuits with VCVS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
2.5.2 Circuits with ICIS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
2.5.3 Circuits with VCIS (G-source) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
2.5.4 Circuits with ICVS (H-source) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
2.6 Conclusions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Félix E. Guerrero-Castro
October 2011
1
CHAPTER 1
Introduction to Circuit
Simulation
1.1 WHAT IS CIRCUIT SIMULATION
Electronics have an important place in daily life. So important, in fact, that the modern world
cannot be conceived of without electronics. From reading and writing e-mails, using our cell phone
to call and sent text messages, writing a letter in a word processor, managing data in a spreadsheet,
controling traffic in a busy downtown, tracking objects in a manufacturing plant, watching the ball
game on a TV set, buying and selling stocks, etc., electronic circuits are used to perform these tasks.
Nowadays, modern electronic circuits are composed by millions of transistors. For example, an Intel
microprocessor needs more than 500 million transistors to be able to handle data at a speed greater
than 2.5 GHz and an iPhone with an A6 processor can have almost the same number of transistors.
To test these devices before the actual manufacturing needs extensive simulation of the circuit to
ensure proper performance once the chip is in the computer or phone. Failure to carry on a proper
simulation procedure can cost a company losses in the millions of dollars.
- make measurements that are hard to make in the real circuit because:
These are only a few of the many advantages of using circuit simulation.
SELECTED BIBLIOGRAPHY
For readers interested in further reading about simulation, the following books provide further insight
into the SPICE simulator.
[1] L.W. Nagel, SPICE2: A computer program to simulate semiconductor circuits, Memorandum
No. M520, Department of Electrical Engineering, University of California at Berkeley, May
1975.
[2] P. Antognetti and G. Massobrio, Semiconductor device modeling with SPICE, McGraw-Hill
Book Co., New York, 1988.
3
CHAPTER 2
Resistive Circuits
The circuits composed with resistors and sources are the simplest circuits in electrical and electronics
engineering. Although their applications are very limited, they will serve us to show the general input
format for Multisim. In this chapter we cover the foundations to start using Multisim. The primary
analysis in Multisim is the DC Operating Point analysis which is done previous to any other analysis
type. Analysis results are displayed in the Grapher, the output interface in Multisim. Every result
from the simulation is displayed in the Grapher, either numerical or graphical. Basic measurement
instruments, such as oscilloscopes and multimeters, are described in the chapter. We end the chapter
by introducing the use of the four types of controlled sources.
The first step is to follow installation instructions. Once we are finished with the installation,
we start Multisim from the Start menu and proceed with the next section.
5
NΩ
9 9GF N Ω 5 5 N Ω
B
This circuit has three resistors and an independent voltage source. When we open Multisim,
it shows a blank schematic page where we can draw our schematic circuit, several windows, and
some toolbars, as shown in Fig. 2.2. Some of the icons in the toolbars are conventional ones such
as Open file, Copy, Save, etc. The windows shown are the larger window to draw the circuit called
the Design Toolbox window, and the Results/Nets/Components window. One of the toolbars is the
Components toolbar and it contains links to some of the different components available to draw our
circuits. Table 2.1 gives a short description of the icons available in this toolbar.
4 2. RESISTIVE CIRCUITS
Note that a schematic page with a default name Design1 is open. This opens the window
shown in Fig. 2.3. There we can begin to draw our circuit. We first place the DC voltage source.
We do this by selecting the Sources icon (the left-most icon) in the Components Toolbar. There
we select DC_POWER→POWER_SOURCES→DC_POWER and press OK. The DC voltage
source is shown in the schematic page attached to the mouse. It can be moved along the schematic
page by moving the mouse. It is placed in the desired position by left clicking the mouse. The same
window is open again to select a new component. If we wish to place another DC voltage source we
select it and press the OK button.
Now we place the resistors, otherwise we press the Close button. We click on the Basic icon
in the Component toolbar. The window in Fig. 2.4 is open. There are two possibilities to choose
a resistor. The first one is in the RATED VIRTUAL set of components and the second one is in
2.1. CIRCUIT EDITING 5
6RXUFHVDQGJURXQGV
%DVLF Resistors, capacitors, inductors,
transformers, and other passive components
'LRGHV Different diode types.
7UDQVLVWRUV Bipolar, JFETs, and MOSFETs.
$QDORJ OpAmps, Comparators, other analog ICs.
77/. TTL logic parts.
0LVFHODQHRXVGLJLWDOFLUFXLWV
0L[HG0RGH,&V
,QGLFDWRU Displays, voltmeters, lamps, etc.
3RZHUFRPSRQHQWV
(OHFWURPHFKDQLFDO Rotary switches, motors, etc.
the RESISTOR set. The VIRTUAL set has components that can have any value, for example, we
can place a resistor with a value of 23.457 ohms. In the resistor set we can only place resistors with
predetermined commercial values. In our example we can use both sets. For R1 we use the RATED
VIRTUAL set and for R2 and R3 we use the resistor set. Thus, after placing R1 we are returned to
the same window to select the following component and there we press the Close button. For R2
and R3 we select the RESISTOR set and place them in the schematic page (see Fig. 2.5 (a)). To
place R2 in a vertical position we select it with the mouse and press Control-R. (See Fig. 2.5 (b)).
We repeat with R3. Finally, we have to place a ground symbol, which it is available from the sources
icon. We note there are two ground symbols: GROUND and DGND. The last one is used in digital
circuit simulation. We choose GROUND and place it on the schematic page. The schematic page
with the components is shown in Fig. 2.5.
To wire up the components we place the pointer in the upper end of the DC power source,
we click the left mouse button to start the wire, then drag the pointer to the left end of R1 and left
click again. A wire connecting the voltage source and resistor R1 has been created. Now, connect
the remaining elements. The complete circuit is shown in Fig. 2.6. In this figure, node numbers are
shown next to each node. Node numbers or names are displayed if we select in the main menu Edit
→Properties which opens the dialog window shown in Fig. 2.7 and in the Net names box we select
Show all, as shown there.
6 2. RESISTIVE CIRCUITS
The next step is to change the values of resistor R1. We click on the 1K values and the window
of Fig. 2.8 is open. In the Value tab we change 1 to 2 (make sure that k is shown in the pull down
menu next to the value field) and click OK. Resistor R1 is now 2K. In the same way we change
the value of the source V1 to 10 V. The final circuit is shown in Fig. 2.9. Finally, save the circuit as
Example 2-1. The circuits saved have an extension ms11, indicating that the design was done on
Multisim 11 (the latest version as of this writing).
(a) (b)
Figure 2.5: (a) Schematic page with components, (b) With resistors R2 and R3 after rotation.
8 2. RESISTIVE CIRCUITS
Figure 2.7: Dialog window for displaying node numbers on the schematic diagram.
2.1. CIRCUIT EDITING 9
(a) (b) (c)
Figure 2.18: (a) Run icon, (b) Run button, and (c) Stop icon.
16 2. RESISTIVE CIRCUITS
Figure 2.23: (a) Multimeter symbol and (b) Dialog window to choose the function.
The measurement of resistance follows the same format as before and a measurement is shown
in Fig. 2.26. In this case, as it is in a real lab, we do not need to have a power supply but we also have
to click on the Run button to measure resistance.
To place the components on the breadboard we click on any of them and place it on the
breadboard. We place the three components on the breadboard as shown in Fig. 2.34. If we need
to rotate them to place them in the required position we right click on the component and select
Orientation →90 Clockwise (or 90 Counter CW). If we go back to the schematic drawing we see
that the three components have turned green. This means that they are on the breadboard. Now on
the breadboard we wire up the circuit as required. To place a wire we left click on a point in the
breadboard and move the cursor to the other point where we wish to place the wire as can be seen
in Fig. 2.35. We repeat this procedure until we are finished wiring. The finished circuit is shown in
Fig. 2.36. To check if we wired it correctly, we go back to the schematic drawing and note that the
circuit elements and connections are now green indicating that the breadboard circuit was wired up
correctly. If there are wrong connections, these connections will remain in red.
Another way to check for connectivity is to use the DRC and Connectivity tool from the Tools
menu. It will produce an output as shown in Fig. 2.37. We see there that there are no connectivity
errors.
2.3. BREADBOARD CIRCUIT CAPTURE 25
---Connectivity Check---
---0 Connectivity Errors Found---
Figure 2.38: Components in the 3_D VIRTUAL set within the Basic group. A npn BJT is shown in
the symbol window.
Figure 2.41: Transient response. There is a small gain from input to output.
2.5. CIRCUITS WITH CONTROLLED SOURCES 29
(a) (b)
Figure 2.42: (a) Specification of the sweep parameters, (b) Selection of output variables to sweep.
Figure 2.45: VCVS in Multisim. The left element is to be positioned at the controlling nodes.
Figure 2.49: Values of the variables from the DC Operating Point analysis.
Ω
5 5
Ω Ω
5
9 B 9 ) L L
Ω
2.6 CONCLUSIONS
In this chapter we presented the first few circuits analyzed in Multisim. Although our circuits
have been restricted to circuits containing resistors and independent and controlled sources, the
main purpose of the chapter is to introduce the reader to the Multisim simulation environment.
The analysis types in this chapter were DC Operating Point and DC Sweep analyses. We also
introduced measurement instruments. They were used to measure voltage, current, and resistance.
In the next chapters we will cover other types of analysis with circuits containing inductors, capacitors,
transistors, etc. More interesting types of analysis can be performed in such cases.
PROBLEMS
2.1. Obtain the dc currents in each element and node voltages of the circuit:
36 2. RESISTIVE CIRCUITS
5
Ω
5
, $ 9 9 *
Ω B
,R 5
Ω
5 Ω
9 B 9
+ ,R
B
2.2. Repeat Exercise 2.1 but this time: (a) insert ammeters for current measurement and volt-
meters for node voltages, (b) Use multimeters to measure voltages and currents.
2.3. Using a multimeter, obtain the equivalent resistance between: (a) nodes 1 and ground, and
(b) nodes 2 and 4.
2.4. Using the breadboard, wire up the circuit shown. Then, obtain the dc node voltages and
branch currents.
40 2. RESISTIVE CIRCUITS
2.5. Change the dc voltage source V1 to an AC voltage source. Set the frequency to 1 KHz, the
V1 RMS voltage to 1 volt. Use an oscilloscope to plot the input and output waveforms. At
which scale we see the amplitude of the input voltage? And for the output voltage?
2.6. In the circuit shown we are using a virtual diode from the Diodes library. Use the oscilloscope
and a probe to measure the peak voltage. Compare the peak voltage in both instruments
and explain.
2.7. Draw the pictorial three-dimensional diagram of the circuit in Problem 2.6.
2.8. In the circuit shown, use the Multisim Grapher to obtain the waveforms in the input and
output nodes.
2.6. CONCLUSIONS 41
2.9. Use a VCVS in the circuit shown and obtain the node voltages. Note the signs in the
controlling voltage Vx.
CHAPTER 3
& / &
B B B
D E F
Figure 3.1: Schematic symbols for (a) capacitor, (b) inductor, and (c) electrolitic capacitor.
44 3. TIME DOMAIN ANALYSIS – TRANSIENT ANALYSIS
symbol. This is only important when we apply an initial condition to these elements. As a rule, when
we put any one of these components in a schematic, the left-hand node is the positive one. So
if we rotate them, it is useful to watch where the positive node is moving to. To apply an initial
condition we select the element (inductor or capacitor) to open its window where we write the
initial condition value. Example 3.2 gives an example of this case. It is worth mentioning that for
an inductor the initial condition is a current while for a capacitor it is a voltage. In addition, the use
of initial conditions is only valid for transient analysis.
It is also possible to define coupled inductors in the form of transformers, transformers with
a tap, and variable inductors and capacitors.
exponential EXPONENTIAL_TYPE
pulse PULSE_TYPE
piecewise PIECEWISE_LINEAR_TYPE
sine wave AC_TYPE
FM sinewave FM_TYPE
AM sinewave AM_TYPE
Here, TYPE can be either VOLTAGE or CURRENT. For example, if we desire an AC voltage
source then we choose an AC_VOLTAGE source. Similarly, an exponential current source is EX-
PONENTIAL_CURRENT.
Next, we give a description of each of these sources.
amplitude
V2
TC1 TC2
V1
TD1
TD2
The EXPONENTIAL signal has the constant voltage V1 from t = 0 s up to time TD1, where
it begins to rise with a time constant TC1. It keeps increasing its value during TD2 s to reach the
value V2 when it begins to decrease in value with a time constant TC2.
3:
9
9 57 )7
W
'7
S
HU
The PULSE signal starts with an initial value V1 which changes to V2 at time TD. The rise time
RT is the time it takes to change its value from V1 to V2 where it stays for PW s and finally it
changes its value back to V1. PER is the period of the signal.
46 3. TIME DOMAIN ANALYSIS – TRANSIENT ANALYSIS
9 7
9 7
9 7
9 7
W
92)) 9$03/
92))
92)) B 9$03/
7' W
IUHT
the equation
V SI N(t) = VOF F + VAMP L sin[2∗ F REQ(t + T D) + P H ASE/360◦ ]e−(t−T D)/DF .
Simulate→Analyses→Transient Analysis…
Which opens the dialog window of Fig. 3.9. The data we need to enter is
)0
9$03
9$03
)&
time points in the simulation. An additional parameter we can give is the initial time step TSTEP.
An example will show how a transient analysis is performed.
transient analysis are given in Fig. 3.15. The plot of Fig. 3.16 shows that the capacitor voltage at t
= 0 is 10 V and from there the capacitor discharges slowly with a time constant t = RC = 10 msec.
Figure 3.12: Plots of input and output signals for the RLC circuit.
As an example we use the plot available in Fig. 3.15. Once the cursor icon is clicked we can
move the cursors to the desired position, as shown in Fig. 3.18. We also see that a small window
appears showing the coordinates of the point where each of the cursor is positioned. Also available are
the differential, the inverse of the differential, the minimum and maximum values for the coordinates,
and the offset values.
Cursors are disabled by clicking on the cursor icon again.
Circuit1
Transient Analysis
12.5
10.0
7.5
Voltage (V)
5.0
2.5
-2.5
0 25m 50m 75m 100m
Time (S)
([DPSOH
7UDQVLHQW$QDO\VLV
9ROWDJH9
P
P
P
P
7LPH6
E
Figure 3.18: (a) Plot with cursors enabled, (b) values of signals at cursors.
3.4. THE OSCILLOSCOPE AND THE DISTORTION ANALYZER 57
D E
Since the simulation runs up to 10 sec, we change the base time of the oscilloscope to 1 sec/Div
and the Channel A input to AC and 0.5 V/Div and then click on the Run icon or press F5. The
output is shown in Fig. 3.23. There we see the output waveform. We can see that there are cursors
at both ends of the plot. These cursors can be used to show signal values at different time points
in the plot. The cursors can be positioned with the arrows in the top left corner of the instrument
panel. The values of the signal at each cursor position as well as the difference between those values
is displayed next to the arrows (see Fig. 3.24).
Note that the oscilloscope only displays when the Run button is clicked on. The analysis that
runs when this is done is a Transient Analysis with the conditions established in the dialog window
that is displayed when we choose Simulate→Interactive Simulation Settings. The window is shown
in Fig. 3.25. There we select the time limits for our circuit simulation, which in this example are End
Time (TSTOP) = 10 sec with a TMAX of 0.1 sec. This is also the case for the Voltmeter, Ammeter,
and Multimeter introduced in Chapter 2.
58 3. TIME DOMAIN ANALYSIS – TRANSIENT ANALYSIS
Figure 3.25: Pull-down menu to specify the parameters of the Interactive Simulation Settings analysis.
(a)
(b)
Figure 3.26: Distortion analyzer: (a) Main window, (b) Settings window.
62
3. TIME DOMAIN ANALYSIS – TRANSIENT ANALYSIS
0.01667 sec). Fig. 3.36 is the dialog window for the specifications of the Fourier analysis. Fig. 3.37
shows the resulting input and output waveforms for a transient analysis. Figs. 3.38 and 3.39 show
the spreadsheet with the output data and the plot of the harmonic components magnitude. From
this data we see that the THD is 65.852%.
We then perform a Fourier analysis. Since the period of the input signal is 4 msec, the frequency
is 250 Hz. We request 10 harmonic components. We choose as the output variable the voltage V(3).
For the TSTOP time we press the Estimate button. The dialog window is that of Fig. 3.43. The
results are presented in Fig. 3.44. In the spreadsheet we see that the output signal has a THD of
44.2273%.
3.6. ADDITIONAL EXAMPLES 67
Figure 3.33: Spreadsheet with output data when the input is a square signal.
Figure 3.34: Plot of the harmonic components for the square signal.
68 3. TIME DOMAIN ANALYSIS – TRANSIENT ANALYSIS
Figure 3.37: Input and output transient analysis waveforms for the half-wave rectifier.
([DPSOH
Fourier Analysis
500.0000m
400.0000m
Voltage (V)
300.0000m
200.0000m
100.0000m
-1.3878e-017
-100.0000m
0 100 200 300 400
Frequency (Hz)
V(2)
We perform a transient analysis and measure the independent input current and the current
through the inductor. To measure the currents we add dummy voltage sources in series with the
inductor and the current source as shown in Fig. 3.48. The positive terminal in the dummy voltage
source is connected to the current source because the current in a voltage source enters the positive
terminal. Since the period of the current source is 20 sec, the transient analysis runs for 40 sec as
shown in Fig. 3.49. We have selected the User-defined option in the Initial Conditions pull down
menu in Fig. 3.49 so the circuit uses the initial conditions for the analysis. After running the analysis
we obtain the plots of Fig. 3.50. To compare the results of the analysis we run the analysis using
only the initial condition at the capacitor and with no initial conditions. The results are shown in
Fig. 3.51.
72 3. TIME DOMAIN ANALYSIS – TRANSIENT ANALYSIS
Figure 3.42: Input and output signals for the active filter.
Figure 3.45: RLC circuit with initial conditions in the inductor and capacitor.
74 3. TIME DOMAIN ANALYSIS – TRANSIENT ANALYSIS
The transient analysis goes from 0–10 msec as shown in the dialog window in Fig. 3.54. Plots
of the input and output signal are shown in Fig. 3.55.
3.6. ADDITIONAL EXAMPLES 75
(a) (b)
Figure 3.47: Dialog window to enter the initial conditions in a) inductor, b) capacitor.
Figure 3.49: Dialog window for the transient analysis with the User-defined initial conditions selected.
Example 3-6-2
Transient Analysis
2.5
2.0
1.5
Current (A)
1.0
500.0m
0.0
-500.0m
0 10 20 30 40
Time (s)
l(V1) l(V0)
Figure 3.50: Waveforms for the transient analysis using initial conditions.
3.6. ADDITIONAL EXAMPLES 77
([DPSOH
7UDQVLHQW$QDO\VLV
&XUUHQW$
P
P
7LPHV
O9 O9
Figure 3.51: Waveforms for the transient analysis of the RLC circuit with no initial conditions.
9
5 N Ω
'
1
5 B 5 N Ω
N Ω
9HQW
B 5 NΩ
'
1
5 N Ω
B
9
Figure 3.55: Input and output waveforms for the comparator circuit.
We now perform a Fourier analysis to see the distortion at the output signal. From
Simulate→Analyses→Fourier Analysis…. we obtain the dialog window of Fig. 3.59. Since the
input signal has a frequency of 100 Hz we use this value as the fundamental frequency and for
TSTOP we press the button Estimate. After pressing the button Simulate we obtain the Fourier
plot of Fig. 3.60 where we see the rich harmonic content of the output signal.
We now add a Distortion Analyzer as shown in Fig. 3.61. After setting the virtual instrument
to use 9 harmonics by pressing the button Set and using the Run Button in Multisim we see that
the measured distortion is 39.133%. This same result was obtained in the Fourier analysis.
3.7 CONCLUSIONS
Time domain simulations have been covered in this chapter. This type of analysis is called Transient
Analysis. This analysis is useful when the circuit includes either inductors or capacitors or both. We
82 3. TIME DOMAIN ANALYSIS – TRANSIENT ANALYSIS
Example3-6-3
Fourier Analysis
9
7
Voltage (V)
-1
0 200 400 600 800 1k
Frequency (Hz)
Figure 3.61: Comparator circuit with a Distortion Analyzer to measure THD of the output signal.
also covered how to perform a Fourier analysis to measure the harmonic content in the signals in a
circuit. The osciloscope and distortion analyzer instruments were introduced.
PROBLEMS
3.1. Perform a transient analysis to the circuit shown. It is a full-wave rectifier.
3.4. For the circuit shown, plot the node voltages V(1) and V(4).
3.5. Use an oscilloscope to watch the signal at the circuit of Problem 3.3. Use the Run icon to
simulate.
3.6. Run a transient analysis in the circuit shown. Change the voltage source to a square signal.
3.7. CONCLUSIONS 85
3.7. In the circuit shown, run a distortion analysis using the distortion analyzer from the In-
strument toolbar and compare the result with the THD from a Fourier analysis.
87
CHAPTER 4
D
E
Figure 4.3: Normalized RLC passive circuit. (a) Schematic diagram; (b) circuit in Multisim.
Linear sweep with 1000 points. The starting frequency is 2 Hz and the final one is 5 Hz. The output
variable to plot is the voltage at node 3, that is, V(3). After pressing the button Simulate we obtain
the plots of Fig. 4.6. These are the magnitude and phase of the signal at node 3. We see that the
RLC circuit is a passband filter.
In Multisim, before doing the AC analysis or any other analysis, a Bias Point analysis is done.
If for any reason a Bias Point cannot be done, the simulation is aborted and error messages will be
displayed.
4.1. AC ANALYSIS – FREQUENCY RESPONSE 91
Figure 4.4: Dialog window to specify the amplitude of the AC signal. The data for AC analysis is within
the square.
([DPSOHBBB
$&$QDO\VLV
P
P
0DJQLWXGH
P
P
P
P
P
P
P
)UHTXHQF\+]
3KDVHGHJ
)UHTXHQF\+]
D
E
Figure 4.7: (a) The loop has zero resistance; (b) very small value resistor R1 avoids the zero resistance
loop.
we obtain the message window of Fig. 4.8 which indicates that the analysis has been aborted. This
problem can be avoided by inserting a very small resistor in the loop. In Fig. 4.7 (b), we inserted in
the loop a 1μ resistor to avoid the zero resistance loop. The value of the resistor is very small in
order not to affect circuit behavior but allows Multisim to obtain the Bias Point analysis.
94 4. FREQUENCY DOMAIN ANALYSIS – AC ANALYSIS
Figure 4.8: Message window indicating that the analysis has been aborted because of the presence of a
zero resistance loop.
We wish to find the frequency response. We specify a linear sweep with 100 points as seen in
the dialog window of Fig. 4.9 (b). After running the analysis we obtain the Bode plots of Fig. 4.10.
We can see there the magnitude and phase plots. We can obtain a Bode plot by using the Bode
plotter from the Instruments toolbox. We select the Bode plotter with a click and bring it to the
circuit where we connect it as desired (see Fig. 4.11). The window next to the circuit is open by
4.2. BODE PLOTS 95
D
E
Figure 4.9: Passive ladder circuit. (a) Schematic circuit; (b) dialog window to specify the AC analysis.
96 4. FREQUENCY DOMAIN ANALYSIS – AC ANALYSIS
itors, and a unity gain amplifier. We wish to obtain the frequency response. We then wire up the
circuit in Multisim to obtain Fig. 4.13. We wish to obtain Bode plots for the output voltage Vout
which in this circuit corresponds to V(5).
We realize the unity gain amplifier with an operational amplifier in a voltage follower con-
figuration. After performing an AC analysis we obtain the plots shown in Fig. 4.14. We can readily
see that we have a high pass filter.
Multisim can make a Pole-zero analysis by selecting from the main menu Simulate→Analyses→Pole
Zero… as shown in Fig. 4.15. This action will open the dialog window of Fig. 4.16 where we specify
the function for which we wish to obtain poles and zeros. We also need to specify input and output
variables for the desired function. In Fig. 4.16, we see that we can obtain the voltage transfer function
as Gain Analysis, the impedance transfer function as Impedance Analysis, and the input and output
impedances. An example will show the procedure.
− 0.54019307
− 0.21710906 + j 0.98174004
− 0.21710906 − j 0.98174004 ,
4.3. POLE-ZERO ANALYSIS 99
$&$QDO\VLV
0DJQLWXGH
P
P
P
P
N N
)UHTXHQF\+]
3KDVHGHJ
N N
)UHTXHQF\+]
Figure 4.14: Bode plots for the high pass active filter.
Figure 4.17: Passive ladder elliptic filter for Pole Zero analysis.
4.3. POLE-ZERO ANALYSIS 103
Figure 4.18: Input and output nodes for Pole Zero analysis.
Figure 4.19: Poles and zeros for the passive ladder elliptic filter.
104 4. FREQUENCY DOMAIN ANALYSIS – AC ANALYSIS
4.4 EXAMPLES
In this section, we present additional examples of circuits where an AC analysis is made.
5
5 &
5 B 5
5 & B
9HQW
B
9VDO
B
In this circuit we are using 741 operational amplifiers available from the Op Amps group.
These op amps need a dual power supply. The circuit in Multisim is shown in Fig. 4.21. The data
for the AC analysis can be seen in the window of Fig. 4.22. The frequency response is plotted in
Fig. 4.23. From there we see that the filter is a passband one.
We now add a Bode plotter from the Instruments toolbar as shown in Fig. 4.24. The Bode
plotter input and output are connected to the circuit input and output nodes. We then press the Run
button and after a few moments we see the Bode plot displayed in the Bode Plotter as shown in
Fig. 4.25.
If we need this circuit to oscillate at a 100 Hz frequency, for C= 0.4 μF, then R must be 1.3
K. An analysis of the circuit reveals that it has a gain of 1/29 at the chosen frequency of 100 Hz.
Thus, the op amp circuit must have a gain of 29 (in practice a little bit higher to start the oscillation).
Since R= 1.3 K then Rf = 37.7 K.
If we choose Rf 1% greater than the calculated value above, we have then Rf = 38.077 K
which gives us a loop gain slightly higher than unity. In order to simulate the circuit, Multisim
requires an independent signal source. To verify if this circuit will oscillate properly, we perform an
indirect measurement. We open the circuit between the points A and B and place an independent
voltage source with unity magnitude. Then we measure the magnitude gain from point A to point
B. This gain must be unity. We also measure the phase. It has to be 0◦ .
Fig. 4.27 shows the circuit in Multisim.
To check that the circuit behaves as expected we perform an AC analysis from 60–140 Hz,
as shown in Fig. 4.28. We plot the gain from node B to node A, that is, we plot the magnitude and
phase of V(A)/V(B). Fig. 4.30 shows the resulting plots. There we see that at approximately 100 Hz
we have unity gain and 0◦ phase.
([DPSOHBBB
$&$QDO\VLV
0DJQLWXGH
N N N N N N
)UHTXHQF\+]
3KDVHGHJ
N N N N N N
)UHTXHQF\+]
Figure 4.23: Frequency response plots for the two op amp circuit.
4.4. EXAMPLES 107
Figure 4.24: Two op amp circuit with a Bode plotter connected between input and output nodes.
([DPSOHBBB
$&$QDO\VLV
P
0DJQLWXGH
P
P
)UHTXHQF\+]
3KDVHGHJ
)UHTXHQF\+]
Figure 4.29: Magnitude and phase for the phase shift oscillator.
110 4. FREQUENCY DOMAIN ANALYSIS – AC ANALYSIS
AC Analysis
100m
Magnitude
10m
1m
100μ
1 10 100 1k 10k 100k
Frequency (Hz)
100
50
Phase (deg)
-50
-100
1 10 100 1k 10k 100k
Frequency (Hz)
Figure 4.31: Plots for the voltage across the load resistor.
4.5. CONCLUSIONS 111
per octave. A plot of the voltage across R3 is shown in Fig. 4.31. The frequency response presents a
bandpass behavior.
4.5 CONCLUSIONS
In this chapter we have presented the AC analysis and its main characteristics. Together with Bias
Point, DC Sweep, and Transient Analyses we have the four basic types of analyses that can be done
to a circuit. AC analysis is a frequency sweep to obtain frequency response plots of a circuit. These
frequency response plots are usually called Bode plots and they can also be obtained with Multisim
Bode Plotter available from the Instruments toolbar. We also presented the way to avoid loops with
zero resistance that is not possible to simulate in Multisim. Other types of analyses, which can be
done to a circuit, are based in anyone of the analyses types described so far.
PROBLEMS
4.2. On the circuit of Problem 4.1, obtain the poles by making a pole-zero analysis.
4.3. The circuit shown is a multiple-feedback bandpass filter. Obtain the magnitude and phase
for this circuit using an AC analysis. Also use the Bode plotter from the Instrument toolbar.
Compare both plots. Use C2 = C3 = 0.1 μF, R1 = 15.9 K, R5 = 79.97 , R6 = 31.83 K.
Use an op amp 741.
112 4. FREQUENCY DOMAIN ANALYSIS – AC ANALYSIS
4.4. Obtain the frequency response, using an AC analysis for the circuit shown. Observe that
has transmission zeros. They are due to the tank LC circuits. The zeros must be located at
f 0 = 1 f0 = √1 . Compute the frequency for both tanks and compare the results with
2π LC
the ones obtained from the simulation.
4.5. The circuit shown is a lowpass filter using two generalized immitance converters (GICs).
Obtain the magnitude response for the circuit. Resistors are in K and capacitors in μF.
Use Op amps 741.
4.5. CONCLUSIONS 113
4.6. In the KHN state-variable filter shown, use 741 op amps. Plot the magnitude response
at each of the op amp outputs. The element values are C1 = C2 = C =1 μF, R1 = R2 =
R3 = R5 = R6 =1 K and R4 =19 K.
4.7. For the Tow-Thomas filter shown, run a simulation and plot the magnitude responses
for the op-amp outputs. Compare them. Use the op-amp 741. The element values are
C1 = C2 = C = 1 μF, R1 = 1.59 M, R = R2 = R3 = 159 K , R4 = 795.77 K. Use
the Bode plotter and compare the results.
114 4. FREQUENCY DOMAIN ANALYSIS – AC ANALYSIS
4.8. The circuit shown is a leap-frog filter. Obtain the Bode plot for the magnitude of V2 . Use
the virtual op-amp. Resistors are in K and capacitors in μF.
4.9. The circuit shown is a Sallen and Key low pass filter. Obtain the frequency response. The
element values are C2 = C4= 1 μF, R1 = R3 = 1 K.The amplifier gain is K= 1. Implement
the amplifier with a voltage follower using an op-amp 741.
4.5. CONCLUSIONS 115
4.10. Obtain the magnitude Bode plot for the circuit shown. Identify the notch frequency.
117
CHAPTER 5
Semiconductor Devices
INTRODUCTION
Semiconductor devices are the main components of electronic, electric, and mechatronic systems.
They can used to develop countless tasks in telecommunication systems, industrial control of pro-
cesses, entertainment systems, home appliances, satellite control, to name a few. In this chapter, we
describe the way to simulate circuits using semiconductor devices such as diodes, bipolar junction
transistors (BJT), MOSFETs, JFETs, and operational amplifiers. Although there are more types of
semiconductor devices, the ones mentioned here are by far the most used in modern electronics. In
general, with the exception of diodes, most semiconductor devices are known as active elements. On
the other hand, resistors, capacitors, and inductors are known as passive devices.
Basic semiconductor devices, such as diodes and transistors, have a model associated with
them. This model represents the main characteristics of the device. For example, the β of a BJT is
one of such parameters. Some other more complex semiconductor devices are composed of diodes,
transistors, and passive elements, are described in Multisim by a subcircuit. A subcircuit is the
equivalent of a subroutine in any programming language. It is a set of interconnected elements that
can be reused in the same circuit without the need to redraw all the elements in the circuit. Some
devices that are described by subcircuits are operational amplifiers and logic devices. In this chapter,
we describe how Multisim can simulate circuits with diodes and transistors and the more complex
devices such as operational amplifiers and other integrated circuits such as comparator, the 555 timer,
voltage references, multipliers, and active filters to mention a few. Digital integrated circuits are also
composed of diodes and transistors and they are the topic of the following chapter.
5.1 DIODES
For the semiconductor diode the symbol is shown in Fig. 5.1. Diodes are available from Diode group
in the Components toolbar that can be seen in Fig. 5.2. The dialog window to select a particular
diode is shown in Fig. 5.3.
In this window, we can see that there are available different types of diodes such as zener,
LED, SCR, Schottky, diode bridges, etc. When placed in the schematic circuit, diodes are indicated
with the letter D.
118 5. SEMICONDUCTOR DEVICES
([DPSOHBBB
7UDQVLHQW$QDO\VLV
9ROWDJH9
P P P P P P
7LPH6
Figure 5.5: Input and output waveforms for the half wave rectifier circuit.
Now we double click on the diode symbol in the circuit to obtain the dialog window of Fig. 5.6.
The Value tab is displayed in the figure. Besides the diode number, there are shown the Footprint
and the function this diode realizes, in this case a rectifier diode. There are also four push buttons
which are used in the definition of the diode model parameters. If we press the Edit Model button
we obtain the window of Fig. 5.7 which displays the parameters of the diode model. For a description
of each one of these parameters the reader is referred to any text available on semiconductors such
as Ref. [1].
120 5. SEMICONDUCTOR DEVICES
5.2 TRANSISTORS
Multisim can simulate circuits with the three types of transistors. They are the Bipolar Junction
Transistor (BJT), the Metal-Oxide-Semiconductor Field Effect Transistor (MOSFET), and the
Junction Field Effect Transistor ( JFET). In addition, Multisim also includes the Unijunction tran-
sistor (UJT), power MOS transistor, and the Darlington transistor array. The symbols for these
transistors are shown in Fig. 5.8. For the PNP BJT, channel P MOSFET, and channel P JFET, the
arrow is in the opposite direction. Every transistor name starts with the letter Q and it is numbered
sequentially, thus the first transistor is Q1, the second one is Q2, and so on.
Any transistor is available by clicking on the transistor group icon in the components toolbar
shown in Fig. 5.9.
Figure 5.8: Transistor symbols in Multisim. (a) BJT npn; (b) Channel n JFET; (c) Channel n MOSFET;
(d) Power MOSFET; (e) Unijunction transistor; (f ) Darlington pair.
for silicon transistors and 0.2 V for germanium ones. In order to plot the characteristic curves, we
use the I-V plotter from the Instruments toolbar. This instrument plots the collector current vs.
collector-emitter voltage with base current as a parameter.
To obtain the characteristic curves we only have to use the Run icon and open the I-V Analysis
instrument to observe the curves. We show them at the window of Fig. 5.11.
Fig. 5.11 shows the cursor positioned at the position of Vce = 5.746 V, a collector current Ic
= 3.251 mA, and a base current Ib = 15 μA, which correspond to the fourth curve. If we press the
5.3. BIPOLAR TRANSISTORS 123
Sim_Param button we open the window of Fig. 5.12 where we specify parameters for the collector-
emitter voltage Vce and the base current Ib.
We observe that the input waveforms cannot be clearly appreciated. We now plot them in
a graph with two plots using the Postprocessor. To do this we open the postprocessor window by
selecting from the main menu Simulate→Postprocessor. The Postprocessor window is shown in
Fig. 5.16 and we see the variables available from the simulation V(vin1) and V(vin2). We select these
variables and press the Copy variable to expression as in Fig. 5.17.
We now select the Graph tab. This tab, seen in Fig. 5.18, has two spaces with spreadsheets
and two spaces. A new plot is created by clicking on the Add button to the right of the Pages
124 5. SEMICONDUCTOR DEVICES
Figure 5.18: Procedure to add a variable to the first set of axis Input Vin1.
128 5. SEMICONDUCTOR DEVICES
spreadsheet. We write the name of the plot Input voltages. Now we click twice on the Add button
in the Diagrams spreadsheet. Each click creates a new set of axes in the page Input voltages. In the
first set of axes we plot V(vin1) and in the second set we plot V(vin2). Now in the spreadsheet for
Diagrams we select the one named Input Vin1 and in the Expressions available space add V(vin2)
to the Expression selected space as shown in Fig. 5.19. We repeat for the other variable V(vin2) and
add it to the second set of axis. After finishing we press the Calculate button and then we obtain the
plots of Fig. 5.20.
We make a transient analysis on this circuit with a final time of 2 msec. The variables selected
for display are Vin1 and Vin2. We run the analysis with the Run button and observe the input and
output waveforms in the oscilloscope window of Fig. 5.22. Observe the scales for the base-time and
the voltage for both channels. Make sure the AC button beneath for both channels are pressed.There
we see that the input and output peak to peak voltages are 19.981 mV and 2.299 V, respectively. The
midband gain is then
2.299
Gain = − = −115.06 .
0.19981
Now, we make a double click on the transistor. This opens the window of Fig. 5.23 and there
we press the Edit Model button.Then, the model for the 2N2222A bipolar transistor is open showing
the model as shown in Fig. 5.24. This model displays the parameters of the BJT repeated here from
this last figure:
For example, the parameter β is given by BF = 220 and the ohmic resistors associated with
base, emitter, and collector are 0.13, 0.22, and 0.12, respectively. The companion book Advanced
Circuit Simulation using Multisim Workbench shows how to edit the models for semiconductor
devices.
Figure 5.19: Postprocessor window with Graph tab selected. (a) The variables for upper plot at Expres-
sion space.
130 5. SEMICONDUCTOR DEVICES
Figure 5.19: Postprocessor window with Graph tab selected. (b) Variable for upper plot at Expressions
space.
5.4. JUNCTION FIELD EFFECT TRANSISTORS-JFET’S 131
terminals are called drain, source, and gate. Their characteristic curves can be plotted with a nested
DC sweep analysis. Let us consider the circuit of Fig. 5.25, VDD is Source 1 and VGG is source 2 in
the DC sweep. From the main menu select Simulate→Analyses→DC Sweep we obtain the dialog
window of Fig. 5.26. We enter the data as shown there for the sources.
We now select the Output tab to get the window of Fig. 5.27. The output variable we wish to
plot is the drain current ID which is not available in the output variables to plot. Instead, it is available
the current through VDD as I(vdd). The desired current is given by ID = –I(vdd). Thus, we have to plot
this current. To do this we click on the Add Expression button to obtain the window of Fig. 5.28.
There we can form the desired output variable in the Expression space. We write there –I(vdd), press
the OK button and then when we return to the previous window we click on the Simulate button to
obtain the curves shown in Fig. 5.29. These are the characteristic curves for a JFET. Note that the
slope of the curves is less than that obtained for the BJT in Fig. 5.16.
134 5. SEMICONDUCTOR DEVICES
([DPSOHBBB
7UDQVLHQW$QDO\VLV
V(in)
V(out)
P
9ROWDJH9
P
P P P P P
7LPH6
Model 2: (LEVEL =2) This is an analytic model based in the geometry of the device [3].
Model 3: (LEVEL =3) This is a semiempirical model and it is based in the transistor model
for short channel length. It is widely used [3].
Model 5: (LEVEL =5) EKV model version 2.5. It is mainly used in submicrometric pro-
cesses [7].
Model 5: (LEVEL =5) BSIM3 model version 2.0. It is used in physical models where there is
a strong approach to submicron processes [5].
Model 7: (LEVEL =7) BSIM3 model version 3.1. This is an improved version of model 6 [6].
Reference [8, 9] provides a comprehensive treatment of transistor models.
MOSFETs available in Multisim libraries already have a model specified and it is not needed
to do it by the user.
observe two cycles in the signals. The input and output signals are shown in Fig. 5.38. By measuring
the amplitude of both signals we can see that the voltage gain is
0.941
Gain = − = −9.5 .
.099
The minus sign is due to the fact that both signals are out of phase by 180◦ and thus, it is an inverting
amplifier.
Figure 5.40: Dialog window to specify the parameters of the DC sweep analysis.
Figure 5.42: Input and output signal for the NMOS inverter gate.
146 5. SEMICONDUCTOR DEVICES
([DPSOHBBB
$&$QDO\VLV
0DJQLWXGH
N N N 0 0
)UHTXHQF\+]
The input signal is a square wave with a period of 100 msec and a 50% duty cycle. We run a
transient analysis from 0–0.4 sec (see Fig. 5.47). The input and output waveforms are displayed in
Fig. 5.48.
In Fig. 5.48 the waveforms are not fully appreciated. Thus, we run now the Postprocessor
to plot them in different sets of axes. From the main menu select Simulate→Postprocessor which
opens the main Postprocessor window of Fig. 5.49. There we select the Expression tab and select
the output variables V(in) and V(out), and the press the button Copy variable expression. Then, in
the Graph window we create a page called Input/Output signals and two plots called Input signal
and Output signal. In the Input signal we plot V(in) and in the Output signal V(out). We press the
Calculate button and obtain the plots of Fig. 5.51 which are better than the ones previously obtained
in Fig. 5.48.
5.7 CONCLUSIONS
In this chapter, we have covered circuits using semiconductor devices. We also show that semicon-
ductor devices are represented by models. More complex electronic devices are composed by diodes
and transistor, besides resistors and capacitors, and are the backbone of powerful integrated circuit
such as microprocessors, digital signal processors, FPGAs, operational amplifiers and many other
integrated circuits.
148 5. SEMICONDUCTOR DEVICES
Figure 5.49: Postprocessor window to create a plot with two sets of axes.
152 5. SEMICONDUCTOR DEVICES
Figure 5.50: Postprocesor window to plot V(out) in the Output signal axes.
5.7. CONCLUSIONS 153
,QSXWVLJQDO
9ROWDJH9
P P P P P
7LPH6
2XWSXWVLJQDO
9ROWDJH9
P P P P P
7LPH6
5.3. The circuit shown is a voltage doubler. Plot the output signal and the input voltage given
by the voltages V(1) – V(2).
5.4. Use the oscilloscope to see the waveforms indicated. This is a common-emitter amplifier.
5.7. CONCLUSIONS 155
5.6. Perform a transient analysis to the differential circuit shown to obtain the input and output
waveforms.
156 5. SEMICONDUCTOR DEVICES
5.7. Use a programmable unijunction transistor UJT to build an oscillator as shown in the figure.
Measure the waveform at node 1.
5.7. CONCLUSIONS 157
5.8. Simulate the amplifier shown. It employs a JFET as the amplifying device. Plot the output
waveform.
5.9. The circuit is a cascode amplifier implemented with JFETs. Find the gain and plot it after
a transient analysis.
5.10. Plot the input and output waveforms for the two-stage circuit.
158 SELECTED BIBLIOGRAPHY
SELECTED BIBLIOGRAPHY
For readers interested in further reading about simulation, the following books provide further insight
into the SPICE simulator.
[1] U. Cilingiroglu, Systematic Analysis of Bipolar and MOS Transistors, Materials Science Li-
brary, 1993. 119, 142
[3] A. Vladimirescu, and S. Lui, “The Simulation of MOS Integrated Circuits Using SPICE2,”
Memorandum No. M80/7, February 1980. 139
[4] B. J. Sheu, D. L. Scharfetter, P.-K. Ko, and M.-C. Jeng, “BSIM:Berkeley Short-Channel
IGFET Model for MOS Transistors,” IEEE Journal of Solid-State Circuits, SC-22, 558-555,
August 1987. 139
[5] J.H. Huang, Z.H. Liu, M.C. Jeng, K. Hui, M. Chan, P.K. KO, and C. Hu, “BSIM3 Man-
ual,” Department of Electrical Engineering and Computer Science, University of California,
Berkeley, CA 94720. 139
[6] Department of Electrical Engineering and Computer Science, BSIM3v3.1 Manual, University
of California, Berkeley, CA 94720. 139
[8] R.S. Murphy, Prospects for the MOS Transistor as a High Frequency Device, Tesis doctoral,
INAOE, 1997. 139
[9] D. Báez López, Análisis de circuitos usando PSpice, Alfaomega Grupo Editor, México, D.F.,
1995. 139
[10] A.S. Sedra and K.C. Smith, Microelectronic Circuit, Holt, Rinehart, and Winston, 2006. 128
159
CHAPTER 6
Digital Circuits
INTRODUCTION
Digital circuits nowadays are part of our daily lives from several decades ago. Their applications
go from cellular telephones to PC applications, communications systems, process control, to name
a few. Multisim has a wide set of features specifically designed for the analysis and simulation of
digital circuits in several handy ways.
We can see that the output will be in a low state when both inputs are at a high level.
In Fig. 6.2 we can see some aspects that we are going to discuss here. Power is provided
by VCC and it is fixed at 5 VDC. Input signals are obtained using J1. This component is a 2 bit
DIP switch (DIP stands for Double In-Line Package, that’s the type of components that can fit into
a breadboard for prototyping, their typical width is 0.3 inches and the separation between pins is
0.1 in). The switch is wired so the digital ground is going to the gate’s input via a pull-down resistor,
basically grounding it while the switches are open. When one or both of the switches is closed (a
point on the component shows the ON position) there are 5 volts present at the input.
The output is connected to a display that evokes a test LED. It is available at the Indicators
library as Probe. Besides it we can see that the threshold voltage for turning it on and off is 2.5 volts.
We then run the simulation with the Run icon and we can observe the result shown on Fig. 6.3.
Here, we can see some important details:
9&&
;
9
9&& 9
8$
-
3UREH3UREH
/6' 9 9
9SS9
9UPV9
9GF9
5
Nȍ 5 ,$
Nȍ ,SS$
,UPV$
*1' , GF$
)UHT
*1'
Figure 6.2: Circuit used for testing the truth table of a NAND gate.
9&&
;
9
9&& 9
8$
-
3UREH3UREH
/6' 9 9
9SS9
9UP V9
9GF 9
5
Nȍ 5 ,S$
Nȍ , SS$
,UPV$
*1' ,GFS$
)UHT
*1'
Figure 6.3: Simulation running. Note the red LED indicating a HIGH level at the output.
162 6. DIGITAL CIRCUITS
This simulation with only 2 bits at the input can be used to verify the truth table just flipping the
switches. While the simulation is running we can change with the computer’s mouse the positions
of the switches.
A very handy option in Multisim is the ability to assign these switches to a specific key so
changes can be made using the keyboard while the simulation is running. If we right click on the
DIP switch we can see that it’s possible to map each switch to a key so they can be toggled during
simulation (Fig. 6.4).
Another nice function in Multisim shows up when adding logic gates to a design. After
selecting the gate model a window appears that lets us decide which specific gate in the package we
will be using (see Fig. 6.5). This function is particularly useful when the design is intended for PCB
manufacturing using UltiBoard.
6.2. TOOLS FOR DIGITAL CIRCUIT ANALYSIS 163
)
& 4 7
Trigger functions allow us to save data in a buffer when a trigger condition is met. This buffer
will save data before and after the trigger condition according to the size specified in the properties
dialog window.
This binary count will be the input data for a full adder circuit.
Input waveforms have to be connected to inputs A, B, and Cin. They represent the operands
and the carry input, respectively.
If we plot both input and output waveforms with the logic analyzer we get the signals shown
on Fig. 6.9.
The complete circuit with all the connections made is shown in Fig. 6.10.
$ 8% 6XPD
%
/6'
8$ 8%
8$ &RXW
/6' /6'
&LQ /6'
Figure 6.9: Input and output waveforms for a full adder circuit.
166 6. DIGITAL CIRCUITS
;:*
;/$
2 $
8$
% 8%
2
6XPD
2 /6'
/6'
; &DUU\
; 8$ 8%
8$
;
/6' /6' )
/6' & 4 7
7 5 &HQW
[
\ 3
8$
8%
]
/6'
/6'
We are going to connect the logic converter to the circuit inputs X, Y, and Z. This will
correspond to the A, B, and C connections on the logic converter. Output P is going to Output. The
connections can be seen on Fig. 6.12.
Inside the options for the logic converter we need to press the first button in order to execute
the conversion between electric gates to a truth table. We will see a result similar to the one shown
on Fig. 6.13.
6.2. TOOLS FOR DIGITAL CIRCUIT ANALYSIS 167
;/&
$%
[
\ 3
8$
8%
]
/6' /6'
Here, we conclude our revision of the instruments in Multisim focused on digital circuits. In
the next section, we will work out three more examples so the reader can gain more familiarity with
the use of Multisim in practical scenarios.
6.3 EXAMPLES
Parallel load register.
555-based VCO.
3–8 decoder.
6.3. EXAMPLES 169
Example 6.2 Parallel load register.
The circuit we will simulate is a 4 bit register capable of holding data in its outputs when the
load signal goes high. It will also have a control line for clearing the outputs. The circuit can be seen
in Fig. 6.15.
The results of a simulation can be seen on Fig. 6.16. Here we see the four input signals
(IN1..IN4), the four output signals (out1..out4) and control signals (LOAD, CLR, and CLK).
Input data is 0110 and we can see that the four output signals are low. When the LOAD signal goes
high the output doesn’t change. Two conditions must be met to have a change at the output, the
CLK signal must be active when the LOAD signal is going down. That is the case when we can see
data present at the output. We can also observe that the CLR signal effectively clears the output.
This signal does not depend on the clock signal for clearing the output.
/RDG
6(7
$
- 4
,Q &/.
. a4
5(6(7
6(7 $
,Q
- 4
&/.
. a4
5(6(7
,Q $
6(7
- 4
&/.
. a4
5(6(7
,Q
$
6(7
- 4
&/.
. a4
&/. 5(6(7
&OHDU
6.4 CONCLUSIONS
In this chapter, we went through a series of examples showing the analysis and simulation possibilities
that Multisim provides to the user. We first introduced the common components (logic gates and
digital sources) and the appropriate tools for input and output signals.
Digital circuit design, analysis, and simulation can be daunting tasks but Multisim provides
several useful tools. We have shown the basic procedures for accomplishing these tasks. The provided
examples cover several analysis options and show the usage of the included Multisim tools.
172 6. DIGITAL CIRCUITS
5 9
Nȍ 9
5 9&&
Nȍ
567 287
',6
5
7+5
Nȍ
75,
&21
*1'
'
'
= '
'
<
'
'
'
'
6.1. If F1 = (A·B)’ (like in the circuit shown in Fig. 6.2), build a test circuit for another function
F2 that is the DeMorgan equivalent to F1. Use a DIP switch and a logical probe to verify
your answer.
6.2. Test the distributive property. Verify that F3 = A + (B·C) is equal to F4 = (A+B)·(A+C).
You can use truth tables, a logic analyzer or even two parallel circuits with the same inputs
and independent output probes as in Problem 6.1.
6.3. Test the function F = AB’C + A’B’ + C. Use DIP switches and compare with the truth table.
6.4. CONCLUSIONS 177
6.4. Obtain the function that this circuit realizes. Use the probes to observe the output signals.
6.5. The circuit shown is a counter. It has two common anode seven-segment displays. It uses
a digital clock set at 1 Khz. Build and test the circuit. You might need to change the clock
frequency to improve the counting time.
178 6. DIGITAL CIRCUITS
6.6. The circuit shown uses a common cathode seven-segment display. The IC 7448 is a binary
to BCD. The word generator is set as shown. "Wire-up" and test the circuit.
6.4. CONCLUSIONS 179
6.7. The circuit shown is a 4-bit register. Wire it and change the input (switch J1) to see how it
works. Try opening and closing the load and reset switches. Set the input with the J1 DIP
switch.
180 6. DIGITAL CIRCUITS
6.8. Wire-up the circuit shown and check its output. It is a voltage-controlled oscillator. Its
frequency is controlled by the voltage source V2. Try several values for the value of V2 and
check the frequency on the frequency counter
181
Authors’ Biographies
DAVID BÁEZ-LÓPEZ
David Báez-López was born in Puebla, México. He attended the
Universidad Autónoma de Puebla where he obtained a B.S. in
Physics. He then obtained M.S. and Ph.D degrees in Electrical
Engineering from the University of Arizona. He has authored
more than 80 research papers and 5 books. He has been a professor
of Electronics at Universidad de las Américas-Puebla, UDLAP, in
Cholula since 1985 where he was Head of the Department from
1988 to 1996, at the National Institute for Astrophysics, Optics,
and Electronics, from 1979 to 1985, where he was also head of
the Department of Electronics from 1983 to 1985, and he has
been a visiting professor and researcher at Texas Tech University
at Lubbock, TX, and at Ryerson University, Toronto, Canada.
He is founder of the International Conference on Electronic Engineering CONIELECOMP, held
every other year at UDLAP.
182 AUTHORS’ BIOGRAPHIES
FÉLIX GUERRERO-CASTRO
Félix E. Guerrero-Castro is an electronics engineer working
at Hackerspace (http://www.hackerspacecholula.org) in
Cholula, Puebla, México. Among his daily activities are hardware
development, consulting, web programming, and teaching kids
how to program Arduino microcontrollers.
After receiving his Master’s Degree in Electronics in 2004,
he spent six year as a lecturer teaching electronics at the Electron-
ics Lab at Universidad de las Américas-Puebla UDLAP. He holds a Bachelor’s degree in Electronics
and Communication Engineering from the Instituto Tecnológico y de Estudios Superiores de Mon-
terrey (ITESM) 1999. He has published a number of research papers in power electronics, digital
sound modelling, and biomedics. He also plays guitar and records local bands in his own studio. He
enjoys traveling and taking landscape photographs.