mirror of
https://github.com/ra3xdh/qucs_s
synced 2025-03-28 21:13:26 +00:00
Update BJT examples #137
This commit is contained in:
parent
3b0ddb0509
commit
f2eae7b44e
77
examples/ngspice/BJT-dist.sch
Normal file
77
examples/ngspice/BJT-dist.sch
Normal file
@ -0,0 +1,77 @@
|
||||
<Qucs Schematic 0.0.24>
|
||||
<Properties>
|
||||
<View=50,10,1067,926,1,0,120>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=BJT-dist.dat>
|
||||
<DataDisplay=BJT-dist.dpl>
|
||||
<OpenDisplay=0>
|
||||
<Script=BJT-dist.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<.TR TR1 1 390 380 0 75 0 0 "lin" 1 "0" 1 "1 ms" 1 "1000" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
|
||||
<_BJT Q2N2222A_1 1 480 210 6 -10 0 0 "npn" 0 "8.11e-14" 0 "1" 0 "1" 0 "0.5" 0 "0.225" 0 "113" 0 "24" 0 "1.06e-11" 0 "2" 0 "0" 0 "2" 0 "205" 0 "4" 0 "0" 0 "0" 0 "0.137" 0 "0.343" 0 "1.37" 0 "2.95e-11" 0 "0.75" 0 "0.33" 0 "1.52e-11" 0 "0.75" 0 "0.33" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "3.97e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.5" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
|
||||
<R R5 1 480 130 18 -17 0 1 "4.7k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 360 290 0 0 0 0>
|
||||
<GND * 1 150 370 0 0 0 0>
|
||||
<C C1 1 270 210 -26 17 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
|
||||
<Vac_SPICE V2 1 150 320 18 -26 0 1 "Vac= DISTOF1 0.2 DC 0" 1 "Vac_Line 2=+ SIN(0 0.2 4k 0 0) AC 0.2" 1 "Vac_Line 3=" 0 "Vac_Line 4=" 0 "Vac_Line 5=" 0>
|
||||
<NutmegEq NutmegEq1 1 270 440 -27 17 0 0 "disto" 1 "H2=disto1.v(out)" 1 "H3=disto2.v(out)" 1>
|
||||
<R R4 1 680 230 17 -23 0 1 "47k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 680 280 0 0 0 0>
|
||||
<IProbe Pr1 1 650 80 -15 16 1 2>
|
||||
<Vdc V1 1 760 130 18 -26 0 1 "12 V" 1>
|
||||
<GND * 1 760 180 0 0 0 0>
|
||||
<R R1 1 360 250 16 -17 0 1 "2 k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R3 1 360 150 15 -20 0 1 "24" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 480 320 0 0 0 0>
|
||||
<R R2 1 480 280 15 -20 0 1 "470" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<.DISTO DISTO1 1 540 380 1 75 0 0 "lin" 1 "1 Hz" 1 "10 kHz" 1 "1000" 1 "" 0>
|
||||
<.DC DC1 1 690 380 -3 51 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
|
||||
<C C2 1 610 170 -37 -59 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<360 80 360 120 "" 0 0 0 "">
|
||||
<360 80 480 80 "" 0 0 0 "">
|
||||
<360 180 360 210 "" 0 0 0 "">
|
||||
<360 210 450 210 "" 0 0 0 "">
|
||||
<480 80 480 100 "" 0 0 0 "">
|
||||
<480 160 480 170 "" 0 0 0 "">
|
||||
<480 170 480 180 "" 0 0 0 "">
|
||||
<300 210 360 210 "" 0 0 0 "">
|
||||
<150 350 150 370 "" 0 0 0 "">
|
||||
<150 210 240 210 "in" 130 170 6 "">
|
||||
<150 210 150 290 "" 0 0 0 "">
|
||||
<680 260 680 280 "" 0 0 0 "">
|
||||
<480 80 620 80 "" 0 0 0 "">
|
||||
<680 80 760 80 "" 0 0 0 "">
|
||||
<760 80 760 100 "" 0 0 0 "">
|
||||
<760 160 760 180 "" 0 0 0 "">
|
||||
<360 210 360 220 "" 0 0 0 "">
|
||||
<360 280 360 290 "" 0 0 0 "">
|
||||
<480 240 480 250 "" 0 0 0 "">
|
||||
<480 310 480 320 "" 0 0 0 "">
|
||||
<680 170 680 200 "" 0 0 0 "">
|
||||
<640 170 680 170 "out" 680 140 22 "">
|
||||
<480 170 580 170 "" 0 0 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 697 825 323 243 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/tran.v(in)" #0000ff 0 3 0 0 0>
|
||||
<"ngspice/tran.v(out)" #ff0000 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 230 822 372 242 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/ac.v(h2)" #0000ff 0 3 0 0 0>
|
||||
<"ngspice/ac.v(h3)" #ff0000 0 3 0 0 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Text 80 30 12 #000000 0 "DISTORTION analysis example.\n 2nd and 3rd harmonic \ncomponents are plotted.\n\nNOTE: This Example could be run \nonly with Ngspice">
|
||||
</Paintings>
|
@ -1,10 +1,10 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Qucs Schematic 0.0.24>
|
||||
<Properties>
|
||||
<View=-127,-34,1020,1433,1,0,0>
|
||||
<View=-127,26,1318,1337,1,0,480>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=BJT-four.dat>
|
||||
<DataDisplay=BJT-four.dpl>
|
||||
<OpenDisplay=1>
|
||||
<OpenDisplay=0>
|
||||
<Script=BJT-four.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
@ -16,27 +16,27 @@
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<_BJT Q2N2222A_1 1 400 210 8 -26 0 0 "npn" 0 "8.11e-14" 0 "1" 0 "1" 0 "0.5" 0 "0.225" 0 "113" 0 "24" 0 "1.06e-11" 0 "2" 0 "0" 0 "2" 0 "205" 0 "4" 0 "0" 0 "0" 0 "0.137" 0 "0.343" 0 "1.37" 0 "2.95e-11" 0 "0.75" 0 "0.33" 0 "1.52e-11" 0 "0.75" 0 "0.33" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "3.97e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.5" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
|
||||
<_BJT Q2N2222A_1 1 400 210 6 -7 0 0 "npn" 0 "8.11e-14" 0 "1" 0 "1" 0 "0.5" 0 "0.225" 0 "113" 0 "24" 0 "1.06e-11" 0 "2" 0 "0" 0 "2" 0 "205" 0 "4" 0 "0" 0 "0" 0 "0.137" 0 "0.343" 0 "1.37" 0 "2.95e-11" 0 "0.75" 0 "0.33" 0 "1.52e-11" 0 "0.75" 0 "0.33" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "3.97e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.5" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
|
||||
<GND * 1 400 330 0 0 0 0>
|
||||
<GND * 1 280 310 0 0 0 0>
|
||||
<R R1 1 280 240 15 -26 0 1 "2 kOhm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R2 1 400 290 15 -26 0 1 "470 Ohm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 150 310 0 0 0 0>
|
||||
<C C1 1 230 210 -26 17 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
|
||||
<R R3 1 280 150 15 -26 0 1 "24 kOhm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 600 330 0 0 0 0>
|
||||
<R R2 1 400 290 14 -17 0 1 "470 Ohm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<C C1 1 230 210 -38 -57 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
|
||||
<C C2 1 550 170 -26 17 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
|
||||
<Vdc V1 1 820 140 18 -26 0 1 "12 V" 1>
|
||||
<GND * 1 820 170 0 0 0 0>
|
||||
<R R5 1 400 130 15 -26 0 1 "4.7k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R4 1 600 300 15 -26 0 1 "Rload" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<IProbe Pr1 1 680 80 -26 16 1 2>
|
||||
<Eqn Eqn1 1 150 390 -31 17 0 0 "Rload=47k" 1 "K=out.v/in.v" 1 "yes" 0>
|
||||
<Vac V2 1 150 280 18 -26 0 1 "1000 mV" 1 "4 kHz" 1 "0" 0 "0" 0>
|
||||
<R R5 1 400 130 15 -18 0 1 "4.7k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<.TR TR1 1 390 380 0 71 0 0 "lin" 1 "0" 1 "1 ms" 1 "1000" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
|
||||
<.DC DC1 1 720 380 0 61 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
|
||||
<.AC AC1 1 550 380 0 61 0 0 "lin" 1 "100 Hz" 1 "10 MHz" 1 "2000" 1 "no" 0>
|
||||
<.DC DC1 1 720 380 0 50 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
|
||||
<.FOURIER FOUR1 1 240 380 0 71 0 0 "TR1" 1 "20" 1 "4kHz" 1 "V(out) V(out2)" 1>
|
||||
<R R4 1 600 260 15 -26 0 1 "Rload" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 600 310 0 0 0 0>
|
||||
<IProbe Pr1 1 550 80 -26 16 1 2>
|
||||
<Vdc V1 1 680 130 18 -26 0 1 "12 V" 1>
|
||||
<GND * 1 680 180 0 0 0 0>
|
||||
<Vac V2 1 160 270 -113 -37 0 1 "1000 mV" 1 "4 kHz" 1 "0" 0 "0" 0>
|
||||
<GND * 1 160 320 0 0 0 0>
|
||||
<R R3 1 280 150 16 -17 0 1 "24k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 280 320 0 0 0 0>
|
||||
<R R1 1 280 270 17 -17 0 1 "2k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<Eqn Eqn1 1 20 380 -31 17 0 0 "Rload=47k" 1 "K=out.v/in.v" 1 "Kp=(cph(out.v)-cph(in.v))*180/pi" 1 "yes" 0>
|
||||
<.AC AC1 1 540 380 0 51 0 0 "log" 1 "100 Hz" 1 "100 MHz" 1 "601" 1 "no" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<280 80 280 120 "" 0 0 0 "">
|
||||
@ -46,18 +46,22 @@
|
||||
<400 80 400 100 "" 0 0 0 "">
|
||||
<400 240 400 260 "" 0 0 0 "">
|
||||
<400 320 400 330 "" 0 0 0 "">
|
||||
<280 270 280 310 "" 0 0 0 "">
|
||||
<260 210 280 210 "" 0 0 0 "">
|
||||
<150 210 150 250 "" 0 0 0 "">
|
||||
<150 210 200 210 "in" 150 160 6 "">
|
||||
<400 160 400 170 "" 0 0 0 "">
|
||||
<600 170 600 270 "" 0 0 0 "">
|
||||
<580 170 600 170 "out" 610 130 2 "">
|
||||
<400 170 400 180 "" 0 0 0 "">
|
||||
<400 170 520 170 "out2" 490 120 50 "">
|
||||
<400 80 650 80 "" 0 0 0 "">
|
||||
<710 80 820 80 "" 0 0 0 "">
|
||||
<820 80 820 110 "" 0 0 0 "">
|
||||
<400 170 520 170 "out2" 480 130 50 "">
|
||||
<580 170 600 170 "out" 590 140 2 "">
|
||||
<600 170 600 230 "" 0 0 0 "">
|
||||
<600 290 600 310 "" 0 0 0 "">
|
||||
<400 80 520 80 "" 0 0 0 "">
|
||||
<580 80 680 80 "" 0 0 0 "">
|
||||
<680 80 680 100 "" 0 0 0 "">
|
||||
<680 160 680 180 "" 0 0 0 "">
|
||||
<160 210 200 210 "in" 130 170 0 "">
|
||||
<160 210 160 240 "" 0 0 0 "">
|
||||
<160 300 160 320 "" 0 0 0 "">
|
||||
<280 210 280 240 "" 0 0 0 "">
|
||||
<280 300 280 320 "" 0 0 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 10 750 240 160 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" "">
|
||||
@ -65,25 +69,22 @@
|
||||
<"ngspice/tran.v(out2)" #ff0000 0 3 0 0 0>
|
||||
<"ngspice/tran.v(in)" #ff00ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 690 740 240 160 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/phase(v(out))" #0000ff 0 3 0 6 0>
|
||||
<Rect 10 1030 240 160 3 #c0c0c0 1 10 1 0 2e+06 1e+07 1 0 5 10 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/ac.k" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 350 750 240 160 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/magnitude(v(out))" #0000ff 0 3 0 6 0>
|
||||
<"ngspice/magnitude(v(out2))" #ff0000 0 3 0 6 0>
|
||||
</Rect>
|
||||
<Rect 10 1030 240 160 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"xyce/magnitude(V(OUT))" #0000ff 0 3 0 6 0>
|
||||
<"xyce/magnitude(V(OUT2))" #ff0000 0 3 0 6 0>
|
||||
</Rect>
|
||||
<Rect 380 1030 240 160 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"xyce/phase(V(OUT))" #0000ff 0 3 0 6 0>
|
||||
<"xyce/phase(V(OUT2))" #ff0000 0 3 0 6 0>
|
||||
</Rect>
|
||||
<Tab 137 1413 611 281 3 #c0c0c0 1 00 1 0 1 1 1 0 1 1 1 0 1 20 315 0 225 "" "" "">
|
||||
<Tab 677 1143 473 280 3 #c0c0c0 1 00 1 0 1 1 1 0 1 1 1 0 1 20 315 0 225 "" "" "">
|
||||
<"ngspice/magnitude(v(out))" #0000ff 0 3 0 0 0>
|
||||
<"ngspice/phase(v(out))" #0000ff 0 3 0 0 0>
|
||||
</Tab>
|
||||
<Rect 350 1030 240 160 3 #c0c0c0 1 10 1 0 2e+07 1e+08 1 -400 200 0 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/ac.kp" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 340 750 240 160 3 #c0c0c0 1 00 1 0 20000 80000 1 -1.83963 5 8.41745 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/magnitude(v(out))" #0000ff 0 3 0 6 0>
|
||||
</Rect>
|
||||
<Rect 670 740 240 160 3 #c0c0c0 1 00 1 0 20000 80000 1 -200 200 200 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/phase(v(out))" #ff0000 0 3 0 6 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Text -40 90 12 #000000 0 "Fourier analysis example.\nCould be run only with Ngspice or Xyce">
|
||||
|
@ -1,10 +1,10 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Qucs Schematic 0.0.24>
|
||||
<Properties>
|
||||
<View=-126,-300,932,947,1,46,0>
|
||||
<View=-126,-60,1275,953,1,0,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=BJT-noise.dat>
|
||||
<DataDisplay=BJT-noise.dpl>
|
||||
<OpenDisplay=1>
|
||||
<OpenDisplay=0>
|
||||
<Script=BJT-noise.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
@ -16,24 +16,23 @@
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<_BJT Q2N2222A_1 1 400 210 8 -26 0 0 "npn" 0 "8.11e-14" 0 "1" 0 "1" 0 "0.5" 0 "0.225" 0 "113" 0 "24" 0 "1.06e-11" 0 "2" 0 "0" 0 "2" 0 "205" 0 "4" 0 "0" 0 "0" 0 "0.137" 0 "0.343" 0 "1.37" 0 "2.95e-11" 0 "0.75" 0 "0.33" 0 "1.52e-11" 0 "0.75" 0 "0.33" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "3.97e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.5" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
|
||||
<_BJT Q2N2222A_1 1 400 210 8 -12 0 0 "npn" 0 "8.11e-14" 0 "1" 0 "1" 0 "0.5" 0 "0.225" 0 "113" 0 "24" 0 "1.06e-11" 0 "2" 0 "0" 0 "2" 0 "205" 0 "4" 0 "0" 0 "0" 0 "0.137" 0 "0.343" 0 "1.37" 0 "2.95e-11" 0 "0.75" 0 "0.33" 0 "1.52e-11" 0 "0.75" 0 "0.33" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "3.97e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.5" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
|
||||
<GND * 1 280 310 0 0 0 0>
|
||||
<R R1 1 280 240 15 -26 0 1 "2 kOhm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R2 1 400 290 15 -26 0 1 "470 Ohm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 150 310 0 0 0 0>
|
||||
<R R3 1 280 150 15 -26 0 1 "24 kOhm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<C C2 1 550 170 -26 17 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
|
||||
<R R5 1 400 130 15 -26 0 1 "4.7k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<Vac V2 1 150 280 18 -26 0 1 "1000 mV" 1 "4 kHz" 1 "0" 0 "0" 0>
|
||||
<.NOISE NOISE1 1 160 380 0 71 0 0 "lin" 1 "1 Hz" 1 "10 MHz" 1 "100" 1 "v(out)" 1 "V2" 1>
|
||||
<IProbe Pr1 1 490 80 -26 16 1 2>
|
||||
<R R5 1 400 130 20 -19 0 1 "4.7k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<IProbe Pr1 1 490 80 -13 13 1 2>
|
||||
<Vdc V1 1 680 140 18 -26 0 1 "12 V" 1>
|
||||
<GND * 1 680 170 0 0 0 0>
|
||||
<R R4 1 600 260 15 -26 0 1 "47k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 600 290 0 0 0 0>
|
||||
<C C1 1 220 210 -32 -58 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
|
||||
<GND * 1 400 320 0 0 0 0>
|
||||
<C C1 1 220 210 -26 17 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
|
||||
<.SW SW1 1 20 380 0 71 0 0 "NOISE1" 1 "lin" 1 "R5" 1 "1k" 1 "10k" 1 "20" 1>
|
||||
<R R2 1 400 280 19 -20 0 1 "470" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R4 1 600 230 16 -19 0 1 "47k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 600 280 0 0 0 0>
|
||||
<R R3 1 280 150 15 -20 0 1 "24k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R1 1 280 260 17 -20 0 1 "2k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<Vac V2 1 140 250 -108 -32 0 1 "1000 mV" 1 "4 kHz" 1 "0" 0 "0" 0>
|
||||
<GND * 1 140 300 0 0 0 0>
|
||||
<C C2 1 550 170 -34 -57 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
|
||||
<.NOISE NOISE1 1 160 380 0 75 0 0 "log" 1 "1 Hz" 1 "10 MHz" 1 "100" 1 "v(out)" 1 "V2" 1>
|
||||
</Components>
|
||||
<Wires>
|
||||
<280 80 280 120 "" 0 0 0 "">
|
||||
@ -41,29 +40,34 @@
|
||||
<280 180 280 210 "" 0 0 0 "">
|
||||
<280 210 370 210 "" 0 0 0 "">
|
||||
<400 80 400 100 "" 0 0 0 "">
|
||||
<400 240 400 260 "" 0 0 0 "">
|
||||
<280 270 280 310 "" 0 0 0 "">
|
||||
<400 160 400 170 "" 0 0 0 "">
|
||||
<400 170 400 180 "" 0 0 0 "">
|
||||
<400 170 520 170 "" 0 0 0 "">
|
||||
<400 80 460 80 "" 0 0 0 "">
|
||||
<520 80 680 80 "" 0 0 0 "">
|
||||
<680 80 680 110 "" 0 0 0 "">
|
||||
<580 170 600 170 "out" 610 130 2 "">
|
||||
<600 170 600 230 "" 0 0 0 "">
|
||||
<250 210 280 210 "" 0 0 0 "">
|
||||
<150 210 150 250 "" 0 0 0 "">
|
||||
<150 210 190 210 "in" 150 160 6 "">
|
||||
<280 210 280 230 "" 0 0 0 "">
|
||||
<280 290 280 310 "" 0 0 0 "">
|
||||
<400 240 400 250 "" 0 0 0 "">
|
||||
<400 310 400 320 "" 0 0 0 "">
|
||||
<600 260 600 280 "" 0 0 0 "">
|
||||
<140 210 190 210 "in" 130 180 16 "">
|
||||
<140 210 140 220 "" 0 0 0 "">
|
||||
<140 280 140 300 "" 0 0 0 "">
|
||||
<600 170 600 200 "" 0 0 0 "">
|
||||
<580 170 600 170 "" 0 0 0 "">
|
||||
<400 170 520 170 "" 0 0 0 "">
|
||||
<600 170 600 170 "out" 610 140 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Tab 330 566 561 190 3 #c0c0c0 1 00 1 0 1 1 1 0 1 1 1 0 1 21 315 0 225 "" "" "">
|
||||
<Rect 60 849 442 219 3 #c0c0c0 1 10 1 1 1 1e+7 1 -9.06587e-6 5e-5 0.0001 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/ac.inoise_spectrum" #0000ff 0 3 0 0 0>
|
||||
<"ngspice/ac.onoise_spectrum" #ff0000 0 3 0 0 1>
|
||||
</Rect>
|
||||
<Tab 330 566 425 190 3 #c0c0c0 1 00 1 0 1 1 1 0 1 1 1 0 1 11 315 0 225 "" "" "">
|
||||
<"ngspice/inoise_total" #0000ff 0 3 0 0 0>
|
||||
<"ngspice/onoise_total" #0000ff 0 3 0 0 0>
|
||||
</Tab>
|
||||
<Rect 60 849 442 219 3 #c0c0c0 1 00 1 1000 1000 10000 1 -6.37339e-10 2e-09 8.69074e-09 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/inoise_total" #0000ff 0 3 0 0 0>
|
||||
<"ngspice/onoise_total" #ff0000 0 3 0 0 1>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Text 50 -40 12 #000000 0 "Here is a noise analysis exmple. This is BJT \none-stage amplifier. Simulate this circuit and plot\nonoise _ total and inoise _ total variables to obtain\ndependencies of total noise vs. collector resistance.\nNOTE: This Example could be run only with Ngspice">
|
||||
|
@ -1,77 +1,83 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Qucs Schematic 0.0.24>
|
||||
<Properties>
|
||||
<View=-41,-94,1091,1196,1,0,0>
|
||||
<View=-88,10,1502,1240,1,47,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=BJT-swp.dat>
|
||||
<DataDisplay=BJT-swp.dpl>
|
||||
<OpenDisplay=1>
|
||||
<OpenDisplay=0>
|
||||
<Script=BJT-swp.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Название>
|
||||
<FrameText1=Чертил:>
|
||||
<FrameText2=Дата:>
|
||||
<FrameText3=Версия:>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<_BJT Q2N2222A_1 1 370 270 8 -26 0 0 "npn" 0 "8.11e-14" 0 "1" 0 "1" 0 "0.5" 0 "0.225" 0 "113" 0 "24" 0 "1.06e-11" 0 "2" 0 "0" 0 "2" 0 "205" 0 "4" 0 "0" 0 "0" 0 "0.137" 0 "0.343" 0 "1.37" 0 "2.95e-11" 0 "0.75" 0 "0.33" 0 "1.52e-11" 0 "0.75" 0 "0.33" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "3.97e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.5" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
|
||||
<GND * 1 370 390 0 0 0 0>
|
||||
<GND * 1 250 370 0 0 0 0>
|
||||
<R R3 1 250 300 15 -26 0 1 "2 kOhm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R4 1 370 350 15 -26 0 1 "470 Ohm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 120 370 0 0 0 0>
|
||||
<R R1 1 250 210 15 -26 0 1 "24 kOhm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R5 1 570 360 15 -26 0 1 "47k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 570 390 0 0 0 0>
|
||||
<IProbe Pr1 1 650 140 -26 16 0 0>
|
||||
<Vdc V1 1 790 200 18 -26 0 1 "12 V" 1>
|
||||
<GND * 1 790 230 0 0 0 0>
|
||||
<R R2 1 370 190 15 -26 0 1 "2k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<Vac V2 1 120 340 18 -26 0 1 "200 mV" 1 "10 kHz" 1 "0" 0 "0" 0>
|
||||
<Eqn Eqn1 1 860 430 -31 17 0 0 "Rload=47k" 1 "K=out.v/in.v" 1 "Pwr=(out.Vt*out.Vt)/Rload" 1 "yes" 0>
|
||||
<.DC DC1 1 480 430 0 61 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
|
||||
<.SW SW1 1 210 430 0 71 0 0 "AC1" 1 "lin" 1 "R2" 1 "1k" 1 "10k" 1 "4" 1>
|
||||
<.SW SW2 1 80 430 0 71 0 0 "TR1" 1 "lin" 1 "R2" 1 "1k" 1 "10k" 1 "3" 1>
|
||||
<.TR TR1 1 350 430 0 71 0 0 "lin" 1 "0" 1 "0.5 ms" 1 "200" 1 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
|
||||
<C C1 1 200 270 -26 17 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
|
||||
<C C2 1 520 230 -26 17 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
|
||||
<.AC AC1 1 650 430 0 43 0 0 "lin" 1 "1 Hz" 1 "10 MHz" 1 "2000" 1 "no" 0>
|
||||
<C C1 1 200 270 -35 -56 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
|
||||
<R R3 1 250 320 16 -18 0 1 "2k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 120 360 0 0 0 0>
|
||||
<IProbe Pr1 1 550 140 -15 17 0 0>
|
||||
<Vdc V1 1 660 190 18 -26 0 1 "12 V" 1>
|
||||
<GND * 1 660 240 0 0 0 0>
|
||||
<C C2 1 470 230 -18 -56 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
|
||||
<R R5 1 540 290 15 -19 0 1 "47k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 540 340 0 0 0 0>
|
||||
<R R2 1 370 190 15 -20 0 1 "4.7k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R4 1 370 350 16 -21 0 1 "400" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<NPN_SPICE Q1 1 370 270 232 40 0 0 "mod2N2222A" 1 ".MODEL mod2N2222A NPN (IS=3.0611E-14 NF=1.00124 BF=220 IKF=0.52 VAF=104 ISE=7.5E-15 NE=1.41 " 1 "+ NR=1.005 BR=4 IKR=0.24 VAR=28 ISC=1.06525E-11 NC=1.3728 RB=0.13 RE=0.22" 1 "+ RC=0.12 CJC=9.12E-12 MJC=0.3508 VJC=0.4089 CJE=27.01E-12 TF=0.325E-9 TR=100E-9)" 1 "" 0>
|
||||
<S4Q_V V2 1 120 310 -65 85 0 1 "DC 0 AC 100m sin(0 100m 10k 0 0)" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<.SW SW2 1 60 470 0 71 0 0 "TR1" 1 "lin" 1 "R2" 1 "1k" 1 "10k" 1 "10" 1 "false" 0>
|
||||
<.SW SW1 1 200 470 0 71 0 0 "AC1" 1 "lin" 1 "R2" 1 "1k" 1 "10k" 1 "10" 1 "false" 0>
|
||||
<.TR TR1 1 340 470 0 71 0 0 "lin" 1 "0" 1 "1 ms" 1 "200" 1 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
|
||||
<.DC DC1 1 480 470 0 61 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
|
||||
<.AC AC1 1 650 470 0 43 0 0 "log" 1 "1 Hz" 1 "1 GHz" 1 "100" 1 "no" 0>
|
||||
<Eqn Eqn2 1 860 480 -31 17 0 0 "Rload=47k" 1 "K=nout.v/nin.v" 1 "Pwr=(nout.Vt*nout.Vt)/Rload" 1 "yes" 0>
|
||||
<R R1 1 250 190 16 -16 0 1 "24k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<250 140 250 180 "" 0 0 0 "">
|
||||
<250 140 370 140 "" 0 0 0 "">
|
||||
<250 240 250 270 "" 0 0 0 "">
|
||||
<250 270 340 270 "" 0 0 0 "">
|
||||
<370 140 370 160 "" 0 0 0 "">
|
||||
<370 220 370 230 "" 0 0 0 "">
|
||||
<370 300 370 320 "" 0 0 0 "">
|
||||
<370 380 370 390 "" 0 0 0 "">
|
||||
<250 330 250 370 "" 0 0 0 "">
|
||||
<370 230 370 240 "" 0 0 0 "">
|
||||
<570 230 570 330 "" 0 0 0 "">
|
||||
<550 230 570 230 "out" 580 190 2 "">
|
||||
<370 230 490 230 "" 0 0 0 "">
|
||||
<370 140 620 140 "" 0 0 0 "">
|
||||
<680 140 790 140 "" 0 0 0 "">
|
||||
<790 140 790 170 "" 0 0 0 "">
|
||||
<230 270 250 270 "" 0 0 0 "">
|
||||
<120 270 120 310 "" 0 0 0 "">
|
||||
<120 270 170 270 "in" 120 220 6 "">
|
||||
<250 270 250 290 "" 0 0 0 "">
|
||||
<250 350 250 370 "" 0 0 0 "">
|
||||
<120 270 170 270 "nin" 81 230 6 "">
|
||||
<120 270 120 280 "" 0 0 0 "">
|
||||
<120 340 120 360 "" 0 0 0 "">
|
||||
<370 140 520 140 "" 0 0 0 "">
|
||||
<580 140 660 140 "" 0 0 0 "">
|
||||
<660 140 660 160 "" 0 0 0 "">
|
||||
<660 220 660 240 "" 0 0 0 "">
|
||||
<370 230 440 230 "" 0 0 0 "">
|
||||
<500 230 540 230 "nout" 560 200 40 "">
|
||||
<540 230 540 260 "" 0 0 0 "">
|
||||
<540 320 540 340 "" 0 0 0 "">
|
||||
<250 140 370 140 "" 0 0 0 "">
|
||||
<250 140 250 160 "" 0 0 0 "">
|
||||
<250 220 250 270 "" 0 0 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 512 870 382 210 3 #c0c0c0 1 10 1 0 1 0 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<Rect 70 940 365 217 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/tran.v(nout)" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 70 1220 365 217 3 #c0c0c0 1 00 1 0 0.0002 0.001 1 -7.94826e-06 2e-05 8.74309e-05 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/tran.pwr" #ff0000 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 510 940 603 218 3 #c0c0c0 1 10 1 0 1e+08 1e+09 1 -0.187454 0.5 2.06209 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/ac.v(nout)" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 510 1220 603 218 3 #c0c0c0 1 10 1 1 1 1e+09 1 -0.187454 0.5 2.06209 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/ac.k" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 80 874 352 217 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/tran.v(in)" #0000ff 0 3 0 0 0>
|
||||
<"ngspice/tran.v(out)" #ff0000 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 110 1120 444 168 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/tran.pwr" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Text 670 310 12 #000000 0 "This schematic shows how to utilize Parameter sweep\nwith Ngpice simulation.\nNOTE: This Example could be run only with Ngspice ">
|
||||
<Text 0 30 12 #000000 0 "This schematic shows how to utilize Parameter sweep\nwith Ngpice simulation.\nNOTE: This Example could be run only with Ngspice ">
|
||||
</Paintings>
|
||||
|
75
examples/ngspice/BJT_ac_tran.sch
Normal file
75
examples/ngspice/BJT_ac_tran.sch
Normal file
@ -0,0 +1,75 @@
|
||||
<Qucs Schematic 0.0.24>
|
||||
<Properties>
|
||||
<View=-78,26,1020,1186,1,0,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=BJT_ac_tran.dat>
|
||||
<DataDisplay=BJT_ac_tran.dpl>
|
||||
<OpenDisplay=0>
|
||||
<Script=BJT_ac_tran.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<_BJT Q2N2222A_1 1 400 210 5 -10 0 0 "npn" 0 "8.11e-14" 0 "1" 0 "1" 0 "0.5" 0 "0.225" 0 "113" 0 "24" 0 "1.06e-11" 0 "2" 0 "0" 0 "2" 0 "205" 0 "4" 0 "0" 0 "0" 0 "0.137" 0 "0.343" 0 "1.37" 0 "2.95e-11" 0 "0.75" 0 "0.33" 0 "1.52e-11" 0 "0.75" 0 "0.33" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "3.97e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.5" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
|
||||
<GND * 1 400 330 0 0 0 0>
|
||||
<GND * 1 280 310 0 0 0 0>
|
||||
<GND * 1 150 310 0 0 0 0>
|
||||
<R R5 1 400 130 18 -17 0 1 "4.7k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<Vac V2 1 150 280 -99 -29 0 1 "200 mV" 1 "4 kHz" 1 "0" 0 "0" 0>
|
||||
<R R3 1 280 150 17 -21 0 1 "24k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R2 1 400 290 17 -20 0 1 "470" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R1 1 280 260 19 -19 0 1 "2k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<C C1 1 210 210 -35 -56 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
|
||||
<C C2 1 520 170 -35 -57 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
|
||||
<R R4 1 580 230 15 -19 0 1 "Rload" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 580 280 0 0 0 0>
|
||||
<IProbe Pr1 1 590 80 -10 17 1 2>
|
||||
<Vdc V1 1 680 130 18 -26 0 1 "12 V" 1>
|
||||
<GND * 1 680 170 0 0 0 0>
|
||||
<Eqn Eqn1 1 90 390 -31 17 0 0 "Rload=47k" 1 "K=out.v/in.v" 1 "Pwr=(out.Vt*out.Vt)/Rload" 1 "yes" 0>
|
||||
<.DC DC1 1 590 390 0 49 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
|
||||
<.TR TR1 1 280 390 0 71 0 0 "lin" 1 "0" 1 "1 ms" 1 "1000" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
|
||||
<.AC AC1 1 420 390 -3 52 0 0 "log" 1 "10 Hz" 1 "100 MHz" 1 "100" 1 "no" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<280 80 280 120 "" 0 0 0 "">
|
||||
<280 80 400 80 "" 0 0 0 "">
|
||||
<280 180 280 210 "" 0 0 0 "">
|
||||
<280 210 370 210 "" 0 0 0 "">
|
||||
<400 80 400 100 "" 0 0 0 "">
|
||||
<400 240 400 260 "" 0 0 0 "">
|
||||
<400 320 400 330 "" 0 0 0 "">
|
||||
<400 160 400 170 "" 0 0 0 "">
|
||||
<400 170 400 180 "" 0 0 0 "">
|
||||
<280 210 280 230 "" 0 0 0 "">
|
||||
<280 290 280 310 "" 0 0 0 "">
|
||||
<240 210 280 210 "" 0 0 0 "">
|
||||
<150 210 150 250 "" 0 0 0 "">
|
||||
<150 210 180 210 "in" 120 180 6 "">
|
||||
<400 170 490 170 "" 0 0 0 "">
|
||||
<550 170 580 170 "out" 600 140 30 "">
|
||||
<580 170 580 200 "" 0 0 0 "">
|
||||
<580 260 580 280 "" 0 0 0 "">
|
||||
<400 80 560 80 "" 0 0 0 "">
|
||||
<620 80 680 80 "" 0 0 0 "">
|
||||
<680 80 680 100 "" 0 0 0 "">
|
||||
<680 160 680 170 "" 0 0 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 506 835 387 269 3 #c0c0c0 1 10 1 100 1 1e+09 1 0 2 9.08763 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/ac.k" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 510 1166 378 279 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/tran.i(pr1)" #0000ff 0 3 0 0 0>
|
||||
<"ngspice/tran.pwr" #ff0000 0 3 0 0 1>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Text 0 540 12 #000000 0 "This example shows the following \nfeatures of Ngspice support:\n1. Semiconductor devices usage\n2. AC and TRAN analysis\n3. Current probes usage\n4. Parametrization usage. Rload is parameter.\n5. Postprocessing usage in frequency domain.\n Volatge gain K calculation.\n6. Postrprocessing usage in time domain.\n\nNOTE: You can run this example with Qucsator and\n Ngspice and compare results.">
|
||||
</Paintings>
|
@ -1,10 +1,10 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Qucs Schematic 0.0.24>
|
||||
<Properties>
|
||||
<View=0,146,1033,870,1,0,0>
|
||||
<View=0,0,1033,870,1,0,60>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=BJT_dc.dat>
|
||||
<DataDisplay=BJT_dc.dpl>
|
||||
<OpenDisplay=1>
|
||||
<OpenDisplay=0>
|
||||
<Script=BJT_dc.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
@ -16,30 +16,33 @@
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<GND * 1 270 320 0 0 0 0>
|
||||
<GND * 1 420 320 0 0 0 0>
|
||||
<GND * 1 110 370 0 0 0 0>
|
||||
<IProbe Pr1 1 340 200 -26 16 1 2>
|
||||
<Vdc V1 1 420 290 18 -26 0 1 "5" 1>
|
||||
<Idc I2 1 110 340 18 -26 1 3 "5u" 1>
|
||||
<_BJT T1 1 270 290 12 -32 0 0 "npn" 0 "1e-14" 0 "1" 0 "1" 0 "0.3" 0 "0" 0 "100" 0 "0" 0 "0" 0 "1.5" 0 "0" 0 "2" 0 "200" 1 "3" 0 "0" 0 "0" 0 "3" 0 "1" 0 "10" 0 "25e-12" 0 "0.75" 0 "0.33" 0 "8e-12" 0 "0.75" 0 "0.33" 0 "1.0" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "400e-12" 0 "3" 0 "0.0" 0 "2" 0 "100e-9" 0 "26.85" 0 "0.0" 0 "1.0" 0 "1.0" 0 "0.0" 0 "1.0" 0 "1.0" 0 "0.0" 0 "0.0" 0 "3.0" 0 "1.11" 0 "26.85" 0 "1.0" 0>
|
||||
<.DC DC1 1 60 420 0 43 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
|
||||
<.SW SW1 1 250 370 0 71 0 0 "DC1" 1 "lin" 1 "V1" 1 "0" 1 "5" 1 "250" 1>
|
||||
<.SW SW2 1 390 370 0 71 0 0 "SW1" 1 "lin" 1 "T1.Bf" 1 "20" 1 "200" 1 "5" 1>
|
||||
<IProbe Pr1 1 340 200 -10 16 1 2>
|
||||
<_BJT T1 1 270 290 17 -22 0 0 "npn" 0 "1e-14" 0 "1" 0 "1" 0 "0.3" 0 "0" 0 "100" 0 "0" 0 "0" 0 "1.5" 0 "0" 0 "2" 0 "200" 1 "3" 0 "0" 0 "0" 0 "3" 0 "1" 0 "10" 0 "25e-12" 0 "0.75" 0 "0.33" 0 "8e-12" 0 "0.75" 0 "0.33" 0 "1.0" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "400e-12" 0 "3" 0 "0.0" 0 "2" 0 "100e-9" 0 "26.85" 0 "0.0" 0 "1.0" 0 "1.0" 0 "0.0" 0 "1.0" 0 "1.0" 0 "0.0" 0 "0.0" 0 "3.0" 0 "1.11" 0 "26.85" 0 "1.0" 0>
|
||||
<.DC DC1 1 60 420 0 45 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
|
||||
<.SW SW1 1 250 370 0 75 0 0 "DC1" 1 "lin" 1 "V1" 1 "0" 1 "5" 1 "250" 1 "false" 0>
|
||||
<GND * 1 180 380 0 0 0 0>
|
||||
<Vdc V1 1 420 270 19 -22 0 1 "5" 1>
|
||||
<GND * 1 270 330 0 0 0 0>
|
||||
<.SW SW2 1 390 370 0 75 0 0 "SW1" 1 "lin" 1 "T1.Bf" 1 "20" 1 "200" 1 "5" 1 "false" 1>
|
||||
<Idc I1 1 180 330 -53 -21 0 1 "5u" 1>
|
||||
</Components>
|
||||
<Wires>
|
||||
<270 200 270 260 "" 0 0 0 "">
|
||||
<270 200 310 200 "" 0 0 0 "">
|
||||
<420 200 420 260 "" 0 0 0 "">
|
||||
<110 290 110 310 "" 0 0 0 "">
|
||||
<110 290 240 290 "" 0 0 0 "">
|
||||
<180 290 240 290 "" 0 0 0 "">
|
||||
<180 290 180 300 "" 0 0 0 "">
|
||||
<180 360 180 380 "" 0 0 0 "">
|
||||
<420 300 420 320 "" 0 0 0 "">
|
||||
<370 200 420 200 "" 0 0 0 "">
|
||||
<420 200 420 240 "" 0 0 0 "">
|
||||
<270 320 270 330 "" 0 0 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 610 442 386 242 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<Rect 640 432 386 242 3 #c0c0c0 1 00 1 0 1 5 1 2.5e-6 2e-12 2.50001e-6 1 -1 0.5 1 315 0 225 0 0 0 "" "" "">
|
||||
<"ngspice/i(pr1)" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Text 530 500 12 #000000 0 "This is an example of DC sweep usage with \nNgspice. It shows how to sweep model \nparameters with Ngspice. Simulate it with Ngspice\n and obtain IV-chart of BJT.\n\nNOTE: This Example could be run only with Ngspice">
|
||||
<Text 30 20 12 #000000 0 "This is an example of DC sweep usage with \nNgspice. It shows how to sweep model \nparameters with Ngspice. Simulate it with Ngspice\n and obtain IV-chart of BJT.\n\nNOTE: This Example could be run only with Ngspice">
|
||||
</Paintings>
|
||||
|
47
examples/ngspice/BJT_dc_curves.sch
Normal file
47
examples/ngspice/BJT_dc_curves.sch
Normal file
@ -0,0 +1,47 @@
|
||||
<Qucs Schematic 0.0.24>
|
||||
<Properties>
|
||||
<View=0,-134,3426,953,1,0,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=BJT_dc_curves.dat>
|
||||
<DataDisplay=BJT_dc_curves.dpl>
|
||||
<OpenDisplay=0>
|
||||
<Script=BJT_dc_curves.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<GND * 1 180 200 0 0 0 0>
|
||||
<NPN_SPICE Q1 1 180 150 -21 94 0 0 "mod2N2222A" 1 ".MODEL mod2N2222A NPN (IS=3.0611E-14 NF=1.00124 BF=220 IKF=0.52 VAF=104 ISE=7.5E-15 NE=1.41 " 1 "+ NR=1.005 BR=4 IKR=0.24 VAR=28 ISC=1.06525E-11 NC=1.3728 RB=0.13 RE=0.22" 1 "+ RC=0.12 CJC=9.12E-12 MJC=0.3508 VJC=0.4089 CJE=27.01E-12 TF=0.325E-9 TR=100E-9)" 1 "" 0>
|
||||
<GND * 1 340 200 0 0 0 0>
|
||||
<Vdc V1 1 340 150 24 -18 0 1 "1 V" 1>
|
||||
<IProbe Pr1 1 260 100 -11 16 1 2>
|
||||
<.DC DC1 1 70 400 0 43 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
|
||||
<.SW SW1 1 80 480 0 71 0 0 "DC1" 1 "lin" 1 "V1" 1 "0" 1 "10" 1 "101" 1 "false" 0>
|
||||
<.SW SW2 1 220 480 0 71 0 0 "SW1" 1 "lin" 1 "I1" 1 "20u" 1 "200u" 1 "5" 1 "false" 0>
|
||||
<Idc I1 1 100 190 -72 -22 1 1 "1 mA" 1>
|
||||
<GND * 1 100 240 0 0 0 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<180 180 180 200 "" 0 0 0 "">
|
||||
<340 180 340 200 "" 0 0 0 "">
|
||||
<180 100 180 120 "" 0 0 0 "">
|
||||
<180 100 230 100 "" 0 0 0 "">
|
||||
<340 100 340 120 "" 0 0 0 "">
|
||||
<290 100 340 100 "" 0 0 0 "">
|
||||
<100 150 150 150 "" 0 0 0 "">
|
||||
<100 150 100 160 "" 0 0 0 "">
|
||||
<100 220 100 240 "" 0 0 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 500 757 439 375 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/i(pr1)" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
</Paintings>
|
48
examples/ngspice/BJT_dc_ngspice.sch
Normal file
48
examples/ngspice/BJT_dc_ngspice.sch
Normal file
@ -0,0 +1,48 @@
|
||||
<Qucs Schematic 0.0.24>
|
||||
<Properties>
|
||||
<View=0,-10,1691,905,1,0,240>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=BJT_dc_ngspice.dat>
|
||||
<DataDisplay=BJT_dc_ngspice.dpl>
|
||||
<OpenDisplay=0>
|
||||
<Script=BJT_dc_ngspice.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<GND * 1 200 330 0 0 0 0>
|
||||
<GND * 1 100 370 0 0 0 0>
|
||||
<.DC DC1 1 90 560 0 45 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
|
||||
<NPN_SPICE Q1 1 200 290 -134 120 0 0 "mod2N2222A" 1 ".MODEL mod2N2222A NPN (IS=3.0611E-14 NF=1.00124 BF=220 IKF=0.52 VAF=104 ISE=7.5E-15 NE=1.41 " 1 "+ NR=1.005 BR=4 IKR=0.24 VAR=28 ISC=1.06525E-11 NC=1.3728 RB=0.13 RE=0.22" 1 "+ RC=0.12 CJC=9.12E-12 MJC=0.3508 VJC=0.4089 CJE=27.01E-12 TF=0.325E-9 TR=100E-9)" 1 "" 0>
|
||||
<Idc I1 1 100 330 -57 -26 1 1 "5u" 1>
|
||||
<.SW SW1 1 300 560 0 75 0 0 "DC1" 1 "lin" 1 "V1" 1 "0" 1 "5" 1 "250" 1 "false" 0>
|
||||
<Vdc V1 1 340 270 18 -26 0 1 "5" 1>
|
||||
<IProbe Pr1 1 270 220 -12 -58 1 2>
|
||||
<GND * 1 340 320 0 0 0 0>
|
||||
<.SW SW2 1 460 560 0 75 0 0 "SW1" 1 "lin" 1 "@mod2N2222A[BF]" 1 "20" 1 "200" 1 "5" 1 "false" 1>
|
||||
</Components>
|
||||
<Wires>
|
||||
<200 320 200 330 "" 0 0 0 "">
|
||||
<100 290 170 290 "" 0 0 0 "">
|
||||
<100 290 100 300 "" 0 0 0 "">
|
||||
<100 360 100 370 "" 0 0 0 "">
|
||||
<200 220 200 260 "" 0 0 0 "">
|
||||
<200 220 240 220 "" 0 0 0 "">
|
||||
<340 220 340 240 "" 0 0 0 "">
|
||||
<300 220 340 220 "" 0 0 0 "">
|
||||
<340 300 340 320 "" 0 0 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 650 392 386 242 3 #c0c0c0 1 00 1 0 1 5 1 -0.000112223 0.0002 0.0012 1 -1 0.5 1 315 0 225 0 0 0 "" "" "">
|
||||
<"ngspice/i(pr1)" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Text 20 10 12 #000000 0 "This example shows how to sweep model parameters with Ngspice.\nSimulate it with Ngspice and obtain Ic versus Beta of BJT.\n\nNOTE: This Example could be run only with Ngspice">
|
||||
</Paintings>
|
Loading…
x
Reference in New Issue
Block a user