PSpiceAA详细入门教程
2
PSpice – AA 的工作流程
在完成经典PSpice A/D分析后必须为相应元器件设置高级分析参数,然 后才能进入PSpice-AA。 通常情况是先进行灵敏度(sensitivity)分析:以便确定电路中对电路特 性影响最大的元器件的参数。 针对这几个关键元器件参数,调用参数优化(Optimizer):进行优化设 计,优化关键元器件参数。 由于优化设计所得的优化元器件参数还是一种标称值设计,而实际采用 的各个元器件不可能都是标称值,具有一定的分散性。调用蒙特卡罗 (Monte Carlo)分析:预测电路成品率,分析其可生产性。 满足上述要求的条件下,还需要检查电路中是否存在个别元器件受到超 出其安全工作条件的应力作用,如出现这种情况会降低电路的可靠性。因 此,设计最后一关时,就需要调用热电应力分析(smoke冒烟报警)以提高 电路的可靠性。
21
使用优化工具进行曲线拟合分析
1、电路原理图设计: 电路图见软件自带实例: ..\tools\pspice\tutorial\capture\pspiceaa\bandpass.
C1 0.1u V2 15 50k 15 R1 C2 0.1u R2 49k OS1 R4 6 8 15 V+ 1.2k 0.25u OUT + U2 R6 49k 7 3 OS2 C4 OP-07 2 4 -15 1 -15 1 6 8 15 V+ out
PSPice AA Training Material
20
优化(Optimizer)工具的使用
5、通过Optimizer工具直接显示优化前后的仿真结果。
注意:为了简化,尽量不要同时优化功能相同的器件,滤波器的RC网络器件优化 范围设置要合适,不要导致功耗问题或者成本问题。
PSPice AA Training Material
100
50
0 100Hz R("Max") 200
10
灵敏度分析(Sensitivity)
灵敏度分析是为了确定电路中对指定电路特性影响最大的关键元器件参 数,以便进行优化分析,所以灵敏度分析是参数优化设计的前提和基础; 对于高灵敏度的电路,可选择高精度的元器件,而对于低灵敏度的电路, 可采用容差大一些的元器件,所以灵敏度分析还是容差分析的基础。
PSPice AA Training Material
PSPice AA Training Material
13
灵敏度分析(Sensitivity)
设置显示灵敏度分析结果 结果数值设置:
单位灵敏度 (绝对) 百分比灵敏度 (相对)
条形图结果所用的坐标设置:
线性坐标 对数坐标
PSPice AA Training Material
14
灵敏度分析(Sensitivity)
PSpice-AA
工 作 流 程 示 意 图
检验电路特性 函数模拟结果
修改元器件参数 或改进电路设计
N
选用另一种 分析引擎
改变降额因子
保存设计结果
PSPice AA Training Material
4
设置高级分析参数
PSpice-AA模型库: ..\tools\capture\library\pspice\advanls
Sensitivity工具窗口
元器件 名称 元器件参 数名称 电路设计参数 的标称值 元件容差范围内 的最大最小值
显示相对灵 敏度 运行状态标志:绿旗表示运行正 常,红旗代表运行出错
显示灵敏度 大小
元器件参数显示区 特性函数标称值
电路特性函数调整区
最坏情况下特性函数 最大最小值
电路特性函数可以通过click here to import a measurement created within PSpice进行添 加,或者执行Analysis/Sensitivity/Create New Measurement命令进行添加。
PSpice AA Training Material
2010
概述
● ● ● ● ●
灵敏度分析(Sensitivity) 优化(Optimizer)工具的使用 蒙特卡罗(Monte Carlo)工具使用 电应力(Smoke)工具使用 参数测绘仪(Parametric Plotter)工具
PSPice AA Training Material
0
1B
out
in
Rs 100
1B
Cs
Q1
10u 12.00V
10u
2N2222
Vi DC = 0 AC = 1V TRAN = sin(0 1mV 10kHz)
Rb2 24k 1B 707.5mV
Re 100 1B
RL 5.1k 1B Ce 50u 7.559V 0V
0V 0V 87.90mV
0
PSPice AA Training Material
灵敏度结果的分析
①修改最灵敏的元器件参数
②设置好的灵敏度信息结果传送给其他优化工具。
PSPice AA Training Material
15
灵敏度分析(Sensitivity)
查看灵敏度原始数据
PSPice AA Training Material
16
优化(Optimizer)工具的使用
1、启动Optimizer 工具(不要优化必须恒定的元件值,阻抗匹配)
设计过程中允许变化到的最小 值,默认值为标称值的10% 设计过程中允许变化到的最大 值,默认值为标称值的10倍
误差图:显示优化 过程动态进程区 特性函数优化的 最小值和最大值
显示优化过程中需要调整的参数区 设置该函数是约束 条件还是目标条件 设置权重
显示优化过程调整目标函数和约束条件区
PSPice AA Training Material
17
附:四种优化算法
1、改进的最小二乘法(Modified LSQ:Modified Least Squares Quadratic)
改进的最小二乘法使用的是有约束和无约束的最小化运算法则,允许它将优化目标 按非线性特点来约束。采用该优化算法能快速的确定到被测量目标函数的最佳值。
2、最小二乘法(LSQ: Least Squares Quadratic)
PSPice AA Training Material
6
高级分析的元器件参数
分布参数(Distribution parameters DIST):用来描述元器件参数分 散性服从的分布规律。在进行蒙特卡罗分析时,通过分布函数在元器件容 差规定的允许范围内随机选取元器件的参数值。 应力参数(Smoke parameters):描述元器件的最大(安全)工作额定 值。如电阻参数中包含:应力参数POWER,描述电阻允许承受的最大损耗 功率;以及MAX-TEMP,描述电阻允许的最大温度等。
PSpice软件提供的“设计变量表”,是以全局方式来设置高级分析的参数值。 “设计变量表”符号可以在特殊符号“PSPICE_ELEM”库中查得“VARIABLES”.
放置在电路图中:
Advanced Analysis Properties
Tolerances: RTOL = 0 CTOL = 0 LTOL = 0 VTOL = 0 ITOL = 0 ---------------------Smoke Limits: RMAX = 0.25 RSMAX = 0.005 RTMAX = 200 RVMAX = 100 CMAX = 50 CBMAX = 125 CSMAX = 0.005 CTMAX = 125 CIMAX = 1 LMAX = 5 DSMAX = 300 IMAX = 1 VMAX = 12 ----------------------User Variables:
PSpice-AA库中共有35个库文件、4300多个元器件仿真模型。库中没有的元器 件参数,可以在标准PSpice A/D模型中自行添加相关参数后,作为PSpice-AA 元器件模型。
PSPice AA Training Material
5
高级分析的元器件参数
容差参数(Tolerance parameters TOL):定义实际的元器件参数相对 标称值(正向或负向)偏离的大小(多用百分比表示)。 优化参数(Optimizer parameters):指优化过程中能够对其进行调整 的元器件。对于无源元器件,优化参数就是其元器件值,如:电阻就是其 阻值;对于有源器件,优化参数就是其模型参数,如:晶体管的电流放大 倍数β。
PSPice AA Training Material
3
电路图设计 Capture
电路特性模拟 PSpice A/D 建立电路特性 函数
调入电路特性参数 调用Sensitivity工 具进行灵敏度分析 将关键器件参数传 给Optimizer工具 调用Optimizer工具 进行优化分析 N 电路设计 满足设计要求 Y 调用Monte Carlo工 具进行优化分析 N 成品率 足够高? Y 调用Smoke工具进行 可靠性分析 Y 存在过应力器件? 更新电路中元器件 参数值 Y
上述4种参数可以逐一元器件添加,若电路中同一种元器件的高级分析参数相同时, 可以通过”设计变量表”(Variable Table)方法实现。
PSPice AA Training Material
7
高级分析的元器件参数
PSPice AA Training Material
8
设计变量表(Variable Table)
若采用改进的最小二乘法不能达到理想结果,可以使用最小二乘法来确定被测量目 标函数的最佳值。
3、随机引擎(Random engine)
选用随机引擎,随机的选取优化初始值,用于解决MLSQ和LSQ不能确定初始值和局 部最小极值的问题。
Pspice教程
Pspice教程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教程
OrCAD PSpice 培训教材深圳光映计算机软件有限公司培训目标:熟悉PSpice的仿真功能,熟练掌握各种仿真参数的设置方法,综合观测并分析仿真结果,熟练输出分析结果,能够综合运用各种仿真对电路进行分析,学会修改模型参数。
一、PSpice分析过程二、绘制原理图原理图的具体绘制方法已经在Capture中讲过了,下面主要讲一下在使用PSpice时绘制原理图应该注意的地方。
1、新建Project时应选择Analog or Mixed-signal Circuit2、调用的器件必须有PSpice模型首先,调用OrCAD软件本身提供的模型库,这些库文件存储的路径为Capture\Library\pspice,此路径中的所有器件都有提供PSpice 模型,可以直接调用。
其次,若使用自己的器件,必须保证*.olb、*.lib两个文件同时存在,而且器件属性中必须包含PSpice Template属性。
3、原理图中至少必须有一条网络名称为0,即接地。
4、必须有激励源。
原理图中的端口符号并不具有电源特性,所有的激励源都存储在Source和SourceTM库中。
5、电源两端不允许短路,不允许仅由电源和电感组成回路,也不允许仅由电源和电容组成的割集。
解决方法:电容并联一个大电阻,电感串联一个小电阻。
6、最好不要使用负值电阻、电容和电感,因为他们容易引起不收敛。
三、仿真参数设置1、PSpice能够仿真的类型在OrCAD PSpice中,可以分析的类型有以下8种,每一种分析类型的定义如下:直流分析:当电路中某一参数(称为自变量)在一定范围内变化时,对自变量的每一个取值,计算电路的直流偏置特性(称为输出变量)。
交流分析:作用是计算电路的交流小信号频率响应特性。
噪声分析:计算电路中各个器件对选定的输出点产生的噪声等效到选定的输入源(独立的电压或电流源)上。
即计算输入源上的等效输入噪声。
瞬态分析:在给定输入激励信号作用下,计算电路输出端的瞬态响应。
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教程(基础篇)
Pspice教程(基础篇)Pspice教程课程内容:在这个教程中,我们没有提到关于网络表中的Pspice的网络表文件输出,有关内容将会在后面提到!而且我想对大家提个建议:就是我们不要只看波形好不好,而是要学会分析,分析不是分析的波形,而是学会分析数据,找出自己设计中出现的问题!有时候大家可能会看到,其实电路并没有错,只是有时候我们的仿真设置出了问题,需要修改。
有时候是电路的参数设计的不合理,也可能导致一些莫明的错误!我觉得大家做一个分析后自己看看OutFile文件!点一.直流分析直流分析:PSpice可对大信号非线性电子电路进行直流分析。
它是针对电路中各直流偏压值因某一参数(电源、元件参数等等)改变所作的分析,直流分析也是交流分析时确定小信号线性模型参数和瞬态分析确定初始值所需的分析。
模拟计算后,可以利用Probe功能绘出V o- Vi曲线,或任意输出变量相对任一元件参数的传输特性曲线。
首先我们开启Capture / Capture CIS.打开如下图所示的界面( Fig.1)。
( Fig 1)我们来建立一个新的一程,如下方法打开! ( Fig.2)( Fig.2)我们来选取一个新建的工程文件!我们可以看到以下的提示窗口。
(Fig.3)(Fig.3)我们可以给这个工程取个名字,因为我们要做Pspice仿真,所以我们要勾选第一个选项,在标签栏中选中!其它的选项是什么意思呢?Analog or Mixed A/D 数模混合仿真PC Board Wizard 系统级原理图设计Programmable Logic Wizard CPLD或FPGA设计Schematic 原理图设计接下来我们看到了Pspice工程窗口,即我们的原理图窗口属性的选择。
(Fig.4)(Fig.4)我们在Creat based upon an existing project 下可以看到几个画版工程选项!其中包括:新的空的画版,带层次原理图的画版等等。
(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入门_
Pspice9.2入门一、建立工程文件新建一个文件夹(名称为英文或数字组成)用于存放PSPICE文件,例如:F:/PSPICE/xin/xin1。
进入Capture画面中,按" File/NEW/Project "命令,产生(NEW Project)对话框,如下图。
在"名称"栏中,输入工程名(英文)。
在Location栏中,输入本项目要储存的磁盘文件夹路径。
在Create a New Project Using栏内选择Analog or Mixed-Signal Circuit Wizar选项(如果我们只是要绘制一张单纯的电路图,不需要在作任何进一步的处理,可以选Schematic)单击OK按钮,调出选择Create a blank project,建立一个空白的工程文件。
二、编辑原理图1.放置所需元件。
用鼠标单击Place/part,出现以下对话框:单击Add Library,选择添加库文件路径C:\Program Files\Orcad\Capture\Library\PSpice添加编缉原理图需要的库文件,例如Analog.olb,Source.olb,zetex.olb库文件,添加后界面如下:添加好库文件后即可从相应的库文件中选择元件编辑原理图,也可从编辑界面右侧工具栏中拖放元件。
•基本元器件库:1)商品化的元器件符号库:大都是不同型号的半导体器件和集成电路。
其库文件名称分为两类:①已元器件的类型为文件名.有:以74开头的各种TTL74系列的数字电路;CD4000库文件中的CMOS4000系列电路;BIPOLAR库文件中的各种型号双极晶体管(三极管);OPAMP库文件中的各种运算放大器等。
②在库文件名中包含公司名称。
有:SIEMEN库文件中的西门子公司生产的半导体器件;MOTOR开头的库文件中是摩托罗拉公司生产的器件等。
2)常用非商品化元器件符号ANALOGY库:模拟电路中各种无源器件,如电阻、电容、电感等。
PSPICE电路仿真软件应用入门-32页PPT资料
-1.193E-01
参数名称
Q_Q1
RB
RC
RE
BF
ISE
BR
ISC
IS
NE
NC
IKF
IKR
VAF
VAR
参数值
每单位变化 影响百分比 对观察值的影响
1.000E+01 4.023E-05
1.000E+00 -1.320E-09
0.000E+00 0.000E+00
2.559E+02 7.012E-05
1. 电路仿真的意义和作用
1.3 电路仿真的主要作用
1.验证电路设计方案的正确性; 2.优化电路设计; 3.电路性能的模拟测试等。
1.4 仿真软件介绍
目前比较流行的电路仿真软件主要有
1.PSPICE (Simulation Program with Integrated Circuit Emphasis)电 路仿真软件。
来看几个例子:
1. 喇叭分频电路仿真分析 2. 555多谐振荡电路仿真分析 3. 亚超声开关电路仿真分析
6. 子电路的建立与应用
5.1 新建电路模块 5.2 建子电路块 5.3 子电路调用
新建子电路练习
请将下图中相同部分用子电路块表示, 并测试Q3的输出波形:
R7
R1
1 kohm
品中是十分难得的。 认识一下
3.System View电子系统仿真软件。
EWB电路设计仿真工作站介绍
Multisim 2019电路仿真软件介绍
OrCAD Pspice快速入门
2.2.1、 Pspice Schematics的标准工具栏
按钮符号
菜单提示 Redraw Zoom In Zoom Out Zoom Area
功能说明 刷新当前视图 放大视图 缩小视图 显示选定区域
Zoom to Fit Page 显示视图符合页面大小
2.2.2、 Pspice Schematics的绘图工具栏
一、Pspice开发软件的组成
1.Design Manager 2.Schematic 3.Pspice A/D 4.Probe 5.Stimulus Editor 6.Parts 7.Optimizer 8.TextEdit
1、Design Manager(设计管理器)
设计实际电路并不是绘制一个简单的电路原理图,并且往往所绘制 的电路大都是多层结构,包含了多个子电路的设计。OrCAD Pspice软件 提供了设计管理器Design Manager来帮助用户更有效地浏览、管理、编 辑和保存设计文件。
2、Schematics (绘图编辑器)
Schematics是Pspice 的组件之一,同时也是Pspice 软件的主窗口, 绘制电路图就在该窗口中进行。 通 过 执 行 Schematics 可 以 调 用 Pspice 的 其 他 基 本 模 块 , 包 括 使 用 Pspice A/D电路仿真分析程序进行指定的电路分析;通过 Probe图形后 处理程序观察分析结果;通过Schematics Editor建立信号激励源;调用 Model Editor元件编辑程序和Optimizer优化设置程序。
Pspice Schematics的工具栏中提供了常用命令的快捷 按钮,可以利用 这些快捷按钮方便高效地绘制各种电路图。如果需要添加工具栏或者关 闭不用的工具栏,可以执行“View”菜单中的“Toolbars” 命令,程序会 弹出下图所示的对话框,单击工具栏列表中的复选框就可以设置显示或 者隐藏相应的工具栏。
