EEL102 - PowerPoint PPT Presentation

1 / 15
About This Presentation
Title:

EEL102

Description:

Introduction to SPICE EEL102 Spice Introduction Spice is a short form of : Simulated Program with Integrated Circuit Emphasis Used for circuit analysis Many ... – PowerPoint PPT presentation

Number of Views:55
Avg rating:3.0/5.0
Slides: 16
Provided by: Parthavi
Category:

less

Transcript and Presenter's Notes

Title: EEL102


1
Introduction to SPICE
  • EEL102

2
Spice Introduction
  • Spice is a short form of
  • Simulated
  • Program with
  • Integrated
  • Circuit
  • Emphasis
  • Used for circuit analysis
  • Many varieties of SPICE WINSPICE, PSPICE,
    HSPICE.

3
Download instructions
  • Student Version _at_ http//www.electronicslab.com/do
    wnloads/schematic/013/

4
INSTRUCTIONS for running
5
Steps before running the simulation
  • Draw the circuit and Label all nodes and elements
  • Circuit described in terms of its elements and
    properties

6
Syntax rules
  • Not case-sensitive
  • First line of code is ALWAYS the TITLE and
    ignored
  • .End -gt Last Line of code
  • Comment within a line should be followed by
  • Comment lines start with

7
Circuit elements
  • Resistor
  • Rltnamegt ltnode1gt ltnode2gt
    ltvaluegt
  • Rx1 4 5 100k
  • Capacitor
  • Cltnamegt ltnode1gt ltnode2gt
    ltvaluegt
  • C1 3 9 10u
  • Inductor
  • Lltnamegt ltnode1gt ltnode2gt
    ltvaluegt
  • Lxy 4 5 1m

8
Voltage and current sources
  • 3 types DC, AC, Transient
  • Voltage Sources
  • Vltnamegt ltvenodegt lt-venodegt DC ltvaluegt
  • AC ltmaggt ltphasegt
  • transient specs
  • Current Sources
  • Iltnamegt ltvenodegt lt-venodegt DC ltvaluegt
  • AC ltmaggt phase
  • transient specs
  • DC source
  • V1 3 0 5
  • V1 3 0 DC 6
  • AC source
  • V1 3 0 AC 25 180

9
Transient Sources
  • Pulse
  • Vltnamegt ltnodegt lt-nodegt PULSE(V1 V2 Td Tr Tf Tw
    Period)
  • V1 Value when pulse is not on
  • V2 Value when pulse is fully on
  • Td Time delay can be zero
  • Tr Rise Time Zero causes some simulation
    problems
  • Tf Fall time
  • Tw Pulse Width
  • Period Total time in seconds of pulse
  • Ex Vs 1 0 PULSE(0V 10V 0s 100ms 100ms 900ms 2s)
  • Sin Damped Sine
  • Vltnamegt ltnodegt lt-nodegt SIN(V0 Va fr Td Df theta)
  • V0 DC Offset value
  • Va Undamped amplitude. Peak measured from zero
    if no DC offset
  • fr frequency in Hz
  • Td time delay in seconds
  • Df Damping factor
  • Theta Phase advance in degrees
  • Ex Vs 1 0 SIN(2V 5V 2Hz 200ms 2Hz 30d)

10
Dependant Sources
  • Ebar    17   8   42   18    24.0 VCVS
  • Eltnamegt ltngt ltn-gt ltncgt ltnc-gt ltmultfactorgt
  • Glab  23   17     8     3    2.5 VCCS
  • Gltnamegt ltngt ltn-gt ltncgt ltnc-gt ltmult.factorgt
  • Hvx  20  12  Vhx       50.0 CCVS
  • Hltnamegt ltngt ltn-gt ltVmonitorgt ltmult.factorgt
  • Ftrn   81   19   Vctl         50.0 CCCS
  • Fltnamegt ltngt ltn-gt ltVmonitorgt ltGaingt

11
Analysis
  • DC Analysis
  • .DC ltsourcegt ltvstartgt ltvstopgt ltvincrgt src2
    start2 stop2 incr2
  • .DC Vds 0 10 0.5 Vgs 0 5 1
  • AC Analysis
  • .AC ltsweeptypegt ltptsvaluegt ltstartfreqgt ltend freqgt
  • Sweep is either LIN, OCT, DEC
  • .AC  DEC  20       1Hz   10kHz
  • .AC  LIN  11       100   200
  • Transient Analysis
  • .Tran ltprint stepgt ltfinal timegt
  • .TRAN 1n 1000n

12
OUTPUT
  • Text Output
  • .PRINT
  • Graph Output
  • .PROBE command generates a .dat file

13
Example
  • Firstorder lowpass Rcfilter
  • Vin 1  0 AC 1.0V
  • Rf  1  2 1.59
  • Cf  2  0 100uF
  • .AC DEC 20 100Hz 100kHz
  • .PROBE
  • .END

14
References
  • http//www.uta.edu/ee/hw/pspice/
  • http//www.engr.colostate.edu/ECE562/Pspicetutoria
    l.pdf
  • http//cobweb.ecn.purdue.edu/ee255/lecturesupp_fi
    les/PSpice-Tutorial.pdf
  • http//www.ecircuitcenter.com/AboutSPICE.htm

15
THANK YOU!!! Questions?
Write a Comment
User Comments (0)
About PowerShow.com