DOC PREVIEW
Berkeley ELENG 105 - Experiment 2 - Introduction to PSpice

This preview shows page 1-2-3 out of 8 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 8 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 8 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 8 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 8 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

1 of 8Experiment 2 Introduction to PSpiceW.T. Yeung and R.T. HoweUC Berkeley EE 105Fall 20051.0 ObjectiveOne of the CAD tools you will be using as an circuit designer is SPICE, a Berkeley-developed industry-standard program that is essential to the analysis and design of com-plex circuits. In this experiment, you will be introduced to the basics of SPICE. You will learn the basics of representing circuit elements, constructing the circuits, and finally simulating the circuits.2.0 MaterialThe version of SPICE you will be using is the student version of PSpice, which is a free product of Cadence. In more advanced courses, you’ll be using HSpice, which is the full “industrial strength” version (and definitely not free!) Fortunately, we have a site license to the full Cadence CAD tools for research and education at Berkeley.3.0 Prelab•Reading: on-line PSpice manual. http://www-inst.eecs.berkeley.edu/~ee105/fa06/PSPICE/PspiceUserGuide.pdf•You can download the student version of PSpice from this web site:http://www.orcad.com/Product/Simulation/PSpice/eval.asp•Supplemental reading: The “Spice Home Page” at http://bwrc.eecs.berkeley.edu/Classes/IcBook/SPICE/ has an interactive tutorial. The appendix to Experiment 1 isof general use, but some of the information pertains to earlier releases of PSpice.Procedure2 of 8Experiment 2 Introduction to PSpiceFIGURE P1. 1. Create a netlist for the circuit of Fig. P1. You’ll need to name both the elementsand the nodes. 2. We would like to have PSpice find the Bode plots for Vx / Vin and Vy / Vin . Deter-mine how to do this.3. If you have a PC, run PSpice and generate the magnitude and phase Bode plots.Compare your results with those you find by solving for Vx / Vin analytically. Savethe file as <your-filename.cir> and bring it on a floppy disk to lab.4.0 Procedure4.1 Transient Analysis1.Solve the Prelab circuit on the PC at your lab station, if you haven’t already done it.2.Construct the PSpice file for the lowpass filter shown below. We are interested in the transient analysis rather than viewing it as a filter. Let the voltage waveform be a 1 kHz square wave that ranges from 0 to 5 V.FIGURE 2. Lowpass Filter3.Your PSpice file should contain the following information:•Circuit information+−VinXY1kΩ1kΩ1kΩ1pFvs10KΩ0.01µFvoutProcedureExperiment 2 Introduction to PSpice3 of 8•.tran statement for the times t=0 to t=10ms•.probeThe voltage source has the following format:Vname +node -node dc <dc/tran> transient informationThe square wave in the above example can be modeled as either a pulse or a piecewise linear function. This information goes in your voltage source statements.4.Launch PSpice by double-clicking on its icon.5.Click on File and Open.6.Select the filename you assigned and PSpice will attempt to analyze the circuit.7.Click on “File” and “Run Probe.”8.Probe data files have a .dat extension. It should have been loaded automatically.9.Click on the Trace command followed by Add. This will allow you to plot the volt-ages and currents available in the circuit.Probe can also plot mathematical expressions involving the voltages and currents.You can use the cursor command from the Tools menu in probe to get x and y coordi-nates from the graph.Labels and Titles can be inserted into your plots for clearer understanding. These are accessible from the Tools menu.10.Print out your plot by clicking on File followed by Print.11.From the Plot menu, select Transient. This will tell probe to plot transient data and not ac data.12.Obtain a printout for both vout(t) and vs(t).4.2 DC Analysis1.The following circuit contains an n-channel metal-oxide-silicon field effect transis-tor (n-MOSFET). You do not need to know the internal operations of the MOSFET in order to complete this part of the experiment. Enter the circuit below in a SPICE deck.Lab TipLab TipAppendix4 of 8Experiment 2 Introduction to PSpiceFIGURE 3. MOSFET Circuit to Generate its I-V Characteristics2. Include in your SPICE deck the following:•.dc lin VDD 0 5 .1 VGS 0 5 1 (This sweeps VDD from 0 to 5V in .1V interval for each value of VGS. (0 to 5V in 1V intervals))•.probe•You will need to define the MOSFET’s Level 1 PSpice model parameters. Use Kp=60e-6, Vto=1, Lambda=0.05 and the defaults for the rest of the parameters. See pages 239-245 of H&S for information on the Level 1 MOSFET model.3. Run PSpice and Probe and plot the drain current of your transistor ID1. This will give you the MOSFET’s I-V characteristics. Print a hardcopy. Always include your input deck in your lab report.5.0 AppendixThere are many versions of SPICE available (PSPICE, SPICE3, HSPICE, etc.). Regard-less of the version, the structure of an input file is the same. A SPICE simulation con-sists of 4 parts:2.Constructing the circuit3.Specifying the type of analysis4.Performing the simulation5.Evaluating the results5.1 Constructing the CircuitSPICE can simulate a wide variety of circuit elements. In this tutorial, we will introducethe elements which you will encounter in EE 105.5.1.1 Two Terminal ElementsVGSW/L = 4.5µm/1.5µmNode 1Node 2GND=Node 0VDDM1ID1AppendixExperiment 2 Introduction to PSpice5 of 8Two terminal elements are specified by the + and - terminals. In cases of passive ele-ment, such as resistors and capacitors, there is no distinction between the + and - termi-nals. For voltage sources and current sources, the order of the nodes determines thepolarity of the voltage or the direction of the source.FIGURE 4. Passive Two Terminal Elements•Resistors (Rname <+ node> <- node> value)•Capacitors (Cname <+ node> <- node> value)•Voltage Source (Vname <+ node> <- node> value)•Current Source (Iname <+ node> <- node> value)5.1.2 Multi-Terminal ElementsFIGURE 5. Examples of Multiterminal Elements: npn BJT and n-channel MOSFET•Bipolar Transistors (Qname <collector node> <base node> <emitter node> modeltype)A bipolar transistor is specified by its collector, base and emitter terminals. The modeltype tells SPICE to refer to that particular model with its specific parameters.•MOSFETS (Mname <drain node> <gate node> <source node> <body node> modeltype, geometry)A MOS transistor is specified by its drain, gate, source and body terminals along withthe name of a model. If the geometry is not specified, it will have a gate length andCollectorDrainSourceEmitterGateBaseBulkAppendix6 of 8Experiment 2 Introduction to PSpicewidth of 1µm. It is important to note


View Full Document

Berkeley ELENG 105 - Experiment 2 - Introduction to PSpice

Documents in this Course
Lecture 3

Lecture 3

21 pages

Lecture 9

Lecture 9

15 pages

Lecture 3

Lecture 3

19 pages

Lecture 3

Lecture 3

22 pages

Outline

Outline

16 pages

Lecture 3

Lecture 3

21 pages

Lecture 2

Lecture 2

28 pages

Lecture 3

Lecture 3

21 pages

Lecture 4

Lecture 4

22 pages

Lecture 6

Lecture 6

25 pages

Lecture 1

Lecture 1

13 pages

Lecture 5

Lecture 5

22 pages

Lecture 3

Lecture 3

21 pages

Lecture 1

Lecture 1

13 pages

Lecture 8

Lecture 8

25 pages

Lecture

Lecture

5 pages

Overview

Overview

24 pages

Lecture 5

Lecture 5

22 pages

Load more
Download Experiment 2 - Introduction to PSpice
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Experiment 2 - Introduction to PSpice and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Experiment 2 - Introduction to PSpice 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?