Lab1 - Pspce Tutorial and CS Amplifier
Lab1 - Pspce Tutorial and CS Amplifier
I. Opening PSpice
II. Drawing the circuit
A. Getting the Parts
B. Placing the Parts
C. Connecting the Circuit
D. Changing the Name of the Part
E. Changing the Value of the Part
F. Making Sure You Have a GND
G. Voltage and Current Bubbles
III. Probe
A. Before you do the Probe
B. To Start the Probe
C. Graphing
D. Adding/Deleting Traces
E. Finding Points
IV. Analysis Menu
A. DC Sweep
B. Bias Point Detail
C. Transient
V. Voltage Sources
A. VDC
B. VAC
C. VSIN
D. VPULSE
VI. Measuring DC Analysis
VII. Exercise
I. Opening PSpice
Find PSpice on the C-Drive. Open Schematics or you can go to PSpice A_D and then
click on the schematic icon .
You will see the window as shown in Figure 1.
Figure 1
Note that if you double click on the part or its value, a different box will appear.
E. Changing the Value of the Part
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 box called "Set
Attribute Value" will appear see Figure 4. Type in the new value and press OK. Use u
for micro as in uF = microFarad.
Figure 4
Figure 7
Figure 8
Figure 9
To open the analysis menu click on the button.
A. DC Sweep
The DC sweep allows you to do various different sweeps of your circuit to see how it
responds to various conditions.
For all the possible sweeps,
o voltage,
o current,
o temperature, and
o parameter and global
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.
Figure 10
The ratio of final time: print step (Keep print step at least 1/100th of the final time)
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 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. Probe
A. Before you do the Probe
You have to have your circuit properly drawn and saved.
There must not be any floating parts on your page (i.e. unattached devices).
You should make sure that all parts have the values that you want.
There are no extra wires.
It is very important that you have a ground on your circuit.
Make sure that you have done the Analysis Setup and that only the things you want
are enabled.
B. To Start the Probe:
Click on the Simulate button on the tool bar (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:
If you don't have any errors, you should get a window with a black background to pop
up.
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 on the toolbar. Then select all the traces you want.
To delete traces, select them on the bottom of the graph and push Delete.
E. 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 ( is find
relative max).
VI. Measuring DC Analysis
If you want to measure DC levels you can use two parts to view these levels. These
parts are placed on the schematic drawing the same way any other part is placed.
VIEWPOINT is a voltage viewing point, which will show the value after the circuit is
simulated. You place VIEWPOINT on a node. IPROBE is a current probe, which will
show the value after the circuit is simulated. You need to put this part between two
parts, so that current flowing in that branch can be measured. If you have
measurements that are time-varying (i.e. a sinusoid) then you need to run Probe.
VII. Exercise
Read Pspice Tutorial before you start this Session:
Parts to be used in the PSpice
Objective:
To study the properties of the common source MOSFET amplifier. The voltage gain, input
and output resistance will be calculated.
Components required:
1. N-channel MOSFET – 2N4351 (1)
2. Resistors - 5.6 KΩ, 10 KΩ, 100 KΩ, 1MΩ
3. Capacitor - 22 F (2)
Summary of theory:
The MOSFET structure has become the most important device structure in the electronics
industry. It dominates the integrated circuit technology in Very Large Scale Integrated (VLSI)
digital circuits based on n-channel MOSFETs and Complementary n-channel and pchannel
MOSFETs (CMOS). The technical importance of the MOSFET results from its low power
consumption, simple geometry, and small size, resulting in very high packing densities and
compatibility with VLSI manufacturing technology.
Two of the most popular configurations of small-signal MOSFET amplifiers are the common
source and common drain configurations. The common source circuit is shown in Figure 1. The
common source, like all MOSFET amplifiers, has the characteristic of high input impedance. High
input impedance is desirable to keep the amplifier from loading the signal source. This high input
impedance is controlled by the bias resistor RG (or bias resistors RG1 and RG2). Normally the
value of the bias resistor(s) is chosen as high as possible. However too big a value can cause a
significant voltage drop due to the gate leakage current. A large voltage drop is undesirable
because it can upset the bias point. For amplifier operation the MOSFET should be biased in the
saturated region of the characteristics.
The CS and CD MOSFET amplifiers can be compared to the CE and CC BJT amplifiers respectively.
Like the CE amplifier, the CS amplifier has a negative voltage gain and an output impedance
approximately equal to the drain resistor (collector resistor for the CE amplifier). The CD
amplifier is comparable to the CC amplifier with the characteristics of high input impedance, low
output impedance, and less than unity voltage gain.
PSPICE:
1. Verify all Prelab calculations using SPICE. Assume Vt = 1.5V, Kp = 0.05mA/V2, W = 30μm and
L = 3μm.
Note: To change Vt and Kp select the MOSFET (MbreaKN). This is done by singleclicking on the
transistor with the right mouse button. If it has been selected, it will turn red. Then, select
"Model" from the Edit Menu. The Edit Model dialog box will appear. This box states the name
of the part to be edited, along with three different methods to edit. We will select "Edit Model
Instance (Model Editor)", since we want to use the Model Editor. Click that button, and you
should get this error. This is just to inform us that if we change any of the parameters of the
MOSFET, the model will behave differently. This is exactly what we want, so click "Okay". You
should see the following:
2. Use SPICE TRAN analysis to find the maximum input voltage that can be amplified without
distortion. Vary the value of RD and notice the effect on the output. Can you find the optimum
value for RD that results in maximum symmetric output swing (clipping occurs on both sides).
1. DC analysis: Design the MOSFET CS amplifier circuit shown in Figure 1 using PSPICE.
Record the transistor voltages (VD, VG, VS) and drain current (ID). Make sure your
transistor is biased in the saturation mode for amplifier application. Compare all DC
results to your prelab calculations.
2. AC analysis: Apply a sine wave (20mV, 10 KHz). Observe both input and output signals
and the phase shift between input/output. Record the output voltage and compute the
voltage gain.
3. Increase the input amplitude until you observe clipping in the output. Plot and label the
clipped output. What is the maximum input that can be amplified without distortion
(clipping)?
4. Connect a 100 KΩ resistor between the voltage source and the coupling capacitor C1.
Measure the voltage gain and use the results from step 2 to deduce the amplifier input
resistance Rin.
5. Remove the load resistor RL, and measure the voltage gain, then deduce the amplifier
output resistance Ro.
Report writing:
a) Standard cover page with lab title and student information.
b) Objective of the lab and brief discussion of the procedure.
c) Compare all theoretical calculations and SPICE simulation.
d) Analyze point by point findings of the observation & report section (1 to 5)