T
Thurston Phoremost
Guest
First, I'll state the obvious... I'm a total newbie when it comes to
these electronic CAD type programs.
I've had a look at a couple of them, and I've decided that Switchercad
will be the easiest one to learn on, due to the fact that it doesn't
suffer from extreme bloat like the others do.
I've fiddled around with a few of the supplied examples and components
etc and I get the general gist of all that.
But now it's time to go a bit further. All I want to do is try to
include an SCR in a circuit and fiddle with it.
Switchercad comes with a SCR symbol, but apparently it needs a "model
which I supply myself".
Hmmm.
Well, I found a .sub file for an SCR, but I can't manage to get it to
work properly either in the circuit drafting stage or the run
simulation stage.
Below are the three files that I'm working with. First one is a
do-nothing, purely for test purposes .asc file that I made. It's just
a SCR with all it's terminals grounded.
Next is the .asy file (as supplied with switchercad).
The third one (only part of it here to save bandwidth) is a scr.sub
file that I found on the net somewhere.
I've got all three files in the same directory,
and I've tried .lib scr.sub, I've tried various mods to the .asc file
using a text editor, and all I get is a headache.
Can anyone tell me what I have to do to get these three files working
together?
And is there a step-by-step tutorial anywhere for Switchercad that
explains this sort of thing? The SC help file assumes that the user is
already familiar with SPICE-type programs, and therefore is of little
use to me at this stage.
TIA.
----------
scr.asc
Version 4
SHEET 1 916 716
WIRE 272 128 160 128
WIRE 160 128 160 192
FLAG 272 192 0
FLAG 224 192 0
FLAG 160 192 0
SYMBOL SCR 256 128 R0
SYMATTR InstName U1
TEXT 140 260 Left 0 !.op
TEXT 144 232 Left 0 !.INCLUDE scr.sub
----------------
---------------
scr.asy
Version 4
SymbolType CELL
LINE Normal 0 44 32 44
LINE Normal 0 20 32 20
LINE Normal 32 20 16 44
LINE Normal 0 20 16 44
LINE Normal 16 0 16 20
LINE Normal 16 44 16 64
LINE Normal -12 64 -32 64
LINE Normal -12 64 8 44
WINDOW 0 24 0 Left 0
WINDOW 3 24 72 Left 0
SYMATTR Prefix X
SYMATTR SpiceModel scr
SYMATTR SpiceLine *
SYMATTR SpiceLine2 *
SYMATTR Description Generic SCR symbol for use with a model that you
supply.
PIN 16 0 NONE 0
PINATTR PinName A
PINATTR SpiceOrder 1
PIN -32 64 NONE 0
PINATTR PinName G
PINATTR SpiceOrder 2
PIN 16 64 NONE 0
PINATTR PinName K
PINATTR SpiceOrder 3
---------------------
-----------------------
*scr.sub
*=======
*Default SCR - pin order: A G K
..SUBCKT XSCR 1 2 3
Q1 2 4 1 QPSCR AREA=.67 OFF
Q2 4 2 3 QNSCR AREA=.67
Q3 5 4 1 QPSCR AREA=.33 OFF
Q4 4 5 3 QNSCR AREA=.33
RBN 2 5 40
..MODEL QNSCR NPN(TF=400NS TR=1.6US CJC=75PF CJE=175PF XTB=2.5
+ IS=1E-14 ISE=3E-9 NE=2 BF=100 BR=25 ISC=3E-9 NC=2)
..MODEL QPSCR PNP(TF=90NS TR=180NS CJC=75PF CJE=80PF XTB=2.5
+ IS=1E-14 ISE=3E-9 NE=2 BF=50 BR=25 ISC=3E-9 NC=2 RE=.03)
..ENDS XSCR
* IR 1200V If=110A tq=16us: A G K
..SUBCKT XS19CF 1 3 2
S1 1 5 6 2 SMOD
RG 3 4 50
VX 4 2 DC 0
VY 5 7 DC 0
DT 7 2 DMOD
RT 6 2 1
CT 6 2 10UF
BF1 2 6 I=50*I(VX)+11*I(VY)
..MODEL SMOD SW(VT=1 RON=0.0105 ROFF=100E5)
..MODEL DMOD D(IS=2.2E-15 BV=1200 TT=0 CJO=0)
..ENDS XS18CF
(...)
-------------------
these electronic CAD type programs.
I've had a look at a couple of them, and I've decided that Switchercad
will be the easiest one to learn on, due to the fact that it doesn't
suffer from extreme bloat like the others do.
I've fiddled around with a few of the supplied examples and components
etc and I get the general gist of all that.
But now it's time to go a bit further. All I want to do is try to
include an SCR in a circuit and fiddle with it.
Switchercad comes with a SCR symbol, but apparently it needs a "model
which I supply myself".
Hmmm.
Well, I found a .sub file for an SCR, but I can't manage to get it to
work properly either in the circuit drafting stage or the run
simulation stage.
Below are the three files that I'm working with. First one is a
do-nothing, purely for test purposes .asc file that I made. It's just
a SCR with all it's terminals grounded.
Next is the .asy file (as supplied with switchercad).
The third one (only part of it here to save bandwidth) is a scr.sub
file that I found on the net somewhere.
I've got all three files in the same directory,
and I've tried .lib scr.sub, I've tried various mods to the .asc file
using a text editor, and all I get is a headache.
Can anyone tell me what I have to do to get these three files working
together?
And is there a step-by-step tutorial anywhere for Switchercad that
explains this sort of thing? The SC help file assumes that the user is
already familiar with SPICE-type programs, and therefore is of little
use to me at this stage.
TIA.
----------
scr.asc
Version 4
SHEET 1 916 716
WIRE 272 128 160 128
WIRE 160 128 160 192
FLAG 272 192 0
FLAG 224 192 0
FLAG 160 192 0
SYMBOL SCR 256 128 R0
SYMATTR InstName U1
TEXT 140 260 Left 0 !.op
TEXT 144 232 Left 0 !.INCLUDE scr.sub
----------------
---------------
scr.asy
Version 4
SymbolType CELL
LINE Normal 0 44 32 44
LINE Normal 0 20 32 20
LINE Normal 32 20 16 44
LINE Normal 0 20 16 44
LINE Normal 16 0 16 20
LINE Normal 16 44 16 64
LINE Normal -12 64 -32 64
LINE Normal -12 64 8 44
WINDOW 0 24 0 Left 0
WINDOW 3 24 72 Left 0
SYMATTR Prefix X
SYMATTR SpiceModel scr
SYMATTR SpiceLine *
SYMATTR SpiceLine2 *
SYMATTR Description Generic SCR symbol for use with a model that you
supply.
PIN 16 0 NONE 0
PINATTR PinName A
PINATTR SpiceOrder 1
PIN -32 64 NONE 0
PINATTR PinName G
PINATTR SpiceOrder 2
PIN 16 64 NONE 0
PINATTR PinName K
PINATTR SpiceOrder 3
---------------------
-----------------------
*scr.sub
*=======
*Default SCR - pin order: A G K
..SUBCKT XSCR 1 2 3
Q1 2 4 1 QPSCR AREA=.67 OFF
Q2 4 2 3 QNSCR AREA=.67
Q3 5 4 1 QPSCR AREA=.33 OFF
Q4 4 5 3 QNSCR AREA=.33
RBN 2 5 40
..MODEL QNSCR NPN(TF=400NS TR=1.6US CJC=75PF CJE=175PF XTB=2.5
+ IS=1E-14 ISE=3E-9 NE=2 BF=100 BR=25 ISC=3E-9 NC=2)
..MODEL QPSCR PNP(TF=90NS TR=180NS CJC=75PF CJE=80PF XTB=2.5
+ IS=1E-14 ISE=3E-9 NE=2 BF=50 BR=25 ISC=3E-9 NC=2 RE=.03)
..ENDS XSCR
* IR 1200V If=110A tq=16us: A G K
..SUBCKT XS19CF 1 3 2
S1 1 5 6 2 SMOD
RG 3 4 50
VX 4 2 DC 0
VY 5 7 DC 0
DT 7 2 DMOD
RT 6 2 1
CT 6 2 10UF
BF1 2 6 I=50*I(VX)+11*I(VY)
..MODEL SMOD SW(VT=1 RON=0.0105 ROFF=100E5)
..MODEL DMOD D(IS=2.2E-15 BV=1200 TT=0 CJO=0)
..ENDS XS18CF
(...)
-------------------