Anda di halaman 1dari 28

EE 101: Introduction to Capture

and PSpice

Phalguna P.
Dept. of EE,
IIT Bombay.
24 July 2016

Phalguna P., EE Dept. IIT Bombay

Agenda
Build a resistive divider
Time domain analysis
Fourier analysis
Build an inverting amplifier
Time domain analysis
Build an active Low Pass Filter
Frequency domain analysis.
Bode Magnitude and phase plots.
Parametric sweep analysis

24 July 2016

Phalguna P., EE Dept. IIT Bombay

OrCAD Capture CIS


Open the OrCAD Capture CIS Lite (Start Menu Path: All
Programs -> Cadence -> OrCAD 16.6 Lite -> OrCAD
Capture CIS Lite).
Create a new project: File -> New -> Project.

24 July 2016

Phalguna P., EE Dept. IIT Bombay

Create a New Projcet


Choose the project
type as Analog or
Mixed A/D.
Name the project.
And specify a
location, where
you want to save
your project files.
Click OK and
select Create
Blank Project in
the next window.
24 July 2016

Phalguna P., EE Dept. IIT Bombay

Place Part and Add Libraries


Step 1: Click on

Place Part (on the


right of your screen)
Step 2: In the Place
Part sub window,
click on the Add
Libraries icon.
A mini window will
open. Make sure you
are in the location
..\Capture_PSpice\t
ools\capture\library\
pspice and add all
the libraries. NOTE:
this is a one time
step (when using
PSPICE for the first
time).
24 July 2016

Phalguna P., EE Dept. IIT Bombay

Resistive Voltage Divider


Add the following components to your schematics page
RESISTOR from the EVALAA library (or R and from
the ANALOG library)
VPULSE from the SOURCE library
Press g on your keyboard to add GROUND points.
Press w on the keyboard to go to wiring mode.
To rotate a component, click on the component and press
r on your keyboard.

24 July 2016

Phalguna P., EE Dept. IIT Bombay

Parameters of VPULSE

24 July 2016

Phalguna P., EE Dept. IIT Bombay

Change the component values


To change a component value, double click on the value
(not the component). Ex: to change VOFF of VSIN, double
click on VOFF.
We shall have the following component values:
R1 = R2 = 1K ohm;
VPULSE: V1=10V, V2=0V, TD=0.5s, TR=TF=1ns, PW=0.5s,
PER=1s

24 July 2016

Phalguna P., EE Dept. IIT Bombay

Your circuit should look like

24 July 2016

Phalguna P., EE Dept. IIT Bombay

Time Domain Analysis


Create a new simulation profile as shown below:

Give a name to the profile and choose none as the


option for Inherit from
In the Simulation Settings window, do the settings as
shown below:

24 July 2016

Phalguna P., EE Dept. IIT Bombay

10

Run the Simulation


Run the Simulation by clicking on Run Pspice as
shown below:

Add a voltage marker to the circuit at the output


node.

24 July 2016

Phalguna P., EE Dept. IIT Bombay

11

Time Domain Analysis

24 July 2016

Phalguna P., EE Dept. IIT Bombay

12

Fourier Analysis
Click on the Fourier button in the simulation window.

You will see peakings at the odd multiples of the base


frequency, i.e. f = 1 Hz.

24 July 2016

Phalguna P., EE Dept. IIT Bombay

13

Inverting amplifier
Add the following components:
uA741 OPAMP from EVAL library
Two VSRC from SOURCE library
Replace VPULSE with VSIN from the SOURCE library
Set the following component values:
R2 = 2K ohm.
VSIN: VOFF=0V, VAMP=5V, FREQ=1Hz, VAC=0V.
VSRC: VDC=12V, VAC=0V, TRAN=0V.
Add two ground points for VSRCs.

24 July 2016

Phalguna P., EE Dept. IIT Bombay

14

Wiring the Inverting Amplifier

NOTE: Connect +12 V to PIN 7 and -12 V to PIN 4 of the OPAMP.


Place voltage markers at the output node (PIN 6) of the OPAMP and the
input node.
Run the simulation.
24 July 2016

Phalguna P., EE Dept. IIT Bombay

15

Time domain analysis Inv Amplifier

Legends:
--- Vin
--- Vout
24 July 2016

Phalguna P., EE Dept. IIT Bombay

16

Active Low Pass Filter


Add CAPACITOR from the EVALAA library.
Place it in parallel to R2 (feedback resistor).
Replace VSIN with VAC from SOURCE library.

24 July 2016

Phalguna P., EE Dept. IIT Bombay

17

Frequency Analysis
Edit the simulation profile by clicking the edit button
as shown here:

Apply the changes shown below:

24 July 2016

Phalguna P., EE Dept. IIT Bombay

18

Run the Simulation


Frequency Response of the filter is obtained a shown
below. f0 = 1/(2R2C) ~ 160Hz. NOTE: R2 is feedback
resistor.

24 July 2016

Phalguna P., EE Dept. IIT Bombay

19

Bode Plot of the LPF


We have seen the output response as a function of
frequency.
To simulate the Magnituge Bode Plot (in dB):
Delete the voltage markers on the circuit schematic and
run the simulation.
Go to the waveform window and select Trace -> Add
trace.

24 July 2016

Phalguna P., EE Dept. IIT Bombay

20

Bode Plot (Contd)


You will now see Add Traces window:

Select the function


DB() from the right
column.
Select the output
signal, i.e. opamp
output from the left
column. In my case, it
is V(U1:OUT). Then
select the input
signal. In my case, it
is V(V4:+). U1 is my
OP AMP and V4 is
my signal source.

You should get the following expression in the Trace


Expression row:
DB(V(U1:OUT) / V(V4:+))
24 July 2016

Phalguna P., EE Dept. IIT Bombay

21

Magnitude (dB) Bode Plot


Magnitude Plot in dB:

The circuits DC gain is R2/R1 = 2. On the dB scale, it


becomes 20 log10 2 = 6 dB (as you can see above).
Cut off frequency is at the -3dB point, i.e. 6 3 = 3dB.
The frequency at 3dB is around 160 Hz (this is our
1/2R2C.
24 July 2016

Phalguna P., EE Dept. IIT Bombay

22

Phase Bode Plot


We used the trace expression DB(V(U1:OUT) /
V(V4:+)) to get the magnitude bode plot.
To get the phase bode plot, enter the following
expression (on a new trace window):
P(V(U1:OUT) / V(V4:+))

24 July 2016

Phalguna P., EE Dept. IIT Bombay

23

A few insights in to the Bode plots


The transfer function of our LPF is:
Vout
Z
R2 || (1 / jwC )
R2 / R1

Vin
R1
R1
1 jwR 2C

Magnitude of the transfer function:


Mag (dB) 20 log10 (

R2 / R1
1 ( wR2C )

Phase of the transfer function:


Phase(in deg rees ) 1800 tan1 ( wR2C )
In our phase plot, the phase changes from 1800 (for w
= 0) to 900 (for w = infinity). NOTE: R2 is feedback resistor.
24 July 2016

Phalguna P., EE Dept. IIT Bombay

24

Parametric Analysis

Change the capacitor value to {cap}.


Add the component PARAM from SPECIAL library.
Place the component and double click on it.
A schematic sheet opens. Click on Add new
parameter button.
Give the name of the parameter as cap and assign
0.5u as its value.

24 July 2016

Phalguna P., EE Dept. IIT Bombay

25

Parametric Analysis
Edit the simulation profile.
Under the settings of AC sweep, click on Parametic
sweep, and make the following changes.

24 July 2016

Phalguna P., EE Dept. IIT Bombay

26

Run the simulation

Legends:
--- cap = 0.5 uF
--- cap = 1 uF
--- cap = 1.5 uF
---cap = 2 uF
24 July 2016

Phalguna P., EE Dept. IIT Bombay

27

Thank you

24 July 2016

Phalguna P., EE Dept. IIT Bombay

28

Anda mungkin juga menyukai