diff options
author | Saurabh Bansode | 2020-03-30 11:36:00 +0530 |
---|---|---|
committer | GitHub | 2020-03-30 11:36:00 +0530 |
commit | 44f799514b0820d5a3e88db8c149ea3ae1c5db10 (patch) | |
tree | f7d507cccc79105d4d1526a38dc4a14df8dd9ffb /Examples | |
parent | 7c6743e5ec8a299ca40dceca5de3fc99a3aed025 (diff) | |
parent | 351b61ad2bdbed22b0b062d66ee999fbb7d61d25 (diff) | |
download | eSim-44f799514b0820d5a3e88db8c149ea3ae1c5db10.tar.gz eSim-44f799514b0820d5a3e88db8c149ea3ae1c5db10.tar.bz2 eSim-44f799514b0820d5a3e88db8c149ea3ae1c5db10.zip |
Merge pull request #145 from saurabhb17/master
UA741 removed from SubcircuitLibrary
Diffstat (limited to 'Examples')
85 files changed, 4696 insertions, 1641 deletions
diff --git a/Examples/Differentiator/Differentiator-cache.lib b/Examples/Differentiator/Differentiator-cache.lib index 259458aa..7c9dc2aa 100644 --- a/Examples/Differentiator/Differentiator-cache.lib +++ b/Examples/Differentiator/Differentiator-cache.lib @@ -1,6 +1,23 @@ EESchema-LIBRARY Version 2.3 #encoding utf-8 # +# DC +# +DEF DC v 0 40 Y Y 1 F N +F0 "v" -200 100 60 H V C CNN +F1 "DC" -200 -50 60 H V C CNN +F2 "R1" -300 0 60 H V C CNN +F3 "" 0 0 60 H V C CNN +$FPLIST + 1_pin +$ENDFPLIST +DRAW +C 0 0 150 0 1 0 N +X + 1 0 450 300 D 50 50 1 1 w +X - 2 0 -450 300 U 50 50 1 1 w +ENDDRAW +ENDDEF +# # GND # DEF GND #PWR 0 0 Y Y 1 F P @@ -14,21 +31,6 @@ X GND 1 0 0 0 D 50 50 1 1 W N ENDDRAW ENDDEF # -# UA741 -# -DEF UA741 X 0 40 Y Y 1 F N -F0 "X" 150 0 60 H V C CNN -F1 "UA741" 250 -150 60 H V C CNN -F2 "" 0 0 60 H V C CNN -F3 "" 0 0 60 H V C CNN -DRAW -P 4 0 1 0 0 150 0 -150 350 0 0 150 N -X + 1 -200 100 200 R 50 50 1 1 I -X - 2 -200 -100 200 R 50 50 1 1 I -X ~ 3 550 0 200 L 50 50 1 1 O -ENDDRAW -ENDDEF -# # eSim_C # DEF eSim_C C 0 10 N Y 1 F N @@ -67,6 +69,26 @@ X ~ 2 200 50 50 L 60 60 1 1 P ENDDRAW ENDDEF # +# lm_741 +# +DEF lm_741 X 0 40 Y Y 1 F N +F0 "X" -200 0 60 H V C CNN +F1 "lm_741" -100 -250 60 H V C CNN +F2 "" 0 0 60 H V C CNN +F3 "" 0 0 60 H V C CNN +DRAW +P 4 0 1 0 -350 350 350 0 -350 -350 -350 350 N +X off_null 1 -50 400 200 D 50 38 1 1 I +X inv 2 -550 150 200 R 50 38 1 1 I +X non_inv 3 -550 -100 200 R 50 38 1 1 I +X v_neg 4 -150 -450 200 U 50 38 1 1 I +X off_null 5 50 350 200 D 50 38 1 1 I +X out 6 550 0 200 L 50 38 1 1 O +X v_pos 7 -150 450 200 D 50 38 1 1 I +X NC 8 150 -300 200 U 50 38 1 1 N +ENDDRAW +ENDDEF +# # plot_v1 # DEF plot_v1 U 0 40 Y Y 1 F N diff --git a/Examples/Differentiator/Differentiator.cir b/Examples/Differentiator/Differentiator.cir index 60502da0..18e8a483 100644 --- a/Examples/Differentiator/Differentiator.cir +++ b/Examples/Differentiator/Differentiator.cir @@ -1,19 +1,21 @@ -* /home/saurabh/Downloads/eSim-1.1.2/Examples/Differentiator/Differentiator.cir +* /home/saurabh/Desktop/eSim/Examples/Differentiator/Differentiator.cir -* EESchema Netlist Version 1.1 (Spice format) creation date: Fri Mar 8 14:40:54 2019 +* EESchema Netlist Version 1.1 (Spice format) creation date: Fri Mar 27 17:56:03 2020 * To exclude a component from the Spice Netlist add [Spice_Netlist_Enabled] user FIELD set to: N * To reorder the component spice node sequence add [Spice_Node_Sequence] user FIELD and define sequence: 2,1,0 * Sheet Name: / -X1 Net-_R2-Pad2_ Net-_C1-Pad2_ out UA741 -R3 out Net-_C1-Pad2_ 10k -R1 Net-_C1-Pad1_ in 100k -R2 GND Net-_R2-Pad2_ 1k -R4 GND out 1k -C1 Net-_C1-Pad1_ Net-_C1-Pad2_ 20n v1 in GND pwl U1 in plot_v1 U2 out plot_v1 +R1 in Net-_C1-Pad2_ 100k +C1 Net-_C1-Pad1_ Net-_C1-Pad2_ 10n +R2 Net-_R2-Pad1_ GND 1k +R3 Net-_C1-Pad1_ out 1k +R4 out GND 1k +X1 ? Net-_C1-Pad1_ Net-_R2-Pad1_ Net-_X1-Pad4_ ? out Net-_X1-Pad7_ ? lm_741 +v3 Net-_X1-Pad7_ GND DC +v2 GND Net-_X1-Pad4_ DC .end diff --git a/Examples/Differentiator/Differentiator.cir.out b/Examples/Differentiator/Differentiator.cir.out index 348f6751..fcc73306 100644 --- a/Examples/Differentiator/Differentiator.cir.out +++ b/Examples/Differentiator/Differentiator.cir.out @@ -1,16 +1,18 @@ -* /home/saurabh/downloads/esim-1.1.2/examples/differentiator/differentiator.cir +* /home/saurabh/desktop/esim/examples/differentiator/differentiator.cir -.include ua741.sub -x1 net-_r2-pad2_ net-_c1-pad2_ out ua741 -r3 out net-_c1-pad2_ 10k -r1 net-_c1-pad1_ in 100k -r2 gnd net-_r2-pad2_ 1k -r4 gnd out 1k -c1 net-_c1-pad1_ net-_c1-pad2_ 20n +.include lm_741.sub v1 in gnd pwl(0m 0 0.5m 5 25m 5 25.5m -5 50m -5 50.5m 5 75m 5 75.5m -5 100m -5) * u1 in plot_v1 * u2 out plot_v1 -.tran 10e-03 100e-03 0e-00 +r1 in net-_c1-pad2_ 100k +c1 net-_c1-pad1_ net-_c1-pad2_ 10n +r2 net-_r2-pad1_ gnd 1k +r3 net-_c1-pad1_ out 1k +r4 out gnd 1k +x1 ? net-_c1-pad1_ net-_r2-pad1_ net-_x1-pad4_ ? out net-_x1-pad7_ ? lm_741 +v3 net-_x1-pad7_ gnd dc 15 +v2 gnd net-_x1-pad4_ dc 15 +.tran 1e-03 100e-03 0e-00 * Control Statements .control diff --git a/Examples/Differentiator/Differentiator.sch b/Examples/Differentiator/Differentiator.sch index 24ff6636..9c2e3f23 100644 --- a/Examples/Differentiator/Differentiator.sch +++ b/Examples/Differentiator/Differentiator.sch @@ -51,17 +51,6 @@ Comment3 "" Comment4 "" $EndDescr $Comp -L UA741 X1 -U 1 1 56B85B7E -P 6050 2950 -F 0 "X1" H 6200 2950 60 0000 C CNN -F 1 "UA741" H 6300 2800 60 0000 C CNN -F 2 "" H 6050 2950 60 0000 C CNN -F 3 "" H 6050 2950 60 0000 C CNN - 1 6050 2950 - 1 0 0 1 -$EndComp -$Comp L pwl v1 U 1 1 56B85E24 P 4500 3300 @@ -73,36 +62,36 @@ F 3 "" H 4500 3300 60 0000 C CNN 1 0 0 -1 $EndComp $Comp -L GND #PWR1 +L GND #PWR01 U 1 1 56B85ECF -P 4500 3750 -F 0 "#PWR1" H 4500 3500 50 0001 C CNN -F 1 "GND" H 4500 3600 50 0000 C CNN -F 2 "" H 4500 3750 50 0000 C CNN -F 3 "" H 4500 3750 50 0000 C CNN - 1 4500 3750 +P 4500 3900 +F 0 "#PWR01" H 4500 3650 50 0001 C CNN +F 1 "GND" H 4500 3750 50 0000 C CNN +F 2 "" H 4500 3900 50 0000 C CNN +F 3 "" H 4500 3900 50 0000 C CNN + 1 4500 3900 1 0 0 -1 $EndComp $Comp -L GND #PWR2 +L GND #PWR02 U 1 1 56B85EF6 -P 5550 3350 -F 0 "#PWR2" H 5550 3100 50 0001 C CNN -F 1 "GND" H 5550 3200 50 0000 C CNN -F 2 "" H 5550 3350 50 0000 C CNN -F 3 "" H 5550 3350 50 0000 C CNN - 1 5550 3350 +P 5550 3400 +F 0 "#PWR02" H 5550 3150 50 0001 C CNN +F 1 "GND" H 5550 3250 50 0000 C CNN +F 2 "" H 5550 3400 50 0000 C CNN +F 3 "" H 5550 3400 50 0000 C CNN + 1 5550 3400 1 0 0 -1 $EndComp $Comp -L GND #PWR3 +L GND #PWR03 U 1 1 56B85F16 -P 7350 2950 -F 0 "#PWR3" H 7350 2700 50 0001 C CNN -F 1 "GND" H 7350 2800 50 0000 C CNN -F 2 "" H 7350 2950 50 0000 C CNN -F 3 "" H 7350 2950 50 0000 C CNN - 1 7350 2950 +P 7700 3000 +F 0 "#PWR03" H 7700 2750 50 0001 C CNN +F 1 "GND" H 7700 2850 50 0000 C CNN +F 2 "" H 7700 3000 50 0000 C CNN +F 3 "" H 7700 3000 50 0000 C CNN + 1 7700 3000 1 0 0 -1 $EndComp Wire Wire Line @@ -112,22 +101,18 @@ Wire Wire Line Wire Wire Line 5700 2850 5850 2850 Wire Wire Line - 5850 3050 5550 3050 -Wire Wire Line - 6600 2950 7050 2950 -Wire Wire Line - 6350 2300 6800 2300 + 5850 3100 5550 3100 Wire Wire Line - 6800 2300 6800 2950 -Connection ~ 6800 2950 + 6950 3000 7400 3000 Wire Wire Line - 6050 2300 5750 2300 + 6700 2350 7150 2350 Wire Wire Line - 5750 2300 5750 2850 + 7150 2350 7150 3000 +Connection ~ 7150 3000 Connection ~ 5750 2850 Text GLabel 4550 2700 0 60 Input ~ 0 in -Text GLabel 6950 2800 2 60 Input ~ 0 +Text GLabel 7300 2850 2 60 Input ~ 0 out Wire Wire Line 4550 2700 4600 2700 @@ -135,10 +120,10 @@ Wire Wire Line 4600 2600 4600 2850 Connection ~ 4600 2850 Wire Wire Line - 6950 2800 6900 2800 + 7300 2850 7250 2850 Wire Wire Line - 6900 2750 6900 2950 -Connection ~ 6900 2950 + 7250 2800 7250 3000 +Connection ~ 7250 3000 $Comp L plot_v1 U1 U 1 1 56D46BCE @@ -153,16 +138,16 @@ $EndComp $Comp L plot_v1 U2 U 1 1 56D46C5F -P 6900 2950 -F 0 "U2" H 6900 3450 60 0000 C CNN -F 1 "plot_v1" H 7100 3300 60 0000 C CNN -F 2 "" H 6900 2950 60 0000 C CNN -F 3 "" H 6900 2950 60 0000 C CNN - 1 6900 2950 +P 7250 3000 +F 0 "U2" H 7250 3500 60 0000 C CNN +F 1 "plot_v1" H 7450 3350 60 0000 C CNN +F 2 "" H 7250 3000 60 0000 C CNN +F 3 "" H 7250 3000 60 0000 C CNN + 1 7250 3000 1 0 0 -1 $EndComp Connection ~ 4600 2700 -Connection ~ 6900 2800 +Connection ~ 7250 2850 $Comp L resistor R1 U 1 1 5E68BD57 @@ -188,34 +173,107 @@ $EndComp $Comp L resistor R2 U 1 1 5E68BF22 -P 5500 3150 -F 0 "R2" H 5550 3280 50 0000 C CNN -F 1 "1k" H 5550 3100 50 0000 C CNN -F 2 "" H 5550 3130 30 0000 C CNN -F 3 "" V 5550 3200 30 0000 C CNN - 1 5500 3150 +P 5500 3200 +F 0 "R2" H 5550 3330 50 0000 C CNN +F 1 "1k" H 5550 3150 50 0000 C CNN +F 2 "" H 5550 3180 30 0000 C CNN +F 3 "" V 5550 3250 30 0000 C CNN + 1 5500 3200 0 1 1 0 $EndComp $Comp L resistor R3 U 1 1 5E68BFEA -P 6150 2350 -F 0 "R3" H 6200 2480 50 0000 C CNN -F 1 "1k" H 6200 2300 50 0000 C CNN -F 2 "" H 6200 2330 30 0000 C CNN -F 3 "" V 6200 2400 30 0000 C CNN - 1 6150 2350 +P 6500 2400 +F 0 "R3" H 6550 2530 50 0000 C CNN +F 1 "1k" H 6550 2350 50 0000 C CNN +F 2 "" H 6550 2380 30 0000 C CNN +F 3 "" V 6550 2450 30 0000 C CNN + 1 6500 2400 1 0 0 -1 $EndComp $Comp L resistor R4 U 1 1 5E68C095 -P 7150 3000 -F 0 "R4" H 7200 3130 50 0000 C CNN -F 1 "1k" H 7200 2950 50 0000 C CNN -F 2 "" H 7200 2980 30 0000 C CNN -F 3 "" V 7200 3050 30 0000 C CNN - 1 7150 3000 +P 7500 3050 +F 0 "R4" H 7550 3180 50 0000 C CNN +F 1 "1k" H 7550 3000 50 0000 C CNN +F 2 "" H 7550 3030 30 0000 C CNN +F 3 "" V 7550 3100 30 0000 C CNN + 1 7500 3050 + 1 0 0 -1 +$EndComp +$Comp +L lm_741 X1 +U 1 1 5E7DF220 +P 6400 3000 +F 0 "X1" H 6200 3000 60 0000 C CNN +F 1 "lm_741" H 6300 2750 60 0000 C CNN +F 2 "" H 6400 3000 60 0000 C CNN +F 3 "" H 6400 3000 60 0000 C CNN + 1 6400 3000 1 0 0 -1 $EndComp +$Comp +L DC v3 +U 1 1 5E7DF2B6 +P 5750 1950 +F 0 "v3" H 5550 2050 60 0000 C CNN +F 1 "DC" H 5550 1900 60 0000 C CNN +F 2 "R1" H 5450 1950 60 0000 C CNN +F 3 "" H 5750 1950 60 0000 C CNN + 1 5750 1950 + 0 1 1 0 +$EndComp +Wire Wire Line + 6200 1950 6250 1950 +Wire Wire Line + 6250 1950 6250 2550 +$Comp +L GND #PWR04 +U 1 1 5E7DF3B7 +P 5100 1950 +F 0 "#PWR04" H 5100 1700 50 0001 C CNN +F 1 "GND" H 5100 1800 50 0000 C CNN +F 2 "" H 5100 1950 50 0000 C CNN +F 3 "" H 5100 1950 50 0000 C CNN + 1 5100 1950 + 0 1 1 0 +$EndComp +Wire Wire Line + 5100 1950 5300 1950 +$Comp +L DC v2 +U 1 1 5E7DF447 +P 5700 4000 +F 0 "v2" H 5500 4100 60 0000 C CNN +F 1 "DC" H 5500 3950 60 0000 C CNN +F 2 "R1" H 5400 4000 60 0000 C CNN +F 3 "" H 5700 4000 60 0000 C CNN + 1 5700 4000 + 0 -1 -1 0 +$EndComp +Wire Wire Line + 6150 4000 6250 4000 +$Comp +L GND #PWR05 +U 1 1 5E7DF44E +P 5050 4000 +F 0 "#PWR05" H 5050 3750 50 0001 C CNN +F 1 "GND" H 5050 3850 50 0000 C CNN +F 2 "" H 5050 4000 50 0000 C CNN +F 3 "" H 5050 4000 50 0000 C CNN + 1 5050 4000 + 0 1 1 0 +$EndComp +Wire Wire Line + 5050 4000 5250 4000 +Wire Wire Line + 6250 4000 6250 3450 +Wire Wire Line + 6400 2350 5750 2350 +Wire Wire Line + 5750 2350 5750 2850 +Wire Wire Line + 4500 3900 4500 3750 $EndSCHEMATC diff --git a/Examples/Differentiator/Differentiator_Previous_Values.xml b/Examples/Differentiator/Differentiator_Previous_Values.xml index f7484c7d..b4574b3d 100644 --- a/Examples/Differentiator/Differentiator_Previous_Values.xml +++ b/Examples/Differentiator/Differentiator_Previous_Values.xml @@ -1 +1 @@ -<KicadtoNgspice><analysis><ac><field1 name="Lin">true</field1><field2 name="Dec">false</field2><field3 name="Oct">false</field3><field4 name="Start Frequency" /><field5 name="Stop Frequency" /><field6 name="No. of points" /><field7 name="Start Fre Combo">Hz</field7><field8 name="Stop Fre Combo">Hz</field8></ac><dc><field1 name="Source 1" /><field2 name="Start" /><field3 name="Increment" /><field4 name="Stop" /><field5 name="Operating Point">0</field5><field6 name="Start Combo">Volts or Amperes</field6><field7 name="Increment Combo">Volts or Amperes</field7><field8 name="Stop Combo">Volts or Amperes</field8><field9 name="Source 2" /><field10 name="Start" /><field11 name="Increment" /><field12 name="Stop" /><field13 name="Start Combo">Volts or Amperes</field13><field14 name="Increment Combo">Volts or Amperes</field14><field15 name="Stop Combo">Volts or Amperes</field15></dc><tran><field1 name="Start Time">0</field1><field2 name="Step Time">10</field2><field3 name="Stop Time">100</field3><field4 name="Start Combo">Sec</field4><field5 name="Step Combo">ms</field5><field6 name="Stop Combo">ms</field6></tran></analysis><source><v1 name="Source type">pwl<field1 name="Enter in pwl format">0m 0 0.5m 5 25m 5 25.5m -5 50m -5 50.5m 5 75m 5 75.5m -5 100m -5</field1></v1></source><model /><devicemodel /><subcircuit><x1><field>/home/saurabh/Downloads/eSim-1.1.2/src/SubcircuitLibrary/ua741</field></x1></subcircuit></KicadtoNgspice>
\ No newline at end of file +<KicadtoNgspice><source><v1 name="Source type">pwl<field1 name="Enter in pwl format">0m 0 0.5m 5 25m 5 25.5m -5 50m -5 50.5m 5 75m 5 75.5m -5 100m -5</field1></v1><v3 name="Source type">dc<field1 name="Value">15</field1></v3><v2 name="Source type">dc<field1 name="Value">15</field1></v2></source><model /><devicemodel /><subcircuit><x1><field>/home/saurabh/Desktop/eSim-2.0/library/SubcircuitLibrary/lm_741</field></x1></subcircuit><analysis><ac><field1 name="Lin">true</field1><field2 name="Dec">false</field2><field3 name="Oct">false</field3><field4 name="Start Frequency" /><field5 name="Stop Frequency" /><field6 name="No. of points" /><field7 name="Start Fre Combo">Hz</field7><field8 name="Stop Fre Combo">Hz</field8></ac><dc><field1 name="Source 1" /><field2 name="Start" /><field3 name="Increment" /><field4 name="Stop" /><field5 name="Operating Point">0</field5><field6 name="Start Combo">Volts or Amperes</field6><field7 name="Increment Combo">Volts or Amperes</field7><field8 name="Stop Combo">Volts or Amperes</field8><field9 name="Source 2" /><field10 name="Start" /><field11 name="Increment" /><field12 name="Stop" /><field13 name="Start Combo">Volts or Amperes</field13><field14 name="Increment Combo">Volts or Amperes</field14><field15 name="Stop Combo">Volts or Amperes</field15></dc><tran><field1 name="Start Time">0</field1><field2 name="Step Time">1</field2><field3 name="Stop Time">100</field3><field4 name="Start Combo">Sec</field4><field5 name="Step Combo">ms</field5><field6 name="Stop Combo">ms</field6></tran></analysis></KicadtoNgspice>
\ No newline at end of file diff --git a/Examples/Differentiator/NPN.lib b/Examples/Differentiator/NPN.lib new file mode 100644 index 00000000..6509fe7a --- /dev/null +++ b/Examples/Differentiator/NPN.lib @@ -0,0 +1,4 @@ +.model Q2N2222 NPN( Is=14.34f Xti=3 Eg=1.11 Vaf=74.03 Bf=400 Ne=1.307 ++ Ise=14.34f Ikf=.2847 Xtb=1.5 Br=6.092 Nc=2 Isc=0 Ikr=0 Rc=1 Cjc=7.306p ++ Mjc=.3416 Vjc=.75 Fc=.5 Cje=22.01p Mje=.377 Vje=.75 Tr=46.91n Tf=411.1p ++ Itf=.6 Vtf=1.7 Xtf=3 Rb=10) diff --git a/Examples/Differentiator/PNP.lib b/Examples/Differentiator/PNP.lib new file mode 100644 index 00000000..7edda0ea --- /dev/null +++ b/Examples/Differentiator/PNP.lib @@ -0,0 +1,4 @@ +.model Q2N2907A PNP(Is=650.6E-18 Xti=3 Eg=1.11 Vaf=115.7 Bf=231.7 Ne=1.829 ++ Ise=54.81f Ikf=1.079 Xtb=1.5 Br=3.563 Nc=2 Isc=0 Ikr=0 Rc=.715 ++ Cjc=14.76p Mjc=.5383 Vjc=.75 Fc=.5 Cje=19.82p Mje=.3357 Vje=.75 ++ Tr=111.3n Tf=603.7p Itf=.65 Vtf=5 Xtf=1.7 Rb=10) diff --git a/Examples/Differentiator/analysis b/Examples/Differentiator/analysis index d5e13546..f496aec4 100644 --- a/Examples/Differentiator/analysis +++ b/Examples/Differentiator/analysis @@ -1 +1 @@ -.tran 10e-03 100e-03 0e-00
\ No newline at end of file +.tran 1e-03 100e-03 0e-00
\ No newline at end of file diff --git a/Examples/Differentiator/lm_741-cache.lib b/Examples/Differentiator/lm_741-cache.lib new file mode 100644 index 00000000..32e31aa1 --- /dev/null +++ b/Examples/Differentiator/lm_741-cache.lib @@ -0,0 +1,120 @@ +EESchema-LIBRARY Version 2.3 +#encoding utf-8 +# +# PORT +# +DEF PORT U 0 40 Y Y 26 F N +F0 "U" 50 100 30 H V C CNN +F1 "PORT" 0 0 30 H V C CNN +F2 "" 0 0 60 H V C CNN +F3 "" 0 0 60 H V C CNN +DRAW +A 325 225 285 -1421 -1278 0 1 0 N 100 50 150 0 +A 376 -275 356 1294 1408 0 1 0 N 150 0 100 -50 +S -100 50 100 -50 0 1 0 N +X ~ 1 250 0 100 L 30 30 1 1 B +X ~ 2 250 0 100 L 30 30 2 1 B +X ~ 3 250 0 100 L 30 30 3 1 B +X ~ 4 250 0 100 L 30 30 4 1 B +X ~ 5 250 0 100 L 30 30 5 1 B +X ~ 6 250 0 100 L 30 30 6 1 B +X ~ 7 250 0 100 L 30 30 7 1 B +X ~ 8 250 0 100 L 30 30 8 1 B +X ~ 9 250 0 100 L 30 30 9 1 B +X ~ 10 250 0 100 L 30 30 10 1 B +X ~ 11 250 0 100 L 30 30 11 1 B +X ~ 12 250 0 100 L 30 30 12 1 B +X ~ 13 250 0 100 L 30 30 13 1 B +X ~ 14 250 0 100 L 30 30 14 1 B +X ~ 15 250 0 100 L 30 30 15 1 B +X ~ 16 250 0 100 L 30 30 16 1 B +X ~ 17 250 0 100 L 30 30 17 1 B +X ~ 18 250 0 100 L 30 30 18 1 B +X ~ 19 250 0 100 L 30 30 19 1 B +X ~ 20 250 0 100 L 30 30 20 1 B +X ~ 21 250 0 100 L 30 30 21 1 B +X ~ 22 250 0 100 L 30 30 22 1 B +X ~ 23 250 0 100 L 30 30 23 1 B +X ~ 24 250 0 100 L 30 30 24 1 B +X ~ 25 250 0 100 L 30 30 25 1 B +X ~ 26 250 0 100 L 30 30 26 1 B +ENDDRAW +ENDDEF +# +# eSim_C +# +DEF eSim_C C 0 10 N Y 1 F N +F0 "C" 25 100 50 H V L CNN +F1 "eSim_C" 25 -100 50 H V L CNN +F2 "" 38 -150 30 H V C CNN +F3 "" 0 0 60 H V C CNN +ALIAS capacitor +$FPLIST + C_* +$ENDFPLIST +DRAW +P 2 0 1 20 -80 -30 80 -30 N +P 2 0 1 20 -80 30 80 30 N +X ~ 1 0 150 110 D 40 40 1 1 P +X ~ 2 0 -150 110 U 40 40 1 1 P +ENDDRAW +ENDDEF +# +# eSim_NPN-RESCUE-lm_741 +# +DEF eSim_NPN-RESCUE-lm_741 Q 0 0 Y N 1 F N +F0 "Q" -100 50 50 H V R CNN +F1 "eSim_NPN-RESCUE-lm_741" -50 150 50 H V R CNN +F2 "" 200 100 29 H V C CNN +F3 "" 0 0 60 H V C CNN +DRAW +C 50 0 111 0 1 10 N +P 2 0 1 0 25 25 100 100 N +P 3 0 1 0 25 -25 100 -100 100 -100 N +P 3 0 1 20 25 75 25 -75 25 -75 N +P 5 0 1 0 50 -70 70 -50 90 -90 50 -70 50 -70 F +X C 1 100 200 100 D 50 50 1 1 C +X B 2 -200 0 225 R 50 50 1 1 I +X E 3 100 -200 100 U 50 50 1 1 E +ENDDRAW +ENDDEF +# +# eSim_PNP-RESCUE-lm_741 +# +DEF eSim_PNP-RESCUE-lm_741 Q 0 0 Y N 1 F N +F0 "Q" -100 50 50 H V R CNN +F1 "eSim_PNP-RESCUE-lm_741" -50 150 50 H V R CNN +F2 "" 200 100 29 H V C CNN +F3 "" 0 0 60 H V C CNN +DRAW +C 50 0 111 0 1 10 N +P 2 0 1 0 25 25 100 100 N +P 3 0 1 0 25 -25 100 -100 100 -100 N +P 3 0 1 20 25 75 25 -75 25 -75 N +P 5 0 1 0 90 -70 70 -90 50 -50 90 -70 90 -70 F +X C 1 100 200 100 D 50 50 1 1 C +X B 2 -200 0 225 R 50 50 1 1 I +X E 3 100 -200 100 U 50 50 1 1 E +ENDDRAW +ENDDEF +# +# eSim_R +# +DEF eSim_R R 0 0 N Y 1 F N +F0 "R" 50 130 50 H V C CNN +F1 "eSim_R" 50 -50 50 H V C CNN +F2 "" 50 -20 30 H V C CNN +F3 "" 50 50 30 V V C CNN +ALIAS resistor +$FPLIST + R_* + Resistor_* +$ENDFPLIST +DRAW +S 150 10 -50 90 0 1 10 N +X ~ 1 -100 50 50 R 60 60 1 1 P +X ~ 2 200 50 50 L 60 60 1 1 P +ENDDRAW +ENDDEF +# +#End Library diff --git a/Examples/Differentiator/lm_741-rescue.lib b/Examples/Differentiator/lm_741-rescue.lib new file mode 100644 index 00000000..1ac4cbd4 --- /dev/null +++ b/Examples/Differentiator/lm_741-rescue.lib @@ -0,0 +1,42 @@ +EESchema-LIBRARY Version 2.3 +#encoding utf-8 +# +# eSim_NPN-RESCUE-lm_741 +# +DEF eSim_NPN-RESCUE-lm_741 Q 0 0 Y N 1 F N +F0 "Q" -100 50 50 H V R CNN +F1 "eSim_NPN-RESCUE-lm_741" -50 150 50 H V R CNN +F2 "" 200 100 29 H V C CNN +F3 "" 0 0 60 H V C CNN +DRAW +C 50 0 111 0 1 10 N +P 2 0 1 0 25 25 100 100 N +P 3 0 1 0 25 -25 100 -100 100 -100 N +P 3 0 1 20 25 75 25 -75 25 -75 N +P 5 0 1 0 50 -70 70 -50 90 -90 50 -70 50 -70 F +X C 1 100 200 100 D 50 50 1 1 C +X B 2 -200 0 225 R 50 50 1 1 I +X E 3 100 -200 100 U 50 50 1 1 E +ENDDRAW +ENDDEF +# +# eSim_PNP-RESCUE-lm_741 +# +DEF eSim_PNP-RESCUE-lm_741 Q 0 0 Y N 1 F N +F0 "Q" -100 50 50 H V R CNN +F1 "eSim_PNP-RESCUE-lm_741" -50 150 50 H V R CNN +F2 "" 200 100 29 H V C CNN +F3 "" 0 0 60 H V C CNN +DRAW +C 50 0 111 0 1 10 N +P 2 0 1 0 25 25 100 100 N +P 3 0 1 0 25 -25 100 -100 100 -100 N +P 3 0 1 20 25 75 25 -75 25 -75 N +P 5 0 1 0 90 -70 70 -90 50 -50 90 -70 90 -70 F +X C 1 100 200 100 D 50 50 1 1 C +X B 2 -200 0 225 R 50 50 1 1 I +X E 3 100 -200 100 U 50 50 1 1 E +ENDDRAW +ENDDEF +# +#End Library diff --git a/Examples/Differentiator/lm_741.cir b/Examples/Differentiator/lm_741.cir new file mode 100644 index 00000000..4a5917ea --- /dev/null +++ b/Examples/Differentiator/lm_741.cir @@ -0,0 +1,43 @@ +* C:\Users\malli\eSim\src\SubcircuitLibrary\lm_741\lm_741.cir + +* EESchema Netlist Version 1.1 (Spice format) creation date: 05/25/19 19:37:28 + +* To exclude a component from the Spice Netlist add [Spice_Netlist_Enabled] user FIELD set to: N +* To reorder the component spice node sequence add [Spice_Node_Sequence] user FIELD and define sequence: 2,1,0 + +* Sheet Name: / +Q1 Net-_Q1-Pad1_ Net-_Q1-Pad2_ Net-_Q1-Pad3_ eSim_NPN +Q2 Net-_Q1-Pad1_ Net-_Q2-Pad2_ Net-_Q2-Pad3_ eSim_NPN +Q6 Net-_Q3-Pad2_ Net-_Q13-Pad1_ Net-_Q1-Pad3_ eSim_PNP +Q5 Net-_C1-Pad2_ Net-_Q13-Pad1_ Net-_Q2-Pad3_ eSim_PNP +Q3 Net-_Q10-Pad3_ Net-_Q3-Pad2_ Net-_Q3-Pad3_ eSim_NPN +Q4 Net-_Q1-Pad1_ Net-_Q1-Pad1_ Net-_Q10-Pad3_ eSim_PNP +Q9 Net-_Q13-Pad1_ Net-_Q1-Pad1_ Net-_Q10-Pad3_ eSim_PNP +Q8 Net-_C1-Pad2_ Net-_Q3-Pad3_ Net-_Q8-Pad3_ eSim_NPN +Q7 Net-_Q3-Pad2_ Net-_Q3-Pad3_ Net-_Q7-Pad3_ eSim_NPN +R1 Net-_Q7-Pad3_ Net-_Q12-Pad3_ 1k +R2 Net-_Q3-Pad3_ Net-_Q12-Pad3_ 50k +R3 Net-_Q8-Pad3_ Net-_Q12-Pad3_ 1k +Q12 Net-_Q12-Pad1_ Net-_Q12-Pad1_ Net-_Q12-Pad3_ eSim_NPN +Q13 Net-_Q13-Pad1_ Net-_Q12-Pad1_ Net-_Q13-Pad3_ eSim_NPN +R4 Net-_Q13-Pad3_ Net-_Q12-Pad3_ 5k +R11 Net-_Q10-Pad1_ Net-_Q12-Pad1_ 39k +Q10 Net-_Q10-Pad1_ Net-_Q10-Pad1_ Net-_Q10-Pad3_ eSim_PNP +Q11 Net-_C1-Pad1_ Net-_Q10-Pad1_ Net-_Q10-Pad3_ eSim_PNP +Q14 Net-_C1-Pad1_ Net-_Q14-Pad2_ Net-_Q14-Pad3_ eSim_NPN +R8 Net-_C1-Pad1_ Net-_Q14-Pad2_ 4.5k +R7 Net-_Q14-Pad3_ Net-_Q14-Pad2_ 7.5k +C1 Net-_C1-Pad1_ Net-_C1-Pad2_ 30p +Q16 Net-_Q14-Pad3_ Net-_C1-Pad2_ Net-_Q15-Pad2_ eSim_NPN +Q15 Net-_Q14-Pad3_ Net-_Q15-Pad2_ Net-_Q15-Pad3_ eSim_NPN +R5 Net-_Q15-Pad2_ Net-_Q12-Pad3_ 50k +R6 Net-_Q15-Pad3_ Net-_Q12-Pad3_ 50 +Q17 Net-_C1-Pad2_ Net-_Q15-Pad3_ Net-_Q12-Pad3_ eSim_NPN +Q18 Net-_Q10-Pad3_ Net-_C1-Pad1_ Net-_Q18-Pad3_ eSim_NPN +Q20 Net-_C1-Pad1_ Net-_Q18-Pad3_ Net-_Q20-Pad3_ eSim_NPN +R9 Net-_Q18-Pad3_ Net-_Q20-Pad3_ 25 +R10 Net-_Q20-Pad3_ Net-_Q19-Pad3_ 50 +Q19 Net-_Q12-Pad3_ Net-_Q14-Pad3_ Net-_Q19-Pad3_ eSim_PNP +U1 Net-_Q7-Pad3_ Net-_Q2-Pad2_ Net-_Q1-Pad2_ Net-_Q12-Pad3_ Net-_Q8-Pad3_ Net-_Q20-Pad3_ Net-_Q10-Pad3_ ? PORT + +.end diff --git a/Examples/Differentiator/lm_741.cir.out b/Examples/Differentiator/lm_741.cir.out new file mode 100644 index 00000000..a00bd86a --- /dev/null +++ b/Examples/Differentiator/lm_741.cir.out @@ -0,0 +1,46 @@ +* c:\users\malli\esim\src\subcircuitlibrary\lm_741\lm_741.cir + +.include npn_1.lib +.include pnp_1.lib +q1 net-_q1-pad1_ net-_q1-pad2_ net-_q1-pad3_ npn_1 +q2 net-_q1-pad1_ net-_q2-pad2_ net-_q2-pad3_ npn_1 +q6 net-_q3-pad2_ net-_q13-pad1_ net-_q1-pad3_ pnp_1 +q5 net-_c1-pad2_ net-_q13-pad1_ net-_q2-pad3_ pnp_1 +q3 net-_q10-pad3_ net-_q3-pad2_ net-_q3-pad3_ npn_1 +q4 net-_q1-pad1_ net-_q1-pad1_ net-_q10-pad3_ pnp_1 +q9 net-_q13-pad1_ net-_q1-pad1_ net-_q10-pad3_ pnp_1 +q8 net-_c1-pad2_ net-_q3-pad3_ net-_q8-pad3_ npn_1 +q7 net-_q3-pad2_ net-_q3-pad3_ net-_q7-pad3_ npn_1 +r1 net-_q7-pad3_ net-_q12-pad3_ 1k +r2 net-_q3-pad3_ net-_q12-pad3_ 50k +r3 net-_q8-pad3_ net-_q12-pad3_ 1k +q12 net-_q12-pad1_ net-_q12-pad1_ net-_q12-pad3_ npn_1 +q13 net-_q13-pad1_ net-_q12-pad1_ net-_q13-pad3_ npn_1 +r4 net-_q13-pad3_ net-_q12-pad3_ 5k +r11 net-_q10-pad1_ net-_q12-pad1_ 39k +q10 net-_q10-pad1_ net-_q10-pad1_ net-_q10-pad3_ pnp_1 +q11 net-_c1-pad1_ net-_q10-pad1_ net-_q10-pad3_ pnp_1 +q14 net-_c1-pad1_ net-_q14-pad2_ net-_q14-pad3_ npn_1 +r8 net-_c1-pad1_ net-_q14-pad2_ 4.5k +r7 net-_q14-pad3_ net-_q14-pad2_ 7.5k +c1 net-_c1-pad1_ net-_c1-pad2_ 30p +q16 net-_q14-pad3_ net-_c1-pad2_ net-_q15-pad2_ npn_1 +q15 net-_q14-pad3_ net-_q15-pad2_ net-_q15-pad3_ npn_1 +r5 net-_q15-pad2_ net-_q12-pad3_ 50k +r6 net-_q15-pad3_ net-_q12-pad3_ 50 +q17 net-_c1-pad2_ net-_q15-pad3_ net-_q12-pad3_ npn_1 +q18 net-_q10-pad3_ net-_c1-pad1_ net-_q18-pad3_ npn_1 +q20 net-_c1-pad1_ net-_q18-pad3_ net-_q20-pad3_ npn_1 +r9 net-_q18-pad3_ net-_q20-pad3_ 25 +r10 net-_q20-pad3_ net-_q19-pad3_ 50 +q19 net-_q12-pad3_ net-_q14-pad3_ net-_q19-pad3_ pnp_1 +* u1 net-_q7-pad3_ net-_q2-pad2_ net-_q1-pad2_ net-_q12-pad3_ net-_q8-pad3_ net-_q20-pad3_ net-_q10-pad3_ ? port +.tran 0e-00 0e-00 0e-00 + +* Control Statements +.control +run +print allv > plot_data_v.txt +print alli > plot_data_i.txt +.endc +.end diff --git a/Examples/Differentiator/lm_741.pro b/Examples/Differentiator/lm_741.pro new file mode 100644 index 00000000..ea47a221 --- /dev/null +++ b/Examples/Differentiator/lm_741.pro @@ -0,0 +1,45 @@ +update=Fri Mar 20 14:12:34 2020 +version=1 +last_client=eeschema +[general] +version=1 +RootSch= +BoardNm= +[pcbnew] +version=1 +LastNetListRead= +UseCmpFile=1 +PadDrill=0.600000000000 +PadDrillOvalY=0.600000000000 +PadSizeH=1.500000000000 +PadSizeV=1.500000000000 +PcbTextSizeV=1.500000000000 +PcbTextSizeH=1.500000000000 +PcbTextThickness=0.300000000000 +ModuleTextSizeV=1.000000000000 +ModuleTextSizeH=1.000000000000 +ModuleTextSizeThickness=0.150000000000 +SolderMaskClearance=0.000000000000 +SolderMaskMinWidth=0.000000000000 +DrawSegmentWidth=0.200000000000 +BoardOutlineThickness=0.100000000000 +ModuleOutlineThickness=0.150000000000 +[cvpcb] +version=1 +NetIExt=net +[eeschema] +version=1 +LibDir= +[eeschema/libraries] +LibName1=lm_741-rescue +LibName2=power +LibName3=eSim_Analog +LibName4=eSim_Devices +LibName5=eSim_Digital +LibName6=eSim_Hybrid +LibName7=eSim_Miscellaneous +LibName8=eSim_Plot +LibName9=eSim_Power +LibName10=eSim_User +LibName11=eSim_Sources +LibName12=eSim_Subckt diff --git a/Examples/Differentiator/lm_741.sch b/Examples/Differentiator/lm_741.sch new file mode 100644 index 00000000..698b434e --- /dev/null +++ b/Examples/Differentiator/lm_741.sch @@ -0,0 +1,697 @@ +EESchema Schematic File Version 2 +LIBS:lm_741-rescue +LIBS:power +LIBS:eSim_Analog +LIBS:eSim_Devices +LIBS:eSim_Digital +LIBS:eSim_Hybrid +LIBS:eSim_Miscellaneous +LIBS:eSim_Plot +LIBS:eSim_Power +LIBS:eSim_User +LIBS:eSim_Sources +LIBS:eSim_Subckt +LIBS:lm_741-cache +EELAYER 25 0 +EELAYER END +$Descr A4 11693 8268 +encoding utf-8 +Sheet 1 1 +Title "" +Date "" +Rev "" +Comp "" +Comment1 "" +Comment2 "" +Comment3 "" +Comment4 "" +$EndDescr +$Comp +L eSim_NPN-RESCUE-lm_741 Q1 +U 1 1 5CE90A7B +P 2650 2700 +F 0 "Q1" H 2550 2750 50 0000 R CNN +F 1 "eSim_NPN" H 2600 2850 50 0000 R CNN +F 2 "" H 2850 2800 29 0000 C CNN +F 3 "" H 2650 2700 60 0000 C CNN + 1 2650 2700 + 1 0 0 -1 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q2 +U 1 1 5CE90A7C +P 4300 2700 +F 0 "Q2" H 4200 2750 50 0000 R CNN +F 1 "eSim_NPN" H 4250 2850 50 0000 R CNN +F 2 "" H 4500 2800 29 0000 C CNN +F 3 "" H 4300 2700 60 0000 C CNN + 1 4300 2700 + -1 0 0 -1 +$EndComp +$Comp +L eSim_PNP-RESCUE-lm_741 Q6 +U 1 1 5CE90A7D +P 3000 3200 +F 0 "Q6" H 2900 3250 50 0000 R CNN +F 1 "eSim_PNP" H 2950 3350 50 0000 R CNN +F 2 "" H 3200 3300 29 0000 C CNN +F 3 "" H 3000 3200 60 0000 C CNN + 1 3000 3200 + -1 0 0 1 +$EndComp +$Comp +L eSim_PNP-RESCUE-lm_741 Q5 +U 1 1 5CE90A7E +P 3950 3200 +F 0 "Q5" H 3850 3250 50 0000 R CNN +F 1 "eSim_PNP" H 3900 3350 50 0000 R CNN +F 2 "" H 4150 3300 29 0000 C CNN +F 3 "" H 3950 3200 60 0000 C CNN + 1 3950 3200 + 1 0 0 1 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q3 +U 1 1 5CE90A7F +P 3300 4000 +F 0 "Q3" H 3200 4050 50 0000 R CNN +F 1 "eSim_NPN" H 3250 4150 50 0000 R CNN +F 2 "" H 3500 4100 29 0000 C CNN +F 3 "" H 3300 4000 60 0000 C CNN + 1 3300 4000 + 1 0 0 -1 +$EndComp +$Comp +L eSim_PNP-RESCUE-lm_741 Q4 +U 1 1 5CE90A80 +P 3850 2000 +F 0 "Q4" H 3750 2050 50 0000 R CNN +F 1 "eSim_PNP" H 3800 2150 50 0000 R CNN +F 2 "" H 4050 2100 29 0000 C CNN +F 3 "" H 3850 2000 60 0000 C CNN + 1 3850 2000 + -1 0 0 1 +$EndComp +$Comp +L eSim_PNP-RESCUE-lm_741 Q9 +U 1 1 5CE90A81 +P 5200 2000 +F 0 "Q9" H 5100 2050 50 0000 R CNN +F 1 "eSim_PNP" H 5150 2150 50 0000 R CNN +F 2 "" H 5400 2100 29 0000 C CNN +F 3 "" H 5200 2000 60 0000 C CNN + 1 5200 2000 + 1 0 0 1 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q8 +U 1 1 5CE90A82 +P 3950 4600 +F 0 "Q8" H 3850 4650 50 0000 R CNN +F 1 "eSim_NPN" H 3900 4750 50 0000 R CNN +F 2 "" H 4150 4700 29 0000 C CNN +F 3 "" H 3950 4600 60 0000 C CNN + 1 3950 4600 + 1 0 0 -1 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q7 +U 1 1 5CE90A83 +P 3000 4600 +F 0 "Q7" H 2900 4650 50 0000 R CNN +F 1 "eSim_NPN" H 2950 4750 50 0000 R CNN +F 2 "" H 3200 4700 29 0000 C CNN +F 3 "" H 3000 4600 60 0000 C CNN + 1 3000 4600 + -1 0 0 -1 +$EndComp +$Comp +L eSim_R R1 +U 1 1 5CE90A84 +P 2850 5200 +F 0 "R1" H 2900 5330 50 0000 C CNN +F 1 "1k" H 2900 5250 50 0000 C CNN +F 2 "" H 2900 5180 30 0000 C CNN +F 3 "" V 2900 5250 30 0000 C CNN + 1 2850 5200 + 0 1 1 0 +$EndComp +$Comp +L eSim_R R2 +U 1 1 5CE90A85 +P 3550 5200 +F 0 "R2" H 3600 5330 50 0000 C CNN +F 1 "50k" H 3600 5250 50 0000 C CNN +F 2 "" H 3600 5180 30 0000 C CNN +F 3 "" V 3600 5250 30 0000 C CNN + 1 3550 5200 + 0 1 1 0 +$EndComp +$Comp +L eSim_R R3 +U 1 1 5CE90A86 +P 4000 5200 +F 0 "R3" H 4050 5330 50 0000 C CNN +F 1 "1k" H 4050 5250 50 0000 C CNN +F 2 "" H 4050 5180 30 0000 C CNN +F 3 "" V 4050 5250 30 0000 C CNN + 1 4000 5200 + 0 1 1 0 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q12 +U 1 1 5CE90A87 +P 6300 4700 +F 0 "Q12" H 6200 4750 50 0000 R CNN +F 1 "eSim_NPN" H 6250 4850 50 0000 R CNN +F 2 "" H 6500 4800 29 0000 C CNN +F 3 "" H 6300 4700 60 0000 C CNN + 1 6300 4700 + 1 0 0 -1 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q13 +U 1 1 5CE90A88 +P 5400 4700 +F 0 "Q13" H 5300 4750 50 0000 R CNN +F 1 "eSim_NPN" H 5350 4850 50 0000 R CNN +F 2 "" H 5600 4800 29 0000 C CNN +F 3 "" H 5400 4700 60 0000 C CNN + 1 5400 4700 + -1 0 0 -1 +$EndComp +$Comp +L eSim_R R4 +U 1 1 5CE90A89 +P 5250 5200 +F 0 "R4" H 5300 5330 50 0000 C CNN +F 1 "5k" H 5300 5250 50 0000 C CNN +F 2 "" H 5300 5180 30 0000 C CNN +F 3 "" V 5300 5250 30 0000 C CNN + 1 5250 5200 + 0 1 1 0 +$EndComp +$Comp +L eSim_R R11 +U 1 1 5CE90A8A +P 6350 2750 +F 0 "R11" H 6400 2880 50 0000 C CNN +F 1 "39k" H 6400 2800 50 0000 C CNN +F 2 "" H 6400 2730 30 0000 C CNN +F 3 "" V 6400 2800 30 0000 C CNN + 1 6350 2750 + 0 1 1 0 +$EndComp +$Comp +L eSim_PNP-RESCUE-lm_741 Q10 +U 1 1 5CE90A8B +P 6500 1950 +F 0 "Q10" H 6400 2000 50 0000 R CNN +F 1 "eSim_PNP" H 6450 2100 50 0000 R CNN +F 2 "" H 6700 2050 29 0000 C CNN +F 3 "" H 6500 1950 60 0000 C CNN + 1 6500 1950 + -1 0 0 1 +$EndComp +$Comp +L eSim_PNP-RESCUE-lm_741 Q11 +U 1 1 5CE90A8C +P 7500 1950 +F 0 "Q11" H 7400 2000 50 0000 R CNN +F 1 "eSim_PNP" H 7450 2100 50 0000 R CNN +F 2 "" H 7700 2050 29 0000 C CNN +F 3 "" H 7500 1950 60 0000 C CNN + 1 7500 1950 + 1 0 0 1 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q14 +U 1 1 5CE90A8D +P 7500 3050 +F 0 "Q14" H 7400 3100 50 0000 R CNN +F 1 "eSim_NPN" H 7450 3200 50 0000 R CNN +F 2 "" H 7700 3150 29 0000 C CNN +F 3 "" H 7500 3050 60 0000 C CNN + 1 7500 3050 + 1 0 0 -1 +$EndComp +$Comp +L eSim_R R8 +U 1 1 5CE90A8E +P 7300 2600 +F 0 "R8" H 7350 2730 50 0000 C CNN +F 1 "4.5k" H 7350 2650 50 0000 C CNN +F 2 "" H 7350 2580 30 0000 C CNN +F 3 "" V 7350 2650 30 0000 C CNN + 1 7300 2600 + -1 0 0 1 +$EndComp +$Comp +L eSim_R R7 +U 1 1 5CE90A8F +P 7300 3400 +F 0 "R7" H 7350 3530 50 0000 C CNN +F 1 "7.5k" H 7350 3450 50 0000 C CNN +F 2 "" H 7350 3380 30 0000 C CNN +F 3 "" V 7350 3450 30 0000 C CNN + 1 7300 3400 + -1 0 0 1 +$EndComp +$Comp +L eSim_C C1 +U 1 1 5CE90A90 +P 6600 3200 +F 0 "C1" H 6625 3300 50 0000 L CNN +F 1 "30p" H 6625 3100 50 0000 L CNN +F 2 "" H 6638 3050 30 0000 C CNN +F 3 "" H 6600 3200 60 0000 C CNN + 1 6600 3200 + 1 0 0 -1 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q16 +U 1 1 5CE90A91 +P 7050 3950 +F 0 "Q16" H 6950 4000 50 0000 R CNN +F 1 "eSim_NPN" H 7000 4100 50 0000 R CNN +F 2 "" H 7250 4050 29 0000 C CNN +F 3 "" H 7050 3950 60 0000 C CNN + 1 7050 3950 + 1 0 0 -1 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q15 +U 1 1 5CE90A92 +P 7500 4300 +F 0 "Q15" H 7400 4350 50 0000 R CNN +F 1 "eSim_NPN" H 7450 4450 50 0000 R CNN +F 2 "" H 7700 4400 29 0000 C CNN +F 3 "" H 7500 4300 60 0000 C CNN + 1 7500 4300 + 1 0 0 -1 +$EndComp +$Comp +L eSim_R R5 +U 1 1 5CE90A93 +P 7100 5050 +F 0 "R5" H 7150 5180 50 0000 C CNN +F 1 "50k" H 7150 5100 50 0000 C CNN +F 2 "" H 7150 5030 30 0000 C CNN +F 3 "" V 7150 5100 30 0000 C CNN + 1 7100 5050 + 0 1 1 0 +$EndComp +$Comp +L eSim_R R6 +U 1 1 5CE90A94 +P 7550 5050 +F 0 "R6" H 7600 5180 50 0000 C CNN +F 1 "50" H 7600 5100 50 0000 C CNN +F 2 "" H 7600 5030 30 0000 C CNN +F 3 "" V 7600 5100 30 0000 C CNN + 1 7550 5050 + 0 1 1 0 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q17 +U 1 1 5CE90A95 +P 6800 4700 +F 0 "Q17" H 6700 4750 50 0000 R CNN +F 1 "eSim_NPN" H 6750 4850 50 0000 R CNN +F 2 "" H 7000 4800 29 0000 C CNN +F 3 "" H 6800 4700 60 0000 C CNN + 1 6800 4700 + -1 0 0 -1 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q18 +U 1 1 5CE90A96 +P 8800 2300 +F 0 "Q18" H 8700 2350 50 0000 R CNN +F 1 "eSim_NPN" H 8750 2450 50 0000 R CNN +F 2 "" H 9000 2400 29 0000 C CNN +F 3 "" H 8800 2300 60 0000 C CNN + 1 8800 2300 + 1 0 0 -1 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q20 +U 1 1 5CE90A97 +P 8400 2750 +F 0 "Q20" H 8300 2800 50 0000 R CNN +F 1 "eSim_NPN" H 8350 2900 50 0000 R CNN +F 2 "" H 8600 2850 29 0000 C CNN +F 3 "" H 8400 2750 60 0000 C CNN + 1 8400 2750 + -1 0 0 -1 +$EndComp +$Comp +L eSim_R R9 +U 1 1 5CE90A98 +P 8850 3000 +F 0 "R9" H 8900 3130 50 0000 C CNN +F 1 "25" H 8900 3050 50 0000 C CNN +F 2 "" H 8900 2980 30 0000 C CNN +F 3 "" V 8900 3050 30 0000 C CNN + 1 8850 3000 + 0 1 1 0 +$EndComp +$Comp +L eSim_R R10 +U 1 1 5CE90A99 +P 8850 3750 +F 0 "R10" H 8900 3880 50 0000 C CNN +F 1 "50" H 8900 3800 50 0000 C CNN +F 2 "" H 8900 3730 30 0000 C CNN +F 3 "" V 8900 3800 30 0000 C CNN + 1 8850 3750 + 0 1 1 0 +$EndComp +$Comp +L eSim_PNP-RESCUE-lm_741 Q19 +U 1 1 5CE90A9A +P 8800 4600 +F 0 "Q19" H 8700 4650 50 0000 R CNN +F 1 "eSim_PNP" H 8750 4750 50 0000 R CNN +F 2 "" H 9000 4700 29 0000 C CNN +F 3 "" H 8800 4600 60 0000 C CNN + 1 8800 4600 + 1 0 0 1 +$EndComp +$Comp +L PORT U1 +U 3 1 5CE90A9B +P 1900 1200 +F 0 "U1" H 1950 1300 30 0000 C CNN +F 1 "PORT" H 1900 1200 30 0000 C CNN +F 2 "" H 1900 1200 60 0000 C CNN +F 3 "" H 1900 1200 60 0000 C CNN + 3 1900 1200 + 1 0 0 -1 +$EndComp +$Comp +L PORT U1 +U 2 1 5CE90A9C +P 4500 1050 +F 0 "U1" H 4550 1150 30 0000 C CNN +F 1 "PORT" H 4500 1050 30 0000 C CNN +F 2 "" H 4500 1050 60 0000 C CNN +F 3 "" H 4500 1050 60 0000 C CNN + 2 4500 1050 + 1 0 0 -1 +$EndComp +$Comp +L PORT U1 +U 7 1 5CE90A9D +P 9750 1650 +F 0 "U1" H 9800 1750 30 0000 C CNN +F 1 "PORT" H 9750 1650 30 0000 C CNN +F 2 "" H 9750 1650 60 0000 C CNN +F 3 "" H 9750 1650 60 0000 C CNN + 7 9750 1650 + -1 0 0 1 +$EndComp +$Comp +L PORT U1 +U 6 1 5CE90A9E +P 9750 3500 +F 0 "U1" H 9800 3600 30 0000 C CNN +F 1 "PORT" H 9750 3500 30 0000 C CNN +F 2 "" H 9750 3500 60 0000 C CNN +F 3 "" H 9750 3500 60 0000 C CNN + 6 9750 3500 + -1 0 0 1 +$EndComp +$Comp +L PORT U1 +U 4 1 5CE90A9F +P 9700 5550 +F 0 "U1" H 9750 5650 30 0000 C CNN +F 1 "PORT" H 9700 5550 30 0000 C CNN +F 2 "" H 9700 5550 60 0000 C CNN +F 3 "" H 9700 5550 60 0000 C CNN + 4 9700 5550 + -1 0 0 1 +$EndComp +Wire Wire Line + 3200 3200 3750 3200 +Wire Wire Line + 2750 2900 2750 2950 +Wire Wire Line + 2750 2950 2900 2950 +Wire Wire Line + 2900 2950 2900 3000 +Wire Wire Line + 4200 2900 4200 2950 +Wire Wire Line + 4200 2950 4050 2950 +Wire Wire Line + 4050 2950 4050 3000 +Wire Wire Line + 2900 3400 2900 4400 +Wire Wire Line + 2900 4000 3100 4000 +Wire Wire Line + 4200 2000 4200 2500 +Wire Wire Line + 4200 2350 2750 2350 +Wire Wire Line + 2750 2350 2750 2500 +Wire Wire Line + 5000 2000 4050 2000 +Connection ~ 4200 2350 +Connection ~ 4200 2000 +Wire Wire Line + 3750 2200 3750 2350 +Connection ~ 3750 2350 +Wire Wire Line + 3750 1800 3750 1650 +Wire Wire Line + 3400 1650 7600 1650 +Wire Wire Line + 3400 1650 3400 3800 +Wire Wire Line + 5300 1650 5300 1800 +Connection ~ 3750 1650 +Wire Wire Line + 5300 2200 5300 4500 +Wire Wire Line + 5300 3500 3650 3500 +Wire Wire Line + 3650 3500 3650 3200 +Connection ~ 3650 3200 +Connection ~ 2900 4000 +Wire Wire Line + 4050 4400 4050 3400 +Wire Wire Line + 3400 4200 3400 4600 +Wire Wire Line + 3200 4600 3750 4600 +Connection ~ 3400 4600 +Wire Wire Line + 4050 5100 4050 4800 +Wire Wire Line + 3600 5100 3600 4600 +Connection ~ 3600 4600 +Wire Wire Line + 2900 5100 2900 4800 +Wire Wire Line + 2900 5400 2900 5550 +Wire Wire Line + 2900 5550 9450 5550 +Wire Wire Line + 4050 5550 4050 5400 +Wire Wire Line + 3600 5400 3600 5550 +Connection ~ 3600 5550 +Wire Wire Line + 6100 4700 5600 4700 +Wire Wire Line + 6400 2950 6400 4500 +Wire Wire Line + 6400 4250 5900 4250 +Wire Wire Line + 5900 4250 5900 4700 +Connection ~ 5900 4700 +Wire Wire Line + 5300 5100 5300 4900 +Wire Wire Line + 5300 5550 5300 5400 +Connection ~ 4050 5550 +Wire Wire Line + 6400 5550 6400 4900 +Connection ~ 5300 5550 +Connection ~ 5300 3500 +Wire Wire Line + 6400 1650 6400 1750 +Connection ~ 5300 1650 +Wire Wire Line + 6400 2150 6400 2650 +Connection ~ 6400 4250 +Wire Wire Line + 6700 1950 7300 1950 +Wire Wire Line + 7000 1950 7000 2250 +Wire Wire Line + 7000 2250 6400 2250 +Connection ~ 6400 2250 +Wire Wire Line + 7600 1650 7600 1750 +Connection ~ 6400 1650 +Connection ~ 7000 1950 +Wire Wire Line + 7600 3250 7600 4100 +Wire Wire Line + 7600 3450 7400 3450 +Wire Wire Line + 6900 3450 7100 3450 +Wire Wire Line + 6900 2650 6900 3450 +Wire Wire Line + 6900 3050 7300 3050 +Wire Wire Line + 7600 2150 7600 2850 +Wire Wire Line + 7600 2650 7400 2650 +Wire Wire Line + 7100 2650 6900 2650 +Connection ~ 6900 3050 +Connection ~ 7600 2650 +Wire Wire Line + 7300 4300 7150 4300 +Wire Wire Line + 7150 4150 7150 4950 +Connection ~ 7600 3450 +Wire Wire Line + 7600 3700 7150 3700 +Wire Wire Line + 7150 3700 7150 3750 +Connection ~ 7600 3700 +Wire Wire Line + 6600 3050 6600 2450 +Wire Wire Line + 6600 2450 7600 2450 +Connection ~ 7600 2450 +Wire Wire Line + 6600 3350 6600 3950 +Wire Wire Line + 4050 3950 6850 3950 +Wire Wire Line + 6700 3950 6700 4500 +Connection ~ 6700 3950 +Wire Wire Line + 6700 4900 6700 5550 +Connection ~ 6400 5550 +Connection ~ 7150 4300 +Wire Wire Line + 7600 4950 7600 4500 +Wire Wire Line + 7000 4700 7600 4700 +Connection ~ 7600 4700 +Wire Wire Line + 7600 5550 7600 5250 +Connection ~ 6700 5550 +Wire Wire Line + 7150 5250 7150 5550 +Connection ~ 7150 5550 +Wire Wire Line + 7600 2300 8600 2300 +Wire Wire Line + 8300 2300 8300 2550 +Connection ~ 8300 2300 +Connection ~ 7600 2300 +Wire Wire Line + 8900 2100 8900 1650 +Wire Wire Line + 7550 1650 9500 1650 +Connection ~ 7550 1650 +Connection ~ 8900 1650 +Wire Wire Line + 8900 2500 8900 2900 +Wire Wire Line + 8900 2750 8600 2750 +Connection ~ 8900 2750 +Wire Wire Line + 8300 2950 8300 3350 +Wire Wire Line + 8300 3350 8900 3350 +Wire Wire Line + 8900 3200 8900 3650 +Wire Wire Line + 8900 4400 8900 3950 +Connection ~ 8900 3350 +Wire Wire Line + 8900 3500 9500 3500 +Connection ~ 8900 3500 +Wire Wire Line + 8900 5550 8900 4800 +Connection ~ 7600 5550 +Connection ~ 8900 5550 +Wire Wire Line + 8600 4600 8100 4600 +Wire Wire Line + 8100 4600 8100 3850 +Wire Wire Line + 8100 3850 7600 3850 +Connection ~ 7600 3850 +Connection ~ 4050 3950 +Connection ~ 6600 3950 +Wire Wire Line + 4500 2700 4750 2700 +Wire Wire Line + 4750 2700 4750 1050 +Wire Wire Line + 2450 2700 2150 2700 +Wire Wire Line + 2150 2700 2150 1200 +$Comp +L PORT U1 +U 5 1 5CE90AA0 +P 1850 4850 +F 0 "U1" H 1900 4950 30 0000 C CNN +F 1 "PORT" H 1850 4850 30 0000 C CNN +F 2 "" H 1850 4850 60 0000 C CNN +F 3 "" H 1850 4850 60 0000 C CNN + 5 1850 4850 + 1 0 0 -1 +$EndComp +$Comp +L PORT U1 +U 1 1 5CE90AA1 +P 1850 5100 +F 0 "U1" H 1900 5200 30 0000 C CNN +F 1 "PORT" H 1850 5100 30 0000 C CNN +F 2 "" H 1850 5100 60 0000 C CNN +F 3 "" H 1850 5100 60 0000 C CNN + 1 1850 5100 + 1 0 0 -1 +$EndComp +Wire Wire Line + 2100 5100 2700 5100 +Wire Wire Line + 2700 5100 2700 5050 +Wire Wire Line + 2700 5050 2900 5050 +Connection ~ 2900 5050 +Wire Wire Line + 2100 4850 2550 4850 +Wire Wire Line + 2550 4850 2550 4900 +Wire Wire Line + 2550 4900 4050 4900 +Connection ~ 4050 4900 +$Comp +L PORT U1 +U 8 1 5CE9368F +P 9600 6050 +F 0 "U1" H 9650 6150 30 0000 C CNN +F 1 "PORT" H 9600 6050 30 0000 C CNN +F 2 "" H 9600 6050 60 0000 C CNN +F 3 "" H 9600 6050 60 0000 C CNN + 8 9600 6050 + -1 0 0 1 +$EndComp +Wire Wire Line + 9350 6050 9100 6050 +NoConn ~ 9100 6050 +$EndSCHEMATC diff --git a/Examples/Differentiator/lm_741.sub b/Examples/Differentiator/lm_741.sub new file mode 100644 index 00000000..fa8d27b1 --- /dev/null +++ b/Examples/Differentiator/lm_741.sub @@ -0,0 +1,40 @@ +* Subcircuit lm_741 +.subckt lm_741 net-_q7-pad3_ net-_q2-pad2_ net-_q1-pad2_ net-_q12-pad3_ net-_q8-pad3_ net-_q20-pad3_ net-_q10-pad3_ ? +* c:\users\malli\esim\src\subcircuitlibrary\lm_741\lm_741.cir +.include npn_1.lib +.include pnp_1.lib +q1 net-_q1-pad1_ net-_q1-pad2_ net-_q1-pad3_ npn_1 +q2 net-_q1-pad1_ net-_q2-pad2_ net-_q2-pad3_ npn_1 +q6 net-_q3-pad2_ net-_q13-pad1_ net-_q1-pad3_ pnp_1 +q5 net-_c1-pad2_ net-_q13-pad1_ net-_q2-pad3_ pnp_1 +q3 net-_q10-pad3_ net-_q3-pad2_ net-_q3-pad3_ npn_1 +q4 net-_q1-pad1_ net-_q1-pad1_ net-_q10-pad3_ pnp_1 +q9 net-_q13-pad1_ net-_q1-pad1_ net-_q10-pad3_ pnp_1 +q8 net-_c1-pad2_ net-_q3-pad3_ net-_q8-pad3_ npn_1 +q7 net-_q3-pad2_ net-_q3-pad3_ net-_q7-pad3_ npn_1 +r1 net-_q7-pad3_ net-_q12-pad3_ 1k +r2 net-_q3-pad3_ net-_q12-pad3_ 50k +r3 net-_q8-pad3_ net-_q12-pad3_ 1k +q12 net-_q12-pad1_ net-_q12-pad1_ net-_q12-pad3_ npn_1 +q13 net-_q13-pad1_ net-_q12-pad1_ net-_q13-pad3_ npn_1 +r4 net-_q13-pad3_ net-_q12-pad3_ 5k +r11 net-_q10-pad1_ net-_q12-pad1_ 39k +q10 net-_q10-pad1_ net-_q10-pad1_ net-_q10-pad3_ pnp_1 +q11 net-_c1-pad1_ net-_q10-pad1_ net-_q10-pad3_ pnp_1 +q14 net-_c1-pad1_ net-_q14-pad2_ net-_q14-pad3_ npn_1 +r8 net-_c1-pad1_ net-_q14-pad2_ 4.5k +r7 net-_q14-pad3_ net-_q14-pad2_ 7.5k +c1 net-_c1-pad1_ net-_c1-pad2_ 30p +q16 net-_q14-pad3_ net-_c1-pad2_ net-_q15-pad2_ npn_1 +q15 net-_q14-pad3_ net-_q15-pad2_ net-_q15-pad3_ npn_1 +r5 net-_q15-pad2_ net-_q12-pad3_ 50k +r6 net-_q15-pad3_ net-_q12-pad3_ 50 +q17 net-_c1-pad2_ net-_q15-pad3_ net-_q12-pad3_ npn_1 +q18 net-_q10-pad3_ net-_c1-pad1_ net-_q18-pad3_ npn_1 +q20 net-_c1-pad1_ net-_q18-pad3_ net-_q20-pad3_ npn_1 +r9 net-_q18-pad3_ net-_q20-pad3_ 25 +r10 net-_q20-pad3_ net-_q19-pad3_ 50 +q19 net-_q12-pad3_ net-_q14-pad3_ net-_q19-pad3_ pnp_1 +* Control Statements + +.ends lm_741
\ No newline at end of file diff --git a/Examples/Differentiator/lm_741_Previous_Values.xml b/Examples/Differentiator/lm_741_Previous_Values.xml new file mode 100644 index 00000000..b61322bb --- /dev/null +++ b/Examples/Differentiator/lm_741_Previous_Values.xml @@ -0,0 +1 @@ +<KicadtoNgspice><source /><model /><devicemodel><q1><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q1><q20><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q20><q3><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q3><q2><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q2><q5><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/pnp_1.lib</field></q5><q4><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/pnp_1.lib</field></q4><q7><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q7><q6><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/pnp_1.lib</field></q6><q9><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/pnp_1.lib</field></q9><q8><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q8><q15><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q15><q14><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q14><q17><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q17><q16><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q16><q11><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/pnp_1.lib</field></q11><q10><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/pnp_1.lib</field></q10><q13><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q13><q12><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q12><q19><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/pnp_1.lib</field></q19><q18><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q18></devicemodel><subcircuit /><analysis><ac><field1 name="Lin">true</field1><field2 name="Dec">false</field2><field3 name="Oct">false</field3><field4 name="Start Frequency" /><field5 name="Stop Frequency" /><field6 name="No. of points" /><field7 name="Start Fre Combo">Hz</field7><field8 name="Stop Fre Combo">Hz</field8></ac><dc><field1 name="Source 1" /><field2 name="Start" /><field3 name="Increment" /><field4 name="Stop" /><field5 name="Operating Point">0</field5><field6 name="Start Combo">Volts or Amperes</field6><field7 name="Increment Combo">Volts or Amperes</field7><field8 name="Stop Combo">Volts or Amperes</field8><field9 name="Source 2" /><field10 name="Start" /><field11 name="Increment" /><field12 name="Stop" /><field13 name="Start Combo">Volts or Amperes</field13><field14 name="Increment Combo">Volts or Amperes</field14><field15 name="Stop Combo">Volts or Amperes</field15></dc><tran><field1 name="Start Time" /><field2 name="Step Time" /><field3 name="Stop Time" /><field4 name="Start Combo">Sec</field4><field5 name="Step Combo">Sec</field5><field6 name="Stop Combo">Sec</field6></tran></analysis></KicadtoNgspice>
\ No newline at end of file diff --git a/Examples/Differentiator/npn_1.lib b/Examples/Differentiator/npn_1.lib new file mode 100644 index 00000000..a1818ed8 --- /dev/null +++ b/Examples/Differentiator/npn_1.lib @@ -0,0 +1,29 @@ +.model npn_1 NPN( ++ Vtf=1.7 ++ Cjc=0.5p ++ Nc=2 ++ Tr=46.91n ++ Ne=1.307 ++ Cje=0.5p ++ Isc=0 ++ Xtb=1.5 ++ Rb=500 ++ Rc=1 ++ Tf=411.1p ++ Xti=3 ++ Ikr=0 ++ Bf=125 ++ Fc=.5 ++ Ise=14.34f ++ Br=6.092 ++ Ikf=.2847 ++ Mje=.377 ++ Mjc=.3416 ++ Vaf=74.03 ++ Vjc=.75 ++ Vje=.75 ++ Xtf=3 ++ Itf=.6 ++ Is=14.34f ++ Eg=1.11 +)
\ No newline at end of file diff --git a/Examples/Differentiator/pnp_1.lib b/Examples/Differentiator/pnp_1.lib new file mode 100644 index 00000000..a4ee06da --- /dev/null +++ b/Examples/Differentiator/pnp_1.lib @@ -0,0 +1,29 @@ +.model pnp_1 PNP( ++ Vtf=1.7 ++ Cjc=1.5p ++ Nc=2 ++ Tr=46.91n ++ Ne=1.307 ++ Cje=0.3p ++ Isc=0 ++ Xtb=1.5 ++ Rb=250 ++ Rc=1 ++ Tf=411.1p ++ Xti=3 ++ Ikr=0 ++ Bf=25 ++ Fc=.5 ++ Ise=14.34f ++ Br=6.092 ++ Ikf=.2847 ++ Mje=.377 ++ Mjc=.3416 ++ Vaf=74.03 ++ Vjc=.75 ++ Vje=.75 ++ Xtf=3 ++ Itf=.6 ++ Is=14.34f ++ Eg=1.11 +)
\ No newline at end of file diff --git a/Examples/Differentiator/ua741.cir b/Examples/Differentiator/ua741.cir deleted file mode 100644 index de797429..00000000 --- a/Examples/Differentiator/ua741.cir +++ /dev/null @@ -1,15 +0,0 @@ -* EESchema Netlist Version 1.1 (Spice format) creation date: Monday 17 December 2012 11:16:58 AM IST - -* To exclude a component from the Spice Netlist add [Spice_Netlist_Enabled] user FIELD set to: N -* To reorder the component spice node sequence add [Spice_Node_Sequence] user FIELD and define sequence: 2,1,0 - -*Sheet Name:/ -U1 6 7 3 PORT -Rout1 3 2 75 -Eout1 2 0 1 0 1 -Cbw1 1 0 31.85e-9 -Rbw1 1 4 0.5e6 -Ein1 4 0 7 6 100e3 -Rin1 7 6 2e6 - -.end diff --git a/Examples/Differentiator/ua741.cir.out b/Examples/Differentiator/ua741.cir.out deleted file mode 100644 index 72e68514..00000000 --- a/Examples/Differentiator/ua741.cir.out +++ /dev/null @@ -1,18 +0,0 @@ -* eeschema netlist version 1.1 (spice format) creation date: monday 17 december 2012 11:16:58 am ist - -* u1 6 7 3 port -rout1 3 2 75 -eout1 2 0 1 0 1 -cbw1 1 0 31.85e-9 -rbw1 1 4 0.5e6 -ein1 4 0 7 6 100e3 -rin1 7 6 2e6 -.ac lin 0 0Hz 0Hz - -* Control Statements -.control -run -print allv > plot_data_v.txt -print alli > plot_data_i.txt -.endc -.end diff --git a/Examples/Differentiator/ua741.pro b/Examples/Differentiator/ua741.pro deleted file mode 100644 index c7b1d67b..00000000 --- a/Examples/Differentiator/ua741.pro +++ /dev/null @@ -1,17 +0,0 @@ -update=Wed Mar 18 14:21:29 2020 -last_client=eeschema -[eeschema] -version=1 -LibDir=/home/yogesh/FreeEDA/library -[eeschema/libraries] -LibName1=power -LibName2=eSim_Devices -LibName3=eSim_User -LibName4=eSim_Subckt -LibName5=eSim_Sources -LibName6=eSim_Power -LibName7=eSim_Plot -LibName8=eSim_Miscellaneous -LibName9=eSim_Hybrid -LibName10=eSim_Digital -LibName11=eSim_Analog diff --git a/Examples/Differentiator/ua741.sch b/Examples/Differentiator/ua741.sch deleted file mode 100644 index b06dcc17..00000000 --- a/Examples/Differentiator/ua741.sch +++ /dev/null @@ -1,229 +0,0 @@ -EESchema Schematic File Version 2 -LIBS:power -LIBS:eSim_Devices -LIBS:eSim_User -LIBS:eSim_Subckt -LIBS:eSim_Sources -LIBS:eSim_Power -LIBS:eSim_Plot -LIBS:eSim_Miscellaneous -LIBS:eSim_Hybrid -LIBS:eSim_Digital -LIBS:eSim_Analog -EELAYER 25 0 -EELAYER END -$Descr A4 11693 8268 -encoding utf-8 -Sheet 1 1 -Title "" -Date "19 dec 2012" -Rev "" -Comp "" -Comment1 "" -Comment2 "" -Comment3 "" -Comment4 "" -$EndDescr -Text Notes 3800 2400 0 60 ~ 0 -Op-Amp -Text Notes 3750 2850 0 60 ~ 0 -VCCS -Text Notes 5800 2500 0 60 ~ 0 -out -Text Notes 2750 3100 0 60 ~ 0 -- -Text Notes 2700 2600 0 60 ~ 0 -+ -$Comp -L PORT U1 -U 6 1 5082C027 -P 6250 2500 -F 0 "U1" H 6250 2450 30 0000 C CNN -F 1 "PORT" H 6250 2500 30 0000 C CNN -F 2 "" H 6250 2500 60 0001 C CNN -F 3 "" H 6250 2500 60 0001 C CNN - 6 6250 2500 - -1 0 0 1 -$EndComp -$Comp -L PORT U1 -U 2 1 5082C011 -P 2300 3100 -F 0 "U1" H 2300 3050 30 0000 C CNN -F 1 "PORT" H 2300 3100 30 0000 C CNN -F 2 "" H 2300 3100 60 0001 C CNN -F 3 "" H 2300 3100 60 0001 C CNN - 2 2300 3100 - 1 0 0 -1 -$EndComp -$Comp -L PORT U1 -U 3 1 5082C00B -P 2250 2600 -F 0 "U1" H 2250 2550 30 0000 C CNN -F 1 "PORT" H 2250 2600 30 0000 C CNN -F 2 "" H 2250 2600 60 0001 C CNN -F 3 "" H 2250 2600 60 0001 C CNN - 3 2250 2600 - 1 0 0 -1 -$EndComp -$Comp -L PWR_FLAG #FLG1 -U 1 1 508152A0 -P 3450 3200 -F 0 "#FLG1" H 3450 3470 30 0001 C CNN -F 1 "PWR_FLAG" H 3450 3430 30 0000 C CNN -F 2 "" H 3450 3200 60 0001 C CNN -F 3 "" H 3450 3200 60 0001 C CNN - 1 3450 3200 - 1 0 0 -1 -$EndComp -$Comp -L VCVS Eout1 -U 1 1 50813F0F -P 5200 2900 -F 0 "Eout1" H 5000 3000 50 0000 C CNN -F 1 "1" H 5000 2850 50 0000 C CNN -F 2 "" H 5200 2900 60 0001 C CNN -F 3 "" H 5200 2900 60 0001 C CNN - 1 5200 2900 - 0 1 1 0 -$EndComp -$Comp -L GND #PWR1 -U 1 1 50813E0D -P 3700 3400 -F 0 "#PWR1" H 3700 3400 30 0001 C CNN -F 1 "GND" H 3700 3330 30 0001 C CNN -F 2 "" H 3700 3400 60 0001 C CNN -F 3 "" H 3700 3400 60 0001 C CNN - 1 3700 3400 - 1 0 0 -1 -$EndComp -$Comp -L VCVS Ein1 -U 1 1 50813D7C -P 3650 2850 -F 0 "Ein1" H 3450 2950 50 0000 C CNN -F 1 "100e3" H 3450 2800 50 0000 C CNN -F 2 "" H 3650 2850 60 0001 C CNN -F 3 "" H 3650 2850 60 0001 C CNN - 1 3650 2850 - 0 1 1 0 -$EndComp -Text Notes 2600 2900 0 60 ~ 0 -2e6\n -Connection ~ 3700 3200 -Wire Wire Line - 3450 3200 3700 3200 -Connection ~ 5000 3300 -Wire Wire Line - 3700 3300 5250 3300 -Wire Wire Line - 5250 3300 5250 3200 -Connection ~ 4550 3300 -Wire Wire Line - 5000 3300 5000 2950 -Connection ~ 3700 3300 -Wire Wire Line - 4550 3000 4550 3300 -Wire Wire Line - 3900 2500 3700 2500 -Wire Wire Line - 3700 2500 3700 2550 -Wire Wire Line - 3450 2900 3300 2900 -Wire Wire Line - 3300 2900 3300 3200 -Wire Wire Line - 3300 3200 2950 3200 -Connection ~ 2950 3100 -Wire Wire Line - 2950 3200 2950 3100 -Wire Wire Line - 3000 2600 2500 2600 -Wire Wire Line - 2550 3100 3000 3100 -Wire Wire Line - 2950 2600 2950 2500 -Connection ~ 2950 2600 -Wire Wire Line - 2950 2500 3300 2500 -Wire Wire Line - 3300 2500 3300 2800 -Wire Wire Line - 3300 2800 3450 2800 -Wire Wire Line - 3700 3150 3700 3400 -Wire Wire Line - 4550 2500 4550 2700 -Wire Wire Line - 4400 2500 5000 2500 -Wire Wire Line - 5000 2500 5000 2850 -Connection ~ 4550 2500 -Wire Wire Line - 5250 2600 5250 2500 -Wire Wire Line - 5250 2500 5400 2500 -Wire Wire Line - 5700 2500 6000 2500 -$Comp -L resistor Rin1 -U 1 1 5E71E232 -P 2950 2900 -F 0 "Rin1" H 3000 3030 50 0000 C CNN -F 1 "2e6" H 3000 2850 50 0000 C CNN -F 2 "" H 3000 2880 30 0000 C CNN -F 3 "" V 3000 2950 30 0000 C CNN - 1 2950 2900 - 0 1 1 0 -$EndComp -Wire Wire Line - 3000 2600 3000 2800 -$Comp -L resistor Rbw1 -U 1 1 5E71E326 -P 4050 2100 -F 0 "Rbw1" H 4100 2230 50 0000 C CNN -F 1 "0.5e6" H 4100 2050 50 0000 C CNN -F 2 "" H 4100 2080 30 0000 C CNN -F 3 "" V 4100 2150 30 0000 C CNN - 1 4050 2100 - 1 0 0 -1 -$EndComp -Wire Wire Line - 3900 2500 3900 2050 -Wire Wire Line - 3900 2050 3950 2050 -Wire Wire Line - 4250 2050 4400 2050 -Wire Wire Line - 4400 2050 4400 2500 -$Comp -L capacitor Cbw1 -U 1 1 5E71E45C -P 4550 2850 -F 0 "Cbw1" H 4575 2950 50 0000 L CNN -F 1 "31.85e-9" H 4575 2750 50 0000 L CNN -F 2 "" H 4588 2700 30 0000 C CNN -F 3 "" H 4550 2850 60 0000 C CNN - 1 4550 2850 - 1 0 0 -1 -$EndComp -$Comp -L resistor Rout1 -U 1 1 5E71E59C -P 5500 2250 -F 0 "Rout1" H 5550 2380 50 0000 C CNN -F 1 "75" H 5550 2200 50 0000 C CNN -F 2 "" H 5550 2230 30 0000 C CNN -F 3 "" V 5550 2300 30 0000 C CNN - 1 5500 2250 - 1 0 0 -1 -$EndComp -Wire Wire Line - 5400 2500 5400 2200 -Wire Wire Line - 5700 2200 5700 2500 -$EndSCHEMATC diff --git a/Examples/Differentiator/ua741.sub b/Examples/Differentiator/ua741.sub deleted file mode 100644 index ad26c001..00000000 --- a/Examples/Differentiator/ua741.sub +++ /dev/null @@ -1,12 +0,0 @@ -* Subcircuit ua741 -.subckt ua741 6 7 3 -* eeschema netlist version 1.1 (spice format) creation date: monday 17 december 2012 11:16:58 am ist -rout1 3 2 75 -eout1 2 0 1 0 1 -cbw1 1 0 31.85e-9 -rbw1 1 4 0.5e6 -ein1 4 0 7 6 100e3 -rin1 7 6 2e6 -* Control Statements - -.ends ua741
\ No newline at end of file diff --git a/Examples/Integrator/D.lib b/Examples/Integrator/D.lib deleted file mode 100644 index ef18bb50..00000000 --- a/Examples/Integrator/D.lib +++ /dev/null @@ -1,20 +0,0 @@ -.MODEL D1N750 D( -+ Vj=.75 -+ Nbvl=14.976 -+ Cjo=175p -+ Rs=.25 -+ Isr=1.859n -+ Eg=1.11 -+ M=.5516 -+ Nbv=1.6989 -+ N=1 -+ Tbv1=-21.277u -+ Bv=8.1 -+ Fc=.5 -+ Ikf=0 -+ Nr=2 -+ Ibv=20.245m -+ Is=880.5E-18 -+ Xti=3 -+ Ibvl=1.9556m -)
\ No newline at end of file diff --git a/Examples/Integrator/Integrator-cache.lib b/Examples/Integrator/Integrator-cache.lib deleted file mode 100644 index 259458aa..00000000 --- a/Examples/Integrator/Integrator-cache.lib +++ /dev/null @@ -1,105 +0,0 @@ -EESchema-LIBRARY Version 2.3 -#encoding utf-8 -# -# GND -# -DEF GND #PWR 0 0 Y Y 1 F P -F0 "#PWR" 0 -250 50 H I C CNN -F1 "GND" 0 -150 50 H V C CNN -F2 "" 0 0 50 H I C CNN -F3 "" 0 0 50 H I C CNN -DRAW -P 6 0 1 0 0 0 0 -50 50 -50 0 -100 -50 -50 0 -50 N -X GND 1 0 0 0 D 50 50 1 1 W N -ENDDRAW -ENDDEF -# -# UA741 -# -DEF UA741 X 0 40 Y Y 1 F N -F0 "X" 150 0 60 H V C CNN -F1 "UA741" 250 -150 60 H V C CNN -F2 "" 0 0 60 H V C CNN -F3 "" 0 0 60 H V C CNN -DRAW -P 4 0 1 0 0 150 0 -150 350 0 0 150 N -X + 1 -200 100 200 R 50 50 1 1 I -X - 2 -200 -100 200 R 50 50 1 1 I -X ~ 3 550 0 200 L 50 50 1 1 O -ENDDRAW -ENDDEF -# -# eSim_C -# -DEF eSim_C C 0 10 N Y 1 F N -F0 "C" 25 100 50 H V L CNN -F1 "eSim_C" 25 -100 50 H V L CNN -F2 "" 38 -150 30 H V C CNN -F3 "" 0 0 60 H V C CNN -ALIAS capacitor -$FPLIST - C_* -$ENDFPLIST -DRAW -P 2 0 1 20 -80 -30 80 -30 N -P 2 0 1 20 -80 30 80 30 N -X ~ 1 0 150 110 D 40 40 1 1 P -X ~ 2 0 -150 110 U 40 40 1 1 P -ENDDRAW -ENDDEF -# -# eSim_R -# -DEF eSim_R R 0 0 N Y 1 F N -F0 "R" 50 130 50 H V C CNN -F1 "eSim_R" 50 -50 50 H V C CNN -F2 "" 50 -20 30 H V C CNN -F3 "" 50 50 30 V V C CNN -ALIAS resistor -$FPLIST - R_* - Resistor_* -$ENDFPLIST -DRAW -S 150 10 -50 90 0 1 10 N -X ~ 1 -100 50 50 R 60 60 1 1 P -X ~ 2 200 50 50 L 60 60 1 1 P -ENDDRAW -ENDDEF -# -# plot_v1 -# -DEF plot_v1 U 0 40 Y Y 1 F N -F0 "U" 0 500 60 H V C CNN -F1 "plot_v1" 200 350 60 H V C CNN -F2 "" 0 0 60 H V C CNN -F3 "" 0 0 60 H V C CNN -DRAW -C 0 500 100 0 1 0 N -X ~ ~ 0 200 200 U 50 50 1 1 I -ENDDRAW -ENDDEF -# -# pwl -# -DEF pwl v 0 40 Y Y 1 F N -F0 "v" -200 100 60 H V C CNN -F1 "pwl" -250 -50 60 H V C CNN -F2 "R1" -300 0 60 H V C CNN -F3 "" 0 0 60 H V C CNN -$FPLIST - 1_pin -$ENDFPLIST -DRAW -A -1144 -561 1253 291 240 0 1 0 N -50 50 0 -50 -A -765 421 941 -300 -232 0 1 0 N 50 -50 100 50 -A -75 -700 750 919 880 0 1 0 N -100 50 -50 50 -A 25 450 501 -928 -871 0 1 0 N 0 -50 50 -50 -A 1096 -609 1366 1511 1558 0 1 0 N -100 50 -150 -50 -C 0 0 150 0 1 0 N -X + 1 0 450 300 D 50 0 1 1 I -X - 2 0 -450 300 U 50 0 1 1 I -ENDDRAW -ENDDEF -# -#End Library diff --git a/Examples/Integrator/Integrator.cir b/Examples/Integrator/Integrator.cir deleted file mode 100644 index b7b0164b..00000000 --- a/Examples/Integrator/Integrator.cir +++ /dev/null @@ -1,19 +0,0 @@ -* /home/saurabh/Desktop/eSim/Examples/Integrator/Integrator.cir - -* EESchema Netlist Version 1.1 (Spice format) creation date: Wed Mar 11 16:27:08 2020 - -* To exclude a component from the Spice Netlist add [Spice_Netlist_Enabled] user FIELD set to: N -* To reorder the component spice node sequence add [Spice_Node_Sequence] user FIELD and define sequence: 2,1,0 - -* Sheet Name: / -X1 Net-_R2-Pad1_ Net-_C1-Pad2_ out UA741 -v1 in GND pwl -U1 in plot_v1 -U2 out plot_v1 -R1 in Net-_C1-Pad2_ 10k -R2 Net-_R2-Pad1_ GND 1k -R3 out Net-_C1-Pad2_ 100k -C1 out Net-_C1-Pad2_ 100n -R4 GND out 1k - -.end diff --git a/Examples/Integrator/Integrator.cir.out b/Examples/Integrator/Integrator.cir.out deleted file mode 100644 index 9db03242..00000000 --- a/Examples/Integrator/Integrator.cir.out +++ /dev/null @@ -1,23 +0,0 @@ -* /home/saurabh/desktop/esim/examples/integrator/integrator.cir - -.include ua741.sub -x1 net-_r2-pad1_ net-_c1-pad2_ out ua741 -v1 in gnd pwl(0m 0 0.5m 5 25m 5 25.5m -5 50m -5 50.5m 5 75m 5 75.5m -5 100m -5) -* u1 in plot_v1 -* u2 out plot_v1 -r1 in net-_c1-pad2_ 10k -r2 net-_r2-pad1_ gnd 1k -r3 out net-_c1-pad2_ 100k -c1 out net-_c1-pad2_ 100n -r4 gnd out 1k -.tran 1e-03 100e-03 0e-00 - -* Control Statements -.control -run -print allv > plot_data_v.txt -print alli > plot_data_i.txt -plot v(in) -plot v(out) -.endc -.end diff --git a/Examples/Integrator/Integrator.pro b/Examples/Integrator/Integrator.pro deleted file mode 100644 index 0922f7b5..00000000 --- a/Examples/Integrator/Integrator.pro +++ /dev/null @@ -1,69 +0,0 @@ -update=Wed Mar 18 18:52:14 2020 -version=1 -last_client=eeschema -[general] -version=1 -RootSch= -BoardNm= -[pcbnew] -version=1 -LastNetListRead= -UseCmpFile=1 -PadDrill=0.600000000000 -PadDrillOvalY=0.600000000000 -PadSizeH=1.500000000000 -PadSizeV=1.500000000000 -PcbTextSizeV=1.500000000000 -PcbTextSizeH=1.500000000000 -PcbTextThickness=0.300000000000 -ModuleTextSizeV=1.000000000000 -ModuleTextSizeH=1.000000000000 -ModuleTextSizeThickness=0.150000000000 -SolderMaskClearance=0.000000000000 -SolderMaskMinWidth=0.000000000000 -DrawSegmentWidth=0.200000000000 -BoardOutlineThickness=0.100000000000 -ModuleOutlineThickness=0.150000000000 -[cvpcb] -version=1 -NetIExt=net -[eeschema] -version=1 -LibDir= -[eeschema/libraries] -LibName1=eSim_Analog -LibName2=eSim_Devices -LibName3=eSim_Digital -LibName4=eSim_Hybrid -LibName5=eSim_Miscellaneous -LibName6=eSim_Plot -LibName7=eSim_Power -LibName8=eSim_Sources -LibName9=eSim_Subckt -LibName10=eSim_User -LibName11=adc-dac -LibName12=memory -LibName13=xilinx -LibName14=microcontrollers -LibName15=dsp -LibName16=microchip -LibName17=analog_switches -LibName18=motorola -LibName19=texas -LibName20=intel -LibName21=audio -LibName22=interface -LibName23=digital-audio -LibName24=philips -LibName25=display -LibName26=cypress -LibName27=siliconi -LibName28=opto -LibName29=atmel -LibName30=contrib -LibName31=power -LibName32=transistors -LibName33=conn -LibName34=regul -LibName35=74xx -LibName36=cmos4000 diff --git a/Examples/Integrator/Integrator.proj b/Examples/Integrator/Integrator.proj deleted file mode 100644 index 731ea735..00000000 --- a/Examples/Integrator/Integrator.proj +++ /dev/null @@ -1 +0,0 @@ -schematicFile Integrator.sch diff --git a/Examples/Integrator/Integrator.sch b/Examples/Integrator/Integrator.sch deleted file mode 100644 index d73bd6be..00000000 --- a/Examples/Integrator/Integrator.sch +++ /dev/null @@ -1,234 +0,0 @@ -EESchema Schematic File Version 2 -LIBS:eSim_Analog -LIBS:eSim_Devices -LIBS:eSim_Digital -LIBS:eSim_Hybrid -LIBS:eSim_Miscellaneous -LIBS:eSim_Plot -LIBS:eSim_Power -LIBS:eSim_Sources -LIBS:eSim_Subckt -LIBS:eSim_User -LIBS:adc-dac -LIBS:memory -LIBS:xilinx -LIBS:microcontrollers -LIBS:dsp -LIBS:microchip -LIBS:analog_switches -LIBS:motorola -LIBS:texas -LIBS:intel -LIBS:audio -LIBS:interface -LIBS:digital-audio -LIBS:philips -LIBS:display -LIBS:cypress -LIBS:siliconi -LIBS:opto -LIBS:atmel -LIBS:contrib -LIBS:power -LIBS:transistors -LIBS:conn -LIBS:regul -LIBS:74xx -LIBS:cmos4000 -EELAYER 25 0 -EELAYER END -$Descr A4 11693 8268 -encoding utf-8 -Sheet 1 1 -Title "" -Date "" -Rev "" -Comp "" -Comment1 "" -Comment2 "" -Comment3 "" -Comment4 "" -$EndDescr -$Comp -L UA741 X1 -U 1 1 56A9B5FD -P 5950 3200 -F 0 "X1" H 6100 3200 60 0000 C CNN -F 1 "UA741" H 6200 3050 60 0000 C CNN -F 2 "" H 5950 3200 60 0000 C CNN -F 3 "" H 5950 3200 60 0000 C CNN - 1 5950 3200 - 1 0 0 1 -$EndComp -Wire Wire Line - 5300 3100 5750 3100 -Wire Wire Line - 5750 3300 5450 3300 -Wire Wire Line - 6500 3200 6900 3200 -$Comp -L GND #PWR2 -U 1 1 56A9B75D -P 5450 3600 -F 0 "#PWR2" H 5450 3350 50 0001 C CNN -F 1 "GND" H 5450 3450 50 0000 C CNN -F 2 "" H 5450 3600 50 0000 C CNN -F 3 "" H 5450 3600 50 0000 C CNN - 1 5450 3600 - 1 0 0 -1 -$EndComp -$Comp -L GND #PWR1 -U 1 1 56A9B7DC -P 4800 4000 -F 0 "#PWR1" H 4800 3750 50 0001 C CNN -F 1 "GND" H 4800 3850 50 0000 C CNN -F 2 "" H 4800 4000 50 0000 C CNN -F 3 "" H 4800 4000 50 0000 C CNN - 1 4800 4000 - 1 0 0 -1 -$EndComp -$Comp -L GND #PWR3 -U 1 1 56A9B7F9 -P 6900 3500 -F 0 "#PWR3" H 6900 3250 50 0001 C CNN -F 1 "GND" H 6900 3350 50 0000 C CNN -F 2 "" H 6900 3500 50 0000 C CNN -F 3 "" H 6900 3500 50 0000 C CNN - 1 6900 3500 - 1 0 0 -1 -$EndComp -Wire Wire Line - 5000 3100 4800 3100 -Wire Wire Line - 5950 2700 5600 2700 -Connection ~ 5600 3100 -Wire Wire Line - 6250 2700 6650 2700 -Connection ~ 6650 3200 -Text GLabel 4800 2950 0 60 Input ~ 0 -in -Text GLabel 6850 3050 2 60 Input ~ 0 -out -Wire Wire Line - 4800 2950 4850 2950 -Wire Wire Line - 4850 2850 4850 3100 -Connection ~ 4850 3100 -Wire Wire Line - 6850 3050 6800 3050 -Wire Wire Line - 6800 3000 6800 3200 -Connection ~ 6800 3200 -Wire Wire Line - 5600 2350 5600 3100 -Wire Wire Line - 6650 2350 6650 3200 -Wire Wire Line - 5950 2350 5600 2350 -Connection ~ 5600 2700 -Wire Wire Line - 6250 2350 6650 2350 -Connection ~ 6650 2700 -$Comp -L pwl v1 -U 1 1 56B835AC -P 4800 3550 -F 0 "v1" H 4600 3650 60 0000 C CNN -F 1 "pwl" H 4550 3500 60 0000 C CNN -F 2 "R1" H 4500 3550 60 0000 C CNN -F 3 "" H 4800 3550 60 0000 C CNN - 1 4800 3550 - 1 0 0 -1 -$EndComp -$Comp -L plot_v1 U1 -U 1 1 56D45D76 -P 4850 3050 -F 0 "U1" H 4850 3550 60 0000 C CNN -F 1 "plot_v1" H 5050 3400 60 0000 C CNN -F 2 "" H 4850 3050 60 0000 C CNN -F 3 "" H 4850 3050 60 0000 C CNN - 1 4850 3050 - 1 0 0 -1 -$EndComp -$Comp -L plot_v1 U2 -U 1 1 56D45DCF -P 6800 3200 -F 0 "U2" H 6800 3700 60 0000 C CNN -F 1 "plot_v1" H 7000 3550 60 0000 C CNN -F 2 "" H 6800 3200 60 0000 C CNN -F 3 "" H 6800 3200 60 0000 C CNN - 1 6800 3200 - 1 0 0 -1 -$EndComp -Connection ~ 4850 2950 -Connection ~ 6800 3050 -Text Notes 5050 2900 0 60 ~ 0 -10k -Text Notes 5250 3700 0 60 ~ 0 -1k\n -Text Notes 6300 2600 0 60 ~ 0 -100n -Text Notes 5950 2150 0 60 ~ 0 -100k\n -Text Notes 7100 3350 0 60 ~ 0 -1k -$Comp -L resistor R1 -U 1 1 5E68C500 -P 5100 3150 -F 0 "R1" H 5150 3280 50 0000 C CNN -F 1 "10k" H 5150 3100 50 0000 C CNN -F 2 "" H 5150 3130 30 0000 C CNN -F 3 "" V 5150 3200 30 0000 C CNN - 1 5100 3150 - 1 0 0 -1 -$EndComp -$Comp -L resistor R2 -U 1 1 5E68C560 -P 5400 3400 -F 0 "R2" H 5450 3530 50 0000 C CNN -F 1 "1k" H 5450 3350 50 0000 C CNN -F 2 "" H 5450 3380 30 0000 C CNN -F 3 "" V 5450 3450 30 0000 C CNN - 1 5400 3400 - 0 1 1 0 -$EndComp -$Comp -L resistor R3 -U 1 1 5E68C5B3 -P 6150 2300 -F 0 "R3" H 6200 2430 50 0000 C CNN -F 1 "100k" H 6200 2250 50 0000 C CNN -F 2 "" H 6200 2280 30 0000 C CNN -F 3 "" V 6200 2350 30 0000 C CNN - 1 6150 2300 - -1 0 0 1 -$EndComp -$Comp -L capacitor C1 -U 1 1 5E68C612 -P 6100 2700 -F 0 "C1" H 6125 2800 50 0000 L CNN -F 1 "100n" H 6125 2600 50 0000 L CNN -F 2 "" H 6138 2550 30 0000 C CNN -F 3 "" H 6100 2700 60 0000 C CNN - 1 6100 2700 - 0 1 1 0 -$EndComp -$Comp -L resistor R4 -U 1 1 5E68C664 -P 6950 3400 -F 0 "R4" H 7000 3530 50 0000 C CNN -F 1 "1k" H 7000 3350 50 0000 C CNN -F 2 "" H 7000 3380 30 0000 C CNN -F 3 "" V 7000 3450 30 0000 C CNN - 1 6950 3400 - 0 -1 -1 0 -$EndComp -$EndSCHEMATC diff --git a/Examples/Integrator/Integrator_Previous_Values.xml b/Examples/Integrator/Integrator_Previous_Values.xml deleted file mode 100644 index 2079752b..00000000 --- a/Examples/Integrator/Integrator_Previous_Values.xml +++ /dev/null @@ -1 +0,0 @@ -<KicadtoNgspice><source><v1 name="Source type">pwl<field1 name="Enter in pwl format">0m 0 0.5m 5 25m 5 25.5m -5 50m -5 50.5m 5 75m 5 75.5m -5 100m -5</field1></v1></source><model /><devicemodel /><subcircuit><x1><field>/home/saurabh/Desktop/eSim-2.0/library/SubcircuitLibrary/ua741</field></x1></subcircuit><analysis><ac><field1 name="Lin">true</field1><field2 name="Dec">false</field2><field3 name="Oct">false</field3><field4 name="Start Frequency" /><field5 name="Stop Frequency" /><field6 name="No. of points" /><field7 name="Start Fre Combo">Hz</field7><field8 name="Stop Fre Combo">Hz</field8></ac><dc><field1 name="Source 1" /><field2 name="Start" /><field3 name="Increment" /><field4 name="Stop" /><field5 name="Operating Point">0</field5><field6 name="Start Combo">Volts or Amperes</field6><field7 name="Increment Combo">Volts or Amperes</field7><field8 name="Stop Combo">Volts or Amperes</field8><field9 name="Source 2" /><field10 name="Start" /><field11 name="Increment" /><field12 name="Stop" /><field13 name="Start Combo">Volts or Amperes</field13><field14 name="Increment Combo">Volts or Amperes</field14><field15 name="Stop Combo">Volts or Amperes</field15></dc><tran><field1 name="Start Time">0</field1><field2 name="Step Time">1</field2><field3 name="Stop Time">100</field3><field4 name="Start Combo">Sec</field4><field5 name="Step Combo">ms</field5><field6 name="Stop Combo">ms</field6></tran></analysis></KicadtoNgspice>
\ No newline at end of file diff --git a/Examples/Integrator/PowerDiode.lib b/Examples/Integrator/PowerDiode.lib deleted file mode 100644 index a2f61dce..00000000 --- a/Examples/Integrator/PowerDiode.lib +++ /dev/null @@ -1,20 +0,0 @@ -.MODEL PowerDiode D( -+ Vj=.75 -+ Nbvl=14.976 -+ Cjo=175p -+ Rs=.25 -+ Isr=1.859n -+ Eg=1.11 -+ M=.5516 -+ Nbv=1.6989 -+ N=1 -+ Tbv1=-21.277u -+ bv=1800 -+ Fc=.5 -+ Ikf=0 -+ Nr=2 -+ Ibv=20.245m -+ Is=2.2E-15 -+ Xti=3 -+ Ibvl=1.9556m -)
\ No newline at end of file diff --git a/Examples/Integrator/analysis b/Examples/Integrator/analysis deleted file mode 100644 index f496aec4..00000000 --- a/Examples/Integrator/analysis +++ /dev/null @@ -1 +0,0 @@ -.tran 1e-03 100e-03 0e-00
\ No newline at end of file diff --git a/Examples/Integrator/ua741.cir b/Examples/Integrator/ua741.cir deleted file mode 100644 index de797429..00000000 --- a/Examples/Integrator/ua741.cir +++ /dev/null @@ -1,15 +0,0 @@ -* EESchema Netlist Version 1.1 (Spice format) creation date: Monday 17 December 2012 11:16:58 AM IST - -* To exclude a component from the Spice Netlist add [Spice_Netlist_Enabled] user FIELD set to: N -* To reorder the component spice node sequence add [Spice_Node_Sequence] user FIELD and define sequence: 2,1,0 - -*Sheet Name:/ -U1 6 7 3 PORT -Rout1 3 2 75 -Eout1 2 0 1 0 1 -Cbw1 1 0 31.85e-9 -Rbw1 1 4 0.5e6 -Ein1 4 0 7 6 100e3 -Rin1 7 6 2e6 - -.end diff --git a/Examples/Integrator/ua741.cir.out b/Examples/Integrator/ua741.cir.out deleted file mode 100644 index 72e68514..00000000 --- a/Examples/Integrator/ua741.cir.out +++ /dev/null @@ -1,18 +0,0 @@ -* eeschema netlist version 1.1 (spice format) creation date: monday 17 december 2012 11:16:58 am ist - -* u1 6 7 3 port -rout1 3 2 75 -eout1 2 0 1 0 1 -cbw1 1 0 31.85e-9 -rbw1 1 4 0.5e6 -ein1 4 0 7 6 100e3 -rin1 7 6 2e6 -.ac lin 0 0Hz 0Hz - -* Control Statements -.control -run -print allv > plot_data_v.txt -print alli > plot_data_i.txt -.endc -.end diff --git a/Examples/Integrator/ua741.pro b/Examples/Integrator/ua741.pro deleted file mode 100644 index c7b1d67b..00000000 --- a/Examples/Integrator/ua741.pro +++ /dev/null @@ -1,17 +0,0 @@ -update=Wed Mar 18 14:21:29 2020 -last_client=eeschema -[eeschema] -version=1 -LibDir=/home/yogesh/FreeEDA/library -[eeschema/libraries] -LibName1=power -LibName2=eSim_Devices -LibName3=eSim_User -LibName4=eSim_Subckt -LibName5=eSim_Sources -LibName6=eSim_Power -LibName7=eSim_Plot -LibName8=eSim_Miscellaneous -LibName9=eSim_Hybrid -LibName10=eSim_Digital -LibName11=eSim_Analog diff --git a/Examples/Integrator/ua741.sch b/Examples/Integrator/ua741.sch deleted file mode 100644 index b06dcc17..00000000 --- a/Examples/Integrator/ua741.sch +++ /dev/null @@ -1,229 +0,0 @@ -EESchema Schematic File Version 2 -LIBS:power -LIBS:eSim_Devices -LIBS:eSim_User -LIBS:eSim_Subckt -LIBS:eSim_Sources -LIBS:eSim_Power -LIBS:eSim_Plot -LIBS:eSim_Miscellaneous -LIBS:eSim_Hybrid -LIBS:eSim_Digital -LIBS:eSim_Analog -EELAYER 25 0 -EELAYER END -$Descr A4 11693 8268 -encoding utf-8 -Sheet 1 1 -Title "" -Date "19 dec 2012" -Rev "" -Comp "" -Comment1 "" -Comment2 "" -Comment3 "" -Comment4 "" -$EndDescr -Text Notes 3800 2400 0 60 ~ 0 -Op-Amp -Text Notes 3750 2850 0 60 ~ 0 -VCCS -Text Notes 5800 2500 0 60 ~ 0 -out -Text Notes 2750 3100 0 60 ~ 0 -- -Text Notes 2700 2600 0 60 ~ 0 -+ -$Comp -L PORT U1 -U 6 1 5082C027 -P 6250 2500 -F 0 "U1" H 6250 2450 30 0000 C CNN -F 1 "PORT" H 6250 2500 30 0000 C CNN -F 2 "" H 6250 2500 60 0001 C CNN -F 3 "" H 6250 2500 60 0001 C CNN - 6 6250 2500 - -1 0 0 1 -$EndComp -$Comp -L PORT U1 -U 2 1 5082C011 -P 2300 3100 -F 0 "U1" H 2300 3050 30 0000 C CNN -F 1 "PORT" H 2300 3100 30 0000 C CNN -F 2 "" H 2300 3100 60 0001 C CNN -F 3 "" H 2300 3100 60 0001 C CNN - 2 2300 3100 - 1 0 0 -1 -$EndComp -$Comp -L PORT U1 -U 3 1 5082C00B -P 2250 2600 -F 0 "U1" H 2250 2550 30 0000 C CNN -F 1 "PORT" H 2250 2600 30 0000 C CNN -F 2 "" H 2250 2600 60 0001 C CNN -F 3 "" H 2250 2600 60 0001 C CNN - 3 2250 2600 - 1 0 0 -1 -$EndComp -$Comp -L PWR_FLAG #FLG1 -U 1 1 508152A0 -P 3450 3200 -F 0 "#FLG1" H 3450 3470 30 0001 C CNN -F 1 "PWR_FLAG" H 3450 3430 30 0000 C CNN -F 2 "" H 3450 3200 60 0001 C CNN -F 3 "" H 3450 3200 60 0001 C CNN - 1 3450 3200 - 1 0 0 -1 -$EndComp -$Comp -L VCVS Eout1 -U 1 1 50813F0F -P 5200 2900 -F 0 "Eout1" H 5000 3000 50 0000 C CNN -F 1 "1" H 5000 2850 50 0000 C CNN -F 2 "" H 5200 2900 60 0001 C CNN -F 3 "" H 5200 2900 60 0001 C CNN - 1 5200 2900 - 0 1 1 0 -$EndComp -$Comp -L GND #PWR1 -U 1 1 50813E0D -P 3700 3400 -F 0 "#PWR1" H 3700 3400 30 0001 C CNN -F 1 "GND" H 3700 3330 30 0001 C CNN -F 2 "" H 3700 3400 60 0001 C CNN -F 3 "" H 3700 3400 60 0001 C CNN - 1 3700 3400 - 1 0 0 -1 -$EndComp -$Comp -L VCVS Ein1 -U 1 1 50813D7C -P 3650 2850 -F 0 "Ein1" H 3450 2950 50 0000 C CNN -F 1 "100e3" H 3450 2800 50 0000 C CNN -F 2 "" H 3650 2850 60 0001 C CNN -F 3 "" H 3650 2850 60 0001 C CNN - 1 3650 2850 - 0 1 1 0 -$EndComp -Text Notes 2600 2900 0 60 ~ 0 -2e6\n -Connection ~ 3700 3200 -Wire Wire Line - 3450 3200 3700 3200 -Connection ~ 5000 3300 -Wire Wire Line - 3700 3300 5250 3300 -Wire Wire Line - 5250 3300 5250 3200 -Connection ~ 4550 3300 -Wire Wire Line - 5000 3300 5000 2950 -Connection ~ 3700 3300 -Wire Wire Line - 4550 3000 4550 3300 -Wire Wire Line - 3900 2500 3700 2500 -Wire Wire Line - 3700 2500 3700 2550 -Wire Wire Line - 3450 2900 3300 2900 -Wire Wire Line - 3300 2900 3300 3200 -Wire Wire Line - 3300 3200 2950 3200 -Connection ~ 2950 3100 -Wire Wire Line - 2950 3200 2950 3100 -Wire Wire Line - 3000 2600 2500 2600 -Wire Wire Line - 2550 3100 3000 3100 -Wire Wire Line - 2950 2600 2950 2500 -Connection ~ 2950 2600 -Wire Wire Line - 2950 2500 3300 2500 -Wire Wire Line - 3300 2500 3300 2800 -Wire Wire Line - 3300 2800 3450 2800 -Wire Wire Line - 3700 3150 3700 3400 -Wire Wire Line - 4550 2500 4550 2700 -Wire Wire Line - 4400 2500 5000 2500 -Wire Wire Line - 5000 2500 5000 2850 -Connection ~ 4550 2500 -Wire Wire Line - 5250 2600 5250 2500 -Wire Wire Line - 5250 2500 5400 2500 -Wire Wire Line - 5700 2500 6000 2500 -$Comp -L resistor Rin1 -U 1 1 5E71E232 -P 2950 2900 -F 0 "Rin1" H 3000 3030 50 0000 C CNN -F 1 "2e6" H 3000 2850 50 0000 C CNN -F 2 "" H 3000 2880 30 0000 C CNN -F 3 "" V 3000 2950 30 0000 C CNN - 1 2950 2900 - 0 1 1 0 -$EndComp -Wire Wire Line - 3000 2600 3000 2800 -$Comp -L resistor Rbw1 -U 1 1 5E71E326 -P 4050 2100 -F 0 "Rbw1" H 4100 2230 50 0000 C CNN -F 1 "0.5e6" H 4100 2050 50 0000 C CNN -F 2 "" H 4100 2080 30 0000 C CNN -F 3 "" V 4100 2150 30 0000 C CNN - 1 4050 2100 - 1 0 0 -1 -$EndComp -Wire Wire Line - 3900 2500 3900 2050 -Wire Wire Line - 3900 2050 3950 2050 -Wire Wire Line - 4250 2050 4400 2050 -Wire Wire Line - 4400 2050 4400 2500 -$Comp -L capacitor Cbw1 -U 1 1 5E71E45C -P 4550 2850 -F 0 "Cbw1" H 4575 2950 50 0000 L CNN -F 1 "31.85e-9" H 4575 2750 50 0000 L CNN -F 2 "" H 4588 2700 30 0000 C CNN -F 3 "" H 4550 2850 60 0000 C CNN - 1 4550 2850 - 1 0 0 -1 -$EndComp -$Comp -L resistor Rout1 -U 1 1 5E71E59C -P 5500 2250 -F 0 "Rout1" H 5550 2380 50 0000 C CNN -F 1 "75" H 5550 2200 50 0000 C CNN -F 2 "" H 5550 2230 30 0000 C CNN -F 3 "" V 5550 2300 30 0000 C CNN - 1 5500 2250 - 1 0 0 -1 -$EndComp -Wire Wire Line - 5400 2500 5400 2200 -Wire Wire Line - 5700 2200 5700 2500 -$EndSCHEMATC diff --git a/Examples/Integrator/ua741.sub b/Examples/Integrator/ua741.sub deleted file mode 100644 index ad26c001..00000000 --- a/Examples/Integrator/ua741.sub +++ /dev/null @@ -1,12 +0,0 @@ -* Subcircuit ua741 -.subckt ua741 6 7 3 -* eeschema netlist version 1.1 (spice format) creation date: monday 17 december 2012 11:16:58 am ist -rout1 3 2 75 -eout1 2 0 1 0 1 -cbw1 1 0 31.85e-9 -rbw1 1 4 0.5e6 -ein1 4 0 7 6 100e3 -rin1 7 6 2e6 -* Control Statements - -.ends ua741
\ No newline at end of file diff --git a/Examples/InvertingAmplifier/D.lib b/Examples/InvertingAmplifier/D.lib deleted file mode 100644 index ef18bb50..00000000 --- a/Examples/InvertingAmplifier/D.lib +++ /dev/null @@ -1,20 +0,0 @@ -.MODEL D1N750 D( -+ Vj=.75 -+ Nbvl=14.976 -+ Cjo=175p -+ Rs=.25 -+ Isr=1.859n -+ Eg=1.11 -+ M=.5516 -+ Nbv=1.6989 -+ N=1 -+ Tbv1=-21.277u -+ Bv=8.1 -+ Fc=.5 -+ Ikf=0 -+ Nr=2 -+ Ibv=20.245m -+ Is=880.5E-18 -+ Xti=3 -+ Ibvl=1.9556m -)
\ No newline at end of file diff --git a/Examples/InvertingAmplifier/InvertingAmplifier-cache.lib b/Examples/InvertingAmplifier/InvertingAmplifier-cache.lib index d481b436..a7152dcd 100644 --- a/Examples/InvertingAmplifier/InvertingAmplifier-cache.lib +++ b/Examples/InvertingAmplifier/InvertingAmplifier-cache.lib @@ -1,15 +1,32 @@ EESchema-LIBRARY Version 2.3 #encoding utf-8 # +# DC +# +DEF DC v 0 40 Y Y 1 F N +F0 "v" -200 100 60 H V C CNN +F1 "DC" -200 -50 60 H V C CNN +F2 "R1" -300 0 60 H V C CNN +F3 "" 0 0 60 H V C CNN +$FPLIST + 1_pin +$ENDFPLIST +DRAW +C 0 0 150 0 1 0 N +X + 1 0 450 300 D 50 50 1 1 w +X - 2 0 -450 300 U 50 50 1 1 w +ENDDRAW +ENDDEF +# # GND # DEF GND #PWR 0 0 Y Y 1 F P F0 "#PWR" 0 -250 50 H I C CNN F1 "GND" 0 -150 50 H V C CNN -F2 "" 0 0 50 H V C CNN -F3 "" 0 0 50 H V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN DRAW -P 6 0 1 0 0 0 0 -50 50 -50 0 -100 -50 -50 0 -50 N +P 6 0 1 0 0 0 0 -50 50 -50 0 -100 -50 -50 0 -50 N X GND 1 0 0 0 D 50 50 1 1 W N ENDDRAW ENDDEF @@ -32,18 +49,23 @@ X ~ 2 200 50 50 L 60 60 1 1 P ENDDRAW ENDDEF # -# UA741 +# lm_741 # -DEF UA741 X 0 40 Y Y 1 F N -F0 "X" 150 0 60 H V C CNN -F1 "UA741" 250 -150 60 H V C CNN +DEF lm_741 X 0 40 Y Y 1 F N +F0 "X" -200 0 60 H V C CNN +F1 "lm_741" -100 -250 60 H V C CNN F2 "" 0 0 60 H V C CNN F3 "" 0 0 60 H V C CNN DRAW -P 4 0 1 0 0 150 0 -150 350 0 0 150 N -X + 1 -200 100 200 R 50 50 1 1 I -X - 2 -200 -100 200 R 50 50 1 1 I -X ~ 3 550 0 200 L 50 50 1 1 O +P 4 0 1 0 -350 350 350 0 -350 -350 -350 350 N +X off_null 1 -50 400 200 D 50 38 1 1 I +X inv 2 -550 150 200 R 50 38 1 1 I +X non_inv 3 -550 -100 200 R 50 38 1 1 I +X v_neg 4 -150 -450 200 U 50 38 1 1 I +X off_null 5 50 350 200 D 50 38 1 1 I +X out 6 550 0 200 L 50 38 1 1 O +X v_pos 7 -150 450 200 D 50 38 1 1 I +X NC 8 150 -300 200 U 50 38 1 1 N ENDDRAW ENDDEF # diff --git a/Examples/InvertingAmplifier/InvertingAmplifier-rescue.lib b/Examples/InvertingAmplifier/InvertingAmplifier-rescue.lib new file mode 100644 index 00000000..5a3a50c1 --- /dev/null +++ b/Examples/InvertingAmplifier/InvertingAmplifier-rescue.lib @@ -0,0 +1,19 @@ +EESchema-LIBRARY Version 2.3 +#encoding utf-8 +# +# UA741-RESCUE-InvertingAmplifier +# +DEF UA741-RESCUE-InvertingAmplifier X 0 40 Y Y 1 F N +F0 "X" 150 0 60 H V C CNN +F1 "UA741-RESCUE-InvertingAmplifier" 250 -150 60 H V C CNN +F2 "" 0 0 60 H V C CNN +F3 "" 0 0 60 H V C CNN +DRAW +P 4 0 1 0 0 150 0 -150 350 0 0 150 N +X + 1 -200 100 200 R 50 50 1 1 I +X - 2 -200 -100 200 R 50 50 1 1 I +X ~ 3 550 0 200 L 50 50 1 1 O +ENDDRAW +ENDDEF +# +#End Library diff --git a/Examples/InvertingAmplifier/InvertingAmplifier.cir b/Examples/InvertingAmplifier/InvertingAmplifier.cir index 9ae92083..4bfc2197 100644 --- a/Examples/InvertingAmplifier/InvertingAmplifier.cir +++ b/Examples/InvertingAmplifier/InvertingAmplifier.cir @@ -1,18 +1,20 @@ -* /home/fossee/UpdatedExamples/InvertingAmplifier/InvertingAmplifier.cir +* /home/saurabh/Desktop/eSim/Examples/InvertingAmplifier/InvertingAmplifier.cir -* EESchema Netlist Version 1.1 (Spice format) creation date: Thu Mar 3 22:37:06 2016 +* EESchema Netlist Version 1.1 (Spice format) creation date: Fri Mar 27 17:44:01 2020 * To exclude a component from the Spice Netlist add [Spice_Netlist_Enabled] user FIELD set to: N * To reorder the component spice node sequence add [Spice_Node_Sequence] user FIELD and define sequence: 2,1,0 * Sheet Name: / -X1 Net-_R4-Pad1_ Net-_R1-Pad2_ out UA741 R1 in Net-_R1-Pad2_ 1k -R2 Net-_R1-Pad2_ out 5k +R3 Net-_R1-Pad2_ out 5k v1 in GND sine -R3 out GND 1k -R4 Net-_R4-Pad1_ GND 1k +R4 out GND 1k +R2 Net-_R2-Pad1_ GND 1k U1 in plot_v1 U2 out plot_v1 +v3 Net-_X1-Pad7_ GND 12 +v2 GND Net-_X1-Pad4_ 12 +X1 ? Net-_R1-Pad2_ Net-_R2-Pad1_ Net-_X1-Pad4_ ? out Net-_X1-Pad7_ ? lm_741 .end diff --git a/Examples/InvertingAmplifier/InvertingAmplifier.cir.out b/Examples/InvertingAmplifier/InvertingAmplifier.cir.out index 0437c978..21ea666c 100644 --- a/Examples/InvertingAmplifier/InvertingAmplifier.cir.out +++ b/Examples/InvertingAmplifier/InvertingAmplifier.cir.out @@ -1,15 +1,17 @@ -* /home/fossee/updatedexamples/invertingamplifier/invertingamplifier.cir +* /home/saurabh/desktop/esim/examples/invertingamplifier/invertingamplifier.cir -.include ua741.sub -x1 net-_r4-pad1_ net-_r1-pad2_ out ua741 +.include lm_741.sub r1 in net-_r1-pad2_ 1k -r2 net-_r1-pad2_ out 5k +r3 net-_r1-pad2_ out 5k v1 in gnd sine(0 2 50 0 0) -r3 out gnd 1k -r4 net-_r4-pad1_ gnd 1k +r4 out gnd 1k +r2 net-_r2-pad1_ gnd 1k * u1 in plot_v1 * u2 out plot_v1 -.tran 10e-03 100e-03 0e-03 +v3 net-_x1-pad7_ gnd 12 +v2 gnd net-_x1-pad4_ 12 +x1 ? net-_r1-pad2_ net-_r2-pad1_ net-_x1-pad4_ ? out net-_x1-pad7_ ? lm_741 +.tran 1e-03 100e-03 0e-03 * Control Statements .control diff --git a/Examples/InvertingAmplifier/InvertingAmplifier.pro b/Examples/InvertingAmplifier/InvertingAmplifier.pro index 55c43b89..53f08b39 100644 --- a/Examples/InvertingAmplifier/InvertingAmplifier.pro +++ b/Examples/InvertingAmplifier/InvertingAmplifier.pro @@ -1,4 +1,4 @@ -update=Wed Mar 11 16:36:50 2020 +update=Fri Mar 27 17:42:30 2020 version=1 last_client=eeschema [general] @@ -31,39 +31,40 @@ NetIExt=net version=1 LibDir= [eeschema/libraries] -LibName1=eSim_Analog -LibName2=eSim_Devices -LibName3=eSim_Digital -LibName4=eSim_Hybrid -LibName5=eSim_Miscellaneous -LibName6=eSim_Plot -LibName7=eSim_Power -LibName8=eSim_Sources -LibName9=eSim_Subckt -LibName10=eSim_User -LibName11=adc-dac -LibName12=memory -LibName13=xilinx -LibName14=microcontrollers -LibName15=dsp -LibName16=microchip -LibName17=analog_switches -LibName18=motorola -LibName19=texas -LibName20=intel -LibName21=audio -LibName22=interface -LibName23=digital-audio -LibName24=philips -LibName25=display -LibName26=cypress -LibName27=siliconi -LibName28=opto -LibName29=atmel -LibName30=contrib -LibName31=power -LibName32=transistors -LibName33=conn -LibName34=regul -LibName35=74xx -LibName36=cmos4000 +LibName1=InvertingAmplifier-rescue +LibName2=eSim_Analog +LibName3=eSim_Devices +LibName4=eSim_Digital +LibName5=eSim_Hybrid +LibName6=eSim_Miscellaneous +LibName7=eSim_Plot +LibName8=eSim_Power +LibName9=eSim_Sources +LibName10=eSim_Subckt +LibName11=eSim_User +LibName12=adc-dac +LibName13=memory +LibName14=xilinx +LibName15=microcontrollers +LibName16=dsp +LibName17=microchip +LibName18=analog_switches +LibName19=motorola +LibName20=texas +LibName21=intel +LibName22=audio +LibName23=interface +LibName24=digital-audio +LibName25=philips +LibName26=display +LibName27=cypress +LibName28=siliconi +LibName29=opto +LibName30=atmel +LibName31=contrib +LibName32=power +LibName33=transistors +LibName34=conn +LibName35=regul +LibName36=74xx +LibName37=cmos4000 diff --git a/Examples/InvertingAmplifier/InvertingAmplifier.sch b/Examples/InvertingAmplifier/InvertingAmplifier.sch index 8eb7ed7c..2047e755 100644 --- a/Examples/InvertingAmplifier/InvertingAmplifier.sch +++ b/Examples/InvertingAmplifier/InvertingAmplifier.sch @@ -1,4 +1,5 @@ EESchema Schematic File Version 2 +LIBS:InvertingAmplifier-rescue LIBS:eSim_Analog LIBS:eSim_Devices LIBS:eSim_Digital @@ -30,10 +31,8 @@ LIBS:opto LIBS:atmel LIBS:contrib LIBS:power -LIBS:device LIBS:transistors LIBS:conn -LIBS:linear LIBS:regul LIBS:74xx LIBS:cmos4000 @@ -53,19 +52,8 @@ Comment3 "" Comment4 "" $EndDescr $Comp -L UA741 X1 -U 1 1 56A88D40 -P 6000 3400 -F 0 "X1" H 6150 3400 60 0000 C CNN -F 1 "UA741" H 6250 3250 60 0000 C CNN -F 2 "" H 6000 3400 60 0000 C CNN -F 3 "" H 6000 3400 60 0000 C CNN - 1 6000 3400 - 1 0 0 1 -$EndComp -$Comp L R R1 -U 1 1 56A88DB5 +U 1 1 5E7DEECC P 5250 3350 F 0 "R1" H 5300 3480 50 0000 C CNN F 1 "1k" H 5300 3400 50 0000 C CNN @@ -75,10 +63,10 @@ F 3 "" V 5300 3400 30 0000 C CNN 1 0 0 -1 $EndComp $Comp -L R R2 -U 1 1 56A88DD8 +L R R3 +U 1 1 5E7DEECD P 6100 2850 -F 0 "R2" H 6150 2980 50 0000 C CNN +F 0 "R3" H 6150 2980 50 0000 C CNN F 1 "5k" H 6150 2900 50 0000 C CNN F 2 "" H 6150 2830 30 0000 C CNN F 3 "" V 6150 2900 30 0000 C CNN @@ -87,7 +75,7 @@ F 3 "" V 6150 2900 30 0000 C CNN $EndComp $Comp L sine v1 -U 1 1 56A88E30 +U 1 1 5E7DEECE P 4850 3750 F 0 "v1" H 4650 3850 60 0000 C CNN F 1 "sine" H 4650 3700 60 0000 C CNN @@ -98,18 +86,18 @@ F 3 "" H 4850 3750 60 0000 C CNN $EndComp $Comp L GND #PWR01 -U 1 1 56A88EC6 -P 5600 3850 -F 0 "#PWR01" H 5600 3600 50 0001 C CNN -F 1 "GND" H 5600 3700 50 0000 C CNN -F 2 "" H 5600 3850 50 0000 C CNN -F 3 "" H 5600 3850 50 0000 C CNN - 1 5600 3850 +U 1 1 5E7DEECF +P 5600 3900 +F 0 "#PWR01" H 5600 3650 50 0001 C CNN +F 1 "GND" H 5600 3750 50 0000 C CNN +F 2 "" H 5600 3900 50 0000 C CNN +F 3 "" H 5600 3900 50 0000 C CNN + 1 5600 3900 1 0 0 -1 $EndComp $Comp L GND #PWR02 -U 1 1 56A88F10 +U 1 1 5E7DEED0 P 4850 4200 F 0 "#PWR02" H 4850 3950 50 0001 C CNN F 1 "GND" H 4850 4050 50 0000 C CNN @@ -118,74 +106,46 @@ F 3 "" H 4850 4200 50 0000 C CNN 1 4850 4200 1 0 0 -1 $EndComp -Wire Wire Line - 4850 3300 5150 3300 -Wire Wire Line - 5450 3300 5800 3300 -Wire Wire Line - 6000 2800 5650 2800 -Wire Wire Line - 5650 2800 5650 3300 -Connection ~ 5650 3300 -Wire Wire Line - 6550 3400 6900 3400 -Wire Wire Line - 6700 3400 6700 2800 -Wire Wire Line - 6700 2800 6300 2800 Text GLabel 4900 3150 0 60 Input ~ 0 in -Wire Wire Line - 4900 3150 4950 3150 -Wire Wire Line - 4950 3100 4950 3300 -Connection ~ 4950 3300 -Connection ~ 6700 3400 $Comp -L R R3 -U 1 1 56A890CA -P 7000 3450 -F 0 "R3" H 7050 3580 50 0000 C CNN -F 1 "1k" H 7050 3500 50 0000 C CNN -F 2 "" H 7050 3430 30 0000 C CNN -F 3 "" V 7050 3500 30 0000 C CNN - 1 7000 3450 +L R R4 +U 1 1 5E7DEED1 +P 7550 3500 +F 0 "R4" H 7600 3630 50 0000 C CNN +F 1 "1k" H 7600 3550 50 0000 C CNN +F 2 "" H 7600 3480 30 0000 C CNN +F 3 "" V 7600 3550 30 0000 C CNN + 1 7550 3500 1 0 0 -1 $EndComp $Comp L GND #PWR03 -U 1 1 56A89129 -P 7200 3400 -F 0 "#PWR03" H 7200 3150 50 0001 C CNN -F 1 "GND" H 7200 3250 50 0000 C CNN -F 2 "" H 7200 3400 50 0000 C CNN -F 3 "" H 7200 3400 50 0000 C CNN - 1 7200 3400 +U 1 1 5E7DEED2 +P 7750 3450 +F 0 "#PWR03" H 7750 3200 50 0001 C CNN +F 1 "GND" H 7750 3300 50 0000 C CNN +F 2 "" H 7750 3450 50 0000 C CNN +F 3 "" H 7750 3450 50 0000 C CNN + 1 7750 3450 1 0 0 -1 $EndComp -Text GLabel 6950 3250 2 60 Input ~ 0 +Text GLabel 7500 3300 2 60 Input ~ 0 out -Wire Wire Line - 6850 3150 6850 3400 -Connection ~ 6850 3400 $Comp -L R R4 -U 1 1 56A891BE -P 5550 3650 -F 0 "R4" H 5600 3780 50 0000 C CNN -F 1 "1k" H 5600 3700 50 0000 C CNN -F 2 "" H 5600 3630 30 0000 C CNN -F 3 "" V 5600 3700 30 0000 C CNN - 1 5550 3650 +L R R2 +U 1 1 5E7DEED3 +P 5550 3700 +F 0 "R2" H 5600 3830 50 0000 C CNN +F 1 "1k" H 5600 3750 50 0000 C CNN +F 2 "" H 5600 3680 30 0000 C CNN +F 3 "" V 5600 3750 30 0000 C CNN + 1 5550 3700 0 1 1 0 $EndComp -Wire Wire Line - 5800 3500 5600 3500 -Wire Wire Line - 5600 3500 5600 3550 $Comp L plot_v1 U1 -U 1 1 56D45D15 +U 1 1 5E7DEED4 P 4950 3300 F 0 "U1" H 4950 3800 60 0000 C CNN F 1 "plot_v1" H 5150 3650 60 0000 C CNN @@ -196,17 +156,110 @@ F 3 "" H 4950 3300 60 0000 C CNN $EndComp $Comp L plot_v1 U2 -U 1 1 56D45D99 -P 6850 3350 -F 0 "U2" H 6850 3850 60 0000 C CNN -F 1 "plot_v1" H 7050 3700 60 0000 C CNN -F 2 "" H 6850 3350 60 0000 C CNN -F 3 "" H 6850 3350 60 0000 C CNN - 1 6850 3350 +U 1 1 5E7DEED5 +P 7400 3400 +F 0 "U2" H 7400 3900 60 0000 C CNN +F 1 "plot_v1" H 7600 3750 60 0000 C CNN +F 2 "" H 7400 3400 60 0000 C CNN +F 3 "" H 7400 3400 60 0000 C CNN + 1 7400 3400 + 1 0 0 -1 +$EndComp +$Comp +L DC v3 +U 1 1 5E7DEED6 +P 6750 2350 +F 0 "v3" H 6550 2450 60 0000 C CNN +F 1 "12" H 6550 2300 60 0000 C CNN +F 2 "R1" H 6450 2350 60 0000 C CNN +F 3 "" H 6750 2350 60 0000 C CNN + 1 6750 2350 + 0 -1 -1 0 +$EndComp +$Comp +L GND #PWR04 +U 1 1 5E7DEED7 +P 7200 2550 +F 0 "#PWR04" H 7200 2300 50 0001 C CNN +F 1 "GND" H 7200 2400 50 0000 C CNN +F 2 "" H 7200 2550 50 0001 C CNN +F 3 "" H 7200 2550 50 0001 C CNN + 1 7200 2550 1 0 0 -1 $EndComp +$Comp +L DC v2 +U 1 1 5E7DEED8 +P 6650 4100 +F 0 "v2" H 6450 4200 60 0000 C CNN +F 1 "12" H 6450 4050 60 0000 C CNN +F 2 "R1" H 6350 4100 60 0000 C CNN +F 3 "" H 6650 4100 60 0000 C CNN + 1 6650 4100 + 0 1 -1 0 +$EndComp +$Comp +L GND #PWR05 +U 1 1 5E7DEED9 +P 7250 4100 +F 0 "#PWR05" H 7250 3850 50 0001 C CNN +F 1 "GND" H 7250 3950 50 0000 C CNN +F 2 "" H 7250 4100 50 0001 C CNN +F 3 "" H 7250 4100 50 0001 C CNN + 1 7250 4100 + 0 -1 -1 0 +$EndComp +Wire Wire Line + 4850 3300 5150 3300 +Wire Wire Line + 5450 3300 5800 3300 +Wire Wire Line + 6000 2800 5650 2800 +Wire Wire Line + 5650 2800 5650 3300 +Connection ~ 5650 3300 +Wire Wire Line + 6900 3450 7450 3450 +Wire Wire Line + 6300 2800 7050 2800 +Wire Wire Line + 4900 3150 4950 3150 +Wire Wire Line + 4950 3100 4950 3300 +Connection ~ 4950 3300 Wire Wire Line - 6950 3250 6850 3250 -Connection ~ 6850 3250 + 7400 3200 7400 3450 +Connection ~ 7400 3450 +Wire Wire Line + 5800 3550 5600 3550 +Wire Wire Line + 5600 3550 5600 3600 +Wire Wire Line + 7500 3300 7400 3300 +Connection ~ 7400 3300 Connection ~ 4950 3150 +Wire Wire Line + 7200 2550 7200 2350 +Wire Wire Line + 7100 4100 7250 4100 +$Comp +L lm_741 X1 +U 1 1 5E7DEEDA +P 6350 3450 +F 0 "X1" H 6150 3450 60 0000 C CNN +F 1 "lm_741" H 6250 3200 60 0000 C CNN +F 2 "" H 6350 3450 60 0000 C CNN +F 3 "" H 6350 3450 60 0000 C CNN + 1 6350 3450 + 1 0 0 -1 +$EndComp +Wire Wire Line + 7050 2800 7050 3450 +Connection ~ 7050 3450 +Wire Wire Line + 6300 2350 6200 2350 +Wire Wire Line + 6200 2350 6200 3000 +Wire Wire Line + 6200 3900 6200 4100 $EndSCHEMATC diff --git a/Examples/InvertingAmplifier/InvertingAmplifier_Previous_Values.xml b/Examples/InvertingAmplifier/InvertingAmplifier_Previous_Values.xml index 8c7b2d97..9207f2c8 100644 --- a/Examples/InvertingAmplifier/InvertingAmplifier_Previous_Values.xml +++ b/Examples/InvertingAmplifier/InvertingAmplifier_Previous_Values.xml @@ -1 +1 @@ -<KicadtoNgspice><source><v1 name="Source type">sine<field1 name="Offset Value">0</field1><field2 name="Amplitude">2</field2><field3 name="Frequency">50</field3><field4 name="Delay Time">0</field4><field5 name="Damping Factor">0</field5></v1></source><model /><devicemodel /><subcircuit><x1><field>/home/fossee/esim-updated/eSim/src/SubcircuitLibrary/ua741</field></x1></subcircuit><analysis><ac><field1 name="Lin">true</field1><field2 name="Dec">false</field2><field3 name="Oct">false</field3><field4 name="Start Frequency" /><field5 name="Stop Frequency" /><field6 name="No. of points" /><field7 name="Start Fre Combo">Hz</field7><field8 name="Stop Fre Combo">Hz</field8></ac><dc><field1 name="Source 1" /><field2 name="Start" /><field3 name="Increment" /><field4 name="Stop" /><field5 name="Operating Point">0</field5><field6 name="Start Combo">Volts or Amperes</field6><field7 name="Increment Combo">Volts or Amperes</field7><field8 name="Stop Combo">Volts or Amperes</field8><field9 name="Source 2" /><field10 name="Start" /><field11 name="Increment" /><field12 name="Stop" /><field13 name="Start Combo">Volts or Amperes</field13><field14 name="Increment Combo">Volts or Amperes</field14><field15 name="Stop Combo">Volts or Amperes</field15></dc><tran><field1 name="Start Time">0</field1><field2 name="Step Time">10</field2><field3 name="Stop Time">100</field3><field4 name="Start Combo">ms</field4><field5 name="Step Combo">ms</field5><field6 name="Stop Combo">ms</field6></tran></analysis></KicadtoNgspice>
\ No newline at end of file +<KicadtoNgspice><source><v1 name="Source type">sine<field1 name="Offset Value">0</field1><field2 name="Amplitude">2</field2><field3 name="Frequency">50</field3><field4 name="Delay Time">0</field4><field5 name="Damping Factor">0</field5></v1><v3 name="Source type">12</v3><v2 name="Source type">12</v2></source><model /><devicemodel /><subcircuit><x1><field>/home/saurabh/Desktop/eSim-2.0/library/SubcircuitLibrary/lm_741</field></x1></subcircuit><analysis><ac><field1 name="Lin">true</field1><field2 name="Dec">false</field2><field3 name="Oct">false</field3><field4 name="Start Frequency" /><field5 name="Stop Frequency" /><field6 name="No. of points" /><field7 name="Start Fre Combo">Hz</field7><field8 name="Stop Fre Combo">Hz</field8></ac><dc><field1 name="Source 1" /><field2 name="Start" /><field3 name="Increment" /><field4 name="Stop" /><field5 name="Operating Point">0</field5><field6 name="Start Combo">Volts or Amperes</field6><field7 name="Increment Combo">Volts or Amperes</field7><field8 name="Stop Combo">Volts or Amperes</field8><field9 name="Source 2" /><field10 name="Start" /><field11 name="Increment" /><field12 name="Stop" /><field13 name="Start Combo">Volts or Amperes</field13><field14 name="Increment Combo">Volts or Amperes</field14><field15 name="Stop Combo">Volts or Amperes</field15></dc><tran><field1 name="Start Time">0</field1><field2 name="Step Time">1</field2><field3 name="Stop Time">100</field3><field4 name="Start Combo">ms</field4><field5 name="Step Combo">ms</field5><field6 name="Stop Combo">ms</field6></tran></analysis></KicadtoNgspice>
\ No newline at end of file diff --git a/Examples/InvertingAmplifier/NPN.lib b/Examples/InvertingAmplifier/NPN.lib new file mode 100644 index 00000000..6509fe7a --- /dev/null +++ b/Examples/InvertingAmplifier/NPN.lib @@ -0,0 +1,4 @@ +.model Q2N2222 NPN( Is=14.34f Xti=3 Eg=1.11 Vaf=74.03 Bf=400 Ne=1.307 ++ Ise=14.34f Ikf=.2847 Xtb=1.5 Br=6.092 Nc=2 Isc=0 Ikr=0 Rc=1 Cjc=7.306p ++ Mjc=.3416 Vjc=.75 Fc=.5 Cje=22.01p Mje=.377 Vje=.75 Tr=46.91n Tf=411.1p ++ Itf=.6 Vtf=1.7 Xtf=3 Rb=10) diff --git a/Examples/InvertingAmplifier/PNP.lib b/Examples/InvertingAmplifier/PNP.lib new file mode 100644 index 00000000..7edda0ea --- /dev/null +++ b/Examples/InvertingAmplifier/PNP.lib @@ -0,0 +1,4 @@ +.model Q2N2907A PNP(Is=650.6E-18 Xti=3 Eg=1.11 Vaf=115.7 Bf=231.7 Ne=1.829 ++ Ise=54.81f Ikf=1.079 Xtb=1.5 Br=3.563 Nc=2 Isc=0 Ikr=0 Rc=.715 ++ Cjc=14.76p Mjc=.5383 Vjc=.75 Fc=.5 Cje=19.82p Mje=.3357 Vje=.75 ++ Tr=111.3n Tf=603.7p Itf=.65 Vtf=5 Xtf=1.7 Rb=10) diff --git a/Examples/InvertingAmplifier/analysis b/Examples/InvertingAmplifier/analysis index 660a46cc..32436d42 100644 --- a/Examples/InvertingAmplifier/analysis +++ b/Examples/InvertingAmplifier/analysis @@ -1 +1 @@ -.tran 10e-03 100e-03 0e-03
\ No newline at end of file +.tran 1e-03 100e-03 0e-03
\ No newline at end of file diff --git a/Examples/InvertingAmplifier/lm_741-cache.lib b/Examples/InvertingAmplifier/lm_741-cache.lib new file mode 100644 index 00000000..32e31aa1 --- /dev/null +++ b/Examples/InvertingAmplifier/lm_741-cache.lib @@ -0,0 +1,120 @@ +EESchema-LIBRARY Version 2.3 +#encoding utf-8 +# +# PORT +# +DEF PORT U 0 40 Y Y 26 F N +F0 "U" 50 100 30 H V C CNN +F1 "PORT" 0 0 30 H V C CNN +F2 "" 0 0 60 H V C CNN +F3 "" 0 0 60 H V C CNN +DRAW +A 325 225 285 -1421 -1278 0 1 0 N 100 50 150 0 +A 376 -275 356 1294 1408 0 1 0 N 150 0 100 -50 +S -100 50 100 -50 0 1 0 N +X ~ 1 250 0 100 L 30 30 1 1 B +X ~ 2 250 0 100 L 30 30 2 1 B +X ~ 3 250 0 100 L 30 30 3 1 B +X ~ 4 250 0 100 L 30 30 4 1 B +X ~ 5 250 0 100 L 30 30 5 1 B +X ~ 6 250 0 100 L 30 30 6 1 B +X ~ 7 250 0 100 L 30 30 7 1 B +X ~ 8 250 0 100 L 30 30 8 1 B +X ~ 9 250 0 100 L 30 30 9 1 B +X ~ 10 250 0 100 L 30 30 10 1 B +X ~ 11 250 0 100 L 30 30 11 1 B +X ~ 12 250 0 100 L 30 30 12 1 B +X ~ 13 250 0 100 L 30 30 13 1 B +X ~ 14 250 0 100 L 30 30 14 1 B +X ~ 15 250 0 100 L 30 30 15 1 B +X ~ 16 250 0 100 L 30 30 16 1 B +X ~ 17 250 0 100 L 30 30 17 1 B +X ~ 18 250 0 100 L 30 30 18 1 B +X ~ 19 250 0 100 L 30 30 19 1 B +X ~ 20 250 0 100 L 30 30 20 1 B +X ~ 21 250 0 100 L 30 30 21 1 B +X ~ 22 250 0 100 L 30 30 22 1 B +X ~ 23 250 0 100 L 30 30 23 1 B +X ~ 24 250 0 100 L 30 30 24 1 B +X ~ 25 250 0 100 L 30 30 25 1 B +X ~ 26 250 0 100 L 30 30 26 1 B +ENDDRAW +ENDDEF +# +# eSim_C +# +DEF eSim_C C 0 10 N Y 1 F N +F0 "C" 25 100 50 H V L CNN +F1 "eSim_C" 25 -100 50 H V L CNN +F2 "" 38 -150 30 H V C CNN +F3 "" 0 0 60 H V C CNN +ALIAS capacitor +$FPLIST + C_* +$ENDFPLIST +DRAW +P 2 0 1 20 -80 -30 80 -30 N +P 2 0 1 20 -80 30 80 30 N +X ~ 1 0 150 110 D 40 40 1 1 P +X ~ 2 0 -150 110 U 40 40 1 1 P +ENDDRAW +ENDDEF +# +# eSim_NPN-RESCUE-lm_741 +# +DEF eSim_NPN-RESCUE-lm_741 Q 0 0 Y N 1 F N +F0 "Q" -100 50 50 H V R CNN +F1 "eSim_NPN-RESCUE-lm_741" -50 150 50 H V R CNN +F2 "" 200 100 29 H V C CNN +F3 "" 0 0 60 H V C CNN +DRAW +C 50 0 111 0 1 10 N +P 2 0 1 0 25 25 100 100 N +P 3 0 1 0 25 -25 100 -100 100 -100 N +P 3 0 1 20 25 75 25 -75 25 -75 N +P 5 0 1 0 50 -70 70 -50 90 -90 50 -70 50 -70 F +X C 1 100 200 100 D 50 50 1 1 C +X B 2 -200 0 225 R 50 50 1 1 I +X E 3 100 -200 100 U 50 50 1 1 E +ENDDRAW +ENDDEF +# +# eSim_PNP-RESCUE-lm_741 +# +DEF eSim_PNP-RESCUE-lm_741 Q 0 0 Y N 1 F N +F0 "Q" -100 50 50 H V R CNN +F1 "eSim_PNP-RESCUE-lm_741" -50 150 50 H V R CNN +F2 "" 200 100 29 H V C CNN +F3 "" 0 0 60 H V C CNN +DRAW +C 50 0 111 0 1 10 N +P 2 0 1 0 25 25 100 100 N +P 3 0 1 0 25 -25 100 -100 100 -100 N +P 3 0 1 20 25 75 25 -75 25 -75 N +P 5 0 1 0 90 -70 70 -90 50 -50 90 -70 90 -70 F +X C 1 100 200 100 D 50 50 1 1 C +X B 2 -200 0 225 R 50 50 1 1 I +X E 3 100 -200 100 U 50 50 1 1 E +ENDDRAW +ENDDEF +# +# eSim_R +# +DEF eSim_R R 0 0 N Y 1 F N +F0 "R" 50 130 50 H V C CNN +F1 "eSim_R" 50 -50 50 H V C CNN +F2 "" 50 -20 30 H V C CNN +F3 "" 50 50 30 V V C CNN +ALIAS resistor +$FPLIST + R_* + Resistor_* +$ENDFPLIST +DRAW +S 150 10 -50 90 0 1 10 N +X ~ 1 -100 50 50 R 60 60 1 1 P +X ~ 2 200 50 50 L 60 60 1 1 P +ENDDRAW +ENDDEF +# +#End Library diff --git a/Examples/InvertingAmplifier/lm_741-rescue.lib b/Examples/InvertingAmplifier/lm_741-rescue.lib new file mode 100644 index 00000000..1ac4cbd4 --- /dev/null +++ b/Examples/InvertingAmplifier/lm_741-rescue.lib @@ -0,0 +1,42 @@ +EESchema-LIBRARY Version 2.3 +#encoding utf-8 +# +# eSim_NPN-RESCUE-lm_741 +# +DEF eSim_NPN-RESCUE-lm_741 Q 0 0 Y N 1 F N +F0 "Q" -100 50 50 H V R CNN +F1 "eSim_NPN-RESCUE-lm_741" -50 150 50 H V R CNN +F2 "" 200 100 29 H V C CNN +F3 "" 0 0 60 H V C CNN +DRAW +C 50 0 111 0 1 10 N +P 2 0 1 0 25 25 100 100 N +P 3 0 1 0 25 -25 100 -100 100 -100 N +P 3 0 1 20 25 75 25 -75 25 -75 N +P 5 0 1 0 50 -70 70 -50 90 -90 50 -70 50 -70 F +X C 1 100 200 100 D 50 50 1 1 C +X B 2 -200 0 225 R 50 50 1 1 I +X E 3 100 -200 100 U 50 50 1 1 E +ENDDRAW +ENDDEF +# +# eSim_PNP-RESCUE-lm_741 +# +DEF eSim_PNP-RESCUE-lm_741 Q 0 0 Y N 1 F N +F0 "Q" -100 50 50 H V R CNN +F1 "eSim_PNP-RESCUE-lm_741" -50 150 50 H V R CNN +F2 "" 200 100 29 H V C CNN +F3 "" 0 0 60 H V C CNN +DRAW +C 50 0 111 0 1 10 N +P 2 0 1 0 25 25 100 100 N +P 3 0 1 0 25 -25 100 -100 100 -100 N +P 3 0 1 20 25 75 25 -75 25 -75 N +P 5 0 1 0 90 -70 70 -90 50 -50 90 -70 90 -70 F +X C 1 100 200 100 D 50 50 1 1 C +X B 2 -200 0 225 R 50 50 1 1 I +X E 3 100 -200 100 U 50 50 1 1 E +ENDDRAW +ENDDEF +# +#End Library diff --git a/Examples/InvertingAmplifier/lm_741.cir b/Examples/InvertingAmplifier/lm_741.cir new file mode 100644 index 00000000..4a5917ea --- /dev/null +++ b/Examples/InvertingAmplifier/lm_741.cir @@ -0,0 +1,43 @@ +* C:\Users\malli\eSim\src\SubcircuitLibrary\lm_741\lm_741.cir + +* EESchema Netlist Version 1.1 (Spice format) creation date: 05/25/19 19:37:28 + +* To exclude a component from the Spice Netlist add [Spice_Netlist_Enabled] user FIELD set to: N +* To reorder the component spice node sequence add [Spice_Node_Sequence] user FIELD and define sequence: 2,1,0 + +* Sheet Name: / +Q1 Net-_Q1-Pad1_ Net-_Q1-Pad2_ Net-_Q1-Pad3_ eSim_NPN +Q2 Net-_Q1-Pad1_ Net-_Q2-Pad2_ Net-_Q2-Pad3_ eSim_NPN +Q6 Net-_Q3-Pad2_ Net-_Q13-Pad1_ Net-_Q1-Pad3_ eSim_PNP +Q5 Net-_C1-Pad2_ Net-_Q13-Pad1_ Net-_Q2-Pad3_ eSim_PNP +Q3 Net-_Q10-Pad3_ Net-_Q3-Pad2_ Net-_Q3-Pad3_ eSim_NPN +Q4 Net-_Q1-Pad1_ Net-_Q1-Pad1_ Net-_Q10-Pad3_ eSim_PNP +Q9 Net-_Q13-Pad1_ Net-_Q1-Pad1_ Net-_Q10-Pad3_ eSim_PNP +Q8 Net-_C1-Pad2_ Net-_Q3-Pad3_ Net-_Q8-Pad3_ eSim_NPN +Q7 Net-_Q3-Pad2_ Net-_Q3-Pad3_ Net-_Q7-Pad3_ eSim_NPN +R1 Net-_Q7-Pad3_ Net-_Q12-Pad3_ 1k +R2 Net-_Q3-Pad3_ Net-_Q12-Pad3_ 50k +R3 Net-_Q8-Pad3_ Net-_Q12-Pad3_ 1k +Q12 Net-_Q12-Pad1_ Net-_Q12-Pad1_ Net-_Q12-Pad3_ eSim_NPN +Q13 Net-_Q13-Pad1_ Net-_Q12-Pad1_ Net-_Q13-Pad3_ eSim_NPN +R4 Net-_Q13-Pad3_ Net-_Q12-Pad3_ 5k +R11 Net-_Q10-Pad1_ Net-_Q12-Pad1_ 39k +Q10 Net-_Q10-Pad1_ Net-_Q10-Pad1_ Net-_Q10-Pad3_ eSim_PNP +Q11 Net-_C1-Pad1_ Net-_Q10-Pad1_ Net-_Q10-Pad3_ eSim_PNP +Q14 Net-_C1-Pad1_ Net-_Q14-Pad2_ Net-_Q14-Pad3_ eSim_NPN +R8 Net-_C1-Pad1_ Net-_Q14-Pad2_ 4.5k +R7 Net-_Q14-Pad3_ Net-_Q14-Pad2_ 7.5k +C1 Net-_C1-Pad1_ Net-_C1-Pad2_ 30p +Q16 Net-_Q14-Pad3_ Net-_C1-Pad2_ Net-_Q15-Pad2_ eSim_NPN +Q15 Net-_Q14-Pad3_ Net-_Q15-Pad2_ Net-_Q15-Pad3_ eSim_NPN +R5 Net-_Q15-Pad2_ Net-_Q12-Pad3_ 50k +R6 Net-_Q15-Pad3_ Net-_Q12-Pad3_ 50 +Q17 Net-_C1-Pad2_ Net-_Q15-Pad3_ Net-_Q12-Pad3_ eSim_NPN +Q18 Net-_Q10-Pad3_ Net-_C1-Pad1_ Net-_Q18-Pad3_ eSim_NPN +Q20 Net-_C1-Pad1_ Net-_Q18-Pad3_ Net-_Q20-Pad3_ eSim_NPN +R9 Net-_Q18-Pad3_ Net-_Q20-Pad3_ 25 +R10 Net-_Q20-Pad3_ Net-_Q19-Pad3_ 50 +Q19 Net-_Q12-Pad3_ Net-_Q14-Pad3_ Net-_Q19-Pad3_ eSim_PNP +U1 Net-_Q7-Pad3_ Net-_Q2-Pad2_ Net-_Q1-Pad2_ Net-_Q12-Pad3_ Net-_Q8-Pad3_ Net-_Q20-Pad3_ Net-_Q10-Pad3_ ? PORT + +.end diff --git a/Examples/InvertingAmplifier/lm_741.cir.out b/Examples/InvertingAmplifier/lm_741.cir.out new file mode 100644 index 00000000..a00bd86a --- /dev/null +++ b/Examples/InvertingAmplifier/lm_741.cir.out @@ -0,0 +1,46 @@ +* c:\users\malli\esim\src\subcircuitlibrary\lm_741\lm_741.cir + +.include npn_1.lib +.include pnp_1.lib +q1 net-_q1-pad1_ net-_q1-pad2_ net-_q1-pad3_ npn_1 +q2 net-_q1-pad1_ net-_q2-pad2_ net-_q2-pad3_ npn_1 +q6 net-_q3-pad2_ net-_q13-pad1_ net-_q1-pad3_ pnp_1 +q5 net-_c1-pad2_ net-_q13-pad1_ net-_q2-pad3_ pnp_1 +q3 net-_q10-pad3_ net-_q3-pad2_ net-_q3-pad3_ npn_1 +q4 net-_q1-pad1_ net-_q1-pad1_ net-_q10-pad3_ pnp_1 +q9 net-_q13-pad1_ net-_q1-pad1_ net-_q10-pad3_ pnp_1 +q8 net-_c1-pad2_ net-_q3-pad3_ net-_q8-pad3_ npn_1 +q7 net-_q3-pad2_ net-_q3-pad3_ net-_q7-pad3_ npn_1 +r1 net-_q7-pad3_ net-_q12-pad3_ 1k +r2 net-_q3-pad3_ net-_q12-pad3_ 50k +r3 net-_q8-pad3_ net-_q12-pad3_ 1k +q12 net-_q12-pad1_ net-_q12-pad1_ net-_q12-pad3_ npn_1 +q13 net-_q13-pad1_ net-_q12-pad1_ net-_q13-pad3_ npn_1 +r4 net-_q13-pad3_ net-_q12-pad3_ 5k +r11 net-_q10-pad1_ net-_q12-pad1_ 39k +q10 net-_q10-pad1_ net-_q10-pad1_ net-_q10-pad3_ pnp_1 +q11 net-_c1-pad1_ net-_q10-pad1_ net-_q10-pad3_ pnp_1 +q14 net-_c1-pad1_ net-_q14-pad2_ net-_q14-pad3_ npn_1 +r8 net-_c1-pad1_ net-_q14-pad2_ 4.5k +r7 net-_q14-pad3_ net-_q14-pad2_ 7.5k +c1 net-_c1-pad1_ net-_c1-pad2_ 30p +q16 net-_q14-pad3_ net-_c1-pad2_ net-_q15-pad2_ npn_1 +q15 net-_q14-pad3_ net-_q15-pad2_ net-_q15-pad3_ npn_1 +r5 net-_q15-pad2_ net-_q12-pad3_ 50k +r6 net-_q15-pad3_ net-_q12-pad3_ 50 +q17 net-_c1-pad2_ net-_q15-pad3_ net-_q12-pad3_ npn_1 +q18 net-_q10-pad3_ net-_c1-pad1_ net-_q18-pad3_ npn_1 +q20 net-_c1-pad1_ net-_q18-pad3_ net-_q20-pad3_ npn_1 +r9 net-_q18-pad3_ net-_q20-pad3_ 25 +r10 net-_q20-pad3_ net-_q19-pad3_ 50 +q19 net-_q12-pad3_ net-_q14-pad3_ net-_q19-pad3_ pnp_1 +* u1 net-_q7-pad3_ net-_q2-pad2_ net-_q1-pad2_ net-_q12-pad3_ net-_q8-pad3_ net-_q20-pad3_ net-_q10-pad3_ ? port +.tran 0e-00 0e-00 0e-00 + +* Control Statements +.control +run +print allv > plot_data_v.txt +print alli > plot_data_i.txt +.endc +.end diff --git a/Examples/InvertingAmplifier/lm_741.pro b/Examples/InvertingAmplifier/lm_741.pro new file mode 100644 index 00000000..ea47a221 --- /dev/null +++ b/Examples/InvertingAmplifier/lm_741.pro @@ -0,0 +1,45 @@ +update=Fri Mar 20 14:12:34 2020 +version=1 +last_client=eeschema +[general] +version=1 +RootSch= +BoardNm= +[pcbnew] +version=1 +LastNetListRead= +UseCmpFile=1 +PadDrill=0.600000000000 +PadDrillOvalY=0.600000000000 +PadSizeH=1.500000000000 +PadSizeV=1.500000000000 +PcbTextSizeV=1.500000000000 +PcbTextSizeH=1.500000000000 +PcbTextThickness=0.300000000000 +ModuleTextSizeV=1.000000000000 +ModuleTextSizeH=1.000000000000 +ModuleTextSizeThickness=0.150000000000 +SolderMaskClearance=0.000000000000 +SolderMaskMinWidth=0.000000000000 +DrawSegmentWidth=0.200000000000 +BoardOutlineThickness=0.100000000000 +ModuleOutlineThickness=0.150000000000 +[cvpcb] +version=1 +NetIExt=net +[eeschema] +version=1 +LibDir= +[eeschema/libraries] +LibName1=lm_741-rescue +LibName2=power +LibName3=eSim_Analog +LibName4=eSim_Devices +LibName5=eSim_Digital +LibName6=eSim_Hybrid +LibName7=eSim_Miscellaneous +LibName8=eSim_Plot +LibName9=eSim_Power +LibName10=eSim_User +LibName11=eSim_Sources +LibName12=eSim_Subckt diff --git a/Examples/InvertingAmplifier/lm_741.sch b/Examples/InvertingAmplifier/lm_741.sch new file mode 100644 index 00000000..698b434e --- /dev/null +++ b/Examples/InvertingAmplifier/lm_741.sch @@ -0,0 +1,697 @@ +EESchema Schematic File Version 2 +LIBS:lm_741-rescue +LIBS:power +LIBS:eSim_Analog +LIBS:eSim_Devices +LIBS:eSim_Digital +LIBS:eSim_Hybrid +LIBS:eSim_Miscellaneous +LIBS:eSim_Plot +LIBS:eSim_Power +LIBS:eSim_User +LIBS:eSim_Sources +LIBS:eSim_Subckt +LIBS:lm_741-cache +EELAYER 25 0 +EELAYER END +$Descr A4 11693 8268 +encoding utf-8 +Sheet 1 1 +Title "" +Date "" +Rev "" +Comp "" +Comment1 "" +Comment2 "" +Comment3 "" +Comment4 "" +$EndDescr +$Comp +L eSim_NPN-RESCUE-lm_741 Q1 +U 1 1 5CE90A7B +P 2650 2700 +F 0 "Q1" H 2550 2750 50 0000 R CNN +F 1 "eSim_NPN" H 2600 2850 50 0000 R CNN +F 2 "" H 2850 2800 29 0000 C CNN +F 3 "" H 2650 2700 60 0000 C CNN + 1 2650 2700 + 1 0 0 -1 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q2 +U 1 1 5CE90A7C +P 4300 2700 +F 0 "Q2" H 4200 2750 50 0000 R CNN +F 1 "eSim_NPN" H 4250 2850 50 0000 R CNN +F 2 "" H 4500 2800 29 0000 C CNN +F 3 "" H 4300 2700 60 0000 C CNN + 1 4300 2700 + -1 0 0 -1 +$EndComp +$Comp +L eSim_PNP-RESCUE-lm_741 Q6 +U 1 1 5CE90A7D +P 3000 3200 +F 0 "Q6" H 2900 3250 50 0000 R CNN +F 1 "eSim_PNP" H 2950 3350 50 0000 R CNN +F 2 "" H 3200 3300 29 0000 C CNN +F 3 "" H 3000 3200 60 0000 C CNN + 1 3000 3200 + -1 0 0 1 +$EndComp +$Comp +L eSim_PNP-RESCUE-lm_741 Q5 +U 1 1 5CE90A7E +P 3950 3200 +F 0 "Q5" H 3850 3250 50 0000 R CNN +F 1 "eSim_PNP" H 3900 3350 50 0000 R CNN +F 2 "" H 4150 3300 29 0000 C CNN +F 3 "" H 3950 3200 60 0000 C CNN + 1 3950 3200 + 1 0 0 1 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q3 +U 1 1 5CE90A7F +P 3300 4000 +F 0 "Q3" H 3200 4050 50 0000 R CNN +F 1 "eSim_NPN" H 3250 4150 50 0000 R CNN +F 2 "" H 3500 4100 29 0000 C CNN +F 3 "" H 3300 4000 60 0000 C CNN + 1 3300 4000 + 1 0 0 -1 +$EndComp +$Comp +L eSim_PNP-RESCUE-lm_741 Q4 +U 1 1 5CE90A80 +P 3850 2000 +F 0 "Q4" H 3750 2050 50 0000 R CNN +F 1 "eSim_PNP" H 3800 2150 50 0000 R CNN +F 2 "" H 4050 2100 29 0000 C CNN +F 3 "" H 3850 2000 60 0000 C CNN + 1 3850 2000 + -1 0 0 1 +$EndComp +$Comp +L eSim_PNP-RESCUE-lm_741 Q9 +U 1 1 5CE90A81 +P 5200 2000 +F 0 "Q9" H 5100 2050 50 0000 R CNN +F 1 "eSim_PNP" H 5150 2150 50 0000 R CNN +F 2 "" H 5400 2100 29 0000 C CNN +F 3 "" H 5200 2000 60 0000 C CNN + 1 5200 2000 + 1 0 0 1 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q8 +U 1 1 5CE90A82 +P 3950 4600 +F 0 "Q8" H 3850 4650 50 0000 R CNN +F 1 "eSim_NPN" H 3900 4750 50 0000 R CNN +F 2 "" H 4150 4700 29 0000 C CNN +F 3 "" H 3950 4600 60 0000 C CNN + 1 3950 4600 + 1 0 0 -1 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q7 +U 1 1 5CE90A83 +P 3000 4600 +F 0 "Q7" H 2900 4650 50 0000 R CNN +F 1 "eSim_NPN" H 2950 4750 50 0000 R CNN +F 2 "" H 3200 4700 29 0000 C CNN +F 3 "" H 3000 4600 60 0000 C CNN + 1 3000 4600 + -1 0 0 -1 +$EndComp +$Comp +L eSim_R R1 +U 1 1 5CE90A84 +P 2850 5200 +F 0 "R1" H 2900 5330 50 0000 C CNN +F 1 "1k" H 2900 5250 50 0000 C CNN +F 2 "" H 2900 5180 30 0000 C CNN +F 3 "" V 2900 5250 30 0000 C CNN + 1 2850 5200 + 0 1 1 0 +$EndComp +$Comp +L eSim_R R2 +U 1 1 5CE90A85 +P 3550 5200 +F 0 "R2" H 3600 5330 50 0000 C CNN +F 1 "50k" H 3600 5250 50 0000 C CNN +F 2 "" H 3600 5180 30 0000 C CNN +F 3 "" V 3600 5250 30 0000 C CNN + 1 3550 5200 + 0 1 1 0 +$EndComp +$Comp +L eSim_R R3 +U 1 1 5CE90A86 +P 4000 5200 +F 0 "R3" H 4050 5330 50 0000 C CNN +F 1 "1k" H 4050 5250 50 0000 C CNN +F 2 "" H 4050 5180 30 0000 C CNN +F 3 "" V 4050 5250 30 0000 C CNN + 1 4000 5200 + 0 1 1 0 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q12 +U 1 1 5CE90A87 +P 6300 4700 +F 0 "Q12" H 6200 4750 50 0000 R CNN +F 1 "eSim_NPN" H 6250 4850 50 0000 R CNN +F 2 "" H 6500 4800 29 0000 C CNN +F 3 "" H 6300 4700 60 0000 C CNN + 1 6300 4700 + 1 0 0 -1 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q13 +U 1 1 5CE90A88 +P 5400 4700 +F 0 "Q13" H 5300 4750 50 0000 R CNN +F 1 "eSim_NPN" H 5350 4850 50 0000 R CNN +F 2 "" H 5600 4800 29 0000 C CNN +F 3 "" H 5400 4700 60 0000 C CNN + 1 5400 4700 + -1 0 0 -1 +$EndComp +$Comp +L eSim_R R4 +U 1 1 5CE90A89 +P 5250 5200 +F 0 "R4" H 5300 5330 50 0000 C CNN +F 1 "5k" H 5300 5250 50 0000 C CNN +F 2 "" H 5300 5180 30 0000 C CNN +F 3 "" V 5300 5250 30 0000 C CNN + 1 5250 5200 + 0 1 1 0 +$EndComp +$Comp +L eSim_R R11 +U 1 1 5CE90A8A +P 6350 2750 +F 0 "R11" H 6400 2880 50 0000 C CNN +F 1 "39k" H 6400 2800 50 0000 C CNN +F 2 "" H 6400 2730 30 0000 C CNN +F 3 "" V 6400 2800 30 0000 C CNN + 1 6350 2750 + 0 1 1 0 +$EndComp +$Comp +L eSim_PNP-RESCUE-lm_741 Q10 +U 1 1 5CE90A8B +P 6500 1950 +F 0 "Q10" H 6400 2000 50 0000 R CNN +F 1 "eSim_PNP" H 6450 2100 50 0000 R CNN +F 2 "" H 6700 2050 29 0000 C CNN +F 3 "" H 6500 1950 60 0000 C CNN + 1 6500 1950 + -1 0 0 1 +$EndComp +$Comp +L eSim_PNP-RESCUE-lm_741 Q11 +U 1 1 5CE90A8C +P 7500 1950 +F 0 "Q11" H 7400 2000 50 0000 R CNN +F 1 "eSim_PNP" H 7450 2100 50 0000 R CNN +F 2 "" H 7700 2050 29 0000 C CNN +F 3 "" H 7500 1950 60 0000 C CNN + 1 7500 1950 + 1 0 0 1 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q14 +U 1 1 5CE90A8D +P 7500 3050 +F 0 "Q14" H 7400 3100 50 0000 R CNN +F 1 "eSim_NPN" H 7450 3200 50 0000 R CNN +F 2 "" H 7700 3150 29 0000 C CNN +F 3 "" H 7500 3050 60 0000 C CNN + 1 7500 3050 + 1 0 0 -1 +$EndComp +$Comp +L eSim_R R8 +U 1 1 5CE90A8E +P 7300 2600 +F 0 "R8" H 7350 2730 50 0000 C CNN +F 1 "4.5k" H 7350 2650 50 0000 C CNN +F 2 "" H 7350 2580 30 0000 C CNN +F 3 "" V 7350 2650 30 0000 C CNN + 1 7300 2600 + -1 0 0 1 +$EndComp +$Comp +L eSim_R R7 +U 1 1 5CE90A8F +P 7300 3400 +F 0 "R7" H 7350 3530 50 0000 C CNN +F 1 "7.5k" H 7350 3450 50 0000 C CNN +F 2 "" H 7350 3380 30 0000 C CNN +F 3 "" V 7350 3450 30 0000 C CNN + 1 7300 3400 + -1 0 0 1 +$EndComp +$Comp +L eSim_C C1 +U 1 1 5CE90A90 +P 6600 3200 +F 0 "C1" H 6625 3300 50 0000 L CNN +F 1 "30p" H 6625 3100 50 0000 L CNN +F 2 "" H 6638 3050 30 0000 C CNN +F 3 "" H 6600 3200 60 0000 C CNN + 1 6600 3200 + 1 0 0 -1 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q16 +U 1 1 5CE90A91 +P 7050 3950 +F 0 "Q16" H 6950 4000 50 0000 R CNN +F 1 "eSim_NPN" H 7000 4100 50 0000 R CNN +F 2 "" H 7250 4050 29 0000 C CNN +F 3 "" H 7050 3950 60 0000 C CNN + 1 7050 3950 + 1 0 0 -1 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q15 +U 1 1 5CE90A92 +P 7500 4300 +F 0 "Q15" H 7400 4350 50 0000 R CNN +F 1 "eSim_NPN" H 7450 4450 50 0000 R CNN +F 2 "" H 7700 4400 29 0000 C CNN +F 3 "" H 7500 4300 60 0000 C CNN + 1 7500 4300 + 1 0 0 -1 +$EndComp +$Comp +L eSim_R R5 +U 1 1 5CE90A93 +P 7100 5050 +F 0 "R5" H 7150 5180 50 0000 C CNN +F 1 "50k" H 7150 5100 50 0000 C CNN +F 2 "" H 7150 5030 30 0000 C CNN +F 3 "" V 7150 5100 30 0000 C CNN + 1 7100 5050 + 0 1 1 0 +$EndComp +$Comp +L eSim_R R6 +U 1 1 5CE90A94 +P 7550 5050 +F 0 "R6" H 7600 5180 50 0000 C CNN +F 1 "50" H 7600 5100 50 0000 C CNN +F 2 "" H 7600 5030 30 0000 C CNN +F 3 "" V 7600 5100 30 0000 C CNN + 1 7550 5050 + 0 1 1 0 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q17 +U 1 1 5CE90A95 +P 6800 4700 +F 0 "Q17" H 6700 4750 50 0000 R CNN +F 1 "eSim_NPN" H 6750 4850 50 0000 R CNN +F 2 "" H 7000 4800 29 0000 C CNN +F 3 "" H 6800 4700 60 0000 C CNN + 1 6800 4700 + -1 0 0 -1 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q18 +U 1 1 5CE90A96 +P 8800 2300 +F 0 "Q18" H 8700 2350 50 0000 R CNN +F 1 "eSim_NPN" H 8750 2450 50 0000 R CNN +F 2 "" H 9000 2400 29 0000 C CNN +F 3 "" H 8800 2300 60 0000 C CNN + 1 8800 2300 + 1 0 0 -1 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q20 +U 1 1 5CE90A97 +P 8400 2750 +F 0 "Q20" H 8300 2800 50 0000 R CNN +F 1 "eSim_NPN" H 8350 2900 50 0000 R CNN +F 2 "" H 8600 2850 29 0000 C CNN +F 3 "" H 8400 2750 60 0000 C CNN + 1 8400 2750 + -1 0 0 -1 +$EndComp +$Comp +L eSim_R R9 +U 1 1 5CE90A98 +P 8850 3000 +F 0 "R9" H 8900 3130 50 0000 C CNN +F 1 "25" H 8900 3050 50 0000 C CNN +F 2 "" H 8900 2980 30 0000 C CNN +F 3 "" V 8900 3050 30 0000 C CNN + 1 8850 3000 + 0 1 1 0 +$EndComp +$Comp +L eSim_R R10 +U 1 1 5CE90A99 +P 8850 3750 +F 0 "R10" H 8900 3880 50 0000 C CNN +F 1 "50" H 8900 3800 50 0000 C CNN +F 2 "" H 8900 3730 30 0000 C CNN +F 3 "" V 8900 3800 30 0000 C CNN + 1 8850 3750 + 0 1 1 0 +$EndComp +$Comp +L eSim_PNP-RESCUE-lm_741 Q19 +U 1 1 5CE90A9A +P 8800 4600 +F 0 "Q19" H 8700 4650 50 0000 R CNN +F 1 "eSim_PNP" H 8750 4750 50 0000 R CNN +F 2 "" H 9000 4700 29 0000 C CNN +F 3 "" H 8800 4600 60 0000 C CNN + 1 8800 4600 + 1 0 0 1 +$EndComp +$Comp +L PORT U1 +U 3 1 5CE90A9B +P 1900 1200 +F 0 "U1" H 1950 1300 30 0000 C CNN +F 1 "PORT" H 1900 1200 30 0000 C CNN +F 2 "" H 1900 1200 60 0000 C CNN +F 3 "" H 1900 1200 60 0000 C CNN + 3 1900 1200 + 1 0 0 -1 +$EndComp +$Comp +L PORT U1 +U 2 1 5CE90A9C +P 4500 1050 +F 0 "U1" H 4550 1150 30 0000 C CNN +F 1 "PORT" H 4500 1050 30 0000 C CNN +F 2 "" H 4500 1050 60 0000 C CNN +F 3 "" H 4500 1050 60 0000 C CNN + 2 4500 1050 + 1 0 0 -1 +$EndComp +$Comp +L PORT U1 +U 7 1 5CE90A9D +P 9750 1650 +F 0 "U1" H 9800 1750 30 0000 C CNN +F 1 "PORT" H 9750 1650 30 0000 C CNN +F 2 "" H 9750 1650 60 0000 C CNN +F 3 "" H 9750 1650 60 0000 C CNN + 7 9750 1650 + -1 0 0 1 +$EndComp +$Comp +L PORT U1 +U 6 1 5CE90A9E +P 9750 3500 +F 0 "U1" H 9800 3600 30 0000 C CNN +F 1 "PORT" H 9750 3500 30 0000 C CNN +F 2 "" H 9750 3500 60 0000 C CNN +F 3 "" H 9750 3500 60 0000 C CNN + 6 9750 3500 + -1 0 0 1 +$EndComp +$Comp +L PORT U1 +U 4 1 5CE90A9F +P 9700 5550 +F 0 "U1" H 9750 5650 30 0000 C CNN +F 1 "PORT" H 9700 5550 30 0000 C CNN +F 2 "" H 9700 5550 60 0000 C CNN +F 3 "" H 9700 5550 60 0000 C CNN + 4 9700 5550 + -1 0 0 1 +$EndComp +Wire Wire Line + 3200 3200 3750 3200 +Wire Wire Line + 2750 2900 2750 2950 +Wire Wire Line + 2750 2950 2900 2950 +Wire Wire Line + 2900 2950 2900 3000 +Wire Wire Line + 4200 2900 4200 2950 +Wire Wire Line + 4200 2950 4050 2950 +Wire Wire Line + 4050 2950 4050 3000 +Wire Wire Line + 2900 3400 2900 4400 +Wire Wire Line + 2900 4000 3100 4000 +Wire Wire Line + 4200 2000 4200 2500 +Wire Wire Line + 4200 2350 2750 2350 +Wire Wire Line + 2750 2350 2750 2500 +Wire Wire Line + 5000 2000 4050 2000 +Connection ~ 4200 2350 +Connection ~ 4200 2000 +Wire Wire Line + 3750 2200 3750 2350 +Connection ~ 3750 2350 +Wire Wire Line + 3750 1800 3750 1650 +Wire Wire Line + 3400 1650 7600 1650 +Wire Wire Line + 3400 1650 3400 3800 +Wire Wire Line + 5300 1650 5300 1800 +Connection ~ 3750 1650 +Wire Wire Line + 5300 2200 5300 4500 +Wire Wire Line + 5300 3500 3650 3500 +Wire Wire Line + 3650 3500 3650 3200 +Connection ~ 3650 3200 +Connection ~ 2900 4000 +Wire Wire Line + 4050 4400 4050 3400 +Wire Wire Line + 3400 4200 3400 4600 +Wire Wire Line + 3200 4600 3750 4600 +Connection ~ 3400 4600 +Wire Wire Line + 4050 5100 4050 4800 +Wire Wire Line + 3600 5100 3600 4600 +Connection ~ 3600 4600 +Wire Wire Line + 2900 5100 2900 4800 +Wire Wire Line + 2900 5400 2900 5550 +Wire Wire Line + 2900 5550 9450 5550 +Wire Wire Line + 4050 5550 4050 5400 +Wire Wire Line + 3600 5400 3600 5550 +Connection ~ 3600 5550 +Wire Wire Line + 6100 4700 5600 4700 +Wire Wire Line + 6400 2950 6400 4500 +Wire Wire Line + 6400 4250 5900 4250 +Wire Wire Line + 5900 4250 5900 4700 +Connection ~ 5900 4700 +Wire Wire Line + 5300 5100 5300 4900 +Wire Wire Line + 5300 5550 5300 5400 +Connection ~ 4050 5550 +Wire Wire Line + 6400 5550 6400 4900 +Connection ~ 5300 5550 +Connection ~ 5300 3500 +Wire Wire Line + 6400 1650 6400 1750 +Connection ~ 5300 1650 +Wire Wire Line + 6400 2150 6400 2650 +Connection ~ 6400 4250 +Wire Wire Line + 6700 1950 7300 1950 +Wire Wire Line + 7000 1950 7000 2250 +Wire Wire Line + 7000 2250 6400 2250 +Connection ~ 6400 2250 +Wire Wire Line + 7600 1650 7600 1750 +Connection ~ 6400 1650 +Connection ~ 7000 1950 +Wire Wire Line + 7600 3250 7600 4100 +Wire Wire Line + 7600 3450 7400 3450 +Wire Wire Line + 6900 3450 7100 3450 +Wire Wire Line + 6900 2650 6900 3450 +Wire Wire Line + 6900 3050 7300 3050 +Wire Wire Line + 7600 2150 7600 2850 +Wire Wire Line + 7600 2650 7400 2650 +Wire Wire Line + 7100 2650 6900 2650 +Connection ~ 6900 3050 +Connection ~ 7600 2650 +Wire Wire Line + 7300 4300 7150 4300 +Wire Wire Line + 7150 4150 7150 4950 +Connection ~ 7600 3450 +Wire Wire Line + 7600 3700 7150 3700 +Wire Wire Line + 7150 3700 7150 3750 +Connection ~ 7600 3700 +Wire Wire Line + 6600 3050 6600 2450 +Wire Wire Line + 6600 2450 7600 2450 +Connection ~ 7600 2450 +Wire Wire Line + 6600 3350 6600 3950 +Wire Wire Line + 4050 3950 6850 3950 +Wire Wire Line + 6700 3950 6700 4500 +Connection ~ 6700 3950 +Wire Wire Line + 6700 4900 6700 5550 +Connection ~ 6400 5550 +Connection ~ 7150 4300 +Wire Wire Line + 7600 4950 7600 4500 +Wire Wire Line + 7000 4700 7600 4700 +Connection ~ 7600 4700 +Wire Wire Line + 7600 5550 7600 5250 +Connection ~ 6700 5550 +Wire Wire Line + 7150 5250 7150 5550 +Connection ~ 7150 5550 +Wire Wire Line + 7600 2300 8600 2300 +Wire Wire Line + 8300 2300 8300 2550 +Connection ~ 8300 2300 +Connection ~ 7600 2300 +Wire Wire Line + 8900 2100 8900 1650 +Wire Wire Line + 7550 1650 9500 1650 +Connection ~ 7550 1650 +Connection ~ 8900 1650 +Wire Wire Line + 8900 2500 8900 2900 +Wire Wire Line + 8900 2750 8600 2750 +Connection ~ 8900 2750 +Wire Wire Line + 8300 2950 8300 3350 +Wire Wire Line + 8300 3350 8900 3350 +Wire Wire Line + 8900 3200 8900 3650 +Wire Wire Line + 8900 4400 8900 3950 +Connection ~ 8900 3350 +Wire Wire Line + 8900 3500 9500 3500 +Connection ~ 8900 3500 +Wire Wire Line + 8900 5550 8900 4800 +Connection ~ 7600 5550 +Connection ~ 8900 5550 +Wire Wire Line + 8600 4600 8100 4600 +Wire Wire Line + 8100 4600 8100 3850 +Wire Wire Line + 8100 3850 7600 3850 +Connection ~ 7600 3850 +Connection ~ 4050 3950 +Connection ~ 6600 3950 +Wire Wire Line + 4500 2700 4750 2700 +Wire Wire Line + 4750 2700 4750 1050 +Wire Wire Line + 2450 2700 2150 2700 +Wire Wire Line + 2150 2700 2150 1200 +$Comp +L PORT U1 +U 5 1 5CE90AA0 +P 1850 4850 +F 0 "U1" H 1900 4950 30 0000 C CNN +F 1 "PORT" H 1850 4850 30 0000 C CNN +F 2 "" H 1850 4850 60 0000 C CNN +F 3 "" H 1850 4850 60 0000 C CNN + 5 1850 4850 + 1 0 0 -1 +$EndComp +$Comp +L PORT U1 +U 1 1 5CE90AA1 +P 1850 5100 +F 0 "U1" H 1900 5200 30 0000 C CNN +F 1 "PORT" H 1850 5100 30 0000 C CNN +F 2 "" H 1850 5100 60 0000 C CNN +F 3 "" H 1850 5100 60 0000 C CNN + 1 1850 5100 + 1 0 0 -1 +$EndComp +Wire Wire Line + 2100 5100 2700 5100 +Wire Wire Line + 2700 5100 2700 5050 +Wire Wire Line + 2700 5050 2900 5050 +Connection ~ 2900 5050 +Wire Wire Line + 2100 4850 2550 4850 +Wire Wire Line + 2550 4850 2550 4900 +Wire Wire Line + 2550 4900 4050 4900 +Connection ~ 4050 4900 +$Comp +L PORT U1 +U 8 1 5CE9368F +P 9600 6050 +F 0 "U1" H 9650 6150 30 0000 C CNN +F 1 "PORT" H 9600 6050 30 0000 C CNN +F 2 "" H 9600 6050 60 0000 C CNN +F 3 "" H 9600 6050 60 0000 C CNN + 8 9600 6050 + -1 0 0 1 +$EndComp +Wire Wire Line + 9350 6050 9100 6050 +NoConn ~ 9100 6050 +$EndSCHEMATC diff --git a/Examples/InvertingAmplifier/lm_741.sub b/Examples/InvertingAmplifier/lm_741.sub new file mode 100644 index 00000000..fa8d27b1 --- /dev/null +++ b/Examples/InvertingAmplifier/lm_741.sub @@ -0,0 +1,40 @@ +* Subcircuit lm_741 +.subckt lm_741 net-_q7-pad3_ net-_q2-pad2_ net-_q1-pad2_ net-_q12-pad3_ net-_q8-pad3_ net-_q20-pad3_ net-_q10-pad3_ ? +* c:\users\malli\esim\src\subcircuitlibrary\lm_741\lm_741.cir +.include npn_1.lib +.include pnp_1.lib +q1 net-_q1-pad1_ net-_q1-pad2_ net-_q1-pad3_ npn_1 +q2 net-_q1-pad1_ net-_q2-pad2_ net-_q2-pad3_ npn_1 +q6 net-_q3-pad2_ net-_q13-pad1_ net-_q1-pad3_ pnp_1 +q5 net-_c1-pad2_ net-_q13-pad1_ net-_q2-pad3_ pnp_1 +q3 net-_q10-pad3_ net-_q3-pad2_ net-_q3-pad3_ npn_1 +q4 net-_q1-pad1_ net-_q1-pad1_ net-_q10-pad3_ pnp_1 +q9 net-_q13-pad1_ net-_q1-pad1_ net-_q10-pad3_ pnp_1 +q8 net-_c1-pad2_ net-_q3-pad3_ net-_q8-pad3_ npn_1 +q7 net-_q3-pad2_ net-_q3-pad3_ net-_q7-pad3_ npn_1 +r1 net-_q7-pad3_ net-_q12-pad3_ 1k +r2 net-_q3-pad3_ net-_q12-pad3_ 50k +r3 net-_q8-pad3_ net-_q12-pad3_ 1k +q12 net-_q12-pad1_ net-_q12-pad1_ net-_q12-pad3_ npn_1 +q13 net-_q13-pad1_ net-_q12-pad1_ net-_q13-pad3_ npn_1 +r4 net-_q13-pad3_ net-_q12-pad3_ 5k +r11 net-_q10-pad1_ net-_q12-pad1_ 39k +q10 net-_q10-pad1_ net-_q10-pad1_ net-_q10-pad3_ pnp_1 +q11 net-_c1-pad1_ net-_q10-pad1_ net-_q10-pad3_ pnp_1 +q14 net-_c1-pad1_ net-_q14-pad2_ net-_q14-pad3_ npn_1 +r8 net-_c1-pad1_ net-_q14-pad2_ 4.5k +r7 net-_q14-pad3_ net-_q14-pad2_ 7.5k +c1 net-_c1-pad1_ net-_c1-pad2_ 30p +q16 net-_q14-pad3_ net-_c1-pad2_ net-_q15-pad2_ npn_1 +q15 net-_q14-pad3_ net-_q15-pad2_ net-_q15-pad3_ npn_1 +r5 net-_q15-pad2_ net-_q12-pad3_ 50k +r6 net-_q15-pad3_ net-_q12-pad3_ 50 +q17 net-_c1-pad2_ net-_q15-pad3_ net-_q12-pad3_ npn_1 +q18 net-_q10-pad3_ net-_c1-pad1_ net-_q18-pad3_ npn_1 +q20 net-_c1-pad1_ net-_q18-pad3_ net-_q20-pad3_ npn_1 +r9 net-_q18-pad3_ net-_q20-pad3_ 25 +r10 net-_q20-pad3_ net-_q19-pad3_ 50 +q19 net-_q12-pad3_ net-_q14-pad3_ net-_q19-pad3_ pnp_1 +* Control Statements + +.ends lm_741
\ No newline at end of file diff --git a/Examples/InvertingAmplifier/lm_741_Previous_Values.xml b/Examples/InvertingAmplifier/lm_741_Previous_Values.xml new file mode 100644 index 00000000..b61322bb --- /dev/null +++ b/Examples/InvertingAmplifier/lm_741_Previous_Values.xml @@ -0,0 +1 @@ +<KicadtoNgspice><source /><model /><devicemodel><q1><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q1><q20><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q20><q3><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q3><q2><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q2><q5><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/pnp_1.lib</field></q5><q4><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/pnp_1.lib</field></q4><q7><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q7><q6><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/pnp_1.lib</field></q6><q9><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/pnp_1.lib</field></q9><q8><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q8><q15><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q15><q14><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q14><q17><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q17><q16><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q16><q11><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/pnp_1.lib</field></q11><q10><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/pnp_1.lib</field></q10><q13><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q13><q12><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q12><q19><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/pnp_1.lib</field></q19><q18><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q18></devicemodel><subcircuit /><analysis><ac><field1 name="Lin">true</field1><field2 name="Dec">false</field2><field3 name="Oct">false</field3><field4 name="Start Frequency" /><field5 name="Stop Frequency" /><field6 name="No. of points" /><field7 name="Start Fre Combo">Hz</field7><field8 name="Stop Fre Combo">Hz</field8></ac><dc><field1 name="Source 1" /><field2 name="Start" /><field3 name="Increment" /><field4 name="Stop" /><field5 name="Operating Point">0</field5><field6 name="Start Combo">Volts or Amperes</field6><field7 name="Increment Combo">Volts or Amperes</field7><field8 name="Stop Combo">Volts or Amperes</field8><field9 name="Source 2" /><field10 name="Start" /><field11 name="Increment" /><field12 name="Stop" /><field13 name="Start Combo">Volts or Amperes</field13><field14 name="Increment Combo">Volts or Amperes</field14><field15 name="Stop Combo">Volts or Amperes</field15></dc><tran><field1 name="Start Time" /><field2 name="Step Time" /><field3 name="Stop Time" /><field4 name="Start Combo">Sec</field4><field5 name="Step Combo">Sec</field5><field6 name="Stop Combo">Sec</field6></tran></analysis></KicadtoNgspice>
\ No newline at end of file diff --git a/Examples/InvertingAmplifier/npn_1.lib b/Examples/InvertingAmplifier/npn_1.lib new file mode 100644 index 00000000..a1818ed8 --- /dev/null +++ b/Examples/InvertingAmplifier/npn_1.lib @@ -0,0 +1,29 @@ +.model npn_1 NPN( ++ Vtf=1.7 ++ Cjc=0.5p ++ Nc=2 ++ Tr=46.91n ++ Ne=1.307 ++ Cje=0.5p ++ Isc=0 ++ Xtb=1.5 ++ Rb=500 ++ Rc=1 ++ Tf=411.1p ++ Xti=3 ++ Ikr=0 ++ Bf=125 ++ Fc=.5 ++ Ise=14.34f ++ Br=6.092 ++ Ikf=.2847 ++ Mje=.377 ++ Mjc=.3416 ++ Vaf=74.03 ++ Vjc=.75 ++ Vje=.75 ++ Xtf=3 ++ Itf=.6 ++ Is=14.34f ++ Eg=1.11 +)
\ No newline at end of file diff --git a/Examples/InvertingAmplifier/pnp_1.lib b/Examples/InvertingAmplifier/pnp_1.lib new file mode 100644 index 00000000..a4ee06da --- /dev/null +++ b/Examples/InvertingAmplifier/pnp_1.lib @@ -0,0 +1,29 @@ +.model pnp_1 PNP( ++ Vtf=1.7 ++ Cjc=1.5p ++ Nc=2 ++ Tr=46.91n ++ Ne=1.307 ++ Cje=0.3p ++ Isc=0 ++ Xtb=1.5 ++ Rb=250 ++ Rc=1 ++ Tf=411.1p ++ Xti=3 ++ Ikr=0 ++ Bf=25 ++ Fc=.5 ++ Ise=14.34f ++ Br=6.092 ++ Ikf=.2847 ++ Mje=.377 ++ Mjc=.3416 ++ Vaf=74.03 ++ Vjc=.75 ++ Vje=.75 ++ Xtf=3 ++ Itf=.6 ++ Is=14.34f ++ Eg=1.11 +)
\ No newline at end of file diff --git a/Examples/InvertingAmplifier/ua741.cir b/Examples/InvertingAmplifier/ua741.cir deleted file mode 100644 index de797429..00000000 --- a/Examples/InvertingAmplifier/ua741.cir +++ /dev/null @@ -1,15 +0,0 @@ -* EESchema Netlist Version 1.1 (Spice format) creation date: Monday 17 December 2012 11:16:58 AM IST - -* To exclude a component from the Spice Netlist add [Spice_Netlist_Enabled] user FIELD set to: N -* To reorder the component spice node sequence add [Spice_Node_Sequence] user FIELD and define sequence: 2,1,0 - -*Sheet Name:/ -U1 6 7 3 PORT -Rout1 3 2 75 -Eout1 2 0 1 0 1 -Cbw1 1 0 31.85e-9 -Rbw1 1 4 0.5e6 -Ein1 4 0 7 6 100e3 -Rin1 7 6 2e6 - -.end diff --git a/Examples/InvertingAmplifier/ua741.cir.out b/Examples/InvertingAmplifier/ua741.cir.out deleted file mode 100644 index 72e68514..00000000 --- a/Examples/InvertingAmplifier/ua741.cir.out +++ /dev/null @@ -1,18 +0,0 @@ -* eeschema netlist version 1.1 (spice format) creation date: monday 17 december 2012 11:16:58 am ist - -* u1 6 7 3 port -rout1 3 2 75 -eout1 2 0 1 0 1 -cbw1 1 0 31.85e-9 -rbw1 1 4 0.5e6 -ein1 4 0 7 6 100e3 -rin1 7 6 2e6 -.ac lin 0 0Hz 0Hz - -* Control Statements -.control -run -print allv > plot_data_v.txt -print alli > plot_data_i.txt -.endc -.end diff --git a/Examples/InvertingAmplifier/ua741.pro b/Examples/InvertingAmplifier/ua741.pro deleted file mode 100644 index c7b1d67b..00000000 --- a/Examples/InvertingAmplifier/ua741.pro +++ /dev/null @@ -1,17 +0,0 @@ -update=Wed Mar 18 14:21:29 2020 -last_client=eeschema -[eeschema] -version=1 -LibDir=/home/yogesh/FreeEDA/library -[eeschema/libraries] -LibName1=power -LibName2=eSim_Devices -LibName3=eSim_User -LibName4=eSim_Subckt -LibName5=eSim_Sources -LibName6=eSim_Power -LibName7=eSim_Plot -LibName8=eSim_Miscellaneous -LibName9=eSim_Hybrid -LibName10=eSim_Digital -LibName11=eSim_Analog diff --git a/Examples/InvertingAmplifier/ua741.sch b/Examples/InvertingAmplifier/ua741.sch deleted file mode 100644 index b06dcc17..00000000 --- a/Examples/InvertingAmplifier/ua741.sch +++ /dev/null @@ -1,229 +0,0 @@ -EESchema Schematic File Version 2 -LIBS:power -LIBS:eSim_Devices -LIBS:eSim_User -LIBS:eSim_Subckt -LIBS:eSim_Sources -LIBS:eSim_Power -LIBS:eSim_Plot -LIBS:eSim_Miscellaneous -LIBS:eSim_Hybrid -LIBS:eSim_Digital -LIBS:eSim_Analog -EELAYER 25 0 -EELAYER END -$Descr A4 11693 8268 -encoding utf-8 -Sheet 1 1 -Title "" -Date "19 dec 2012" -Rev "" -Comp "" -Comment1 "" -Comment2 "" -Comment3 "" -Comment4 "" -$EndDescr -Text Notes 3800 2400 0 60 ~ 0 -Op-Amp -Text Notes 3750 2850 0 60 ~ 0 -VCCS -Text Notes 5800 2500 0 60 ~ 0 -out -Text Notes 2750 3100 0 60 ~ 0 -- -Text Notes 2700 2600 0 60 ~ 0 -+ -$Comp -L PORT U1 -U 6 1 5082C027 -P 6250 2500 -F 0 "U1" H 6250 2450 30 0000 C CNN -F 1 "PORT" H 6250 2500 30 0000 C CNN -F 2 "" H 6250 2500 60 0001 C CNN -F 3 "" H 6250 2500 60 0001 C CNN - 6 6250 2500 - -1 0 0 1 -$EndComp -$Comp -L PORT U1 -U 2 1 5082C011 -P 2300 3100 -F 0 "U1" H 2300 3050 30 0000 C CNN -F 1 "PORT" H 2300 3100 30 0000 C CNN -F 2 "" H 2300 3100 60 0001 C CNN -F 3 "" H 2300 3100 60 0001 C CNN - 2 2300 3100 - 1 0 0 -1 -$EndComp -$Comp -L PORT U1 -U 3 1 5082C00B -P 2250 2600 -F 0 "U1" H 2250 2550 30 0000 C CNN -F 1 "PORT" H 2250 2600 30 0000 C CNN -F 2 "" H 2250 2600 60 0001 C CNN -F 3 "" H 2250 2600 60 0001 C CNN - 3 2250 2600 - 1 0 0 -1 -$EndComp -$Comp -L PWR_FLAG #FLG1 -U 1 1 508152A0 -P 3450 3200 -F 0 "#FLG1" H 3450 3470 30 0001 C CNN -F 1 "PWR_FLAG" H 3450 3430 30 0000 C CNN -F 2 "" H 3450 3200 60 0001 C CNN -F 3 "" H 3450 3200 60 0001 C CNN - 1 3450 3200 - 1 0 0 -1 -$EndComp -$Comp -L VCVS Eout1 -U 1 1 50813F0F -P 5200 2900 -F 0 "Eout1" H 5000 3000 50 0000 C CNN -F 1 "1" H 5000 2850 50 0000 C CNN -F 2 "" H 5200 2900 60 0001 C CNN -F 3 "" H 5200 2900 60 0001 C CNN - 1 5200 2900 - 0 1 1 0 -$EndComp -$Comp -L GND #PWR1 -U 1 1 50813E0D -P 3700 3400 -F 0 "#PWR1" H 3700 3400 30 0001 C CNN -F 1 "GND" H 3700 3330 30 0001 C CNN -F 2 "" H 3700 3400 60 0001 C CNN -F 3 "" H 3700 3400 60 0001 C CNN - 1 3700 3400 - 1 0 0 -1 -$EndComp -$Comp -L VCVS Ein1 -U 1 1 50813D7C -P 3650 2850 -F 0 "Ein1" H 3450 2950 50 0000 C CNN -F 1 "100e3" H 3450 2800 50 0000 C CNN -F 2 "" H 3650 2850 60 0001 C CNN -F 3 "" H 3650 2850 60 0001 C CNN - 1 3650 2850 - 0 1 1 0 -$EndComp -Text Notes 2600 2900 0 60 ~ 0 -2e6\n -Connection ~ 3700 3200 -Wire Wire Line - 3450 3200 3700 3200 -Connection ~ 5000 3300 -Wire Wire Line - 3700 3300 5250 3300 -Wire Wire Line - 5250 3300 5250 3200 -Connection ~ 4550 3300 -Wire Wire Line - 5000 3300 5000 2950 -Connection ~ 3700 3300 -Wire Wire Line - 4550 3000 4550 3300 -Wire Wire Line - 3900 2500 3700 2500 -Wire Wire Line - 3700 2500 3700 2550 -Wire Wire Line - 3450 2900 3300 2900 -Wire Wire Line - 3300 2900 3300 3200 -Wire Wire Line - 3300 3200 2950 3200 -Connection ~ 2950 3100 -Wire Wire Line - 2950 3200 2950 3100 -Wire Wire Line - 3000 2600 2500 2600 -Wire Wire Line - 2550 3100 3000 3100 -Wire Wire Line - 2950 2600 2950 2500 -Connection ~ 2950 2600 -Wire Wire Line - 2950 2500 3300 2500 -Wire Wire Line - 3300 2500 3300 2800 -Wire Wire Line - 3300 2800 3450 2800 -Wire Wire Line - 3700 3150 3700 3400 -Wire Wire Line - 4550 2500 4550 2700 -Wire Wire Line - 4400 2500 5000 2500 -Wire Wire Line - 5000 2500 5000 2850 -Connection ~ 4550 2500 -Wire Wire Line - 5250 2600 5250 2500 -Wire Wire Line - 5250 2500 5400 2500 -Wire Wire Line - 5700 2500 6000 2500 -$Comp -L resistor Rin1 -U 1 1 5E71E232 -P 2950 2900 -F 0 "Rin1" H 3000 3030 50 0000 C CNN -F 1 "2e6" H 3000 2850 50 0000 C CNN -F 2 "" H 3000 2880 30 0000 C CNN -F 3 "" V 3000 2950 30 0000 C CNN - 1 2950 2900 - 0 1 1 0 -$EndComp -Wire Wire Line - 3000 2600 3000 2800 -$Comp -L resistor Rbw1 -U 1 1 5E71E326 -P 4050 2100 -F 0 "Rbw1" H 4100 2230 50 0000 C CNN -F 1 "0.5e6" H 4100 2050 50 0000 C CNN -F 2 "" H 4100 2080 30 0000 C CNN -F 3 "" V 4100 2150 30 0000 C CNN - 1 4050 2100 - 1 0 0 -1 -$EndComp -Wire Wire Line - 3900 2500 3900 2050 -Wire Wire Line - 3900 2050 3950 2050 -Wire Wire Line - 4250 2050 4400 2050 -Wire Wire Line - 4400 2050 4400 2500 -$Comp -L capacitor Cbw1 -U 1 1 5E71E45C -P 4550 2850 -F 0 "Cbw1" H 4575 2950 50 0000 L CNN -F 1 "31.85e-9" H 4575 2750 50 0000 L CNN -F 2 "" H 4588 2700 30 0000 C CNN -F 3 "" H 4550 2850 60 0000 C CNN - 1 4550 2850 - 1 0 0 -1 -$EndComp -$Comp -L resistor Rout1 -U 1 1 5E71E59C -P 5500 2250 -F 0 "Rout1" H 5550 2380 50 0000 C CNN -F 1 "75" H 5550 2200 50 0000 C CNN -F 2 "" H 5550 2230 30 0000 C CNN -F 3 "" V 5550 2300 30 0000 C CNN - 1 5500 2250 - 1 0 0 -1 -$EndComp -Wire Wire Line - 5400 2500 5400 2200 -Wire Wire Line - 5700 2200 5700 2500 -$EndSCHEMATC diff --git a/Examples/InvertingAmplifier/ua741.sub b/Examples/InvertingAmplifier/ua741.sub deleted file mode 100644 index ad26c001..00000000 --- a/Examples/InvertingAmplifier/ua741.sub +++ /dev/null @@ -1,12 +0,0 @@ -* Subcircuit ua741 -.subckt ua741 6 7 3 -* eeschema netlist version 1.1 (spice format) creation date: monday 17 december 2012 11:16:58 am ist -rout1 3 2 75 -eout1 2 0 1 0 1 -cbw1 1 0 31.85e-9 -rbw1 1 4 0.5e6 -ein1 4 0 7 6 100e3 -rin1 7 6 2e6 -* Control Statements - -.ends ua741
\ No newline at end of file diff --git a/Examples/Precision_Rectifiers_using_LM741/D.lib b/Examples/Precision_Rectifiers_using_LM741/D.lib new file mode 100644 index 00000000..8a7fb4da --- /dev/null +++ b/Examples/Precision_Rectifiers_using_LM741/D.lib @@ -0,0 +1,2 @@ +.model 1n4148 D(is=2.495E-09 rs=4.755E-01 n=1.679E+00 tt=3.030E-09 cjo=1.700E-12 vj=1 m=1.959E-01 bv=1.000E+02 ibv=1.000E-04) + diff --git a/Examples/Precision_Rectifiers_using_LM741/NPN.lib b/Examples/Precision_Rectifiers_using_LM741/NPN.lib new file mode 100644 index 00000000..6509fe7a --- /dev/null +++ b/Examples/Precision_Rectifiers_using_LM741/NPN.lib @@ -0,0 +1,4 @@ +.model Q2N2222 NPN( Is=14.34f Xti=3 Eg=1.11 Vaf=74.03 Bf=400 Ne=1.307 ++ Ise=14.34f Ikf=.2847 Xtb=1.5 Br=6.092 Nc=2 Isc=0 Ikr=0 Rc=1 Cjc=7.306p ++ Mjc=.3416 Vjc=.75 Fc=.5 Cje=22.01p Mje=.377 Vje=.75 Tr=46.91n Tf=411.1p ++ Itf=.6 Vtf=1.7 Xtf=3 Rb=10) diff --git a/Examples/Precision_Rectifiers_using_LM741/PNP.lib b/Examples/Precision_Rectifiers_using_LM741/PNP.lib new file mode 100644 index 00000000..7edda0ea --- /dev/null +++ b/Examples/Precision_Rectifiers_using_LM741/PNP.lib @@ -0,0 +1,4 @@ +.model Q2N2907A PNP(Is=650.6E-18 Xti=3 Eg=1.11 Vaf=115.7 Bf=231.7 Ne=1.829 ++ Ise=54.81f Ikf=1.079 Xtb=1.5 Br=3.563 Nc=2 Isc=0 Ikr=0 Rc=.715 ++ Cjc=14.76p Mjc=.5383 Vjc=.75 Fc=.5 Cje=19.82p Mje=.3357 Vje=.75 ++ Tr=111.3n Tf=603.7p Itf=.65 Vtf=5 Xtf=1.7 Rb=10) diff --git a/Examples/Precision_Rectifiers_using_LM741/Precision_Rectifiers_using_LM741-cache.lib b/Examples/Precision_Rectifiers_using_LM741/Precision_Rectifiers_using_LM741-cache.lib new file mode 100644 index 00000000..5573bd6b --- /dev/null +++ b/Examples/Precision_Rectifiers_using_LM741/Precision_Rectifiers_using_LM741-cache.lib @@ -0,0 +1,128 @@ +EESchema-LIBRARY Version 2.3 +#encoding utf-8 +# +# DC +# +DEF DC v 0 40 Y Y 1 F N +F0 "v" -200 100 60 H V C CNN +F1 "DC" -200 -50 60 H V C CNN +F2 "R1" -300 0 60 H V C CNN +F3 "" 0 0 60 H V C CNN +$FPLIST + 1_pin +$ENDFPLIST +DRAW +C 0 0 150 0 1 0 N +X + 1 0 450 300 D 50 50 1 1 w +X - 2 0 -450 300 U 50 50 1 1 w +ENDDRAW +ENDDEF +# +# GND +# +DEF GND #PWR 0 0 Y Y 1 F P +F0 "#PWR" 0 -250 50 H I C CNN +F1 "GND" 0 -150 50 H V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN +DRAW +P 6 0 1 0 0 0 0 -50 50 -50 0 -100 -50 -50 0 -50 N +X GND 1 0 0 0 D 50 50 1 1 W N +ENDDRAW +ENDDEF +# +# R +# +DEF R R 0 0 N Y 1 F N +F0 "R" 80 0 50 V V C CNN +F1 "R" 0 0 50 V V C CNN +F2 "" -70 0 50 V I C CNN +F3 "" 0 0 50 H I C CNN +$FPLIST + R_* + R_* +$ENDFPLIST +DRAW +S -40 -100 40 100 0 1 10 N +X ~ 1 0 150 50 D 50 50 1 1 P +X ~ 2 0 -150 50 U 50 50 1 1 P +ENDDRAW +ENDDEF +# +# eSim_Diode +# +DEF eSim_Diode D 0 40 N N 1 F N +F0 "D" 0 100 50 H V C CNN +F1 "eSim_Diode" 0 -100 50 H V C CNN +F2 "" 0 0 60 H V C CNN +F3 "" 0 0 60 H V C CNN +$FPLIST + TO-???* + *SingleDiode + *_Diode_* + *SingleDiode* + D_* +$ENDFPLIST +DRAW +T 0 -100 50 60 0 0 0 A Normal 0 C C +T 0 100 50 60 0 0 0 K Normal 0 C C +P 2 0 1 6 50 50 50 -50 N +P 3 0 1 0 -50 50 50 0 -50 -50 F +X A 1 -150 0 100 R 40 40 1 1 P +X K 2 150 0 100 L 40 40 1 1 P +ENDDRAW +ENDDEF +# +# lm_741 +# +DEF lm_741 X 0 40 Y Y 1 F N +F0 "X" -200 0 60 H V C CNN +F1 "lm_741" -100 -250 60 H V C CNN +F2 "" 0 0 60 H V C CNN +F3 "" 0 0 60 H V C CNN +DRAW +P 4 0 1 0 -350 350 350 0 -350 -350 -350 350 N +X off_null 1 -50 400 200 D 50 38 1 1 I +X inv 2 -550 150 200 R 50 38 1 1 I +X non_inv 3 -550 -100 200 R 50 38 1 1 I +X v_neg 4 -150 -450 200 U 50 38 1 1 I +X off_null 5 50 350 200 D 50 38 1 1 I +X out 6 550 0 200 L 50 38 1 1 O +X v_pos 7 -150 450 200 D 50 38 1 1 I +X NC 8 150 -300 200 U 50 38 1 1 N +ENDDRAW +ENDDEF +# +# plot_v1 +# +DEF plot_v1 U 0 40 Y Y 1 F N +F0 "U" 0 500 60 H V C CNN +F1 "plot_v1" 200 350 60 H V C CNN +F2 "" 0 0 60 H V C CNN +F3 "" 0 0 60 H V C CNN +DRAW +C 0 500 100 0 1 0 N +X ~ ~ 0 200 200 U 50 50 1 1 I +ENDDRAW +ENDDEF +# +# sine +# +DEF sine v 0 40 Y Y 1 F N +F0 "v" -200 100 60 H V C CNN +F1 "sine" -200 -50 60 H V C CNN +F2 "R1" -300 0 60 H V C CNN +F3 "" 0 0 60 H V C CNN +$FPLIST + 1_pin +$ENDFPLIST +DRAW +A -50 0 50 1 1799 0 1 0 N 0 0 -100 0 +A 50 0 50 -1799 -1 0 1 0 N 0 0 100 0 +C 0 0 150 0 1 0 N +X + 1 0 450 300 D 50 0 1 1 I +X - 2 0 -450 300 U 50 0 1 1 I +ENDDRAW +ENDDEF +# +#End Library diff --git a/Examples/Precision_Rectifiers_using_LM741/Precision_Rectifiers_using_LM741.cir b/Examples/Precision_Rectifiers_using_LM741/Precision_Rectifiers_using_LM741.cir new file mode 100644 index 00000000..729b7a71 --- /dev/null +++ b/Examples/Precision_Rectifiers_using_LM741/Precision_Rectifiers_using_LM741.cir @@ -0,0 +1,38 @@ +* /home/saurabh/eSim-Workspace/Precision_Rectifiers_using_LM741/Precision_Rectifiers_using_LM741.cir + +* EESchema Netlist Version 1.1 (Spice format) creation date: Fri Mar 27 18:05:43 2020 + +* To exclude a component from the Spice Netlist add [Spice_Netlist_Enabled] user FIELD set to: N +* To reorder the component spice node sequence add [Spice_Node_Sequence] user FIELD and define sequence: 2,1,0 + +* Sheet Name: / +v5 in_HWR GND sine +R2 Net-_D2-Pad1_ in_HWR 1k +U2 in_HWR plot_v1 +D4 Net-_D2-Pad2_ out_HWR eSim_Diode +U3 out_HWR plot_v1 +D2 Net-_D2-Pad1_ Net-_D2-Pad2_ eSim_Diode +R4 out_HWR Net-_D2-Pad1_ 1k +R7 out_HWR GND 1k +X2 ? Net-_D2-Pad1_ GND Net-_X2-Pad4_ ? Net-_D2-Pad2_ Net-_X2-Pad7_ ? lm_741 +v2 Net-_X2-Pad7_ GND 12 +v4 in_FWR GND sine +U1 in_FWR plot_v1 +U4 out_FWR plot_v1 +X1 ? Net-_D1-Pad2_ GND Net-_X1-Pad4_ ? Net-_D1-Pad1_ Net-_X1-Pad7_ ? lm_741 +v1 Net-_X1-Pad7_ GND 12 +D1 Net-_D1-Pad1_ Net-_D1-Pad2_ eSim_Diode +D3 Net-_D3-Pad1_ Net-_D1-Pad1_ eSim_Diode +X3 ? Net-_R5-Pad1_ GND Net-_X3-Pad4_ ? out_FWR Net-_X3-Pad7_ ? lm_741 +R3 Net-_D1-Pad1_ Net-_D1-Pad2_ 1.135k +R1 Net-_D1-Pad2_ in_FWR 1k +v6 GND Net-_X2-Pad4_ 12 +v3 GND Net-_X1-Pad4_ 12 +v8 Net-_X3-Pad7_ GND 12 +v7 GND Net-_X3-Pad4_ 12 +R9 GND out_FWR 1k +R8 out_FWR Net-_R5-Pad1_ 1k +R6 Net-_R5-Pad1_ Net-_D3-Pad1_ 0.5k +R5 Net-_R5-Pad1_ in_FWR 1k + +.end diff --git a/Examples/Precision_Rectifiers_using_LM741/Precision_Rectifiers_using_LM741.cir.out b/Examples/Precision_Rectifiers_using_LM741/Precision_Rectifiers_using_LM741.cir.out new file mode 100644 index 00000000..6c5c69c8 --- /dev/null +++ b/Examples/Precision_Rectifiers_using_LM741/Precision_Rectifiers_using_LM741.cir.out @@ -0,0 +1,45 @@ +* /home/saurabh/esim-workspace/precision_rectifiers_using_lm741/precision_rectifiers_using_lm741.cir + +.include lm_741.sub +.include D.lib +v5 in_hwr gnd sine(0 5 50 0 0) +r2 net-_d2-pad1_ in_hwr 1k +* u2 in_hwr plot_v1 +d4 net-_d2-pad2_ out_hwr 1N4148 +* u3 out_hwr plot_v1 +d2 net-_d2-pad1_ net-_d2-pad2_ 1N4148 +r4 out_hwr net-_d2-pad1_ 1k +r7 out_hwr gnd 1k +x2 ? net-_d2-pad1_ gnd net-_x2-pad4_ ? net-_d2-pad2_ net-_x2-pad7_ ? lm_741 +v2 net-_x2-pad7_ gnd 12 +v4 in_fwr gnd sine(0 5 50 0 0) +* u1 in_fwr plot_v1 +* u4 out_fwr plot_v1 +x1 ? net-_d1-pad2_ gnd net-_x1-pad4_ ? net-_d1-pad1_ net-_x1-pad7_ ? lm_741 +v1 net-_x1-pad7_ gnd 12 +d1 net-_d1-pad1_ net-_d1-pad2_ 1N4148 +d3 net-_d3-pad1_ net-_d1-pad1_ 1N4148 +x3 ? net-_r5-pad1_ gnd net-_x3-pad4_ ? out_fwr net-_x3-pad7_ ? lm_741 +r3 net-_d1-pad1_ net-_d1-pad2_ 1.135k +r1 net-_d1-pad2_ in_fwr 1k +v6 gnd net-_x2-pad4_ 12 +v3 gnd net-_x1-pad4_ 12 +v8 net-_x3-pad7_ gnd 12 +v7 gnd net-_x3-pad4_ 12 +r9 gnd out_fwr 1k +r8 out_fwr net-_r5-pad1_ 1k +r6 net-_r5-pad1_ net-_d3-pad1_ 0.5k +r5 net-_r5-pad1_ in_fwr 1k +.tran 10e-06 100e-03 0e-00 + +* Control Statements +.control +run +print allv > plot_data_v.txt +print alli > plot_data_i.txt +plot v(in_hwr) +plot v(out_hwr) +plot v(in_fwr) +plot v(out_fwr) +.endc +.end diff --git a/Examples/Precision_Rectifiers_using_LM741/Precision_Rectifiers_using_LM741.pro b/Examples/Precision_Rectifiers_using_LM741/Precision_Rectifiers_using_LM741.pro new file mode 100644 index 00000000..f63b751e --- /dev/null +++ b/Examples/Precision_Rectifiers_using_LM741/Precision_Rectifiers_using_LM741.pro @@ -0,0 +1,69 @@ +update=22/05/2015 07:44:53 +version=1 +last_client=kicad +[general] +version=1 +RootSch= +BoardNm= +[pcbnew] +version=1 +LastNetListRead= +UseCmpFile=1 +PadDrill=0.600000000000 +PadDrillOvalY=0.600000000000 +PadSizeH=1.500000000000 +PadSizeV=1.500000000000 +PcbTextSizeV=1.500000000000 +PcbTextSizeH=1.500000000000 +PcbTextThickness=0.300000000000 +ModuleTextSizeV=1.000000000000 +ModuleTextSizeH=1.000000000000 +ModuleTextSizeThickness=0.150000000000 +SolderMaskClearance=0.000000000000 +SolderMaskMinWidth=0.000000000000 +DrawSegmentWidth=0.200000000000 +BoardOutlineThickness=0.100000000000 +ModuleOutlineThickness=0.150000000000 +[cvpcb] +version=1 +NetIExt=net +[eeschema] +version=1 +LibDir= +[eeschema/libraries] +LibName1=adc-dac +LibName2=memory +LibName3=xilinx +LibName4=microcontrollers +LibName5=dsp +LibName6=microchip +LibName7=analog_switches +LibName8=motorola +LibName9=texas +LibName10=intel +LibName11=audio +LibName12=interface +LibName13=digital-audio +LibName14=philips +LibName15=display +LibName16=cypress +LibName17=siliconi +LibName18=opto +LibName19=atmel +LibName20=contrib +LibName21=power +LibName22=eSim_Plot +LibName23=transistors +LibName24=conn +LibName25=eSim_User +LibName26=regul +LibName27=74xx +LibName28=cmos4000 +LibName29=eSim_Analog +LibName30=eSim_Devices +LibName31=eSim_Digital +LibName32=eSim_Hybrid +LibName33=eSim_Miscellaneous +LibName34=eSim_Power +LibName35=eSim_Sources +LibName36=eSim_Subckt diff --git a/Examples/Precision_Rectifiers_using_LM741/Precision_Rectifiers_using_LM741.proj b/Examples/Precision_Rectifiers_using_LM741/Precision_Rectifiers_using_LM741.proj new file mode 100644 index 00000000..c2fee4d8 --- /dev/null +++ b/Examples/Precision_Rectifiers_using_LM741/Precision_Rectifiers_using_LM741.proj @@ -0,0 +1 @@ +schematicFile Precision_Rectifiers_using_LM741.sch diff --git a/Examples/Precision_Rectifiers_using_LM741/Precision_Rectifiers_using_LM741.sch b/Examples/Precision_Rectifiers_using_LM741/Precision_Rectifiers_using_LM741.sch new file mode 100644 index 00000000..f4bc1087 --- /dev/null +++ b/Examples/Precision_Rectifiers_using_LM741/Precision_Rectifiers_using_LM741.sch @@ -0,0 +1,673 @@ +EESchema Schematic File Version 2 +LIBS:adc-dac +LIBS:memory +LIBS:xilinx +LIBS:microcontrollers +LIBS:dsp +LIBS:microchip +LIBS:analog_switches +LIBS:motorola +LIBS:texas +LIBS:intel +LIBS:audio +LIBS:interface +LIBS:digital-audio +LIBS:philips +LIBS:display +LIBS:cypress +LIBS:siliconi +LIBS:opto +LIBS:atmel +LIBS:contrib +LIBS:power +LIBS:eSim_Plot +LIBS:transistors +LIBS:conn +LIBS:eSim_User +LIBS:regul +LIBS:74xx +LIBS:cmos4000 +LIBS:eSim_Analog +LIBS:eSim_Devices +LIBS:eSim_Digital +LIBS:eSim_Hybrid +LIBS:eSim_Miscellaneous +LIBS:eSim_Power +LIBS:eSim_Sources +LIBS:eSim_Subckt +LIBS:Precision_Rectifiers_using_LM741-cache +EELAYER 25 0 +EELAYER END +$Descr A4 11693 8268 +encoding utf-8 +Sheet 1 1 +Title "" +Date "" +Rev "" +Comp "" +Comment1 "" +Comment2 "" +Comment3 "" +Comment4 "" +$EndDescr +$Comp +L sine v5 +U 1 1 5E7DF42D +P 2850 2100 +F 0 "v5" H 2650 2200 60 0000 C CNN +F 1 "sine" H 2650 2050 60 0000 C CNN +F 2 "R1" H 2550 2100 60 0000 C CNN +F 3 "" H 2850 2100 60 0000 C CNN + 1 2850 2100 + 1 0 0 -1 +$EndComp +$Comp +L R R2 +U 1 1 5E7DF42E +P 3300 1650 +F 0 "R2" V 3380 1650 50 0000 C CNN +F 1 "1k" V 3300 1650 50 0000 C CNN +F 2 "" V 3230 1650 50 0001 C CNN +F 3 "" H 3300 1650 50 0001 C CNN + 1 3300 1650 + 0 1 1 0 +$EndComp +Text GLabel 3050 1750 3 60 Input ~ 0 +in_HWR +$Comp +L plot_v1 U2 +U 1 1 5E7DF42F +P 3050 1700 +F 0 "U2" H 3050 2200 60 0000 C CNN +F 1 "plot_v1" H 3250 2050 60 0000 C CNN +F 2 "" H 3050 1700 60 0000 C CNN +F 3 "" H 3050 1700 60 0000 C CNN + 1 3050 1700 + 1 0 0 -1 +$EndComp +$Comp +L GND #PWR5 +U 1 1 5E7DF430 +P 2850 2700 +F 0 "#PWR5" H 2850 2450 50 0001 C CNN +F 1 "GND" H 2850 2550 50 0000 C CNN +F 2 "" H 2850 2700 50 0001 C CNN +F 3 "" H 2850 2700 50 0001 C CNN + 1 2850 2700 + 1 0 0 -1 +$EndComp +$Comp +L eSim_Diode D4 +U 1 1 5E7DF431 +P 5700 1750 +F 0 "D4" H 5700 1850 50 0000 C CNN +F 1 "eSim_Diode" H 5700 1650 50 0000 C CNN +F 2 "" H 5700 1750 60 0000 C CNN +F 3 "" H 5700 1750 60 0000 C CNN + 1 5700 1750 + 1 0 0 -1 +$EndComp +$Comp +L plot_v1 U3 +U 1 1 5E7DF432 +P 5800 1700 +F 0 "U3" H 5800 2200 60 0000 C CNN +F 1 "plot_v1" H 6000 2050 60 0000 C CNN +F 2 "" H 5800 1700 60 0000 C CNN +F 3 "" H 5800 1700 60 0000 C CNN + 1 5800 1700 + 1 0 0 -1 +$EndComp +Text GLabel 6000 1500 2 60 Input ~ 0 +out_HWR +$Comp +L eSim_Diode D2 +U 1 1 5E7DF433 +P 4850 1300 +F 0 "D2" H 4850 1400 50 0000 C CNN +F 1 "eSim_Diode" H 4850 1200 50 0000 C CNN +F 2 "" H 4850 1300 60 0000 C CNN +F 3 "" H 4850 1300 60 0000 C CNN + 1 4850 1300 + 1 0 0 -1 +$EndComp +$Comp +L GND #PWR7 +U 1 1 5E7DF434 +P 3700 2550 +F 0 "#PWR7" H 3700 2300 50 0001 C CNN +F 1 "GND" H 3700 2400 50 0000 C CNN +F 2 "" H 3700 2550 50 0001 C CNN +F 3 "" H 3700 2550 50 0001 C CNN + 1 3700 2550 + 1 0 0 -1 +$EndComp +$Comp +L R R4 +U 1 1 5E7DF435 +P 5450 950 +F 0 "R4" V 5530 950 50 0000 C CNN +F 1 "1k" V 5450 950 50 0000 C CNN +F 2 "" V 5380 950 50 0001 C CNN +F 3 "" H 5450 950 50 0001 C CNN + 1 5450 950 + 0 1 1 0 +$EndComp +$Comp +L R R7 +U 1 1 5E7DF436 +P 6150 1750 +F 0 "R7" V 6230 1750 50 0000 C CNN +F 1 "1k" V 6150 1750 50 0000 C CNN +F 2 "" V 6080 1750 50 0001 C CNN +F 3 "" H 6150 1750 50 0001 C CNN + 1 6150 1750 + 0 -1 -1 0 +$EndComp +Text Notes 4750 2650 0 60 ~ 0 +Precision HWR using lm_741\n\n +$Comp +L lm_741 X2 +U 1 1 5E7DF437 +P 4250 1800 +F 0 "X2" H 4050 1800 60 0000 C CNN +F 1 "lm_741" H 4150 1550 60 0000 C CNN +F 2 "" H 4250 1800 60 0000 C CNN +F 3 "" H 4250 1800 60 0000 C CNN + 1 4250 1800 + 1 0 0 -1 +$EndComp +$Comp +L DC v2 +U 1 1 5E7DF438 +P 2150 1800 +F 0 "v2" H 1950 1900 60 0000 C CNN +F 1 "12" H 1950 1750 60 0000 C CNN +F 2 "R1" H 1850 1800 60 0000 C CNN +F 3 "" H 2150 1800 60 0000 C CNN + 1 2150 1800 + 1 0 0 -1 +$EndComp +$Comp +L sine v4 +U 1 1 5E7DF439 +P 2550 5150 +F 0 "v4" H 2350 5250 60 0000 C CNN +F 1 "sine" H 2350 5100 60 0000 C CNN +F 2 "R1" H 2250 5150 60 0000 C CNN +F 3 "" H 2550 5150 60 0000 C CNN + 1 2550 5150 + 1 0 0 -1 +$EndComp +Text GLabel 2750 4800 3 60 Input ~ 0 +in_FWR +$Comp +L plot_v1 U1 +U 1 1 5E7DF43A +P 2750 4750 +F 0 "U1" H 2750 5250 60 0000 C CNN +F 1 "plot_v1" H 2950 5100 60 0000 C CNN +F 2 "" H 2750 4750 60 0000 C CNN +F 3 "" H 2750 4750 60 0000 C CNN + 1 2750 4750 + 1 0 0 -1 +$EndComp +$Comp +L GND #PWR4 +U 1 1 5E7DF43B +P 2550 5750 +F 0 "#PWR4" H 2550 5500 50 0001 C CNN +F 1 "GND" H 2550 5600 50 0000 C CNN +F 2 "" H 2550 5750 50 0001 C CNN +F 3 "" H 2550 5750 50 0001 C CNN + 1 2550 5750 + 1 0 0 -1 +$EndComp +$Comp +L plot_v1 U4 +U 1 1 5E7DF43C +P 7850 5150 +F 0 "U4" H 7850 5650 60 0000 C CNN +F 1 "plot_v1" H 8050 5500 60 0000 C CNN +F 2 "" H 7850 5150 60 0000 C CNN +F 3 "" H 7850 5150 60 0000 C CNN + 1 7850 5150 + 1 0 0 -1 +$EndComp +Text GLabel 8000 5050 3 60 Input ~ 0 +out_FWR +Text Notes 4600 6150 0 60 ~ 0 +Precision FWR using lm_741\n\n +$Comp +L lm_741 X1 +U 1 1 5E7DF43D +P 3950 4850 +F 0 "X1" H 3750 4850 60 0000 C CNN +F 1 "lm_741" H 3850 4600 60 0000 C CNN +F 2 "" H 3950 4850 60 0000 C CNN +F 3 "" H 3950 4850 60 0000 C CNN + 1 3950 4850 + 1 0 0 -1 +$EndComp +$Comp +L DC v1 +U 1 1 5E7DF43E +P 1850 4850 +F 0 "v1" H 1650 4950 60 0000 C CNN +F 1 "12" H 1650 4800 60 0000 C CNN +F 2 "R1" H 1550 4850 60 0000 C CNN +F 3 "" H 1850 4850 60 0000 C CNN + 1 1850 4850 + 1 0 0 -1 +$EndComp +$Comp +L eSim_Diode D1 +U 1 1 5E7DF43F +P 4050 4250 +F 0 "D1" H 4050 4350 50 0000 C CNN +F 1 "eSim_Diode" H 4050 4150 50 0000 C CNN +F 2 "" H 4050 4250 60 0000 C CNN +F 3 "" H 4050 4250 60 0000 C CNN + 1 4050 4250 + -1 0 0 -1 +$EndComp +$Comp +L eSim_Diode D3 +U 1 1 5E7DF440 +P 5350 4850 +F 0 "D3" H 5350 4950 50 0000 C CNN +F 1 "eSim_Diode" H 5350 4750 50 0000 C CNN +F 2 "" H 5350 4850 60 0000 C CNN +F 3 "" H 5350 4850 60 0000 C CNN + 1 5350 4850 + -1 0 0 -1 +$EndComp +$Comp +L lm_741 X3 +U 1 1 5E7DF441 +P 6750 4950 +F 0 "X3" H 6550 4950 60 0000 C CNN +F 1 "lm_741" H 6650 4700 60 0000 C CNN +F 2 "" H 6750 4950 60 0000 C CNN +F 3 "" H 6750 4950 60 0000 C CNN + 1 6750 4950 + 1 0 0 -1 +$EndComp +$Comp +L R R3 +U 1 1 5E7DF442 +P 4200 4050 +F 0 "R3" V 4280 4050 50 0000 C CNN +F 1 "1.135k" V 4100 4050 50 0000 C CNN +F 2 "" V 4130 4050 50 0001 C CNN +F 3 "" H 4200 4050 50 0001 C CNN + 1 4200 4050 + 0 1 1 0 +$EndComp +$Comp +L R R1 +U 1 1 5E7DF443 +P 3150 4700 +F 0 "R1" V 3230 4700 50 0000 C CNN +F 1 "1k" V 3150 4700 50 0000 C CNN +F 2 "" V 3080 4700 50 0001 C CNN +F 3 "" H 3150 4700 50 0001 C CNN + 1 3150 4700 + 0 1 1 0 +$EndComp +$Comp +L GND #PWR2 +U 1 1 5E7DF445 +P 2150 2250 +F 0 "#PWR2" H 2150 2000 50 0001 C CNN +F 1 "GND" H 2150 2100 50 0000 C CNN +F 2 "" H 2150 2250 50 0001 C CNN +F 3 "" H 2150 2250 50 0001 C CNN + 1 2150 2250 + 1 0 0 -1 +$EndComp +$Comp +L DC v6 +U 1 1 5E7DF446 +P 4550 2950 +F 0 "v6" H 4350 3050 60 0000 C CNN +F 1 "12" H 4350 2900 60 0000 C CNN +F 2 "R1" H 4250 2950 60 0000 C CNN +F 3 "" H 4550 2950 60 0000 C CNN + 1 4550 2950 + 0 1 -1 0 +$EndComp +$Comp +L GND #PWR8 +U 1 1 5E7DF447 +P 5150 2950 +F 0 "#PWR8" H 5150 2700 50 0001 C CNN +F 1 "GND" H 5150 2800 50 0000 C CNN +F 2 "" H 5150 2950 50 0001 C CNN +F 3 "" H 5150 2950 50 0001 C CNN + 1 5150 2950 + 0 -1 -1 0 +$EndComp +$Comp +L GND #PWR10 +U 1 1 5E7DF448 +P 6350 1900 +F 0 "#PWR10" H 6350 1650 50 0001 C CNN +F 1 "GND" H 6350 1750 50 0000 C CNN +F 2 "" H 6350 1900 50 0001 C CNN +F 3 "" H 6350 1900 50 0001 C CNN + 1 6350 1900 + 1 0 0 -1 +$EndComp +$Comp +L DC v3 +U 1 1 5E7DF449 +P 2250 6450 +F 0 "v3" H 2050 6550 60 0000 C CNN +F 1 "12" H 2050 6400 60 0000 C CNN +F 2 "R1" H 1950 6450 60 0000 C CNN +F 3 "" H 2250 6450 60 0000 C CNN + 1 2250 6450 + 1 0 0 -1 +$EndComp +$Comp +L GND #PWR1 +U 1 1 5E7DF44A +P 1850 6000 +F 0 "#PWR1" H 1850 5750 50 0001 C CNN +F 1 "GND" H 1850 5850 50 0000 C CNN +F 2 "" H 1850 6000 50 0001 C CNN +F 3 "" H 1850 6000 50 0001 C CNN + 1 1850 6000 + 1 0 0 -1 +$EndComp +$Comp +L GND #PWR3 +U 1 1 5E7DF44B +P 2250 6000 +F 0 "#PWR3" H 2250 5750 50 0001 C CNN +F 1 "GND" H 2250 5850 50 0000 C CNN +F 2 "" H 2250 6000 50 0001 C CNN +F 3 "" H 2250 6000 50 0001 C CNN + 1 2250 6000 + -1 0 0 1 +$EndComp +$Comp +L DC v8 +U 1 1 5E7DF44C +P 8400 4150 +F 0 "v8" H 8200 4250 60 0000 C CNN +F 1 "12" H 8200 4100 60 0000 C CNN +F 2 "R1" H 8100 4150 60 0000 C CNN +F 3 "" H 8400 4150 60 0000 C CNN + 1 8400 4150 + 1 0 0 -1 +$EndComp +$Comp +L GND #PWR13 +U 1 1 5E7DF44D +P 8400 4700 +F 0 "#PWR13" H 8400 4450 50 0001 C CNN +F 1 "GND" H 8400 4550 50 0000 C CNN +F 2 "" H 8400 4700 50 0001 C CNN +F 3 "" H 8400 4700 50 0001 C CNN + 1 8400 4700 + 1 0 0 -1 +$EndComp +$Comp +L DC v7 +U 1 1 5E7DF44E +P 6600 6350 +F 0 "v7" H 6400 6450 60 0000 C CNN +F 1 "12" H 6400 6300 60 0000 C CNN +F 2 "R1" H 6300 6350 60 0000 C CNN +F 3 "" H 6600 6350 60 0000 C CNN + 1 6600 6350 + -1 0 0 1 +$EndComp +$Comp +L GND #PWR11 +U 1 1 5E7DF44F +P 6600 6850 +F 0 "#PWR11" H 6600 6600 50 0001 C CNN +F 1 "GND" H 6600 6700 50 0000 C CNN +F 2 "" H 6600 6850 50 0001 C CNN +F 3 "" H 6600 6850 50 0001 C CNN + 1 6600 6850 + 1 0 0 -1 +$EndComp +$Comp +L GND #PWR9 +U 1 1 5E7DF450 +P 6200 5200 +F 0 "#PWR9" H 6200 4950 50 0001 C CNN +F 1 "GND" H 6200 5050 50 0000 C CNN +F 2 "" H 6200 5200 50 0001 C CNN +F 3 "" H 6200 5200 50 0001 C CNN + 1 6200 5200 + 1 0 0 -1 +$EndComp +$Comp +L R R9 +U 1 1 5E7DF451 +P 8150 4950 +F 0 "R9" V 8230 4950 50 0000 C CNN +F 1 "1k" V 8150 4950 50 0000 C CNN +F 2 "" V 8080 4950 50 0001 C CNN +F 3 "" H 8150 4950 50 0001 C CNN + 1 8150 4950 + 0 1 1 0 +$EndComp +$Comp +L R R8 +U 1 1 5E7DF452 +P 7450 4500 +F 0 "R8" V 7530 4500 50 0000 C CNN +F 1 "1k" V 7450 4500 50 0000 C CNN +F 2 "" V 7380 4500 50 0001 C CNN +F 3 "" H 7450 4500 50 0001 C CNN + 1 7450 4500 + 0 1 1 0 +$EndComp +$Comp +L R R6 +U 1 1 5E7DF453 +P 5900 4850 +F 0 "R6" V 5980 4850 50 0000 C CNN +F 1 "0.5k" V 5900 4850 50 0000 C CNN +F 2 "" V 5830 4850 50 0001 C CNN +F 3 "" H 5900 4850 50 0001 C CNN + 1 5900 4850 + 0 1 1 0 +$EndComp +$Comp +L GND #PWR12 +U 1 1 5E7DF454 +P 8350 5000 +F 0 "#PWR12" H 8350 4750 50 0001 C CNN +F 1 "GND" H 8350 4850 50 0000 C CNN +F 2 "" H 8350 5000 50 0001 C CNN +F 3 "" H 8350 5000 50 0001 C CNN + 1 8350 5000 + 1 0 0 -1 +$EndComp +Wire Wire Line + 3450 1650 3700 1650 +Wire Wire Line + 5200 1750 5550 1750 +Wire Wire Line + 2850 2700 2850 2550 +Connection ~ 3050 1650 +Wire Wire Line + 3050 1500 3050 1750 +Wire Wire Line + 2850 1650 3150 1650 +Wire Wire Line + 3600 1300 4700 1300 +Wire Wire Line + 3600 950 3600 1650 +Connection ~ 3600 1650 +Wire Wire Line + 5000 1300 5300 1300 +Wire Wire Line + 5300 1300 5300 1750 +Connection ~ 5300 1750 +Wire Wire Line + 3700 1900 3700 2550 +Connection ~ 5900 1750 +Wire Wire Line + 5200 1800 5200 1750 +Wire Wire Line + 5900 950 5600 950 +Wire Wire Line + 5300 950 3600 950 +Connection ~ 3600 1300 +Wire Wire Line + 5850 1750 6000 1750 +Wire Wire Line + 4800 1800 5200 1800 +Wire Wire Line + 2150 1350 2150 950 +Wire Wire Line + 2150 950 3300 950 +Wire Wire Line + 3300 950 3300 850 +Wire Wire Line + 3300 850 4100 850 +Wire Wire Line + 4100 850 4100 1350 +Wire Wire Line + 4100 2950 4100 2250 +Wire Wire Line + 8000 5050 7850 5050 +Wire Wire Line + 7300 4950 8000 4950 +Wire Wire Line + 2550 5600 2550 5750 +Connection ~ 2750 4700 +Wire Wire Line + 2750 4550 2750 4800 +Wire Wire Line + 1850 3900 1850 4400 +Wire Wire Line + 1850 5300 1850 6000 +Wire Wire Line + 7850 5050 7850 4950 +Wire Wire Line + 3800 3900 3800 4400 +Wire Wire Line + 6600 3550 6600 4500 +Wire Wire Line + 6600 5400 6600 5900 +Connection ~ 3800 5950 +Wire Wire Line + 3800 5300 3800 6900 +Connection ~ 2550 5700 +Wire Wire Line + 2550 4700 3000 4700 +Wire Wire Line + 3300 4700 3400 4700 +Wire Wire Line + 5000 2950 5150 2950 +Wire Wire Line + 6350 1900 6350 1750 +Wire Wire Line + 6350 1750 6300 1750 +Wire Wire Line + 5800 1500 6000 1500 +Connection ~ 5900 1500 +Wire Wire Line + 1850 3900 3800 3900 +Wire Wire Line + 3800 6900 2250 6900 +Wire Wire Line + 6600 6800 6600 6850 +Wire Wire Line + 6200 5050 6200 5200 +Wire Wire Line + 6100 4850 6050 4850 +Wire Wire Line + 3350 4250 3900 4250 +Wire Wire Line + 4200 4250 4550 4250 +Wire Wire Line + 3400 4950 3400 5400 +Wire Wire Line + 3350 4050 4050 4050 +Wire Wire Line + 4350 4050 4950 4050 +Wire Wire Line + 4950 4050 4950 4850 +Connection ~ 4950 4600 +Wire Wire Line + 2900 3800 5400 3800 +Connection ~ 7850 4950 +Wire Wire Line + 8350 5000 8350 4950 +Wire Wire Line + 8350 4950 8300 4950 +$Comp +L GND #PWR6 +U 1 1 5E7DF455 +P 3400 5400 +F 0 "#PWR6" H 3400 5150 50 0001 C CNN +F 1 "GND" H 3400 5250 50 0000 C CNN +F 2 "" H 3400 5400 50 0001 C CNN +F 3 "" H 3400 5400 50 0001 C CNN + 1 3400 5400 + 1 0 0 -1 +$EndComp +Wire Wire Line + 7600 4500 7600 4950 +Connection ~ 7600 4950 +Wire Wire Line + 5950 4500 7300 4500 +$Comp +L R R5 +U 1 1 5E7DF456 +P 5550 3800 +F 0 "R5" V 5630 3800 50 0000 C CNN +F 1 "1k" V 5550 3800 50 0000 C CNN +F 2 "" V 5480 3800 50 0001 C CNN +F 3 "" H 5550 3800 50 0001 C CNN + 1 5550 3800 + 0 1 1 0 +$EndComp +Wire Wire Line + 5900 950 5900 1750 +Connection ~ 4950 4850 +Wire Wire Line + 5500 4850 5750 4850 +Wire Wire Line + 3350 4050 3350 4700 +Connection ~ 3350 4700 +Wire Wire Line + 2900 4700 2900 3800 +Connection ~ 2900 4700 +Connection ~ 3350 4250 +Wire Wire Line + 4500 4850 5200 4850 +Wire Wire Line + 4550 4250 4550 4850 +Connection ~ 4550 4850 +Wire Wire Line + 5700 3800 5950 3800 +Wire Wire Line + 5950 3800 5950 4500 +Wire Wire Line + 6200 4800 6100 4800 +Wire Wire Line + 6100 4500 6100 4850 +Connection ~ 6100 4800 +Connection ~ 6100 4500 +Wire Wire Line + 6600 3550 7250 3550 +Wire Wire Line + 7250 3550 7250 3600 +Wire Wire Line + 8400 4700 8400 4600 +Wire Wire Line + 7250 3600 8400 3600 +Wire Wire Line + 8400 3600 8400 3700 +$EndSCHEMATC diff --git a/Examples/Precision_Rectifiers_using_LM741/Precision_Rectifiers_using_LM741_Previous_Values.xml b/Examples/Precision_Rectifiers_using_LM741/Precision_Rectifiers_using_LM741_Previous_Values.xml new file mode 100644 index 00000000..0633779d --- /dev/null +++ b/Examples/Precision_Rectifiers_using_LM741/Precision_Rectifiers_using_LM741_Previous_Values.xml @@ -0,0 +1 @@ +<KicadtoNgspice><source><v5 name="Source type">sine<field1 name="Offset Value">0</field1><field2 name="Amplitude">5</field2><field3 name="Frequency">50</field3><field4 name="Delay Time">0</field4><field5 name="Damping Factor">0</field5></v5><v2 name="Source type">12</v2><v4 name="Source type">sine<field1 name="Offset Value">0</field1><field2 name="Amplitude">5</field2><field3 name="Frequency">50</field3><field4 name="Delay Time">0</field4><field5 name="Damping Factor">0</field5></v4><v1 name="Source type">12</v1><v6 name="Source type">12</v6><v3 name="Source type">12</v3><v8 name="Source type">12</v8><v7 name="Source type">12</v7></source><model /><devicemodel><d1><field>/home/saurabh/Desktop/eSim-2.0/library/deviceModelLibrary/Diode/D.lib</field></d1><d2><field>/home/saurabh/Desktop/eSim-2.0/library/deviceModelLibrary/Diode/D.lib</field></d2><d3><field>/home/saurabh/Desktop/eSim-2.0/library/deviceModelLibrary/Diode/D.lib</field></d3><d4><field>/home/saurabh/Desktop/eSim-2.0/library/deviceModelLibrary/Diode/D.lib</field></d4></devicemodel><subcircuit><x1><field>/home/saurabh/Desktop/eSim-2.0/library/SubcircuitLibrary/lm_741</field></x1><x3><field>/home/saurabh/Desktop/eSim-2.0/library/SubcircuitLibrary/lm_741</field></x3><x2><field>/home/saurabh/Desktop/eSim-2.0/library/SubcircuitLibrary/lm_741</field></x2></subcircuit><analysis><ac><field1 name="Lin">true</field1><field2 name="Dec">false</field2><field3 name="Oct">false</field3><field4 name="Start Frequency" /><field5 name="Stop Frequency" /><field6 name="No. of points" /><field7 name="Start Fre Combo">Hz</field7><field8 name="Stop Fre Combo">Hz</field8></ac><dc><field1 name="Source 1" /><field2 name="Start" /><field3 name="Increment" /><field4 name="Stop" /><field5 name="Operating Point">0</field5><field6 name="Start Combo">Volts or Amperes</field6><field7 name="Increment Combo">Volts or Amperes</field7><field8 name="Stop Combo">Volts or Amperes</field8><field9 name="Source 2" /><field10 name="Start" /><field11 name="Increment" /><field12 name="Stop" /><field13 name="Start Combo">Volts or Amperes</field13><field14 name="Increment Combo">Volts or Amperes</field14><field15 name="Stop Combo">Volts or Amperes</field15></dc><tran><field1 name="Start Time">0</field1><field2 name="Step Time">10</field2><field3 name="Stop Time">100</field3><field4 name="Start Combo">Sec</field4><field5 name="Step Combo">us</field5><field6 name="Stop Combo">ms</field6></tran></analysis></KicadtoNgspice>
\ No newline at end of file diff --git a/Examples/Precision_Rectifiers_using_LM741/analysis b/Examples/Precision_Rectifiers_using_LM741/analysis new file mode 100644 index 00000000..f238c27a --- /dev/null +++ b/Examples/Precision_Rectifiers_using_LM741/analysis @@ -0,0 +1 @@ +.tran 10e-06 100e-03 0e-00
\ No newline at end of file diff --git a/Examples/Precision_Rectifiers_using_LM741/lm_741-cache.lib b/Examples/Precision_Rectifiers_using_LM741/lm_741-cache.lib new file mode 100644 index 00000000..32e31aa1 --- /dev/null +++ b/Examples/Precision_Rectifiers_using_LM741/lm_741-cache.lib @@ -0,0 +1,120 @@ +EESchema-LIBRARY Version 2.3 +#encoding utf-8 +# +# PORT +# +DEF PORT U 0 40 Y Y 26 F N +F0 "U" 50 100 30 H V C CNN +F1 "PORT" 0 0 30 H V C CNN +F2 "" 0 0 60 H V C CNN +F3 "" 0 0 60 H V C CNN +DRAW +A 325 225 285 -1421 -1278 0 1 0 N 100 50 150 0 +A 376 -275 356 1294 1408 0 1 0 N 150 0 100 -50 +S -100 50 100 -50 0 1 0 N +X ~ 1 250 0 100 L 30 30 1 1 B +X ~ 2 250 0 100 L 30 30 2 1 B +X ~ 3 250 0 100 L 30 30 3 1 B +X ~ 4 250 0 100 L 30 30 4 1 B +X ~ 5 250 0 100 L 30 30 5 1 B +X ~ 6 250 0 100 L 30 30 6 1 B +X ~ 7 250 0 100 L 30 30 7 1 B +X ~ 8 250 0 100 L 30 30 8 1 B +X ~ 9 250 0 100 L 30 30 9 1 B +X ~ 10 250 0 100 L 30 30 10 1 B +X ~ 11 250 0 100 L 30 30 11 1 B +X ~ 12 250 0 100 L 30 30 12 1 B +X ~ 13 250 0 100 L 30 30 13 1 B +X ~ 14 250 0 100 L 30 30 14 1 B +X ~ 15 250 0 100 L 30 30 15 1 B +X ~ 16 250 0 100 L 30 30 16 1 B +X ~ 17 250 0 100 L 30 30 17 1 B +X ~ 18 250 0 100 L 30 30 18 1 B +X ~ 19 250 0 100 L 30 30 19 1 B +X ~ 20 250 0 100 L 30 30 20 1 B +X ~ 21 250 0 100 L 30 30 21 1 B +X ~ 22 250 0 100 L 30 30 22 1 B +X ~ 23 250 0 100 L 30 30 23 1 B +X ~ 24 250 0 100 L 30 30 24 1 B +X ~ 25 250 0 100 L 30 30 25 1 B +X ~ 26 250 0 100 L 30 30 26 1 B +ENDDRAW +ENDDEF +# +# eSim_C +# +DEF eSim_C C 0 10 N Y 1 F N +F0 "C" 25 100 50 H V L CNN +F1 "eSim_C" 25 -100 50 H V L CNN +F2 "" 38 -150 30 H V C CNN +F3 "" 0 0 60 H V C CNN +ALIAS capacitor +$FPLIST + C_* +$ENDFPLIST +DRAW +P 2 0 1 20 -80 -30 80 -30 N +P 2 0 1 20 -80 30 80 30 N +X ~ 1 0 150 110 D 40 40 1 1 P +X ~ 2 0 -150 110 U 40 40 1 1 P +ENDDRAW +ENDDEF +# +# eSim_NPN-RESCUE-lm_741 +# +DEF eSim_NPN-RESCUE-lm_741 Q 0 0 Y N 1 F N +F0 "Q" -100 50 50 H V R CNN +F1 "eSim_NPN-RESCUE-lm_741" -50 150 50 H V R CNN +F2 "" 200 100 29 H V C CNN +F3 "" 0 0 60 H V C CNN +DRAW +C 50 0 111 0 1 10 N +P 2 0 1 0 25 25 100 100 N +P 3 0 1 0 25 -25 100 -100 100 -100 N +P 3 0 1 20 25 75 25 -75 25 -75 N +P 5 0 1 0 50 -70 70 -50 90 -90 50 -70 50 -70 F +X C 1 100 200 100 D 50 50 1 1 C +X B 2 -200 0 225 R 50 50 1 1 I +X E 3 100 -200 100 U 50 50 1 1 E +ENDDRAW +ENDDEF +# +# eSim_PNP-RESCUE-lm_741 +# +DEF eSim_PNP-RESCUE-lm_741 Q 0 0 Y N 1 F N +F0 "Q" -100 50 50 H V R CNN +F1 "eSim_PNP-RESCUE-lm_741" -50 150 50 H V R CNN +F2 "" 200 100 29 H V C CNN +F3 "" 0 0 60 H V C CNN +DRAW +C 50 0 111 0 1 10 N +P 2 0 1 0 25 25 100 100 N +P 3 0 1 0 25 -25 100 -100 100 -100 N +P 3 0 1 20 25 75 25 -75 25 -75 N +P 5 0 1 0 90 -70 70 -90 50 -50 90 -70 90 -70 F +X C 1 100 200 100 D 50 50 1 1 C +X B 2 -200 0 225 R 50 50 1 1 I +X E 3 100 -200 100 U 50 50 1 1 E +ENDDRAW +ENDDEF +# +# eSim_R +# +DEF eSim_R R 0 0 N Y 1 F N +F0 "R" 50 130 50 H V C CNN +F1 "eSim_R" 50 -50 50 H V C CNN +F2 "" 50 -20 30 H V C CNN +F3 "" 50 50 30 V V C CNN +ALIAS resistor +$FPLIST + R_* + Resistor_* +$ENDFPLIST +DRAW +S 150 10 -50 90 0 1 10 N +X ~ 1 -100 50 50 R 60 60 1 1 P +X ~ 2 200 50 50 L 60 60 1 1 P +ENDDRAW +ENDDEF +# +#End Library diff --git a/Examples/Precision_Rectifiers_using_LM741/lm_741-rescue.lib b/Examples/Precision_Rectifiers_using_LM741/lm_741-rescue.lib new file mode 100644 index 00000000..1ac4cbd4 --- /dev/null +++ b/Examples/Precision_Rectifiers_using_LM741/lm_741-rescue.lib @@ -0,0 +1,42 @@ +EESchema-LIBRARY Version 2.3 +#encoding utf-8 +# +# eSim_NPN-RESCUE-lm_741 +# +DEF eSim_NPN-RESCUE-lm_741 Q 0 0 Y N 1 F N +F0 "Q" -100 50 50 H V R CNN +F1 "eSim_NPN-RESCUE-lm_741" -50 150 50 H V R CNN +F2 "" 200 100 29 H V C CNN +F3 "" 0 0 60 H V C CNN +DRAW +C 50 0 111 0 1 10 N +P 2 0 1 0 25 25 100 100 N +P 3 0 1 0 25 -25 100 -100 100 -100 N +P 3 0 1 20 25 75 25 -75 25 -75 N +P 5 0 1 0 50 -70 70 -50 90 -90 50 -70 50 -70 F +X C 1 100 200 100 D 50 50 1 1 C +X B 2 -200 0 225 R 50 50 1 1 I +X E 3 100 -200 100 U 50 50 1 1 E +ENDDRAW +ENDDEF +# +# eSim_PNP-RESCUE-lm_741 +# +DEF eSim_PNP-RESCUE-lm_741 Q 0 0 Y N 1 F N +F0 "Q" -100 50 50 H V R CNN +F1 "eSim_PNP-RESCUE-lm_741" -50 150 50 H V R CNN +F2 "" 200 100 29 H V C CNN +F3 "" 0 0 60 H V C CNN +DRAW +C 50 0 111 0 1 10 N +P 2 0 1 0 25 25 100 100 N +P 3 0 1 0 25 -25 100 -100 100 -100 N +P 3 0 1 20 25 75 25 -75 25 -75 N +P 5 0 1 0 90 -70 70 -90 50 -50 90 -70 90 -70 F +X C 1 100 200 100 D 50 50 1 1 C +X B 2 -200 0 225 R 50 50 1 1 I +X E 3 100 -200 100 U 50 50 1 1 E +ENDDRAW +ENDDEF +# +#End Library diff --git a/Examples/Precision_Rectifiers_using_LM741/lm_741.cir b/Examples/Precision_Rectifiers_using_LM741/lm_741.cir new file mode 100644 index 00000000..4a5917ea --- /dev/null +++ b/Examples/Precision_Rectifiers_using_LM741/lm_741.cir @@ -0,0 +1,43 @@ +* C:\Users\malli\eSim\src\SubcircuitLibrary\lm_741\lm_741.cir + +* EESchema Netlist Version 1.1 (Spice format) creation date: 05/25/19 19:37:28 + +* To exclude a component from the Spice Netlist add [Spice_Netlist_Enabled] user FIELD set to: N +* To reorder the component spice node sequence add [Spice_Node_Sequence] user FIELD and define sequence: 2,1,0 + +* Sheet Name: / +Q1 Net-_Q1-Pad1_ Net-_Q1-Pad2_ Net-_Q1-Pad3_ eSim_NPN +Q2 Net-_Q1-Pad1_ Net-_Q2-Pad2_ Net-_Q2-Pad3_ eSim_NPN +Q6 Net-_Q3-Pad2_ Net-_Q13-Pad1_ Net-_Q1-Pad3_ eSim_PNP +Q5 Net-_C1-Pad2_ Net-_Q13-Pad1_ Net-_Q2-Pad3_ eSim_PNP +Q3 Net-_Q10-Pad3_ Net-_Q3-Pad2_ Net-_Q3-Pad3_ eSim_NPN +Q4 Net-_Q1-Pad1_ Net-_Q1-Pad1_ Net-_Q10-Pad3_ eSim_PNP +Q9 Net-_Q13-Pad1_ Net-_Q1-Pad1_ Net-_Q10-Pad3_ eSim_PNP +Q8 Net-_C1-Pad2_ Net-_Q3-Pad3_ Net-_Q8-Pad3_ eSim_NPN +Q7 Net-_Q3-Pad2_ Net-_Q3-Pad3_ Net-_Q7-Pad3_ eSim_NPN +R1 Net-_Q7-Pad3_ Net-_Q12-Pad3_ 1k +R2 Net-_Q3-Pad3_ Net-_Q12-Pad3_ 50k +R3 Net-_Q8-Pad3_ Net-_Q12-Pad3_ 1k +Q12 Net-_Q12-Pad1_ Net-_Q12-Pad1_ Net-_Q12-Pad3_ eSim_NPN +Q13 Net-_Q13-Pad1_ Net-_Q12-Pad1_ Net-_Q13-Pad3_ eSim_NPN +R4 Net-_Q13-Pad3_ Net-_Q12-Pad3_ 5k +R11 Net-_Q10-Pad1_ Net-_Q12-Pad1_ 39k +Q10 Net-_Q10-Pad1_ Net-_Q10-Pad1_ Net-_Q10-Pad3_ eSim_PNP +Q11 Net-_C1-Pad1_ Net-_Q10-Pad1_ Net-_Q10-Pad3_ eSim_PNP +Q14 Net-_C1-Pad1_ Net-_Q14-Pad2_ Net-_Q14-Pad3_ eSim_NPN +R8 Net-_C1-Pad1_ Net-_Q14-Pad2_ 4.5k +R7 Net-_Q14-Pad3_ Net-_Q14-Pad2_ 7.5k +C1 Net-_C1-Pad1_ Net-_C1-Pad2_ 30p +Q16 Net-_Q14-Pad3_ Net-_C1-Pad2_ Net-_Q15-Pad2_ eSim_NPN +Q15 Net-_Q14-Pad3_ Net-_Q15-Pad2_ Net-_Q15-Pad3_ eSim_NPN +R5 Net-_Q15-Pad2_ Net-_Q12-Pad3_ 50k +R6 Net-_Q15-Pad3_ Net-_Q12-Pad3_ 50 +Q17 Net-_C1-Pad2_ Net-_Q15-Pad3_ Net-_Q12-Pad3_ eSim_NPN +Q18 Net-_Q10-Pad3_ Net-_C1-Pad1_ Net-_Q18-Pad3_ eSim_NPN +Q20 Net-_C1-Pad1_ Net-_Q18-Pad3_ Net-_Q20-Pad3_ eSim_NPN +R9 Net-_Q18-Pad3_ Net-_Q20-Pad3_ 25 +R10 Net-_Q20-Pad3_ Net-_Q19-Pad3_ 50 +Q19 Net-_Q12-Pad3_ Net-_Q14-Pad3_ Net-_Q19-Pad3_ eSim_PNP +U1 Net-_Q7-Pad3_ Net-_Q2-Pad2_ Net-_Q1-Pad2_ Net-_Q12-Pad3_ Net-_Q8-Pad3_ Net-_Q20-Pad3_ Net-_Q10-Pad3_ ? PORT + +.end diff --git a/Examples/Precision_Rectifiers_using_LM741/lm_741.cir.out b/Examples/Precision_Rectifiers_using_LM741/lm_741.cir.out new file mode 100644 index 00000000..a00bd86a --- /dev/null +++ b/Examples/Precision_Rectifiers_using_LM741/lm_741.cir.out @@ -0,0 +1,46 @@ +* c:\users\malli\esim\src\subcircuitlibrary\lm_741\lm_741.cir + +.include npn_1.lib +.include pnp_1.lib +q1 net-_q1-pad1_ net-_q1-pad2_ net-_q1-pad3_ npn_1 +q2 net-_q1-pad1_ net-_q2-pad2_ net-_q2-pad3_ npn_1 +q6 net-_q3-pad2_ net-_q13-pad1_ net-_q1-pad3_ pnp_1 +q5 net-_c1-pad2_ net-_q13-pad1_ net-_q2-pad3_ pnp_1 +q3 net-_q10-pad3_ net-_q3-pad2_ net-_q3-pad3_ npn_1 +q4 net-_q1-pad1_ net-_q1-pad1_ net-_q10-pad3_ pnp_1 +q9 net-_q13-pad1_ net-_q1-pad1_ net-_q10-pad3_ pnp_1 +q8 net-_c1-pad2_ net-_q3-pad3_ net-_q8-pad3_ npn_1 +q7 net-_q3-pad2_ net-_q3-pad3_ net-_q7-pad3_ npn_1 +r1 net-_q7-pad3_ net-_q12-pad3_ 1k +r2 net-_q3-pad3_ net-_q12-pad3_ 50k +r3 net-_q8-pad3_ net-_q12-pad3_ 1k +q12 net-_q12-pad1_ net-_q12-pad1_ net-_q12-pad3_ npn_1 +q13 net-_q13-pad1_ net-_q12-pad1_ net-_q13-pad3_ npn_1 +r4 net-_q13-pad3_ net-_q12-pad3_ 5k +r11 net-_q10-pad1_ net-_q12-pad1_ 39k +q10 net-_q10-pad1_ net-_q10-pad1_ net-_q10-pad3_ pnp_1 +q11 net-_c1-pad1_ net-_q10-pad1_ net-_q10-pad3_ pnp_1 +q14 net-_c1-pad1_ net-_q14-pad2_ net-_q14-pad3_ npn_1 +r8 net-_c1-pad1_ net-_q14-pad2_ 4.5k +r7 net-_q14-pad3_ net-_q14-pad2_ 7.5k +c1 net-_c1-pad1_ net-_c1-pad2_ 30p +q16 net-_q14-pad3_ net-_c1-pad2_ net-_q15-pad2_ npn_1 +q15 net-_q14-pad3_ net-_q15-pad2_ net-_q15-pad3_ npn_1 +r5 net-_q15-pad2_ net-_q12-pad3_ 50k +r6 net-_q15-pad3_ net-_q12-pad3_ 50 +q17 net-_c1-pad2_ net-_q15-pad3_ net-_q12-pad3_ npn_1 +q18 net-_q10-pad3_ net-_c1-pad1_ net-_q18-pad3_ npn_1 +q20 net-_c1-pad1_ net-_q18-pad3_ net-_q20-pad3_ npn_1 +r9 net-_q18-pad3_ net-_q20-pad3_ 25 +r10 net-_q20-pad3_ net-_q19-pad3_ 50 +q19 net-_q12-pad3_ net-_q14-pad3_ net-_q19-pad3_ pnp_1 +* u1 net-_q7-pad3_ net-_q2-pad2_ net-_q1-pad2_ net-_q12-pad3_ net-_q8-pad3_ net-_q20-pad3_ net-_q10-pad3_ ? port +.tran 0e-00 0e-00 0e-00 + +* Control Statements +.control +run +print allv > plot_data_v.txt +print alli > plot_data_i.txt +.endc +.end diff --git a/Examples/Precision_Rectifiers_using_LM741/lm_741.pro b/Examples/Precision_Rectifiers_using_LM741/lm_741.pro new file mode 100644 index 00000000..ea47a221 --- /dev/null +++ b/Examples/Precision_Rectifiers_using_LM741/lm_741.pro @@ -0,0 +1,45 @@ +update=Fri Mar 20 14:12:34 2020 +version=1 +last_client=eeschema +[general] +version=1 +RootSch= +BoardNm= +[pcbnew] +version=1 +LastNetListRead= +UseCmpFile=1 +PadDrill=0.600000000000 +PadDrillOvalY=0.600000000000 +PadSizeH=1.500000000000 +PadSizeV=1.500000000000 +PcbTextSizeV=1.500000000000 +PcbTextSizeH=1.500000000000 +PcbTextThickness=0.300000000000 +ModuleTextSizeV=1.000000000000 +ModuleTextSizeH=1.000000000000 +ModuleTextSizeThickness=0.150000000000 +SolderMaskClearance=0.000000000000 +SolderMaskMinWidth=0.000000000000 +DrawSegmentWidth=0.200000000000 +BoardOutlineThickness=0.100000000000 +ModuleOutlineThickness=0.150000000000 +[cvpcb] +version=1 +NetIExt=net +[eeschema] +version=1 +LibDir= +[eeschema/libraries] +LibName1=lm_741-rescue +LibName2=power +LibName3=eSim_Analog +LibName4=eSim_Devices +LibName5=eSim_Digital +LibName6=eSim_Hybrid +LibName7=eSim_Miscellaneous +LibName8=eSim_Plot +LibName9=eSim_Power +LibName10=eSim_User +LibName11=eSim_Sources +LibName12=eSim_Subckt diff --git a/Examples/Precision_Rectifiers_using_LM741/lm_741.sch b/Examples/Precision_Rectifiers_using_LM741/lm_741.sch new file mode 100644 index 00000000..698b434e --- /dev/null +++ b/Examples/Precision_Rectifiers_using_LM741/lm_741.sch @@ -0,0 +1,697 @@ +EESchema Schematic File Version 2 +LIBS:lm_741-rescue +LIBS:power +LIBS:eSim_Analog +LIBS:eSim_Devices +LIBS:eSim_Digital +LIBS:eSim_Hybrid +LIBS:eSim_Miscellaneous +LIBS:eSim_Plot +LIBS:eSim_Power +LIBS:eSim_User +LIBS:eSim_Sources +LIBS:eSim_Subckt +LIBS:lm_741-cache +EELAYER 25 0 +EELAYER END +$Descr A4 11693 8268 +encoding utf-8 +Sheet 1 1 +Title "" +Date "" +Rev "" +Comp "" +Comment1 "" +Comment2 "" +Comment3 "" +Comment4 "" +$EndDescr +$Comp +L eSim_NPN-RESCUE-lm_741 Q1 +U 1 1 5CE90A7B +P 2650 2700 +F 0 "Q1" H 2550 2750 50 0000 R CNN +F 1 "eSim_NPN" H 2600 2850 50 0000 R CNN +F 2 "" H 2850 2800 29 0000 C CNN +F 3 "" H 2650 2700 60 0000 C CNN + 1 2650 2700 + 1 0 0 -1 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q2 +U 1 1 5CE90A7C +P 4300 2700 +F 0 "Q2" H 4200 2750 50 0000 R CNN +F 1 "eSim_NPN" H 4250 2850 50 0000 R CNN +F 2 "" H 4500 2800 29 0000 C CNN +F 3 "" H 4300 2700 60 0000 C CNN + 1 4300 2700 + -1 0 0 -1 +$EndComp +$Comp +L eSim_PNP-RESCUE-lm_741 Q6 +U 1 1 5CE90A7D +P 3000 3200 +F 0 "Q6" H 2900 3250 50 0000 R CNN +F 1 "eSim_PNP" H 2950 3350 50 0000 R CNN +F 2 "" H 3200 3300 29 0000 C CNN +F 3 "" H 3000 3200 60 0000 C CNN + 1 3000 3200 + -1 0 0 1 +$EndComp +$Comp +L eSim_PNP-RESCUE-lm_741 Q5 +U 1 1 5CE90A7E +P 3950 3200 +F 0 "Q5" H 3850 3250 50 0000 R CNN +F 1 "eSim_PNP" H 3900 3350 50 0000 R CNN +F 2 "" H 4150 3300 29 0000 C CNN +F 3 "" H 3950 3200 60 0000 C CNN + 1 3950 3200 + 1 0 0 1 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q3 +U 1 1 5CE90A7F +P 3300 4000 +F 0 "Q3" H 3200 4050 50 0000 R CNN +F 1 "eSim_NPN" H 3250 4150 50 0000 R CNN +F 2 "" H 3500 4100 29 0000 C CNN +F 3 "" H 3300 4000 60 0000 C CNN + 1 3300 4000 + 1 0 0 -1 +$EndComp +$Comp +L eSim_PNP-RESCUE-lm_741 Q4 +U 1 1 5CE90A80 +P 3850 2000 +F 0 "Q4" H 3750 2050 50 0000 R CNN +F 1 "eSim_PNP" H 3800 2150 50 0000 R CNN +F 2 "" H 4050 2100 29 0000 C CNN +F 3 "" H 3850 2000 60 0000 C CNN + 1 3850 2000 + -1 0 0 1 +$EndComp +$Comp +L eSim_PNP-RESCUE-lm_741 Q9 +U 1 1 5CE90A81 +P 5200 2000 +F 0 "Q9" H 5100 2050 50 0000 R CNN +F 1 "eSim_PNP" H 5150 2150 50 0000 R CNN +F 2 "" H 5400 2100 29 0000 C CNN +F 3 "" H 5200 2000 60 0000 C CNN + 1 5200 2000 + 1 0 0 1 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q8 +U 1 1 5CE90A82 +P 3950 4600 +F 0 "Q8" H 3850 4650 50 0000 R CNN +F 1 "eSim_NPN" H 3900 4750 50 0000 R CNN +F 2 "" H 4150 4700 29 0000 C CNN +F 3 "" H 3950 4600 60 0000 C CNN + 1 3950 4600 + 1 0 0 -1 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q7 +U 1 1 5CE90A83 +P 3000 4600 +F 0 "Q7" H 2900 4650 50 0000 R CNN +F 1 "eSim_NPN" H 2950 4750 50 0000 R CNN +F 2 "" H 3200 4700 29 0000 C CNN +F 3 "" H 3000 4600 60 0000 C CNN + 1 3000 4600 + -1 0 0 -1 +$EndComp +$Comp +L eSim_R R1 +U 1 1 5CE90A84 +P 2850 5200 +F 0 "R1" H 2900 5330 50 0000 C CNN +F 1 "1k" H 2900 5250 50 0000 C CNN +F 2 "" H 2900 5180 30 0000 C CNN +F 3 "" V 2900 5250 30 0000 C CNN + 1 2850 5200 + 0 1 1 0 +$EndComp +$Comp +L eSim_R R2 +U 1 1 5CE90A85 +P 3550 5200 +F 0 "R2" H 3600 5330 50 0000 C CNN +F 1 "50k" H 3600 5250 50 0000 C CNN +F 2 "" H 3600 5180 30 0000 C CNN +F 3 "" V 3600 5250 30 0000 C CNN + 1 3550 5200 + 0 1 1 0 +$EndComp +$Comp +L eSim_R R3 +U 1 1 5CE90A86 +P 4000 5200 +F 0 "R3" H 4050 5330 50 0000 C CNN +F 1 "1k" H 4050 5250 50 0000 C CNN +F 2 "" H 4050 5180 30 0000 C CNN +F 3 "" V 4050 5250 30 0000 C CNN + 1 4000 5200 + 0 1 1 0 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q12 +U 1 1 5CE90A87 +P 6300 4700 +F 0 "Q12" H 6200 4750 50 0000 R CNN +F 1 "eSim_NPN" H 6250 4850 50 0000 R CNN +F 2 "" H 6500 4800 29 0000 C CNN +F 3 "" H 6300 4700 60 0000 C CNN + 1 6300 4700 + 1 0 0 -1 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q13 +U 1 1 5CE90A88 +P 5400 4700 +F 0 "Q13" H 5300 4750 50 0000 R CNN +F 1 "eSim_NPN" H 5350 4850 50 0000 R CNN +F 2 "" H 5600 4800 29 0000 C CNN +F 3 "" H 5400 4700 60 0000 C CNN + 1 5400 4700 + -1 0 0 -1 +$EndComp +$Comp +L eSim_R R4 +U 1 1 5CE90A89 +P 5250 5200 +F 0 "R4" H 5300 5330 50 0000 C CNN +F 1 "5k" H 5300 5250 50 0000 C CNN +F 2 "" H 5300 5180 30 0000 C CNN +F 3 "" V 5300 5250 30 0000 C CNN + 1 5250 5200 + 0 1 1 0 +$EndComp +$Comp +L eSim_R R11 +U 1 1 5CE90A8A +P 6350 2750 +F 0 "R11" H 6400 2880 50 0000 C CNN +F 1 "39k" H 6400 2800 50 0000 C CNN +F 2 "" H 6400 2730 30 0000 C CNN +F 3 "" V 6400 2800 30 0000 C CNN + 1 6350 2750 + 0 1 1 0 +$EndComp +$Comp +L eSim_PNP-RESCUE-lm_741 Q10 +U 1 1 5CE90A8B +P 6500 1950 +F 0 "Q10" H 6400 2000 50 0000 R CNN +F 1 "eSim_PNP" H 6450 2100 50 0000 R CNN +F 2 "" H 6700 2050 29 0000 C CNN +F 3 "" H 6500 1950 60 0000 C CNN + 1 6500 1950 + -1 0 0 1 +$EndComp +$Comp +L eSim_PNP-RESCUE-lm_741 Q11 +U 1 1 5CE90A8C +P 7500 1950 +F 0 "Q11" H 7400 2000 50 0000 R CNN +F 1 "eSim_PNP" H 7450 2100 50 0000 R CNN +F 2 "" H 7700 2050 29 0000 C CNN +F 3 "" H 7500 1950 60 0000 C CNN + 1 7500 1950 + 1 0 0 1 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q14 +U 1 1 5CE90A8D +P 7500 3050 +F 0 "Q14" H 7400 3100 50 0000 R CNN +F 1 "eSim_NPN" H 7450 3200 50 0000 R CNN +F 2 "" H 7700 3150 29 0000 C CNN +F 3 "" H 7500 3050 60 0000 C CNN + 1 7500 3050 + 1 0 0 -1 +$EndComp +$Comp +L eSim_R R8 +U 1 1 5CE90A8E +P 7300 2600 +F 0 "R8" H 7350 2730 50 0000 C CNN +F 1 "4.5k" H 7350 2650 50 0000 C CNN +F 2 "" H 7350 2580 30 0000 C CNN +F 3 "" V 7350 2650 30 0000 C CNN + 1 7300 2600 + -1 0 0 1 +$EndComp +$Comp +L eSim_R R7 +U 1 1 5CE90A8F +P 7300 3400 +F 0 "R7" H 7350 3530 50 0000 C CNN +F 1 "7.5k" H 7350 3450 50 0000 C CNN +F 2 "" H 7350 3380 30 0000 C CNN +F 3 "" V 7350 3450 30 0000 C CNN + 1 7300 3400 + -1 0 0 1 +$EndComp +$Comp +L eSim_C C1 +U 1 1 5CE90A90 +P 6600 3200 +F 0 "C1" H 6625 3300 50 0000 L CNN +F 1 "30p" H 6625 3100 50 0000 L CNN +F 2 "" H 6638 3050 30 0000 C CNN +F 3 "" H 6600 3200 60 0000 C CNN + 1 6600 3200 + 1 0 0 -1 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q16 +U 1 1 5CE90A91 +P 7050 3950 +F 0 "Q16" H 6950 4000 50 0000 R CNN +F 1 "eSim_NPN" H 7000 4100 50 0000 R CNN +F 2 "" H 7250 4050 29 0000 C CNN +F 3 "" H 7050 3950 60 0000 C CNN + 1 7050 3950 + 1 0 0 -1 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q15 +U 1 1 5CE90A92 +P 7500 4300 +F 0 "Q15" H 7400 4350 50 0000 R CNN +F 1 "eSim_NPN" H 7450 4450 50 0000 R CNN +F 2 "" H 7700 4400 29 0000 C CNN +F 3 "" H 7500 4300 60 0000 C CNN + 1 7500 4300 + 1 0 0 -1 +$EndComp +$Comp +L eSim_R R5 +U 1 1 5CE90A93 +P 7100 5050 +F 0 "R5" H 7150 5180 50 0000 C CNN +F 1 "50k" H 7150 5100 50 0000 C CNN +F 2 "" H 7150 5030 30 0000 C CNN +F 3 "" V 7150 5100 30 0000 C CNN + 1 7100 5050 + 0 1 1 0 +$EndComp +$Comp +L eSim_R R6 +U 1 1 5CE90A94 +P 7550 5050 +F 0 "R6" H 7600 5180 50 0000 C CNN +F 1 "50" H 7600 5100 50 0000 C CNN +F 2 "" H 7600 5030 30 0000 C CNN +F 3 "" V 7600 5100 30 0000 C CNN + 1 7550 5050 + 0 1 1 0 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q17 +U 1 1 5CE90A95 +P 6800 4700 +F 0 "Q17" H 6700 4750 50 0000 R CNN +F 1 "eSim_NPN" H 6750 4850 50 0000 R CNN +F 2 "" H 7000 4800 29 0000 C CNN +F 3 "" H 6800 4700 60 0000 C CNN + 1 6800 4700 + -1 0 0 -1 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q18 +U 1 1 5CE90A96 +P 8800 2300 +F 0 "Q18" H 8700 2350 50 0000 R CNN +F 1 "eSim_NPN" H 8750 2450 50 0000 R CNN +F 2 "" H 9000 2400 29 0000 C CNN +F 3 "" H 8800 2300 60 0000 C CNN + 1 8800 2300 + 1 0 0 -1 +$EndComp +$Comp +L eSim_NPN-RESCUE-lm_741 Q20 +U 1 1 5CE90A97 +P 8400 2750 +F 0 "Q20" H 8300 2800 50 0000 R CNN +F 1 "eSim_NPN" H 8350 2900 50 0000 R CNN +F 2 "" H 8600 2850 29 0000 C CNN +F 3 "" H 8400 2750 60 0000 C CNN + 1 8400 2750 + -1 0 0 -1 +$EndComp +$Comp +L eSim_R R9 +U 1 1 5CE90A98 +P 8850 3000 +F 0 "R9" H 8900 3130 50 0000 C CNN +F 1 "25" H 8900 3050 50 0000 C CNN +F 2 "" H 8900 2980 30 0000 C CNN +F 3 "" V 8900 3050 30 0000 C CNN + 1 8850 3000 + 0 1 1 0 +$EndComp +$Comp +L eSim_R R10 +U 1 1 5CE90A99 +P 8850 3750 +F 0 "R10" H 8900 3880 50 0000 C CNN +F 1 "50" H 8900 3800 50 0000 C CNN +F 2 "" H 8900 3730 30 0000 C CNN +F 3 "" V 8900 3800 30 0000 C CNN + 1 8850 3750 + 0 1 1 0 +$EndComp +$Comp +L eSim_PNP-RESCUE-lm_741 Q19 +U 1 1 5CE90A9A +P 8800 4600 +F 0 "Q19" H 8700 4650 50 0000 R CNN +F 1 "eSim_PNP" H 8750 4750 50 0000 R CNN +F 2 "" H 9000 4700 29 0000 C CNN +F 3 "" H 8800 4600 60 0000 C CNN + 1 8800 4600 + 1 0 0 1 +$EndComp +$Comp +L PORT U1 +U 3 1 5CE90A9B +P 1900 1200 +F 0 "U1" H 1950 1300 30 0000 C CNN +F 1 "PORT" H 1900 1200 30 0000 C CNN +F 2 "" H 1900 1200 60 0000 C CNN +F 3 "" H 1900 1200 60 0000 C CNN + 3 1900 1200 + 1 0 0 -1 +$EndComp +$Comp +L PORT U1 +U 2 1 5CE90A9C +P 4500 1050 +F 0 "U1" H 4550 1150 30 0000 C CNN +F 1 "PORT" H 4500 1050 30 0000 C CNN +F 2 "" H 4500 1050 60 0000 C CNN +F 3 "" H 4500 1050 60 0000 C CNN + 2 4500 1050 + 1 0 0 -1 +$EndComp +$Comp +L PORT U1 +U 7 1 5CE90A9D +P 9750 1650 +F 0 "U1" H 9800 1750 30 0000 C CNN +F 1 "PORT" H 9750 1650 30 0000 C CNN +F 2 "" H 9750 1650 60 0000 C CNN +F 3 "" H 9750 1650 60 0000 C CNN + 7 9750 1650 + -1 0 0 1 +$EndComp +$Comp +L PORT U1 +U 6 1 5CE90A9E +P 9750 3500 +F 0 "U1" H 9800 3600 30 0000 C CNN +F 1 "PORT" H 9750 3500 30 0000 C CNN +F 2 "" H 9750 3500 60 0000 C CNN +F 3 "" H 9750 3500 60 0000 C CNN + 6 9750 3500 + -1 0 0 1 +$EndComp +$Comp +L PORT U1 +U 4 1 5CE90A9F +P 9700 5550 +F 0 "U1" H 9750 5650 30 0000 C CNN +F 1 "PORT" H 9700 5550 30 0000 C CNN +F 2 "" H 9700 5550 60 0000 C CNN +F 3 "" H 9700 5550 60 0000 C CNN + 4 9700 5550 + -1 0 0 1 +$EndComp +Wire Wire Line + 3200 3200 3750 3200 +Wire Wire Line + 2750 2900 2750 2950 +Wire Wire Line + 2750 2950 2900 2950 +Wire Wire Line + 2900 2950 2900 3000 +Wire Wire Line + 4200 2900 4200 2950 +Wire Wire Line + 4200 2950 4050 2950 +Wire Wire Line + 4050 2950 4050 3000 +Wire Wire Line + 2900 3400 2900 4400 +Wire Wire Line + 2900 4000 3100 4000 +Wire Wire Line + 4200 2000 4200 2500 +Wire Wire Line + 4200 2350 2750 2350 +Wire Wire Line + 2750 2350 2750 2500 +Wire Wire Line + 5000 2000 4050 2000 +Connection ~ 4200 2350 +Connection ~ 4200 2000 +Wire Wire Line + 3750 2200 3750 2350 +Connection ~ 3750 2350 +Wire Wire Line + 3750 1800 3750 1650 +Wire Wire Line + 3400 1650 7600 1650 +Wire Wire Line + 3400 1650 3400 3800 +Wire Wire Line + 5300 1650 5300 1800 +Connection ~ 3750 1650 +Wire Wire Line + 5300 2200 5300 4500 +Wire Wire Line + 5300 3500 3650 3500 +Wire Wire Line + 3650 3500 3650 3200 +Connection ~ 3650 3200 +Connection ~ 2900 4000 +Wire Wire Line + 4050 4400 4050 3400 +Wire Wire Line + 3400 4200 3400 4600 +Wire Wire Line + 3200 4600 3750 4600 +Connection ~ 3400 4600 +Wire Wire Line + 4050 5100 4050 4800 +Wire Wire Line + 3600 5100 3600 4600 +Connection ~ 3600 4600 +Wire Wire Line + 2900 5100 2900 4800 +Wire Wire Line + 2900 5400 2900 5550 +Wire Wire Line + 2900 5550 9450 5550 +Wire Wire Line + 4050 5550 4050 5400 +Wire Wire Line + 3600 5400 3600 5550 +Connection ~ 3600 5550 +Wire Wire Line + 6100 4700 5600 4700 +Wire Wire Line + 6400 2950 6400 4500 +Wire Wire Line + 6400 4250 5900 4250 +Wire Wire Line + 5900 4250 5900 4700 +Connection ~ 5900 4700 +Wire Wire Line + 5300 5100 5300 4900 +Wire Wire Line + 5300 5550 5300 5400 +Connection ~ 4050 5550 +Wire Wire Line + 6400 5550 6400 4900 +Connection ~ 5300 5550 +Connection ~ 5300 3500 +Wire Wire Line + 6400 1650 6400 1750 +Connection ~ 5300 1650 +Wire Wire Line + 6400 2150 6400 2650 +Connection ~ 6400 4250 +Wire Wire Line + 6700 1950 7300 1950 +Wire Wire Line + 7000 1950 7000 2250 +Wire Wire Line + 7000 2250 6400 2250 +Connection ~ 6400 2250 +Wire Wire Line + 7600 1650 7600 1750 +Connection ~ 6400 1650 +Connection ~ 7000 1950 +Wire Wire Line + 7600 3250 7600 4100 +Wire Wire Line + 7600 3450 7400 3450 +Wire Wire Line + 6900 3450 7100 3450 +Wire Wire Line + 6900 2650 6900 3450 +Wire Wire Line + 6900 3050 7300 3050 +Wire Wire Line + 7600 2150 7600 2850 +Wire Wire Line + 7600 2650 7400 2650 +Wire Wire Line + 7100 2650 6900 2650 +Connection ~ 6900 3050 +Connection ~ 7600 2650 +Wire Wire Line + 7300 4300 7150 4300 +Wire Wire Line + 7150 4150 7150 4950 +Connection ~ 7600 3450 +Wire Wire Line + 7600 3700 7150 3700 +Wire Wire Line + 7150 3700 7150 3750 +Connection ~ 7600 3700 +Wire Wire Line + 6600 3050 6600 2450 +Wire Wire Line + 6600 2450 7600 2450 +Connection ~ 7600 2450 +Wire Wire Line + 6600 3350 6600 3950 +Wire Wire Line + 4050 3950 6850 3950 +Wire Wire Line + 6700 3950 6700 4500 +Connection ~ 6700 3950 +Wire Wire Line + 6700 4900 6700 5550 +Connection ~ 6400 5550 +Connection ~ 7150 4300 +Wire Wire Line + 7600 4950 7600 4500 +Wire Wire Line + 7000 4700 7600 4700 +Connection ~ 7600 4700 +Wire Wire Line + 7600 5550 7600 5250 +Connection ~ 6700 5550 +Wire Wire Line + 7150 5250 7150 5550 +Connection ~ 7150 5550 +Wire Wire Line + 7600 2300 8600 2300 +Wire Wire Line + 8300 2300 8300 2550 +Connection ~ 8300 2300 +Connection ~ 7600 2300 +Wire Wire Line + 8900 2100 8900 1650 +Wire Wire Line + 7550 1650 9500 1650 +Connection ~ 7550 1650 +Connection ~ 8900 1650 +Wire Wire Line + 8900 2500 8900 2900 +Wire Wire Line + 8900 2750 8600 2750 +Connection ~ 8900 2750 +Wire Wire Line + 8300 2950 8300 3350 +Wire Wire Line + 8300 3350 8900 3350 +Wire Wire Line + 8900 3200 8900 3650 +Wire Wire Line + 8900 4400 8900 3950 +Connection ~ 8900 3350 +Wire Wire Line + 8900 3500 9500 3500 +Connection ~ 8900 3500 +Wire Wire Line + 8900 5550 8900 4800 +Connection ~ 7600 5550 +Connection ~ 8900 5550 +Wire Wire Line + 8600 4600 8100 4600 +Wire Wire Line + 8100 4600 8100 3850 +Wire Wire Line + 8100 3850 7600 3850 +Connection ~ 7600 3850 +Connection ~ 4050 3950 +Connection ~ 6600 3950 +Wire Wire Line + 4500 2700 4750 2700 +Wire Wire Line + 4750 2700 4750 1050 +Wire Wire Line + 2450 2700 2150 2700 +Wire Wire Line + 2150 2700 2150 1200 +$Comp +L PORT U1 +U 5 1 5CE90AA0 +P 1850 4850 +F 0 "U1" H 1900 4950 30 0000 C CNN +F 1 "PORT" H 1850 4850 30 0000 C CNN +F 2 "" H 1850 4850 60 0000 C CNN +F 3 "" H 1850 4850 60 0000 C CNN + 5 1850 4850 + 1 0 0 -1 +$EndComp +$Comp +L PORT U1 +U 1 1 5CE90AA1 +P 1850 5100 +F 0 "U1" H 1900 5200 30 0000 C CNN +F 1 "PORT" H 1850 5100 30 0000 C CNN +F 2 "" H 1850 5100 60 0000 C CNN +F 3 "" H 1850 5100 60 0000 C CNN + 1 1850 5100 + 1 0 0 -1 +$EndComp +Wire Wire Line + 2100 5100 2700 5100 +Wire Wire Line + 2700 5100 2700 5050 +Wire Wire Line + 2700 5050 2900 5050 +Connection ~ 2900 5050 +Wire Wire Line + 2100 4850 2550 4850 +Wire Wire Line + 2550 4850 2550 4900 +Wire Wire Line + 2550 4900 4050 4900 +Connection ~ 4050 4900 +$Comp +L PORT U1 +U 8 1 5CE9368F +P 9600 6050 +F 0 "U1" H 9650 6150 30 0000 C CNN +F 1 "PORT" H 9600 6050 30 0000 C CNN +F 2 "" H 9600 6050 60 0000 C CNN +F 3 "" H 9600 6050 60 0000 C CNN + 8 9600 6050 + -1 0 0 1 +$EndComp +Wire Wire Line + 9350 6050 9100 6050 +NoConn ~ 9100 6050 +$EndSCHEMATC diff --git a/Examples/Precision_Rectifiers_using_LM741/lm_741.sub b/Examples/Precision_Rectifiers_using_LM741/lm_741.sub new file mode 100644 index 00000000..fa8d27b1 --- /dev/null +++ b/Examples/Precision_Rectifiers_using_LM741/lm_741.sub @@ -0,0 +1,40 @@ +* Subcircuit lm_741 +.subckt lm_741 net-_q7-pad3_ net-_q2-pad2_ net-_q1-pad2_ net-_q12-pad3_ net-_q8-pad3_ net-_q20-pad3_ net-_q10-pad3_ ? +* c:\users\malli\esim\src\subcircuitlibrary\lm_741\lm_741.cir +.include npn_1.lib +.include pnp_1.lib +q1 net-_q1-pad1_ net-_q1-pad2_ net-_q1-pad3_ npn_1 +q2 net-_q1-pad1_ net-_q2-pad2_ net-_q2-pad3_ npn_1 +q6 net-_q3-pad2_ net-_q13-pad1_ net-_q1-pad3_ pnp_1 +q5 net-_c1-pad2_ net-_q13-pad1_ net-_q2-pad3_ pnp_1 +q3 net-_q10-pad3_ net-_q3-pad2_ net-_q3-pad3_ npn_1 +q4 net-_q1-pad1_ net-_q1-pad1_ net-_q10-pad3_ pnp_1 +q9 net-_q13-pad1_ net-_q1-pad1_ net-_q10-pad3_ pnp_1 +q8 net-_c1-pad2_ net-_q3-pad3_ net-_q8-pad3_ npn_1 +q7 net-_q3-pad2_ net-_q3-pad3_ net-_q7-pad3_ npn_1 +r1 net-_q7-pad3_ net-_q12-pad3_ 1k +r2 net-_q3-pad3_ net-_q12-pad3_ 50k +r3 net-_q8-pad3_ net-_q12-pad3_ 1k +q12 net-_q12-pad1_ net-_q12-pad1_ net-_q12-pad3_ npn_1 +q13 net-_q13-pad1_ net-_q12-pad1_ net-_q13-pad3_ npn_1 +r4 net-_q13-pad3_ net-_q12-pad3_ 5k +r11 net-_q10-pad1_ net-_q12-pad1_ 39k +q10 net-_q10-pad1_ net-_q10-pad1_ net-_q10-pad3_ pnp_1 +q11 net-_c1-pad1_ net-_q10-pad1_ net-_q10-pad3_ pnp_1 +q14 net-_c1-pad1_ net-_q14-pad2_ net-_q14-pad3_ npn_1 +r8 net-_c1-pad1_ net-_q14-pad2_ 4.5k +r7 net-_q14-pad3_ net-_q14-pad2_ 7.5k +c1 net-_c1-pad1_ net-_c1-pad2_ 30p +q16 net-_q14-pad3_ net-_c1-pad2_ net-_q15-pad2_ npn_1 +q15 net-_q14-pad3_ net-_q15-pad2_ net-_q15-pad3_ npn_1 +r5 net-_q15-pad2_ net-_q12-pad3_ 50k +r6 net-_q15-pad3_ net-_q12-pad3_ 50 +q17 net-_c1-pad2_ net-_q15-pad3_ net-_q12-pad3_ npn_1 +q18 net-_q10-pad3_ net-_c1-pad1_ net-_q18-pad3_ npn_1 +q20 net-_c1-pad1_ net-_q18-pad3_ net-_q20-pad3_ npn_1 +r9 net-_q18-pad3_ net-_q20-pad3_ 25 +r10 net-_q20-pad3_ net-_q19-pad3_ 50 +q19 net-_q12-pad3_ net-_q14-pad3_ net-_q19-pad3_ pnp_1 +* Control Statements + +.ends lm_741
\ No newline at end of file diff --git a/Examples/Precision_Rectifiers_using_LM741/lm_741_Previous_Values.xml b/Examples/Precision_Rectifiers_using_LM741/lm_741_Previous_Values.xml new file mode 100644 index 00000000..b61322bb --- /dev/null +++ b/Examples/Precision_Rectifiers_using_LM741/lm_741_Previous_Values.xml @@ -0,0 +1 @@ +<KicadtoNgspice><source /><model /><devicemodel><q1><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q1><q20><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q20><q3><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q3><q2><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q2><q5><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/pnp_1.lib</field></q5><q4><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/pnp_1.lib</field></q4><q7><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q7><q6><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/pnp_1.lib</field></q6><q9><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/pnp_1.lib</field></q9><q8><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q8><q15><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q15><q14><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q14><q17><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q17><q16><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q16><q11><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/pnp_1.lib</field></q11><q10><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/pnp_1.lib</field></q10><q13><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q13><q12><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q12><q19><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/pnp_1.lib</field></q19><q18><field>C:/Users/malli/eSim/src/deviceModelLibrary/Transistor/npn_1.lib</field></q18></devicemodel><subcircuit /><analysis><ac><field1 name="Lin">true</field1><field2 name="Dec">false</field2><field3 name="Oct">false</field3><field4 name="Start Frequency" /><field5 name="Stop Frequency" /><field6 name="No. of points" /><field7 name="Start Fre Combo">Hz</field7><field8 name="Stop Fre Combo">Hz</field8></ac><dc><field1 name="Source 1" /><field2 name="Start" /><field3 name="Increment" /><field4 name="Stop" /><field5 name="Operating Point">0</field5><field6 name="Start Combo">Volts or Amperes</field6><field7 name="Increment Combo">Volts or Amperes</field7><field8 name="Stop Combo">Volts or Amperes</field8><field9 name="Source 2" /><field10 name="Start" /><field11 name="Increment" /><field12 name="Stop" /><field13 name="Start Combo">Volts or Amperes</field13><field14 name="Increment Combo">Volts or Amperes</field14><field15 name="Stop Combo">Volts or Amperes</field15></dc><tran><field1 name="Start Time" /><field2 name="Step Time" /><field3 name="Stop Time" /><field4 name="Start Combo">Sec</field4><field5 name="Step Combo">Sec</field5><field6 name="Stop Combo">Sec</field6></tran></analysis></KicadtoNgspice>
\ No newline at end of file diff --git a/Examples/Precision_Rectifiers_using_LM741/npn_1.lib b/Examples/Precision_Rectifiers_using_LM741/npn_1.lib new file mode 100644 index 00000000..a1818ed8 --- /dev/null +++ b/Examples/Precision_Rectifiers_using_LM741/npn_1.lib @@ -0,0 +1,29 @@ +.model npn_1 NPN( ++ Vtf=1.7 ++ Cjc=0.5p ++ Nc=2 ++ Tr=46.91n ++ Ne=1.307 ++ Cje=0.5p ++ Isc=0 ++ Xtb=1.5 ++ Rb=500 ++ Rc=1 ++ Tf=411.1p ++ Xti=3 ++ Ikr=0 ++ Bf=125 ++ Fc=.5 ++ Ise=14.34f ++ Br=6.092 ++ Ikf=.2847 ++ Mje=.377 ++ Mjc=.3416 ++ Vaf=74.03 ++ Vjc=.75 ++ Vje=.75 ++ Xtf=3 ++ Itf=.6 ++ Is=14.34f ++ Eg=1.11 +)
\ No newline at end of file diff --git a/Examples/Precision_Rectifiers_using_LM741/pnp_1.lib b/Examples/Precision_Rectifiers_using_LM741/pnp_1.lib new file mode 100644 index 00000000..a4ee06da --- /dev/null +++ b/Examples/Precision_Rectifiers_using_LM741/pnp_1.lib @@ -0,0 +1,29 @@ +.model pnp_1 PNP( ++ Vtf=1.7 ++ Cjc=1.5p ++ Nc=2 ++ Tr=46.91n ++ Ne=1.307 ++ Cje=0.3p ++ Isc=0 ++ Xtb=1.5 ++ Rb=250 ++ Rc=1 ++ Tf=411.1p ++ Xti=3 ++ Ikr=0 ++ Bf=25 ++ Fc=.5 ++ Ise=14.34f ++ Br=6.092 ++ Ikf=.2847 ++ Mje=.377 ++ Mjc=.3416 ++ Vaf=74.03 ++ Vjc=.75 ++ Vje=.75 ++ Xtf=3 ++ Itf=.6 ++ Is=14.34f ++ Eg=1.11 +)
\ No newline at end of file |