Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
302 views

PSPICE Tutorial 2

This document provides an overview of using PSPICE (Simulation Program with Integrated Circuit Emphasis) to perform circuit simulations. It describes how to perform DC and AC analyses, the types of components and sources available in PSPICE, how to define circuits using netlists, and how to define subcircuits. It also discusses techniques like Thevenin and maximum power transfer analyses that can be performed. The goal is for the reader to learn how to use PSPICE to model and analyze analog circuits.

Uploaded by

zehankesilmis
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
302 views

PSPICE Tutorial 2

This document provides an overview of using PSPICE (Simulation Program with Integrated Circuit Emphasis) to perform circuit simulations. It describes how to perform DC and AC analyses, the types of components and sources available in PSPICE, how to define circuits using netlists, and how to define subcircuits. It also discusses techniques like Thevenin and maximum power transfer analyses that can be performed. The goal is for the reader to learn how to use PSPICE to model and analyze analog circuits.

Uploaded by

zehankesilmis
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 35

EEE-220 PSPICE Tutorial

Expected Outcome
At the end of this presentation you should be able to
perform a simple DC and AC circuit analysis using
PSPICE
Introduction
SPICE (Simulation Program for Integrated Circuits
Emphasis) is a general purpose analog circuit simulator that
is used to verify circuit designs and to predict the circuit
behavior.
PSpice is a PC version of SPICE and HSpice is a version that
runs on workstations and larger computers.
PSpice has analog and digital libraries of standard
components (such as NAND, NOR, flip-flops, and other
digital gates, op amps, etc) which makes it a useful tool
for a wide range of analog and digital applications.
LTSPICE
LTSPICE

LTspice IV is a high performance Spice simulator,


schematic capture and waveform viewer with
enhancements and models for easing the simulation of
switching regulators.
LTSPICE

LTspice is the circuit simulation engine for the


SwitcherCAD. LTspice is a schematic-driven circuit
simulation program. The LTspice simulator was originally
based years ago on Berkeley SPICE 3F4/5.
Benefits of using LTSPICE

Stable SPICE circuit simulation with unlimited number of


nodes Schematic/symbol editor
Waveform viewer
Library of passive devices
Types of Analysis

Non-linear DC analysis
Non-linear transient analysis
Linear AC Analysis
Noise analysis
Sensitivity analysis
Distortion analysis
Fourier analysis
Monte Carlo Analysis
Circuit Components available
Independent and dependent voltage and current sources
Resistors
Capacitors
Inductors
Mutual inductors
Transmission lines
Operational amplifiers
Switches
Diodes
Bipolar transistors
MOS transistors
JFET
MESFET
Digital gates
LTSPICE Buttons
File structure PSPICE

Input file for PSpice that has the file type “.CIR”
When a circuit is simulated “.RAW” is generated
“*.DAT” file is by default a binary file to see the
data
“*.LIB” files where the details of complex parts are
saved
Additional files
“*.ASC” (the schematic data, itself)
“*.ASY” (the symbol data)
Libraries

These are files that contain reusable part data.


They can be custom or default ones
Circuit Description

Circuits are defined by a text netlist. The netlist


consists of a list of circuit elements and their nodes,
model definitions, and other SPICE commands.
General Structure and Conventions
The circuit to be analyzed is described by a text file
called a netlist. The first line in the netlist is ignored,
that is, it is assumed to be a comment. The last line of
the netlist is usually simply the line ".END", but this
can be omitted. Any lines after the line ".END" are
ignored.
General Structure and Conventions
* This first line is ignored
* The circuit below represents an RC circuit driven
* with a 1MHz square wave signal
R1 n1 n2 1K ; a 1KOhm resistor between nodes n1 and n2
C1 n2 0 1p ; a 100pF capacitor between nodes n2 and ground
V1 n1 0 PULSE(0 1 0 0 0 .5μ 1μ) ; a 1Mhz square wave
.tran 3μ ; do a 3μs long transient analysis
.end
Independent Sources
V<name> <n+> <n-> [type] <val>
defines an independent voltage source with its +
terminal at node n+ and its – node at node n-.

I<name> <n+> <n-> [type] <val>


defines an independent current source whose current
flows through the source from node n+ to node n-.
Independent Sources
Examples:
• Vdd 4 0 5 defines a 5 V source with the + terminal
connected at node 4 and the -terminal connected at node
0 (ground)

• ibias 18 4 DC 15m
• V2 3 0 25V ( spice recognizes the common
abbreviations for units, which helps to make source files
more easily understood by humans.)
Voltage-Controlled Dependent Sources
Current-Controlled Dependent
Sources
Powers of Ten

Numbers can be expressed not only in scientific notation; e.g.,


1e12; but also using engineering multipliers. That is, 1000 or 1e3
can also be written as 1K. Below is a table of understood
multipliers:
.TRAN - Transient Analysis
.Tran Example

Comment line
V1 1 0 12V
R1 1 2 50
R2 2 0 100
R3 2 0 200
.tran 100u
.PRINT dc i(r1) i(r2) i(r3)
.END
.AC Small-Signal Analysis
.AC Example

RLC circuit
V1 1 0 AC 1V
R1 1 2 50
L1 2 3 20mH
C 3 0 150nF
.Probe
.print v(3)
.AC Lin 99 100Hz 5kHz
* | | stop freq
* | starting freq
* step count
.end
.DC
Sweep
.DC Example
diode i/v characteristics
v1 1 0 5V
R1 1 2 100
d1 2 0 D1N4001
.dc v1 0 5 .01
.probe
.print i(d1) v(2)
.MODEL D1N4001 D
+IS=29.5E-9 RS=73.5E-3
+N=1.96 CJO=34.6P VJ=0.627
+M=0.461 BV=60 IBV=10U
.end
Subcircuit

A subcircuit allows you to define a collection of


elements as a subcircuit (e.g. an operational
amplifier) and to insert this description into the
overall circuit.
Subcircuit definition

.subckt my_opamp vp vn vo
E1 Vo 0 Vp Vn 1000
.ends
Subcircuit Example

example: subcircuit
X1 2 0 Vout my_opamp
R1 1 2 100
R2 2 Vout 100
V1 1 0 12
.tran 100m
.end
Thevenin
Thevenin
* THEVENIN EQ. SAMPLE
V 1 0 80
R5 4 2 400
R2 3 2 100
R4 4 3 100
R3 0 3 200
R6 4 0 1E8
R1 2 1 20
.op
.tf V(4) V
.end
Thevenin

--- Transfer Function ---

Transfer_function: 0.714285 transfer


v#Input_impedance: 303.333 impedance
output_impedance_at_V(4): 128.571 impedance
Rth=128.571Ω
Vth= 80V x transfer ratio = 80x0.714=57.143V
Maximum Power Transfer
When the value of RL is chosen to be equal to the
resistance looking back into network from the
load terminals, then the power to RL will be the
maximum.
The resistance of the network as seen at the load
terminals with the load removed is simply the
thevenin resistance. For this circuit it is 30Ω.
Maximum Power Transfer

* Maximum Power Transfer


V1 1 0 12V
R1 2 1 20
R2 0 2 20
R3 2 3 20
RL 3 0 30
.TF V(3) V1
.end
Maximum Power Transfer

--- Transfer Function ---

Transfer_function: 0.5 transfer


v1#Input_impedance: 40 impedance
output_impedance_at_V(3): 30 impedance
Rth=30Ω
For max power to the load RL =30 Ω

You might also like