NE5532 OpAmp NGspice Simulation Issue

I’ve got a simple OpAmp DC Amplifier circuit using the NE5532 OpAmp …
created for testing purposes.
But I can’t get it to work.

I got the model from jeastham.blogspot.com HERE

I set up the NE5532 spice model like this.

  • Library: NE5532.mod
  • Model: NE5532
  • Type: Subcircuit
  • Alternate Node Sequence: 3 2 8 4 1

You can check out the project by looking at the attached zip file.
NE5532 Test Ckt.zip (7.8 KB)

The Schematic is below, followed by James Eastham’s Model Definition
Thanks for any help on this… so far I’m stumped.

NE5532 OpAmp Model Definition

***** NE5532 Source: Texas Instruments NE5534

  • C2 added to simulate compensated frequency response (Uwe Beis)

  • NE5532 OPERATIONAL AMPLIFIER “MACROMODEL” SUBCIRCUIT

  • CREATED USING NE5534 model from Texas InstrumentsAT 12:41

  • (REV N/A) SUPPLY VOLTAGE: +/-15V

  • CONNECTIONS: NON-INVERTING INPUT

  •            | INVERTING INPUT
    
  •            | | POSITIVE POWER SUPPLY
    
  •            | | | NEGATIVE POWER SUPPLY
    
  •            | | | | OUTPUT
    
  •            | | | | |
    

.SUBCKT NE5532 1 2 3 4 5
*
C1 11 12 7.703E-12
C2 6 7 23.500E-12
DC 5 53 DX
DE 54 5 DX
DLP 90 91 DX
DLN 92 90 DX
DP 4 3 DX
EGND 99 0 POLY(2) (3,0) (4,0) 0 .5 .5
FB 7 99 POLY(5) VB VC VE VLP VLN 0 2.893E6 -3E6 3E6 3E6 -3E6
GA 6 0 11 12 1.382E-3
GCM 0 6 10 99 13.82E-9
IEE 10 4 DC 133.0E-6
HLIM 90 0 VLIM 1K
Q1 11 2 13 QX
Q2 12 1 14 QX
R2 6 9 100.0E3
RC1 3 11 723.3
RC2 3 12 723.3
RE1 13 10 329
RE2 14 10 329
REE 10 99 1.504E6
RO1 8 5 50
RO2 7 99 25
RP 3 4 7.757E3
VB 9 0 DC 0
VC 3 53 DC 2.700
VE 54 4 DC 2.700
VLIM 7 8 DC 0
VLP 91 0 DC 38
VLN 0 92 DC 38
.MODEL DX D(IS=800.0E-18)
.MODEL QX NPN(IS=800.0E-18 BF=132)
.ENDS

What does that statement mean? What is the simulator output? What is your expectation?

The Alternate node sequence in your Eeschema file posted above is
3 4 8 4 1
which is wrong.

holger, I changed the Alternatenode sequence to
3 2 8 4 1
but the simulation still doesn’t work.

With the Sim Parameters - Trasient set to

  • Time Step: 10u seconds

  • Final Time: 1 second
    (and I’ve tried numerous Time Step and Final Time values)

  • And Compatibility Mode = LTspice

I get the following…

Compatibility modes selected: lt
Circuit: KiCad schematic
Reducing trtol to 1 for xspice 'A' devices
Doing analysis at TEMP = 27.000000 and TNOM = 27.000000
Note: Starting dynamic gmin stepping
Trying gmin =   1.0000E-03 Warning: Further gmin increment
Trying gmin =   5.6234E-03 Warning: Further gmin increment
Trying gmin =   8.6596E-03 Warning: Further gmin increment
Trying gmin =   9.6466E-03 Warning: Further gmin increment
Trying gmin =   9.9105E-03 Warning: Further gmin increment
Trying gmin =   9.9775E-03 Warning: Further gmin increment
Trying gmin =   9.9944E-03 Warning: Further gmin increment
Trying gmin =   9.9986E-03 Warning: Further gmin increment
Trying gmin =   9.9996E-03 Warning: Last gmin step failed
Warning: Dynamic gmin stepping failed
Note: Starting true gmin stepping
Trying gmin =   1.0000E-03 Warning: Further gmin increment
Trying gmin =   5.6234E-03 Warning: Further gmin increment
Trying gmin =   8.6596E-03 Warning: Further gmin increment
Trying gmin =   9.6466E-03 Warning: Further gmin increment
Trying gmin =   9.9105E-03 Warning: Further gmin increment
Trying gmin =   9.9775E-03 Warning: Further gmin increment
Trying gmin =   9.9944E-03 Warning: Further gmin increment
Trying gmin =   9.9986E-03 Warning: Further gmin increment
Trying gmin =   9.9996E-03 Warning: Last gmin step failed
Warning: True gmin stepping failed
Note: Starting source stepping
Supplies reduced to   0.0000% Note: One successful source step
Supplies reduced to   0.1000% Note: One successful source step
Supplies reduced to   0.2000% Note: One successful source step
Supplies reduced to   0.3500% Note: One successful source step
Supplies reduced to   0.5750% Note: One successful source step
Supplies reduced to   0.9125% Note: One successful source step
Supplies reduced to   1.4188% Note: One successful source step
Supplies reduced to   2.1781% Note: One successful source step
Supplies reduced to   3.3172% Note: One successful source step
Supplies reduced to   5.0258% Note: One successful source step
Supplies reduced to   7.5887% Note: One successful source step
Supplies reduced to  10.1516% Note: One successful source step
Supplies reduced to  13.9959% Note: One successful source step
Supplies reduced to  19.7624% Note: One successful source step
Supplies reduced to  28.4122% Note: One successful source step
Supplies reduced to  41.3868% Note: One successful source step
Supplies reduced to  60.8487% Supplies reduced to  41.3868% Note: One successful source step
Supplies reduced to  42.3599% Supplies reduced to  41.3868% Note: One successful source step
Supplies reduced to  41.4354% Note: One successful source step
Supplies reduced to  41.5084% Note: One successful source step
Supplies reduced to  41.6179% Note: One successful source step
Supplies reduced to  41.7821% Note: One successful source step
Supplies reduced to  42.0284% Note: One successful source step
Supplies reduced to  42.3979% Note: One successful source step
Supplies reduced to  42.9521% Supplies reduced to  42.3979% Warning: source stepping failed
Note: Transient op started
Transient solution failed -
Last Node Voltages
------------------
Node                                   Last Voltage        Previous Iter
----                                   ------------        -------------
/+vcc                                             0                    0
net-_r1-pad1_                          -0.000960353         -0.000960353
net-_r3-pad2_                            -0.0201674           -0.0201674
/out                                   -9.57286e-13          1.99455e-12
xu1.11                                   -0.0460973           -0.0460973
xu1.12                                   -0.0490531           -0.0490531
xu1.6                                   1.16701e+22          3.14347e+22 *
xu1.7                                   1.16659e+22          3.14304e+22 *
xu1.53                                         -2.7                 -2.7
xu1.54                                          2.7                  2.7
xu1.90                                       40.045               39.878 *
xu1.91                                           38                   38
xu1.92                                          -38                  -38
/-vcc                                             0                    0
xu1.99                                            0                    0
xu1.10                                    -0.681359            -0.681359
xu1.13                                     -0.66413             -0.66413
xu1.14                                     -0.65498             -0.65498
xu1.9                                             0                    0
xu1.8                                   1.16659e+22          3.14304e+22 *
h.xu1.hlim#branch                       8.52599e+19          9.49809e+19 *
v.xu1.vlim#branch                       2.33317e+20          6.28608e+20 *
v2#branch                               1.73158e+30          1.73158e+30
v.xu1.vln#branch                       -7.80458e-11         -7.78788e-11
v.xu1.vlp#branch                       -8.52599e+19         -9.49809e+19 *
v.xu1.ve#branch                        -1.73158e+30         -1.73158e+30
v.xu1.vc#branch                        -1.73158e+30         -1.73158e+30
v.xu1.vb#branch                        -3.85204e+16         -2.89579e+16 *
v1#branch                               1.73158e+30          1.73158e+30
a$poly$e.xu1.egnd#branch_1_0             6.5424e+20          2.16518e+20 *
No. of Data Rows : 0
doAnalyses: TRAN:  Timestep too small; initial timepoint: trouble with xu1:dx-instance d.xu1.dlp
run simulation(s) aborted

Your power supplies are not connected. Use a wire.
Just pasting a label is not enough.

ML9104, It may not looklike it but the power supplies are connected. The wire is just short.
To check this I can click the +VCC or -VCC label and drag the wire out longer.
Any other help would be highly appriceated.

The power labels looks OK, If labels are not connected, then KiCad shows little squares.
image

You have set the power supplies to
dc 15 pulse 0 15 1u 1u 1u 10 10
(delay, rise time, fall time 1u), and then you have chosen a step time of 10u for the transient simulation. That’s not reasonable. You are also forcing ngspice to find an operating point with power supply voltages at 0V as a starting point for the transient simulation. For sure the data sheet will set a minimum operating voltage for the NE5532, and it may happen that its model is simply not made for power supplies 0V and thus will not converge.

So simplify the power supplies to
dc 15

The compatibility mode should always be set to ‘PSPICE and LTSPICE’. This does not matter here, but would be essential for all modern OpAmp models.

1 Like

holger, that did it. Fixed & working!

Thanks for the help everyone.