LTspice学习笔记-多模型实例合并成一个符号

我是一个很喜欢用实际器件搭建电路的工程师,但是换到现在的单位,买器件需要走审批,流程耗时比较久,用软件工具做电路仿真成了一项必备技能。我先后接触过Multisim,TIna,Capture-Spice。这些软件都是用过几次就不用了!完成任务之后都没细致的深入学习。

前一段时间我接触到了LTspice,开始时候我是各种不适应,很抗拒,因为刚开始不知道从哪里操作!但是随着学习的深入,慢慢上手了之后,发现LTspice真的香!虽然静态工作点的显示效果不如Capture, 但是架不住他运行速度快啊!于是我就多花了一些时间学习LTspice仿真软件的使用,但是我发现我学的技能都是熊瞎子掰苞米-随学随扔,因为平日里也不光干这个活。

看来是要做一些记录了!写什么呢?就把今天看到的内容写出来吧-多模型实例合并成一个符号!

文章摘录:

When you need multiple instances of a model, it is easy to copy and paste a symbol, but sometimes you can tighten up your schematics by using a single symbol to define multiple instances of same device. For instance, instead of placing four identical capacitor symbols in parallel, use one symbol times four, “x4”. This feat can be accomplished using the M (parallel units) or N (series units) parameters.

A number of intrinsic devices support the M (parallel units) parameter, such as the capacitor, inductor, diode and MOSFET models. If you are not sure if the model supports the M (parallel units) parameter, try it, and if you do not get an error message, you should be good. The diode (including LED) model is the only intrinsic model that supports N (series units) parameter.

To define multiple instances of a model in a device symbol:

  1. Ctrl + right-click the symbol to edit the component attributes.
  2. Insert “m=<number>” or “n=<number>” into the Value2 field. Note that non-integer <number> values are allowed.
  3. Make the multiple instances visible in your schematic by selecting the Value2 attribute and clicking the Vis column.

    Parallel Capacitors

    To match certain electrical schematic standards you can define parallel capacitors either using “m=<number>” or “x<number>” syntax as in “x4”.

Parallel Capacitors

To match certain electrical schematic standards you can define parallel capacitors either using “m=<number>” or “x<number>” syntax as in “x4”.

Series (String) of LEDs

Diodes are the only intrinsic models that support the N (series units) parameter.

文章的意思我总结几点:

电容并联:x4  m=4  都可以!

二极管(不仅仅是LED)是唯一支持串联的器件,可以使用n 参数。

文章中说电容,电感,二极管,MOSFET都支持M参数,其实这个支持器件不仅仅这些,只要你实际去实验尝试,文章中也是说并未提示错误信息就是好现象!----If you are not sure if the model supports the M (parallel units) parameter, try it, and if you do not get an error message, you should be good.

下面呢,我试试M,N和x参数的使用,说明m参数适用电阻,电容可以适用x参数,二极管可以适用n参数!

看此波形可以看到电容x2 之后明显容值变化了,RC时间常数变大了! 上升速度在变慢,如粉色。

那么x参数和n参数在不适用元件上会出现什么问题呢?我试着在原理图中将此两种参数应用在电阻上面,看是什么问题。

此时,仿真时候会提示错误行信息!从而证明x只针对电容,n只针对二极管!

好了!关键步骤操作进行总结:

To define multiple instances of a model in a device symbol:

  1. Ctrl + 右键,点击器件编辑属性。
  2.  Value2 栏中.插入m=<number>” 或者 “n=<number>”, 允许出现小数
  3. Value2 属性,点击后面 Vis 列,出现x号
  4. 为了跟有些原理图电容匹配,可以适用x4,或者m=4 都代表4个电容并联。

参考文章:LTspice: Combining Multiple Model Instances Into One Symbol | 亚德诺半导体 (analog.com)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

硬件老搬张

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值