I try to simulate a circuit, but I always get an error message:
Analysys: time step too small; initial timepoint: trouble with
u3:mm-instance m:u3:1
u3 is a Mosfet IRF4905.
Has anyone an idea how I can solve the problem?
Best regards.
Sven
--
Message posted using http://www.talkaboutelectronicequipment.com/group/sci.electronics.design/
More information at http://www.talkaboutelectronicequipment.com/faq.html
Show us your circuit! Post the .asc file, if it's not too big.
This kind of error usually indicates there's something dodgy
in your circuit; something that's likely not to work in a
real circuit either.
Jeroen Belleman
here is my *,asc file
Version 4
SHEET 1 2236 680
WIRE 240 -720 64 -720
WIRE 336 -720 240 -720
WIRE 560 -720 336 -720
WIRE 640 -720 560 -720
WIRE 800 -720 640 -720
WIRE 832 -720 800 -720
WIRE 960 -720 928 -720
WIRE 1008 -720 960 -720
WIRE 1056 -720 1008 -720
WIRE 1168 -720 1136 -720
WIRE 1472 -720 1168 -720
WIRE 1584 -720 1472 -720
WIRE 1856 -720 1584 -720
WIRE 1952 -720 1856 -720
WIRE 1472 -704 1472 -720
WIRE 1856 -704 1856 -720
WIRE 640 -688 640 -720
WIRE 800 -688 800 -720
WIRE -288 -656 -288 -672
WIRE -176 -656 -176 -672
WIRE -64 -656 -64 -672
WIRE 64 -656 64 -720
WIRE 1584 -656 1584 -720
WIRE 240 -640 240 -720
WIRE 1952 -640 1952 -720
WIRE 1008 -624 1008 -720
WIRE 1168 -624 1168 -720
WIRE 1520 -608 1472 -608
WIRE 640 -592 640 -608
WIRE 800 -592 800 -624
WIRE 800 -592 640 -592
WIRE 848 -592 848 -672
WIRE 848 -592 800 -592
WIRE 1856 -592 1856 -624
WIRE 1856 -592 1808 -592
WIRE 1856 -560 1856 -592
WIRE -288 -544 -288 -576
WIRE -176 -544 -176 -576
WIRE -64 -544 -64 -576
WIRE 1584 -544 1584 -560
WIRE 560 -528 560 -720
WIRE 64 -496 64 -576
WIRE 240 -496 240 -576
WIRE 240 -496 64 -496
WIRE 496 -480 464 -480
WIRE 1008 -464 1008 -560
WIRE 1168 -464 1168 -560
WIRE 1168 -464 1008 -464
WIRE 1504 -464 1168 -464
WIRE 1584 -464 1504 -464
WIRE 1680 -464 1584 -464
WIRE 1856 -464 1856 -480
WIRE 1856 -464 1760 -464
WIRE 1952 -464 1952 -560
WIRE 1952 -464 1856 -464
WIRE 240 -432 240 -496
WIRE 1168 -432 1168 -464
WIRE 336 -384 336 -720
WIRE 560 -384 560 -432
WIRE 656 -384 560 -384
WIRE 848 -384 848 -592
WIRE 848 -384 736 -384
WIRE 1344 -352 1344 -400
WIRE 864 -320 832 -320
WIRE 976 -320 944 -320
WIRE -400 -304 -448 -304
WIRE -272 -304 -320 -304
WIRE 240 -304 240 -352
WIRE 1120 -304 1088 -304
WIRE 1232 -304 1200 -304
WIRE -528 -272 -528 -304
WIRE 336 -256 336 -304
WIRE 400 -256 336 -256
WIRE 464 -256 464 -480
WIRE 464 -256 400 -256
WIRE 736 -208 704 -208
WIRE 832 -208 832 -320
WIRE 832 -208 816 -208
WIRE 896 -208 832 -208
WIRE 976 -192 976 -320
WIRE 976 -192 960 -192
WIRE 992 -192 976 -192
WIRE 1088 -192 1088 -304
WIRE 1088 -192 1072 -192
WIRE 1152 -192 1088 -192
WIRE -368 -176 -368 -192
WIRE 336 -176 336 -256
WIRE 560 -176 560 -384
WIRE 896 -176 864 -176
WIRE 1232 -176 1232 -304
WIRE 1232 -176 1216 -176
WIRE 1248 -176 1232 -176
WIRE 1344 -176 1344 -272
WIRE 1344 -176 1328 -176
WIRE 1408 -176 1408 -656
WIRE 1408 -176 1344 -176
WIRE -528 -160 -528 -192
WIRE -480 -160 -528 -160
WIRE -448 -160 -448 -304
WIRE -448 -160 -480 -160
WIRE -400 -160 -448 -160
WIRE 1152 -160 1120 -160
WIRE -272 -144 -272 -304
WIRE -272 -144 -336 -144
WIRE -224 -144 -272 -144
WIRE -192 -144 -224 -144
WIRE -80 -144 -112 -144
WIRE 0 -144 -80 -144
WIRE 80 -144 0 -144
WIRE 864 -144 864 -176
WIRE -400 -128 -448 -128
WIRE 192 -128 144 -128
WIRE 240 -128 240 -224
WIRE 240 -128 192 -128
WIRE 272 -128 240 -128
WIRE 464 -128 464 -256
WIRE 496 -128 464 -128
WIRE 1120 -128 1120 -160
WIRE -80 -112 -80 -144
WIRE 80 -112 32 -112
WIRE -528 -64 -528 -160
WIRE -368 -64 -368 -112
WIRE 112 -64 112 -96
WIRE 704 -64 704 -208
WIRE 1504 -64 1504 -464
WIRE 1504 -64 704 -64
WIRE 560 -48 560 -80
WIRE 576 -48 560 -48
WIRE 336 -32 336 -80
WIRE -80 -16 -80 -48
WIRE -448 32 -448 -128
WIRE -400 32 -448 32
WIRE -272 32 -272 -144
WIRE -272 32 -320 32
WIRE 848 48 848 0
WIRE 1200 48 1168 48
WIRE 1312 48 1264 48
WIRE 336 96 336 48
WIRE -528 112 -528 16
WIRE -448 112 -448 96
WIRE 1232 192 1232 144
WIRE 1312 208 1312 48
WIRE 1312 208 1264 208
WIRE 1408 208 1312 208
WIRE 1488 208 1408 208
WIRE 1808 208 1808 -592
WIRE 1808 208 1568 208
WIRE 32 224 32 -112
WIRE 320 224 32 224
WIRE 848 224 848 128
WIRE 848 224 320 224
WIRE 912 224 848 224
WIRE 1024 224 992 224
WIRE 1056 224 1024 224
WIRE 1168 224 1168 48
WIRE 1168 224 1136 224
WIRE 1200 224 1168 224
WIRE 1280 240 1264 240
WIRE 1232 272 1232 256
FLAG -448 112 0
FLAG -528 112 0
FLAG -176 -544 0
FLAG -64 -544 0
FLAG -176 -672 -UB
FLAG -64 -672 +UB
FLAG -480 -160 IN
FLAG -368 -192 -UB
FLAG -368 -64 +UB
FLAG -528 -304 +UB
FLAG -80 -16 0
FLAG -224 -144 SQUARE
FLAG 192 -128 PWM
IOPIN 192 -128 Out
FLAG 0 -144 SAWTOOTH
FLAG -288 -544 0
FLAG 112 -160 +UB
FLAG -288 -672 +US
FLAG 1280 240 +US
FLAG 336 96 0
FLAG 112 -64 0
FLAG 240 -352 +UB
FLAG 560 -48 0
FLAG 240 -432 0
FLAG 560 -384 MOSST
FLAG 960 -720 OUT
FLAG 1168 -432 0
FLAG 400 -256 Q1C
FLAG 848 0 +UB
FLAG 1232 144 +UB
FLAG 1232 272 -UB
FLAG 1024 224 OPVO
FLAG 320 224 REG
FLAG 1408 208 MESS
FLAG 1344 -400 +UB
FLAG 1184 -208 +UB
FLAG 1184 -144 -UB
FLAG 1120 -128 0
FLAG 864 -144 0
FLAG 928 -224 +UB
FLAG 928 -160 -UB
SYMBOL res -544 -288 R0
SYMATTR InstName R1
SYMATTR Value 100k
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL res -544 -80 R0
SYMATTR InstName R2
SYMATTR Value 100k
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL res -304 -320 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R3
SYMATTR Value 100k
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL res -304 16 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R4
SYMATTR Value 560
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL cap -464 32 R0
SYMATTR InstName C1
SYMATTR Value 8.2n
SYMBOL voltage -176 -672 R0
SYMATTR InstName V1
SYMATTR Value -5
SYMBOL voltage -64 -672 R0
SYMATTR InstName V2
SYMATTR Value 5
SYMBOL Opamps\\LT074 -368 -80 M180
SYMATTR InstName U1
SYMBOL res -96 -160 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R5
SYMATTR Value 680
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL cap -96 -112 R0
SYMATTR InstName C2
SYMATTR Value 8.2n
SYMBOL voltage -288 -672 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V3
SYMATTR Value 2.0
SYMBOL Opamps\\LM393 112 -192 R0
SYMATTR InstName U2
SYMBOL npn 272 -176 R0
SYMATTR InstName Q1
SYMATTR Value QBC546B
SYMBOL res 224 -320 R0
SYMATTR InstName R6
SYMATTR Value 4.7k
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL res 320 -400 R0
SYMATTR InstName R7
SYMATTR Value 10k
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL pnp 496 -80 M180
SYMATTR InstName Q2
SYMATTR Value QBCP53-16
SYMBOL npn 496 -528 R0
SYMATTR InstName Q3
SYMATTR Value QBCP56-16
SYMBOL cap 224 -640 R0
SYMATTR InstName C3
SYMATTR Value 10000µ
SYMBOL zener 816 -624 R180
WINDOW 0 24 72 Left 0
WINDOW 3 24 0 Left 0
SYMATTR InstName D1
SYMATTR Value BZX84C10L
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 624 -704 R0
SYMATTR InstName R10
SYMATTR Value 330
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL BUZ272_inf 928 -672 M270
SYMATTR InstName U3
SYMBOL res 1936 -656 R0
SYMATTR InstName R11
SYMATTR Value 20
SYMBOL ind 1040 -704 R270
WINDOW 0 32 56 VTop 0
WINDOW 3 5 56 VBottom 0
SYMATTR InstName L1
SYMATTR Value 200µ
SYMBOL voltage 64 -672 R0
SYMATTR InstName V4
SYMATTR Value 50
SYMBOL schottky 1024 -560 R180
WINDOW 0 24 72 Left 0
WINDOW 3 24 0 Left 0
SYMATTR InstName D3
SYMATTR Value SB560
SYMBOL res 752 -400 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R8
SYMATTR Value 10
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL res 320 -48 R0
SYMATTR InstName R9
SYMATTR Value 330
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL Opamps\\LT074 1232 160 M0
SYMATTR InstName U4
SYMBOL res 1040 208 M90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R12
SYMATTR Value 100
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL res 864 32 M0
SYMATTR InstName R13
SYMATTR Value 1k
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL cap 1200 32 M90
WINDOW 0 0 32 VBottom 0
WINDOW 3 32 32 VTop 0
SYMATTR InstName C5
SYMATTR Value 100n
SYMBOL res 1472 192 M90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R14
SYMATTR Value 47k
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL res 1840 -720 R0
SYMATTR InstName R15
SYMATTR Value 8.2k
SYMBOL res 1840 -576 R0
SYMATTR InstName R16
SYMATTR Value 1k
SYMBOL cap 1152 -624 R0
SYMATTR InstName C7
SYMATTR Value 470µ
SYMATTR SpiceLine Rser=0.07
SYMBOL ind 1008 208 R90
WINDOW 0 5 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName L2
SYMATTR Value 10µ
SYMBOL res 1568 -560 R0
SYMATTR InstName R17
SYMATTR Value 1.8
SYMATTR SpiceLine tol=10 pwr=2
SYMBOL npn 1520 -656 R0
SYMATTR InstName Q4
SYMATTR Value Qbux85
SYMBOL npn 1408 -704 R0
SYMATTR InstName Q5
SYMATTR Value BC546B
SYMBOL res 1776 -480 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R18
SYMATTR Value 0.05
SYMBOL Opamps\\LM324 1184 -240 R0
SYMATTR InstName U5
SYMBOL res 1232 -192 M90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R19
SYMATTR Value 1.3k
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL res 1328 -368 R0
SYMATTR InstName R20
SYMATTR Value 1.5k
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL res 1216 -320 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R21
SYMATTR Value 100k
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL res 1088 -208 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R22
SYMATTR Value 91k
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL Opamps\\LT074 928 -256 R0
SYMATTR InstName U6
SYMBOL res 960 -336 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R23
SYMATTR Value 100k
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL res 832 -224 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R24
SYMATTR Value 10k
SYMATTR SpiceLine tol=5 pwr=0.25
TEXT -176 -312 Left 0 !.tran 0 100ms 0s 5ms startup
I am using some components which I had to add to the library. I hope that
is no problem. Otherwise I have to include the models to the *.asc file.
Best regards
Look for a reason why the circuit might want to oscillate at some
insanely high frequency. This sort of thing tends to happen when you
have inadvertantly created an unstable numerical problem for the solver.
It tries its best and repeatedly decreases the time step to try and get
an accurate solution until it gives up.
Regards,
Martin Brown
** Posted from http://www.teranews.com **
Oh dear! A switching power supply. Debugging those is *work*,
of which I have quite enough, thank you.
I've spent a few minutes trying to simulate the thing, after
having whimsically substituted LT1018s for the comparators,
NPN, PNP and PMOS generics for the transistors I don't have
the models for (i.e., all of them), and fixing the values of
some caps and the coils, which seemed garbled.
I don't see what the circuitry involving Q4 and Q5 with the
amplifiers driving them is for either.
The simulation runs without the error you described, but the
circuit doesn't work. I'd say, try to increase the PMOS gate
series resistor to 50 Ohms and/or insert resistors in the
collector leads of the driver transistors. A few tens of ohms
might do it.
I'm sorry but I can't afford to put in the time required to
go any further.
Jeroen Belleman
thank you very much. I will try to change the circuit a little bit.
>Hello,
>
>I try to simulate a circuit, but I always get an error message:
>
>Analysys: time step too small; initial timepoint: trouble with
>u3:mm-instance m:u3:1
>
>u3 is a Mosfet IRF4905.
>
>Has anyone an idea how I can solve the problem?
>
Start off with working subsections, made up of known-good model parts.
Incrementally introduce the unproven part models. The circuit can
function with part models presently in the release, though you should
not expect stability, as drawn.
The circuit controlling current in R17 cannot work, as drawn.
The release of LTSpice that I ran your circuit in did not display your
cap and inductor 'u' symbols correctly. It also had trouble with some
unidentified symbols. retro'd asc file follows.
RL
............................
SYMATTR Value 8.2E-9
SYMBOL voltage -176 -672 R0
SYMATTR InstName V1
SYMATTR Value -5
SYMBOL voltage -64 -672 R0
SYMATTR InstName V2
SYMATTR Value 5
SYMBOL res -96 -160 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R5
SYMATTR Value 680
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL cap -96 -112 R0
SYMATTR InstName C2
SYMATTR Value 8.2E-9
SYMBOL voltage -288 -672 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V3
SYMATTR Value 2.0
SYMBOL npn 272 -176 R0
SYMATTR InstName Q1
SYMATTR Value 2N4401
SYMBOL res 224 -320 R0
SYMATTR InstName R6
SYMATTR Value 4.7k
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL res 320 -400 R0
SYMATTR InstName R7
SYMATTR Value 10k
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL pnp 496 -80 M180
SYMATTR InstName Q2
SYMATTR Value BCP69P
SYMBOL npn 496 -528 R0
SYMATTR InstName Q3
SYMATTR Value BCP55P
SYMBOL cap 224 -640 R0
SYMATTR InstName C3
SYMATTR Value 1E-2
SYMBOL zener 816 -624 R180
WINDOW 0 24 72 Left 0
WINDOW 3 24 0 Left 0
SYMATTR InstName D1
SYMATTR Value BZX84C10L
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 624 -704 R0
SYMATTR InstName R10
SYMATTR Value 330
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL res 1936 -656 R0
SYMATTR InstName R11
SYMATTR Value 20
SYMBOL ind 1040 -704 R270
WINDOW 0 32 56 VTop 0
WINDOW 3 5 56 VBottom 0
SYMATTR InstName L1
SYMATTR Value 200µ
SYMBOL voltage 64 -672 R0
SYMATTR InstName V4
SYMATTR Value 50
SYMBOL schottky 1024 -560 R180
WINDOW 0 24 72 Left 0
WINDOW 3 24 0 Left 0
SYMATTR InstName D3
SYMATTR Value B560C
SYMBOL res 752 -400 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R8
SYMATTR Value 10
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL res 320 -48 R0
SYMATTR InstName R9
SYMATTR Value 330
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL res 1040 208 M90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R12
SYMATTR Value 100
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL res 864 32 M0
SYMATTR InstName R13
SYMATTR Value 1k
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL cap 1200 32 M90
WINDOW 0 0 32 VBottom 0
WINDOW 3 32 32 VTop 0
SYMATTR InstName C5
SYMATTR Value 1E-7
SYMBOL res 1472 192 M90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R14
SYMATTR Value 47k
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL res 1840 -720 R0
SYMATTR InstName R15
SYMATTR Value 8.2k
SYMBOL res 1840 -576 R0
SYMATTR InstName R16
SYMATTR Value 1k
SYMBOL cap 1152 -624 R0
SYMATTR InstName C7
SYMATTR Value 4.7E-4
SYMATTR SpiceLine Rser=0.07
SYMBOL ind 1008 208 R90
WINDOW 0 5 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName L2
SYMATTR Value 10µ
SYMBOL res 1568 -560 R0
SYMATTR InstName R17
SYMATTR Value 1.8
SYMATTR SpiceLine tol=10 pwr=2
SYMBOL res 1776 -480 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R18
SYMATTR Value 0.05
SYMBOL res 1232 -192 M90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R19
SYMATTR Value 1.3k
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL res 1328 -368 R0
SYMATTR InstName R20
SYMATTR Value 1.5k
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL res 1216 -320 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R21
SYMATTR Value 100k
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL res 1088 -208 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R22
SYMATTR Value 91k
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL res 960 -336 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R23
SYMATTR Value 100k
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL res 832 -224 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R24
SYMATTR Value 10k
SYMATTR SpiceLine tol=5 pwr=0.25
SYMBOL pmos 928 -672 M270
SYMATTR InstName M1
SYMATTR Value Si7469DP
SYMBOL Comparators\\LT1017 112 -128 R0
SYMATTR InstName U8
SYMBOL Opamps\\LT1014 928 -256 R0
SYMATTR InstName U9
SYMBOL Opamps\\LT1014 1184 -240 R0
SYMATTR InstName U10
SYMBOL Opamps\\LT1014 1232 160 M0
SYMATTR InstName U11
SYMBOL npn 1408 -704 R0
SYMATTR InstName Q4
SYMATTR Value 2N4401
SYMBOL npn 1520 -656 R0
SYMATTR InstName Q5
SYMATTR Value 2N3055
SYMBOL Opamps\\LT1014 -368 -80 M180
SYMATTR InstName U12
TEXT -176 -312 Left 0 !.tran 0 100ms 1ms 5ms startup