You need to use EasyEDA editor to create some projects before publishing
.model is not shown up in spice simulation
2519 4
mo_jaeger 8 years ago
I have created a spice symbol named as BC547, copied the following model into the subckt string and successfully saved it. .MODEL BC547a npn +IS=7.443e-11 BF=1343.59 NF=1.42606 VAF=80.4901 +IKF=0.427163 ISE=2.4623e-10 NE=2.73946 BR=62.79 +NR=1.5 VAR=1.0092 IKR=4.27163 ISC=2.4623e-10 +NC=1.9119 RB=0.1 IRB=0.1 RBM=0.1 +RE=0.579065 RC=3.01102 XTB=0.1 XTI=2.25359 +EG=1.05 CJE=7.34106e-12 VJE=0.586136 MJE=0.33309 +TF=5.7202e-10 XTF=4.45797 VTF=26.03 ITF=0.487193 +CJC=4.04665e-12 VJC=0.95 MJC=0.343664 XCJC=0.799994 +FC=0.8 CJS=0 VJS=0.75 MJS=0.5 +TR=1e-07 PTF=0 KF=0 AF=1 Pin Map is ok and Prefix set to Q. After saving, when i copy the spice symbol into a schematics, the model identifier becomes "void". The .model string does not show up in the netlist for document -> spice and logically the simulation provides an error regards Olav
Comments
andyfierman 8 years ago
Hi Olav, You have found a bug. I have posted an internal bug report about this. In the meanwhile there is a simple way to work around this. I have put the BC547a model into the EasyEDA spice model library so you can now either: 1) Place your own symbol straight into the schematic or: 2) Place an NPN transistor symbol from the EasyEDA Libs or and then just edit the name from: **2DC2412R** to: **BC547a** :)
Reply
mo_jaeger 8 years ago
Hej, thanks for the solution and letting me know a quick fix. Not my intention to find bug :-) band i'm not sure whether I'm not still too stupid. My symbol name is BC547 the same as in the .model. This time I copied the model directly in the schematics and changed the text type to "spice". Now it shows up in the netlist for document, but when running any simulation it still shows the same error unknown subckt. I was using the anonymous template and you can see it in my public project testcircuit. Anyway I guess there's a fix planned, because I think its burdensome to add new models into the library and for me quite time consuming to manually copy the models for all devices in every projects. thanks for the help and kind regards Olav
Reply
andyfierman 8 years ago
1) As I said last night, I have put the BC547a model into the EasyEDA library so you don't have to paste the model into your schematic. 2) Are you really getting an > unknown subckt error? and not > Unable to find definition of model > > errors/warnings in your design, please fix them if you need > > errors/warnings in your design, please fix them if you need. If so then select the symbol and press `I`. Then change the Spice prefix from `X` to `Q`. Otherwise, leave the Spice prefix as `Q`. 3) You have to edit the name of the symbol to be *identical* to that of the spice model (except it's case insensitive). Change the name of the symbol to BC547a and it will run. 4) Do please study: https://easyeda.com/Doc/Simulation-eBook/Device-models.htm#Device-models https://easyeda.com/Doc/Simulation-eBook/Schematic-symbols-prefixes-and-pin-numbers.htm#Schematic-symbols-prefixes-and-pin-numbers and especially: https://easyeda.com/Doc/Simulation-eBook/Schematic-symbols-prefixes-and-pin-numbers.htm#For-MODEL-defined-models https://easyeda.com/Doc/Simulation-eBook/Schematic-symbols-prefixes-and-pin-numbers.htm#For-SUBCKT-defined-models (but please note, I've just spotted a couple of typos: the text refers to " ...'M' for .model..." in several places which should be read as "... the relevant prefix letter for the .model statement that defines the desired type of component...". You device is a bipolar transistor or bjt and it is defined by a .model statement so it must have a Spice prefix of `Q`. The spice prefix of `M` only refers to MOSFETs defined by .model statements. Sorry about the confusion that this may cause. I'll correct it ASAP. If in doubt, please refer to the list of Spice Prefixes and their associated circuit elements given in the table in the earlier section in the eBook on **PCB and Spice Prefix**)
Reply
andyfierman 8 years ago
Please see: https://easyeda.com/andyfierman/mo_jaeger_testcircuit_fixed-pZTbtnEWe :)
Reply
Login or Register to add a comment
goToTop
你现在访问的是EasyEDA海外版,使用建立访问速度更快的国内版 https://lceda.cn(需要重新注册)
如果需要转移工程请在个人中心 - 工程 - 工程高级设置 - 下载工程,下载后在https://lceda.cn/editor 打开保存即可。
有问题联系QQ 3001956291 不再提醒
svg-battery svg-battery-wifi svg-books svg-more svg-paste svg-pencil svg-plant svg-ruler svg-share svg-user svg-logo-cn svg-double-arrow -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus-@1x -mockplus-

Cookie Notice

Our website uses essential cookies to help us ensure that it is working as expected, and uses optional analytics cookies to offer you a better browsing experience. To find out more, read our Cookie Notice