第四章_Pspice软件与电路特性模拟
pspice电路仿真设计

随着电子设计自动化(EDA)的兴起,PSPICE逐渐 成为主流的电路仿真软件。
2000年代至今PSPICE断更新升级,支持更多复杂电路和高级功 能。
PSPICE的主要功能
电路图绘制与编辑
提供丰富的元件库和绘图工具 ,方便用户绘制电路图。
电路仿真与分析
支持多种仿真和分析功能,如 直流分析、交流分析、瞬态分 析等。
设置仿真精度
调整仿真精度,以获得更准确的仿真结果。
设置初始条件
为电路元件设置初始状态,以便进行仿真计 算。
电路仿真的基本步骤
建立电路模型
根据电路原理图,使用PSPICE软件建立相应 的电路模型。
定义元件参数
为电路元件设置合适的参数值,确保仿真结 果的准确性。
运行仿真
启动仿真计算,观察仿真波形和数据,分析 电路性能。
用于嵌入式系统的电路设计和仿真,如微控制器、DSP等。
科研与教育
广泛应用于科研机构和高校,作为电子工程学科的教学和实验工具。
02
PSPICE电路设计基础
电路元件的选取与参数设置
电阻
根据电路需求选择适当的电阻值和功率,设 置合适的电阻精度。
电感
根据工作频率、电流和磁芯材料等参数选择 合适的电感值和额定电流。
时序逻辑电路
02
设计一个同步计数器,通过PSPICE验证其时序行为和性能指标。
微处理器模型
03
使用PSPICE建立微处理器的电路模型,进行功能仿真和性能预
测。
混合信号仿真案例
ADC/DAC仿真
设计一个模数转换器和数模转换 器,利用PSPICE分析其性能和相 互影响。
数字通信系统
设计一个简单的数字通信系统, 包括调制解调器和信道模拟,通 过PSPICE进行系统级仿真和分析。
PSpice04

参数名 XC0 T
TNOM C
VC1 VC2 TC1 TC2
第四讲
含义 标称容抗值
实际温度 标准室温 电容倍率因子 线性电压系数 二次电压系数 线性温度系数 二次温度系数
单位 Ω ℃ ℃
V-1 V-2 ℃-1 ℃-2
缺省值
27 1 0 0 0 0
第四讲
⑶ 电感 普通电感的感抗XL0也是直接由用户设定。 另外,PSpice还对感抗随温度和电流的不同作 非线性变化的电感提供了模型,这种电感的实 际感抗XL(I,T)为:
模型参数 IS BF NF
VAF(VA) IKF(IK) ISE(C2)
参数名 IS RS N TT
CJO VJ M EG XTI KF AF FC BV IBV
符号 IS RS N τ(t) Cjo ΦB M Eg Pt KF AF FC BV IBV
第四讲Βιβλιοθήκη 含义 饱和电流 欧姆电阻 发射系数 渡越时间 零偏置结电容 P-N结电势 电容梯度因子 禁带宽度 饱和电流温度系数 闪烁噪声系数 闪烁噪声指数 正偏耗尽电容系数 反向击穿电压 反向击穿电流
式中,IS—反向饱合电流(A); q—电子电荷量(1.6022E-19 C); K—波尔兹曼常数(1.3806E-23J/K); T—绝对温度(273.16K=0℃); n—发射系数,考虑PN不是突变结和载流子的 复合效应,n在1~2之间取值。二极管的符号与 模型如图1-21(b)所示。
第四讲
PSpice中二极管的模型参数共有14个,这 些参数的符号、含义和缺省值如表1-6所示。
R 电阻倍率因子
TC1 线性温度系数
TC2 二次温度系数
TCE 指数温度系数
PSPICE电路仿真

1.2 发展历程
▪( )
▪ 由美国加州大学伯克莉()分校电工和计算机科学系分校开 发。 ▪ 1972年首次推出。 1983年公司推出可在机上运行的 1(P即代表运行于机的版 本)。 目前微机上广泛使用的是由美国公司开发并于1984年1月首 次推出的。 ▪ 1988年被定为美国国家工业标准。
▪ 目前国际上享有盛誉的模拟电路设计工具都是以为基础实现 的,如公司的, 公司的,以及公司的等。
2.电路特性的优化设计 器件参数的容差和工作环境温度将对电路工作的稳
定性产生影响。传统的电路设计方法,很难对这种影 响进行全面的分析和了解,因而也就很难实现电路的 优化设计。技术中的温度分析和统计分析功能,既可 以分析各种恶劣温度条件下的电路特性,也可以对器 件容差的影响进行全面的计算分析。其内容包括:① 对不同的容差特性进行规定次数的跟踪分析(蒙特卡 罗分析); ②单独分析每一器件容差对电路的影响 量(灵敏度分析);③分析全体器件容差对电路性能 的最大影响量(最坏情况分析)。采用统计分析方法, 便于确定最佳元件参数、最佳电路结构以及适当的系 统稳定裕度,真正做到电路的优化设计。
1.2.1 软件简介
是由发展而来的用于微机系列的通用电路分析程序。
能进行模拟电路分析、数字电路分析和模拟数字混合电 路分析。 现已成为微机级电路模拟标准软件。 5.0及以前的版本都为版,而 5.1及以后的各种版本均为窗口 版。 软件分为工业版( )和教学版( )。
1.2.2 软件
1998年1月公司与公司合并,称为公司。两公司强 强联合后,相继推出一系列基于机的软件系统。
1.4 程序项组成
(1) 图ቤተ መጻሕፍቲ ባይዱ编辑程序
的输入基本上是以电路原理图和网单文件两种形式。 电路元器件符号库中备有绘电原理图所需的元器件 符号,用户从符号图形库中调出所需的电路元器件 符号,组成电路图,由原理图编辑器自动将原理图 转化为电路网单文件,并标上节点号,提供给仿真 工具进行仿真。如果用户熟悉仿真程序的输入语言, 又没有将原理图存档的需求也可以直接输入电路网 单文件。
PSpice基础仿真分析与电路控制描述

PSpice基础仿真分析与电路控制描述简介本文档将介绍PSpice基础仿真分析和电路控制的相关概念和使用方法。
PSpice是一款电路仿真软件,可帮助电路设计师评估和优化电路性能。
PSpice的基本功能- 电路仿真:通过输入电路原理图和元件参数,PSpice可以对电路进行仿真分析,以评估电路的性能和行为。
- 波形分析:PSpice可以生成电路中各个节点电压和电流的波形图,以帮助理解电路运行情况。
- 参数扫描:PSpice可以对电路中的元件参数进行扫描,以评估元件参数对电路性能的影响。
- 优化分析:PSpice可以通过自动化搜索算法优化电路参数,以达到用户定义的目标。
仿真步骤1. 绘制电路原理图:使用PSpice提供的元件库绘制电路原理图,设置元件参数和连接关系。
2. 设置仿真选项:设置仿真类型和仿真参数,如直流分析、交流分析、变化频率分析等。
3. 运行仿真:通过点击仿真按钮或执行仿真命令,PSpice开始进行仿真计算。
4. 分析仿真结果:根据仿真结果生成的波形图和数据表格,分析电路的性能和行为。
电路控制描述- 电源控制:通过设置电源的电压或电流源来控制电路中的电压和电流。
- 开关控制:通过激活或关闭开关元件, 来控制电路中的电压或电流流动。
- 反馈控制:通过将电路输出信号与输入信号进行比较,并根据差异调整电路参数,实现对电路的控制。
示例下面是一个简单的PSpice仿真和电路控制的示例:* 这是一个简单的RC电路R1 N1 N2 1kC1 N2 N3 1uV1 N1 0 DC 10R2 N3 0 10k.tran 0.1ms 10ms.end通过上述示例,我们可以:1. 进行直流分析,评估电路的直流稳态行为。
2. 进行时间域分析,查看电路中各个节点的电压随时间的变化。
3. 通过改变元件参数、调整输入电压或通过反馈控制等方式,控制电路的行为和性能。
希望本文档能够帮助您了解PSpice的基础仿真分析和电路控制的相关内容。
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仿真教程4--求解放大电路的幅频特性和相频特性

题目:求解共射极放大电路电压增益的幅频响应和相频响应电路如下图,BJT为NPN型硅管,型号为2N3904,放大倍数为50,电路其他元件参数如下图。
求解该放大电路电压增益的幅频响应和相频响应。
步骤如下:1、绘制原理图如上图所示。
2、修改三极管的放大倍数Bf。
选中三极管→单击Edit→Model→Edit Instance Model,在Model Ediror中修改放大倍数Bf=50。
3、由于要计算电路的幅频响应和相频响应,需设置交流扫描分析,所以电路中需要有交流源。
双击交流源v1设其属性为:ACMAG=15mv,ACPHASE=0。
4、设置分析类型:选择Analysis→set up→AC Sweep,参数设置如下:5、Analysis→Simulate,调用Pspice A/D对电路进展仿真计算。
6、Trace→ Add〔添加输出波形〕,,弹出Add Trace对话框,在左边的列表框中选中v(out),单击右边列表框中的符号“/〞,再选择左边列表框中的v(in),单击ok按钮。
仿真结果如下:上面的曲线为电压增益的幅频响应。
要想得到电压增益的相频响应步骤如下:在probe下,选择Plot→ Add Plot〔在屏幕上再添加一个图形〕。
如下列图所示:单击Trace Add 〔添加输出波形〕,弹出Add Trace 对话框,单击右边列表框中的符号“P 〞,在左边的列表框中选中v(out),单击右边列表框中的符号“-〞,再单击右边列表框中的符号“P 〞,再选择左边列表框中的v(in),单击ok 按钮。
函数P 〔〕用来求相位。
上面的曲线为电压增益的幅频响应和相频响应。
思考:〔1〕下线截止频率L f 和上限截止频率H f 分别是多少?如何测得?〔2〕什么是电路的幅频响应和相频响应?〔3〕得到电路的幅频响应和相频响应,需设置哪种分析类型?电路中需要用哪种信号源?需要设置该信号源的哪些属性?〔4〕获得相频特性曲线的步骤是什么?〔5〕Plot→Add的功能是什么?Trace→Add的功能是什么?〔6〕如何改变曲线的纵轴变量?如何改变曲线的横轴变量?。
PSpice使用教程

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

IAC 5 6 AC 1A
IACP 5 6 AC 1A 45DEG
IPULSE 10 0 PULSE(0 1A 2NS 2NS 2NS 50NS 100NS)
IIN 25 22 DC 2 AC 1A 30DEG sin(0 2A 10 kz)
《电子电路CAD程序设计及其应用》
第4章 PSPICE电路描述语言与文本输入文件
第一个字母是关键字,用以确定半导体器件的类型。 关键字的含义为D-晶体二极管 Q-晶体三极管(BJT) J-结型场效应晶体管 M-MOS场效应晶体管 Z- MES场效应晶体管 B-GaAs场效应晶体管每个器件语 句中除了包括器件名、器件连接的节点和器件所用的 模型外, 还可规定任选项参数: 面积因子和几何因子。
LSHUNT 23 51 10U IC=15.7MA CH8 5 80 CMOD 6PF LH8 5 80 LMOD 2MH
N+和N-分别是元件的正、负节点号, 它定义了电 容(感)器的极性,正节点N+对负节点N-的电压假定为正, 电流从节点N+通过电容 (感) 流向负节点N-。
《电子电路CAD程序设计及其应用》
第4章 PSPICE电路描述语言与文本输入文件
DXXXXXXX N+ N- MNAME <AREA> <OFF> <IC=VD> DBRIDGE
二极管电路图如图4.2所示,其描述语句如下:
DBRIDGE 2 10 DIODEI 其中N+和N-分别是二极管的正、负节点, 电流实际
方向应从正节点通过二极管流向负节点。
第4章 PSPICE电路描述语言与文本输入文件
(4) 电路特性分析语句。 (5) 分析控制语句。 (6) 结束语句。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
(4)运行Pspice。 启动Pspice/Run命令,软件开始分析计算。 (5)查看分析结果。
分析计算结束后,系统自动调用Probe模块,屏幕上出现Probe
窗口。选择View/Output File命令,即可看到本例的文本 输出文件DC.out。
4.5 直流传输特性分析(Transfer Function)
V0 Av V j
4.5 直流传输特性分析(Transfer Function)
例:求差动放大电路的电压放大倍数、输入电阻和输出电阻。
Rc1 10k Rb1 0.1V Vs
0
Rc2 10k Vo2 Q2
VCC 10V
0
Q1
Vo1 Q2N2222
Rb2 1k
0
1k
Re 10k
VEE 10V
0
第四章 OrCAD/Pspice软件与电路特性模拟
绘制好电路图后,即可调用OrCAD软件包中的Pspice软件 对电路进行模拟。 本章在介绍OrCAD/Pspice软件结构和功能特点的基础上,重
点介绍应用OrCAD/Pspice软件对模拟电路进行计算机模
拟的方法。
4 .1 OrCAD/Pspice软件
交流特性 瞬态特性 参数扫描 统计分析 逻辑模拟
四 . 电路模拟的 基本过程
采 用 OrCAD/PSpice 软
件对电路设计方 案进行电路模拟 的基本过程分8个 阶段;
新建设计项目(Project) 电路图生成 (OrCAD/Capture)
电路特性分析要求设计 (Profile)
电路模拟(PSpiceA/D)
数和以10为底的指数。用指数表示时,底数10用字母E来
表示。对于比较大或比较小的数字,还可采用10种比例 因子,如下表所示。
OrCAD/PSpice 10中采用的比例因子
符号
F P N U MIL
比例因子
10-15 10-12 10-9 10-6 25.4× 10-6
符号
M K MEG G T
比例因子
4.3 直流工作点分析(Bias Point Detail) 例:求基本放大电路的静态工作点。步骤如下:
(1)用Capture软件画好电路图。
Rc 2k C2 10U C1 Vs 10U Q1 Q2N2222 RL 2k Vcc
Out
Rb 360k
12V
0
(2) 建立模拟类型分组。
建立模拟类型分组的目的是为了便于管理。PSpice将基本
( 1 ) 设 置 分 析 类 型 和 参 数 : 在 Analysis type 栏 中 选 “ Bias Point”;
在Option栏中选“General Settings”。
在Output File Options栏选“Calculate small-signal DC gain” 在From Input source栏中填入“Vs”,在To Output栏中填 入“V(Vo1,Vo2)”,意思是求传递函数(Vo1-Vo2) /Vs及从Vs 端看进去的输入电阻和从Vo1、Vo2端看进去 的输出电阻。
输特性曲线、晶体管的输入输出特性曲线等。值得注意的是, DC分析只能用于分析直耦电路,不能分析阻容耦合电路。 例:差动放大 电路如图所示, 设三极管Q1、 Q2的β=50,画 0.1V 出电路的电压 Vs 传输特性曲线。
Rc1 10k Rb1 1k Q1 Vo1 Q2N2222 Rc2 10k Vo2 Q2 VCC 10V
5种波形;
(模型参数提取) 电路原理图生成
OrCAD/StmEd 激励信号波形编辑
显示电压、电流波形; 基本直流工作 模型参数库 B.逻辑模拟中需要的时钟信号、各 对模拟结果再分析处理 点计算、直流 种形状的脉冲及总线信号。 ;数字电路中逻辑错误 交互方式生成 DC扫描、交 问题的检测 电路模拟中需 流小信号AC PSpice A/D 要的各激励信 分析和瞬态 电路模拟 OrCAD/Optimizer 逻辑模拟 号波形 TRAN分析 模拟电路优化设计
10-3 10+3 10+6 10+9 10+12
例如1000、1E3和1K都表示同一个数。
特别注意:
(1)比例因子可用大写也可用小写,如m和M都表示10-3。而国标规定,m
表示10-3,M表示10+6,我们通常的习惯也是这样。为了防止混淆,在该
软件中用MEG表示10+6。这一点在使用时应特别小心。 (2)比例因子只能用英文字母,如10-6用U或u表示,而国标规定10-6用m表
Pspice软件可以完成电路模拟分析。
一、 OrCAD五个模块之间的关系为:
生成电路模 输入电路图; OrCAD软件包中5个配套软件之间的相互关系 拟时需要的 实现设计项目 模型参数 统一管理 A.瞬态分析中需要的脉冲、分段线
性、调幅正弦、调频和指数信号等 OrCAD/Model Ed OrCAD/Capt ure CIS
(2)运行Pspice。
(3)查看分析结果。
从中可以看出:双端输出的电压放大倍数AV=-121.3 输入电阻Ri=7.33kW
双端输出的输出电阻Ro=18.9kW
4.6 直流特性扫描分析(DC Sweep)
直流分析又称DC分析,就是当电路中某一参数在一定范围
内变化时求电路的直流特性。可以利用这一分析作出电路的传
模拟结果分析 (PSpice/Probe)
优化设计 (PSpice/Optimixer)
否
设字、单位和运算式
Pspice 中采用的是实用工程单位制,如电压用伏(V)、
电流用安培(A)、电阻用欧姆(Ω)、功率用瓦特(W)
等。在运行中,Pspice会根据具体对象自动确定其单位。 用户在输入数据时,代表单位的字母可以省去。例如给 电压源赋值时,键入12和12V意思一样。 Pspice 中的数字采用科学表示方式,即可以使用整数、小
PspiceA/D可支持的元器件类别及其字母代号
字母代号 B 元器件类型 CaAs场效应管 字母代号 N 元器件类型 数字输入
C
D
电容
二极管
O
Q
数字输出
双极晶体管
E
F G H
压控电压源
流控电流源 压控电流源 流控电压源
R
S T U
电阻
电压控制开关 传输线 数字电路单元
I J
K
独立电流源 JFET结型场效应管
一、绘制电路图 二、特性分析类型确定和参数设置
(1)调出PSpice命令菜单
在Capture中执行PSpice出现PSpice菜单。 (2)建立模拟类型分组 执行PSpice/New Simulation Profile子命令 (3)设置模拟类型和参数
完成上述设置后,点击Create按钮,出现设置框。
0
Rb2 1k
0
0
Re 10k
VEE 10V
0
(1)用Capture软件画好电路图。
(2)将三极管设置为β=50。
(3)设置分析类型和参数:
在Analysis type栏中选“DC Sweep”;在Option栏中选“Primary Sweep”。 在Sweep variable栏中选“Voltage source”,在Name 栏中填入 “Vs”。意思以电压源Vs作为 变量。 在Sweep type栏中选“Linear”。 在Start栏中填入“-0.3”, 在End栏中填入“+0.3V”, 在Increment栏中填入“0.03V”。 意思是Vs从-0.3V~+0.3V作 线性变化,步长为0.03V。
数/模混合模拟 OrCAD/Probe 信号波形显示分析
根据约束条件, 自动调整电路元 器件参数,满足 电路指标要求。
二、PSpiceA/D支持的元器件类型 (1)基本无源元件,如电阻、电容、电感、传输线等。
(2)常用的半导体器件,如二极管、双极晶体管、结型 场效应管、MOS管等。
(3)独立电压源和独立电流源。 (4)各种受控电压源、受控电流源和受控开关。 (5)基本数字电路单元,如门电路、传输门、触发器、 可编程逻辑阵列等。 (6)常用单元电路,如运算放大器、555定时器等。在 这里集成电路可作为一个单元电路整体出现在电路 中,而不必考虑该单元电路的内部结构。
Analysis标签页中需设置3方面的内容: (1)基本分析类型的设定;
(2)模拟类型组中其他分析类型的选定;
(3)分析参数的设置。
三、模拟分析计算
执行RUN命令,进行分析计算。并分别生成.dat和.out为扩
展名的两种结果数据文件。 四、电路模拟结果分析 (1)模拟结果信号波形分析 模拟结果正确,则会调用Probe,显示信号的分析波形。
直流传输特性分析又称TF分析,就是在电路的偏置 点附近将电路线性化后,分析计算电路的直流小信号 增益、输入电阻和输出电阻。
用它来求解放大器的电压放大倍数、输入电阻和 输出电阻是最方便的。但是该功能属于直流分析范畴, 分析时将电路中的电容开路、电感短路。所以只能用 于分析直耦电路,不能分析阻容耦合电路。
六. 电路图中的节点编号和输出变量表达式
2.输出变量的基本格式
(1)电路变量的基本格式
V(节点号1[,节点号2])
(2)电流变量的基本格式
I(元器件编号[:引出端名])
3.输出变量的别名表示(Alias)
(1)交流小信号AC分析中的输出变量名。
(2)用元器件引出端名表示的输出变量。
4.2 模拟电路分析计算的基本过程
互感、传输线耦合
USTIM V
W
数字电路信号源 独立电压源
电流控制开关
L
M
电感
MOS场效应管
X
Z
单元子电路调用