Hittade den här modellen av en BD140.
Men hur använder jag den i LTspice?
*****************************************************************
******STMicroelectronics MOSFET, IGBT and Bipolar Library *******
*****************************************************************
* *
* Models provided by STMicroelectronics are not guaranteed to *
* fully represent all the specifications and operating *
* characteristics of the product behavior that they reproduce. *
* The model describes the characteristics of a typical device. *
* In all cases, the current product data sheet contains all *
* information to be used like final design guidelines and the *
* only actual performance specification. *
* Altough models can be a useful tool in evaluating device *
* performance, they cannot model exact device performance under *
* all conditions. *
* STMicroelectronics therefore does not assume any *
* responsibility arising from their use. *
* STMicroelectronics reserves the right to change models *
* without prior notice. *
* *
*****************************************************************
Så här ser en BD140 jag använt ut, har för mig att man bara ändrade lite i headern.
Gör en .asy fil (kopiera en befintlig symbol), lägg transistormodellen i en .mod .sub fil och lägg dem i dina symbol respektive modell kataloger. Lägg till ett .model-direktiv eller hänvisa till modellen i symbolens attribut.
Jag adderade en BD140.mod fil i katalogen sub som ser ut som din plus att jag skapade
en symbol som nu går att hitta bland komponenterna i menyn, en egen symbol. Fast lite
hade jag ju vilja haft det som att jag väljer en pnp och sedan ändrar den till önskad typ.
Men vart ska jag placera .mod-filen?
Testade sub och cmp katalogerna och även ett .include BD140.mod i schemat vilket inte hjälpte.
Jag skrev fel ovan, modellen skall heta .sub och ligga i sub-katalogen.
"An absolute path name may be entered for the filename. Otherwise LTspice looks first in the directory %HOMEPATH%\Documents\LTspiceXVII\lib\sub and then in the directory that contains the calling netlist and finally in the list of directories listed in the Library Search Path."
Tror detta är ändrat mellan IV och XVII versionerna.
Hittade en ren modell utan subcircuit och klippte in i standard.bjt filen.
Det fungerar fint. Då finns BD140 med när man väljer vilken typ pnp ska vara.
I äldre LTSpice har jag inte haft några större problem att includera .sub-filer
för diverse komponenter som varit skrivna för spice/pspice. Men det funkar inte
i senaste versionen.
Är det inte .model man skall skriva som direktiv? Kanske fungerar med båda. Jag har lagt till hänvisning till modell/subcircuit filen direkt i symbol (.asy) filen. I den gamla versionen har jag för mig att man kunde göra det genom att klicka på en av raderna i i GUI:t och lägga till en hänvisning till subcircuit/modell filen.
SYMATTR Value BD140
SYMATTR Prefix X
SYMATTR Description Fairchild medium power PNP
SYMATTR ModelFile MinaModeller\BD140.mod
Ur min .asy fil, det verkar funka även med .mod filer, innehållet är ju bara text. Skriv bara BD140.sub om din fil ligger direkt i "LTspiceXVII\lib\sub\" katalogen, sökvägen är relativ till den.
BD-transistorer borde gå att hitta på ltwiki där någon annan testat att den fungerar.