请问要怎样看懂建立元件库时的模型数据文件呢?

2019-07-17 16:16发布

示例代码:


##################  模型数据报告  ##################

============= SPICE 模型 =================
***
*$
*  QX2302 Model
*****************************************************************************
*  (C) Copyright 2013 Texas Instruments Incorporated. All rights reserved.
*****************************************************************************
** This model is designed as an aid for customers of Texas Instruments.
** ti and its licensors and suppliers make no warrenties, either expressed
** or implied, with respect to this model, including the warranties of
** merchantability or fitness for a particular purpose.  The model is
** provided solely on an "as is" basis.  The entire risk as to its quality
** and performance is with the customer
*****************************************************************************
*
** Released by: WEBENCH(R) Design Center, Texas Instruments Inc.
* Part: TPS76150
* Date: 01/18/2013
* Model Type: TRANSIENT
* Simulator: PSPICE
* Simulator Version: 16.2
* EVM Order Number: TPS76xxxEVM-125
* EVM Users Guide: SLVU019 - August 1999
* Datasheet: SLVS178B - DECEMBER 1998 - REVISED MAY 2001
*
* Model Version: Final 1.00
*
*****************************************************************************
*
* Updates:
*
* Final 1.00
* Release to Web.
*
*****************************************************************************
* source LDO_Create.php - TPS76150
.SUBCKT TPS76150/TI IN GND EN OUT
X1  OUT GND IN IN EN FBK_INT  LDO_BASIC
+ PARAMS:
+ rinp = 1.000e+7
+ rout = 3.500e-1
+ psrr = 7.079e-4
+ pole = 1.000e+3
+ zero = 1.000e+5
+ venb = 2.000e+0
+ ehys = 1.000e-1
+ uvlo = 5.380e+0
+ uhys = 1.000e-1
+ vref = 1.200e+0
+ drop = 1.700e-1
+ ilim = 1.250e-1
+ ttrn = 1.000e-5
R1  OUT FBK_INT  3.800MEG
R2  FBK_INT GND 1.200MEG
*$
.SUBCKT ldo_basic out vgnd vin bias enb fbk
+ PARAMS:
+ rinp = 1e07
+ rout = 0.1
+ psrr = 5e-4
+ pole = 100
+ zero = 10e3
+ venb = 1.0
+ ehys = 0.1
+ uvlo = 2.0
+ uhys = 0.1
+ vref = 1.20
+ drop = 0.25
+ ilim = 0.10
+ ttrn = 1e-4
R00 vin vxx  { rinp }
C00 vin vxx  { 1/(6.28*rinp*pole) }
EX1 vx1   0 VALUE {IF(V(enb, vgnd) + V(egd)*ehys > venb, 1, 0)}
RX1 vx1 egd 10
CX1 egd   0 1n
EX2 vx2   0 VALUE {IF(V(bias, vgnd) + V(vgd)*uhys > uvlo, 1, 0)}
RX2 vx2 vgd 10
CX2 vgd   0 1n
E01 v01 vgnd VALUE {
+ IF(V(egd)>0.51&V(vgd)>0.51, { vref }, 0) }
R01 v01 ref {3.333e5*SQRT(ttrn)}
C01 ref vgnd {1e-6*SQRT(ttrn)}
E02 v02   0  VALUE {
+ V(ref)*(ABS(V(out)) + 1E-6)/(ABS(V(fbk)) + 1E-6) }
R02 v02 des 10
C02 des   0 1n
E03 drv   0 VALUE {
+ MIN(V(des), MAX(V(vin)-drop, 0))}
R03 drv vxx { psrr*rinp }
C03 drv vxx { 1/(6.28*psrr*rinp*zero) }
E04 vyy   0  VALUE {
+ MIN(V(vxx), V(vzz) + ilim*rout) }
R04 vyy vzz { rout }
F04 vin vyy V04 1
V04 vzz out 0V
.ENDS ldo_basic
.ENDS TPS76150/TI

============= 模型模板 =================
x%p %tIN %tGND %tEN %tOUT %m


友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
1条回答
sss1433170835
2019-07-17 17:44
我在尝试把tps76150的模型数据改成qx2302,
tps76150,包含四个有效引脚,其中有in out gnd和使能端en.
QX2302有三个引脚,包括lx(in) out gnd,
tps76150为5.34V-16V稳压至5V.
QX2302为2V-5V稳压至3.3V.

一周热门 更多>