summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSumanto Kar2024-11-21 21:32:07 +0530
committerSumanto Kar2024-11-21 21:32:07 +0530
commit4f8c35c912492caa83f286ca291b463df965efeb (patch)
tree25b670b729d60813ea57364e059a74effde095ad
parent9d75497fe74131f20c9ee10dc7da14646435d5c4 (diff)
downloadeSim-4f8c35c912492caa83f286ca291b463df965efeb.tar.gz
eSim-4f8c35c912492caa83f286ca291b463df965efeb.tar.bz2
eSim-4f8c35c912492caa83f286ca291b463df965efeb.zip
LM317 is an adjustable voltage regulator
-rw-r--r--library/SubcircuitLibrary/LM317_sub/LM317_sub-cache.lib158
-rw-r--r--library/SubcircuitLibrary/LM317_sub/LM317_sub.cir73
-rw-r--r--library/SubcircuitLibrary/LM317_sub/LM317_sub.cir.out89
-rw-r--r--library/SubcircuitLibrary/LM317_sub/LM317_sub.pro83
-rw-r--r--library/SubcircuitLibrary/LM317_sub/LM317_sub.sch1113
-rw-r--r--library/SubcircuitLibrary/LM317_sub/LM317_sub.sub83
-rw-r--r--library/SubcircuitLibrary/LM317_sub/LM317_sub_Previous_Values.xml1
-rw-r--r--library/SubcircuitLibrary/LM317_sub/NJF.lib4
-rw-r--r--library/SubcircuitLibrary/LM317_sub/NPN.lib4
-rw-r--r--library/SubcircuitLibrary/LM317_sub/PNP.lib4
-rw-r--r--library/SubcircuitLibrary/LM317_sub/analysis1
11 files changed, 1613 insertions, 0 deletions
diff --git a/library/SubcircuitLibrary/LM317_sub/LM317_sub-cache.lib b/library/SubcircuitLibrary/LM317_sub/LM317_sub-cache.lib
new file mode 100644
index 00000000..c28cbe9d
--- /dev/null
+++ b/library/SubcircuitLibrary/LM317_sub/LM317_sub-cache.lib
@@ -0,0 +1,158 @@
+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_NJF
+#
+DEF eSim_NJF J 0 0 Y N 1 F N
+F0 "J" -100 50 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
+ALIAS jfet_n
+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 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
+#
+# eSim_NPN
+#
+DEF eSim_NPN Q 0 0 Y N 1 F N
+F0 "Q" -100 50 50 H V R CNN
+F1 "eSim_NPN" -50 150 50 H V R CNN
+F2 "" 200 100 29 H V C CNN
+F3 "" 0 0 60 H V C CNN
+ALIAS BC547 Q2N2222
+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 P
+X B 2 -200 0 225 R 50 50 1 1 P
+X E 3 100 -200 100 U 50 50 1 1 P
+ENDDRAW
+ENDDEF
+#
+# eSim_PNP
+#
+DEF eSim_PNP Q 0 0 Y N 1 F N
+F0 "Q" -100 50 50 H V R CNN
+F1 "eSim_PNP" -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 P
+X B 2 -200 0 225 R 50 50 1 1 P
+X E 3 100 -200 100 U 50 50 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
+#
+# zener
+#
+DEF zener U 0 40 Y Y 1 F N
+F0 "U" -50 -100 60 H V C CNN
+F1 "zener" 0 100 60 H V C CNN
+F2 "" 50 0 60 H V C CNN
+F3 "" 50 0 60 H V C CNN
+DRAW
+P 2 0 1 0 100 -50 50 -100 N
+P 2 0 1 0 100 50 100 -50 N
+P 2 0 1 0 100 50 150 100 N
+P 4 0 1 0 0 50 0 -50 100 0 0 50 N
+X ~ IN -200 0 200 R 50 43 1 1 I
+X ~ OUT 300 0 200 L 50 43 1 1 O
+ENDDRAW
+ENDDEF
+#
+#End Library
diff --git a/library/SubcircuitLibrary/LM317_sub/LM317_sub.cir b/library/SubcircuitLibrary/LM317_sub/LM317_sub.cir
new file mode 100644
index 00000000..28c7599b
--- /dev/null
+++ b/library/SubcircuitLibrary/LM317_sub/LM317_sub.cir
@@ -0,0 +1,73 @@
+* C:\FOSSEE\eSim\library\SubcircuitLibrary\LM317_sub\LM317_sub.cir
+
+* EESchema Netlist Version 1.1 (Spice format) creation date: 05/27/24 14:52:45
+
+* 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: /
+J1 Net-_J1-Pad1_ Net-_C1-Pad2_ Net-_J1-Pad3_ eSim_NJF
+Q1 Net-_Q1-Pad1_ Net-_Q1-Pad1_ Net-_Q1-Pad3_ eSim_PNP
+Q2 Net-_Q1-Pad1_ Net-_Q2-Pad2_ Net-_Q2-Pad3_ eSim_NPN
+Q3 Net-_Q2-Pad2_ Net-_Q1-Pad1_ Net-_Q3-Pad3_ eSim_PNP
+Q4 Net-_Q4-Pad1_ Net-_Q2-Pad2_ Net-_C1-Pad2_ eSim_NPN
+Q7 Net-_Q7-Pad1_ Net-_Q4-Pad1_ Net-_Q7-Pad3_ eSim_NPN
+Q5 Net-_C1-Pad2_ Net-_Q4-Pad1_ Net-_Q5-Pad3_ eSim_PNP
+Q6 Net-_Q6-Pad1_ Net-_Q1-Pad1_ Net-_Q6-Pad3_ eSim_PNP
+Q8 Net-_Q10-Pad2_ Net-_Q7-Pad1_ Net-_Q5-Pad3_ eSim_PNP
+Q10 Net-_Q10-Pad1_ Net-_Q10-Pad2_ Net-_Q10-Pad3_ eSim_NPN
+Q11 Net-_C1-Pad2_ Net-_Q11-Pad2_ Net-_Q10-Pad1_ eSim_PNP
+Q9 Net-_Q10-Pad1_ Net-_Q1-Pad1_ Net-_Q9-Pad3_ eSim_PNP
+Q13 Net-_Q12-Pad2_ Net-_Q1-Pad1_ Net-_Q13-Pad3_ eSim_PNP
+Q12 Net-_J1-Pad1_ Net-_Q12-Pad2_ Net-_Q11-Pad2_ eSim_NPN
+Q14 Net-_C1-Pad2_ Net-_C1-Pad1_ Net-_Q12-Pad2_ eSim_PNP
+Q16 Net-_C1-Pad1_ Net-_C1-Pad2_ Net-_Q16-Pad3_ eSim_NPN
+Q18 Net-_Q15-Pad2_ Net-_C1-Pad2_ Net-_Q18-Pad3_ eSim_NPN
+Q15 Net-_C1-Pad1_ Net-_Q15-Pad2_ Net-_Q10-Pad1_ eSim_PNP
+Q17 Net-_Q15-Pad2_ Net-_Q15-Pad2_ Net-_Q10-Pad1_ eSim_PNP
+Q19 Net-_C1-Pad2_ Net-_C3-Pad1_ Net-_Q10-Pad1_ eSim_PNP
+Q20 Net-_C3-Pad1_ Net-_C3-Pad2_ Net-_C1-Pad2_ eSim_NPN
+Q23 Net-_Q21-Pad2_ Net-_Q10-Pad1_ Net-_Q23-Pad3_ eSim_NPN
+Q26 Net-_J1-Pad1_ Net-_Q26-Pad2_ Net-_Q26-Pad3_ eSim_NPN
+Q27 Net-_J1-Pad1_ Net-_Q26-Pad3_ Net-_Q27-Pad3_ eSim_NPN
+Q22 Net-_Q22-Pad1_ Net-_Q22-Pad2_ Net-_Q22-Pad3_ eSim_NPN
+Q25 Net-_Q22-Pad1_ Net-_Q22-Pad2_ Net-_Q25-Pad3_ eSim_NPN
+Q21 Net-_Q10-Pad1_ Net-_Q21-Pad2_ Net-_J1-Pad1_ eSim_PNP
+Q24 Net-_Q21-Pad2_ Net-_Q21-Pad2_ Net-_J1-Pad1_ eSim_PNP
+U5 Net-_J1-Pad1_ Net-_C1-Pad2_ Net-_R16-Pad2_ PORT
+U3 Net-_R26-Pad1_ Net-_J1-Pad1_ zener
+U4 Net-_Q25-Pad3_ Net-_R26-Pad2_ zener
+U2 Net-_C2-Pad2_ Net-_C1-Pad2_ zener
+U1 Net-_C1-Pad2_ Net-_J1-Pad3_ zener
+R13 Net-_J1-Pad1_ Net-_Q13-Pad3_ 5.6k
+R10 Net-_J1-Pad1_ Net-_Q9-Pad3_ 82
+R6 Net-_J1-Pad1_ Net-_Q6-Pad3_ 190
+R4 Net-_J1-Pad1_ Net-_Q3-Pad3_ 310
+R2 Net-_J1-Pad1_ Net-_Q1-Pad3_ 310
+R1 Net-_J1-Pad3_ Net-_Q2-Pad2_ 200k
+R5 Net-_Q2-Pad2_ Net-_Q4-Pad1_ 130
+R3 Net-_Q2-Pad3_ Net-_C1-Pad2_ 180
+R7 Net-_Q6-Pad1_ Net-_Q7-Pad1_ 12.4k
+R21 Net-_Q10-Pad1_ Net-_Q26-Pad2_ 370
+R22 Net-_Q23-Pad3_ Net-_Q26-Pad3_ 130
+R19 Net-_Q10-Pad1_ Net-_Q22-Pad2_ 12k
+R18 Net-_C3-Pad2_ Net-_Q22-Pad1_ 13k
+R20 Net-_Q22-Pad2_ Net-_Q22-Pad1_ 400
+R23 Net-_Q26-Pad3_ Net-_C1-Pad2_ 160
+R27 Net-_Q25-Pad3_ Net-_Q22-Pad3_ 160
+R25 Net-_Q27-Pad3_ Net-_Q22-Pad3_ 3
+R24 Net-_Q27-Pad3_ Net-_C1-Pad2_ 0.14
+R26 Net-_R26-Pad1_ Net-_R26-Pad2_ 18k
+R8 Net-_Q7-Pad3_ Net-_C1-Pad2_ 4.1k
+R9 Net-_Q10-Pad2_ Net-_C1-Pad2_ 5.8k
+R11 Net-_Q10-Pad3_ Net-_C1-Pad2_ 72
+R12 Net-_Q11-Pad2_ Net-_C1-Pad2_ 5.1k
+R14 Net-_Q16-Pad3_ Net-_C2-Pad2_ 12k
+R15 Net-_Q18-Pad3_ Net-_Q16-Pad3_ 2.4k
+R16 Net-_C2-Pad2_ Net-_R16-Pad2_ 50
+R17 Net-_Q10-Pad1_ Net-_C3-Pad1_ 6.7k
+C1 Net-_C1-Pad1_ Net-_C1-Pad2_ 30pF
+C2 Net-_C1-Pad1_ Net-_C2-Pad2_ 30pF
+C3 Net-_C3-Pad1_ Net-_C3-Pad2_ 5pF
+
+.end
diff --git a/library/SubcircuitLibrary/LM317_sub/LM317_sub.cir.out b/library/SubcircuitLibrary/LM317_sub/LM317_sub.cir.out
new file mode 100644
index 00000000..2356a6de
--- /dev/null
+++ b/library/SubcircuitLibrary/LM317_sub/LM317_sub.cir.out
@@ -0,0 +1,89 @@
+* c:\fossee\esim\library\subcircuitlibrary\lm317_sub\lm317_sub.cir
+
+.include NPN.lib
+.include PNP.lib
+.include NJF.lib
+j1 net-_j1-pad1_ net-_c1-pad2_ net-_j1-pad3_ J2N3819
+q1 net-_q1-pad1_ net-_q1-pad1_ net-_q1-pad3_ Q2N2907A
+q2 net-_q1-pad1_ net-_q2-pad2_ net-_q2-pad3_ Q2N2222
+q3 net-_q2-pad2_ net-_q1-pad1_ net-_q3-pad3_ Q2N2907A
+q4 net-_q4-pad1_ net-_q2-pad2_ net-_c1-pad2_ Q2N2222
+q7 net-_q7-pad1_ net-_q4-pad1_ net-_q7-pad3_ Q2N2222
+q5 net-_c1-pad2_ net-_q4-pad1_ net-_q5-pad3_ Q2N2907A
+q6 net-_q6-pad1_ net-_q1-pad1_ net-_q6-pad3_ Q2N2907A
+q8 net-_q10-pad2_ net-_q7-pad1_ net-_q5-pad3_ Q2N2907A
+q10 net-_q10-pad1_ net-_q10-pad2_ net-_q10-pad3_ Q2N2222
+q11 net-_c1-pad2_ net-_q11-pad2_ net-_q10-pad1_ Q2N2907A
+q9 net-_q10-pad1_ net-_q1-pad1_ net-_q9-pad3_ Q2N2907A
+q13 net-_q12-pad2_ net-_q1-pad1_ net-_q13-pad3_ Q2N2907A
+q12 net-_j1-pad1_ net-_q12-pad2_ net-_q11-pad2_ Q2N2222
+q14 net-_c1-pad2_ net-_c1-pad1_ net-_q12-pad2_ Q2N2907A
+q16 net-_c1-pad1_ net-_c1-pad2_ net-_q16-pad3_ Q2N2222
+q18 net-_q15-pad2_ net-_c1-pad2_ net-_q18-pad3_ Q2N2222
+q15 net-_c1-pad1_ net-_q15-pad2_ net-_q10-pad1_ Q2N2907A
+q17 net-_q15-pad2_ net-_q15-pad2_ net-_q10-pad1_ Q2N2907A
+q19 net-_c1-pad2_ net-_c3-pad1_ net-_q10-pad1_ Q2N2907A
+q20 net-_c3-pad1_ net-_c3-pad2_ net-_c1-pad2_ Q2N2222
+q23 net-_q21-pad2_ net-_q10-pad1_ net-_q23-pad3_ Q2N2222
+q26 net-_j1-pad1_ net-_q26-pad2_ net-_q26-pad3_ Q2N2222
+q27 net-_j1-pad1_ net-_q26-pad3_ net-_q27-pad3_ Q2N2222
+q22 net-_q22-pad1_ net-_q22-pad2_ net-_q22-pad3_ Q2N2222
+q25 net-_q22-pad1_ net-_q22-pad2_ net-_q25-pad3_ Q2N2222
+q21 net-_q10-pad1_ net-_q21-pad2_ net-_j1-pad1_ Q2N2907A
+q24 net-_q21-pad2_ net-_q21-pad2_ net-_j1-pad1_ Q2N2907A
+* u5 net-_j1-pad1_ net-_c1-pad2_ net-_r16-pad2_ port
+* u3 net-_r26-pad1_ net-_j1-pad1_ zener
+* u4 net-_q25-pad3_ net-_r26-pad2_ zener
+* u2 net-_c2-pad2_ net-_c1-pad2_ zener
+* u1 net-_c1-pad2_ net-_j1-pad3_ zener
+r13 net-_j1-pad1_ net-_q13-pad3_ 5.6k
+r10 net-_j1-pad1_ net-_q9-pad3_ 82
+r6 net-_j1-pad1_ net-_q6-pad3_ 190
+r4 net-_j1-pad1_ net-_q3-pad3_ 310
+r2 net-_j1-pad1_ net-_q1-pad3_ 310
+r1 net-_j1-pad3_ net-_q2-pad2_ 200k
+r5 net-_q2-pad2_ net-_q4-pad1_ 130
+r3 net-_q2-pad3_ net-_c1-pad2_ 180
+r7 net-_q6-pad1_ net-_q7-pad1_ 12.4k
+r21 net-_q10-pad1_ net-_q26-pad2_ 370
+r22 net-_q23-pad3_ net-_q26-pad3_ 130
+r19 net-_q10-pad1_ net-_q22-pad2_ 12k
+r18 net-_c3-pad2_ net-_q22-pad1_ 13k
+r20 net-_q22-pad2_ net-_q22-pad1_ 400
+r23 net-_q26-pad3_ net-_c1-pad2_ 160
+r27 net-_q25-pad3_ net-_q22-pad3_ 160
+r25 net-_q27-pad3_ net-_q22-pad3_ 3
+r24 net-_q27-pad3_ net-_c1-pad2_ 0.14
+r26 net-_r26-pad1_ net-_r26-pad2_ 18k
+r8 net-_q7-pad3_ net-_c1-pad2_ 4.1k
+r9 net-_q10-pad2_ net-_c1-pad2_ 5.8k
+r11 net-_q10-pad3_ net-_c1-pad2_ 72
+r12 net-_q11-pad2_ net-_c1-pad2_ 5.1k
+r14 net-_q16-pad3_ net-_c2-pad2_ 12k
+r15 net-_q18-pad3_ net-_q16-pad3_ 2.4k
+r16 net-_c2-pad2_ net-_r16-pad2_ 50
+r17 net-_q10-pad1_ net-_c3-pad1_ 6.7k
+c1 net-_c1-pad1_ net-_c1-pad2_ 30pf
+c2 net-_c1-pad1_ net-_c2-pad2_ 30pf
+c3 net-_c3-pad1_ net-_c3-pad2_ 5pf
+a1 net-_r26-pad1_ net-_j1-pad1_ u3
+a2 net-_q25-pad3_ net-_r26-pad2_ u4
+a3 net-_c2-pad2_ net-_c1-pad2_ u2
+a4 net-_c1-pad2_ net-_j1-pad3_ u1
+* Schematic Name: zener, NgSpice Name: zener
+.model u3 zener(v_breakdown=5.6 i_breakdown=2.0e-2 i_sat=1.0e-12 n_forward=1.0 limit_switch=FALSE )
+* Schematic Name: zener, NgSpice Name: zener
+.model u4 zener(v_breakdown=5.6 i_breakdown=2.0e-2 i_sat=1.0e-12 n_forward=1.0 limit_switch=FALSE )
+* Schematic Name: zener, NgSpice Name: zener
+.model u2 zener(v_breakdown=5.6 i_breakdown=2.0e-2 i_sat=1.0e-12 n_forward=1.0 limit_switch=FALSE )
+* Schematic Name: zener, NgSpice Name: zener
+.model u1 zener(v_breakdown=5.6 i_breakdown=2.0e-2 i_sat=1.0e-12 n_forward=1.0 limit_switch=FALSE )
+.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/library/SubcircuitLibrary/LM317_sub/LM317_sub.pro b/library/SubcircuitLibrary/LM317_sub/LM317_sub.pro
new file mode 100644
index 00000000..2581a099
--- /dev/null
+++ b/library/SubcircuitLibrary/LM317_sub/LM317_sub.pro
@@ -0,0 +1,83 @@
+update=05/31/24 13:01:32
+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=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
+LibName37=eSim_Nghdl
+LibName38=eSim_Ngveri
+LibName39=eSim_SKY130
+LibName40=eSim_SKY130_Subckts
+[schematic_editor]
+version=1
+PageLayoutDescrFile=
+PlotDirectoryName=
+SubpartIdSeparator=0
+SubpartFirstId=65
+NetFmtName=
+SpiceForceRefPrefix=0
+SpiceUseNetNumbers=0
+LabSize=60
diff --git a/library/SubcircuitLibrary/LM317_sub/LM317_sub.sch b/library/SubcircuitLibrary/LM317_sub/LM317_sub.sch
new file mode 100644
index 00000000..ac1a8ff3
--- /dev/null
+++ b/library/SubcircuitLibrary/LM317_sub/LM317_sub.sch
@@ -0,0 +1,1113 @@
+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:eSim_Nghdl
+LIBS:eSim_Ngveri
+LIBS:eSim_SKY130
+LIBS:eSim_SKY130_Subckts
+LIBS:LM317_sub-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_NJF J1
+U 1 1 66506AEF
+P 900 2950
+F 0 "J1" H 800 3000 50 0000 R CNN
+F 1 "eSim_NJF" H 850 3100 50 0000 R CNN
+F 2 "" H 1100 3050 29 0000 C CNN
+F 3 "" H 900 2950 60 0000 C CNN
+ 1 900 2950
+ 1 0 0 -1
+$EndComp
+$Comp
+L eSim_PNP Q1
+U 1 1 66506BA2
+P 1600 3200
+F 0 "Q1" H 1500 3250 50 0000 R CNN
+F 1 "eSim_PNP" H 1550 3350 50 0000 R CNN
+F 2 "" H 1800 3300 29 0000 C CNN
+F 3 "" H 1600 3200 60 0000 C CNN
+ 1 1600 3200
+ -1 0 0 1
+$EndComp
+$Comp
+L eSim_NPN Q2
+U 1 1 66506D77
+P 1600 4350
+F 0 "Q2" H 1500 4400 50 0000 R CNN
+F 1 "eSim_NPN" H 1550 4500 50 0000 R CNN
+F 2 "" H 1800 4450 29 0000 C CNN
+F 3 "" H 1600 4350 60 0000 C CNN
+ 1 1600 4350
+ -1 0 0 -1
+$EndComp
+$Comp
+L eSim_PNP Q3
+U 1 1 66507199
+P 2100 3200
+F 0 "Q3" H 2000 3250 50 0000 R CNN
+F 1 "eSim_PNP" H 2050 3350 50 0000 R CNN
+F 2 "" H 2300 3300 29 0000 C CNN
+F 3 "" H 2100 3200 60 0000 C CNN
+ 1 2100 3200
+ 1 0 0 1
+$EndComp
+$Comp
+L eSim_NPN Q4
+U 1 1 665074A7
+P 2100 4350
+F 0 "Q4" H 2000 4400 50 0000 R CNN
+F 1 "eSim_NPN" H 2050 4500 50 0000 R CNN
+F 2 "" H 2300 4450 29 0000 C CNN
+F 3 "" H 2100 4350 60 0000 C CNN
+ 1 2100 4350
+ 1 0 0 -1
+$EndComp
+$Comp
+L eSim_NPN Q7
+U 1 1 66507CB1
+P 3350 4150
+F 0 "Q7" H 3250 4200 50 0000 R CNN
+F 1 "eSim_NPN" H 3300 4300 50 0000 R CNN
+F 2 "" H 3550 4250 29 0000 C CNN
+F 3 "" H 3350 4150 60 0000 C CNN
+ 1 3350 4150
+ 1 0 0 -1
+$EndComp
+$Comp
+L eSim_PNP Q5
+U 1 1 66508000
+P 2850 4150
+F 0 "Q5" H 2750 4200 50 0000 R CNN
+F 1 "eSim_PNP" H 2800 4300 50 0000 R CNN
+F 2 "" H 3050 4250 29 0000 C CNN
+F 3 "" H 2850 4150 60 0000 C CNN
+ 1 2850 4150
+ 1 0 0 1
+$EndComp
+Wire Wire Line
+ 1000 2750 1000 2250
+Wire Wire Line
+ 1000 3150 1000 4150
+Wire Wire Line
+ 1000 3750 1150 3750
+Connection ~ 1000 3750
+Wire Wire Line
+ 1500 3400 1500 4150
+Wire Wire Line
+ 1450 3750 2200 3750
+Wire Wire Line
+ 1800 3200 1900 3200
+Wire Wire Line
+ 1850 3200 1850 3600
+Wire Wire Line
+ 1850 3600 1500 3600
+Connection ~ 1500 3600
+Connection ~ 1850 3200
+Wire Wire Line
+ 2200 3400 2200 3800
+Wire Wire Line
+ 1800 4350 1900 4350
+Wire Wire Line
+ 1850 4350 1850 3750
+Connection ~ 1850 3750
+Connection ~ 1850 4350
+Wire Wire Line
+ 2200 4150 2200 4100
+Wire Wire Line
+ 1000 4650 1000 5250
+Wire Wire Line
+ 700 5250 10600 5250
+Wire Wire Line
+ 1500 5250 1500 4950
+Wire Wire Line
+ 1500 4650 1500 4550
+Wire Wire Line
+ 2200 5250 2200 4550
+Connection ~ 1500 5250
+Connection ~ 2200 3750
+Wire Wire Line
+ 2950 5250 2950 4350
+Connection ~ 2200 5250
+Wire Wire Line
+ 3450 4600 3450 4350
+Wire Wire Line
+ 3450 5250 3450 4900
+Connection ~ 2950 5250
+Wire Wire Line
+ 2200 4150 3150 4150
+$Comp
+L eSim_PNP Q6
+U 1 1 66508173
+P 3350 3200
+F 0 "Q6" H 3250 3250 50 0000 R CNN
+F 1 "eSim_PNP" H 3300 3350 50 0000 R CNN
+F 2 "" H 3550 3300 29 0000 C CNN
+F 3 "" H 3350 3200 60 0000 C CNN
+ 1 3350 3200
+ 1 0 0 1
+$EndComp
+Wire Wire Line
+ 3450 3750 3450 3950
+Wire Wire Line
+ 3450 3450 3450 3400
+$Comp
+L eSim_PNP Q8
+U 1 1 665083C3
+P 4000 3850
+F 0 "Q8" H 3900 3900 50 0000 R CNN
+F 1 "eSim_PNP" H 3950 4000 50 0000 R CNN
+F 2 "" H 4200 3950 29 0000 C CNN
+F 3 "" H 4000 3850 60 0000 C CNN
+ 1 4000 3850
+ 1 0 0 1
+$EndComp
+Wire Wire Line
+ 4100 3650 4100 3450
+Wire Wire Line
+ 4100 3450 2950 3450
+Wire Wire Line
+ 2950 3450 2950 3950
+Wire Wire Line
+ 3800 3850 3450 3850
+Connection ~ 3450 3850
+$Comp
+L eSim_NPN Q10
+U 1 1 6650852A
+P 4400 4150
+F 0 "Q10" H 4300 4200 50 0000 R CNN
+F 1 "eSim_NPN" H 4350 4300 50 0000 R CNN
+F 2 "" H 4600 4250 29 0000 C CNN
+F 3 "" H 4400 4150 60 0000 C CNN
+ 1 4400 4150
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 4100 4050 4100 4600
+Wire Wire Line
+ 4100 4150 4200 4150
+Connection ~ 4100 4150
+Wire Wire Line
+ 4100 5250 4100 4900
+Connection ~ 3450 5250
+Wire Wire Line
+ 4500 4600 4500 4350
+Wire Wire Line
+ 4500 5250 4500 4900
+Connection ~ 4100 5250
+$Comp
+L eSim_PNP Q11
+U 1 1 66508F1D
+P 5000 4150
+F 0 "Q11" H 4900 4200 50 0000 R CNN
+F 1 "eSim_PNP" H 4950 4300 50 0000 R CNN
+F 2 "" H 5200 4250 29 0000 C CNN
+F 3 "" H 5000 4150 60 0000 C CNN
+ 1 5000 4150
+ -1 0 0 1
+$EndComp
+Wire Wire Line
+ 4900 4350 4900 5250
+Connection ~ 4500 5250
+Wire Wire Line
+ 4500 3000 4500 3950
+Wire Wire Line
+ 4500 3450 4900 3450
+Wire Wire Line
+ 4900 3450 4900 3950
+$Comp
+L eSim_PNP Q9
+U 1 1 665099A4
+P 4400 2800
+F 0 "Q9" H 4300 2850 50 0000 R CNN
+F 1 "eSim_PNP" H 4350 2950 50 0000 R CNN
+F 2 "" H 4600 2900 29 0000 C CNN
+F 3 "" H 4400 2800 60 0000 C CNN
+ 1 4400 2800
+ 1 0 0 1
+$EndComp
+Wire Wire Line
+ 1000 2250 10600 2250
+Connection ~ 1500 2250
+Connection ~ 2200 2250
+Connection ~ 3450 2250
+Wire Wire Line
+ 1500 3000 1500 2550
+Wire Wire Line
+ 2200 2550 2200 3000
+Wire Wire Line
+ 3450 3000 3450 2550
+Wire Wire Line
+ 1850 3200 5400 3200
+Wire Wire Line
+ 4200 2800 3950 2800
+Wire Wire Line
+ 3950 2800 3950 3200
+Connection ~ 4500 3450
+$Comp
+L eSim_PNP Q13
+U 1 1 6650A285
+P 5600 3200
+F 0 "Q13" H 5500 3250 50 0000 R CNN
+F 1 "eSim_PNP" H 5550 3350 50 0000 R CNN
+F 2 "" H 5800 3300 29 0000 C CNN
+F 3 "" H 5600 3200 60 0000 C CNN
+ 1 5600 3200
+ 1 0 0 1
+$EndComp
+$Comp
+L eSim_NPN Q12
+U 1 1 6650A333
+P 5400 3600
+F 0 "Q12" H 5300 3650 50 0000 R CNN
+F 1 "eSim_NPN" H 5350 3750 50 0000 R CNN
+F 2 "" H 5600 3700 29 0000 C CNN
+F 3 "" H 5400 3600 60 0000 C CNN
+ 1 5400 3600
+ -1 0 0 -1
+$EndComp
+Connection ~ 3950 3200
+Connection ~ 4500 2250
+Wire Wire Line
+ 5700 2600 5700 3000
+Wire Wire Line
+ 5300 3400 5300 2250
+Connection ~ 5300 2250
+Wire Wire Line
+ 5700 3400 5700 3700
+Wire Wire Line
+ 5700 3600 5600 3600
+$Comp
+L eSim_PNP Q14
+U 1 1 6650B0FF
+P 5800 3900
+F 0 "Q14" H 5700 3950 50 0000 R CNN
+F 1 "eSim_PNP" H 5750 4050 50 0000 R CNN
+F 2 "" H 6000 4000 29 0000 C CNN
+F 3 "" H 5800 3900 60 0000 C CNN
+ 1 5800 3900
+ -1 0 0 1
+$EndComp
+Connection ~ 5700 3600
+Wire Wire Line
+ 5300 3800 5300 4600
+Wire Wire Line
+ 5200 4150 5300 4150
+Connection ~ 5300 4150
+Wire Wire Line
+ 5300 5250 5300 4900
+Connection ~ 4900 5250
+Wire Wire Line
+ 5700 4100 5700 5400
+Connection ~ 5300 5250
+Wire Wire Line
+ 6000 3900 6600 3900
+Wire Wire Line
+ 6100 5250 6100 4500
+Connection ~ 5700 5250
+Wire Wire Line
+ 6100 4200 6100 3900
+Wire Wire Line
+ 6350 3900 6350 4550
+Connection ~ 6100 3900
+Wire Wire Line
+ 5700 5400 5850 5400
+Wire Wire Line
+ 6350 4850 6350 5200
+Wire Wire Line
+ 6350 5200 6600 5200
+Wire Wire Line
+ 6600 5150 6600 5400
+Wire Wire Line
+ 6350 5400 6900 5400
+Connection ~ 6600 5200
+Connection ~ 6600 5400
+$Comp
+L eSim_NPN Q16
+U 1 1 6650C7B9
+P 6700 4250
+F 0 "Q16" H 6600 4300 50 0000 R CNN
+F 1 "eSim_NPN" H 6650 4400 50 0000 R CNN
+F 2 "" H 6900 4350 29 0000 C CNN
+F 3 "" H 6700 4250 60 0000 C CNN
+ 1 6700 4250
+ -1 0 0 -1
+$EndComp
+$Comp
+L eSim_NPN Q18
+U 1 1 6650C87D
+P 7100 4250
+F 0 "Q18" H 7000 4300 50 0000 R CNN
+F 1 "eSim_NPN" H 7050 4400 50 0000 R CNN
+F 2 "" H 7300 4350 29 0000 C CNN
+F 3 "" H 7100 4250 60 0000 C CNN
+ 1 7100 4250
+ -1 0 0 -1
+$EndComp
+Wire Wire Line
+ 6600 4450 6600 4850
+Wire Wire Line
+ 7000 4500 7000 4450
+Wire Wire Line
+ 7000 4800 6600 4800
+Connection ~ 6600 4800
+Wire Wire Line
+ 6900 4250 7300 4250
+Wire Wire Line
+ 7300 4250 7300 5250
+Connection ~ 6100 5250
+Wire Wire Line
+ 6600 3650 6600 4050
+Connection ~ 6350 3900
+$Comp
+L eSim_PNP Q15
+U 1 1 6650D4DC
+P 6700 3450
+F 0 "Q15" H 6600 3500 50 0000 R CNN
+F 1 "eSim_PNP" H 6650 3600 50 0000 R CNN
+F 2 "" H 6900 3550 29 0000 C CNN
+F 3 "" H 6700 3450 60 0000 C CNN
+ 1 6700 3450
+ -1 0 0 1
+$EndComp
+Wire Wire Line
+ 6600 3250 6600 3050
+Wire Wire Line
+ 4500 3050 8400 3050
+Connection ~ 4500 3050
+Connection ~ 6600 3900
+$Comp
+L eSim_PNP Q17
+U 1 1 6650D6AC
+P 7050 3250
+F 0 "Q17" H 6950 3300 50 0000 R CNN
+F 1 "eSim_PNP" H 7000 3400 50 0000 R CNN
+F 2 "" H 7250 3350 29 0000 C CNN
+F 3 "" H 7050 3250 60 0000 C CNN
+ 1 7050 3250
+ -1 0 0 1
+$EndComp
+Connection ~ 6600 3050
+Wire Wire Line
+ 6900 3450 7250 3450
+Wire Wire Line
+ 6950 3450 6950 4000
+Wire Wire Line
+ 6950 4000 7000 4000
+Wire Wire Line
+ 7000 4000 7000 4050
+Connection ~ 6950 3450
+Wire Wire Line
+ 7250 3450 7250 3250
+$Comp
+L eSim_PNP Q19
+U 1 1 6650D995
+P 7450 3400
+F 0 "Q19" H 7350 3450 50 0000 R CNN
+F 1 "eSim_PNP" H 7400 3550 50 0000 R CNN
+F 2 "" H 7650 3500 29 0000 C CNN
+F 3 "" H 7450 3400 60 0000 C CNN
+ 1 7450 3400
+ -1 0 0 1
+$EndComp
+Wire Wire Line
+ 7350 3050 7350 3200
+Connection ~ 6950 3050
+Wire Wire Line
+ 4500 2600 4500 2550
+Connection ~ 7350 3050
+Wire Wire Line
+ 7700 3350 7700 3600
+Wire Wire Line
+ 7650 3400 8050 3400
+$Comp
+L eSim_NPN Q20
+U 1 1 6650DDA9
+P 7800 3800
+F 0 "Q20" H 7700 3850 50 0000 R CNN
+F 1 "eSim_NPN" H 7750 3950 50 0000 R CNN
+F 2 "" H 8000 3900 29 0000 C CNN
+F 3 "" H 7800 3800 60 0000 C CNN
+ 1 7800 3800
+ -1 0 0 -1
+$EndComp
+Connection ~ 7700 3400
+Wire Wire Line
+ 7700 4000 7700 5250
+Wire Wire Line
+ 7700 4150 7350 4150
+Wire Wire Line
+ 7350 4150 7350 3600
+Connection ~ 7700 4150
+Connection ~ 7300 5250
+Wire Wire Line
+ 8050 3700 8050 3800
+Wire Wire Line
+ 8000 3800 8100 3800
+Connection ~ 8050 3800
+Wire Wire Line
+ 8400 3800 8500 3800
+Wire Wire Line
+ 8500 3750 8500 3950
+Connection ~ 7700 3050
+Wire Wire Line
+ 8300 3350 8600 3350
+Wire Wire Line
+ 8500 3350 8500 3450
+$Comp
+L eSim_NPN Q23
+U 1 1 6650FB6B
+P 8600 3050
+F 0 "Q23" H 8500 3100 50 0000 R CNN
+F 1 "eSim_NPN" H 8550 3200 50 0000 R CNN
+F 2 "" H 8800 3150 29 0000 C CNN
+F 3 "" H 8600 3050 60 0000 C CNN
+ 1 8600 3050
+ 1 0 0 -1
+$EndComp
+Connection ~ 8300 3050
+Wire Wire Line
+ 8850 3050 8300 3050
+$Comp
+L eSim_NPN Q26
+U 1 1 66510588
+P 9400 3050
+F 0 "Q26" H 9300 3100 50 0000 R CNN
+F 1 "eSim_NPN" H 9350 3200 50 0000 R CNN
+F 2 "" H 9600 3150 29 0000 C CNN
+F 3 "" H 9400 3050 60 0000 C CNN
+ 1 9400 3050
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 9200 3050 9150 3050
+Wire Wire Line
+ 9500 2250 9500 2850
+Connection ~ 5700 2250
+$Comp
+L eSim_NPN Q27
+U 1 1 665107CC
+P 9700 3350
+F 0 "Q27" H 9600 3400 50 0000 R CNN
+F 1 "eSim_NPN" H 9650 3500 50 0000 R CNN
+F 2 "" H 9900 3450 29 0000 C CNN
+F 3 "" H 9700 3350 60 0000 C CNN
+ 1 9700 3350
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 9500 3250 9500 3500
+Connection ~ 9500 3350
+Wire Wire Line
+ 9500 3350 9200 3350
+Wire Wire Line
+ 8900 3350 8700 3350
+Wire Wire Line
+ 8700 3350 8700 3250
+Wire Wire Line
+ 9500 5250 9500 3800
+Connection ~ 7700 5250
+Wire Wire Line
+ 9800 3550 9800 4850
+Wire Wire Line
+ 9800 5250 9800 5150
+Connection ~ 9500 5250
+Wire Wire Line
+ 9800 2250 9800 3150
+Connection ~ 9500 2250
+Wire Wire Line
+ 10200 3000 10200 2900
+Wire Wire Line
+ 10200 2900 9800 2900
+Connection ~ 9800 2900
+Wire Wire Line
+ 10200 3550 10200 3500
+Wire Wire Line
+ 10200 3950 10200 3850
+Wire Wire Line
+ 10200 4450 10200 4550
+Wire Wire Line
+ 9900 5100 9900 4750
+Wire Wire Line
+ 9900 4750 9800 4750
+Connection ~ 9800 4750
+Wire Wire Line
+ 10200 5100 10200 4850
+$Comp
+L eSim_NPN Q22
+U 1 1 66536216
+P 8350 4400
+F 0 "Q22" H 8250 4450 50 0000 R CNN
+F 1 "eSim_NPN" H 8300 4550 50 0000 R CNN
+F 2 "" H 8550 4500 29 0000 C CNN
+F 3 "" H 8350 4400 60 0000 C CNN
+ 1 8350 4400
+ -1 0 0 -1
+$EndComp
+$Comp
+L eSim_NPN Q25
+U 1 1 665362FC
+P 8850 4400
+F 0 "Q25" H 8750 4450 50 0000 R CNN
+F 1 "eSim_NPN" H 8800 4550 50 0000 R CNN
+F 2 "" H 9050 4500 29 0000 C CNN
+F 3 "" H 8850 4400 60 0000 C CNN
+ 1 8850 4400
+ -1 0 0 -1
+$EndComp
+Wire Wire Line
+ 8250 4200 8750 4200
+Wire Wire Line
+ 8550 4400 8550 4100
+Wire Wire Line
+ 8550 4100 9050 4100
+Wire Wire Line
+ 9050 4100 9050 4400
+Wire Wire Line
+ 8450 4200 8450 3950
+Wire Wire Line
+ 8450 3950 8500 3950
+Connection ~ 8500 3800
+Connection ~ 8450 4200
+Wire Wire Line
+ 8850 4100 8850 3500
+Wire Wire Line
+ 8850 3500 8600 3500
+Wire Wire Line
+ 8600 3500 8600 3350
+Connection ~ 8500 3350
+Connection ~ 8850 4100
+Wire Wire Line
+ 8250 4600 8250 4850
+Wire Wire Line
+ 8250 4850 10200 4850
+Wire Wire Line
+ 8750 4600 9950 4600
+Wire Wire Line
+ 9950 4600 9950 4500
+Wire Wire Line
+ 9950 4500 10200 4500
+Connection ~ 10200 4500
+$Comp
+L eSim_PNP Q21
+U 1 1 66539415
+P 8200 2550
+F 0 "Q21" H 8100 2600 50 0000 R CNN
+F 1 "eSim_PNP" H 8150 2700 50 0000 R CNN
+F 2 "" H 8400 2650 29 0000 C CNN
+F 3 "" H 8200 2550 60 0000 C CNN
+ 1 8200 2550
+ -1 0 0 1
+$EndComp
+$Comp
+L eSim_PNP Q24
+U 1 1 66539595
+P 8700 2550
+F 0 "Q24" H 8600 2600 50 0000 R CNN
+F 1 "eSim_PNP" H 8650 2700 50 0000 R CNN
+F 2 "" H 8900 2650 29 0000 C CNN
+F 3 "" H 8700 2550 60 0000 C CNN
+ 1 8700 2550
+ -1 0 0 1
+$EndComp
+Wire Wire Line
+ 8100 2350 8600 2350
+Wire Wire Line
+ 8400 2350 8400 2250
+Connection ~ 8400 2250
+Connection ~ 8400 2350
+Wire Wire Line
+ 8700 2750 8700 2850
+Wire Wire Line
+ 8100 2750 8100 2950
+Wire Wire Line
+ 8100 2950 8300 2950
+Wire Wire Line
+ 8300 2950 8300 3050
+Wire Wire Line
+ 8600 2750 8600 2850
+Wire Wire Line
+ 8600 2850 8700 2850
+Wire Wire Line
+ 8400 2550 8400 2400
+Wire Wire Line
+ 8400 2400 9000 2400
+Wire Wire Line
+ 9000 2400 9000 2550
+Wire Wire Line
+ 9000 2550 8900 2550
+Wire Wire Line
+ 9000 2500 9200 2500
+Wire Wire Line
+ 9200 2500 9200 2750
+Wire Wire Line
+ 9200 2750 8700 2750
+Connection ~ 9000 2500
+Wire Wire Line
+ 700 5250 700 2950
+Connection ~ 1000 5250
+Connection ~ 10600 5400
+Wire Wire Line
+ 10600 5400 7200 5400
+Connection ~ 10600 5250
+Connection ~ 9800 5250
+Connection ~ 10600 2250
+Connection ~ 9800 2250
+$Comp
+L PORT U5
+U 1 1 66545E6C
+P 10850 2250
+F 0 "U5" H 10900 2350 30 0000 C CNN
+F 1 "PORT" H 10850 2250 30 0000 C CNN
+F 2 "" H 10850 2250 60 0000 C CNN
+F 3 "" H 10850 2250 60 0000 C CNN
+ 1 10850 2250
+ -1 0 0 1
+$EndComp
+$Comp
+L PORT U5
+U 2 1 66545FE6
+P 10850 5250
+F 0 "U5" H 10900 5350 30 0000 C CNN
+F 1 "PORT" H 10850 5250 30 0000 C CNN
+F 2 "" H 10850 5250 60 0000 C CNN
+F 3 "" H 10850 5250 60 0000 C CNN
+ 2 10850 5250
+ -1 0 0 1
+$EndComp
+$Comp
+L PORT U5
+U 3 1 665460CD
+P 10850 5400
+F 0 "U5" H 10900 5500 30 0000 C CNN
+F 1 "PORT" H 10850 5400 30 0000 C CNN
+F 2 "" H 10850 5400 60 0000 C CNN
+F 3 "" H 10850 5400 60 0000 C CNN
+ 3 10850 5400
+ -1 0 0 1
+$EndComp
+Connection ~ 2650 4150
+Connection ~ 3150 3200
+$Comp
+L zener U3
+U 1 1 665406D2
+P 10200 3300
+F 0 "U3" H 10150 3200 60 0000 C CNN
+F 1 "zener" H 10200 3400 60 0000 C CNN
+F 2 "" H 10250 3300 60 0000 C CNN
+F 3 "" H 10250 3300 60 0000 C CNN
+ 1 10200 3300
+ 0 1 -1 0
+$EndComp
+$Comp
+L zener U4
+U 1 1 665409EE
+P 10200 4250
+F 0 "U4" H 10150 4150 60 0000 C CNN
+F 1 "zener" H 10200 4350 60 0000 C CNN
+F 2 "" H 10250 4250 60 0000 C CNN
+F 3 "" H 10250 4250 60 0000 C CNN
+ 1 10200 4250
+ 0 1 -1 0
+$EndComp
+$Comp
+L zener U2
+U 1 1 66543707
+P 6150 5400
+F 0 "U2" H 6100 5300 60 0000 C CNN
+F 1 "zener" H 6150 5500 60 0000 C CNN
+F 2 "" H 6200 5400 60 0000 C CNN
+F 3 "" H 6200 5400 60 0000 C CNN
+ 1 6150 5400
+ -1 0 0 -1
+$EndComp
+$Comp
+L zener U1
+U 1 1 66546061
+P 1000 4450
+F 0 "U1" H 950 4350 60 0000 C CNN
+F 1 "zener" H 1000 4550 60 0000 C CNN
+F 2 "" H 1050 4450 60 0000 C CNN
+F 3 "" H 1050 4450 60 0000 C CNN
+ 1 1000 4450
+ 0 -1 -1 0
+$EndComp
+$Comp
+L resistor R13
+U 1 1 665450CE
+P 5650 2400
+F 0 "R13" H 5700 2530 50 0000 C CNN
+F 1 "5.6k" H 5700 2350 50 0000 C CNN
+F 2 "" H 5700 2380 30 0000 C CNN
+F 3 "" V 5700 2450 30 0000 C CNN
+ 1 5650 2400
+ 0 1 1 0
+$EndComp
+Wire Wire Line
+ 5700 2300 5700 2250
+$Comp
+L resistor R10
+U 1 1 665479CB
+P 4450 2350
+F 0 "R10" H 4500 2480 50 0000 C CNN
+F 1 "82" H 4500 2300 50 0000 C CNN
+F 2 "" H 4500 2330 30 0000 C CNN
+F 3 "" V 4500 2400 30 0000 C CNN
+ 1 4450 2350
+ 0 1 1 0
+$EndComp
+$Comp
+L resistor R6
+U 1 1 66547C26
+P 3400 2350
+F 0 "R6" H 3450 2480 50 0000 C CNN
+F 1 "190" H 3450 2300 50 0000 C CNN
+F 2 "" H 3450 2330 30 0000 C CNN
+F 3 "" V 3450 2400 30 0000 C CNN
+ 1 3400 2350
+ 0 1 1 0
+$EndComp
+$Comp
+L resistor R4
+U 1 1 66549453
+P 2150 2350
+F 0 "R4" H 2200 2480 50 0000 C CNN
+F 1 "310" H 2200 2300 50 0000 C CNN
+F 2 "" H 2200 2330 30 0000 C CNN
+F 3 "" V 2200 2400 30 0000 C CNN
+ 1 2150 2350
+ 0 1 1 0
+$EndComp
+$Comp
+L resistor R2
+U 1 1 665497C5
+P 1450 2350
+F 0 "R2" H 1500 2480 50 0000 C CNN
+F 1 "310" H 1500 2300 50 0000 C CNN
+F 2 "" H 1500 2330 30 0000 C CNN
+F 3 "" V 1500 2400 30 0000 C CNN
+ 1 1450 2350
+ 0 1 1 0
+$EndComp
+$Comp
+L resistor R1
+U 1 1 6654AA03
+P 1250 3800
+F 0 "R1" H 1300 3930 50 0000 C CNN
+F 1 "200k" H 1300 3750 50 0000 C CNN
+F 2 "" H 1300 3780 30 0000 C CNN
+F 3 "" V 1300 3850 30 0000 C CNN
+ 1 1250 3800
+ 1 0 0 -1
+$EndComp
+$Comp
+L resistor R5
+U 1 1 6654AC77
+P 2150 3900
+F 0 "R5" H 2200 4030 50 0000 C CNN
+F 1 "130" H 2200 3850 50 0000 C CNN
+F 2 "" H 2200 3880 30 0000 C CNN
+F 3 "" V 2200 3950 30 0000 C CNN
+ 1 2150 3900
+ 0 1 1 0
+$EndComp
+$Comp
+L resistor R3
+U 1 1 6654C0FB
+P 1450 4750
+F 0 "R3" H 1500 4880 50 0000 C CNN
+F 1 "180" H 1500 4700 50 0000 C CNN
+F 2 "" H 1500 4730 30 0000 C CNN
+F 3 "" V 1500 4800 30 0000 C CNN
+ 1 1450 4750
+ 0 1 1 0
+$EndComp
+$Comp
+L resistor R7
+U 1 1 6654FCB5
+P 3400 3550
+F 0 "R7" H 3450 3680 50 0000 C CNN
+F 1 "12.4k" H 3450 3500 50 0000 C CNN
+F 2 "" H 3450 3530 30 0000 C CNN
+F 3 "" V 3450 3600 30 0000 C CNN
+ 1 3400 3550
+ 0 1 1 0
+$EndComp
+$Comp
+L resistor R21
+U 1 1 66557F91
+P 8950 3100
+F 0 "R21" H 9000 3230 50 0000 C CNN
+F 1 "370" H 9000 3050 50 0000 C CNN
+F 2 "" H 9000 3080 30 0000 C CNN
+F 3 "" V 9000 3150 30 0000 C CNN
+ 1 8950 3100
+ 1 0 0 -1
+$EndComp
+$Comp
+L resistor R22
+U 1 1 665581F6
+P 9000 3400
+F 0 "R22" H 9050 3530 50 0000 C CNN
+F 1 "130" H 9050 3350 50 0000 C CNN
+F 2 "" H 9050 3380 30 0000 C CNN
+F 3 "" V 9050 3450 30 0000 C CNN
+ 1 9000 3400
+ 1 0 0 -1
+$EndComp
+$Comp
+L resistor R19
+U 1 1 66558CE5
+P 8250 3150
+F 0 "R19" H 8300 3280 50 0000 C CNN
+F 1 "12k" H 8300 3100 50 0000 C CNN
+F 2 "" H 8300 3130 30 0000 C CNN
+F 3 "" V 8300 3200 30 0000 C CNN
+ 1 8250 3150
+ 0 1 1 0
+$EndComp
+$Comp
+L resistor R18
+U 1 1 6655986F
+P 8200 3850
+F 0 "R18" H 8250 3980 50 0000 C CNN
+F 1 "13k" H 8250 3800 50 0000 C CNN
+F 2 "" H 8250 3830 30 0000 C CNN
+F 3 "" V 8250 3900 30 0000 C CNN
+ 1 8200 3850
+ 1 0 0 -1
+$EndComp
+$Comp
+L resistor R20
+U 1 1 6655994E
+P 8450 3550
+F 0 "R20" H 8500 3680 50 0000 C CNN
+F 1 "400" H 8500 3500 50 0000 C CNN
+F 2 "" H 8500 3530 30 0000 C CNN
+F 3 "" V 8500 3600 30 0000 C CNN
+ 1 8450 3550
+ 0 1 1 0
+$EndComp
+$Comp
+L resistor R23
+U 1 1 66559A2E
+P 9450 3600
+F 0 "R23" H 9500 3730 50 0000 C CNN
+F 1 "160" H 9500 3550 50 0000 C CNN
+F 2 "" H 9500 3580 30 0000 C CNN
+F 3 "" V 9500 3650 30 0000 C CNN
+ 1 9450 3600
+ 0 1 1 0
+$EndComp
+$Comp
+L resistor R27
+U 1 1 6655C370
+P 10150 4650
+F 0 "R27" H 10200 4780 50 0000 C CNN
+F 1 "160" H 10200 4600 50 0000 C CNN
+F 2 "" H 10200 4630 30 0000 C CNN
+F 3 "" V 10200 4700 30 0000 C CNN
+ 1 10150 4650
+ 0 1 1 0
+$EndComp
+$Comp
+L resistor R25
+U 1 1 6655C6FD
+P 10000 5150
+F 0 "R25" H 10050 5280 50 0000 C CNN
+F 1 "3" H 10050 5100 50 0000 C CNN
+F 2 "" H 10050 5130 30 0000 C CNN
+F 3 "" V 10050 5200 30 0000 C CNN
+ 1 10000 5150
+ 1 0 0 -1
+$EndComp
+$Comp
+L resistor R24
+U 1 1 6655C946
+P 9750 4950
+F 0 "R24" H 9800 5080 50 0000 C CNN
+F 1 "0.14" H 9800 4900 50 0000 C CNN
+F 2 "" H 9800 4930 30 0000 C CNN
+F 3 "" V 9800 5000 30 0000 C CNN
+ 1 9750 4950
+ 0 1 1 0
+$EndComp
+$Comp
+L resistor R26
+U 1 1 6655DC8E
+P 10150 3650
+F 0 "R26" H 10200 3780 50 0000 C CNN
+F 1 "18k" H 10200 3600 50 0000 C CNN
+F 2 "" H 10200 3630 30 0000 C CNN
+F 3 "" V 10200 3700 30 0000 C CNN
+ 1 10150 3650
+ 0 1 1 0
+$EndComp
+$Comp
+L resistor R8
+U 1 1 6656252B
+P 3400 4700
+F 0 "R8" H 3450 4830 50 0000 C CNN
+F 1 "4.1k" H 3450 4650 50 0000 C CNN
+F 2 "" H 3450 4680 30 0000 C CNN
+F 3 "" V 3450 4750 30 0000 C CNN
+ 1 3400 4700
+ 0 1 1 0
+$EndComp
+$Comp
+L resistor R9
+U 1 1 66562858
+P 4050 4700
+F 0 "R9" H 4100 4830 50 0000 C CNN
+F 1 "5.8k" H 4100 4650 50 0000 C CNN
+F 2 "" H 4100 4680 30 0000 C CNN
+F 3 "" V 4100 4750 30 0000 C CNN
+ 1 4050 4700
+ 0 1 1 0
+$EndComp
+$Comp
+L resistor R11
+U 1 1 66562A20
+P 4450 4700
+F 0 "R11" H 4500 4830 50 0000 C CNN
+F 1 "72" H 4500 4650 50 0000 C CNN
+F 2 "" H 4500 4680 30 0000 C CNN
+F 3 "" V 4500 4750 30 0000 C CNN
+ 1 4450 4700
+ 0 1 1 0
+$EndComp
+$Comp
+L resistor R12
+U 1 1 66562C6D
+P 5250 4700
+F 0 "R12" H 5300 4830 50 0000 C CNN
+F 1 "5.1k" H 5300 4650 50 0000 C CNN
+F 2 "" H 5300 4680 30 0000 C CNN
+F 3 "" V 5300 4750 30 0000 C CNN
+ 1 5250 4700
+ 0 1 1 0
+$EndComp
+$Comp
+L resistor R14
+U 1 1 66562F78
+P 6550 4950
+F 0 "R14" H 6600 5080 50 0000 C CNN
+F 1 "12k" H 6600 4900 50 0000 C CNN
+F 2 "" H 6600 4930 30 0000 C CNN
+F 3 "" V 6600 5000 30 0000 C CNN
+ 1 6550 4950
+ 0 1 1 0
+$EndComp
+$Comp
+L resistor R15
+U 1 1 665631A5
+P 6950 4600
+F 0 "R15" H 7000 4730 50 0000 C CNN
+F 1 "2.4k" H 7000 4550 50 0000 C CNN
+F 2 "" H 7000 4580 30 0000 C CNN
+F 3 "" V 7000 4650 30 0000 C CNN
+ 1 6950 4600
+ 0 1 1 0
+$EndComp
+$Comp
+L resistor R16
+U 1 1 66563564
+P 7000 5450
+F 0 "R16" H 7050 5580 50 0000 C CNN
+F 1 "50" H 7050 5400 50 0000 C CNN
+F 2 "" H 7050 5430 30 0000 C CNN
+F 3 "" V 7050 5500 30 0000 C CNN
+ 1 7000 5450
+ 1 0 0 -1
+$EndComp
+$Comp
+L resistor R17
+U 1 1 66563996
+P 7650 3150
+F 0 "R17" H 7700 3280 50 0000 C CNN
+F 1 "6.7k" H 7700 3100 50 0000 C CNN
+F 2 "" H 7700 3130 30 0000 C CNN
+F 3 "" V 7700 3200 30 0000 C CNN
+ 1 7650 3150
+ 0 1 1 0
+$EndComp
+$Comp
+L capacitor C1
+U 1 1 66566EB0
+P 6100 4350
+F 0 "C1" H 6125 4450 50 0000 L CNN
+F 1 "30pF" H 6125 4250 50 0000 L CNN
+F 2 "" H 6138 4200 30 0000 C CNN
+F 3 "" H 6100 4350 60 0000 C CNN
+ 1 6100 4350
+ 1 0 0 -1
+$EndComp
+$Comp
+L capacitor C2
+U 1 1 665670BB
+P 6350 4700
+F 0 "C2" H 6375 4800 50 0000 L CNN
+F 1 "30pF" H 6375 4600 50 0000 L CNN
+F 2 "" H 6388 4550 30 0000 C CNN
+F 3 "" H 6350 4700 60 0000 C CNN
+ 1 6350 4700
+ 1 0 0 -1
+$EndComp
+$Comp
+L capacitor C3
+U 1 1 66567315
+P 8050 3550
+F 0 "C3" H 8075 3650 50 0000 L CNN
+F 1 "5pF" H 8075 3450 50 0000 L CNN
+F 2 "" H 8088 3400 30 0000 C CNN
+F 3 "" H 8050 3550 60 0000 C CNN
+ 1 8050 3550
+ 1 0 0 -1
+$EndComp
+$EndSCHEMATC
diff --git a/library/SubcircuitLibrary/LM317_sub/LM317_sub.sub b/library/SubcircuitLibrary/LM317_sub/LM317_sub.sub
new file mode 100644
index 00000000..ffd8e037
--- /dev/null
+++ b/library/SubcircuitLibrary/LM317_sub/LM317_sub.sub
@@ -0,0 +1,83 @@
+* Subcircuit LM317_sub
+.subckt LM317_sub net-_j1-pad1_ net-_c1-pad2_ net-_r16-pad2_
+* c:\fossee\esim\library\subcircuitlibrary\lm317_sub\lm317_sub.cir
+.include NPN.lib
+.include PNP.lib
+.include NJF.lib
+j1 net-_j1-pad1_ net-_c1-pad2_ net-_j1-pad3_ J2N3819
+q1 net-_q1-pad1_ net-_q1-pad1_ net-_q1-pad3_ Q2N2907A
+q2 net-_q1-pad1_ net-_q2-pad2_ net-_q2-pad3_ Q2N2222
+q3 net-_q2-pad2_ net-_q1-pad1_ net-_q3-pad3_ Q2N2907A
+q4 net-_q4-pad1_ net-_q2-pad2_ net-_c1-pad2_ Q2N2222
+q7 net-_q7-pad1_ net-_q4-pad1_ net-_q7-pad3_ Q2N2222
+q5 net-_c1-pad2_ net-_q4-pad1_ net-_q5-pad3_ Q2N2907A
+q6 net-_q6-pad1_ net-_q1-pad1_ net-_q6-pad3_ Q2N2907A
+q8 net-_q10-pad2_ net-_q7-pad1_ net-_q5-pad3_ Q2N2907A
+q10 net-_q10-pad1_ net-_q10-pad2_ net-_q10-pad3_ Q2N2222
+q11 net-_c1-pad2_ net-_q11-pad2_ net-_q10-pad1_ Q2N2907A
+q9 net-_q10-pad1_ net-_q1-pad1_ net-_q9-pad3_ Q2N2907A
+q13 net-_q12-pad2_ net-_q1-pad1_ net-_q13-pad3_ Q2N2907A
+q12 net-_j1-pad1_ net-_q12-pad2_ net-_q11-pad2_ Q2N2222
+q14 net-_c1-pad2_ net-_c1-pad1_ net-_q12-pad2_ Q2N2907A
+q16 net-_c1-pad1_ net-_c1-pad2_ net-_q16-pad3_ Q2N2222
+q18 net-_q15-pad2_ net-_c1-pad2_ net-_q18-pad3_ Q2N2222
+q15 net-_c1-pad1_ net-_q15-pad2_ net-_q10-pad1_ Q2N2907A
+q17 net-_q15-pad2_ net-_q15-pad2_ net-_q10-pad1_ Q2N2907A
+q19 net-_c1-pad2_ net-_c3-pad1_ net-_q10-pad1_ Q2N2907A
+q20 net-_c3-pad1_ net-_c3-pad2_ net-_c1-pad2_ Q2N2222
+q23 net-_q21-pad2_ net-_q10-pad1_ net-_q23-pad3_ Q2N2222
+q26 net-_j1-pad1_ net-_q26-pad2_ net-_q26-pad3_ Q2N2222
+q27 net-_j1-pad1_ net-_q26-pad3_ net-_q27-pad3_ Q2N2222
+q22 net-_q22-pad1_ net-_q22-pad2_ net-_q22-pad3_ Q2N2222
+q25 net-_q22-pad1_ net-_q22-pad2_ net-_q25-pad3_ Q2N2222
+q21 net-_q10-pad1_ net-_q21-pad2_ net-_j1-pad1_ Q2N2907A
+q24 net-_q21-pad2_ net-_q21-pad2_ net-_j1-pad1_ Q2N2907A
+* u3 net-_r26-pad1_ net-_j1-pad1_ zener
+* u4 net-_q25-pad3_ net-_r26-pad2_ zener
+* u2 net-_c2-pad2_ net-_c1-pad2_ zener
+* u1 net-_c1-pad2_ net-_j1-pad3_ zener
+r13 net-_j1-pad1_ net-_q13-pad3_ 5.6k
+r10 net-_j1-pad1_ net-_q9-pad3_ 82
+r6 net-_j1-pad1_ net-_q6-pad3_ 190
+r4 net-_j1-pad1_ net-_q3-pad3_ 310
+r2 net-_j1-pad1_ net-_q1-pad3_ 310
+r1 net-_j1-pad3_ net-_q2-pad2_ 200k
+r5 net-_q2-pad2_ net-_q4-pad1_ 130
+r3 net-_q2-pad3_ net-_c1-pad2_ 180
+r7 net-_q6-pad1_ net-_q7-pad1_ 12.4k
+r21 net-_q10-pad1_ net-_q26-pad2_ 370
+r22 net-_q23-pad3_ net-_q26-pad3_ 130
+r19 net-_q10-pad1_ net-_q22-pad2_ 12k
+r18 net-_c3-pad2_ net-_q22-pad1_ 13k
+r20 net-_q22-pad2_ net-_q22-pad1_ 400
+r23 net-_q26-pad3_ net-_c1-pad2_ 160
+r27 net-_q25-pad3_ net-_q22-pad3_ 160
+r25 net-_q27-pad3_ net-_q22-pad3_ 3
+r24 net-_q27-pad3_ net-_c1-pad2_ 0.14
+r26 net-_r26-pad1_ net-_r26-pad2_ 18k
+r8 net-_q7-pad3_ net-_c1-pad2_ 4.1k
+r9 net-_q10-pad2_ net-_c1-pad2_ 5.8k
+r11 net-_q10-pad3_ net-_c1-pad2_ 72
+r12 net-_q11-pad2_ net-_c1-pad2_ 5.1k
+r14 net-_q16-pad3_ net-_c2-pad2_ 12k
+r15 net-_q18-pad3_ net-_q16-pad3_ 2.4k
+r16 net-_c2-pad2_ net-_r16-pad2_ 50
+r17 net-_q10-pad1_ net-_c3-pad1_ 6.7k
+c1 net-_c1-pad1_ net-_c1-pad2_ 30pf
+c2 net-_c1-pad1_ net-_c2-pad2_ 30pf
+c3 net-_c3-pad1_ net-_c3-pad2_ 5pf
+a1 net-_r26-pad1_ net-_j1-pad1_ u3
+a2 net-_q25-pad3_ net-_r26-pad2_ u4
+a3 net-_c2-pad2_ net-_c1-pad2_ u2
+a4 net-_c1-pad2_ net-_j1-pad3_ u1
+* Schematic Name: zener, NgSpice Name: zener
+.model u3 zener(v_breakdown=5.6 i_breakdown=2.0e-2 i_sat=1.0e-12 n_forward=1.0 limit_switch=FALSE )
+* Schematic Name: zener, NgSpice Name: zener
+.model u4 zener(v_breakdown=5.6 i_breakdown=2.0e-2 i_sat=1.0e-12 n_forward=1.0 limit_switch=FALSE )
+* Schematic Name: zener, NgSpice Name: zener
+.model u2 zener(v_breakdown=5.6 i_breakdown=2.0e-2 i_sat=1.0e-12 n_forward=1.0 limit_switch=FALSE )
+* Schematic Name: zener, NgSpice Name: zener
+.model u1 zener(v_breakdown=5.6 i_breakdown=2.0e-2 i_sat=1.0e-12 n_forward=1.0 limit_switch=FALSE )
+* Control Statements
+
+.ends LM317_sub \ No newline at end of file
diff --git a/library/SubcircuitLibrary/LM317_sub/LM317_sub_Previous_Values.xml b/library/SubcircuitLibrary/LM317_sub/LM317_sub_Previous_Values.xml
new file mode 100644
index 00000000..73c8daf0
--- /dev/null
+++ b/library/SubcircuitLibrary/LM317_sub/LM317_sub_Previous_Values.xml
@@ -0,0 +1 @@
+<KicadtoNgspice><source /><model><u3 name="type">zener<field1 name="Enter Breakdown Voltage (default=5.6)" /><field2 name="Enter Breakdown Current (default=2.0e-2)" /><field3 name="Enter Saturation Current (default=1.0e-12)" /><field4 name="Enter Forward Emission Coefficient (default=1.0)" /><field5 name="Enter Switch for Limiting (default=FALSE)" /></u3><u4 name="type">zener<field6 name="Enter Breakdown Voltage (default=5.6)" /><field7 name="Enter Breakdown Current (default=2.0e-2)" /><field8 name="Enter Saturation Current (default=1.0e-12)" /><field9 name="Enter Forward Emission Coefficient (default=1.0)" /><field10 name="Enter Switch for Limiting (default=FALSE)" /></u4><u2 name="type">zener<field11 name="Enter Breakdown Voltage (default=5.6)" /><field12 name="Enter Breakdown Current (default=2.0e-2)" /><field13 name="Enter Saturation Current (default=1.0e-12)" /><field14 name="Enter Forward Emission Coefficient (default=1.0)" /><field15 name="Enter Switch for Limiting (default=FALSE)" /></u2><u1 name="type">zener<field16 name="Enter Breakdown Voltage (default=5.6)" /><field17 name="Enter Breakdown Current (default=2.0e-2)" /><field18 name="Enter Saturation Current (default=1.0e-12)" /><field19 name="Enter Forward Emission Coefficient (default=1.0)" /><field20 name="Enter Switch for Limiting (default=FALSE)" /></u1></model><devicemodel><j1><field>C:\FOSSEE\eSim\library\deviceModelLibrary\JFET\NJF.lib</field></j1><q1><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\PNP.lib</field></q1><q2><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\NPN.lib</field></q2><q3><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\PNP.lib</field></q3><q4><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\NPN.lib</field></q4><q7><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\NPN.lib</field></q7><q5><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\PNP.lib</field></q5><q6><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\PNP.lib</field></q6><q8><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\PNP.lib</field></q8><q10><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\NPN.lib</field></q10><q11><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\PNP.lib</field></q11><q9><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\PNP.lib</field></q9><q13><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\PNP.lib</field></q13><q12><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\NPN.lib</field></q12><q14><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\PNP.lib</field></q14><q16><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\NPN.lib</field></q16><q18><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\NPN.lib</field></q18><q15><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\PNP.lib</field></q15><q17><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\PNP.lib</field></q17><q19><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\PNP.lib</field></q19><q20><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\NPN.lib</field></q20><q23><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\NPN.lib</field></q23><q26><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\NPN.lib</field></q26><q27><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\NPN.lib</field></q27><q22><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\NPN.lib</field></q22><q25><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\NPN.lib</field></q25><q21><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\PNP.lib</field></q21><q24><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\PNP.lib</field></q24></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/library/SubcircuitLibrary/LM317_sub/NJF.lib b/library/SubcircuitLibrary/LM317_sub/NJF.lib
new file mode 100644
index 00000000..dbb2cbae
--- /dev/null
+++ b/library/SubcircuitLibrary/LM317_sub/NJF.lib
@@ -0,0 +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)
diff --git a/library/SubcircuitLibrary/LM317_sub/NPN.lib b/library/SubcircuitLibrary/LM317_sub/NPN.lib
new file mode 100644
index 00000000..be5f3073
--- /dev/null
+++ b/library/SubcircuitLibrary/LM317_sub/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=0.2847 Xtb=1.5 Br=6.092 Nc=2 Isc=0 Ikr=0 Rc=1 Cjc=7.306p
++ Mjc=0.3416 Vjc=0.75 Fc=0.5 Cje=22.01p Mje=0.377 Vje=0.75 Tr=46.91n Tf=411.1p
++ Itf=0.6 Vtf=1.7 Xtf=3 Rb=10)
diff --git a/library/SubcircuitLibrary/LM317_sub/PNP.lib b/library/SubcircuitLibrary/LM317_sub/PNP.lib
new file mode 100644
index 00000000..7edda0ea
--- /dev/null
+++ b/library/SubcircuitLibrary/LM317_sub/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/library/SubcircuitLibrary/LM317_sub/analysis b/library/SubcircuitLibrary/LM317_sub/analysis
new file mode 100644
index 00000000..ebd5c0a9
--- /dev/null
+++ b/library/SubcircuitLibrary/LM317_sub/analysis
@@ -0,0 +1 @@
+.tran 0e-00 0e-00 0e-00 \ No newline at end of file