Problems trying to run a 555 timer model

Problems trying to run a 555 timer model

Anonymous
Not applicable
1,758 Views
2 Replies
Message 1 of 3

Problems trying to run a 555 timer model

Anonymous
Not applicable

Hi

I've used ngspice successfully to do some basic modeling but I can't seem to figure out the error I'm getting when adding a 555 timer.

 

"

Circuit: * spicenetlist

 

Too few parameters for subcircuit type "ne555" (instance: xx_ic1)

Note: No ".plot", ".print", or ".fourier" lines; no simulations run

"

I've got a simple oscillator circuit that uses a 555 timer and I went out and found a couple of different SPICE models to try.  Both the NE555 and TLC555 (below) give me the above error when attempting to simulate.

UPDATE: after fiddling with this some more, I realized the error seems to be as a result of not having one of the unused pins on the 555 attached.   I grounded the unused pin 5 and now it seems to work.  Is there a way around this?

 

Here's the complete netlist file.   I get that there are no .plot or .print lines and thus no simulation is being run but I've never had to add these to the file before.  They were always added for me.  Even when I manually add them I seem to get the same error. 

 

* SpiceNetList

*

* Exported from SpiceCodeTransmitter.sch at 3/29/20 2:55 PM

*

* EAGLE Version 9.6.0 Copyright (c) 1988-2020 Autodesk, Inc.

*

.TEMP=25.0

 

* --------- .OPTIONS ---------

.OPTIONS ABSTOL=1e-12 GMIN=1e-12 PIVREL=1e-3 ITL1=100 ITL2=50 PIVTOL=1e-13 RELTOL=1e-3 VNTOL=1e-6 CHGTOL=1e-15 ITL4=10 METHOD=TRAP SRCSTEPS=0 TRTOL=7 NODE

 

* --------- .PARAMS ---------

 

* --------- devices ---------

C_C2 N_1 0 .01uf

L_L3 N_7 N_3 7uh

X_IC1 0 N_1 N_5 N_3 NE555

R_R2 N_1 N_2 1k

C_C3 N_7 N_6 470pf

L_L4 N_3 N_6 7uh

Q_T1 N_6 N_4 N_5 2N2222

V_V1 N_3 0 5v

R_R3 N_4 N_3 100k

C_C1 N_3 0 .01uf

R_R4 N_5 0 100

C_C5 0 N_6 .005uf

R_R1 N_2 N_3 100k

C_C4 N_7 N_4 .1uf

 

* --------- models ---------

 

* Copyright © Linear Technology Corp. 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008. All rights reserved.

*

.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

**********

* From Texas Intruments

* TLC555 TIMER MACROMODEL *

* 4/1/92 *

*

.SUBCKT TLC555 1 2 3 4 5 6 7 8

* Node Connection

* COMMON

* | TRIGGER

* | | OUTPUT

* | | | RESET

* | | | | CONTROL

* | | | | | THRESHOLD

* | | | | | | DISCHARGE

* | | | | | | | VDD

* | | | | | | | |

* 1 2 3 4 5 6 7 8

EREF 15 1 8 1 .5

GSOURCE 8 3 8 26 12.5E-3

GSINK 3 1 26 1 67E-3

VD1 8 27 DC .8

VD2 28 1 DC .85

VREF 30 1 DC 1.2

C1 29 1 700E-15

RREF2 30 1 100E3

RREF 15 1 100E3

ROUT 3 1 100K

R1 6 1 500E9

R2 2 1 500E9

R3 8 5 75E3

R4 5 9 75E3

R5 9 1 75E3

R6 10 11 1E3

R7 13 14 1E3

R8 8 12 150E3

R9 4 8 500E9

R10 20 19 1E3

R11 16 17 1E3

R12 8 18 150E3

R13 8 21 150E3

R14 22 23 1E3

R15 8 26 150E3

R16 24 25 1E3

R19 7 1 500E9

R20 29 26 1E6

D1 1 11 DMOD

D2 12 11 DMOD

D3 12 14 DMOD

D4 1 14 DMOD

D5 18 17 DMOD

D6 1 17 DMOD

D7 18 19 DMOD

D8 1 19 DMOD

D9 21 14 DMOD

D10 21 25 DMOD

D11 1 23 DMOD

D12 18 23 DMOD

D13 26 25 DMOD

D14 1 25 DMOD1

D15 3 27 DMOD

D16 28 3 DMOD

E1 10 1 6 5 1000

E2 13 1 2 9 1000

E3 16 1 15 12 1000

E4 22 1 15 21 1000

E5 24 1 15 18 1000

E7 20 1 4 30 1000

M1 7 29 1 1 MOSMOD

.MODEL MOSMOD NMOS (LEVEL=1 KP=1 VTO=1 RD=5)

.MODEL DMOD D (RS=1E-6)

.MODEL DMOD1 D (RS=1E-6 IS=1E-9)

.ENDS

**********

 

 

 

.MODEL 2N2222 NPN (IS=3.88184e-14 NF=0.90 BF=240 VAF=114

+ IKF=0.293 ISE=2.73p NE=2.00 BR=4.00 NR=1.00

+ VAR=24.0 IKR=0.600 RE=0.194 RB=0.777 RC=0.5

+ XTB=1.5 CJE=24.9p VJE=1.10 MJE=0.500 CJC=12.4p VJC=0.300

+ MJC=0.300 TF=371p TR=64.0n EG=1.12 )

 

 

 

* --------- simulation ---------

.control

set filetype=ascii

OP

write SpiceCodeTransmitter.sch.sim

.endc

 

 

 

.END

0 Likes
1,759 Views
2 Replies
Replies (2)
Message 2 of 3

mtl_asm
Collaborator
Collaborator

Hi,

 

I am not a spice expert but I believe the error may be basically what it says:

 

Too few parameters for subcircuit type "ne555" (instance: xx_ic1)

 

Here is your devices line with X_IC1

 

X_IC1 0 N_1 N_5 N_3 NE555

 

Looks like you specify 4 nodes here but the model wants 8

 

.subckt NE555 1 2 3 4 5 6 7 8

 

I believe you must specify the connection for all 8 pins. 

 

 

0 Likes
Message 3 of 3

Anonymous
Not applicable

Yes.  That seems to be the problem.  The interface around ngspice in Eagle needs some improvements.