LTspice 是非常好的免費軟體, 可製作簡單電子電路激發對電子學的興趣(筆者超推薦)
參考: LTspice 教學(1)
http://newscienceview.blogspot.com/2012/07/ltspice-1.html
參考: LTspice 教學(2)
http://newscienceview.blogspot.com/2012/07/ltspice-2.html
參考: LTspice 教學(3)
http://newscienceview.blogspot.com/2012/07/ltspice-3.html
參考: LTspice 教學(4)
http://newscienceview.blogspot.com/2012/07/ltspice-4.html
1) LTSPICE模型導入
有三種導入方法 :
第一種方法:就是把模型檔貼在當前的圖紙上,方法見圖:
第二種方法 : 如有*.lib的庫檔,比如PSPICE中的日本電晶體庫jbipolar.lib,將該檔copy到LTC\LTspiceIV\lib\sub目錄中.然後按圖操作:
發個例圖
第三種方法:將模型檔直接貼到LTC\LTspiceIV\lib\cmp中的相應檔中。如要將PSPICE的diode.lib的模型全導入到cmp中的standard.dio中。先用記事本打開diode.lib,全選,複製。而後用記事本打開standard.dio,在其適當的位置粘貼,關閉。再打開LTspice,見圖;發現二極體庫多了很多。電晶體同理。
LTspice IV 可提供众多的器件模型,包括诸如晶体管和 MOSFET 等分立器件的模型。不过,它还拥有许多由其他制造商提供的第三方模型,您可以把它们添加至自己的 LTspice IV 电路仿真中。此类第三方 SPICE 模型采用 “.MODEL” 和 “.SUBCKT” 语句来表述。被赋予 “.MODEL” 语句的模型用于固有 SPICE 器件 (例如二极管和晶体管)。而被赋予 “.SUBCKT” 语句的模型则利用固有 SPICE 器件的电路结集来定义组件。
本视频概要说明了怎样为 LTspice IV 增添一个用于固有 SPICE 器件的第三方“.MODEL” 语句、以及如何添加和创建一个用于第三方 “.SUBCKT” 语句的符号。
http://video.linear.com.cn/97
如何自建LTspice 模型
http://www.crystalradio.biz/thread-203515-1-1.html
Adding Models to LTSpice
This is a method to add models to LTSpice that eliminates the need for include statements and allows the component to be accessed thru the regular Spice menu.
1- Create two new folders. One in LTC/LTSiceIV/lib/sub/new (new is just the name I gave my file) and another in LTC/LTSPiceIV/lib/sym/new.
2- Find the model you want from the part vendor’s site, download it and save it into notepad as an ANSI Text file. Note the exact part name in the line .SUBCKT
*//////////////////////////////////////////////////////////
*LM324 Low Power Quad OPERATIONAL AMPLIFIER MACRO-MODEL
*//////////////////////////////////////////////////////////
*
* connections: non-inverting input
* | inverting input
* | | positive power supply
* | | | negative power supply
* | | | | output
* | | | | |
* | | | | |
.SUBCKT LM324 1 2 99 50 28
*
*Features:
3- Save this file to the LTC/LTSiceIV/lib/sub/new folder as LM324.sub (LM324 is just an example for a part number use the one you downloaded.) This file must match the .SUBCKT number from the downloaded file. Note that 324.sub is the file name not the file type. The file type is still ANSI Text.
4-You could draw a new symbol, but it is easier to copy an existing one. Go to LTC/LTSPiceIV/lib/sym/Opamps and choose a component similar to the one you downloaded (in this case I chose an LT1013 op amp) and double click it. It should open in LTSpice.
4- You can now edit this device to match your new part. Click on Edit-Edit Attributes from the LTSpice menu. The symbol attribute window should open.
5- Modify the data by double clicking the line.
Prefix X
Spice Model new/LM324.sub
Value 1 LM324
Value 2 LM324
Description Quad Op Amp
Click OK.
6- File save as LTC/LTSPiceIV/lib/sym/new/LM324.asy.
You’re done.
7- To add this part to a schematic click on the component icon as usual, then new and LM324.
沒有留言:
張貼留言
注意:只有此網誌的成員可以留言。