summaryrefslogtreecommitdiff
path: root/Examples/FET_Characteristic
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/FET_Characteristic')
-rw-r--r--Examples/FET_Characteristic/FET_Characteristic-cache.lib45
-rw-r--r--Examples/FET_Characteristic/FET_Characteristic-rescue.lib21
-rw-r--r--Examples/FET_Characteristic/FET_Characteristic.pro79
-rw-r--r--Examples/FET_Characteristic/FET_Characteristic.sch41
-rw-r--r--Examples/FET_Characteristic/FET_Characteristic_Previous_Values.xml1
-rw-r--r--Examples/FET_Characteristic/NJF.lib5
-rw-r--r--Examples/FET_Characteristic/plot_data_i.txt41
-rw-r--r--Examples/FET_Characteristic/plot_data_v.txt83
8 files changed, 123 insertions, 193 deletions
diff --git a/Examples/FET_Characteristic/FET_Characteristic-cache.lib b/Examples/FET_Characteristic/FET_Characteristic-cache.lib
index 5f2587e7..9a3255ef 100644
--- a/Examples/FET_Characteristic/FET_Characteristic-cache.lib
+++ b/Examples/FET_Characteristic/FET_Characteristic-cache.lib
@@ -1,11 +1,11 @@
EESchema-LIBRARY Version 2.3
#encoding utf-8
#
-# DC
+# DC-RESCUE-FET_Characteristic
#
-DEF DC v 0 40 Y Y 1 F N
+DEF DC-RESCUE-FET_Characteristic 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
+F1 "DC-RESCUE-FET_Characteristic" -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
@@ -23,30 +23,43 @@ ENDDEF
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
#
-# NJF
+# PWR_FLAG
#
-DEF NJF J 0 0 Y N 1 F N
+DEF PWR_FLAG #FLG 0 0 N N 1 F P
+F0 "#FLG" 0 75 50 H I C CNN
+F1 "PWR_FLAG" 0 150 50 H V C CNN
+F2 "" 0 0 50 H I C CNN
+F3 "" 0 0 50 H I C CNN
+DRAW
+X pwr 1 0 0 0 U 50 50 0 0 w
+P 6 0 1 0 0 0 0 50 -40 75 0 100 40 75 0 50 N
+ENDDRAW
+ENDDEF
+#
+# eSim_NJF
+#
+DEF eSim_NJF J 0 0 Y N 1 F N
F0 "J" -100 50 50 H V R CNN
-F1 "NJF" -50 150 50 H V R CNN
+F1 "eSim_NJF" -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 3 0 1 10 10 75 10 -75 10 -75 N
-P 3 0 1 0 100 -100 100 -50 10 -50 N
-P 3 0 1 0 100 100 100 55 10 55 N
-P 4 0 1 0 0 0 -40 15 -40 -15 0 0 F
-X D 1 100 200 100 D 50 50 1 1 C
-X G 2 -200 0 210 R 50 50 1 1 I
-X S 3 100 -200 100 U 50 50 1 1 E
+P 3 0 1 10 10 75 10 -75 10 -75 N
+P 3 0 1 0 100 -100 100 -50 10 -50 N
+P 3 0 1 0 100 100 100 55 10 55 N
+P 4 0 1 0 0 0 -40 15 -40 -15 0 0 F
+X D 1 100 200 100 D 50 50 1 1 P
+X G 2 -200 0 210 R 50 50 1 1 P
+X S 3 100 -200 100 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
diff --git a/Examples/FET_Characteristic/FET_Characteristic-rescue.lib b/Examples/FET_Characteristic/FET_Characteristic-rescue.lib
new file mode 100644
index 00000000..e21713cf
--- /dev/null
+++ b/Examples/FET_Characteristic/FET_Characteristic-rescue.lib
@@ -0,0 +1,21 @@
+EESchema-LIBRARY Version 2.3
+#encoding utf-8
+#
+# DC-RESCUE-FET_Characteristic
+#
+DEF DC-RESCUE-FET_Characteristic v 0 40 Y Y 1 F N
+F0 "v" -200 100 60 H V C CNN
+F1 "DC-RESCUE-FET_Characteristic" -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 P
+X - 2 0 -450 300 U 50 50 1 1 P
+ENDDRAW
+ENDDEF
+#
+#End Library
diff --git a/Examples/FET_Characteristic/FET_Characteristic.pro b/Examples/FET_Characteristic/FET_Characteristic.pro
index 4c136597..d9048187 100644
--- a/Examples/FET_Characteristic/FET_Characteristic.pro
+++ b/Examples/FET_Characteristic/FET_Characteristic.pro
@@ -1,4 +1,4 @@
-update=Thu Mar 3 21:04:10 2016
+update=Thu Aug 29 10:54:41 2019
version=1
last_client=eeschema
[general]
@@ -31,41 +31,42 @@ 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=device
-LibName33=transistors
-LibName34=conn
-LibName35=linear
-LibName36=regul
-LibName37=74xx
-LibName38=cmos4000
+LibName1=FET_Characteristic-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=device
+LibName34=transistors
+LibName35=conn
+LibName36=linear
+LibName37=regul
+LibName38=74xx
+LibName39=cmos4000
diff --git a/Examples/FET_Characteristic/FET_Characteristic.sch b/Examples/FET_Characteristic/FET_Characteristic.sch
index 3cfb4ed3..46298605 100644
--- a/Examples/FET_Characteristic/FET_Characteristic.sch
+++ b/Examples/FET_Characteristic/FET_Characteristic.sch
@@ -1,4 +1,5 @@
EESchema Schematic File Version 2
+LIBS:FET_Characteristic-rescue
LIBS:eSim_Analog
LIBS:eSim_Devices
LIBS:eSim_Digital
@@ -53,18 +54,7 @@ Comment3 ""
Comment4 ""
$EndDescr
$Comp
-L NJF J1
-U 1 1 56C45BB2
-P 5700 3300
-F 0 "J1" H 5600 3350 50 0000 R CNN
-F 1 "NJF" H 5650 3450 50 0000 R CNN
-F 2 "" H 5900 3400 29 0000 C CNN
-F 3 "" H 5700 3300 60 0000 C CNN
- 1 5700 3300
- 1 0 0 -1
-$EndComp
-$Comp
-L DC vds1
+L DC-RESCUE-FET_Characteristic vds1
U 1 1 56C45C58
P 7200 3300
F 0 "vds1" H 7000 3400 60 0000 C CNN
@@ -75,7 +65,7 @@ F 3 "" H 7200 3300 60 0000 C CNN
1 0 0 -1
$EndComp
$Comp
-L DC vgs1
+L DC-RESCUE-FET_Characteristic vgs1
U 1 1 56C45CAD
P 4450 3800
F 0 "vgs1" H 4250 3900 60 0000 C CNN
@@ -131,4 +121,29 @@ id
Wire Wire Line
6150 2100 6150 2200
Connection ~ 6150 2200
+$Comp
+L eSim_NJF J1
+U 1 1 5D67621C
+P 5700 3300
+F 0 "J1" H 5600 3350 50 0000 R CNN
+F 1 "eSim_NJF" H 5650 3450 50 0000 R CNN
+F 2 "" H 5900 3400 29 0000 C CNN
+F 3 "" H 5700 3300 60 0000 C CNN
+ 1 5700 3300
+ 1 0 0 -1
+$EndComp
+$Comp
+L PWR_FLAG #FLG02
+U 1 1 5D676296
+P 5950 4100
+F 0 "#FLG02" H 5950 4175 50 0001 C CNN
+F 1 "PWR_FLAG" H 5950 4250 50 0000 C CNN
+F 2 "" H 5950 4100 50 0001 C CNN
+F 3 "" H 5950 4100 50 0001 C CNN
+ 1 5950 4100
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 5950 4100 5950 4250
+Connection ~ 5950 4250
$EndSCHEMATC
diff --git a/Examples/FET_Characteristic/FET_Characteristic_Previous_Values.xml b/Examples/FET_Characteristic/FET_Characteristic_Previous_Values.xml
new file mode 100644
index 00000000..591228d0
--- /dev/null
+++ b/Examples/FET_Characteristic/FET_Characteristic_Previous_Values.xml
@@ -0,0 +1 @@
+<KicadtoNgspice><source><vds1 name="Source type">dc<field1 name="Value">10</field1></vds1><vgs1 name="Source type">dc<field1 name="Value">0</field1></vgs1><v_id1 name="Source type">0</v_id1><v_u_id1 name="Source type">0</v_u_id1></source><model /><devicemodel><j1><field>/home/fossee/esim-updated/eSim/src/deviceModelLibrary/JFET/NJF.lib</field></j1></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">vds1</field1><field2 name="Start">0</field2><field3 name="Increment">10</field3><field4 name="Stop">50</field4><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">vgs1</field9><field10 name="Start">0</field10><field11 name="Increment">1</field11><field12 name="Stop">5</field12><field13 name="Start Combo">mV or mA</field13><field14 name="Increment Combo">mV or mA</field14><field15 name="Stop Combo">mV or mA</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/FET_Characteristic/NJF.lib b/Examples/FET_Characteristic/NJF.lib
index a9ea544f..dbb2cbae 100644
--- a/Examples/FET_Characteristic/NJF.lib
+++ b/Examples/FET_Characteristic/NJF.lib
@@ -1 +1,4 @@
-.model J2N3819 NJF( Beta=1.304m Betatce=-.5 Rd=1 Rs=1 Lambda=2.25m Vto=-3 Vtotc=-2.5m Is=33.57f Isr=322.4f N=1 Nr=2 Xti=3 Alpha=311.7u Vk=243.6 Cgd=1.6p M=.3622 Pb=1 Fc=.5 Cgs=2.414p Kf=9.882E-18 Af=1 )
+.model J2N3819 NJF(Beta=1.304m Betatce=-.5 Rd=1 Rs=1 Lambda=2.25m Vto=-3
++ Vtotc=-2.5m Is=33.57f Isr=322.4f N=1 Nr=2 Xti=3 Alpha=311.7u
++ Vk=243.6 Cgd=1.6p M=.3622 Pb=1 Fc=.5 Cgs=2.414p Kf=9.882E-18
++ Af=1)
diff --git a/Examples/FET_Characteristic/plot_data_i.txt b/Examples/FET_Characteristic/plot_data_i.txt
deleted file mode 100644
index a54e17fc..00000000
--- a/Examples/FET_Characteristic/plot_data_i.txt
+++ /dev/null
@@ -1,41 +0,0 @@
- * /home/fossee/updatedexamples/fet_characteristic/fet_characteristic.cir
- DC transfer characteristic Fri Sep 1 12:24:24 2017
---------------------------------------------------------------------------------
-Index v-sweep v_u_id1#branch vds1#branch vgs1#branch
---------------------------------------------------------------------------------
-0 0.000000e+00 -1.26669e-30 1.266690e-30 -2.53338e-30
-1 1.000000e+01 1.190439e-02 -1.19044e-02 1.004595e-11
-2 2.000000e+01 1.216404e-02 -1.21640e-02 2.004775e-11
-3 3.000000e+01 1.242398e-02 -1.24240e-02 3.004637e-11
-4 4.000000e+01 1.268364e-02 -1.26836e-02 4.004658e-11
-5 5.000000e+01 1.294321e-02 -1.29432e-02 5.004679e-11
-6 0.000000e+00 -2.32335e-15 2.323352e-15 -4.64670e-15
-7 1.000000e+01 1.191230e-02 -1.19123e-02 1.004312e-11
-8 2.000000e+01 1.217212e-02 -1.21721e-02 2.004499e-11
-9 3.000000e+01 1.243223e-02 -1.24322e-02 3.004356e-11
-10 4.000000e+01 1.269206e-02 -1.26921e-02 4.004378e-11
-11 5.000000e+01 1.295180e-02 -1.29518e-02 5.004399e-11
-12 0.000000e+00 -4.69887e-15 4.698871e-15 -9.39774e-15
-13 1.000000e+01 1.192020e-02 -1.19202e-02 1.004026e-11
-14 2.000000e+01 1.218020e-02 -1.21802e-02 2.004221e-11
-15 3.000000e+01 1.244048e-02 -1.24405e-02 3.004072e-11
-16 4.000000e+01 1.270048e-02 -1.27005e-02 4.004094e-11
-17 5.000000e+01 1.296039e-02 -1.29604e-02 5.004117e-11
-18 0.000000e+00 -7.12861e-15 7.128613e-15 -1.42572e-14
-19 1.000000e+01 1.192812e-02 -1.19281e-02 1.003737e-11
-20 2.000000e+01 1.218828e-02 -1.21883e-02 2.003939e-11
-21 3.000000e+01 1.244873e-02 -1.24487e-02 3.003784e-11
-22 4.000000e+01 1.270891e-02 -1.27089e-02 4.003808e-11
-23 5.000000e+01 1.296899e-02 -1.29690e-02 5.003831e-11
-24 0.000000e+00 -9.61472e-15 9.614718e-15 -1.92294e-14
-25 1.000000e+01 1.193603e-02 -1.19360e-02 1.003444e-11
-26 2.000000e+01 1.219637e-02 -1.21964e-02 2.003654e-11
-27 3.000000e+01 1.245699e-02 -1.24570e-02 3.003493e-11
-28 4.000000e+01 1.271734e-02 -1.27173e-02 4.003518e-11
-29 5.000000e+01 1.297759e-02 -1.29776e-02 5.003542e-11
-30 0.000000e+00 -1.21594e-14 1.215941e-14 -2.43188e-14
-31 1.000000e+01 1.194395e-02 -1.19439e-02 1.003147e-11
-32 2.000000e+01 1.220445e-02 -1.22045e-02 2.003366e-11
-33 3.000000e+01 1.246525e-02 -1.24653e-02 3.003199e-11
-34 4.000000e+01 1.272577e-02 -1.27258e-02 4.003224e-11
-35 5.000000e+01 1.298620e-02 -1.29862e-02 5.003249e-11
diff --git a/Examples/FET_Characteristic/plot_data_v.txt b/Examples/FET_Characteristic/plot_data_v.txt
deleted file mode 100644
index 1462208e..00000000
--- a/Examples/FET_Characteristic/plot_data_v.txt
+++ /dev/null
@@ -1,83 +0,0 @@
- * /home/fossee/updatedexamples/fet_characteristic/fet_characteristic.cir
- DC transfer characteristic Fri Sep 1 12:24:24 2017
---------------------------------------------------------------------------------
-Index v-sweep id net-_j1-pad2_ net-_u_id1-pad1
---------------------------------------------------------------------------------
-0 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00
-1 1.000000e+01 1.000000e+01 0.000000e+00 1.000000e+01
-2 2.000000e+01 2.000000e+01 0.000000e+00 2.000000e+01
-3 3.000000e+01 3.000000e+01 0.000000e+00 3.000000e+01
-4 4.000000e+01 4.000000e+01 0.000000e+00 4.000000e+01
-5 5.000000e+01 5.000000e+01 0.000000e+00 5.000000e+01
-6 0.000000e+00 0.000000e+00 1.000000e-03 0.000000e+00
-7 1.000000e+01 1.000000e+01 1.000000e-03 1.000000e+01
-8 2.000000e+01 2.000000e+01 1.000000e-03 2.000000e+01
-9 3.000000e+01 3.000000e+01 1.000000e-03 3.000000e+01
-10 4.000000e+01 4.000000e+01 1.000000e-03 4.000000e+01
-11 5.000000e+01 5.000000e+01 1.000000e-03 5.000000e+01
-12 0.000000e+00 0.000000e+00 2.000000e-03 0.000000e+00
-13 1.000000e+01 1.000000e+01 2.000000e-03 1.000000e+01
-14 2.000000e+01 2.000000e+01 2.000000e-03 2.000000e+01
-15 3.000000e+01 3.000000e+01 2.000000e-03 3.000000e+01
-16 4.000000e+01 4.000000e+01 2.000000e-03 4.000000e+01
-17 5.000000e+01 5.000000e+01 2.000000e-03 5.000000e+01
-18 0.000000e+00 0.000000e+00 3.000000e-03 0.000000e+00
-19 1.000000e+01 1.000000e+01 3.000000e-03 1.000000e+01
-20 2.000000e+01 2.000000e+01 3.000000e-03 2.000000e+01
-21 3.000000e+01 3.000000e+01 3.000000e-03 3.000000e+01
-22 4.000000e+01 4.000000e+01 3.000000e-03 4.000000e+01
-23 5.000000e+01 5.000000e+01 3.000000e-03 5.000000e+01
-24 0.000000e+00 0.000000e+00 4.000000e-03 0.000000e+00
-25 1.000000e+01 1.000000e+01 4.000000e-03 1.000000e+01
-26 2.000000e+01 2.000000e+01 4.000000e-03 2.000000e+01
-27 3.000000e+01 3.000000e+01 4.000000e-03 3.000000e+01
-28 4.000000e+01 4.000000e+01 4.000000e-03 4.000000e+01
-29 5.000000e+01 5.000000e+01 4.000000e-03 5.000000e+01
-30 0.000000e+00 0.000000e+00 5.000000e-03 0.000000e+00
-31 1.000000e+01 1.000000e+01 5.000000e-03 1.000000e+01
-32 2.000000e+01 2.000000e+01 5.000000e-03 2.000000e+01
-33 3.000000e+01 3.000000e+01 5.000000e-03 3.000000e+01
-34 4.000000e+01 4.000000e+01 5.000000e-03 4.000000e+01
-35 5.000000e+01 5.000000e+01 5.000000e-03 5.000000e+01
-
- * /home/fossee/updatedexamples/fet_characteristic/fet_characteristic.cir
- DC transfer characteristic Fri Sep 1 12:24:24 2017
---------------------------------------------------------------------------------
-Index v-sweep
---------------------------------------------------------------------------------
-0 0.000000e+00
-1 1.000000e+01
-2 2.000000e+01
-3 3.000000e+01
-4 4.000000e+01
-5 5.000000e+01
-6 0.000000e+00
-7 1.000000e+01
-8 2.000000e+01
-9 3.000000e+01
-10 4.000000e+01
-11 5.000000e+01
-12 0.000000e+00
-13 1.000000e+01
-14 2.000000e+01
-15 3.000000e+01
-16 4.000000e+01
-17 5.000000e+01
-18 0.000000e+00
-19 1.000000e+01
-20 2.000000e+01
-21 3.000000e+01
-22 4.000000e+01
-23 5.000000e+01
-24 0.000000e+00
-25 1.000000e+01
-26 2.000000e+01
-27 3.000000e+01
-28 4.000000e+01
-29 5.000000e+01
-30 0.000000e+00
-31 1.000000e+01
-32 2.000000e+01
-33 3.000000e+01
-34 4.000000e+01
-35 5.000000e+01