Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Open a word document (this will be your lab report) Create a new project in PSpice/Cadence Enter the following Schematic
R 7 R 1 1 0 V d c 1 V a c T R A N V = 1 k R 2 2 K R 6 3 K R 0 6 1 K R V o 3 . 2 K R 2 5 . 2 + V R 5 K 4 7
. 6
1) 2) 3) 4) 5)
From the main menu select: PSpice->Create Netlist From the main menu select: PSpice->View Netlist Copy the netlist: select it, hit <ctrl>C Paste this netlist into your word document <ctrl>V Determine the name of the net indicated with the arrow below
R 7 R 1 k R 2 2 K R 6 3 K R 0 6 1 K R V o 3 . 2 K R 2 5 . 2 + V R 5 K 4 7
1 0 V d c 1 V a c T R A N
V =
. 6
Page 1 of 11
ECE 109L
B. OLSON
1) From your main Menu: PSpice->New Simulation Profile 2) Enter a name in the resulting pop-up menu. Hit - <Create>
3) The menu below will appear 4) Select Bias Point as an analysis type. Hit <OK> to close the menu.
5) To run the bias point simulation From the main menu: PSpice->Run
6) An empty plotting window will appear. Close this window. To Display Bias Voltage, Currents and Power on your Schematic
1) You can enable (or disable) the bias point (a.k.a operating point) to be displayed on the
schematic. You can display currents(I) , voltages (V) and Power (W) separately or together. To enable/or disable the display of bias point data use the icons on the toolbar at the top of your schematic window (see below). These icons toggle the display so they can also be used to disable the display of this data.
Page 2 of 11
ECE 109L
B. OLSON
2) Determine Vo and the voltage across resistor R5 and include this in your lab write-up 3) Display the bias point currents on you schematic. 4) Select your schematic 5) Hit <ctrl>-C to copy to the clipboard 6) In your Word document hit <ctrl>-V to paste the contents of your clipboard
DC Sweep of a Voltage
In this section we will Perform a DC sweep Include markers (also called probes) on your schematic for easy plotting Plot the results of a DC sweep Cut and Paste a plot into a Word document Determine the exact value of an output variable using cursers.
Perform a DC Sweep Simulation and including markers (or probes) We will use the schematic from the bias point simulation. Note the name of the Voltage source is V1. To make plotting easier we have named the nets (or nodes) N1-N3 and Vo.
N 1 R 7 R 1 1 0 V d c 1 V a c T R A N V = 1 k R 2 2 K R 6 3 K R 0 6 N 2 . 6 K 3 1 K R V o 3 . 2 K R 2 5 . 2 + V R 5 K 4 7 N 2
1) Place a voltage maker at node Vo using the Place voltage marker Icon (V) on the top toolbar
(see below). Note you can also place current markers (I) and Voltage difference(+, -) markers. After the simulation is performed this voltage indicated with a marker will automatically be plotted (This can save time.) This feature is buggy with PSpice. Dont worry if it is not working
Page 3 of 11
ECE 109L
B. OLSON
Page 4 of 11
ECE 109L
B. OLSON
2) To specify the DC sweep you can create a new simulation or edit the existing one. We will do
the latter. From the main menu: PSpice->Edit Simulation Profile. 3) The menu shown below will appear. 4) Select DC sweep as an analysis type 5) Make sure that voltage source is checked 6) Remember the name of our voltage source is V1 (Look on your schematic. Yours may be different) 7) Enter Start, End and Increment voltage values for the voltage source that you are sweeping. 8) Hit <OK> to close the menu.
Page 5 of 11
ECE 109L
B. OLSON
Plotting the Results of a DC Voltage Sweep and including the results in a word document After your simulation is complete you will see a window with Vo plotted vs V1. In this environment, you can plot voltages, currents and functions of voltages and currents
1) From the main menu in this plotting environment. Select: Trace-> Add Trace
2) On the left are all the voltages and currents that can be selected for plotting. On the right are functions that can be performed on the simulated data. The output variables are well named I(R1) refers to the current going through resistor R1. V(N1) refers to the voltage at node N1. V(R1:2) refers to the voltage at terminal 2 of resistor R2.
3) Plot the voltage across resistor R5 along with the voltage Vo. (you may have to perform a function on two output variables to do this) 4) Include this plot in your lab-write up, from the plotting window: Window-> Copy to clipboard (make sure that change white to black radio button is selected in the resulting pop-up menu). At this time the plot will be pasted in your clipboard. 5) Hit <OK> to close the pop-up menu 6) To paste this plot. In your Word document hit <ctrl> V
Page 6 of 11
ECE 109L
B. OLSON
Using Cursers You can use cursors to determine the exact voltage and current at a point in your simulation. There are two cursers. One is affiliated with your left mouse button and the other is affiliated with your right mouse button. 1) To use the left mouse curser: at the bottom of the window, left click on the icon for trace you area interested in (see below). 2) Left click to place crosshairs on the simulation trace. This will cause the x and y valued to be displayed. 3) For the right mouse curser repeat the steps for the left mouse curser, only using your right mouse key. 4) The value for the left mouse cursor is shown as A1 in the probe curser window. The right mouse cursor is indicated as A2 and the difference between the left and right mouse cursers is shown as a difference.
5) For your lab write up, include the voltage value at Vo when the input voltage is 5.5 Volts
Page 7 of 11
ECE 109L
B. OLSON
Specifically, we will perform the DC sweep from the previous section three times, but each time we will use a different value for R5. To do this we will assign the value of the resistor R5 a variable called a parameter. Creating Parameters
P A R A M E T E
N
R
1
R 7 K
R 1 k V = 1
R V o
3 . 2 K R 2 2 K R 6 3 K R 0 6 N 2 . 6 K 3 R 5 { r e + V R 5 s } -
Variable
1) Change the resistor value of R5 to {res}. res is the variable. The curly brackets are necessary 2) To declare the variable place a part called param from the library special
3) Double click on the Param part to edit 4) In the resulting menu hit <New Column> 5) In the Add New Column menu, shown below, enter the name res and the value 10K 6) Hit <OK> to close the menu
7) Close the edit property menu 8) You are now ready to simulate this parameter
Page 8 of 11
ECE 109L
B. OLSON
Page 9 of 11
ECE 109L
B. OLSON
Transient Analysis
In this section we will Apply a sinusoidal waveform with a DC offset to our circuit and simulate the circuit as a function of time
N 1 R 7 R 1 k R 2 1 K R V
V
o 3 . 2 K R 2 R 6 N 3 5 . 2 + V R 5 K -
V V F
O A R
F M E
F P Q
= L
V = =
2 1
V 5 V 1 K
2 K
R 6
3 K
. 6
1) Change the value of resistor R5 back to 2.2K. 2) Replace the Voltage source with a Vsin part from the source library 3) Include this new schematic in your lab-write up 4) Initialize the Vsin part to produce a 1Khz sin wave with an amplitude of 5V and a DC offset of 1 volt Vin = 1+ 5sin(2 1000 t) Volts 5) Initialize the transient simulation, from the main menu: PSPice-> New Simulation Profile (note this time we are using new). Give the new simulation a name and hit <create> 6) In the resulting menu 7) Select Time Domain as an analysis type 8) Adjust the simulation to last for 2msec two periods 9) Hit <OK> to close the menu
Page 10 of 11
ECE 109L
B. OLSON
Lab Write up Your lab write up should be typed and in the standard format. Include the plots and information asked for above. Organize your lab report so I can follow it: Give titles. Dont just have a sea of pictures You do not have to answer and questions in your write up. Instead simulate the voltage divider that you built last week. Remember Vo = 3/5 Vin. (if you do not remember you resistor values you can design a new one) 1) Simulate Vo vs. Vin for Vo: 0 10V with an increment of .1 Volts a. Include a plot of your schematic b. Include a plot of Vo vs. Vin
R V in
2 + V o -
2) Add a load resistor to your circuit and assign its value a variable, say, {res}. a. Include this schematic in your write up b. Perform a DC sweep simulating RL from 0.1R2 to 2R2. c. Construct function to plot the power dissipated by the resistor as a function of R2. Include this plot in your schematic.
R V in = 5 V
2 R L { r e s }
Page 11 of 11
ECE 109L
B. OLSON