bobc
June 23, 2018, 4:12pm
1
I am simulating an NE555. If I export the circuit to SPICE netlst and run in ngspice v28, it appears to work as expected. But if I run in the KiCad simulator (which uses v28), it appears to be incomplete, or it stops prematurely. Could this be an issue with v27 vs v28? Or maybe some other issue?
NE555 spice library tlc555.lib (1.2 KB)
KiCad project test_ne555.zip (3.6 KB)
PKTKS
June 23, 2018, 5:41pm
2
Don’t expect the internal simulator to be near close
the real standalone ngspice.
The internal implementation is fairly simple compared
to all the power of “programmable” spice output
In summary lines like .ic .control MAY BE ignored by the shared lib
SPICE is totally programmable with loops and variables and
several other things like .meas (measures) FFT of various types
and more
Paul
bobc
June 23, 2018, 5:49pm
3
Just to correct misinformation the KiCad internal simulation DOES USE .IC CONTROL .
PKTKS
June 23, 2018, 5:54pm
4
i tried different ways.
the only way with reasonable results i had by
including the .ic line in the “CUSTOM” settings
like:
.ic blahblah
.tr blahblah.
placing this line in the sheet does not work for me at all
it will be exported but not included by default
(like using the custom set)
Analog results follow the .option set used
Paul
bobc
June 23, 2018, 5:56pm
5
IT WORKS FOR ME .
I even posted the project so you can try it, it took me 5 seconds to show .IC WORKS. Perhaps you did something WRONG?
PKTKS
June 23, 2018, 5:57pm
6
Don’t think so
I tried very hard some complex settings
and only by including by hand the .ic line
in the “use custom set” it works
And some sims do require the proper .ic line
and .option line.
BTW i corrected “DON’T USE” to “MAY NOT” statement
things are dynamic at fast pace and do change a lot
Paul
PKTKS
June 23, 2018, 5:58pm
8
Maybe the more recent version can handle this tag better…
Maybe…
I will find some time to repass some sims
BTW i corrected DONT USE to MAY NOT statement
things are dynamic at fast pace and do change a lot
Paul
bobc
June 23, 2018, 6:37pm
9
It appears that the model and/or simulation are sensitive to the time step size. By adjusting that parameter, I can make the KiCad sim work as expected, and the ngspice standalone to show a similar error.