PSpice 8.0仿真教程
- 格式:pdf
- 大小:5.07 MB
- 文档页数:52
PSpice仿真电路的应用技巧应网友之约将Pspice8.0的一些基本使用方法提供给大家,我们共同探讨;希望对大家有所帮助,由于本人水平有限还望谅解,只当抛砖引玉吧,不妥之处请予以指出。
一、先了解Pspice8.0的使用基本程序项1、Schematics:绘制、修改电路原理图生成*。
CIR文件,或打开已有的*。
CIR文件;调用电路分析程序进行分析,并可调用图形后处理程序(Probe)查看分析结果。
2、Pspice A/D:打开已有的文本文件(*。
CIR)进行文本规定的分析,分析结果存入*。
DAT 文件中。
Schematicscs程序项的菜单中有运行Psoice程序的命令。
3、Parts:元件编辑程序,新建或修改元件的特性,模型。
4、Probe:图象后处理,可观察分析结果的图形。
Schematicscs程序项的菜单中有运行Prode程序的命令5、Stmed(Stimlus Editor)用于建立独立信号激励源和修改已建立的激励源波形。
6、Optimizer:Psoice优化设置程序7、Texte dit:文本编辑器。
8、PCB:上面8项是Psoice的基本程序,他们之间是相互关联的,最主要的是Schematicscs项,使用绘图程序项Schematicscs绘制好电路原理图,设置好相关模拟运行参数就可以对所画电路原理图进行模拟仿真了。
二、绘制电路原理图绘制电路原理图是运行Pspice程序的第一项作业,使用绘图工具能很方便的进行原理图的绘制。
1、打开Schematicscs项Schematicscs项是pspice应用程序的主窗口,可调用其它5个基本程序项。
下面是Schematicscs窗口的界面,主要工具用途已标明在案图上。
2、绘图常用命令项:Schematicscs程序项窗口有11个常用命令项:1)FIile(文件)--------------------------------省略2)Edit(编辑)---------------------------------省略3)Draw(绘图)和窗口工具一样--------省略4)Navigate(导航)---------------------------省略5)View(查看)-------------------------------省略Options(任选项)给出绘图参数设置命令,用来设置显示和打印环境。
Harbin Institute of Technology专业综合实践课程(论文)设计题目:Proteus V8的特殊调试与诊断功能的开发摘要—本文主要以Proteus8.0版本的功能及使用为基础,主要介绍工程的创建、编译器的配置、基本调试等一些基本问题,并探讨Proteus8.0的一些新特点新功能,最后与Proteus7.0做出对比得出结论。
关键词—Proteus8.0,Proteus7.0;1.简介Proteus软件是英国Lab Center Electronics公司出版的EDA工具软件(该软件中国总代理为广州风标电子技术有限公司)。
它不仅具有其它EDA工具软件的仿真功能,还能仿真单片机及外围器件。
它是目前比较好的仿真单片机及外围器件的工具。
虽然目前国内推广刚起步,但已受到单片机爱好者、从事单片机教学的教师、致力于单片机开发应用的科技工作者的青睐。
同时,Proteus还是一个巨大的教学资源,可以用于模拟电路与数字电路的教学实验、单片机与嵌入式系统的教学实验、微控制器系统的综合实验、创新实验与毕业设计等。
Proteus可以与广大学生相结合,打造成一个口袋实验室。
在Proteus家族里,Proteus8.0是目前较新的版本(最新的是8.1版),Proteus8.0版本的出现具有重要的意义,它也与其他版本有着很明显的不同,再此进行详细介绍Proteus8.0版本的使用过程。
2.使用过程2.1创建新工程假定此时已安装了Proteus8.0版本。
选择并点开Proteus8Professional,首先需要新建一个工程,由于本教程是与PCB绘制教程相关联的,所以此时的工程是一个带有原理图、PCB和源代码编译部分的工程。
点击File,如图,选择New Project,将出现新建工程向导部分,在此可以设置文件名(Name)和保存路径(Path)点击Next,在下一页的顶部选项卡中,选择“从选中的模板中创建原理图”(Create aSchematic from the selected template),在此可选择默认(DFAULT)。
目的:帮助初学者了解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、点选画线工具后,即可看到一个铅笔状的指示。
将画笔移到起始端,按鼠标左键,开始引线,要转弯时可按以下鼠标左键,画笔移到终点后在按以下鼠标左键,完成接线。
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。
Pspice8.0软件的使用一.概述:Pspice即Personal SPICE是在PC机上使用的SPICE程序,SPICE是Simulation Program with Integrated Circuit Emphasis的缩写,意思是侧重于集成电路的模拟程序。
Pspice最初是专门用来进行模拟电路仿真的,现在Pspice不仅可以对模拟电路进行仿真,而且还可以对数字电路进行仿真。
Pspice是MicroSim 公司出版的一种软件,Pspice产生于1984年,经过20多年的发展完善,Pspice 现在已经成为一个具有很高使用价值的计算机辅助设计的工具。
应用Pspice能在实际电路制作前对电路的各种性能,如直流、交流、瞬态等特性进行分析,并可以从元器件变化、温度变化等方面对电路造成的影响进行容差分析和最坏情况分析;对一些较难测量的情况,如噪声也能进行分析,在Pspice 8.0中还可以对电路设计进行优化,从已设计好的电路得到相应的印刷电路版图,为用户带来更大的方便。
目前Pspice已成为世界范围内大学、研究机构和各公司普遍使用的电路分析程序,目前在通用性、模拟精度等方面还没有超过SPICE的。
常用的电子线路CAD软件的仿真精度多以SPICE为比照标准。
高校学生学习Pspice软件,不仅可为电路课程设计及毕业设计提供有力的工具,更为今后从事相关领域的设计和仿真打下良好的基础。
Pspice8.0实际上是个软件包,整个分析过程通过软件包中的各个软件协调完成。
Pspice8.0包含9个组成部分:(1)DesignLab Design Manager 设计管理程序。
通过它对开发项目进行管理。
(2)MicroSim Schematics 电路图输入程序。
通过它,采用电路原理图输入方式输入电路,并可以编译它转化生成电路网单文件,以进行后面的仿真模拟。
(3)Pspice A/D 电路仿真程序。
通过它,可以对电路进行直流工作点的分析、直流转移特性分析、传输函数的计算、交流小信号分析、交流小信号的噪声分析、瞬态分析、傅里叶分析、直流灵敏度分析、温度分析、最坏情况分析和蒙特卡罗统计分析等,同时它还可以对数模混合电路进行仿真。
目录1. 简介 (2)1.1 PSPICE中的电路描述 (3)1.2 PSPICE6.3集成环境 (7)1.3 PSPICE中的有关规定 (10)2. 实例 (13)2.1 功率放大器电路仿真例题及练习 (13)2.2 电路仿真软件PSPICE的应用 (16)2.3 Pspice8.0快速入门手册 (19)2.4 基于OrCAD/PSpice9的电路优化设计 (28)2.5 利用OrCAD/PSpice A/D仿真技术 (32)2.6 OrCAD/PSpice9偏压点和直流扫描分析 (34)2.7 DC Sweep 直流扫描分析 (41)2.8 OrCAD/PSpice9的暂态分析 (41)2.9 OrCAD/PSpice9直流扫描分析的应用—二极管V-I特性曲线 (44)2.10 修改D1N4002的仿真参数 (49)2.11 OrCAD/PSpice9直流扫描分析的应用—三极管Vce-Ib输出特性曲线 (51)1. 简介PSPICE是由SPICE发展而来的用于微机系列的通用电路分析程序。
SPICE(Simul-ation Program with Integrated Circuit Emphasis)是由美国加州大学伯克莉分校于1972年开发的电路仿真程序。
随后,版本不断更新,功能不断增强和完善。
1988年SPICE被定为美国国家工业标准。
目前微机上广泛使用的PSPICE是由美国MicroSim公司开发并于1984年1月首次推出的。
SPICE有工业版(Production version)和教学版(Evaluation version)之分,本书介绍1986年8月推出的PSPICE6.3版本(MicroSim Evaluation Version 6.3,即教学版,有时也称为学生版)。
它能进行模拟电路分析、数字电路分析和模拟数字混合电路分析。
PSPICE6.3可以对众多元器件构成的电路进行仿真分析,这些元器件以符号、模型和封装三种形式分别存放在扩展名为slb、lib和plb三种类型的库文件中。
PSpice8.0仿真上机指导直流扫描分析上机说明:存盘文件请不要用中文名,可用英文或数字或其组合仿真实验1 直流工作点分析一、计算图示电路中R1上的电流二、按要求绘制电路图1、取元件:菜单Draw|Get New Part(工具栏上望远镜图标)VDC-直流电压源IDC-直流电流源 R-电阻EGND-接地2、修改参数:双击元件进行参数修改3、设置仿真参数:菜单Analysis|setup4、输出结果:点击工具栏上的V(显示电压)I图标(显示电流)仿真实验2 直流灵敏度分析一、电路分析 灵敏度计算公式: 1、 元件灵敏度 XT X T S ∆∆=),(2、 相对灵敏度100100),(),(⨯∆⨯∆=⨯=X X T XX T S X T S本实例计算公式0625.0)21(21)1,(2-=+-=∆∆=Vin R R R R Vo R Vo S1875.0)21(12)2,(2=+=∆∆=Vin R R R R Vo R Vo S二、电路仿真1、绘制电路图、设置参数3、 直流灵敏度分析参数设置设置完后运行!出现4的界面4、查看输出文件5、输出文件DC SENSITIVITIES OF OUTPUT V(out)元件名元件参数值元件灵敏度(S)相对灵敏度(S N) ELEMENT E LEMENT E LEMENT N ORMALIZEDNAME V ALUE S ENSITIVITY S ENSITIVITY(VOLTS/UNIT) (VOLTS/PERCENT)R_R1 3.000E+00 -6.250E-02 -1.875E-03R_R2 1.000E+00 1.875E-01 1.875E-03V_Vin 1.000E+00 2.500E-01 2.500E-03仿真实验3 直流扫描分析一、直流扫描分析原理【定义】:在指定的范围内,电压源(电流源、温度、模型参数、全局参数)参数发生步进变化时,计算电路直流输出变量的相应变化曲线。
1 PSPICE软件的简介与使用1.1 PSPICE的发展与现状根据实际电路(或系统)建立模型,通过对模型的计算机分析、研究和试验以达到研制和开发实际电路(或系统)的目的,这一过程,称为计算机仿真(Simulation)的高效、高精度、高经济性和高可靠性,因此倍受业界喜爱。
在设计或分析各类开关电源时,计算机仿真起了重要的作用。
数字仿真手段可用以检验设计的系统是否满足性能要求。
应用数字仿真可以减少电路实验的工作,与电路实验相比,计算机仿真所需时间要少得多,并可以更全面、更完整地进行,以期改进设计质量。
目前流行的许多著名软件如PSpice、Icape等,它们各自都有其本身的特点。
而随着Windows的全面普及,PSpice推出了Windows版本,用户不用象DOS版那样输入数据网表文件,而是图形化,只需选择相应的元器件的图标代号,然后使用线连接就可以自动生成数据网表文件,整个过程变得直观简单。
因此它已广泛应用于电力电子电路(或系统)的分析中。
用于模拟电路仿真的SPICE(Simulation Program with Integrated Circuit Emphasis)软件于1972年由美国加州大学伯克利分校的计算机辅助设计小组利用FORTRAN语言开发而成,主要用于大规模集成电路的计算机辅助设计。
SPICE 的正式实用版SPICE 2G在1975年正式推出,但是该程序的运行环境至少为小型机。
1985年,加州大学伯克利分校用C语言对SPICE软件进行了改写,1988年SPICE被定为美国国家工业标准。
与此同时,各种以SPICE为核心的商用模拟电路仿真软件,在SPICE的基础上做了大量实用化工作,从而使SPICE成为最为流行的电子电路仿真软件。
PSPICE则是由美国Microsim公司在SPICE 2G版本的基础上升级并用于PC 机上的SPICE版本,其中采用自由格式语言的5.0版本自80年代以来在我国得到广泛应用,并且从6.0版本开始引入图形界面。
PSpice仿真电路的应用技巧应网友之约将Pspice8.0的一些基本使用方法提供给大家,我们共同探讨;希望对大家有所帮助,由于本人水平有限还望谅解,只当抛砖引玉吧,不妥之处请予以指出。
一、先了解Pspice8.0的使用基本程序项1、Schematics:绘制、修改电路原理图生成*。
CIR文件,或打开已有的*。
CIR文件;调用电路分析程序进行分析,并可调用图形后处理程序(Probe)查看分析结果。
2、Pspice A/D:打开已有的文本文件(*。
CIR)进行文本规定的分析,分析结果存入*。
DAT 文件中。
Schematicscs程序项的菜单中有运行Psoice程序的命令。
3、Parts:元件编辑程序,新建或修改元件的特性,模型。
4、Probe:图象后处理,可观察分析结果的图形。
Schematicscs程序项的菜单中有运行Prode程序的命令5、Stmed(Stimlus Editor)用于建立独立信号激励源和修改已建立的激励源波形。
6、Optimizer:Psoice优化设置程序7、Texte dit:文本编辑器。
8、PCB:上面8项是Psoice的基本程序,他们之间是相互关联的,最主要的是Schematicscs项,使用绘图程序项Schematicscs绘制好电路原理图,设置好相关模拟运行参数就可以对所画电路原理图进行模拟仿真了。
二、绘制电路原理图绘制电路原理图是运行Pspice程序的第一项作业,使用绘图工具能很方便的进行原理图的绘制。
1、打开Schematicscs项Schematicscs项是pspice应用程序的主窗口,可调用其它5个基本程序项。
下面是Schematicscs窗口的界面,主要工具用途已标明在案图上。
2、绘图常用命令项:Schematicscs程序项窗口有11个常用命令项:1)FIile(文件)--------------------------------省略2)Edit(编辑)---------------------------------省略3)Draw(绘图)和窗口工具一样--------省略4)Navigate(导航)---------------------------省略5)View(查看)-------------------------------省略Options(任选项)给出绘图参数设置命令,用来设置显示和打印环境。
Display Options----设置柵格显示:柵格间距、状态行、标尺等项。
Page Size------------页面选择。
Auto-Repear--------自动恢复当前操作Auto-Naming--------自动追加文件名Set Display Level选-择屏幕或打印机上显示内容Editor Configuration----默认设置Pan Zoom--------------缩放Recstricted Operations----受限制的操作Tnanslatore------------翻译程序7)Analysis(分析)Electrical Rule Check---对绘制完成的电路图进行电路检查和分析。
Create Netlist-------------创建当前图形的网表文件,Setup----------------------选择电路分析类型,设置电路分析参数。
Libray and Include Files---查看库Simulate------------------执行模拟分析Probe Setup-------------设置波形输出的方式Run Probe---------------运行Probe程序,查看模拟分析结果的波形。
Examine Netlist---------检查电路的网表文件Examine Output--------查看输出的数据文件8)Tools(工具)-----省略9)Markers(标记)Mark Voltage/level-----------标示图中的电压或数字信号(必须放在连线或元件管脚处)Mark Voltage Differential---标示两个点的电压差由一对标号±组成。
(必须放在连线)Mark Cnrrent into Pin-------标示电流(必须放在元件管脚处)Mark Advanced--------------显示标记列表Clear AII----------------------删除图中的标记Show AII---------------------将用Prode显示的波形更新为所有带标记点的波形Show Selected----------------将用Prode显示的波形更新为当前被选择的标记点的波形10)Window(窗口)----省略11)Help(帮助)--------省略窗口界面和常用命令就介绍这些主要的,其他常用命令就不一一说明。
下面一节讲电路原理图的绘制。
3、打开Schematicscs项进行电路原理图的绘制,绘制原理图由下面7条主要步奏组成:1)新建图纸,(调整图纸尺寸可省略)。
2)从模型库中提取所需原器件并放入图纸上打开图库,出现库窗口进行提取;或选择所需元件名称用提取键提取,便于查找可选择库名查找键进行查找。
3)进行原器件连接。
连接线的绘制如图,根据Options(任选项)里Display Options----设置柵格显示:柵格间距、状态行、标尺等项如下面图进行选择。
可画直角线和斜线(注意最好选用有网格)4)修改原器件参数和标识(同一原件标识编号不能相同)设置元件参数编制元件序号原器件旋转角度调整5)创建当前原理图名称存盘。
---省略6)规则检查:对绘制完成的电路图进行电路检查和分析(如有提示错误,根据提示查找更改)7)创建当前图形的网表文件必须在存盘后才能用电路检查命令进行检查分析建立文本文件,两项通过后是为完成原理图的绘制,否则根据提示进行电路修改,直到通过验证。
刚绘制的6SN7电路原理图至此绘制原理电路图完成下一节讲讲运行模拟前的相关设置。
三、运行模拟仿真相关分析参数设置保证电路特性仿真顺利进行,必须设置好对电路所要分析的项目参数。
下面是分析参数项窗口:模拟电路涉及的主要分析项目:1)直流工作点分析:(Bias Point Deteil)对电路的直流偏值状态进行分析计算。
(缺省设置)2)交流小信号频率特性分析(AC Sweep):对电路进行频率特性及增益等进行分析参数的设置窗口:3)瞬间特性分析、傅里叶分析(Transeient、Founlier Analysis)瞬间分析是在给定的输入激励信号作用下,计算电路输出的瞬间响应。
(以波形反映)设置参数窗口:4)参数扫描分析(Peremetric Analysis)对指定的每个参数变量变化值进行电路分析,5)直流特性扫描分析(DCSweep)是指电路中某个元件参数(称为自变量)在一定范围内变化,对自变量的每个取值,计算电路的直流偏值特性并显示分析结果(称输出变量)。
4、5项分析具体的在实际模拟图例中再讲解。
以上5个分析设置项对模拟电路进行模拟仿真分析是经常用到的,尤其是AC分析(电路的频率特性,增益)、瞬间分析(查看电路输出波形)、傅里叶分析(查看谐波及失真度)和参数扫描分析(元件参数变化带来的电路输出波形、失真等变化)。
这是电路模拟仿真必不可少的参数分析设置下节讲讲输入激励信号原和设置四、常用的激励信号源Pspice软件元件库中提供多种信号激励源,用于AC、瞬间分析的有脉冲信号源、正玄信号源、分段线性信号源、指数信号源、调幅信号源,我们经常用到的也就是VSIN--正玄信号源和VPULSE--脉冲信号源两种,可在库名SOURCE的库中提取。
这两个常用的激励源符号:VSIN激励信号源参数设置描述:DC-----------直流电压值(V)AC-----------用于交流小信号分析时设置电压值VOFF---------偏置值默认值=0VAMPL--------峰值振幅(V)设置输出电压FREQ---------频率(HZ):频率设置TD-----------延迟时间(秒)默认值=0DF-----------阻尼因子(1/秒):默认值=0PHASE--------相位(度):频率相位设置,默认值=0VPULSE激励信号源参数设置描述:DC-----------直流电压值(V)AC-----------交流信号电压值(V)V1-----------起始电压(V)V2-----------脉冲电压(V)TD-----------延时时间(秒)TR-----------上升时间(秒)TF-----------下降时间(秒)PW-----------脉冲宽度(秒)PER----------脉冲周期(秒)其他激励源可参考相关资料。
五、查看输出波形1、Prode程序项有2种打开方式;a,选择Prode程序项的图标打开。
b,完成绘制电路原理图后,运行模拟仿真命令进行模拟运算后调出Prode程序直接显示波形。
2、Prode程序窗口的功能键。
3、常用命令项1)Filo(文件)---省略2)Edit(编辑)-----省略3)Trece(输出波形设置)看图Add-增添输出波形,弹出输出波形列表从中选择输出变量Delete AII-------------删除窗口输出波形Undelete---------------撤消删除Forier-----------------傅里叶变换Perfprmance Analysis---对多个分析程序的输出进行分析Macro------------------设置宏定义Goal Functions---------建立、修改和评估输出波形的目标函数值Eval Goal Functions----报告输出波形的目标函数值4)Plot(绘图仪)X Axis Settings------X坐标设置Y Axis Settings------Y坐标设置Add Y Axis-----------增加Y坐标Delete Y Axis--------删除Y坐标Add Plot-------------增加图形Delete Plot----------删除图形Unsync Plot----------非同步图形Digital Size---------数字信号大小设置AC-------------------交流分析DC-------------------直流分析Transient------------瞬间分析5)View(查看)---------省略6)Tools(工具)--------省略7)Window(窗口)-------省略X、Y轴坐标值的更改傅里叶分析(谐波分析).jpg(70KB)六电子管数据库的建立Pspice8.0的数据模型库中没有电子管模型数据需要自己进行安装,又因为此软件是评估版有对建库的限制只能增加一个数据模型库,且新增库中只能建立20个原器件数据模型,为此提供数据模型(.lib)和符号模型(.slb)两个文件供大家下载练习使用。