Si7li/ltspice-spice-circuits huggingface dataset:
* Z:\home\khalils\Downloads\files\data\raw_asc\LTC3530.asc
* Generated by LTspice 26.0.1 for Windows.
* Library below included based on ModelFile attribute of instance XU1 (C:\users\khalils\AppData\Local\LTspice\lib\sym\PowerProducts\LTC3530.asy)
R6 OUT N004 4.75k
XU1 N007 N005 N001 N002 0 OUT IN N003 N006 N008 LTC3530 ;pnba Rt)Burst)SW1)SW2)GND)Vout)Vin)_SHDN/SS)FB)Vc
V1 IN 0 2.8
C5 N004 N006 100p
Rload OUT 0 6.6
R4 N007 0 33.2k
C3 OUT 0 22
R7 N009 N008 15k
R5 N005 0 100k
R2 OUT N006 340k
C1 N003 0 2n
R3 N006 0 200k
C4 N005 0 10n
R1 IN N003 1Meg
C2 N006 N009 470p
L1 N001 N002 4.7 Rser=26m
.tran 2m startup
.lib LTC3530.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4.1
SHEET 1 880 836
WIRE 144 32 80 32
WIRE 272 32 224 32
WIRE 80 80 80 32
WIRE 272 80 272 32
WIRE -96 144 -288 144
WIRE 0 144 -96 144
WIRE 384 144 352 144
WIRE 496 144 384 144
WIRE 592 144 496 144
WIRE 688 144 592 144
WIRE -288 160 -288 144
WIRE 384 160 384 144
WIRE 592 160 592 144
WIRE 688 160 688 144
WIRE 496 192 496 144
WIRE -96 240 -96 224
WIRE -96 240 -112 240
WIRE 0 240 -96 240
WIRE -288 256 -288 240
WIRE 384 256 384 240
WIRE 592 256 592 224
WIRE 688 256 688 240
WIRE -128 336 -224 336
WIRE 0 336 -128 336
WIRE 384 336 384 320
WIRE 384 336 352 336
WIRE 496 336 496 272
WIRE 496 336 384 336
WIRE 608 336 496 336
WIRE -224 352 -224 336
WIRE -128 352 -128 336
WIRE 496 352 496 336
WIRE 608 352 608 336
WIRE 0 432 -64 432
WIRE 384 432 352 432
WIRE 496 432 496 416
WIRE 496 432 464 432
WIRE -224 448 -224 432
WIRE -128 448 -128 416
WIRE 608 448 608 432
WIRE -64 464 -64 432
WIRE 176 512 176 496
WIRE -64 560 -64 544
SYMBOL cap -144 352 R0
SYMATTR InstName C4
SYMATTR Value 10n
SYMBOL res 480 176 R0
WINDOW 3 27 97 Left 2
SYMATTR Value 340k
SYMATTR InstName R2
SYMBOL res 368 144 R0
SYMATTR InstName R6
SYMATTR Value 4.75k
SYMBOL cap 576 160 R0
SYMATTR InstName C3
SYMATTR Value 22
SYMBOL res 672 144 R0
SYMATTR InstName Rload
SYMATTR Value 6.6
SYMBOL res -80 448 R0
SYMATTR InstName R4
SYMATTR Value 33.2k
SYMBOL res -240 336 R0
SYMATTR InstName R5
SYMATTR Value 100k
SYMBOL cap 480 352 R0
WINDOW 3 40 38 Left 2
WINDOW 39 85 54 Top 2
SYMATTR Value 470p
SYMATTR InstName C2
SYMBOL res -112 128 R0
SYMATTR InstName R1
SYMATTR Value 1Meg
SYMBOL ind 128 48 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 5 56 VBottom 2
SYMATTR InstName L1
SYMATTR Value 4.7
SYMATTR SpiceLine Rser=26m
SYMBOL res 480 416 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R7
SYMATTR Value 15k
SYMBOL res 592 336 R0
WINDOW 3 30 87 Left 2
SYMATTR Value 200k
SYMATTR InstName R3
SYMBOL voltage -288 144 R0
SYMATTR InstName V1
SYMATTR Value 2.8
SYMBOL LTC3530 176 288 R0
SYMATTR InstName U1
SYMBOL cap 368 256 R0
WINDOW 3 39 37 Left 2
WINDOW 39 22 66 Left 2
SYMATTR Value 100p
SYMATTR InstName C5
SYMBOL cap -112 224 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C1
SYMATTR Value 2n
FLAG -288 256 0
FLAG -176 240 0
FLAG 608 448 0
FLAG 592 256 0
FLAG 688 256 0
FLAG 688 144 OUT
FLAG -288 144 IN
FLAG -64 560 0
FLAG 176 512 0
FLAG -224 448 0
FLAG -128 448 0
TEXT 360 520 Left 2 !.tran 2m startup
* Z:\home\khalils\Downloads\files\data\raw_asc\67df037c10a7_cc_led_driver_bipolar.asc
* Generated by LTspice 26.0.1 for Windows.
Q1 N003 N005 0 0 2N2222
V1 N001 0 SINE(18 6 10 0 0 0 2)
R2 N001 N003 2k2
R3 N004 PWM 10k
Q2 N002 N003 N005 0 2N2222
Q3 N003 N004 0 0 2N2222
B1 PWM 0 V=if(((Time-floor(Time*f)/f)*Range*f)<v(input),Vhigh,Vlow)
V2 input 0 PWL(0 0 1 5)
R1 N005 0 35 pwr=1
D1 N001 N002 NSCW100
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.model NPN NPN
.model PNP PNP
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.bjt
.param Range=5V
.param f=50Hz
.param Vhigh=5V
.param Vlow=0V
.tran 0 1 0 .2m
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 880 680
WIRE 528 0 352 0
WIRE 656 0 528 0
WIRE 352 48 352 0
WIRE 528 48 528 0
WIRE 656 48 656 0
WIRE 656 160 656 112
WIRE 352 176 352 128
WIRE 528 208 528 128
WIRE 528 208 416 208
WIRE 592 208 528 208
WIRE 416 288 416 208
WIRE 528 288 528 208
WIRE 64 336 0 336
WIRE 192 336 144 336
WIRE 352 336 192 336
WIRE 656 336 656 256
WIRE 656 336 592 336
WIRE 656 368 656 336
WIRE -752 416 -752 320
WIRE -1072 432 -1072 352
WIRE 416 480 416 384
WIRE 528 480 528 384
WIRE 656 480 656 448
WIRE -752 544 -752 496
WIRE -1072 560 -1072 512
IOPIN 0 336 In
DATAFLAG 192 336 ""
SYMBOL voltage 352 32 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V1
SYMATTR Value SINE(18 6 10 0 0 0 2)
SYMBOL res 640 352 R0
SYMATTR InstName R1
SYMATTR Value 35
SYMATTR SpiceLine pwr=1
SYMBOL LED 640 48 R0
SYMATTR InstName D1
SYMATTR Value NSCW100
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL npn 592 288 M0
WINDOW 3 32 79 Left 2
SYMATTR Value 2N2222
SYMATTR InstName Q1
SYMBOL npn 592 160 R0
WINDOW 3 32 79 Left 2
SYMATTR Value 2N2222
SYMATTR InstName Q2
SYMBOL bv -752 400 R0
SYMATTR InstName B1
SYMATTR Value V=if(((Time-floor(Time*f)/f)*Range*f)<v(input),Vhigh,Vlow)
SYMBOL voltage -1072 416 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V2
SYMATTR Value PWL(0 0 1 5)
SYMBOL res 160 320 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R3
SYMATTR Value 10k
SYMBOL npn 352 288 R0
WINDOW 3 32 79 Left 2
SYMATTR Value 2N2222
SYMATTR InstName Q3
SYMBOL res 512 32 R0
SYMATTR InstName R2
SYMATTR Value 2k2
FLAG 656 480 0
FLAG 528 480 0
FLAG 352 176 0
FLAG 0 336 PWM
FLAG -1072 560 0
FLAG -1072 352 input
FLAG -752 544 0
FLAG -752 320 PWM
FLAG 416 480 0
TEXT -1256 -128 Left 2 !.param Range=5V
TEXT -1256 -64 Left 2 !.param  f=50Hz
TEXT -1256 0 Left 2 !.param  Vhigh=5V
TEXT -1256 64 Left 2 !.param Vlow=0V
TEXT -1264 120 Left 2 !.tran 0 1 0 .2m
* Z:\home\khalils\Downloads\files\data\raw_asc\1da600ac444e_6432106821-PB4.asc
* Generated by LTspice 26.0.1 for Windows.
* Library below included based on ModelFile attribute of instance XU1 (C:\users\khalils\AppData\Local\LTspice\lib\sym\OpAmps\OP727.asy)
R1 N006 N002 1k
V3 0 VSS 20
V1 N005 0 PULSE(0.01 0.3 0 0 0 0.05ms 0.1ms)
V4 Vsupply 0 12
R3 Vsupply N001 10
XU1 N005 N002 VCC VSS N003 OP727 ;pnba In+)In-)V+)V-)OUT
R2 N006 0 1
V2 VCC 0 20
Q1 N001 N004 N006 0 BC817-40T116
R4 N004 N003 10k
.model NPN NPN
.model PNP PNP
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.bjt
.tran 1ms
.lib ADI.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 880 680
WIRE 400 -160 400 -240
WIRE 400 80 400 -80
WIRE 48 96 48 -16
WIRE 16 112 -64 112
WIRE 176 128 80 128
WIRE 336 128 256 128
WIRE 16 144 -192 144
WIRE 400 192 400 176
WIRE 400 192 384 192
WIRE -64 208 -64 112
WIRE 192 208 -64 208
WIRE 384 208 384 192
WIRE 384 208 272 208
WIRE -192 240 -192 144
WIRE 48 240 48 160
WIRE 384 320 384 208
WIRE -192 384 -192 320
WIRE 384 544 384 400
SYMBOL res 384 -176 R0
SYMATTR InstName R3
SYMATTR Value 10
SYMBOL res 288 192 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 1k
SYMBOL res 368 304 R0
SYMATTR InstName R2
SYMATTR Value 1
SYMBOL res 272 112 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R4
SYMATTR Value 10k
SYMBOL voltage -192 224 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
WINDOW 0 44 0 Left 2
WINDOW 3 -232 109 Left 2
SYMATTR InstName V1
SYMATTR Value PULSE(0.01 0.3 0 0 0 0.05ms 0.1ms)
SYMBOL voltage -432 -64 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V3
SYMATTR Value 20
SYMBOL Opamps\\OP727 48 64 R0
SYMATTR InstName U1
SYMBOL voltage -176 -176 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V4
SYMATTR Value 12
SYMBOL voltage -304 -64 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value 20
SYMBOL npn 336 80 R0
SYMATTR InstName Q1
SYMATTR Value BC817-40T116
FLAG -192 384 0
FLAG 48 -16 VCC
FLAG -304 -48 VCC
FLAG -304 32 0
FLAG 48 240 VSS
FLAG -432 -48 0
FLAG -432 32 VSS
FLAG -176 -160 Vsupply
FLAG -176 -80 0
FLAG 400 -240 Vsupply
FLAG 384 544 0
TEXT -224 408 Left 2 !.tran 1ms
* Z:\home\khalils\Downloads\files\data\raw_asc\0910a6a4f16b_Draft3.asc
* Generated by LTspice 26.0.1 for Windows.
V1 Vcc 0 12
R1 0 N001 2.2k
XU1 N002 N001 Vcc -Vcc Vout LM741/NS ;pnba In+)In-)V+)V-)OUT
V3 N002 0 SINE(0 1 1k)
V2 0 -Vcc 12
R2 Vout N001 100k
.include C:\Users\domin\OneDrive - VietNam National University - HCM INTERNATIONAL UNIVERSITY\Documents\LM741.MOD
.tran 5m
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 988 680
WIRE -112 -128 -192 -128
WIRE -192 -64 -192 -128
WIRE -112 16 -112 -128
WIRE 208 16 64 16
WIRE -272 128 -272 112
WIRE -112 128 -112 96
WIRE -16 128 -16 16
WIRE -16 128 -112 128
WIRE 0 128 -16 128
WIRE 208 144 208 16
WIRE 208 144 64 144
WIRE 0 160 -112 160
WIRE -272 192 -272 128
WIRE -272 304 -272 272
WIRE -112 336 -112 160
WIRE -272 352 -272 304
WIRE -112 464 -112 416
WIRE -272 528 -272 432
SYMBOL res -128 0 R0
SYMATTR InstName R1
SYMATTR Value 2.2k
SYMBOL OpAmps\\opamp2 32 80 R0
SYMATTR InstName U1
SYMATTR Value LM741/NS
SYMBOL voltage -272 176 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value 12
SYMBOL res 80 0 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 100k
SYMBOL voltage -272 336 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value 12
SYMBOL voltage -112 320 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V3
SYMATTR Value SINE(0 1 1k)
FLAG -272 304 0
FLAG -272 128 Vcc
FLAG -272 528 -Vcc
FLAG 32 112 Vcc
FLAG 32 176 -Vcc
FLAG -112 464 0
FLAG -192 -64 0
FLAG 208 144 Vout
TEXT -504 608 Left 2 !.include C:\\Users\\domin\\OneDrive - VietNam National University - HCM INTERNATIONAL UNIVERSITY\\Documents\\LM741.MOD
TEXT -504 632 Left 2 !.tran 5m
* Z:\home\khalils\Downloads\files\data\raw_asc\ADA4841.asc
* Generated by LTspice 26.0.1 for Windows.
* Library below included based on ModelFile attribute of instance XU1 (C:\users\khalils\AppData\Local\LTspice\lib\sym\OpAmps\ADA4841.asy)
XU1 IN OUT +V 0 OUT NC_01 ADA4841 ;pnba NI)IN)+V)-V)OUT)_D
V4 IN 0 SINE(2.5 1 250K)
V2 +V 0 5
.tran 500u
.lib ADI.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1244 700
WIRE 640 -1200 528 -1200
WIRE 560 -1136 560 -1152
WIRE 240 -1120 240 -1136
WIRE 528 -1120 528 -1200
WIRE 544 -1120 528 -1120
WIRE 640 -1104 640 -1200
WIRE 640 -1104 608 -1104
WIRE 736 -1104 640 -1104
WIRE 544 -1088 432 -1088
WIRE 432 -1072 432 -1088
WIRE 560 -1056 560 -1072
WIRE 240 -1024 240 -1040
WIRE 432 -976 432 -992
SYMBOL voltage 240 -1136 R0
SYMATTR InstName V2
SYMATTR Value 5
SYMBOL Opamps\\ADA4841 576 -1104 R0
SYMATTR InstName U1
SYMBOL voltage 432 -1088 R0
WINDOW 123 24 146 Left 2
WINDOW 39 24 125 Left 2
SYMATTR InstName V4
SYMATTR Value SINE(2.5 1 250K)
FLAG 240 -1136 +V
FLAG 240 -1024 0
FLAG 432 -976 0
FLAG 736 -1104 OUT
FLAG 560 -1056 0
FLAG 432 -1088 IN
FLAG 560 -1152 +V
TEXT 720 -992 Left 2 !.tran 500u
* Z:\home\khalils\Downloads\files\data\raw_asc\3932e790d961_D-VA-F2.asc
* Generated by LTspice 26.0.1 for Windows.
I1 0 A 0
D1 A 0 1N4148
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.dc I1 0 1A
.step temp list 25 175
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 880 680
WIRE 160 160 -64 160
WIRE -64 224 -64 160
WIRE 160 224 160 160
WIRE -64 352 -64 304
WIRE 48 352 -64 352
WIRE 160 352 160 288
WIRE 160 352 48 352
WIRE 48 368 48 352
SYMBOL current -64 304 R180
WINDOW 0 24 80 Left 2
WINDOW 3 24 0 Invisible 2
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName I1
SYMATTR Value 0
SYMBOL diode 144 224 R0
SYMATTR InstName D1
SYMATTR Value 1N4148
FLAG 48 368 0
FLAG 160 160 A
TEXT -96 400 Left 2 !.dc I1 0 1A
TEXT -96 424 Left 2 !.step temp list 25 175
* Z:\home\khalils\Downloads\files\data\raw_asc\LT8640.asc
* Generated by LTspice 26.0.1 for Windows.
* Library below included based on ModelFile attribute of instance XU1 (C:\users\khalils\AppData\Local\LTspice\lib\sym\PowerProducts\LT8640.asy)
C3 N002 N003 .1
R2 OUT N005 1Meg
R3 N005 0 243K
C7 IN 0 1
C6 IN 0 1
C1 N004 0 1n
C2 N001 0 1
L1 N003 OUT 3.3 Rser=10m
C5 OUT N005 4.7p
Rload OUT 0 1
V1 IN 0 24
XU1 OUT N001 N002 IN IN 0 IN N003 N006 0 N004 NC_01 NC_02 N005 0 LT8640 ;pnba BIAS)INTVCC)BST)VIN1)VIN2)GND1)EN/UV)SW)RT)GND2)TR/SS)SYNC/MODE)PG)FB)GND
C4 OUT 0 47 V=6.3 Irms=0 Rser=0.002 Lser=0 mfg="TDK" pn="C4532X5ROJ47@M" type="X5R"
R1 N006 0 41.2K
.tran 2m startup
.lib LT8640.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1020 680
WIRE 64 -80 -32 -80
WIRE 256 -80 64 -80
WIRE 432 -80 256 -80
WIRE -32 -64 -32 -80
WIRE 256 -64 256 -80
WIRE 64 0 64 -80
WIRE 112 0 64 0
WIRE 432 0 432 -80
WIRE 432 0 400 0
WIRE 64 16 64 0
WIRE 432 16 432 0
WIRE -32 32 -32 16
WIRE 64 96 64 80
WIRE 112 96 64 96
WIRE 432 96 432 80
WIRE 432 96 400 96
WIRE 64 112 64 96
WIRE 432 112 432 96
WIRE 32 192 16 192
WIRE 112 192 96 192
WIRE 592 192 400 192
WIRE 432 288 400 288
WIRE 432 304 432 288
WIRE 432 384 432 368
WIRE 432 384 400 384
WIRE 480 384 432 384
WIRE 592 384 592 192
WIRE 592 384 560 384
WIRE 704 384 592 384
WIRE 800 384 704 384
WIRE 896 384 800 384
WIRE 592 400 592 384
WIRE 704 400 704 384
WIRE 800 400 800 384
WIRE 896 400 896 384
WIRE 32 480 16 480
WIRE 112 480 96 480
WIRE 592 480 400 480
WIRE 704 480 704 464
WIRE 704 480 592 480
WIRE 592 496 592 480
WIRE 800 496 800 464
WIRE 896 496 896 480
WIRE 208 560 208 544
WIRE 304 560 304 544
WIRE 592 592 592 576
WIRE 208 656 208 640
SYMBOL cap 96 496 M270
WINDOW 0 32 32 VTop 2
WINDOW 3 0 32 VBottom 2
SYMATTR InstName C1
SYMATTR Value 1n
SYMBOL cap 96 208 M270
WINDOW 0 32 32 VTop 2
WINDOW 3 0 32 VBottom 2
SYMATTR InstName C2
SYMATTR Value 1
SYMBOL ind 464 400 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 5 56 VBottom 2
SYMATTR InstName L1
SYMATTR Value 3.3
SYMATTR SpiceLine Rser=10m
SYMBOL LT8640 256 240 R0
SYMATTR InstName U1
SYMBOL cap 416 16 R0
SYMATTR InstName C7
SYMATTR Value 1
SYMBOL res 576 384 R0
SYMATTR InstName R2
SYMATTR Value 1Meg
SYMBOL cap 688 400 R0
SYMATTR InstName C5
SYMATTR Value 4.7p
SYMBOL res 192 544 R0
SYMATTR InstName R1
SYMATTR Value 41.2K
SYMBOL res 576 480 R0
SYMATTR InstName R3
SYMATTR Value 243K
SYMBOL cap 784 400 R0
SYMATTR InstName C4
SYMATTR Value 47
SYMATTR SpiceLine V=6.3 Irms=0 Rser=0.002 Lser=0 mfg="TDK" pn="C4532X5ROJ47@M" type="X5R"
SYMBOL res 880 384 R0
SYMATTR InstName Rload
SYMATTR Value 1
SYMBOL voltage -32 -80 R0
SYMATTR InstName V1
SYMATTR Value 24
SYMBOL cap 48 16 R0
SYMATTR InstName C6
SYMATTR Value 1
SYMBOL cap 416 304 R0
SYMATTR InstName C3
SYMATTR Value .1
FLAG 304 560 0
FLAG 208 656 0
FLAG -32 32 0
FLAG 16 192 0
FLAG 800 496 0
FLAG 592 592 0
FLAG 896 496 0
FLAG 896 384 OUT
FLAG -32 -80 IN
FLAG 64 112 0
FLAG 432 112 0
FLAG 16 480 0
TEXT 768 600 Left 2 !.tran 2m startup
* Z:\home\khalils\Downloads\files\data\raw_asc\5b6a66c7ce35_ev.asc
* Generated by LTspice 26.0.1 for Windows.
R1 N001 N007 4.2R pwr=4.2
D3 N005 N006 D
XU1 NC_01 N010 N006 opamp Aol=100K GBW=10Meg ;pnba invin)noninvin)out
V2 N007 N010 14
C1 N003 N004 1F
C2 N004 N008 1F
C3 N008 N009 1F
C4 N009 N010 1F
Dled1 N003 N004 D
Dled2 N003 N008 D
R2 N002 N005 4.2R pwr=4.2
M1 N001 N003 0 0 NMOS
M2 N002 N003 0 0 NMOS
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.model NMOS NMOS
.model PMOS PMOS
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.mos
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1384 788
WIRE 224 -112 80 -112
WIRE 1216 -112 1216 -128
WIRE 1216 -112 976 -112
WIRE 80 -96 80 -112
WIRE 272 -32 176 -32
WIRE 544 -32 272 -32
WIRE 752 -32 544 -32
WIRE 928 -32 752 -32
WIRE 272 64 272 -32
WIRE 544 64 544 -32
WIRE 752 64 752 -32
WIRE 272 144 272 128
WIRE 544 144 544 128
WIRE 544 144 272 144
WIRE 1216 160 1216 -48
WIRE 1312 160 1216 160
WIRE 272 208 272 144
WIRE 1376 224 1312 224
WIRE 80 320 80 -16
WIRE 272 352 272 272
WIRE 752 352 752 128
WIRE 752 352 272 352
WIRE 1376 384 1376 224
WIRE 272 528 272 416
WIRE 80 736 80 400
WIRE 272 736 272 592
WIRE 272 736 80 736
WIRE 1312 736 1312 400
WIRE 1312 736 272 736
FLAG 224 -16 0
FLAG 976 -16 0
SYMBOL res 64 -112 R0
SYMATTR InstName R1
SYMATTR Value 4.2R
SYMATTR SpiceLine pwr=4.2
SYMBOL diode 1296 160 R0
SYMATTR InstName D3
SYMBOL OpAmps\\opamp 1344 320 R0
SYMATTR InstName U1
SYMBOL Misc\\battery 80 304 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value 14
SYMBOL cap 256 64 R0
SYMATTR InstName C1
SYMATTR Value 1F
SYMBOL cap 256 208 R0
SYMATTR InstName C2
SYMATTR Value 1F
SYMBOL cap 256 352 R0
SYMATTR InstName C3
SYMATTR Value 1F
SYMBOL cap 256 528 R0
SYMATTR InstName C4
SYMATTR Value 1F
SYMBOL LED 528 64 R0
SYMATTR InstName led1
SYMBOL LED 736 64 R0
SYMATTR InstName led2
SYMBOL res 1200 -144 R0
SYMATTR InstName R2
SYMATTR Value 4.2R
SYMATTR SpiceLine pwr=4.2
SYMBOL nmos 176 -112 R0
SYMATTR InstName M1
SYMBOL nmos 928 -112 R0
SYMATTR InstName M2
* Z:\home\khalils\Downloads\files\data\raw_asc\134cdb9dcb0d_1151.asc
* Generated by LTspice 26.0.1 for Windows.
* High Voltage Instrumentation Amplifier
* Library below included based on ModelFile attribute of instance XU1, XU2 (C:\users\khalils\AppData\Local\LTspice\lib\sym\OpAmps\LTC1151.asy)
V4 -V 0 -15
R2 N001 0 1Meg
V1 +V 0 15
XU1 IN- N001 +V -V N002 LTC1151 ;pnba In+)In-)V+)V-)OUT
V2 IN+ 0 SINE(0 1 10)
R1 N002 N001 1K
R3 N003 N002 1K
R4 OUT N003 1Meg
XU2 IN+ N003 +V -V OUT LTC1151 ;pnba In+)In-)V+)V-)OUT
V3 IN- IN+ SINE(0 1m 100)
.tran .3
.lib LTC.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 896 680
WIRE 32 96 16 96
WIRE 128 96 112 96
WIRE 160 96 128 96
WIRE 272 96 240 96
WIRE 416 96 400 96
WIRE 512 96 496 96
WIRE -192 112 -192 96
WIRE -96 112 -96 96
WIRE -192 208 -192 192
WIRE -96 208 -96 192
WIRE 192 208 192 192
WIRE 128 224 128 96
WIRE 160 224 128 224
WIRE 448 224 448 208
WIRE 272 240 272 96
WIRE 272 240 224 240
WIRE 304 240 272 240
WIRE 400 240 400 96
WIRE 400 240 384 240
WIRE 416 240 400 240
WIRE 112 256 -16 256
WIRE 160 256 112 256
WIRE 512 256 512 96
WIRE 512 256 480 256
WIRE 576 256 512 256
WIRE -16 272 -16 256
WIRE 416 272 400 272
WIRE 192 288 192 272
WIRE 448 304 448 288
WIRE -16 384 -16 352
WIRE 352 384 -16 384
WIRE 400 384 400 272
WIRE 400 384 352 384
WIRE -16 400 -16 384
WIRE -16 496 -16 480
SYMBOL voltage -16 384 R0
WINDOW 3 26 93 Left 2
SYMATTR Value SINE(0 1 10)
SYMATTR InstName V2
SYMBOL opamps\\LTC1151 192 176 R0
SYMATTR InstName U1
SYMBOL res 512 80 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R4
SYMATTR Value 1Meg
SYMBOL voltage -16 256 R0
WINDOW 0 24 24 Left 2
WINDOW 3 24 94 Left 2
SYMATTR InstName V3
SYMATTR Value SINE(0 1m 100)
SYMBOL voltage -192 96 R0
SYMATTR InstName V1
SYMATTR Value 15
SYMBOL voltage -96 96 R0
SYMATTR InstName V4
SYMATTR Value -15
SYMBOL res 128 80 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 1Meg
SYMBOL opamps\\LTC1151 448 192 R0
SYMATTR InstName U2
SYMBOL res 400 224 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R3
SYMATTR Value 1K
SYMBOL res 256 80 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 1K
FLAG -192 208 0
FLAG 192 192 +V
FLAG -192 96 +V
FLAG 16 96 0
FLAG -16 496 0
FLAG 448 208 +V
FLAG 576 256 OUT
FLAG 112 256 IN-
FLAG 352 384 IN+
FLAG -96 208 0
FLAG -96 96 -V
FLAG 192 288 -V
FLAG 448 304 -V
TEXT 432 416 Left 2 !.tran .3
TEXT 304 48 Bottom 2 ;High Voltage Instrumentation Amplifier
* Z:\home\khalils\Downloads\files\data\raw_asc\a72a2b34e52e_diode_or.asc
* Generated by LTspice 26.0.1 for Windows.
R2 N001 A 10k
V1 B 0 PULSE(0 5 0 0 0 0.5 2)
V3 Vcc 0 4.81
R3 Vcc SW 100
R1 OUT 0 10k
Q1 SW N001 0 0 NPN
D2 SW OUT 1N4148
D1 B OUT 1N4148
V2 A 0 PULSE(0 5 0 0 0 0.5 3)
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.model NPN NPN
.model PNP PNP
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.bjt
.tran 5s
.backanno
.end

* LTspice schematic (.asc):
Version 4.1
SHEET 1 880 680
WIRE -432 0 -432 -32
WIRE 16 32 16 0
WIRE 16 32 -128 32
WIRE 80 32 16 32
WIRE 192 32 144 32
WIRE -64 96 -64 -96
WIRE -432 112 -432 80
WIRE -128 128 -128 112
WIRE 192 160 192 32
WIRE 240 160 192 160
WIRE -96 208 -176 208
WIRE -64 208 -64 176
WIRE -64 208 -96 208
WIRE 80 208 -64 208
WIRE 192 208 192 160
WIRE 192 208 144 208
WIRE -96 224 -96 208
WIRE -432 256 -480 256
WIRE -352 256 -432 256
WIRE -240 256 -272 256
WIRE 192 256 192 208
WIRE -432 304 -432 256
WIRE -176 368 -176 304
WIRE 0 368 -176 368
WIRE 192 368 192 336
WIRE 192 368 0 368
WIRE 0 416 0 368
SYMBOL res 176 240 R0
SYMATTR InstName R1
SYMATTR Value 10k
SYMBOL res -80 80 R0
SYMATTR InstName R3
SYMATTR Value 100
SYMBOL res -256 240 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 10k
SYMBOL voltage -432 288 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
WINDOW 3 -44 138 Left 2
SYMATTR InstName V2
SYMATTR Value PULSE(0 5 0 0 0 0.5 3)
SYMBOL npn -240 208 R0
SYMATTR InstName Q1
SYMBOL voltage -432 -16 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V3
SYMATTR Value 4.81
SYMBOL voltage -128 16 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
WINDOW 0 -45 12 Left 2
WINDOW 3 -326 132 Left 2
SYMATTR InstName V1
SYMATTR Value PULSE(0 5 0 0 0 0.5 2)
SYMBOL diode 80 224 R270
WINDOW 0 32 32 VTop 2
WINDOW 3 0 32 VBottom 2
SYMATTR InstName D2
SYMATTR Value 1N4148
SYMBOL diode 80 48 R270
WINDOW 0 32 32 VTop 2
WINDOW 3 0 32 VBottom 2
SYMATTR InstName D1
SYMATTR Value 1N4148
FLAG 0 416 0
FLAG 240 160 OUT
FLAG -480 256 A
FLAG 16 0 B
FLAG -432 384 0
FLAG -128 128 0
FLAG -432 112 0
FLAG -432 -32 Vcc
FLAG -64 -96 Vcc
FLAG -96 224 SW
TEXT -200 504 Left 2 !.tran 5s