0% found this document useful (0 votes)
71 views52 pages

Lect 4 Pspice Tutorial - 2

This document provides instructions for installing OrCAD PSpice simulation software and using it to perform circuit simulations. It explains how to download and install OrCAD PSpice Lite, add MOSFET models to the library, and use the software to run DC bias point, DC sweep, and parametric simulations. Basic PSpice simulation functions like placing parts, drawing wires, setting markers, and viewing results are also overviewed.

Uploaded by

Moazh Tawab
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views52 pages

Lect 4 Pspice Tutorial - 2

This document provides instructions for installing OrCAD PSpice simulation software and using it to perform circuit simulations. It explains how to download and install OrCAD PSpice Lite, add MOSFET models to the library, and use the software to run DC bias point, DC sweep, and parametric simulations. Basic PSpice simulation functions like placing parts, drawing wires, setting markers, and viewing results are also overviewed.

Uploaded by

Moazh Tawab
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 52

Lect.

4: PSpice Tutorial

 OrCAD PSPICE Installation


http://www.orcad.com/resources/orcad-downloads#demo

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 OrCAD PSPICE Installation

Click Download FREE-OrCAD 17.2 Lite in OrCAD 17.2 Lite title(Capture


& PSpice Only)

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 OrCAD PSPICE Installation

Fill out your information.

File will be sent through your


e-mail address you filled out.

Check your e-mail, and


download file from given
URL link.

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 OrCAD PSPICE Installation


Unzip downloaded file and execute it

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 OrCAD PSPICE Installation

① ② ③

④ ⑤ ⑥

The path name should be in English!

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 OrCAD PSPICE Installation

Start OrCAD Capture CIS Lite

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 OrCAD PSPICE Installation


File -> New Project to open schematics

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 OrCAD PSPICE Installation

Choose PSpice Analog or Mixed A/D project


File path name should be in English!

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 OrCAD PSPICE Installation


Choose empty.opj for the base project. If not, basic libraries will not
be included in your project

Schematics included in your project (Double click PAGE1)

Basic libraries

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 MOSFET Library Setup


Download ‘MOSFET_OrCAD.zip’ file which is uploaded in YSCEC.

Check mosfet.lib & MOSFET.olb is in your unzipped folder.

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 MOSFET Library Setup


1. Download ‘MOSFET_OrCAD.zip’ file uploaded in YSCEC.

2. Check mosfet.lib & MOSFET.olb is in your unzipped folder.

3. File path of this library folder must not have the Korean. (Move this
folder to ‘C drive’ or’ My Document’)

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 MOSFET Library Setup

Right click  Add file  Add MOSFET.olb file

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 MOSFET Library Setup

Right click  Add file  All file types  Add mosfet.lib file

 Select file type as schematic library

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 MOSFET Library Setup

Click and Ctrl+c

Click and Ctrl+v

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 MOSFET Library Setup

Drain Source
Bulk(Body) Bulk(Body)
Gate Gate

Source Drain
NMOS PMOS

Double click  change W & L of MOSFETs


NMOS body connected to Ground
PMOS body connected to VDD

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 PSPICE Basics
Empty schematic window is popped-up

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 PSPICE Basics Zoom Areas(Zoom in, out, fit)

Place
part
Wire
Simulations Markers
(setting, edit, run, results) (current, voltage, diff. voltage, power))

• Wire: draw wires(W)


Ground
• Place part: place instances(P)
• Resistor: R, Capacitor: C, Inductor: L
• DC voltage source: VDC
• Sinusoidal voltage source: Vsin
• AC voltage source: VAC
• Voltage/Current/Power Marker: Show output as marked port

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 PSPICE Basics
Key shortcuts

Description Shortcut
Rotate R
Mirror Horizontal H
Mirror Vertical V
Copy Ctrl+C
Paste Ctrl+V

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 PSPICE Basics
Draw schematic
• Use place part to place instances
• Ground
• Double click parts: change values
• Use wire to connect(W) Ground
• Save schematic

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.1 Bias point simulation

Bias point simulation is used for checking each node’s Average


Voltage, Current, Power at specific DC point

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.1 Bias point simulation

New simulation New simulation


(Bias simulation would be already added if you have proper base
project.)

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.1 Bias point simulation


Library Setting

Browse file
C:/Cadence/SPB_17.2/tools/PSpice/Library/nom.lib Click Add as Global
C:/Cadence/SPB_17.2/tools/PSpice/Library/nomd.lib and Apply

Library Setting needs for all simulation!

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.1 Bias point simulation


Run simulation

Run See See


Voltage Power
See
Simulation Results Current

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.2 DC sweep simulation


DC sweep is used for seeing specific point’s voltage or current
variation when changing DC value

Specific point’s
Variation

DC value
changing

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.2 DC sweep simulation

Current Marker

Part name : VDC

If you want to see voltage, use voltage marker

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.2 DC sweep simulation

Click Simulation Settings

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.2 DC sweep simulation

Run PSpice

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.3 Parametric Simulation


Parametric simulation is an option with which you can view
simulation results for varying values of a specific parameter.

Parametric simulation can be used for not only DC sweep but also
AC sweep and Transient simulation

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.3 Parametric Simulation

Choose simulation type


you want to view

Don’t forget to setup sweep condition!

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.3 Parametric Simulation


1. Source value change
Choose Voltage source

Parameter name

click Parametric Sweep

Changing value
(At this condition, VGS may be
set to 0.6, 0.9, 1.2, 1.5, 1.8)

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.3 Parametric Simulation

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.3 Parametric Simulation


2. Passive element(resistor, capacitor) change

Find PARAM and place it to the schematic

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.3 Parametric Simulation


2. Passive element(resistor, capacitor) change

Double click PARAM element at schematic and select ‘New Property..’

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.3 Parametric Simulation


2. Passive element(resistor, capacitor) change

①R_out is added
②Right click
& change display property
 Save

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.3 Parametric Simulation


2. Passive element(resistor, capacitor) change

Parameter added!

Global Parameter! Parameter Name


Checked
Sweep value

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.4 Function Plot

How can you plot


derivative of this curve?

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.4 Function Plot

Select ‘Add Trace’

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.4 Function Plot

ID(M1) represents drain


current of M1 MOSFET

D( y ) function calculates
derivative of y in terms of x-
axis’ variable

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.4 Function Plot

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.5 AC Simulation
AC sweep is used for seeing frequency response at a specific
node .
(Don’t confuse it; it is not used for time-domain simulation)

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.5 AC Simulation

Use VDB marker to get


dB scale plot

Use part ‘VAC’ and set


a DC value you want to.

Make sure that ACMAG is set to 1.

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.5 AC Simulation
If you want to place VDB marker, just simulate it first (AC sweep).
and then, you can see dB marker is activated (If you don’t simulate it before, it might be deactivated.)

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.5 AC Simulation

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.5 AC Simulation
Use ‘Toggle cursor’ you want to see specific point (cursor
can be dragged from the left)

Labeling value using


‘Mark Label’

(x, y)

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.5 AC Simulation

If you want to change cursor


when using parametric simulation,
Select the color you want to see and re-drag
the cursor from the left.

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.6 Transient Simulation


Transient simulation is used for time-domain responses at a
specific node .

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.6 Transient Simulation

Use any input you want to put in.

If you want to input sine wave, use ‘VSIN’

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.6 Transient Simulation

Select Time-domain

Setup run time you want to see

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.6 Transient Simulation

If you run too much time, signal can not


be seen well.

Double-click x-axis to set up time-range

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.6 Transient Simulation

Click user defined and


set up the time range

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Part.6 Transient Simulation

Electronic Circuits 2 (18/1) W.-Y. Choi


Lect. 4: PSpice Tutorial

 Homework

For NMOS having W= 10 𝝁m and L= 0.25 𝝁m,

1) Determine 𝑽𝑻𝑯 by plotting 𝑰𝑫 −𝑽𝑮𝑺 curve ( Sweep 𝑽𝑮𝑺 from 0 V to 0.6 V at 𝑽𝑫𝑺 = 1.8 V)

2) Plot 𝑰𝑫 −𝑽𝑫𝑺 curve with various 𝑽𝑮𝑺 values from 0.7 V to 1.6 V with increment of 0.3 V. For 𝑽𝑫𝑺 ,
sweep 0 V to 1.2 V.

3) Determine λ for the transistor at 𝑽𝑮𝑺 = 1.4 V. For this, plot 𝑰𝑫 −𝑽𝑫𝑺 curve for 𝑽𝑫𝑺 ranging from 1.0
V to 2.0 V and determine the slope.

4) Determine the numerical value of 𝝁𝒏 𝑪𝑶𝑿 for the transistor using the results obtained in 3)

5) Plot 𝒈𝒎 for 𝑽𝑫𝑺 = 1.8 V for 𝑽𝑮𝑺 ranging from 0 V to 2.0 V. Compare your result with the equation
given in the lecture note when 𝑽𝑮𝑺 is 1.4 V.

Electronic Circuits 2 (18/1) W.-Y. Choi

You might also like