04 - Electronic Circuit Simulation - Part 3

Download as pdf or txt
Download as pdf or txt
You are on page 1of 23

ELECTRONIC CIRCUIT

SIMULATION – PART 3
BY AMAL NISHANTHA PATTIVIDANA

Version : 1.1
Last Updated on : 2017-07-31
ADVANCE FEATURES OF ORCAD CAPTURE

• Secondary sweeps
• Parametric Sweep
• Performance Analysis
• Custom x axis
SECONDARY DC SWEEP

• When you need to sweep secondary DC source, you can use


secondary sweep feature.
• Here you must do a primary DC sweep with a any DC source
and then you can select a secondary source also.
TRANSISTOR CHARACTERISTIC CURVE

• Add BC107A Transistor, Voltage Source (Vdc), Current


Source(Idc) and draw the schematic diagram of the circuit
• Put the ground, and create a simulation profile for a DC Sweep
• The Primary sweep parameters are as follow
SECONDARY SWEEP
• Here we do primary sweep for
each value of the secondary
sweep
• We do primary sweep for each Ib
values. then Ib values should be
selected as secondary sweep.
• In this example, our secondary
sweep is DC current source
• Here we can see Ic-Vce graphs for each Ib values in secondary
sweep
PARAMETRIC SWEEP

• Parametric Sweep is also available under main simulations.


• Here we are talking about sweeping a global parameter(s) of
the circuit.
• If you need to study main simulation behaviors for several
values of global parameters you can select this type of sweep.
PARAMETRIC SWEEP CONT.…
• You have special type of component called
param under Special library.
• This component is like a variable
• So you can assign this variable (Component) into
any parameter in your circuit
• When you assign the value of this component to
any parameter, you have to put component
name with curly brackets {name}. Then the
parameter will replace its value.
ADD PARAMETERS TO COMPONENT

• Double click on the Parameters: component


and then you can add the properties to the
parameter.
• Click on New Property Button
• Then you can type a property name and its
initial value
• Here you can select any meaning full name and
it will use as the property name in your
simulation.
• The initial value is not essential and its value is
depend on property that you are going to
replace with this variable property. (Eg: if you
replace it with a resistance value, it may be 10Ω
ASSIGN PROPERTIES
• If you need you can set
display settings by write
click on the new value
• Here you can assign this
property into any
property of your circuit.
• The assigned value must
be in curly brackets and it
should be the name of
newly created parameter.

Note : You can assign one property into more than one properties in your circuit.
SIMULATION PROFILE
• Here we should select primary sweep
first
1
• Then we can select parametric sweep
and its parameters.
• The parameter name should be the
property name you created in earlier
stage. (Without curly bracket)
• Then you can simulate this also.
• Here primary sweep will be run for
each value of parametric sweep. 2
• Then after running above
simulation you will ask to
select primary sweeps, then
you can select all sweeps or
part of them to plot.

• Then you can see primary


sweep plots for each
selected values in your
parametric sweep.
PERFORMANCE ANALYSIS

• Performance analysis is the next part of parametric sweep


• It is used to analyze the behaviors of the circuit when its
parameter is varying.
• Additionally we can use this feature to back calculate unknown
component values
SIMULATION PROFILE

• Here we have used above circuit. And we


going to analysis the behavior of the
circuit when the resister value is
changed.
• Finally we can find the unknown resister
value for a given frequency.
• We reduced the no. of points in primary
sweep to reduce simulation time.
• Because it will calculate the no. points in
primary sweep x no. of pointes in
parametric sweep
• Then we can find 100 primary sweeps for each value of
parametric sweep. So we select all the sweeps and get the
graph.
• This procedure is same as previous simulation. the deference is
we have increased the numbers of points in parametric sweep.
PERFORMANCE ANALYSIS

• Now we can find the performance analysis tool in tool bar


• Then after clicking on it, The new plot window will be added
automatically. We can see the x axis is also appeared as our swept
parameter.
• So we can add the traces into this plot same as normal plot.
• However here we have 100 traces for given x value. and that is not a
exact value. So we need to use measurements and select one exact
value from each plot for y axis. (Ex. We can get the cutoff frequency
from each trace and plot the new trace with cutoff frequency and
resistance)
PERFORMANCE ANALYSIS CONT.…..
• Now we are going to add new
trace to the plot
• Since our circuit is a low pass
filter, we can measure the 3dB
Cutoff frequency of each graph
and plot it.
• The parameter of the
measurement should be the
gain. (Vout/Vin)
• Finally you can find the values using cursor function. For any
operation, The correct trace or plot should be selected.
CUSTOM X-AXIS

• In some analysis, you may need to change x-axis also.


• For this, you can simply double click on the x-axis and then
select the Axis variable… button
• Then you can select your required x-axis parameter or function
as you change the y-axis
• And also you can select some other parameters and settings
also
MORE ADVANCE SIMULATION OPTION

• Lot of simulation options are available in OrCAD capture


software. Here we have talked about few of most essential
options. You can study and check more options and features.
• And some features may be version dependent features. How
ever most basic features are same. There may be small
difference in icons, images and some other feathers.
END…!!!

You might also like