关于PSPICE仿真软件中如何使用PARAMETERS参数分析教程
pspice暂态仿真+交流仿真辅导讲义 附常见错误提示

电路的暂态分析(TRAN分析)一、暂态分析语句暂态分析也称瞬态分析,是PSpice仿真分析中运用最多、最复杂、最耗时的分析。
暂态分析是一种非线性时域分析,它可以在暂态分析电源被设置后(或没有暂态分析电源,只是利用储能元件的初值),计算出电路的各输出变量(节点电压、支路电流等)随时间变化的规律。
在暂态分析中,需要计算暂态偏置点。
计算暂态偏置点的方法与计算直流偏置点的方法不同,直流偏置点被看作固定偏置点。
对于固定偏置点(无交流信号)的分析计算,电路电压的初值对于偏置点和线性参数没有影响,而且电路中的电容被看成开路,电感被看成短路。
但对于暂态偏置点(有交流小信号),在计算偏置点和非线性元件的小信号参数时,节点电压和支路电流的初值也考虑在内。
因此有初值的电容和电感也被看作是电路的一部分而保留下来。
暂态分析语句格式:输出偏置点数据(</OP>):.TRAN语句中带有可选项“/OP”后缀时,输出有关暂态偏置点的详细数据,这是因为在暂态分析时计算的偏置点数据和直流的数据是不同的,暂态分析的数据包含电路的初始条件。
输出分析数据的间隔(print-step value):打印或绘图输出的时间增量。
由于暂态分析是变步长计算,故输出的数据量是很大的,合理地选择输出分析数据的间隔能够使合适的数据输出到输出文件。
暂态分析终止时间(final-time-value):该时间即为暂态分析终止时间。
输出数据开始时间(<no-print value>):该项是输出数据(打印或绘图)的开始时间,即从此时间到“暂态分析终止时间”这段时间内输出数据。
若缺省该项,则程序默认开始时间为0.0。
注意,无论“输出数据开始时间”为多少,暂态分析都从时间为零开始,只不过在时间为零到输出数据开始时间这段时间间隔里没有数据输出而已,而且这段时间间隔内的暂态分析数据也没被存储起来。
分析步长上限(<step ceiling value>):该项是分析计算时的最大步长,该项缺省时其默认值为(final-time-value —no-print value)/50.0和print-step-value值中的较小值。
详细版PSpice使用教程.ppt

元件:实现某特定功能的电气连接集合
元件库:.olb文件 模型:Property Editor/PspiceTemplate
3、网络标号
网络别名、跨页连接端口、层次输入输出端口、 电源对象名、隐藏的管脚
最新.课件
6
1.5 文件系统
.DSN 电路文件
.OPJ 项目文件
.CIR 电路设置情况文件最Fra bibliotek.课件2
OrCAD Capture CIS
Layout Plus
PSpice A/D
图1 OrCAD设计环境
最新.课件
3
1.2 OrCAD PSpice的特点
集成度高 完整的Probe观测功能 完整的仿真功能 模块化和层次化设计 模拟行为模块 具有数字和模拟仿真功能 元件库扩充功能
最新.课件
最新.课件
33
最新.课件
34
最新.课件
35
最新.课件
36
最新.课件
37
最新.课件
38
最新.课件
39
最新.课件
40
习题
绘制如下电路
CMOS差动放大电路 OP-Amp全波整流电路 OP-Amp低通滤波电路 TTL IC 的脉冲产生电路 IC 555 脉冲波发生电路
应用元件库
analog.olb source.olb eval.olb
最新.课件
18
图纸大小菜单
最新.课件
19
参考网格设置
最新.课件
20
属性选项菜单
最新.课件
21
设计样式选项
最新.课件
22
4 第一张电路图
最新.课件
23
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。
PSpice16.5教程二(噪声分析、参数分析、温度分析)

4 V-
15
1 OS1
6 OUT
5 OS2 V+
V1
0
15
0
out
0
图 2-5 反相运算放大器
上图所用到的器件信息: 器件
电源 电阻 晶体管 地
模型
V1 V2 V3 R1 R2 U1 0
2、仿真参数设置
模型库
VDC/source VSIN/source R/analog
uA741/opamp 0/source
邮箱:cadence@ / qipingwang@
也可以使用对数坐标显示结果,点选 按钮,就可以得到土 2-10 的结果
1.0V
10uV 0Hz V(OUT)
0.2KHz
0.4KHz
0.6KHz Frequency
2、分析参数的设置
首先点选菜单 Pspice/Edit Simulation,或者点击 ,出现设置参数的界面,如图 2-2 所示。在图 2-2 界面中选择 AC Analysis,设置频率参数,频率范围 1kHz 到 100MHz。 然后点选 Enabled 的小方框,选中噪声分析。并根据图 2-2 所示进行设置。图中的设 置表示将整个电路中的噪声源都集中折算到独立源 V1 处,然后计算在等效的噪声源 的激励下,输出点 V(out)处的产生的噪声。
3、执行 PSpice 程序
图 2-2 噪声分析的参数设置
图 2-2 点击确定后,再点击仿真工具栏中的 ,运行仿真。这样又调出了 PSpice
的界面。选择菜单栏 Trace/Add Trace,或者点击 图标,在“Simulation Output variables”中找到“V(INOISE)”和“V(ONOISE)”,得到输入噪声的波形和输出噪声 的波形,同样还可以通过 Plot/Add Y Axis 增加 Y 轴显示 DB 表示的输入噪声和输出 噪声波形。结果如图 2-3 所示。
PSpice使用教程
用于分析电路的频率响应和交流性能参数。
模拟分析类型
03
参数扫描分析可以应用于直流分析、交流分析和瞬态分析等模拟类型。
01
参数扫描分析是一种用于研究电路性能对电路元件参数变化的敏感性的方法。
02
通过在一定范围内扫描参数值,可以观察电路性能的变化,从而优化电路设计。
参数扫描分析
1
2
3
噪声分析是一种用于研究电路中噪声源及其对电路性能影响的模拟方法。
PSPICE常见问题与解决方案
A
B
C
D
如何解决仿真错误
错误信息查看
首先需要仔细查看仿真错误信息,了解错误类型和原因。
参数设置检查
检查仿真参数设置是否合理,如仿真时间、步长等。
电路图检查
检查电路图的连接是否正确,元件值是否设置正确,以及元件的封装形式是否符合要求。
软件版本兼容性
确保使用的PSPICE软件版本与电路设计兼容。
在PSPICE界面右上角点击“关闭”按钮,或者选择“文件”菜单中的“退出”选项来退出PSPICE。
启动与退出PSPICE
包含文件、编辑、查看、项目等常用命令。
菜单栏
PSPICE界面介绍
提供常用命令的快捷方式。
工具栏
用于绘制和编辑电路图。
电路图编辑区
显示当前选中元件或电路的属性。
属性窗口
包含各种元件供选择。
通过噪声分析,可以确定电路中噪声的主要来源,并优化电路设计以减小噪声影响。
噪声分析可以应用于交流分析和瞬态分析等模拟类型。
噪声分析
温度分析
01
温度分析是一种用于研究电路性能随温度变化的模拟方法。
02
通过温度分析,可以了解电路在不同温度下的性能表现,并优化电路设计以适应不同的工作温度范围。
(2024年)《PSpice使用教程》课件
17
仿真类型选择及参数配置方法
2024/3/26
仿真类型
PSpice支持多种仿真类型,包括直流 分析、交流分析、瞬态分析、蒙特卡 洛分析等,用户可以根据实际需求选 择合适的仿真类型。
参数配置
在选择仿真类型后,用户需要配置相 应的参数,如起始时间、停止时间、 步长、扫描类型等,以确保仿真的准 确性和有效性。
Simulation Program with Integrated Circuit Emphasis
。
2024/3/26
它能够对电路进行直流分析、交 流分析、瞬态分析等,并输出相
应的电压、电流等波形图。
PSpice广泛应用于电子工程、 通信工程、自动化控制等领域。
4
PSpice应用领域
模拟电路设计和分析
18
直流、交流和瞬态仿真应用举例
2024/3/26
直流仿真
直流仿真主要用于分析电路的直流工作点,可以得到电路中各元件的电压和电流值。例如,在模拟电路中, 可以通过直流仿真得到放大器的静态工作点。
交流仿真
交流仿真主要用于分析电路的频率响应,可以得到电路的幅频特性和相频特性。例如,在滤波器设计中,可 以通过交流仿真得到滤波器的频率响应曲线。
2024/3/26
使用高效元件库
选择性能优良的元件库,减少仿真计算量。
定期清理缓存
清理软件缓存和临时文件,释放电脑存储空 间。
29
学习资源和支持渠道
官方教程和文档
提供详细的使用说明和操作步骤。
在线视频教程
通过专业讲师的讲解,深入了解软件功能 。
技术论坛和社区
官方技术支持
与其他用户交流使用心得,分享经验技巧 。
寿命。
仿真软件PSpice学习之五,如何不搭实际电路就能进行参数扫描!
仿真软件PSpice学习之五,如何不搭实际电路就能进行参数扫描!本文由卧龙会成员疯子原创PSpice学习系列(五)——参数扫描分析这一节来讲一下参数扫描分析,话不多说,上图,图1即是我们今天用到的原理图,跟图1前几节用到的原理图是一样的,不同的是多了一个控件,还有三极管B级的下方电阻换成了带参数的,着重介绍一下这里。
首先从Special库里面放置一个叫PARAM的控件,如图1所示,关于库的加载第一节时候已经讲过,这里就不再讲了。
放置完毕后,双击该控件打开属性页面,如图2所示,点击画红框的按钮新建一个属性,在弹出的窗口中Name一栏输入RB1,value一栏随便输入一个值,然后点击OK(我提前建了,所以在截图里面大家会看到有这个参数),然后选中RB1这个属性栏,点击上方Display,在弹出的窗口中Display Format选项中选中Name and Value,然后点击OK,关闭属性标签页,就能看到在原理图页面里PARAMETERS下方出现了我们新建的参数,如图1所示,接着点击R24电阻的value值,将其改为{RB1},一定要注意花括号不能丢了,到这里原理图就完成了。
接下来建立仿真文件,这里我们还采用上一节的AC仿真,在AC仿真的基础上进行参数扫描,打开上一节建立的AC仿真文件,如图3所示,把前面那一栏中的Parametric Sweep选项选中,Sweep variable里面选中Global parameter,然后在Parameter name里面填入RB1,Sweep type下面选择Value list,然后填入11k,22k,33k这三个值,中间用逗号隔开,到这里参数扫描仿真文件就建立完成了,点击确定,回到原理图界面,在输出端放置一个dB Magnitude of Voltage探针,放置方法上一节已经讲过了,这里就不再啰嗦了,放置完毕后,点击仿真,就可以开始仿真了,这里需要注意的是由于执行了参数扫描,同一个trace对应不同参数下面有好几条曲线,所以仿真完毕后,不会自动加载,也就意味着你若是在这里等探针变色才认为是仿真完毕了,那你估计等到睡着都完不图2图3成,正确的做法是我们直接打开波形图(开始仿真的时候就会打开波形图,但是不会在前端显示),让其在前端显示,仿真完毕后默认是所有参数值仿真的结果都会选中但是没有打印,你可以选中自己想要的,也可以按默认的全选中,让其打印出来,这里我选择全部打印,毕竟执行参数扫描的目的是为了对比不同值对我们想要的结果的影响。
PSpice学习与使用心得
NF 1
VAF 100
IKF .0224
ISE 69.280000E-18
NE 1.186
BR 1
NR 1
ISS 0
RB 10
RE 0
RC 4
CJE 939.800000E-15
VJE .75
MJE .3453
CJC 893.100000E-15
VJC .75
MJC .3017
XCJC 1
IB 1.59E-03 5.47E-06 4.17E-06
IC 4.72E-02 3.45E-04 2.59E-04
VBE 9.14E-01 7.44E-01 7.36E-01
VBC -1.17E+01 -1.25E+01 -1.27E+01
VCE 1.26E+01 1.33E+01 1.34E+01
V(VOUT)/V_V1 = -8.881E-01
INPUT RESISTANCE AT V_V1 = 1.027E+03
OUTPUT RESISTANCE AT V(VOUT) = 4.897E+01
第六部分:敏感度分析。观察的是共发射极放大电路,所以与另外两个电路(共基、共极)中元件没有关系(在下表中相应的体现是敏感度为0)。
V_V3 2.631E-04
V_Vcc2 -2.589E-04
V_Vbias2 -4.170E-06
TOTAL POWER DISSIPATION 7.21E-01 WATTS
第四部分:三极管工作点参数
**** OPERATING POINT INFORMATION TEMPERATURE = 27.000 DEG C
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
关于PSPICE仿真软件中如何使用
PARAMETERS参数分析教程
利用PARAMETERS进行参数分析,能够很好的分析参数变化所引起的波形变化,从而迅速观察出所需参数的范围值。
掌握此方法能够帮助我们高效率的完成工作。
接下来让我们看一下PARAMETERS参数分析使用的具体方法。
我们以一个TL431的分路稳压器的电路我为基础了解如何运用参数分析功能。
首先建立一个简单的原理图。
如上图所示,利用TL431的可编程性,调整R1,R2的比例关系,我们可以得到一个≤36V的输出电压,即Vout=Vvef(1+R2/R1)。
接下来我们看下此点路的波形,在原理图上我们添加两个电压探针。
仿真波形如下图所示:
从波形中我们可以看出,Vref=2.4912V ,Vout=4.9845V。
从而验证了Vout=Vref(1+R2/R1),从例子中我们看出仿真软件给我们带来的便利。
接下来我们进入主题,学习如何运用PARAMETERS进行参数分析。
首先我们如下图搜索PARAM,选定PARAM/SPECIAL放在原理图上。
接下来我们就针对上图中的PARAMETERS进行相关的设置,设置之前要明确我们的目的,就是通过改变R2的值,来观察输出曲线的变化。
所以我们要做的工作就是把PARAMETERS进行关联。
1、双击PARAMETERS进行Property Editor设定。
2、在新打开的窗口中点击New Column…
设置相关参数,var为任意起的一个名字,1k为R2现在的阻值。
3、双击R2的值1k进行关联设置。
此处的Value要与PARAM设置
相互关联,此处我设置为{var}
4、接下来我们进行仿真的相关设置。
设置参数如下图,注意全局
变量Parameter name的设置。
5、点击仿真按钮,我们会看到如下对话框,点击OK。
6、我们可以观察到的仿真图形如下:参考电压不变,输出电压根
据我们的设定显示出了不同的值。
方便我们对参数选取。
功能的实现基本就介绍到这里,如有疑问请联系我!
hanjping@
Hanjping at OPPLE
2011.2.18。