KiCad-Spice-Library
KiCad-Spice-Library copied to clipboard
NE555 timer model not working
I wanted to use the NE555 model from this repo but it doesn't seem to be working:
$ ./extractModels.pl 'NE555#/uncategorized/Bordodynovs Electronics Lib/sub/NE555.sub'
*
* NE555 - Extracted from '/uncategorized/Bordodynovs Electronics Lib/sub/NE555.sub'
*
.subckt NE555 1 2 3 4 5 6 7 8
A1 N001 2 1 1 1 1 N003 1 SCHMITT Vt=0 Vh=1m
R1 N001 1 5K
R2 5 N001 5K
R3 8 5 5K
S1 1 7 N007 1 D
A2 N011 N003 1 1 1 1 N008 1 SRFLOP Trise=100n tripdt=10n
A3 6 5 1 1 1 1 N012 1 SCHMITT Vt=0 Vh=1m
S2 8 3 N009 1 O
S3 3 1 1 N009 O
A6 1 N006 1 N008 1 1 N007 1 OR Ref=.5 Vlow=-1 Trise=100n
R7 8 1 4K
R9 2 1 1G
R10 6 1 1G
A4 1 N008 1 N006 1 N009 1 1 OR ref=.5 Vlow=-1 Trise=100n
A5 4 1 1 1 1 N006 1 1 SCHMITT Vt=.7 Vh=1m
D1 4 1 DR
A7 1 N006 1 N012 1 1 N011 1 OR
D2 8 4 400uA
.model DR D(Ron=150K Roff=1T Vfwd=1.6)
.model O SW(Ron=6 Roff=1Meg Vt=0 Vh=-.8)
.model D SW(Ron=6 Roff=.75G Vt=.5 Vh=-.4)
.model 400uA D(Ron=1K Ilimit=400u epsilon=.5)
.ends NE555
When I try to simulate it (astable mode), I get the following error:
Note: Compatibility modes selected: ps lt a
warning, can't find model 'or' from line
a7 1 n006 1 n012 1 1 n011 1 or
warning, can't find model 'c' from line
c2 net-_u1-thr_ gnd c
Circuit: KiCad schematic
Error on line:
a.xu1.a1 xu1.n001 net-_u1-thr_ 0 0 0 0 xu1.n003 0 xu1.schmitt xu1.vt 0 xu1.vh 1m
MIF-ERROR - unable to find definition of model 1m
Here's my schematic: