PSpice使用教程
PSPICE使用

第二章PSPICE使用本章通过对一个共射极放大电路的仿真分析,学习PSpice软件的使用方法,掌握PSpice 软件分析电子电路的基本过程。
使用PSpice软件的步骤是:第一步:通过电路图编辑程序(Schematics Editor程序)输入编辑电路图;第二步:在电路图编辑程序中设置电路的分析方式和参数;第三步:运行电路仿真分析程序(PSpice程序);第四步:运行图形后处理程序(Probe程序)查看输出图形或查看电路输出文件。
第一节认识Schematics电路图编辑程序一、启动Schematics程序PSpice软件7.1版本是Windows应用程序,因此,应先启动Windows操作系统,Windows 操作系统可以是Windows 3.x 或Windows 95或Windows 98,本书都是在Windows 98操作系统下完成的,并且假定读者已掌握Windows 98操作系统的使用,如果读者尚没有掌握Windows 98操作系统的使用,应先了解Windows 98操作系统;如果读者使用的是Windows 3.x 或Windows 95操作系统,则在Windows系统操作上会略有不同,但PSpice显示的内容都是一样的,相信不应该出现什么大的困难。
使用PSpice软件总是从输入电路图开始,除非你已经直接在电路描述文件中输入了电路所需的数据,因此,使用PSpice软件通常是从Schematics电路图编辑程序开始的。
而且在Schematics电路图编辑程序中可以设置电路的分析方式和参数,可以通过菜单命令启动电路仿真分析程序(PSpice程序)及图形后处理程序(Probe程序)。
假定已经安装了PSpice软件的7.1版本,并且已经启动了Windows 98操作系统,则启动Schematics电路图编辑程序有三种方法:1. 选择开始菜单上的程序组>>MicroSim Eval 7.1程序组>>Schamatics程序项。
Pspice使用指南

(三)、执行模拟(仿真计算) 当一切设置完之后,便可以启动分析程序[PSpice]对电路进行分析。选择 Analysis=>Simulate,或单击常用工具栏中相应的按钮,或按快捷键 F11,可以启动 (自动建立电路网络表(Analysis=>Create Netlist),自动进行电路检查 (Analysis=>Electrical Rule Check))。 在分析过程中,会显示其运行窗口,如图 16-9。如在电路中发现错误,会在运行中用 红色文字显示,如图 16-10。选择 Analysis=>Examine Output 可查看错误原因。
找到所需的电路符号后,单击该符号,则该符号的名称便显示在 Part Name 文本框中, 同时 Description 文本框中出现一行文字,说明该符号的含义。单击[Place]键可取出 元件但不关闭对话框;单击[Place&Close]键取出并关闭对话框;也可双击符号名列表 中某一符号将其取出。 在本例中不仅需要取出三个电阻、两个直流电压源和一个接地端,还要取出符号 PARAM 将电阻的阻值定义为全局变量,因本例是一个以电阻阻值为扫描变量的例子。
Probe 是 PSpice 对分析结果进行波形处理、显示和打印的有效工具,Probe 可以给出 波形各点的精确数据,可以迅速找到波形的极大、极小值点及其他特殊点,给波形加 标注,按所需添加坐标设置,还可以保存波形显示屏幕等。它有被称为“软件示波器”。
有两种方法启动 Probe 程序:
(1)在[Schematics]中,Analysis=>Probe Setup => Auto-run Option 设置为 Automatically…时,选择 Analysis=>Simulate 进行仿真分析后会自动调用 Probe 程 序;
pspice使用教程

所用到的器件为: 器件 电源 电阻
(Fig.11)
模型 V1 R1
模型库 VAC/Source R/Analog_p
上海银利电子有限公司
电感
L1
电容
C1
地
0
现在我们来对 Simulation Setting 来进行设置!设置如下(Fig.12)
L/Analog_p C/ Analog_p
0/Source
上海银利电子有限公司
(Fig.13) 如果发现波形不是很好,我们可以修改一下,让显示的效果比较突出! 如何修改仿真波形参数呢?
点击 Edit Profile,就可以回到我们的仿真参数设置参数窗口!我们可以根据自己的需要来重 新来设置仿真参数!然后再来运行一下仿真结果。点 Run 命令或 ,再来一遍! *注意: 在 Fig.13 图中!我们测量显示的函数为 I(R1)! 以后文章中不会再提出一些关于调用哪些函数的信息!请读者从图纸上看! 在特定时候 我们会提示大家! 做出仿真波形,如何才能够测量出波形的具体的数据信息呢? 我们可以用 Toggle cursor 的工具来进行测量,点击小图标 ,我们可以看到后面的工具栏 由灰色锁定状态变为可用的状态!同时也会弹出一个小小的数据显示信息框。
将会显示出属性窗口,我们现在开始编辑属性窗口信息! 点击 New Row 将会弹出一个新的窗口,Add New Row 信息窗口! 我们按下图所示添写:
上海银利电子有限公司
点击 Apply 选项!ok! 这样我们就搞定了关于如何定义这个参数与 R1 之间的关系! 修改完成后的原理图:(Fig.14)
我觉得大家做一个分析后自己看看 OutFile 文件!点 基本的分析内容: 1.直流分析 2.交流分析 3.参数分析 4.瞬态分析
Pspice8.0快速入门手册

Pspice8.0快速入门手册目的:帮助初学者了解Pspice8.0的简单操作及使用方法,较深入的探讨还是好参考其他书籍及读者自行学习。
步骤:一、放置所需元件(包括电源)二、连接导线三、设定要执行的模拟内容四、设定Probe五、执行模拟六、利用Probe观察模拟结果七、将数据取出用其它软件画图八、补充说明开始模拟电路之前,必须先用[Schematic]将电路图画出来。
一、放置元件(包括电源)1、先开启[Schematic],点选[Draw/Get New Part],或按工具栏上的图标:2、即可打开如下对话框:(这是Advanced选单,Basic选单则无Search功能)你可以直接在Part Name处键入元件名称,例如需要一个电阻则键入R。
或你可以电选Libraries,再从其中点选。
你如果用的是 Pspice教学免费版,提供的Lebraries有限,但已能满足学习需求,不用担心。
常用的Librares内容如下:ANALOG.slb 常用的被动元件BREAKOUT.slb 可改变参数的基本元件SOURCE.slb 电源及信号源PORT.slb 接地及连接器ERAL.slb 常用的半导体元件(这是免费版专属元件库)3、确定元件后,按[Place]即可将元件拖放到电路图上,按一下鼠标左键,就可以将元件放在图面上,按右键则结束。
放完元件后,按的Close钮关闭对话框。
要改变元件的方向,可点选该元件,在执行[Edit/Rotate]菜单命令(快捷键Ctrl+R)或[Edit/Flip](快捷键Ctrl+F)。
4、要改变元件的参数(或称Attributes),可双击该元件,打开元件属性对话框。
如下图是一电阻,在1处点选VALUE,在2处键入需要的电阻值即可,然后按[Save Arrr],在按[OK]钮完成。
回到文件顶端二、连接导线1、利用连线工具(Draw Wire)画导线。
2、点选画线工具后,即可看到一个铅笔状的指示。
PSpice仿真软件使用指南说明书

April 2016© 2013Cadence Design Systems, Inc. All rights reserved.Portions © Apache Software Foundation, Sun Microsystems, Free Software Foundation, Inc., Regents of the University of California, Massachusetts Institute of T echnology, University of Florida. Used by permission. Printed in the United States of America.Cadence Design Systems, Inc. (Cadence), 2655 Seely Ave., San Jose, CA 95134, USA.Product PSpice contains technology licensed from, and copyrighted by: Apache Software Foundation, 1901 Munsey Drive Forest Hill, MD 21050, USA © 2000-2005,Apache Software Foundation. Sun Microsystems, 4150 Network Circle, Santa Clara, CA 95054 USA © 1994-2007, Sun Microsystems, Inc. Free Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA © 1989, 1991, Free Software Foundation, Inc. Regents of the University of California, Sun Microsystems, Inc., Scriptics Corporation, © 2001, Regents of the University of California. Daniel Stenberg, © 1996 - 2006, Daniel Stenberg. UMFPACK ©2005,TimothyA.Davis,UniversityofFlorida,(**************.edu).KenMartin,WillSchroeder,Bill Lorensen © 1993-2002, Ken Martin, Will Schroeder, Bill Lorensen. Massachusetts Institute of Technology, 77 Massachusetts Avenue, Cambridge, Massachusetts, USA © 2003, the Board of Trustees of Massachusetts Institute of Technology. All rights reserved.Trademarks: Trademarks and service marks of Cadence Design Systems, Inc. contained in this document are attributed to Cadence with the appropriate symbol. For queries regarding Cadence’s trademarks, contact the corporate legal department at the address shown above or call 800.862.4522.Open SystemC, Open SystemC Initiative, OSCI, SystemC, and SystemC Initiative are trademarks or registered trademarks of Open SystemC Initiative, Inc. in the United States and other countries and are used with permission.All other trademarks are the property of their respective holders.Restricted Permission: This publication is protected by copyright law and international treaties and contains trade secrets and proprietary information owned by Cadence. Unauthorized reproduction or distribution of this publication, or any portion of it, may result in civil and criminal penalties. Except as specified in this permission statement, this publication may not be copied, reproduced, modified, published, uploaded, posted, transmitted, or distributed in any way, without prior written permission from Cadence. Unless otherwise agreed to by Cadence in writing, this statement grants Cadence customers permission to print one (1) hard copy of this publication subject to the following conditions:1.The publication may be used only in accordance with a written agreement between Cadence and itscustomer.2.The publication may not be modified in any way.3.Any authorized copy of the publication or portion thereof must include all original copyright,trademark, and other proprietary notices and this permission statement.4.The information contained in this document cannot be used in the development of like products orsoftware, whether for internal or external use, and shall not be used for the benefit of any other party, whether or not for consideration.Disclaimer: Information in this publication is subject to change without notice and does not represent a commitment on the part of Cadence. Except as may be explicitly set forth in such agreement, Cadence does not make, and expressly disclaims, any representations or warranties as to the completeness, accuracy or usefulness of the information contained in this document. Cadence does not warrant that use of such information will not infringe any third party rights, nor does Cadence assume any liability for damages or costs of any kind that may result from use of such information.Restricted Rights: Use, duplication, or disclosure by the Government is subject to restrictions as set forth in FAR52.227-14 and DFAR252.227-7013 et seq. or its successor.ContentsBefore you begin. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Welcome . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 How to use this guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Symbols and conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Related documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 What this user’s guide covers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 PSpice overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Add-on options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 PSpice Smoke Option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 PSpice Advanced Optimizer Option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 PSpice Advanced Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 SLPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 If you don’t have the standard PSpice A/D package . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Comparison of the different versions of PSpice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 If you have PSpice Lite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Minimum hardware requirements for running PSpice: . . . . . . . . . . . . . . . . . . . . . . . . 32 PSpice Samples and T utorials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 Part one: Simulation primer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 1Things you need to know . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Chapter overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 What is PSpice? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Analyses you can run with PSpice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 Basic analyses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 Advanced multi-run analyses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 Analyzing waveforms with PSpice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 What is waveform analysis? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 Using PSpice with other programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 Using design entry tools to prepare for simulation . . . . . . . . . . . . . . . . . . . . . . . . . . 47What is the PSpice Stimulus Editor? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 What is the PSpice Model Editor? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Files needed for simulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Files that design entry tool generates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 Other files that you can configure for simulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 Files that PSpice generates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 Directory structure for analog projects in Capture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 How are files configured at the design level maintained in the directory structure for analog projects? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 How are files configured at the profile level maintained in the new directory structure for analog projects? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 What happens when I convert an analog project that uses a design from another project or from another location? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 What should I do if the schematic for a converted analog project uses FILESTIM n parts from the SOURCE library? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 Design Entry HDL libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 Reference Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 Local libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 PSpice model libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 The cds.lib file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 Encrypting PSpice Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 Using PSpiceEnc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 Using Model Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 722Simulation examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 Chapter overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 Example circuit creation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 Using Capture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 Using Design Entry HDL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 Using Design T emplates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 Finding out more about setting up your design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 Running PSpice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 Performing a bias point analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 Using the simulation output file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 Finding out more about bias point calculations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99DC sweep analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 Setting up and running a DC sweep analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 Displaying DC analysis results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 Finding out more about DC sweep analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 T ransient analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 Finding out more about transient analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 AC sweep analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 Setting up and running an AC sweep analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 AC sweep analysis results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 Finding out more about AC sweep and noise analysis . . . . . . . . . . . . . . . . . . . . . . . 122 Parametric analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 Setting up and running the parametric analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 Analyzing waveform families . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 Finding out more about parametric analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 Performance analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134 Finding out more about performance analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136Part two: Design entry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1383Preparing a design for simulation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 Chapter overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 Checklist for simulation setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 T ypical simulation setup steps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 Advanced design entry and simulation setup steps . . . . . . . . . . . . . . . . . . . . . . . . . 141 When netlisting fails or the simulation does not start . . . . . . . . . . . . . . . . . . . . . . . . 142 Using parts that you can simulate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143 Vendor-supplied parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144 Passive parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152 Breakout parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153 Behavioral parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154 Simulating asymmetric parts in PSpice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155 Simulating homogenous parts in PSpice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156 Specifying values for part properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 Using global parameters and expressions for values . . . . . . . . . . . . . . . . . . . . . . . . . . 158Global parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158 Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162 Defining power supplies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170 For the analog portion of your circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170 For A/D interfaces in mixed-signal circuits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170 Defining stimuli . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172 Analog stimuli . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172 Digital stimuli . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176 Things to watch for . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178 Unmodeled parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178 Unconfigured model, stimulus, or include files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182 Unmodeled pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184 Missing ground . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184 Missing DC path to ground . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1854Creating and editing models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187 Chapter overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187 What are models? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189 How are models organized? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190 Model libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190 Model library configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191 Global vs. design vs. profile models and libraries . . . . . . . . . . . . . . . . . . . . . . . . . . 191 Nested model libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192 PSpice-provided models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193 Model library data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193 Device characteristic curves-based models vs. Template-based models . . . . . . . . 195 T ools to create and edit models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197 Ways to create and edit models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198 Using the Model Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200 Ways to use the Model Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201 Running the Model Editor alone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202 Starting the Model Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203 Creating models using the Model Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203 Creating models based on device characteristic curves . . . . . . . . . . . . . . . . . . . . . 203Creating models based on PSpice templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209 Importing an existing model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212 Enabling and disabling automatic part creation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213 Running the Model Editor from the schematic editor . . . . . . . . . . . . . . . . . . . . . . . . 215 Model creation examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218 Example: Creating a PSpice model based on device characteristic curves . . . . . . . 219 Example: Creating template-based PSpice model . . . . . . . . . . . . . . . . . . . . . . . . . . 228 Editing model text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234 Example: editing a Q2N2222 instance model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236 Using the Create Subcircuit Format Netlist command (Capture only) . . . . . . . . . . . . . . 237 Changing the model reference to an existing model definition . . . . . . . . . . . . . . . . . . . 239 Reusing instance models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240 Reusing instance models in the same schematic . . . . . . . . . . . . . . . . . . . . . . . . . . 241 Making instance models available to all designs . . . . . . . . . . . . . . . . . . . . . . . . . . . 241 Configuring model libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243 The Configuration Files tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244 How PSpice uses model libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245 Adding model libraries to the configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248 Changing the model library scope from profile to design, profile to global, design to global and vice versa . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249 Changing model library search order . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250 Changing the library search path . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252 Handling smoke information using the Model Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . 254 Adding smoke information to PSpice models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254 Creating template-based PSpice models with smoke information . . . . . . . . . . . . . . 256 Using the Model Editor to edit smoke information . . . . . . . . . . . . . . . . . . . . . . . . . . 256 Examples: Smoke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257 Adding smoke information to the D1 diode model . . . . . . . . . . . . . . . . . . . . . . . . . . 257 Adding smoke information to the OPA_LOCAL operational amplifier model . . . . . . 259 Smoke parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260 Diode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261 Bipolar Junction Transistors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262 Magnetic Core . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264 Ins Gate Bipolar T ransistor (IGBT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264 Junction FET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266 Operational Amplifier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268MOSFET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270 Voltage Regulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271 Darlington T ransistor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2735Creating parts for models. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275 Chapter overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275 What’s different about parts used for simulation? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276 Ways to create parts for models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277 Preparing your models for part creation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279 Starting the Model Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280 Using the Model Editor to create parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281 Batch mode of part creation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281 Interactive mode of part creation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281 Creating Design Entry T ool parts for all models in a library . . . . . . . . . . . . . . . . . . . . . . 282 Using batch mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282 Using interactive mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284 Setting up automatic part creation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290 Creating parts in the batch mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290 Creating parts using interactive mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296 Basing new parts on a custom set of parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300 Editing part graphics (Capture only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303 How Capture places parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303 Defining grid spacing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304 Attaching models to parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306 MODEL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306 Defining part properties needed for simulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308 PSPICETEMPLATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310 IO_LEVEL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319 MNTYMXDL Y . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320 PSPICEDEFAULTNET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3216Analog behavioral modeling. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323 Chapter overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323 Overview of analog behavioral modeling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324 The ABM part library file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325 Placing and specifying ABM parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326 Net names and device names in ABM expressions . . . . . . . . . . . . . . . . . . . . . . . . . 326 Forcing the use of a global definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327 ABM part templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328 Control system parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329 Basic components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332 Limiters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333 Chebyshev filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334 Integrator and differentiator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 338 T able look-up parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 339 Laplace transform part . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 344 Math functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 348 ABM expression parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 349 An instantaneous device example: modeling a triode . . . . . . . . . . . . . . . . . . . . . . . 353 PSpice-equivalent parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 356 Implementation of PSpice-equivalent parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 357 Modeling mathematical or instantaneous relationships . . . . . . . . . . . . . . . . . . . . . . 358 Lookup tables (ET ABLE and GT ABLE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362 Frequency-domain device models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 364 Laplace transforms (LAPLACE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 364 Frequency response tables (EFREQ and GFREQ) . . . . . . . . . . . . . . . . . . . . . . . . . 366 Cautions and recommendations for simulation and analysis . . . . . . . . . . . . . . . . . . . . . 369 Instantaneous device modeling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 369 Frequency-domain parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 370 Laplace transforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 370 T rading off computer resources for accuracy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 374 Basic controlled sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375 Creating custom ABM parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375。
第三次课程 PSpice快速入门1

第三次课程PSpice快速入门第一节PSpice开发环境本节通过一个简单的实例,逐步介绍PSpice的开发环境和使用方法一、启动Capture CIS点击开始->程序->Orcad Family Release 9.2->Capture CIS,启动仿真界面。
二、建立新工程点击菜单命令File/New/Project,图1或直接用工具栏上的快捷按钮。
弹出图3所示的对话框。
图2三、设置新工程文件的名称、路径以及所使用的模板图3图3中各项的含义如下:Name:工程文件名,可键入新建的设计项目名称。
Analog or Mixed A/D Project:所创建的工程可以进行模拟量仿真或模数混合仿真,仿真通过后也可以进行印制电路板的自动和手动布局布线。
本课程之介绍所绘制的电路图如何进行PSpice电路模拟,因此应选此项。
PC Board Wizard:所创建的工程可以直接进行印制电路板的布局布线,也可以选择相关选项进行模数混合仿真。
Schematic:所创建的工程只能设计原理图。
Location:选择新建工程文件的存放路径。
必须是已有的路径,此处无法自己创建新路径。
设置好后,单击OK按钮,出现图4所示界面,其中各项的含义如下:图4Create based upon an existing project:所创建的工程是基于已有的工程,这样选择已有工程后,新建工程可以再原有基础上进行修改。
Create a blank project:创建一个空白工程,相当于要在一张空白图纸上画图。
图5创建的空白工程包括三个窗口“SCHEMATIC1:PAGE1”窗口显示了一张空白的图纸,可以再图纸上绘制自己的电路图。
若没有工具栏,可单击“SCHEMATIC1:PAGE1”窗口,使其成为活动窗口,就会出现工具栏。
左下方“Session Log”窗口显示软件执行任务中的有关信息,在仿真中出现的错误也在此窗口显示。
PSpice使用教程

用于分析电路的频率响应和交流性能参数。
模拟分析类型
03
参数扫描分析可以应用于直流分析、交流分析和瞬态分析等模拟类型。
01
参数扫描分析是一种用于研究电路性能对电路元件参数变化的敏感性的方法。
02
通过在一定范围内扫描参数值,可以观察电路性能的变化,从而优化电路设计。
参数扫描分析
1
2
3
噪声分析是一种用于研究电路中噪声源及其对电路性能影响的模拟方法。
PSPICE常见问题与解决方案
A
B
C
D
如何解决仿真错误
错误信息查看
首先需要仔细查看仿真错误信息,了解错误类型和原因。
参数设置检查
检查仿真参数设置是否合理,如仿真时间、步长等。
电路图检查
检查电路图的连接是否正确,元件值是否设置正确,以及元件的封装形式是否符合要求。
软件版本兼容性
确保使用的PSPICE软件版本与电路设计兼容。
在PSPICE界面右上角点击“关闭”按钮,或者选择“文件”菜单中的“退出”选项来退出PSPICE。
启动与退出PSPICE
包含文件、编辑、查看、项目等常用命令。
菜单栏
PSPICE界面介绍
提供常用命令的快捷方式。
工具栏
用于绘制和编辑电路图。
电路图编辑区
显示当前选中元件或电路的属性。
属性窗口
包含各种元件供选择。
通过噪声分析,可以确定电路中噪声的主要来源,并优化电路设计以减小噪声影响。
噪声分析可以应用于交流分析和瞬态分析等模拟类型。
噪声分析
温度分析
01
温度分析是一种用于研究电路性能随温度变化的模拟方法。
02
通过温度分析,可以了解电路在不同温度下的性能表现,并优化电路设计以适应不同的工作温度范围。
Pspice使用指南

图 16-7 分析类型对话框
2. 点选你想要模拟的项目,然后进入个别设定视窗。常用的模拟内容有:
AC Sweep:交流扫描分析(包括躁声分析),要找频率响应用这项。 DC Sweep:直流扫描分析,一般的 I-V 特性用这项。 Bias Point Detail:直流工作点分析即可节点的偏压分析,通常一定选,是确省
可以做扫描的不是只有直流电压或交流电压,还有所列的其它参数, 图右必须键入电 源名称或全局参数名,扫描范围及间隔。假如要扫描的参数不只一个,则可使用 Nested Sweep 设定第二个扫描。
3. 进入 DC Sweep 设置窗口后,选 Global Parameter(全局参数)和 Linear(线性扫 描),在 Name 文本框后第一格内写入全局参数名 var,将 Start Value(扫描初长) 设为 1,End Value(扫描终值)设为 1k,Increment(扫描步长)设为 10。单击[OK] 结束操作。如图 16-8。
步骤:1. 绘制电路原理图(所要绘制图如 16-12 所示)
图 16-12 电路原理图
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
查找库文件
a
51
5.3
变更鼠标选取对象方式 部分选中、
还是全部选中
a
52
Select选项卡
a
53
5.4 修改对象属性
存在元件修改 属性方法1
a
54
设置电源属性
a
55
刚添加的电阻, 处于悬浮态,
右键菜单
a
56
属性窗体
a
57
PartValue 元件值 Part Reference 元件序号 Primitive 是否为最底层元件 Graphic 元件外观 Packaging 封装内元件选择 PCB Footprint 元件封装外形 Power Pins Visible 显示电源管脚
绘制总线
a
68
总线连接线(bus entry)不具有电气意 义;
应用网络标号进行导线连接;
a
69
总线应用实例
a
70
5.8 绘制图形
直折矩圆弧 文 线线形形线 字
a
71
绘直线
a
72
绘折线
a
73
绘矩形
a
74
绘椭圆
a
75
绘弧线
a
76
放置文字
a
77
点击Picture
a
78
插入图片
a
79
OrCAD-PSpice混合电路仿真
a
1
1 OrCAD PSpice简介
1.1 SPICE的起源
Simulation Program with Integrated Circuit Emphasis 美国加州伯克莱大学雏形 EDA(Electronic Design Automation)厂 家OrCAD Spice→ OrCAD PSpice A/D
.NET 网络连接文件 .ALS 元件连接别名文件 .OLB 元件符号定义文件
.LIB 元件模型定义文件 .PRB 波形文件 .OUT 输出错误信息文件 .DAT 输出结果信息文件
a
7
2 OrCAD Capture
Capture的作用:
绘制电路图 设置仿真要求 与PSpice交互
a
8
2.1 Capture环境
基本分析 高级分析
直流分析
交流分析 时域信号分析
偏压点分析
直流扫描分析
直流灵敏度分析 小信号直流转移分析
交流扫描分析
噪声分析
暂态分析
傅立叶分析
温度分析
参数分析
蒙地卡罗分析
灵敏度/最差情况分析
aБайду номын сангаас
5
1.4 OrCAD应用术语
1、电气对象
元件(parts)、连线(wires)、接点 (junctions)、总线(buses)、直线 (lines)、文字(text)
a
2
OrCAD Capture CIS
Layout Plus
PSpice A/D
图1 OrCAD设计环境
a
3
1.2 OrCAD PSpice的特点
集成度高 完整的Probe观测功能 完整的仿真功能 模块化和层次化设计 模拟行为模块 具有数字和模拟仿真功能 元件库扩充功能
a
4
1.3PSpice的仿真分析
启动初始环 境
a
9
建立新项目
a
10
a
11
生成新图纸
a
12
最大化
a
13
菜单栏 主工具栏
PSpice工具栏
绘图工具栏
a
14
2.2 基本操作
元件选择 和右键菜
单
a
15
项目管理显示
a
16
层次结构
a
17
3 环境设置
属性设置菜单
a
18
图纸大小菜单
a
19
参考网格设置
a
20
属性选项菜单
a
21
a
58
Graphic &Packing
a
59
Graphic &Packing
a
60
电路效果
a
61
User Properties
a
62
5.5 元件显示属性
显示控制
a
63
5.6 网络别名
设置网络别名
a
64
网络别名窗体
a
65
添加网络别名
a
66
左键双击带有 别名的连线
a
67
5.7 绘制总线BUS
应用元件库
analog.olb source.olb eval.olb
a
41
a
42
a
43
a
44
a
45
a
46
5 高级电路图绘制技巧
5.1 图纸的打开
Edit Page
a
47
5.2 新增元件库
添加元件库
a
48
寻找元件库 路径
a
49
方法2 Place Part Add Library
a
50
设计样式选项
a
22
4 第一张电路图
a
23
a
24
a
25
a
26
a
27
a
28
a
29
a
30
a
31
a
32
a
33
a
34
a
35
a
36
a
37
a
38
a
39
a
40
习题
绘制如下电路
CMOS差动放大电路 OP-Amp全波整流电路 OP-Amp低通滤波电路 TTL IC 的脉冲产生电路 IC 555 脉冲波发生电路
2、元件、元件库和模型
元件:实现某特定功能的电气连接集合 元件库:.olb文件 模型:Property Editor/PspiceTemplate
3、网络标号
网络别名、跨页连接端口、层次输入输出端口、 电源对象名、隐藏的管脚
a
6
1.5 文件系统
.DSN 电路文件 .OPJ 项目文件 .CIR 电路设置情况文件
5.9 元件自动编号
某设计中包含 两张图纸
a
80
PAGE1(OLD)
a
81
PAGE2(OLD)
a
82
a
83
自动标号窗体
a
84
PAGE1(NEW)
a
85
PAGE2(NEW)
a
86