From cb55e59de7ee4383c04edfae7c39ad9ae9552b36 Mon Sep 17 00:00:00 2001 From: rahulp13 Date: Fri, 14 Feb 2020 15:16:35 +0530 Subject: common code for Win and Linux, merged py2 changes --- Examples/Dualtimer/556-cache.lib | 64 +++ Examples/Dualtimer/556.cir | 13 + Examples/Dualtimer/556.cir.out | 15 + Examples/Dualtimer/556.pro | 72 +++ Examples/Dualtimer/556.sch | 275 +++++++++++ Examples/Dualtimer/556.sub | 9 + Examples/Dualtimer/556_Previous_Values.xml | 1 + Examples/Dualtimer/D.lib | 2 + Examples/Dualtimer/Dualtimer-cache.lib | 148 ++++++ Examples/Dualtimer/Dualtimer-rescue.lib | 21 + Examples/Dualtimer/Dualtimer.cir | 34 ++ Examples/Dualtimer/Dualtimer.cir.out | 45 ++ Examples/Dualtimer/Dualtimer.pro | 73 +++ Examples/Dualtimer/Dualtimer.proj | 1 + Examples/Dualtimer/Dualtimer.sch | 576 +++++++++++++++++++++++ Examples/Dualtimer/Dualtimer_Previous_Values.xml | 1 + Examples/Dualtimer/NPN.lib | 4 + Examples/Dualtimer/analysis | 1 + Examples/Dualtimer/lm555n-cache.lib | 228 +++++++++ Examples/Dualtimer/lm555n-rescue.lib | 37 ++ Examples/Dualtimer/lm555n.cir | 27 ++ Examples/Dualtimer/lm555n.cir.out | 35 ++ Examples/Dualtimer/lm555n.pro | 57 +++ Examples/Dualtimer/lm555n.sch | 486 +++++++++++++++++++ Examples/Dualtimer/lm555n.sub | 37 ++ Examples/Dualtimer/lm555n_Previous_Values.xml | 1 + 26 files changed, 2263 insertions(+) create mode 100644 Examples/Dualtimer/556-cache.lib create mode 100644 Examples/Dualtimer/556.cir create mode 100644 Examples/Dualtimer/556.cir.out create mode 100644 Examples/Dualtimer/556.pro create mode 100644 Examples/Dualtimer/556.sch create mode 100644 Examples/Dualtimer/556.sub create mode 100644 Examples/Dualtimer/556_Previous_Values.xml create mode 100644 Examples/Dualtimer/D.lib create mode 100644 Examples/Dualtimer/Dualtimer-cache.lib create mode 100644 Examples/Dualtimer/Dualtimer-rescue.lib create mode 100644 Examples/Dualtimer/Dualtimer.cir create mode 100644 Examples/Dualtimer/Dualtimer.cir.out create mode 100644 Examples/Dualtimer/Dualtimer.pro create mode 100644 Examples/Dualtimer/Dualtimer.proj create mode 100644 Examples/Dualtimer/Dualtimer.sch create mode 100644 Examples/Dualtimer/Dualtimer_Previous_Values.xml create mode 100644 Examples/Dualtimer/NPN.lib create mode 100644 Examples/Dualtimer/analysis create mode 100644 Examples/Dualtimer/lm555n-cache.lib create mode 100644 Examples/Dualtimer/lm555n-rescue.lib create mode 100644 Examples/Dualtimer/lm555n.cir create mode 100644 Examples/Dualtimer/lm555n.cir.out create mode 100644 Examples/Dualtimer/lm555n.pro create mode 100644 Examples/Dualtimer/lm555n.sch create mode 100644 Examples/Dualtimer/lm555n.sub create mode 100644 Examples/Dualtimer/lm555n_Previous_Values.xml (limited to 'Examples/Dualtimer') diff --git a/Examples/Dualtimer/556-cache.lib b/Examples/Dualtimer/556-cache.lib new file mode 100644 index 00000000..8a2b1558 --- /dev/null +++ b/Examples/Dualtimer/556-cache.lib @@ -0,0 +1,64 @@ +EESchema-LIBRARY Version 2.3 +#encoding utf-8 +# +# LM555N +# +DEF LM555N X 0 40 Y Y 1 F N +F0 "X" 0 -50 60 H V C CNN +F1 "LM555N" 0 100 60 H V C CNN +F2 "" -50 0 60 H V C CNN +F3 "" -50 0 60 H V C CNN +DRAW +S 350 -400 -350 400 0 1 0 N +X GND 1 0 -600 200 U 50 50 1 1 W +X TR 2 -550 250 200 R 50 50 1 1 I +X Q 3 550 250 200 L 50 50 1 1 O +X R 4 -550 -250 200 R 50 50 1 1 I I +X CV 5 -550 0 200 R 50 50 1 1 I +X THR 6 550 -250 200 L 50 50 1 1 I +X DIS 7 550 0 200 L 50 50 1 1 I +X VCC 8 0 600 200 D 50 50 1 1 W +ENDDRAW +ENDDEF +# +# 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 +# +#End Library diff --git a/Examples/Dualtimer/556.cir b/Examples/Dualtimer/556.cir new file mode 100644 index 00000000..b008fbb1 --- /dev/null +++ b/Examples/Dualtimer/556.cir @@ -0,0 +1,13 @@ +* C:\esim\eSim\src\SubcircuitLibrary\556\556.cir + +* EESchema Netlist Version 1.1 (Spice format) creation date: 03/18/19 18:30:44 + +* 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-_U1-Pad7_ Net-_U1-Pad6_ Net-_U1-Pad5_ Net-_U1-Pad4_ Net-_U1-Pad3_ Net-_U1-Pad2_ Net-_U1-Pad1_ Net-_U1-Pad14_ LM555N +X2 Net-_U1-Pad7_ Net-_U1-Pad8_ Net-_U1-Pad9_ Net-_U1-Pad10_ Net-_U1-Pad11_ Net-_U1-Pad12_ Net-_U1-Pad13_ Net-_U1-Pad14_ LM555N +U1 Net-_U1-Pad1_ Net-_U1-Pad2_ Net-_U1-Pad3_ Net-_U1-Pad4_ Net-_U1-Pad5_ Net-_U1-Pad6_ Net-_U1-Pad7_ Net-_U1-Pad8_ Net-_U1-Pad9_ Net-_U1-Pad10_ Net-_U1-Pad11_ Net-_U1-Pad12_ Net-_U1-Pad13_ Net-_U1-Pad14_ PORT + +.end diff --git a/Examples/Dualtimer/556.cir.out b/Examples/Dualtimer/556.cir.out new file mode 100644 index 00000000..ae6fc412 --- /dev/null +++ b/Examples/Dualtimer/556.cir.out @@ -0,0 +1,15 @@ +* c:\esim\esim\src\subcircuitlibrary\556\556.cir + +.include lm555n.sub +x1 net-_u1-pad7_ net-_u1-pad6_ net-_u1-pad5_ net-_u1-pad4_ net-_u1-pad3_ net-_u1-pad2_ net-_u1-pad1_ net-_u1-pad14_ lm555n +x2 net-_u1-pad7_ net-_u1-pad8_ net-_u1-pad9_ net-_u1-pad10_ net-_u1-pad11_ net-_u1-pad12_ net-_u1-pad13_ net-_u1-pad14_ lm555n +* u1 net-_u1-pad1_ net-_u1-pad2_ net-_u1-pad3_ net-_u1-pad4_ net-_u1-pad5_ net-_u1-pad6_ net-_u1-pad7_ net-_u1-pad8_ net-_u1-pad9_ net-_u1-pad10_ net-_u1-pad11_ net-_u1-pad12_ net-_u1-pad13_ net-_u1-pad14_ port +.tran 10e-03 100e-03 0e-03 + +* Control Statements +.control +run +print allv > plot_data_v.txt +print alli > plot_data_i.txt +.endc +.end diff --git a/Examples/Dualtimer/556.pro b/Examples/Dualtimer/556.pro new file mode 100644 index 00000000..3644b797 --- /dev/null +++ b/Examples/Dualtimer/556.pro @@ -0,0 +1,72 @@ +update=03/18/19 18:13:51 +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=power +LibName2=device +LibName3=transistors +LibName4=conn +LibName5=regul +LibName6=74xx +LibName7=cmos4000 +LibName8=adc-dac +LibName9=memory +LibName10=xilinx +LibName11=microcontrollers +LibName12=dsp +LibName13=microchip +LibName14=analog_switches +LibName15=motorola +LibName16=texas +LibName17=intel +LibName18=audio +LibName19=interface +LibName20=digital-audio +LibName21=philips +LibName22=display +LibName23=cypress +LibName24=siliconi +LibName25=opto +LibName26=atmel +LibName27=contrib +LibName28=valves +LibName29=eSim_User +LibName30=eSim_Subckt +LibName31=eSim_Sources +LibName32=eSim_PSpice +LibName33=eSim_Power +LibName34=eSim_Plot +LibName35=eSim_Miscellaneous +LibName36=eSim_Hybrid +LibName37=eSim_Digital +LibName38=eSim_Devices +LibName39=eSim_Analog diff --git a/Examples/Dualtimer/556.sch b/Examples/Dualtimer/556.sch new file mode 100644 index 00000000..2b3fcbf5 --- /dev/null +++ b/Examples/Dualtimer/556.sch @@ -0,0 +1,275 @@ +EESchema Schematic File Version 2 +LIBS:power +LIBS:device +LIBS:transistors +LIBS:conn +LIBS:regul +LIBS:74xx +LIBS:cmos4000 +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:valves +LIBS:eSim_User +LIBS:eSim_Subckt +LIBS:eSim_Sources +LIBS:eSim_PSpice +LIBS:eSim_Power +LIBS:eSim_Plot +LIBS:eSim_Miscellaneous +LIBS:eSim_Hybrid +LIBS:eSim_Digital +LIBS:eSim_Devices +LIBS:eSim_Analog +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 LM555N X1 +U 1 1 5C8F9298 +P 4150 3850 +F 0 "X1" H 4150 3800 60 0000 C CNN +F 1 "LM555N" H 4150 3950 60 0000 C CNN +F 2 "" H 4100 3850 60 0000 C CNN +F 3 "" H 4100 3850 60 0000 C CNN + 1 4150 3850 + 1 0 0 -1 +$EndComp +$Comp +L LM555N X2 +U 1 1 5C8F92E5 +P 7100 3850 +F 0 "X2" H 7100 3800 60 0000 C CNN +F 1 "LM555N" H 7100 3950 60 0000 C CNN +F 2 "" H 7050 3850 60 0000 C CNN +F 3 "" H 7050 3850 60 0000 C CNN + 1 7100 3850 + 1 0 0 -1 +$EndComp +Wire Wire Line + 4150 3250 4150 3000 +Wire Wire Line + 4150 3000 7100 3000 +Wire Wire Line + 4150 4450 4150 4650 +Wire Wire Line + 4150 4650 7100 4650 +$Comp +L PORT U1 +U 14 1 5C8F93E6 +P 4650 2600 +F 0 "U1" H 4700 2700 30 0000 C CNN +F 1 "PORT" H 4650 2600 30 0000 C CNN +F 2 "" H 4650 2600 60 0000 C CNN +F 3 "" H 4650 2600 60 0000 C CNN + 14 4650 2600 + 1 0 0 -1 +$EndComp +Wire Wire Line + 4900 2600 5000 2600 +Wire Wire Line + 5000 2600 5000 3000 +Connection ~ 5000 3000 +$Comp +L PORT U1 +U 6 1 5C8F94B6 +P 3050 3600 +F 0 "U1" H 3100 3700 30 0000 C CNN +F 1 "PORT" H 3050 3600 30 0000 C CNN +F 2 "" H 3050 3600 60 0000 C CNN +F 3 "" H 3050 3600 60 0000 C CNN + 6 3050 3600 + 1 0 0 -1 +$EndComp +$Comp +L PORT U1 +U 3 1 5C8F95C0 +P 3050 3850 +F 0 "U1" H 3100 3950 30 0000 C CNN +F 1 "PORT" H 3050 3850 30 0000 C CNN +F 2 "" H 3050 3850 60 0000 C CNN +F 3 "" H 3050 3850 60 0000 C CNN + 3 3050 3850 + 1 0 0 -1 +$EndComp +$Comp +L PORT U1 +U 4 1 5C8F95E7 +P 3050 4100 +F 0 "U1" H 3100 4200 30 0000 C CNN +F 1 "PORT" H 3050 4100 30 0000 C CNN +F 2 "" H 3050 4100 60 0000 C CNN +F 3 "" H 3050 4100 60 0000 C CNN + 4 3050 4100 + 1 0 0 -1 +$EndComp +Wire Wire Line + 7100 3000 7100 3250 +Wire Wire Line + 7100 4650 7100 4450 +$Comp +L PORT U1 +U 8 1 5C8F9C35 +P 6000 3600 +F 0 "U1" H 6050 3700 30 0000 C CNN +F 1 "PORT" H 6000 3600 30 0000 C CNN +F 2 "" H 6000 3600 60 0000 C CNN +F 3 "" H 6000 3600 60 0000 C CNN + 8 6000 3600 + 1 0 0 -1 +$EndComp +$Comp +L PORT U1 +U 11 1 5C8F9C3B +P 6000 3850 +F 0 "U1" H 6050 3950 30 0000 C CNN +F 1 "PORT" H 6000 3850 30 0000 C CNN +F 2 "" H 6000 3850 60 0000 C CNN +F 3 "" H 6000 3850 60 0000 C CNN + 11 6000 3850 + 1 0 0 -1 +$EndComp +$Comp +L PORT U1 +U 10 1 5C8F9C41 +P 6000 4100 +F 0 "U1" H 6050 4200 30 0000 C CNN +F 1 "PORT" H 6000 4100 30 0000 C CNN +F 2 "" H 6000 4100 60 0000 C CNN +F 3 "" H 6000 4100 60 0000 C CNN + 10 6000 4100 + 1 0 0 -1 +$EndComp +$Comp +L PORT U1 +U 2 1 5C8F9D22 +P 5200 4100 +F 0 "U1" H 5250 4200 30 0000 C CNN +F 1 "PORT" H 5200 4100 30 0000 C CNN +F 2 "" H 5200 4100 60 0000 C CNN +F 3 "" H 5200 4100 60 0000 C CNN + 2 5200 4100 + -1 0 0 1 +$EndComp +$Comp +L PORT U1 +U 1 1 5C8F9D28 +P 5200 3850 +F 0 "U1" H 5250 3950 30 0000 C CNN +F 1 "PORT" H 5200 3850 30 0000 C CNN +F 2 "" H 5200 3850 60 0000 C CNN +F 3 "" H 5200 3850 60 0000 C CNN + 1 5200 3850 + -1 0 0 1 +$EndComp +$Comp +L PORT U1 +U 5 1 5C8F9D2E +P 5200 3600 +F 0 "U1" H 5250 3700 30 0000 C CNN +F 1 "PORT" H 5200 3600 30 0000 C CNN +F 2 "" H 5200 3600 60 0000 C CNN +F 3 "" H 5200 3600 60 0000 C CNN + 5 5200 3600 + -1 0 0 1 +$EndComp +$Comp +L PORT U1 +U 12 1 5C8FA0FA +P 8250 4100 +F 0 "U1" H 8300 4200 30 0000 C CNN +F 1 "PORT" H 8250 4100 30 0000 C CNN +F 2 "" H 8250 4100 60 0000 C CNN +F 3 "" H 8250 4100 60 0000 C CNN + 12 8250 4100 + -1 0 0 1 +$EndComp +$Comp +L PORT U1 +U 13 1 5C8FA100 +P 8250 3850 +F 0 "U1" H 8300 3950 30 0000 C CNN +F 1 "PORT" H 8250 3850 30 0000 C CNN +F 2 "" H 8250 3850 60 0000 C CNN +F 3 "" H 8250 3850 60 0000 C CNN + 13 8250 3850 + -1 0 0 1 +$EndComp +$Comp +L PORT U1 +U 9 1 5C8FA106 +P 8250 3600 +F 0 "U1" H 8300 3700 30 0000 C CNN +F 1 "PORT" H 8250 3600 30 0000 C CNN +F 2 "" H 8250 3600 60 0000 C CNN +F 3 "" H 8250 3600 60 0000 C CNN + 9 8250 3600 + -1 0 0 1 +$EndComp +$Comp +L PORT U1 +U 7 1 5C8FA319 +P 4950 5050 +F 0 "U1" H 5000 5150 30 0000 C CNN +F 1 "PORT" H 4950 5050 30 0000 C CNN +F 2 "" H 4950 5050 60 0000 C CNN +F 3 "" H 4950 5050 60 0000 C CNN + 7 4950 5050 + 1 0 0 -1 +$EndComp +Wire Wire Line + 5200 5050 5200 4650 +Connection ~ 5200 4650 +Wire Wire Line + 3300 3600 3600 3600 +Wire Wire Line + 3300 3850 3600 3850 +Wire Wire Line + 3300 4100 3600 4100 +Wire Wire Line + 4700 3600 4950 3600 +Wire Wire Line + 4700 3850 4950 3850 +Wire Wire Line + 4700 4100 4950 4100 +Wire Wire Line + 6250 3600 6550 3600 +Wire Wire Line + 6250 3850 6550 3850 +Wire Wire Line + 6250 4100 6550 4100 +Wire Wire Line + 8000 3600 7650 3600 +Wire Wire Line + 8000 3850 7650 3850 +Wire Wire Line + 8000 4100 7650 4100 +$EndSCHEMATC diff --git a/Examples/Dualtimer/556.sub b/Examples/Dualtimer/556.sub new file mode 100644 index 00000000..f2fa956d --- /dev/null +++ b/Examples/Dualtimer/556.sub @@ -0,0 +1,9 @@ +* Subcircuit 556 +.subckt 556 net-_u1-pad1_ net-_u1-pad2_ net-_u1-pad3_ net-_u1-pad4_ net-_u1-pad5_ net-_u1-pad6_ net-_u1-pad7_ net-_u1-pad8_ net-_u1-pad9_ net-_u1-pad10_ net-_u1-pad11_ net-_u1-pad12_ net-_u1-pad13_ net-_u1-pad14_ +* c:\esim\esim\src\subcircuitlibrary\556\556.cir +.include lm555n.sub +x1 net-_u1-pad7_ net-_u1-pad6_ net-_u1-pad5_ net-_u1-pad4_ net-_u1-pad3_ net-_u1-pad2_ net-_u1-pad1_ net-_u1-pad14_ lm555n +x2 net-_u1-pad7_ net-_u1-pad8_ net-_u1-pad9_ net-_u1-pad10_ net-_u1-pad11_ net-_u1-pad12_ net-_u1-pad13_ net-_u1-pad14_ lm555n +* Control Statements + +.ends 556 \ No newline at end of file diff --git a/Examples/Dualtimer/556_Previous_Values.xml b/Examples/Dualtimer/556_Previous_Values.xml new file mode 100644 index 00000000..c025c2d1 --- /dev/null +++ b/Examples/Dualtimer/556_Previous_Values.xml @@ -0,0 +1 @@ +C:\esim\eSim\src\SubcircuitLibrary\lm555nC:\esim\eSim\src\SubcircuitLibrary\lm555ntruefalsefalseHzHz0Volts or AmperesVolts or AmperesVolts or AmperesVolts or AmperesVolts or AmperesVolts or Amperes010100msmsms \ No newline at end of file diff --git a/Examples/Dualtimer/D.lib b/Examples/Dualtimer/D.lib new file mode 100644 index 00000000..8a7fb4da --- /dev/null +++ b/Examples/Dualtimer/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/Dualtimer/Dualtimer-cache.lib b/Examples/Dualtimer/Dualtimer-cache.lib new file mode 100644 index 00000000..90d4e137 --- /dev/null +++ b/Examples/Dualtimer/Dualtimer-cache.lib @@ -0,0 +1,148 @@ +EESchema-LIBRARY Version 2.3 +#encoding utf-8 +# +# 556 +# +DEF 556 X 0 40 Y Y 1 F N +F0 "X" 0 0 60 H V C CNN +F1 "556" 0 0 60 H V C CNN +F2 "" 0 0 60 H V C CNN +F3 "" 0 0 60 H V C CNN +DRAW +S -300 400 250 -550 0 1 0 N +X dis1 1 -500 150 200 R 50 50 1 1 I +X thr1 2 -500 -150 200 R 50 50 1 1 I +X cv1 3 -150 -750 200 U 50 50 1 1 I +X rst1 4 -200 600 200 D 50 50 1 1 I +X out1 5 -500 0 200 R 50 50 1 1 O +X trig1 6 -500 -300 200 R 50 50 1 1 I +X gnd 7 0 -750 200 U 50 50 1 1 I +X trig2 8 450 -300 200 L 50 50 1 1 I +X out2 9 450 0 200 L 50 50 1 1 O +X rst2 10 100 600 200 D 50 50 1 1 I +X cv2 11 150 -750 200 U 50 50 1 1 I +X thr2 12 450 -150 200 L 50 50 1 1 I +X dis2 13 450 150 200 L 50 50 1 1 I +X vcc 14 -50 600 200 D 50 50 1 1 I +ENDDRAW +ENDDEF +# +# C +# +DEF C C 0 10 N Y 1 F N +F0 "C" 25 100 50 H V L CNN +F1 "C" 25 -100 50 H V L CNN +F2 "" 38 -150 50 H I C CNN +F3 "" 0 0 50 H I C CNN +$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 50 50 1 1 P +X ~ 2 0 -150 110 U 50 50 1 1 P +ENDDRAW +ENDDEF +# +# DC-RESCUE-dualtimer +# +DEF DC-RESCUE-dualtimer v 0 40 Y Y 1 F N +F0 "v" -200 100 60 H V C CNN +F1 "DC-RESCUE-dualtimer" -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 +# +# IC +# +DEF IC U 0 40 Y Y 1 F N +F0 "U" 300 150 60 H V C CNN +F1 "IC" 250 350 60 H V C CNN +F2 "" 0 0 60 H V C CNN +F3 "" 0 0 60 H V C CNN +DRAW +P 5 0 1 0 200 300 100 250 200 200 300 250 200 300 N +X ~ 1 200 50 146 U 50 50 1 1 I +ENDDRAW +ENDDEF +# +# LED-RESCUE-dualtimer +# +DEF LED-RESCUE-dualtimer D 0 40 Y N 1 F N +F0 "D" 0 100 50 H V C CNN +F1 "LED-RESCUE-dualtimer" 0 -100 50 H V C CNN +F2 "" 0 0 50 H V C CNN +F3 "" 0 0 50 H V C CNN +$FPLIST + LED-3MM + LED-5MM + LED-10MM + LED-0603 + LED-0805 + LED-1206 + LEDV +$ENDFPLIST +DRAW +P 2 0 1 0 -50 50 -50 -50 N +P 3 0 1 0 -80 -25 -125 -65 -120 -40 N +P 3 0 1 0 -65 -40 -110 -80 -105 -55 N +P 3 0 1 0 50 50 -50 0 50 -50 F +X K 1 -200 0 150 R 40 40 1 1 P +X A 2 200 0 150 L 40 40 1 1 P +ENDDRAW +ENDDEF +# +# PWR_FLAG +# +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 +# +# 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 +# +# 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 +# +#End Library diff --git a/Examples/Dualtimer/Dualtimer-rescue.lib b/Examples/Dualtimer/Dualtimer-rescue.lib new file mode 100644 index 00000000..33b7635e --- /dev/null +++ b/Examples/Dualtimer/Dualtimer-rescue.lib @@ -0,0 +1,21 @@ +EESchema-LIBRARY Version 2.3 +#encoding utf-8 +# +# DC-RESCUE-dualtimer +# +DEF DC-RESCUE-dualtimer v 0 40 Y Y 1 F N +F0 "v" -200 100 60 H V C CNN +F1 "DC-RESCUE-dualtimer" -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/Dualtimer/Dualtimer.cir b/Examples/Dualtimer/Dualtimer.cir new file mode 100644 index 00000000..b599c0fb --- /dev/null +++ b/Examples/Dualtimer/Dualtimer.cir @@ -0,0 +1,34 @@ +* C:\Users\HP\eSim-Workspace\dualtimer\dualtimer.cir + +* EESchema Netlist Version 1.1 (Spice format) creation date: 03/18/19 20:07:24 + +* 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-_R3-Pad2_ c1 Net-_C2-Pad1_ Net-_R1-Pad1_ out1 c1 GND c2 out2 Net-_R1-Pad1_ Net-_C3-Pad1_ c2 Net-_R5-Pad2_ Net-_R1-Pad1_ 556 +C2 Net-_C2-Pad1_ GND 0.001u +C3 Net-_C3-Pad1_ GND 0.001u +R4 Net-_R3-Pad2_ c1 100k +R6 Net-_R5-Pad2_ c2 100k +R3 Net-_R1-Pad1_ Net-_R3-Pad2_ 1k +R5 Net-_R1-Pad1_ Net-_R5-Pad2_ 1k +C1 c1 GND 100n +C4 c2 GND 100n +R1 Net-_R1-Pad1_ Net-_D1-Pad2_ 1000 +D1 out1 Net-_D1-Pad2_ LED +R2 out1 Net-_D2-Pad2_ 1k +D2 GND Net-_D2-Pad2_ LED +R7 Net-_R1-Pad1_ Net-_D3-Pad2_ 1000 +D3 out2 Net-_D3-Pad2_ LED +R8 out2 Net-_D4-Pad2_ 1k +D4 GND Net-_D4-Pad2_ LED +v1 Net-_R1-Pad1_ GND DC +U3 c2 IC +U2 c1 IC +U4 out2 plot_v1 +U1 out1 plot_v1 +U6 c2 plot_v1 +U5 c1 plot_v1 + +.end diff --git a/Examples/Dualtimer/Dualtimer.cir.out b/Examples/Dualtimer/Dualtimer.cir.out new file mode 100644 index 00000000..eff58299 --- /dev/null +++ b/Examples/Dualtimer/Dualtimer.cir.out @@ -0,0 +1,45 @@ +* c:\users\hp\esim-workspace\dualtimer\dualtimer.cir + +.include 556.sub +.include D.lib +* u2 c1 ic +.ic v(c1)=0 +* u3 c2 ic +.ic v(c2)=0 +x1 net-_r3-pad2_ c1 net-_c2-pad1_ net-_r1-pad1_ out1 c1 gnd c2 out2 net-_r1-pad1_ net-_c3-pad1_ c2 net-_r5-pad2_ net-_r1-pad1_ 556 +c2 net-_c2-pad1_ gnd 0.001u +c3 net-_c3-pad1_ gnd 0.001u +r4 net-_r3-pad2_ c1 100k +r6 net-_r5-pad2_ c2 100k +r3 net-_r1-pad1_ net-_r3-pad2_ 1k +r5 net-_r1-pad1_ net-_r5-pad2_ 1k +c1 c1 gnd 100n +c4 c2 gnd 100n +r1 net-_r1-pad1_ net-_d1-pad2_ 1000 +d1 out1 net-_d1-pad2_ 1N4148 +r2 out1 net-_d2-pad2_ 1k +d2 gnd net-_d2-pad2_ 1N4148 +r7 net-_r1-pad1_ net-_d3-pad2_ 1000 +d3 out2 net-_d3-pad2_ 1N4148 +r8 out2 net-_d4-pad2_ 1k +d4 gnd net-_d4-pad2_ 1N4148 +v1 net-_r1-pad1_ gnd dc 6 +* u3 c2 ic +* u2 c1 ic +* u4 out2 plot_v1 +* u1 out1 plot_v1 +* u6 c2 plot_v1 +* u5 c1 plot_v1 +.tran 5e-03 100e-03 0e-03 + +* Control Statements +.control +run +print allv > plot_data_v.txt +print alli > plot_data_i.txt +plot v(out2) +plot v(out1) +plot v(c2) +plot v(c1) +.endc +.end diff --git a/Examples/Dualtimer/Dualtimer.pro b/Examples/Dualtimer/Dualtimer.pro new file mode 100644 index 00000000..8975d595 --- /dev/null +++ b/Examples/Dualtimer/Dualtimer.pro @@ -0,0 +1,73 @@ +update=Wed Aug 21 15:21:11 2019 +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=dualtimer-rescue +LibName2=power +LibName3=device +LibName4=transistors +LibName5=conn +LibName6=regul +LibName7=74xx +LibName8=cmos4000 +LibName9=adc-dac +LibName10=memory +LibName11=xilinx +LibName12=microcontrollers +LibName13=dsp +LibName14=microchip +LibName15=analog_switches +LibName16=motorola +LibName17=texas +LibName18=intel +LibName19=audio +LibName20=interface +LibName21=digital-audio +LibName22=philips +LibName23=display +LibName24=cypress +LibName25=siliconi +LibName26=opto +LibName27=atmel +LibName28=contrib +LibName29=valves +LibName30=eSim_User +LibName31=eSim_Sources +LibName32=eSim_PSpice +LibName33=eSim_Power +LibName34=eSim_Plot +LibName35=eSim_Miscellaneous +LibName36=eSim_Hybrid +LibName37=eSim_Digital +LibName38=eSim_Devices +LibName39=eSim_Analog +LibName40=eSim_Subckt diff --git a/Examples/Dualtimer/Dualtimer.proj b/Examples/Dualtimer/Dualtimer.proj new file mode 100644 index 00000000..5e2a4ed4 --- /dev/null +++ b/Examples/Dualtimer/Dualtimer.proj @@ -0,0 +1 @@ +schematicFile dualtimer.sch diff --git a/Examples/Dualtimer/Dualtimer.sch b/Examples/Dualtimer/Dualtimer.sch new file mode 100644 index 00000000..0aae6c93 --- /dev/null +++ b/Examples/Dualtimer/Dualtimer.sch @@ -0,0 +1,576 @@ +EESchema Schematic File Version 2 +LIBS:dualtimer-rescue +LIBS:power +LIBS:device +LIBS:transistors +LIBS:conn +LIBS:regul +LIBS:74xx +LIBS:cmos4000 +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:valves +LIBS:eSim_User +LIBS:eSim_Sources +LIBS:eSim_PSpice +LIBS:eSim_Power +LIBS:eSim_Plot +LIBS:eSim_Miscellaneous +LIBS:eSim_Hybrid +LIBS:eSim_Digital +LIBS:eSim_Devices +LIBS:eSim_Analog +LIBS:eSim_Subckt +LIBS:dualtimer-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 556 X1 +U 1 1 5C8F98A4 +P 5700 3650 +F 0 "X1" H 5700 3650 60 0000 C CNN +F 1 "556" H 5700 3650 60 0000 C CNN +F 2 "" H 5700 3650 60 0000 C CNN +F 3 "" H 5700 3650 60 0000 C CNN + 1 5700 3650 + 1 0 0 -1 +$EndComp +$Comp +L C C2 +U 1 1 5C8F995A +P 5550 4700 +F 0 "C2" H 5575 4800 50 0000 L CNN +F 1 "0.001u" H 5575 4600 50 0000 L CNN +F 2 "" H 5588 4550 50 0000 C CNN +F 3 "" H 5550 4700 50 0000 C CNN + 1 5550 4700 + 1 0 0 -1 +$EndComp +$Comp +L C C3 +U 1 1 5C8F997D +P 5850 4700 +F 0 "C3" H 5875 4800 50 0000 L CNN +F 1 "0.001u" H 5875 4600 50 0000 L CNN +F 2 "" H 5888 4550 50 0000 C CNN +F 3 "" H 5850 4700 50 0000 C CNN + 1 5850 4700 + 1 0 0 -1 +$EndComp +$Comp +L R R4 +U 1 1 5C8F9AB4 +P 4800 3800 +F 0 "R4" V 4880 3800 50 0000 C CNN +F 1 "100k" V 4800 3800 50 0000 C CNN +F 2 "" V 4730 3800 50 0000 C CNN +F 3 "" H 4800 3800 50 0000 C CNN + 1 4800 3800 + 1 0 0 -1 +$EndComp +$Comp +L R R6 +U 1 1 5C8F9AE1 +P 6500 3800 +F 0 "R6" V 6580 3800 50 0000 C CNN +F 1 "100k" V 6500 3800 50 0000 C CNN +F 2 "" V 6430 3800 50 0000 C CNN +F 3 "" H 6500 3800 50 0000 C CNN + 1 6500 3800 + 1 0 0 -1 +$EndComp +$Comp +L R R3 +U 1 1 5C8F9B1A +P 4800 3250 +F 0 "R3" V 4880 3250 50 0000 C CNN +F 1 "1k" V 4800 3250 50 0000 C CNN +F 2 "" V 4730 3250 50 0000 C CNN +F 3 "" H 4800 3250 50 0000 C CNN + 1 4800 3250 + 1 0 0 -1 +$EndComp +$Comp +L R R5 +U 1 1 5C8F9B4C +P 6500 3200 +F 0 "R5" V 6580 3200 50 0000 C CNN +F 1 "1k" V 6500 3200 50 0000 C CNN +F 2 "" V 6430 3200 50 0000 C CNN +F 3 "" H 6500 3200 50 0000 C CNN + 1 6500 3200 + 1 0 0 -1 +$EndComp +$Comp +L C C1 +U 1 1 5C8F9D4A +P 5050 4350 +F 0 "C1" H 5075 4450 50 0000 L CNN +F 1 "100n" H 5075 4250 50 0000 L CNN +F 2 "" H 5088 4200 50 0000 C CNN +F 3 "" H 5050 4350 50 0000 C CNN + 1 5050 4350 + 1 0 0 -1 +$EndComp +$Comp +L C C4 +U 1 1 5C8F9ECD +P 6400 4350 +F 0 "C4" H 6425 4450 50 0000 L CNN +F 1 "100n" H 6425 4250 50 0000 L CNN +F 2 "" H 6438 4200 50 0000 C CNN +F 3 "" H 6400 4350 50 0000 C CNN + 1 6400 4350 + 1 0 0 -1 +$EndComp +$Comp +L R R1 +U 1 1 5C8FA24C +P 4150 3150 +F 0 "R1" V 4230 3150 50 0000 C CNN +F 1 "1000" V 4150 3150 50 0000 C CNN +F 2 "" V 4080 3150 50 0000 C CNN +F 3 "" H 4150 3150 50 0000 C CNN + 1 4150 3150 + 1 0 0 -1 +$EndComp +$Comp +L LED-RESCUE-dualtimer D1 +U 1 1 5C8FA28D +P 4150 3600 +F 0 "D1" H 4150 3700 50 0000 C CNN +F 1 "LED" H 4150 3500 50 0000 C CNN +F 2 "" H 4150 3600 50 0000 C CNN +F 3 "" H 4150 3600 50 0000 C CNN + 1 4150 3600 + 0 -1 -1 0 +$EndComp +$Comp +L R R2 +U 1 1 5C8FA753 +P 4150 4150 +F 0 "R2" V 4230 4150 50 0000 C CNN +F 1 "1k" V 4150 4150 50 0000 C CNN +F 2 "" V 4080 4150 50 0000 C CNN +F 3 "" H 4150 4150 50 0000 C CNN + 1 4150 4150 + 1 0 0 -1 +$EndComp +$Comp +L LED-RESCUE-dualtimer D2 +U 1 1 5C8FA759 +P 4150 4600 +F 0 "D2" H 4150 4700 50 0000 C CNN +F 1 "LED" H 4150 4500 50 0000 C CNN +F 2 "" H 4150 4600 50 0000 C CNN +F 3 "" H 4150 4600 50 0000 C CNN + 1 4150 4600 + 0 -1 -1 0 +$EndComp +$Comp +L R R7 +U 1 1 5C8FAAD5 +P 7100 3100 +F 0 "R7" V 7180 3100 50 0000 C CNN +F 1 "1000" V 7100 3100 50 0000 C CNN +F 2 "" V 7030 3100 50 0000 C CNN +F 3 "" H 7100 3100 50 0000 C CNN + 1 7100 3100 + 1 0 0 -1 +$EndComp +$Comp +L LED-RESCUE-dualtimer D3 +U 1 1 5C8FAADB +P 7100 3550 +F 0 "D3" H 7100 3650 50 0000 C CNN +F 1 "LED" H 7100 3450 50 0000 C CNN +F 2 "" H 7100 3550 50 0000 C CNN +F 3 "" H 7100 3550 50 0000 C CNN + 1 7100 3550 + 0 -1 -1 0 +$EndComp +$Comp +L R R8 +U 1 1 5C8FAAE2 +P 7100 4100 +F 0 "R8" V 7180 4100 50 0000 C CNN +F 1 "1k" V 7100 4100 50 0000 C CNN +F 2 "" V 7030 4100 50 0000 C CNN +F 3 "" H 7100 4100 50 0000 C CNN + 1 7100 4100 + 1 0 0 -1 +$EndComp +$Comp +L LED-RESCUE-dualtimer D4 +U 1 1 5C8FAAE8 +P 7100 4550 +F 0 "D4" H 7100 4650 50 0000 C CNN +F 1 "LED" H 7100 4450 50 0000 C CNN +F 2 "" H 7100 4550 50 0000 C CNN +F 3 "" H 7100 4550 50 0000 C CNN + 1 7100 4550 + 0 -1 -1 0 +$EndComp +$Comp +L DC-RESCUE-dualtimer v1 +U 1 1 5C8FB9E4 +P 5200 2550 +F 0 "v1" H 5000 2650 60 0000 C CNN +F 1 "DC" H 5000 2500 60 0000 C CNN +F 2 "R1" H 4900 2550 60 0000 C CNN +F 3 "" H 5200 2550 60 0000 C CNN + 1 5200 2550 + 0 1 1 0 +$EndComp +$Comp +L PWR_FLAG #FLG01 +U 1 1 5C8FBFDB +P 6100 5150 +F 0 "#FLG01" H 6100 5245 50 0001 C CNN +F 1 "PWR_FLAG" H 6100 5330 50 0000 C CNN +F 2 "" H 6100 5150 50 0000 C CNN +F 3 "" H 6100 5150 50 0000 C CNN + 1 6100 5150 + -1 0 0 1 +$EndComp +$Comp +L PWR_FLAG #FLG02 +U 1 1 5C8FC25B +P 6000 2650 +F 0 "#FLG02" H 6000 2745 50 0001 C CNN +F 1 "PWR_FLAG" H 6000 2830 50 0000 C CNN +F 2 "" H 6000 2650 50 0000 C CNN +F 3 "" H 6000 2650 50 0000 C CNN + 1 6000 2650 + 1 0 0 -1 +$EndComp +$Comp +L IC U3 +U 1 1 5C8FCACC +P 6500 4050 +F 0 "U3" H 6800 4200 60 0000 C CNN +F 1 "IC" H 6750 4400 60 0000 C CNN +F 2 "" H 6500 4050 60 0000 C CNN +F 3 "" H 6500 4050 60 0000 C CNN + 1 6500 4050 + 1 0 0 -1 +$EndComp +$Comp +L IC U2 +U 1 1 5C8FCC54 +P 4400 4200 +F 0 "U2" H 4700 4350 60 0000 C CNN +F 1 "IC" H 4650 4550 60 0000 C CNN +F 2 "" H 4400 4200 60 0000 C CNN +F 3 "" H 4400 4200 60 0000 C CNN + 1 4400 4200 + 1 0 0 -1 +$EndComp +$Comp +L plot_v1 U4 +U 1 1 5C8FD366 +P 7450 3350 +F 0 "U4" H 7450 3850 60 0000 C CNN +F 1 "plot_v1" H 7650 3700 60 0000 C CNN +F 2 "" H 7450 3350 60 0000 C CNN +F 3 "" H 7450 3350 60 0000 C CNN + 1 7450 3350 + 0 1 1 0 +$EndComp +$Comp +L plot_v1 U1 +U 1 1 5C8FD3D2 +P 3850 3900 +F 0 "U1" H 3850 4400 60 0000 C CNN +F 1 "plot_v1" H 4050 4250 60 0000 C CNN +F 2 "" H 3850 3900 60 0000 C CNN +F 3 "" H 3850 3900 60 0000 C CNN + 1 3850 3900 + 0 -1 -1 0 +$EndComp +Text GLabel 3750 3650 0 60 Input ~ 0 +o1 +Text GLabel 7400 3200 0 60 Input ~ 0 +o3 +$Comp +L plot_v1 U6 +U 1 1 5C8FF279 +P 6350 4100 +F 0 "U6" H 6350 4600 60 0000 C CNN +F 1 "plot_v1" H 6550 4450 60 0000 C CNN +F 2 "" H 6350 4100 60 0000 C CNN +F 3 "" H 6350 4100 60 0000 C CNN + 1 6350 4100 + 0 1 1 0 +$EndComp +$Comp +L plot_v1 U5 +U 1 1 5C8FF2E4 +P 4900 4450 +F 0 "U5" H 4900 4950 60 0000 C CNN +F 1 "plot_v1" H 5100 4800 60 0000 C CNN +F 2 "" H 4900 4450 60 0000 C CNN +F 3 "" H 4900 4450 60 0000 C CNN + 1 4900 4450 + 0 -1 -1 0 +$EndComp +Wire Wire Line + 5500 2950 5500 3050 +Wire Wire Line + 4800 2950 6500 2950 +Wire Wire Line + 5800 2950 5800 3050 +Wire Wire Line + 5650 3050 5650 2950 +Connection ~ 5650 2950 +Wire Wire Line + 5550 4400 5550 4550 +Wire Wire Line + 5850 4400 5850 4550 +Wire Wire Line + 5550 4950 5550 4850 +Wire Wire Line + 4150 4950 7100 4950 +Wire Wire Line + 5850 4950 5850 4850 +Wire Wire Line + 5700 4400 5700 4950 +Connection ~ 5700 4950 +Wire Wire Line + 5200 3800 5050 3800 +Wire Wire Line + 5050 3800 5050 4200 +Wire Wire Line + 4800 3950 5200 3950 +Wire Wire Line + 6150 3800 6300 3800 +Wire Wire Line + 6300 3800 6300 3950 +Wire Wire Line + 6150 3950 6500 3950 +Wire Wire Line + 4800 3100 4800 2950 +Connection ~ 5500 2950 +Wire Wire Line + 6500 2900 6500 3050 +Connection ~ 5800 2950 +Wire Wire Line + 4800 3400 4800 3650 +Connection ~ 5050 3950 +Connection ~ 6300 3950 +Wire Wire Line + 6500 3350 6500 3650 +Wire Wire Line + 5200 3500 4800 3500 +Connection ~ 4800 3500 +Wire Wire Line + 6150 3500 6500 3500 +Connection ~ 6500 3500 +Wire Wire Line + 5050 4500 5050 4950 +Connection ~ 5550 4950 +Wire Wire Line + 6400 3950 6400 4200 +Connection ~ 6400 3950 +Wire Wire Line + 6400 4950 6400 4500 +Connection ~ 5850 4950 +Wire Wire Line + 4150 3400 4150 3300 +Wire Wire Line + 4150 4400 4150 4300 +Wire Wire Line + 4150 3800 4150 4000 +Wire Wire Line + 5200 3650 5100 3650 +Wire Wire Line + 5100 3650 5100 3600 +Wire Wire Line + 5100 3600 4350 3600 +Wire Wire Line + 4350 3600 4350 3900 +Wire Wire Line + 7100 3350 7100 3250 +Wire Wire Line + 7100 4350 7100 4250 +Wire Wire Line + 7100 3750 7100 3950 +Wire Wire Line + 4350 3900 4150 3900 +Wire Wire Line + 3850 3900 3650 3900 +Connection ~ 4150 3900 +Wire Wire Line + 7100 2950 7100 2900 +Wire Wire Line + 7100 2900 6500 2900 +Connection ~ 6500 2950 +Wire Wire Line + 7100 4950 7100 4750 +Connection ~ 6400 4950 +Wire Wire Line + 6150 3650 6200 3650 +Wire Wire Line + 6200 3650 6200 3600 +Wire Wire Line + 6200 3600 6850 3600 +Wire Wire Line + 6850 3600 6850 3850 +Wire Wire Line + 6850 3850 7100 3850 +Wire Wire Line + 7450 3350 7650 3350 +Connection ~ 7100 3850 +Wire Wire Line + 4150 4800 4150 4950 +Connection ~ 5050 4950 +Wire Wire Line + 4150 3000 4150 2850 +Wire Wire Line + 4150 2850 5050 2850 +Wire Wire Line + 5050 2850 5050 2950 +Connection ~ 5050 2950 +Wire Wire Line + 5650 2550 5700 2550 +Wire Wire Line + 5700 2550 5700 2950 +Connection ~ 5700 2950 +Wire Wire Line + 4750 2550 3900 2550 +Wire Wire Line + 3900 2550 3900 5300 +Wire Wire Line + 3900 5300 5250 5300 +Wire Wire Line + 5250 5300 5250 4950 +Connection ~ 5250 4950 +Wire Wire Line + 6100 5150 6100 4950 +Connection ~ 6100 4950 +Wire Wire Line + 6000 2650 5700 2650 +Connection ~ 5700 2650 +Wire Wire Line + 4600 4150 5050 4150 +Connection ~ 5050 4150 +Wire Wire Line + 6400 4000 6700 4000 +Connection ~ 6400 4000 +Wire Wire Line + 7400 3200 7450 3200 +Wire Wire Line + 7450 3200 7450 3350 +Wire Wire Line + 3750 3650 3850 3650 +Wire Wire Line + 4700 4450 4700 4150 +Connection ~ 4700 4150 +Wire Wire Line + 6550 4100 6550 4000 +Connection ~ 6550 4000 +Connection ~ 5050 4100 +Connection ~ 6400 4150 +Wire Wire Line + 3850 3350 3850 3900 +$Comp +L plot_v1 U7 +U 1 1 5C901218 +P 3700 4550 +F 0 "U7" H 3700 5050 60 0000 C CNN +F 1 "plot_v1" H 3900 4900 60 0000 C CNN +F 2 "" H 3700 4550 60 0000 C CNN +F 3 "" H 3700 4550 60 0000 C CNN + 1 3700 4550 + 0 -1 -1 0 +$EndComp +Text GLabel 3600 4300 0 60 Input ~ 0 +o2 +Wire Wire Line + 3700 4550 3500 4550 +Wire Wire Line + 3600 4300 3700 4300 +Wire Wire Line + 3700 4300 3700 4550 +$Comp +L plot_v1 U8 +U 1 1 5C9012D2 +P 7600 4350 +F 0 "U8" H 7600 4850 60 0000 C CNN +F 1 "plot_v1" H 7800 4700 60 0000 C CNN +F 2 "" H 7600 4350 60 0000 C CNN +F 3 "" H 7600 4350 60 0000 C CNN + 1 7600 4350 + 0 1 1 0 +$EndComp +Text GLabel 7550 4200 0 60 Input ~ 0 +o4 +Wire Wire Line + 7300 4350 7800 4350 +Wire Wire Line + 7550 4200 7600 4200 +Wire Wire Line + 7600 4200 7600 4350 +Wire Wire Line + 3850 3350 4150 3350 +Connection ~ 4150 3350 +Connection ~ 3850 3650 +Wire Wire Line + 3700 4400 4100 4400 +Wire Wire Line + 4100 4400 4100 4350 +Wire Wire Line + 4100 4350 4150 4350 +Connection ~ 4150 4350 +Connection ~ 3700 4400 +Wire Wire Line + 7450 3300 7100 3300 +Connection ~ 7100 3300 +Connection ~ 7450 3300 +Wire Wire Line + 7300 4350 7300 4300 +Wire Wire Line + 7300 4300 7100 4300 +Connection ~ 7100 4300 +Connection ~ 7600 4350 +Text GLabel 5150 4050 2 60 Input ~ 0 +c1 +Text GLabel 6200 4100 0 60 Input ~ 0 +c2 +Wire Wire Line + 5150 4050 5050 4050 +Connection ~ 5050 4050 +Wire Wire Line + 6200 4100 6400 4100 +Connection ~ 6400 4100 +$EndSCHEMATC diff --git a/Examples/Dualtimer/Dualtimer_Previous_Values.xml b/Examples/Dualtimer/Dualtimer_Previous_Values.xml new file mode 100644 index 00000000..69152c58 --- /dev/null +++ b/Examples/Dualtimer/Dualtimer_Previous_Values.xml @@ -0,0 +1 @@ +dc6ic0ic0icic0/home/saurabh/Downloads/eSim-1.1.2/src/deviceModelLibrary/Diode/D.lib/home/saurabh/Downloads/eSim-1.1.2/src/deviceModelLibrary/Diode/D.lib/home/saurabh/Downloads/eSim-1.1.2/src/deviceModelLibrary/Diode/D.lib/home/saurabh/Downloads/eSim-1.1.2/src/deviceModelLibrary/Diode/D.lib/home/saurabh/Pilot_Related/New_Installer/eSim-1.1.2/src/SubcircuitLibrary/556truefalsefalseHzHz0Volts or AmperesVolts or AmperesVolts or AmperesVolts or AmperesVolts or AmperesVolts or Amperes05100msmsms \ No newline at end of file diff --git a/Examples/Dualtimer/NPN.lib b/Examples/Dualtimer/NPN.lib new file mode 100644 index 00000000..6509fe7a --- /dev/null +++ b/Examples/Dualtimer/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/Dualtimer/analysis b/Examples/Dualtimer/analysis new file mode 100644 index 00000000..ffc57a6b --- /dev/null +++ b/Examples/Dualtimer/analysis @@ -0,0 +1 @@ +.tran 5e-03 100e-03 0e-03 \ No newline at end of file diff --git a/Examples/Dualtimer/lm555n-cache.lib b/Examples/Dualtimer/lm555n-cache.lib new file mode 100644 index 00000000..19938b81 --- /dev/null +++ b/Examples/Dualtimer/lm555n-cache.lib @@ -0,0 +1,228 @@ +EESchema-LIBRARY Version 2.3 +#encoding utf-8 +# +# ADC8 +# +DEF ADC8 U 0 10 Y Y 8 L N +F0 "U" -100 100 40 H V C CNN +F1 "ADC8" 0 0 40 H V C CNN +F2 "" 0 0 60 H I C CNN +F3 "" 0 0 60 H I C CNN +DRAW +S -150 50 150 -50 0 1 0 N +X in1 1 -300 0 150 R 25 25 1 1 I +X out1 9 300 0 150 L 25 25 1 1 O +X in2 2 -300 0 150 R 25 25 2 1 I +X out2 10 300 0 150 L 25 25 2 1 O +X in3 3 -300 0 150 R 25 25 3 1 I +X out3 11 300 0 150 L 25 25 3 1 O +X in4 4 -300 0 150 R 25 25 4 1 I +X out4 12 300 0 150 L 25 25 4 1 O +X in5 5 -300 0 150 R 25 25 5 1 I +X out5 13 300 0 150 L 25 25 5 1 O +X in6 6 -300 0 150 R 25 25 6 1 I +X out6 14 300 0 150 L 25 25 6 1 O +X in7 7 -300 0 150 R 25 25 7 1 I +X out7 15 300 0 150 L 25 25 7 1 O +X in8 8 -300 0 150 R 25 25 8 1 I +X out8 16 300 0 150 L 25 25 8 1 O +ENDDRAW +ENDDEF +# +# DAC8 +# +DEF DAC8 U 0 10 Y Y 8 L N +F0 "U" -100 100 40 H V C CNN +F1 "DAC8" 0 0 40 H V C CNN +F2 "" 0 0 60 H I C CNN +F3 "" 0 0 60 H I C CNN +DRAW +S -150 50 150 -50 0 1 0 N +X in1 1 -300 0 150 R 25 25 1 1 I +X out1 9 300 0 150 L 25 25 1 1 O +X in2 2 -300 0 150 R 25 25 2 1 I +X out2 10 300 0 150 L 25 25 2 1 O +X in3 3 -300 0 150 R 25 25 3 1 I +X out3 11 300 0 150 L 25 25 3 1 O +X in4 4 -300 0 150 R 25 25 4 1 I +X out4 12 300 0 150 L 25 25 4 1 O +X in5 5 -300 0 150 R 25 25 5 1 I +X out5 13 300 0 150 L 25 25 5 1 O +X in6 6 -300 0 150 R 25 25 6 1 I +X out6 14 300 0 150 L 25 25 6 1 O +X in7 7 -300 0 150 R 25 25 7 1 I +X out7 15 300 0 150 L 25 25 7 1 O +X in8 8 -300 0 150 R 25 25 8 1 I +X out8 16 300 0 150 L 25 25 8 1 O +ENDDRAW +ENDDEF +# +# D_SRLatch +# +DEF D_SRLatch U 0 40 Y Y 1 F N +F0 "U" -200 250 60 H V C CNN +F1 "D_SRLatch" 0 100 60 H V C CNN +F2 "" 0 0 60 H I C CNN +F3 "" 0 0 60 H I C CNN +DRAW +S -300 200 300 -200 0 1 0 N +X S 1 -600 150 300 R 50 50 1 1 I +X R 2 -600 -150 300 R 50 50 1 1 I +X Enable 3 -600 0 300 R 50 50 1 1 I +X Set 4 150 -500 300 U 50 50 1 1 I +X Reset 5 -150 -500 300 U 50 50 1 1 I +X Q 6 600 150 300 L 50 50 1 1 O +X ~Q 7 600 -150 300 L 50 50 1 1 O I +ENDDRAW +ENDDEF +# +# GND-RESCUE-lm555n +# +DEF ~GND-RESCUE-lm555n #PWR 0 0 Y Y 1 F P +F0 "#PWR" 0 0 30 H I C CNN +F1 "GND-RESCUE-lm555n" 0 -70 30 H I C CNN +F2 "" 0 0 60 H I C CNN +F3 "" 0 0 60 H I C CNN +DRAW +P 4 0 1 0 -50 0 0 -50 50 0 -50 0 N +X GND 1 0 0 0 U 30 30 1 1 W N +ENDDRAW +ENDDEF +# +# LIMIT8 +# +DEF LIMIT8 U 0 40 Y Y 8 F N +F0 "U" 0 100 30 H V C CNN +F1 "LIMIT8" 0 0 30 H V C CNN +F2 "" 0 0 60 H I C CNN +F3 "" 0 0 60 H I C CNN +DRAW +S -150 50 150 -50 0 1 0 N +X in 1 -300 0 150 R 25 25 1 1 I +X out 9 300 0 150 L 25 25 1 1 O +X in 2 -300 0 150 R 25 25 2 1 I +X out 10 300 0 150 L 25 25 2 1 O +X in 3 -300 0 150 R 25 25 3 1 I +X out 11 300 0 150 L 25 25 3 1 O +X in 4 -300 0 150 R 25 25 4 1 I +X out 12 300 0 150 L 25 25 4 1 O +X in 5 -300 0 150 R 25 25 5 1 I +X out 13 300 0 150 L 25 25 5 1 O +X in 6 -300 0 150 R 25 25 6 1 I +X out 14 300 0 150 L 25 25 6 1 O +X in 7 -300 0 150 R 25 25 7 1 I +X out 15 300 0 150 L 25 25 7 1 O +X in 8 -300 0 150 R 25 25 8 1 I +X out 16 300 0 150 L 25 25 8 1 O +ENDDRAW +ENDDEF +# +# NPN +# +DEF NPN Q 0 0 Y Y 1 F N +F0 "Q" 0 -150 50 H V R CNN +F1 "NPN" 0 150 50 H V R CNN +F2 "" 0 0 60 H I C CNN +F3 "" 0 0 60 H I C CNN +DRAW +C 50 0 111 0 1 10 N +P 2 0 1 0 0 0 100 100 N +P 3 0 1 10 0 75 0 -75 0 -75 N +P 3 0 1 0 50 -50 0 0 0 0 N +P 3 0 1 0 90 -90 100 -100 100 -100 N +P 5 0 1 0 90 -90 70 -30 30 -70 90 -90 90 -90 F +X E 1 100 -200 100 U 40 40 1 1 P +X B 2 -200 0 200 R 40 40 1 1 I +X C 3 100 200 100 D 40 40 1 1 P +ENDDRAW +ENDDEF +# +# PORT +# +DEF PORT U 0 40 Y Y 8 F N +F0 "U" 0 -50 30 H V C CNN +F1 "PORT" 0 0 30 H V C CNN +F2 "" 0 0 60 H I C CNN +F3 "" 0 0 60 H I 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 +ENDDRAW +ENDDEF +# +# PWR_FLAG +# +DEF PWR_FLAG #FLG 0 0 N N 1 F P +F0 "#FLG" 0 95 50 H I C CNN +F1 "PWR_FLAG" 0 180 50 H V C CNN +F2 "" 0 0 50 H V C CNN +F3 "" 0 0 50 H V C CNN +DRAW +X pwr 1 0 0 0 U 20 20 0 0 w +P 6 0 1 0 0 0 0 50 -75 100 0 150 75 100 0 50 N +ENDDRAW +ENDDEF +# +# R-RESCUE-lm555n +# +DEF R-RESCUE-lm555n R 0 0 N Y 1 F N +F0 "R" 80 0 50 V V C CNN +F1 "R-RESCUE-lm555n" 0 0 50 V V C CNN +F2 "" 0 0 60 H I C CNN +F3 "" 0 0 60 H I C CNN +$FPLIST + R? + SM0603 + SM0805 + R?-* +$ENDFPLIST +DRAW +S -40 150 40 -150 0 1 12 N +X ~ 1 0 250 100 D 60 60 1 1 P +X ~ 2 0 -250 100 U 60 60 1 1 P +ENDDRAW +ENDDEF +# +# VCVS +# +DEF VCVS E 0 40 Y Y 1 F N +F0 "E" -200 100 50 H V C CNN +F1 "VCVS" -200 -50 50 H V C CNN +F2 "" 0 0 60 H I C CNN +F3 "" 0 0 60 H I C CNN +$FPLIST + 1_pin +$ENDFPLIST +DRAW +S -100 100 100 -100 0 1 0 N +X + 1 -300 50 200 R 35 35 1 1 P +X - 2 300 50 200 L 35 35 1 1 P +X +c 3 -50 -200 100 U 35 35 1 1 P +X -c 4 50 -200 100 U 35 35 1 1 P +ENDDRAW +ENDDEF +# +# d_inverter +# +DEF d_inverter U 0 40 Y Y 1 F N +F0 "U" -150 100 40 H V C CNN +F1 "d_inverter" 100 100 40 H V C CNN +F2 "" 0 0 60 H I C CNN +F3 "" 0 0 60 H I C CNN +DRAW +P 4 0 1 0 -100 -100 -100 100 100 0 -100 -100 N +X in 1 -250 0 150 R 25 25 1 1 I +X out 2 250 0 150 L 25 25 1 1 O I +ENDDRAW +ENDDEF +# +#End Library diff --git a/Examples/Dualtimer/lm555n-rescue.lib b/Examples/Dualtimer/lm555n-rescue.lib new file mode 100644 index 00000000..ab491bd5 --- /dev/null +++ b/Examples/Dualtimer/lm555n-rescue.lib @@ -0,0 +1,37 @@ +EESchema-LIBRARY Version 2.3 +#encoding utf-8 +# +# GND-RESCUE-lm555n +# +DEF ~GND-RESCUE-lm555n #PWR 0 0 Y Y 1 F P +F0 "#PWR" 0 0 30 H I C CNN +F1 "GND-RESCUE-lm555n" 0 -70 30 H I C CNN +F2 "" 0 0 60 H I C CNN +F3 "" 0 0 60 H I C CNN +DRAW +P 4 0 1 0 -50 0 0 -50 50 0 -50 0 N +X GND 1 0 0 0 U 30 30 1 1 W N +ENDDRAW +ENDDEF +# +# R-RESCUE-lm555n +# +DEF R-RESCUE-lm555n R 0 0 N Y 1 F N +F0 "R" 80 0 50 V V C CNN +F1 "R-RESCUE-lm555n" 0 0 50 V V C CNN +F2 "" 0 0 60 H I C CNN +F3 "" 0 0 60 H I C CNN +$FPLIST + R? + SM0603 + SM0805 + R?-* +$ENDFPLIST +DRAW +S -40 150 40 -150 0 1 12 N +X ~ 1 0 250 100 D 60 60 1 1 P +X ~ 2 0 -250 100 U 60 60 1 1 P +ENDDRAW +ENDDEF +# +#End Library diff --git a/Examples/Dualtimer/lm555n.cir b/Examples/Dualtimer/lm555n.cir new file mode 100644 index 00000000..4daa20f1 --- /dev/null +++ b/Examples/Dualtimer/lm555n.cir @@ -0,0 +1,27 @@ +* C:\esim\eSim\src\SubcircuitLibrary\lm555n\lm555n.cir + +* EESchema Netlist Version 1.1 (Spice format) creation date: 03/08/19 22:51: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: / +U5 Net-_U2-Pad11_ Net-_U5-Pad2_ D_INVERTER +U6 Net-_U2-Pad10_ Net-_U2-Pad9_ Net-_U2-Pad11_ Net-_U5-Pad2_ Net-_U5-Pad2_ Net-_U3-Pad1_ Net-_U3-Pad2_ D_SRLATCH +E2 Net-_E2-Pad1_ GND /c /d 10000 +U4 Net-_R6-Pad2_ Net-_R7-Pad2_ Net-_U2-Pad1_ Net-_U2-Pad2_ LIMIT8 +U3 Net-_U3-Pad1_ Net-_U3-Pad2_ Net-_U1-Pad3_ Net-_R8-Pad1_ DAC8 +U2 Net-_U2-Pad1_ Net-_U2-Pad2_ Net-_U1-Pad4_ Net-_U2-Pad9_ Net-_U2-Pad10_ Net-_U2-Pad11_ ADC8 +U1 Net-_Q1-Pad1_ /d Net-_U1-Pad3_ Net-_U1-Pad4_ /a /b Net-_Q1-Pad3_ Net-_R1-Pad1_ PORT +R8 Net-_R8-Pad1_ Net-_Q1-Pad2_ 1500 +Q1 Net-_Q1-Pad1_ Net-_Q1-Pad2_ Net-_Q1-Pad3_ QNOM +R7 Net-_E2-Pad1_ Net-_R7-Pad2_ 25 +R6 Net-_E1-Pad1_ Net-_R6-Pad2_ 25 +E1 Net-_E1-Pad1_ GND /b /a 10000 +R4 /b /a 2E6 +R5 /c /d 2E6 +R3 /c Net-_Q1-Pad1_ 5000 +R2 /a /c 5000 +R1 Net-_R1-Pad1_ /a 5000 + +.end diff --git a/Examples/Dualtimer/lm555n.cir.out b/Examples/Dualtimer/lm555n.cir.out new file mode 100644 index 00000000..f45920fd --- /dev/null +++ b/Examples/Dualtimer/lm555n.cir.out @@ -0,0 +1,35 @@ +* eeschema netlist version 1.1 (spice format) creation date: monday 17 december 2012 11:00:36 am ist + +* Inverter d_inverter +* SR Latch d_srlatch +e2 18 0 23 14 10000 +* Limiter limit8 +* Digital to Analog converter dac8 +* Analog to Digital converter adc8 +u1 22 14 7 6 15 16 3 13 port +r8 9 2 1500 +q1 3 2 22 qnom +r7 18 20 25 +r6 17 19 25 +e1 17 0 16 15 10000 +r4 16 15 2e6 +r5 23 14 2e6 +r3 23 22 5000 +r2 15 23 5000 +r1 13 15 5000 +a1 5 21 u5 +.model u5 d_inverter(rise_delay=1e-12 fall_delay=1e-12 input_load=1e-12) +a2 1 4 5 21 21 8 10 u6 +.model u6 d_srlatch(rise_delay=1e-12 fall_delay=1e-12 ic=0 ++sr_load=1e-12 enable_load=1e-12 set_load=1e-12 reset_load=1e-12 ++sr_delay=1e-12 enable_delay=1e-12 set_delay=1e-12 reset_delay=1e-12) +a3 19 11 u4 +a4 20 12 u4 +.model u4 limit(out_lower_limit=0.0 out_upper_limit=5.0 in_offset=0.0 gain=1.0) +a5 [8] [7] u3 +a6 [10] [9] u3 +.model u3 dac_bridge(out_low=0.2 out_high=5.0 out_undef=5.0 ) +a7 [11] [4] u2 +a8 [12] [1] u2 +a9 [6] [5] u2 +.model u2 adc_bridge(in_low=0.8 in_high=2.0 ) diff --git a/Examples/Dualtimer/lm555n.pro b/Examples/Dualtimer/lm555n.pro new file mode 100644 index 00000000..f1752416 --- /dev/null +++ b/Examples/Dualtimer/lm555n.pro @@ -0,0 +1,57 @@ +update=03/10/19 11:11:13 +last_client=eeschema +[eeschema] +version=1 +LibDir=../../../kicadSchematicLibrary +[eeschema/libraries] +LibName1=lm555n-rescue +LibName2=power +LibName3=device +LibName4=transistors +LibName5=conn +LibName6=linear +LibName7=regul +LibName8=74xx +LibName9=cmos4000 +LibName10=adc-dac +LibName11=memory +LibName12=xilinx +LibName13=special +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=valves +LibName32=analogSpice +LibName33=analogXSpice +LibName34=converterSpice +LibName35=digitalSpice +LibName36=linearSpice +LibName37=measurementSpice +LibName38=portSpice +LibName39=sourcesSpice +LibName40=digitalXSpice +LibName41=eSim_User +LibName42=eSim_Subckt +LibName43=eSim_Sources +LibName44=eSim_PSpice +LibName45=eSim_Power +LibName46=eSim_Plot +LibName47=eSim_Miscellaneous +LibName48=eSim_Hybrid +LibName49=eSim_Digital +LibName50=eSim_Devices +LibName51=eSim_Analog diff --git a/Examples/Dualtimer/lm555n.sch b/Examples/Dualtimer/lm555n.sch new file mode 100644 index 00000000..947245d3 --- /dev/null +++ b/Examples/Dualtimer/lm555n.sch @@ -0,0 +1,486 @@ +EESchema Schematic File Version 2 +LIBS:lm555n-rescue +LIBS:power +LIBS:device +LIBS:transistors +LIBS:conn +LIBS:linear +LIBS:regul +LIBS:74xx +LIBS:cmos4000 +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:valves +LIBS:lm555n-cache +EELAYER 25 0 +EELAYER END +$Descr A4 11693 8268 +encoding utf-8 +Sheet 1 1 +Title "" +Date "17 dec 2012" +Rev "" +Comp "" +Comment1 "" +Comment2 "" +Comment3 "" +Comment4 "" +$EndDescr +$Comp +L d_inverter U5 +U 1 1 50CEA9C5 +P 6700 4050 +F 0 "U5" H 6550 4150 40 0000 C CNN +F 1 "D_INVERTER" H 6800 4150 40 0000 C CNN +F 2 "" H 6700 4050 60 0001 C CNN +F 3 "" H 6700 4050 60 0001 C CNN + 1 6700 4050 + 1 0 0 -1 +$EndComp +$Comp +L D_SRLatch U6 +U 1 1 50CEA9AE +P 7100 3400 +F 0 "U6" H 6900 3650 60 0000 C CNN +F 1 "D_SRLATCH" H 7100 3500 60 0000 C CNN +F 2 "" H 7100 3400 60 0001 C CNN +F 3 "" H 7100 3400 60 0001 C CNN + 1 7100 3400 + 1 0 0 -1 +$EndComp +Text Notes 5750 3050 0 60 ~ 0 +IC 555 +Wire Wire Line + 4700 3000 4900 3000 +Wire Wire Line + 4700 4750 4700 4650 +Connection ~ 4400 3550 +Connection ~ 4400 4900 +Wire Wire Line + 4300 4900 7700 4900 +Wire Wire Line + 4400 4200 4400 4100 +Wire Wire Line + 7700 4900 7700 4800 +Wire Wire Line + 7700 3250 7850 3250 +Wire Wire Line + 7400 4600 7100 4600 +Wire Wire Line + 7100 4600 7100 4250 +Wire Wire Line + 7700 3650 7700 3550 +Wire Wire Line + 6350 4050 6450 4050 +Wire Wire Line + 6950 3900 6950 4000 +Wire Wire Line + 7150 4000 7150 4050 +Wire Wire Line + 7150 4050 6950 4050 +Wire Wire Line + 6500 3550 6200 3550 +Wire Wire Line + 6350 3250 6500 3250 +Wire Wire Line + 5400 3250 5100 3250 +Wire Wire Line + 5100 3250 5100 3750 +Wire Wire Line + 5550 4500 5550 4350 +Wire Wire Line + 5700 3550 5800 3550 +Wire Wire Line + 5900 3250 6000 3250 +Wire Wire Line + 6000 3850 6350 3850 +Wire Wire Line + 5800 4150 6200 4150 +Wire Wire Line + 5200 3550 5200 3700 +Wire Wire Line + 5200 3700 5550 3700 +Wire Wire Line + 5550 3700 5550 3750 +Connection ~ 5550 4450 +Wire Wire Line + 5750 4400 5750 4450 +Wire Wire Line + 5100 4350 5100 4450 +Wire Wire Line + 5100 4450 5750 4450 +Wire Wire Line + 6500 3400 6450 3400 +Wire Wire Line + 6450 3400 6450 4050 +Wire Wire Line + 6950 4000 7250 4000 +Wire Wire Line + 7250 4000 7250 3900 +Connection ~ 7150 4000 +Wire Wire Line + 7600 4250 7700 4250 +Wire Wire Line + 7700 4400 7700 4350 +Wire Wire Line + 7700 4350 7800 4350 +Wire Wire Line + 7850 3850 7900 3850 +Wire Wire Line + 4400 4900 4400 4700 +Wire Wire Line + 4400 3600 4400 3500 +Wire Wire Line + 4300 3000 4400 3000 +Wire Wire Line + 4400 4150 4700 4150 +Connection ~ 4400 4150 +Wire Wire Line + 4300 3550 4700 3550 +Wire Wire Line + 4700 3550 4700 3500 +Wire Wire Line + 6350 4750 6350 4650 +Text Label 4850 4100 0 60 ~ 0 +d +$Comp +L VCVS E2 +U 1 1 50AA12FF +P 5050 4050 +F 0 "E2" H 4850 4150 50 0000 C CNN +F 1 "10000" H 4850 4000 50 0000 C CNN +F 2 "" H 5050 4050 60 0001 C CNN +F 3 "" H 5050 4050 60 0001 C CNN + 1 5050 4050 + 0 1 1 0 +$EndComp +$Comp +L LIMIT8 U4 +U 2 1 50B4E21B +P 6000 3550 +F 0 "U4" H 6000 3650 30 0000 C CNN +F 1 "LIMIT8" H 6000 3550 30 0000 C CNN +F 2 "" H 6000 3550 60 0001 C CNN +F 3 "" H 6000 3550 60 0001 C CNN + 2 6000 3550 + 0 1 1 0 +$EndComp +$Comp +L LIMIT8 U4 +U 1 1 50B4E215 +P 5800 3850 +F 0 "U4" H 5800 3950 30 0000 C CNN +F 1 "LIMIT8" H 5800 3850 30 0000 C CNN +F 2 "" H 5800 3850 60 0001 C CNN +F 3 "" H 5800 3850 60 0001 C CNN + 1 5800 3850 + 0 1 1 0 +$EndComp +$Comp +L DAC8 U3 +U 2 1 50AAFCE7 +P 7700 3950 +F 0 "U3" H 7600 4050 40 0000 C CNN +F 1 "DAC8" H 7700 3950 40 0000 C CNN +F 2 "" H 7700 3950 60 0001 C CNN +F 3 "" H 7700 3950 60 0001 C CNN + 2 7700 3950 + 0 1 1 0 +$EndComp +$Comp +L DAC8 U3 +U 1 1 50AAFC9A +P 7850 3550 +F 0 "U3" H 7750 3650 40 0000 C CNN +F 1 "DAC8" H 7850 3550 40 0000 C CNN +F 2 "" H 7850 3550 60 0001 C CNN +F 3 "" H 7850 3550 60 0001 C CNN + 1 7850 3550 + 0 1 1 0 +$EndComp +$Comp +L ADC8 U2 +U 3 1 50AAFB76 +P 6350 4350 +F 0 "U2" H 6250 4450 40 0000 C CNN +F 1 "ADC8" H 6350 4350 40 0000 C CNN +F 2 "" H 6350 4350 60 0001 C CNN +F 3 "" H 6350 4350 60 0001 C CNN + 3 6350 4350 + 0 -1 -1 0 +$EndComp +$Comp +L ADC8 U2 +U 2 1 50AAFB64 +P 6350 3550 +F 0 "U2" H 6250 3650 40 0000 C CNN +F 1 "ADC8" H 6350 3550 40 0000 C CNN +F 2 "" H 6350 3550 60 0001 C CNN +F 3 "" H 6350 3550 60 0001 C CNN + 2 6350 3550 + 0 -1 -1 0 +$EndComp +$Comp +L ADC8 U2 +U 1 1 50AAFB55 +P 6200 3850 +F 0 "U2" H 6100 3950 40 0000 C CNN +F 1 "ADC8" H 6200 3850 40 0000 C CNN +F 2 "" H 6200 3850 60 0001 C CNN +F 3 "" H 6200 3850 60 0001 C CNN + 1 6200 3850 + 0 -1 -1 0 +$EndComp +$Comp +L PWR_FLAG #FLG01 +U 1 1 50AA39A3 +P 5750 4400 +F 0 "#FLG01" H 5750 4670 30 0001 C CNN +F 1 "PWR_FLAG" H 5750 4630 30 0000 C CNN +F 2 "" H 5750 4400 60 0001 C CNN +F 3 "" H 5750 4400 60 0001 C CNN + 1 5750 4400 + 1 0 0 -1 +$EndComp +$Comp +L PORT U1 +U 5 1 50AA2210 +P 4050 3550 +F 0 "U1" H 4050 3500 30 0000 C CNN +F 1 "PORT" H 4050 3550 30 0000 C CNN +F 2 "" H 4050 3550 60 0001 C CNN +F 3 "" H 4050 3550 60 0001 C CNN + 5 4050 3550 + 1 0 0 -1 +$EndComp +$Comp +L PORT U1 +U 1 1 50AA21C7 +P 4050 4900 +F 0 "U1" H 4050 4850 30 0000 C CNN +F 1 "PORT" H 4050 4900 30 0000 C CNN +F 2 "" H 4050 4900 60 0001 C CNN +F 3 "" H 4050 4900 60 0001 C CNN + 1 4050 4900 + 1 0 0 -1 +$EndComp +$Comp +L PORT U1 +U 2 1 50AA21BC +P 4700 5000 +F 0 "U1" H 4700 4950 30 0000 C CNN +F 1 "PORT" H 4700 5000 30 0000 C CNN +F 2 "" H 4700 5000 60 0001 C CNN +F 3 "" H 4700 5000 60 0001 C CNN + 2 4700 5000 + 0 -1 -1 0 +$EndComp +$Comp +L PORT U1 +U 4 1 50AA21A9 +P 6350 5000 +F 0 "U1" H 6350 4950 30 0000 C CNN +F 1 "PORT" H 6350 5000 30 0000 C CNN +F 2 "" H 6350 5000 60 0001 C CNN +F 3 "" H 6350 5000 60 0001 C CNN + 4 6350 5000 + 0 -1 -1 0 +$EndComp +$Comp +L PORT U1 +U 7 1 50AA21A0 +P 8050 4350 +F 0 "U1" H 8050 4300 30 0000 C CNN +F 1 "PORT" H 8050 4350 30 0000 C CNN +F 2 "" H 8050 4350 60 0001 C CNN +F 3 "" H 8050 4350 60 0001 C CNN + 7 8050 4350 + -1 0 0 1 +$EndComp +$Comp +L PORT U1 +U 3 1 50AA2181 +P 8150 3850 +F 0 "U1" H 8150 3800 30 0000 C CNN +F 1 "PORT" H 8150 3850 30 0000 C CNN +F 2 "" H 8150 3850 60 0001 C CNN +F 3 "" H 8150 3850 60 0001 C CNN + 3 8150 3850 + -1 0 0 1 +$EndComp +$Comp +L PORT U1 +U 6 1 50AA2171 +P 5150 3000 +F 0 "U1" H 5150 2950 30 0000 C CNN +F 1 "PORT" H 5150 3000 30 0000 C CNN +F 2 "" H 5150 3000 60 0001 C CNN +F 3 "" H 5150 3000 60 0001 C CNN + 6 5150 3000 + -1 0 0 1 +$EndComp +$Comp +L PORT U1 +U 8 1 50AA2162 +P 4050 3000 +F 0 "U1" H 4050 2950 30 0000 C CNN +F 1 "PORT" H 4050 3000 30 0000 C CNN +F 2 "" H 4050 3000 60 0001 C CNN +F 3 "" H 4050 3000 60 0001 C CNN + 8 4050 3000 + 1 0 0 -1 +$EndComp +$Comp +L R-RESCUE-lm555n R8 +U 1 1 50AA20DA +P 7350 4250 +F 0 "R8" V 7430 4250 50 0000 C CNN +F 1 "1500" V 7350 4250 50 0000 C CNN +F 2 "" H 7350 4250 60 0001 C CNN +F 3 "" H 7350 4250 60 0001 C CNN + 1 7350 4250 + 0 1 1 0 +$EndComp +$Comp +L NPN Q1 +U 1 1 50AA2050 +P 7600 4600 +F 0 "Q1" H 7600 4450 50 0000 R CNN +F 1 "QNOM" H 7600 4750 50 0000 R CNN +F 2 "" H 7600 4600 60 0001 C CNN +F 3 "" H 7600 4600 60 0001 C CNN + 1 7600 4600 + 1 0 0 -1 +$EndComp +$Comp +L GND-RESCUE-lm555n #PWR02 +U 1 1 50AA140C +P 5550 4500 +F 0 "#PWR02" H 5550 4500 30 0001 C CNN +F 1 "GND" H 5550 4430 30 0001 C CNN +F 2 "" H 5550 4500 60 0001 C CNN +F 3 "" H 5550 4500 60 0001 C CNN + 1 5550 4500 + 1 0 0 -1 +$EndComp +Text Label 4850 4000 0 60 ~ 0 +c +Text Label 4700 4650 0 60 ~ 0 +d +Text Label 4700 4150 0 60 ~ 0 +c +$Comp +L R-RESCUE-lm555n R7 +U 1 1 50AA12F7 +P 5650 3250 +F 0 "R7" V 5730 3250 50 0000 C CNN +F 1 "25" V 5650 3250 50 0000 C CNN +F 2 "" H 5650 3250 60 0001 C CNN +F 3 "" H 5650 3250 60 0001 C CNN + 1 5650 3250 + 0 -1 -1 0 +$EndComp +$Comp +L R-RESCUE-lm555n R6 +U 1 1 50AA12B0 +P 5450 3550 +F 0 "R6" V 5530 3550 50 0000 C CNN +F 1 "25" V 5450 3550 50 0000 C CNN +F 2 "" H 5450 3550 60 0001 C CNN +F 3 "" H 5450 3550 60 0001 C CNN + 1 5450 3550 + 0 -1 -1 0 +$EndComp +Text Label 5300 4000 0 60 ~ 0 +b +Text Label 5300 4100 0 60 ~ 0 +a +Text Label 4700 3000 0 60 ~ 0 +b +Text Label 4700 3500 0 60 ~ 0 +a +$Comp +L VCVS E1 +U 1 1 50AA11B6 +P 5500 4050 +F 0 "E1" H 5300 4150 50 0000 C CNN +F 1 "10000" H 5300 4000 50 0000 C CNN +F 2 "" H 5500 4050 60 0001 C CNN +F 3 "" H 5500 4050 60 0001 C CNN + 1 5500 4050 + 0 1 1 0 +$EndComp +$Comp +L R-RESCUE-lm555n R4 +U 1 1 50A9E00B +P 4700 3250 +F 0 "R4" V 4780 3250 50 0000 C CNN +F 1 "2E6" V 4700 3250 50 0000 C CNN +F 2 "" H 4700 3250 60 0001 C CNN +F 3 "" H 4700 3250 60 0001 C CNN + 1 4700 3250 + 1 0 0 -1 +$EndComp +$Comp +L R-RESCUE-lm555n R5 +U 1 1 50A9E001 +P 4700 4400 +F 0 "R5" V 4780 4400 50 0000 C CNN +F 1 "2E6" V 4700 4400 50 0000 C CNN +F 2 "" H 4700 4400 60 0001 C CNN +F 3 "" H 4700 4400 60 0001 C CNN + 1 4700 4400 + 1 0 0 -1 +$EndComp +$Comp +L R-RESCUE-lm555n R3 +U 1 1 50A9DF09 +P 4400 4450 +F 0 "R3" V 4480 4450 50 0000 C CNN +F 1 "5000" V 4400 4450 50 0000 C CNN +F 2 "" H 4400 4450 60 0001 C CNN +F 3 "" H 4400 4450 60 0001 C CNN + 1 4400 4450 + 1 0 0 -1 +$EndComp +$Comp +L R-RESCUE-lm555n R2 +U 1 1 50A9DF03 +P 4400 3850 +F 0 "R2" V 4480 3850 50 0000 C CNN +F 1 "5000" V 4400 3850 50 0000 C CNN +F 2 "" H 4400 3850 60 0001 C CNN +F 3 "" H 4400 3850 60 0001 C CNN + 1 4400 3850 + 1 0 0 -1 +$EndComp +$Comp +L R-RESCUE-lm555n R1 +U 1 1 50A9DEFE +P 4400 3250 +F 0 "R1" V 4480 3250 50 0000 C CNN +F 1 "5000" V 4400 3250 50 0000 C CNN +F 2 "" H 4400 3250 60 0001 C CNN +F 3 "" H 4400 3250 60 0001 C CNN + 1 4400 3250 + 1 0 0 -1 +$EndComp +$EndSCHEMATC diff --git a/Examples/Dualtimer/lm555n.sub b/Examples/Dualtimer/lm555n.sub new file mode 100644 index 00000000..beeefc43 --- /dev/null +++ b/Examples/Dualtimer/lm555n.sub @@ -0,0 +1,37 @@ +* Subcircuit lm555n +.subckt lm555n 22 14 7 6 15 16 3 13 +* eeschema netlist version 1.1 (spice format) creation date: monday 17 december 2012 11:00:36 am ist +* Inverter d_inverter +* SR Latch d_srlatch +e2 18 0 23 14 10000 +* Limiter limit8 +* Digital to Analog converter dac8 +* Analog to Digital converter adc8 +r8 9 2 1500 +q1 3 2 22 qnom +r7 18 20 25 +r6 17 19 25 +e1 17 0 16 15 10000 +r4 16 15 2e6 +r5 23 14 2e6 +r3 23 22 5000 +r2 15 23 5000 +r1 13 15 5000 +a1 5 21 u5 +.model u5 d_inverter(rise_delay=1e-12 fall_delay=1e-12 input_load=1e-12) +a2 1 4 5 21 21 8 10 u6 +.model u6 d_srlatch(rise_delay=1e-12 fall_delay=1e-12 ic=0 ++sr_load=1e-12 enable_load=1e-12 set_load=1e-12 reset_load=1e-12 ++sr_delay=1e-12 enable_delay=1e-12 set_delay=1e-12 reset_delay=1e-12) +a3 19 11 u4 +a4 20 12 u4 +.model u4 limit(out_lower_limit=0.0 out_upper_limit=5.0 in_offset=0.0 gain=1.0) +a5 [8] [7] u3 +a6 [10] [9] u3 +.model u3 dac_bridge(out_low=0.2 out_high=5.0 out_undef=5.0 ) +a7 [11] [4] u2 +a8 [12] [1] u2 +a9 [6] [5] u2 +.model u2 adc_bridge(in_low=0.8 in_high=2.0 ) + +.ends lm555n \ No newline at end of file diff --git a/Examples/Dualtimer/lm555n_Previous_Values.xml b/Examples/Dualtimer/lm555n_Previous_Values.xml new file mode 100644 index 00000000..58d33ec5 --- /dev/null +++ b/Examples/Dualtimer/lm555n_Previous_Values.xml @@ -0,0 +1 @@ +d_inverterd_srlatchfalsefalsetruekjadsfhjhdsakj897897HzHzFalseVolts or AmperesVolts or AmperesVolts or AmperesSecSecSec \ No newline at end of file -- cgit