Professional Documents
Culture Documents
I 8 (27) T.K|»chi D f s i i j n
A \i C D F f G
1 I I I I I I I
2 I I \ 2 2 2 2
i I 2 2 I \ 2 2
,\ I 2 2 2 2 I I
•> 2 I 2 I 2 I 2
/, 2 I 2 2 I 2 I
/ 2 2 I I 2 2 I
K 2 2 I 2 I I
In this stated example, levels 1 and 2 occur 4 times in each factor in the array. If you
compare the levels in factor A with the levels in factor B, you will see that B1 and B2
Taguchi Design 1x l
Type of Design
f* i2-Level Design; (2 to 31 factor sj
<~ 3-Level Design (2 to 13 factor
f* 4-Level Design (2 to 5 factors
;
c~ 5-Level Design (2 to 6 factors
c M i x e d Level Design (2 to 26 factor B]
D i s p l a y Available Designs...
Number of facte rs:
^3
Designs...
Help OK Cancel
2 If you want to see a summary of the Taguchi designs available, click Display
Available Designs. Click OK.
136 1-3 13
L54 1 3-25
Help OK
5. Click Designs.
Taguchi Design - Design
Runs 2 * * Columns
LS 2 ** 2
LI 2 2 ** I
Lib 2 ** 2
L3 2 2 ** C
Help OK Cancel
6 In the Designs box, highlight the design you want to create. If you like, use
the option described under Design sub dialog box below.
7 Click OK even if you do not change any options. This selects the design and
brings you back to the main dialog box.
2 ? i ^ —
1 -'1
i :
1 3
I l
'Alien you odd ci nciru 1 factor '.vhil- creating a i e i v l"a .luchi design, the a m order rt-ill be
different f r o m the order that results from acl> In-. : | o ; icinal factor uiinci Modify Desicin—:ee
Aoji'\t o '\T'\v .v."'•:•.' '•;• J O -:'ii';'\'> ;.\x".v >A" : 0 ' on pa. j e 24-1 ^ The order of the IOVVS
d o e ; n o t affect t h e TV> :iuchi a no k si
•IrAv | :.K J _. .,
2 ?, 4 *\ 6 7
7
1 3 2 N 4 o
7 *)
2 1 6 4
3 7 6 5 4
4 1 2
5 3 2
6 1
The columns and rows represent the column numbers of the Taguchi design
(orthogonal array). Each table cell contains the interactions confounded for the two
columns of the orthogonal array. For example, the entry in cell ( 1 , 2) is 3. This
means that the interaction between columns 1 and 2 is confounded with column 3.
Thus, if you assigned factors A, B, and C to columns 1, 2, and 3, you could not study
the AB interaction independently of factor C. If you suspect that there is a substantial
interaction between A and B, you should not assign any factors to column 3.
Similarly, the column 1 and 3 interaction is confounded with column 2, and the
column 2 and 3 interaction is confounded with column 1.
• To select interactions
1 In the Create Taguchi Design dialog box, click Factors.
11**1*1 VftlUMK
_ . JS'-S-.K^^U
11 ' n \~
I-' U
Thl; option only
j'/jiitabk'.vhvii you
hove J dynamic ---.. -ir.. I..I
d~:ign. - •
|1*%**J Vol**"*
_ !
laai
n't | r w n «-.. i
> J
>> 1
J
,..;.. J
FkUtarsc
ft. A
•<*•* i r UK
—
€MMH
3 Move the interactions that you want to include in the design from Available
Terms to Selected Terms using the arrow buttons
1. to move the interactions one at a time, highlight an interaction, then click or
MKtgnftGMr*
l i e . ufti l l m i j f j
-4-+
|p*etr<T | K » B » |Lrt**i TkloMi
1
This option Is only
available when
you have ,i -^ Sit**! f * i«t
Dummy
1 4 •..'")
L •-'•>.-'; --i
I \1 I . : 1 1 : - I I
L'...2'-: --I?
L \<. l4\.
Uf> i V :•
1
L^l.r : -'I
N u m b e ' of level-"
L I * ,2' V) I I-7
II -;I2,
L : :6 2 l-l I 2-12
Designs 2 4
L8i244') 1-4 1
LI6«2,24') 2-\2 1
LI6-;2°4J) 1-6 ?•
An L16 (28 81) design can have from one to eight factors with two levels and one
factor with eight levels.
Number of levels
Design I level 6 level
L 18(3*6') 1-6 1
•• Ma uiijtal ImAif
f Sptclfr fcv oaiimir I
a*.
3.lf you have a signal factor, choose Specify by column and enter the column that
contains the signal factor levels. Click OK.
Modifying Designs
After creating a Taguchi design and storing it in the worksheet, you can use Modify,
Design to make the following modifications:
• rename the factors and change the factor levels for the control factors in the
inner array
• add a signal factor to a static design.
• ignore the signal factor (treat the design as static)
• add new levels to the signal factor in an existing dynamic design—see Adding
new levels to the signal factor.
• By default, MINITAB will replace the current design with the modified design.
To store the modified design in a new worksheet, check Put modified design
in a new worksheet in the Modify Design dialog box.
Renaming factors and changing factor levels
> To rename factors or change factor levels
1. Choose Stat => DOE ==> Modify Design.
i.-i, I Spc-ir* I
""', 1 «-™^;!!xJ " ! : ™ . .
,ir ->—rrr
3 Under Name, click in the first row and type the name of the first factor. Then, use
the LL key to move down the column and enter the remaining factor names.
4 Under Level Values, click in the first row and type the levels of the first factor.
Then, use the LL key to move down the column and enter the remaining levels. Click
OK in each dialog box.
Adding a signal factor to an existing static design
When you add a signal factor to an existing static design, MINITAB adds a new
signal factor column after the factor columns and appends new rows (replicates) to
the end of the existing worksheet. For example, if you add a signal factor with 2
levels to an existing L4 (23) array, 4 rows (1 replicate of 4 runs) are added to the
worksheet; if you add a signal factor with 3 levels, 8 rows (2 replicates of 4 runs) are
added to the worksheet. A replicate is the complete set of runs from the initial
design.
1 1 2 1 1 2
1 7
1 2 2
2 1 2 2 1 2
2 2 2 2 2 2
1 1 3
I 2 3
2 1 3
2 2 3
|bseel V-5l*e*
i
r." -
Hrlp J !!
k
m CSVCPI
3 If you like, in the signal factor table under Name, click in the first row and type the
name of the signal factor.
4 Under Level Values, enter the levels of the signal factor. You must enter at least
two distinct values. Click OK.
Ignoring the signal factor
You can choose to ignore the signal factor in a dynamic design and thus treat the
design as static.
> To ignore the signal factor
1 Choose Stat a DOE a Modify Design.
2 Choose Modify signal factor. Click Specify.
i II i mm^ammmmmim |
"mill .<• '
HH> | [ BC ] CUWW |
3 Select Ignore signal factor (treat as non-dynamic). Click OK in each dialog box.
Adding new levels to the signal factor
Displaying Designs
After you create the design, you can use Display Design to change the way the
design points are stored in the worksheet. You can display the factor levels in coded
or uncoded form. If you assigned factor levels in Factors subdialog box, the uncoded
(actual) factor levels are initially displayed in the worksheet. If you did not assign
factor levels (used the default factor levels, which are 1, 2, 3, ...), the coded and
uncoded units are the same.
To change the units for the factors
1 Choose Stat => DOE=> Display Design.
l*illota«Utk»s:
- cofetiium
C &a>M ntoi
S t e p I: M i n i m i z e variation
• f i n d f o t t o r settings t h a t m i n i m i z e t h
effects of noise o n t h e response
• variation minimized
• process n o t o n target 1 1
J \.1 —
Lower T.IK|*I Up pel
A scaling factor is a factor in which the mean and standard deviation are
proportional. You can identify scaling factors by examining the response tables for
each control factor. A scaling factor has a significant effect on the mean with a
relatively small effect on signal-to-noise ratio. This indicates that the mean and
standard deviation scale together. Thus, you can use the scaling factor to adjust the
mean on target but not affect the S/N ratio.
Use main effects plots to help you visualize the relative value of the effects of
different factors. Recall, the inner array represents the control factors. There are two
noise conditions in the outer array (Noise 1 and Noise 2). There are two
responses—one for each noise condition—in the outer array for each run in the
inner array. You can have 1 response column if you are using the Larger is Better or
Smaller is Better signal-to-noise ratio and you are not going to analyze or store the
standard deviation.
If you have a design and response data in your worksheet that was
• created using Minitab session commands,
• entered directly in the Data window,
• imported from a data file,
• created using as another design type in Minitab,
I PBHUW.,. I £nrm„, |
Help | | flK | Cmri j
Options
Graphs sub dialog box
n for static designs, display main effects plots and selected interaction plots for the
signal-to-noise (S/N) ratios, the process means, and/or the process standard
deviations for dynamic designs, display main effects plots and selected interaction
plots for the S/N ratios, the slopes, and/or the process standard deviations. Also,
display scatter plots with fitted lines.
n display interaction plots for selected interactions. Display the interaction plots in a
matrix on a single graph or to display each interaction plot on a separate.
Tables sub-dialog box
• for static designs, display response tables for signal-to-noise ratios, the means,
and the standard deviations.
• for dynamic designs, display response tables for signal-to-noise ratios, the slopes,
and the standard deviations
Options sub dialog box
• for static designs, choose the signal-to-noise (S/N) ratio that is consistent with
your goal and data.
• for dynamic designs, enter a response reference value and a signal reference
value for the fitted line or choose to fit the line with no fixed reference point.
• use natural logs in graphs and tables for standard deviations
! - • • ! « . : -
2 Under Generate plots of main effects and selected interactions for check
Signal-to-noise ratios, Means (for static design) or Slopes (for dynamic
design), and/or Standard deviations. Click OK.
Selecting terms for the interaction plots
ktni*f**i rVlst:
# Qfeplfty Mew*** |»IIM M a n t * h H » sS*§fe MI I,»II
I'll IX >
3 Move the interactions that you want to include in the plot from Available Terms to
Selected Terms using the arrow buttons.
• to move the interactions one at a time, highlight an interaction, then click or
D|
• to move all of the interactions, click on —J - - ' J . You can also move an
interaction by double-clicking it. The available terms in the Interactions subdialog
box list the interactions available to plot. The second factor in the term (B in AB) is
used as the horizontal scale for the plot. Thus, you can view the AB interaction
both ways by selecting both AB and BA.
Displaying response tables
You can display response tables for signal-to-noise (S/N) ratios, means (static
designs), slopes (dynamic designs), and/or standard deviations.
h To display response tables
1 In the Analyze Taguchi Design dialog box, click Tables.
P^ignlliNiiHi*)
P Mtmii. U biuret
S/N=.10f1og(I(l/Y2)/n»
Not £ The Nominal is Best idef 0 LI It 1S/N ratio is flood for anahzing or ide -itifymciscalinci factors,
which .ire factors in win : h t l e mean and standard deviation vaiy >roportionaHy Scaling
factors con be used to .1 :l|ust the mean on target w i t h o u t aftectin- 1 S/N ratios
F-mmrwrmw
SigpLlI H) ItoSsn Rl*« funwihi
f~ l H * » K « r n n -•m.»ffiiMi|i|Y*'?p|
r MiMiMiiibett •tttiHhra
»IrtrnSmi M !>•« io-i«»(rtB»i~«)f»"?i
r SmathrKhrHK -vnttumtfim
r Vhf M i l ib araplw »td hrtte-s liw 5ta»*8«4 <irvt»i<w*f»
2 Under Signal-to-Noise Ratio, choose the S/N ratio that best fits the goals of the
design. Choose from one of the following:
• Larger is better
• Nominal is best
• Nominal is best
• Smaller is better
3 Click OK.
Analyzing dynamic designs
i:> • <• i !• r - i i u t v * l U £ •{
• < * • f<
r f nftn«BwMh no feci* roliwm ptIM
HH,i j QK | CwrfrtJ
The response tables show the average of the selected characteristic for each level
of the factors. The response tables include ranks based on Delta statistics, which
compare the relative magnitude of effects. The Delta statistic is the highest average
for each factor minus the lowest average for each factor. Ranks are assigned based
on Delta values; rank 1 is assigned to the highest Delta value, rank 2 to the second
highest Delta value, and so on. The main effects plot provide a graph of the
averages in the response table.
Data
In order to predict results, you need to have
• created and stored the design using Create Taguchi Design or created a
design from data already in the worksheet with Define Custom Taguchi Design and
*V r iM •..1 1
/- V :.l|
P siput hi &*r*r mi.. P % • • ! to HMie i.lk.
(7 Slwtor* ilnvMttn
17 N>IU»ll<l«.«<ull>MM*:vlili<a P Hum il In* * a i i M M tcvlMia
5 Click Levels.
i.Trriiir'xinr.i
. t.l 1/ Ii.i'-. It.
I 4.*III!?4 m i l '
I M|
References
[3.1] G.S. Peace (1993). Taguchi Methods. Addison-Wesley Publishing Company.
[3.2] J.H. Lochner and J.E. Matar (1990). Designing for Quality. ASQC Quality
Press.
[3.3] W. Y. Fowlkes and C M . Creveling (1995). Engineering Methods for Robust
Product Design. Addison-Wesley Publishing Company.
[3.4] S.H. Park (1996). Robust Design and Analysis for Quality Engineering.
Chapman & Hall.
[3.5] M.S. Phadke (1989). Quality Engineering Using Robust Design. Prentice-Hall.
I. Opening PSpice
HI. Probe
A. AC Sweep
B. DC Sweep
C. Bias Point Detail
D. Parametric
E. Sensitivity
F. Temperature
G. Digital Setup
H. Transient
Note 1: There are other options, but these are the most useful ones.
Note 2: The Monte Carlo analysis was left out due to it's incredible depth. In
general PSpice will take a statistical look at a component while randomly
altering other values in the circuit, see references for pages that introduce this
method.
V. Types of Sources
A. Voltage Sources
i. VDC
ii. VAC
'Hi. VSIN
iv. VPULSE
v. PWL
B. Current Sources
I. Opening PSpice:
189
Appendix-ll: Circuit Simulation using PSpice
• Find PSpice on the C-Drive. Open Schematics or you can go to PSpice
• The first thing that you have to do is get some or all of the parts you need.
• This can be done by
P a r i Browser Basic
Part Name:
Description:
resistor
Close
R_var
RAMSKxl break
RAM8Kx3break Place
R break
readme Place & Close
ROM32KX8break
S break
SIN Help
SOFTLIM
SORT
STIM1
STIM16 Libraries..
STIM4
STIM8
SUM Advanced > >
Sw tClose
Full List
190
Appendix-ll: Circuit Simulation using PSpice
o GND_ANALOG or GND_EARTH - this is very important, you
MUST have a ground in your circuit
o VAC and VDC
• Upon selecting your parts, click on the place button then click where you
want it placed (somewhere on the white page with the blue dots). Don't
worry about putting it in exactly the right place, it can always be moved
later.
• Once you have all the parts you think you need, close that box. You can
always open it again later if you need more or different parts.
• You should have most of the parts that you need at this point.
• Now, all you do is put them in the places that make the most sense
(usually a rectangle works well for simple circuits). Just select the part and
drag it where you want it.
• To rotate parts so that they will fit in you circuit nicely, click on the part and
press "Ctrl+R" (or Edit "Rotate"). To flip them, press "Ctrl+F" (or Edit
"Flip").
• If you have any parts left over, just select them and press "Delete".
• Now that your parts are arranged well, you'll have to attach them with
wires.
• Go up to the tool bar and
191
Appendix-ll: Circuit Simulation using PSpice
• If you want to make a node (to make a wire go more then one place), click
somewhere on the wire and then click to the part (or the other wire). Or
you can go from the part to the wire.
• To get rid of the pencil, right click.
• If you end up with extra dots near your parts, you probably have an extra
wire, select this short wire (it will turn red), then press "Delete".
• If the wire doesn't go the way you want (it doesn't look the way you want),
you can make extra bends in it by clicking in different places on the way
(each click will form a corner).
• You probably don't want to keep the names C1, C2 etc., especially if you
didn't put the parts in the most logical order. To change the name, double
click on the present name (C1, or R1 or whatever your part is), then a box
will pop up (Edit Reference Designator). In the top window, you can type
in the name you want the part to have.
OK Cancel
• Please note that if you double click on the part or its value, a different box
will appear.
• If you only want to change the value of the part (if you don't want all your
resistors to be 1K ohms), you can double click on the present value and a
192
Appendix-ll: Circuit Simulation using PSpice
box called "Set Attribute Value" will appear. Type in the new value and
press OK. Use u for micro as in uF = microFarad.
Cancel
• If you double click on the part itself, you can select VALUE and change it
in this box.
VI PartName: vdc X
Name Value
REFDES = VI SaveAttr ]
" REFDES=V1
TEMPLATE =V@REFDES %+ %• @DC
DC=0v'
SIMULATIONONLY=
PAR T= vdc
MODEL=
PKGREF=V1
• This is very important. You cannot do any simulation on the circuit if you
don't have a ground. If you aren't sure where to put it, place it near the
negative side of your voltage source.
• These are important if you want to measure the voltage at a point or the
current going through that point.
• To add voltage or current bubbles, go to the right side of the top tool bar
193
Appendix-ll: Circuit Simulation using PSpice
get either of these, go to "Markers" and either "Voltage/Level Marker" or
"Current Marker".
H. Saving:
I Hi
• To save the circuit, click on the save button U^Jon the tool bar (or any
I. Printing:
• To print, you must first use your mouse to make a rectangle around your
circuit, this is the area of the page that will be printed. Then select print as
usual. (You can select E J ).
III. Probe:
• Click on the Simulate button on the tool bar lM±U(or Analysis, Simulate, or
F11).
• It will check to make sure you don't have any errors. If you do have errors,
correct them.
• Then a new window will pop up. Here is where you can do your graphs.
C. Graphing:
194
Appendix-ll: Circuit Simulation using PSpice
If you don't have any errors, you should get a window with a black
background to pop up (even with errors, it will be OrCAD PSpice A/D
Demo).
If you did have errors, in the bottom, left hand side, it will say what your
errors were (these may be difficult to understand, so go To "View - Output
File").
D. Adding/Deleting Traces:
• PSpice will automatically put some traces in. You will probably want to
change them.
• Go to Trace - Add Trace or ±non the toolbar. Then select all the traces
you want.
• To delete traces, select them on the bottom of the graph and push Delete.
E. Doing Math:
• In Add Traces, there are functions that can be performed, these will
add/subtract (or whatever you chose) the lines together.
I A d d Traces
Simulation Output Variables Functions or Macros
^^H
Analog Operators and Functions _^J
r """^^^^•_^_ W Analog u — n
V(0)
V[C1:1)
o
V(C1:2)
r +
—
V(C2 II
W Voltages
VIC2 2) /
V[R1:1) -
I Currents
V[R1:2) .At:SI l
V|R2:1) ARCTAN()
V|R2:2)
r ATANII
V(IJ2:+) AVG()
l ^ Alias flames
V(U2:-) AVGX(.)
V(U2:0UT) IMS | |
W Subcircuit Nodes
v'(U2:V+) DO
VIU2:V-) DB[)
VIV3:+) ENVMAXj,)
Vfv'3:-) ENVMIN(.)
vjva+) EXPO
V(V5:-) GO
VfVS:+) IMG()
V|VS:-) LOGO
V(Vin) L0G10O
107 variables listed
V(Vout) MO
V(X_U2.x_lm741.6) 2 MAX()
I Full List
i
Trace Expression: \j OK Cancel He)p I
195
Appendix-ll: Circuit Simulation using PSpice
• Select the first output then either on your keyboard or on the right side,
click the function that you wish to perform.
• There are many functions here that may or may not be useful. If you want
to know how to use them, you can use PSpice's Help Menu.
• It is interesting to note that you can plot the phase of a value by using
IP(xx), where xx is the name of the source you wish to see the phase for.
G. Finding Points:
• There are Cursor buttons that allow you to find the maximum or minimum
or just a point on the line. These are located on the toolbar (to the right).
• Select which curve you want to look at and then select "Toggle Cursor"
• Then you can find the max, min, the slope, or the relative max or min ( l ^ \ l
is find relative max).
H. Saving:
• To save your probe you need to go into the tools menu and click display,
this will open up a menu which will allow you to name the probe file and
choose where to save it. You can also open previously saved plots from
here as well.
I. Printing:
196
Appendix-ll: Circuit Simulation using PSpice
Analysis Setup x|
E nabled Enabled
r DC Sweep... I
r Temperature...
Digital Setup...
A. AC Sweep
• The AC sweep allows you to plot magnitude versus frequency for different
inputs in your circuit. In the AC sweep menu you have the choice of three
types of analysis:
• Linear,
• Octave and
• Decade.
• These three choices describe the X-axis scaling which will be produced in
probe. For example, if you choose decade then a sample of your X-axis
might be 10Hz, 1kHz, 100kHz, 10MHz, etc.... Therefore if you want to see
how your circuit reacts over a very large range of frequencies choose the
decade option.
• You now have to specify at how many points you want PSpice to calculate
frequencies, and what the start and end frequency will be. That is, over
what range of frequencies do you want to simulate your circuit.
• In the AC sweep you also have the option of Noise enable in which
PSpice will simulate noise for you either on the output or the input of the
circuit. These noise calculations are performed at each frequency step
and can be plotted in probe.
• The two types of noise are:
o V(ONOISE) for noise on the outputs and
l<)7
Appendix-ll: Circuit Simulation using PSpice
o V(INOISE) for noise on the input source.
• To use input noise you need to tell PSpice where you consider the 'input'
in your circuit to be, for example, if your voltage source is labelled 'V1'.
• Finally you need to specify in what interval you want the noise to be
calculated (note: the default interval for spice is zero, i.e.: no noise will be
calculated).
B. DC Sweep
you need to specify a start value, an end value, and the number of
points you wish to calculate.
• For example you can sweep your circuit over a voltage range from 0 to 12
volts. The main two sweeps that will be most important to us at this stage
are the voltage sweep and the current sweep. For these two, you need to
indicate to PSpice what component you wish to sweep, for example V1 or
V2.
• Another excellent feature of the DC sweep in PSpice, is the ability to do a
nested sweep.
• A nested sweep allows you to run two simultaneous sweeps to see how
changes in two different DC sources will affect your circuit.
• Once you've filled in the main sweep menu, click on the nested sweep
button and choose the second type of source to sweep and name it, also
specifying the start and end values. (Note: In some versions of PSpice you
need to click on enable nested sweep). Again you can choose Linear,
Octave or Decade, but also you can indicate your own list of values,
example: 1V 10V 20V. DO NOT separate the values with commas.
198
Appendix-ll: Circuit Simulation using PSpice
C. Bias Point Detail
• This is a simple, but incredibly useful sweep. It will not launch Probe and
so give you nothing to plot. But by clicking on enable bias current
display or enable bias voltage display, this will indicate the voltage and
current at certain points within the circuit.
D. Parametric
199
Appendix-ll: Circuit Simulation using PSpice
E. Sensitivity
F. Temperature
PSpice has a user-friendly interface to show the results of the simulations. Once the
simulation is finished a Probe window will open.
200
Appendix-ll: Circuit Simulation using PSpice
1. From the TRACE menu select ADD TRACE and select the voltages and
current you like to display. In our case we'll add V(out) and V(in). Click OK.
2. You can also add traces using the "Voltage Markers" in the schematic. From
the PSPICE menu select MARKERS/VOLTAGE LEVELS. Place the makers on
the Out and In node. When done, right click and select End Mode.
Add T faces
Simulation Output Variables Functions or Macros
KC1) V Analog
1(11]
l(R1)
l(R2)
r
1(V1) V Voltages
V(0]
V(C1:1) V Currents
(51
V(C1:2) ABS|)
V(I1:+) V Power ARCTANI.)
'.,'(11 ATAN()
AVG()
(OUT)
r • AVGK( . )
VIR11] v Alias Names C0S()
V(R1:2) DO
V(R2:1) DB()
V(R2:2) ENVMAX(. ]
VtV1:+) ENVMINI .)
V(V1:-J EXP()
V1(C1) G()
V1(I1) IMG{)
V1(R1) LOG( |
V1(R2) LOG10I I
Vlfvl] 34 variables listed M( J
V2(C1) MAX()
Full List
201
Appendix-ll: Circuit Simulation using PSpice
G. Digital Setup
• This paragraph will only indicate the features of the digital setup
analysis menu, see below for a more complete description.
• In addition to letting you simulate analog circuits, PSpice provides a n i
of digital parts that can be used in a homogeneous digital circuit
heterogeneous analog/digital combination. The digital analysis option a
you to specify the timing of your circuit, by running the gates at
minimum, maximum and typical values. A superb feature allows you to
the worst case timing of your circuit to see how it will operate under tht
extreme conditions. You also have the option of setting the value of any
flops you have in your circuit to predefined states which is good to Simula
any startup conditions for finite state machines that you are simulating.
o print step
o final time.
• The ratio of final time: print step determines how many calculations
PSpice must make to plot a wave form. PSpice always defaults the start
time to zero seconds and going until it reaches the user defined final time
It is incredibly important that you think about what print step you should
use before running the simulation, if you make the print step too small the
probe screen will be cluttered with unnecessary points making it hard to
read, and taking extreme amounts of time for PSpice to calculate
However, at the opposite side of that coin is the problem that if you set the
print step too high you might miss important phenomenon that are
occurring over very short periods of time in the circuit. Therefore play with
step time to see what works best for your circuit.
• You can set a step ceiling which will limit the size of each interval, thus
increasing calculation speed. Another handy feature is the Fourier
202
AnnfinHiv-ll- Cirmit Simulation usinn PSnire
analysis, which allows you to specify your fundamental frequency and the
number of harmonics you wish to see on the plot. PSpice defaults to the
9th harmonic unless you specify otherwise, but this still will allow you to
decompose a square wave to see it's components with sufficient detail.
V. Types of Sources
A. Voltage Sources
i. VDC
ii. VAC
iii. VSIN
203
Appendix-ll: Circuit Simulation using PSpice
.» . •
uaUi.»>ii.iMliafriii.M
Name V :lll.C
r, Save Mb
'F these values Ch sngc Display
AC = 10v
VOFF ilv Offset Voltage ",.--' y"
VAMPI 14.14V
1 HI i) :'nril Frequency m H i
r i i ii
•
1
I'HAlil II
iv. VPULSE
204
Appetflix-ll: Circuit Simulation using PSpice
never be used in a frequency response study because PSpice
assumes it is in the time domain, and therefore your probe plot
will give you inaccurate results.
• DC the DC component of the wave.
• AC the AC component of the wave.
• V1 is the value when the pulse is not "on." So
for a square wave, the value when the wave is
'low'. This can be zero or negative as required.
For a pulsed current source, the units would be
"amps" instead of "volts."
> V2 is the value when the pulse is fully turned
'on'. This can also be zero or negative.
(Obviously, V1 and V2 should not be equal.)
Again, the units would be "amps" if this were a
current pulse.
• TD is the time delay. The default units are
seconds. The time delay may be zero, but not
negative.
• TR is the rise time of the pulse. PSpice allows
this value to be zero, but zero rise time may
cause convergence problems in some transient
analysis simulations. The default units are
seconds.
» TF is the fall time in seconds of the pulse.
• TW is the pulse width. This is the time in
seconds that the pulse is fully on.
• PER is the period and is the total time in
seconds of the pulse.
o This is a very important source for us because we do a lot of
work on with the square wave on the wave generator to see
how various components and circuits respond to it.
205
Appendix-ll: Circuit Simulation using PSpice
o The PWL source is a Piece Wise Linear function that you can use
to create a wave form consisting of straight line segments drawn by
linear interpolation between points that you define. Since you can
use as many points as you want, you can create a very complex
wave form This source type can be a voltage source or a current
source.
o The syntax for this source type is flexible and has several optional
parameters. The required parameters are two-dimensional points
consisting of a time value and a voltage (or current) value. There
can be many of these data pairs, but the time values must be in
ascending order, and the intervals between time values need not
be regular.
o The two optional parameters are "DC" and "AC." The use of an AC
parameter with this source is not very well documented and
because this source is intended for use with a transient analysis
any AC value would be ignored.
B. Current Sources
• For any of the previous discussed voltage sources, there exist the exact
source except that they produce current. There is one thing that should be
mentioned; current sources in PSpice get a little confusing. For those
current sources whose circuit symbol has an arrow, you have to point the
arrow in the direction of conventionally flowing current. This applies to all
current sources, including AC and DC. Therefore placing the current
source in the circuit backwards with seemingly incorrect polarities will give
the correct results.
• An interesting little feature under the markers menu is the ability to add
markers to your circuit so you can see where the current and voltage have
imaginary values in the circuit, and the phase of your source at any point
in the circuit.
206
Appendix-ll: Circuit Simulation using PSpice
• PSpice can simulate digital circuits and Probe can output a timing diagram
showing the relationship between all the signals propagating in the circuit.
The following will be a brief introduction to digital analysis using PSpice,
you should consult the online PSpice manual if you are unsure about any
of the following properties.
• The evaluation version of PSpice provides many of the common digital
parts that we use in the lab exercises these include, but are not limited to,
o counters,
o multiplexers,
o decoders,
o flip-flops,
o latches,
o all common gates,
o buffers, .
o adders and a lot more.
. To begin, create a digital circuit the same way you would create an analog
one by getting and placing the parts (see above for details on creating a
circuit).
. Now instead of an analog voltage source you want to place digital stimuli,
these are located in the parts menu as HI and LO.
. Draw wires connecting the parts like usual, but whenever you have an
output of a gate that would be an output to your circuit you need to
terminate it with a block.
• You can add these blocks to your circuit. On the tool bar there is a button
labelled Add Block; connect this block to any output signal of your circuit.
. Then run a bias point analysis and click on the button to see the enable
voltage bias display, to see the logic level on each of your lines.
. You can run a transient analysis at this point and plot the signals, but they
will just be straight lines, showing the logic level of each signal. However a
digital circuit that remains in a constant state all the time is of little
interesting. Eventually, you are going to encounter a circuit that needs to
be stimulated with a clock pulse.
207
Appendix-ll: Circuit Simulation using PSpice
To add a time varying 'clock pulse' to your circuit, enter the parts menu
and get a part labelled STIM1 and place that as the input to a device.
Double click on the STIM1 to open up a dialogue box that looks like this:
and fill it in with the Time Step that you want your 'clock' to have.
This Time Step value is the your 'clock' pulse. There are various
ways you can fill out the command prompts, one way is to do it as
shown in the picture, however here are some simple commands
that will allow you to do a range of simulations:
208
Appendix-ll: Circuit Simulation using PSpice
and simulate again. When you are running the transient analysis, don't
forget to change your print step and the final time so you will actually be
able to see the results.
• If your digital circuit contains a counter, or decoder or some other device
with many outputs that are all going to a single destination, instead of
drawing many individual signal lines from each source to the proper
destination you can use a bus. In the draw menu at the top of the screen
is an option for drawing a bus which is a thick wire able to carry many
separate signals to a single place. The order in which the signals go on
the bus is the order in which they come off at the destination.
1. This page is not very in-depth, but it covers a lot of good concepts.
http://www.home.clc.cc.il.us/home/eng516/pspice.htm#introintro
Note:AII pictures and screen shots came from OrCAD/ PSpice evaluation
version 9.2
209
Appendix-ll: Circuit Simulation using PSpice