Si7li/ltspice-spice-circuits huggingface dataset:
* Z:\home\khalils\Downloads\files\data\raw_asc\262932f1e0da_OP177F.asc
* Generated by LTspice 26.0.1 for Windows.
XU1 N003 N002 N001 N004 output OP177F ;pnba In+)In-)V+)V-)OUT
V1 N004 0 0
V2 N001 0 15
R1 output 0 100
V3 N002 0 0
V4 N003 0 0
.INCLUDE OP177F.lib
.tran 10m
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 880 680
WIRE 176 -144 96 -144
WIRE 176 -80 176 -144
WIRE 176 96 176 0
WIRE 144 112 -80 112
WIRE 336 128 208 128
WIRE 368 128 336 128
WIRE 144 144 0 144
WIRE 368 176 368 128
WIRE 176 208 176 160
WIRE -80 224 -80 112
WIRE 0 224 0 144
WIRE -80 336 -80 304
WIRE 0 336 0 304
WIRE 0 336 -80 336
WIRE 96 336 96 -144
WIRE 96 336 0 336
WIRE 176 336 176 288
WIRE 176 336 96 336
WIRE 368 336 368 256
WIRE 368 336 176 336
WIRE 176 352 176 336
FLAG 176 352 0
FLAG 336 128 output
SYMBOL Opamps\\opamp2 176 64 R0
SYMATTR InstName U1
SYMATTR Value OP177F
SYMBOL voltage 176 192 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V1
SYMATTR Value 0
SYMBOL voltage 176 16 R180
WINDOW 0 24 96 Left 2
WINDOW 3 24 16 Left 2
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V2
SYMATTR Value 15
SYMBOL res 352 160 R0
SYMATTR InstName R1
SYMATTR Value 100
SYMBOL voltage -80 208 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V3
SYMATTR Value 0
SYMBOL voltage 0 208 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V4
SYMATTR Value 0
TEXT 344 64 Left 2 !.INCLUDE OP177F.lib
TEXT 472 328 Left 2 !.tran 10m
* Z:\home\khalils\Downloads\files\data\raw_asc\LTM4622.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\LTM4622.asy)
Rload1 OUT1 0 .4
C1 OUT1 0 47 Rser=5m
Rload2 OUT2 0 .6
R1 N002 0 40.2K
R2 N001 0 90.9K
V1 IN 0 12
XU1 NC_01 OUT2 IN NC_02 NC_03 IN 0 NC_04 N002 NC_05 NC_06 OUT1 IN MP_07 MP_08 MP_09 MP_10 MP_11 IN MP_12 IN MP_13 MP_14 MP_15 MP_16 NC_17 NC_18 N001 LTM4622 ;pnba Pgood1)Vout2)Run1)Sync/Mode)FREQ)Run2)GND)Pgood2)FB2)Track/SS2)COMP2)Vout1)Vin2))))))IntVcc))Vin1)))))COMP1)Track/SS1)FB1
C2 OUT2 0 47 Rser=5m
.tran .5m startup
.lib LTM4622.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 880 772
WIRE 16 -80 -96 -80
WIRE 160 -80 16 -80
WIRE 432 -80 160 -80
WIRE -96 -64 -96 -80
WIRE 160 -64 160 -80
WIRE 16 0 16 -80
WIRE 32 0 16 0
WIRE 432 0 432 -80
WIRE 432 0 416 0
WIRE -96 32 -96 16
WIRE 16 96 16 0
WIRE 32 96 16 96
WIRE 432 96 432 0
WIRE 432 96 416 96
WIRE -128 288 -272 288
WIRE 32 288 -128 288
WIRE 592 288 416 288
WIRE 688 288 592 288
WIRE -272 304 -272 288
WIRE -128 304 -128 288
WIRE 592 304 592 288
WIRE 688 304 688 288
WIRE 32 384 -64 384
WIRE 496 384 416 384
WIRE -272 400 -272 384
WIRE -128 400 -128 368
WIRE -64 400 -64 384
WIRE 496 400 496 384
WIRE 592 400 592 368
WIRE 688 400 688 384
WIRE -64 496 -64 480
WIRE 496 496 496 480
WIRE 160 656 160 640
SYMBOL res -80 384 R0
SYMATTR InstName R2
SYMATTR Value 90.9K
SYMBOL voltage -96 -80 R0
SYMATTR InstName V1
SYMATTR Value 12
SYMBOL cap -144 304 R0
SYMATTR InstName C1
SYMATTR Value 47
SYMATTR SpiceLine Rser=5m
SYMBOL res 480 384 R0
SYMATTR InstName R1
SYMATTR Value 40.2K
SYMBOL res -288 288 R0
SYMATTR InstName Rload1
SYMATTR Value .4
SYMBOL LTM4622 224 336 R0
SYMATTR InstName U1
SYMBOL res 672 288 R0
SYMATTR InstName Rload2
SYMATTR Value .6
SYMBOL cap 576 304 R0
SYMATTR InstName C2
SYMATTR Value 47
SYMATTR SpiceLine Rser=5m
FLAG 160 656 0
FLAG -96 32 0
FLAG 496 496 0
FLAG -64 496 0
FLAG -128 400 0
FLAG -272 400 0
FLAG 592 400 0
FLAG 688 400 0
FLAG 688 288 OUT2
FLAG -272 288 OUT1
FLAG -96 -80 IN
TEXT 480 584 Left 2 !.tran .5m startup
* Z:\home\khalils\Downloads\files\data\raw_asc\ADP7156-1.8.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\ADP7156-1.8.asy)
Rload OUT 0 1.8
C4 N002 0 1
C3 N004 0 1
V1 IN 0 2.4
XU1 OUT MP_01 OUT N002 N001 N003 N003 N004 IN 0 ADP7156_7 Vreg=2.111 Vref=1.816 ;pnba Vout))Vout_Sense)Byp)EN)Ref_Sense)Ref)Vreg)Vin)GND
C2 N003 0 1
C1 OUT 0 10
R1 IN N001 100K
.tran 5m startup
.lib ADP7156_7.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 880 680
WIRE -32 0 -160 0
WIRE 80 0 -32 0
WIRE 416 0 400 0
WIRE 464 0 416 0
WIRE 560 0 464 0
WIRE -160 16 -160 0
WIRE 464 16 464 0
WIRE 560 16 560 0
WIRE -32 96 -32 0
WIRE -16 96 -32 96
WIRE 80 96 64 96
WIRE 416 96 416 0
WIRE 416 96 400 96
WIRE -160 112 -160 96
WIRE 464 112 464 80
WIRE 560 112 560 96
WIRE 0 192 -16 192
WIRE 80 192 64 192
WIRE 416 192 400 192
WIRE 464 192 416 192
WIRE 464 208 464 192
WIRE 0 288 -16 288
WIRE 80 288 64 288
WIRE 416 288 416 192
WIRE 416 288 400 288
WIRE 464 288 464 272
WIRE 240 368 240 352
SYMBOL res 544 0 R0
SYMATTR InstName Rload
SYMATTR Value 1.8
SYMBOL cap 64 272 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C3
SYMATTR Value 1
SYMBOL cap 64 176 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C4
SYMATTR Value 1
SYMBOL voltage -160 0 R0
SYMATTR InstName V1
SYMATTR Value 2.4
SYMBOL ADP7156-1.8 240 176 R0
SYMATTR InstName U1
SYMBOL cap 448 208 R0
SYMATTR InstName C2
SYMATTR Value 1
SYMBOL res -32 112 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R1
SYMATTR Value 100K
SYMBOL cap 448 16 R0
SYMATTR InstName C1
SYMATTR Value 10
FLAG 240 368 0
FLAG 464 288 0
FLAG 464 112 0
FLAG -16 288 0
FLAG -16 192 0
FLAG -160 112 0
FLAG 560 112 0
FLAG -160 0 IN
FLAG 560 0 OUT
TEXT 504 368 Left 2 !.tran 5m startup
* Z:\home\khalils\Downloads\files\data\raw_asc\059c8496bf89_Nmos_lc.asc
* Generated by LTspice 26.0.1 for Windows.
MN_1u N001 N003 0 N002 PMOS l=1u w=2u
VGS N003 N002 1
VDS N001 N002 5
.model NMOS NMOS
.model PMOS PMOS
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.mos
.lib D:\software\pure_models.txt
.dc VDS 0 5 0.01 vGS 0 1 0.25
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 944 680
WIRE 416 32 176 32
WIRE 176 96 176 32
WIRE 272 144 176 144
WIRE 128 176 -16 176
WIRE 416 192 416 32
WIRE -16 240 -16 176
WIRE -16 368 -16 320
WIRE 272 368 272 144
WIRE 272 368 -16 368
WIRE 416 368 416 272
WIRE 416 368 272 368
WIRE 176 400 176 192
SYMBOL voltage -16 224 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName VGS
SYMATTR Value 1
SYMBOL pmos4 128 96 R0
WINDOW 123 56 100 Left 2
SYMATTR InstName N_1u
SYMATTR Value2 l=1u w=2u
SYMBOL voltage 416 176 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName VDS
SYMATTR Value 5
FLAG 176 400 0
TEXT 552 432 Left 2 !.lib D:\\software\\pure_models.txt
TEXT 600 392 Left 2 !.dc VDS 0 5 0.01 vGS 0 1 0.25
* Z:\home\khalils\Downloads\files\data\raw_asc\1996ad7a2b18_Prob_4b3.asc
* Generated by LTspice 26.0.1 for Windows.
* Short Channel
* l=0.18u w= 0.27u
;dc V1 0 1 1m
V1 0 Vgs 1
V2 0 Vds 1.8V
M1 Vds Vgs 0 0 pch_tt l=0.18u w= 0.27u
.model NMOS NMOS
.model PMOS PMOS
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.mos
.include TSMC180.lib
.dc V2 0 1.8 0.01 V1 0 1 0.2
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 880 680
WIRE 416 80 384 80
WIRE 384 96 384 80
WIRE 384 96 240 96
WIRE 240 112 240 96
WIRE 384 112 384 96
WIRE 64 192 32 192
WIRE 192 192 64 192
WIRE 64 208 64 192
WIRE 240 224 240 208
WIRE 384 224 384 192
WIRE 64 304 64 288
IOPIN 32 192 In
IOPIN 416 80 Out
SYMBOL pmos 192 112 R0
SYMATTR InstName M1
SYMATTR Value pch_tt
SYMATTR Value2 l=0.18u w= 0.27u
SYMBOL voltage 64 304 R180
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value 1
SYMBOL voltage 384 208 R180
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value 1.8V
FLAG 64 304 0
FLAG 240 224 0
FLAG 384 224 0
FLAG 32 192 Vgs
FLAG 416 80 Vds
TEXT -120 64 Left 2 !.include TSMC180.lib
TEXT -128 112 Left 2 !.dc V2 0 1.8 0.01 V1 0 1 0.2
TEXT -120 88 Left 2 !;dc  V1 0 1 1m
TEXT 168 64 Left 2 ;Short Channel
TEXT 152 248 Left 2 ;l=0.18u w= 0.27u
* Z:\home\khalils\Downloads\files\data\raw_asc\LT6372-0.2.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\LT6372-0.2.asy)
V4 N002 0 SINE(0 10 1K)
XU1 N004 0 N002 -V 0 OUT +V N003 N004 N003 N001 N001 0 LT6372-0.2 ;pnba -RGF)IN-)IN+)-V)REF1)OUT)+V)+RGF)-RGS)+RGS)REF2)CLHI)CLLO
V1 +V 0 15
V5 N001 0 5
V2 -V 0 -15
.tran 10m
.lib LT6372-0.2.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 980 1876
WIRE 416 0 224 0
WIRE 224 16 224 0
WIRE -304 32 -304 16
WIRE -160 32 -160 16
WIRE 224 112 224 96
WIRE -304 128 -304 112
WIRE -160 128 -160 112
WIRE 416 160 416 0
WIRE 480 160 416 160
WIRE 352 176 352 128
WIRE 288 192 -112 192
WIRE 416 192 416 160
WIRE 480 224 480 160
WIRE 288 240 240 240
WIRE 240 272 240 240
WIRE 288 272 240 272
WIRE 640 304 576 304
WIRE -112 320 -112 192
WIRE 288 336 240 336
WIRE 240 368 240 336
WIRE 288 368 240 368
WIRE -112 416 -112 400
WIRE 288 416 224 416
WIRE 480 416 480 384
WIRE 416 432 416 416
WIRE 352 464 352 432
SYMBOL voltage -304 16 R0
SYMATTR InstName V1
SYMATTR Value 15
SYMBOL voltage -160 16 R0
SYMATTR InstName V2
SYMATTR Value -15
SYMBOL voltage -112 304 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V4
SYMATTR Value SINE(0 10 1K)
SYMBOL voltage 224 0 R0
SYMATTR InstName V5
SYMATTR Value 5
SYMBOL LT6372-0.2 432 304 R0
SYMATTR InstName U1
FLAG -304 128 0
FLAG -160 128 0
FLAG -304 16 +V
FLAG -160 16 -V
FLAG 352 128 +V
FLAG 352 464 -V
FLAG 640 304 OUT
FLAG 416 432 0
FLAG 480 416 0
FLAG 224 112 0
FLAG 224 416 0
FLAG -112 416 0
TEXT 360 576 Left 2 !.tran 10m
* Z:\home\khalils\Downloads\files\data\raw_asc\e321767c7cf5_v2.asc
* Generated by LTspice 26.0.1 for Windows.
;op
Q7 N006 N007 N008 0 BC847A
R_Load 0 N005 4k
V4 0 N007 10.85
R3 N004 N005 200
R2 N001 N002 470
R4 N005 N006 200
V3 N001 0 12
R1 N008 N009 470
V2 0 N009 12
Q1 N002 N003 N004 0 BC857A
V1 N003 0 9.6
.model NPN NPN
.model PNP PNP
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.bjt
.dc V4 0 12 0.1
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1236 1492
WIRE 272 -16 128 -16
WIRE 128 80 128 -16
WIRE 272 80 272 -16
WIRE 272 208 272 160
WIRE 128 240 128 160
WIRE 64 288 -32 288
WIRE -32 352 -32 288
WIRE 128 400 128 336
WIRE -32 480 -32 432
WIRE 128 544 128 480
WIRE 400 544 128 544
WIRE 624 544 480 544
WIRE 624 576 624 544
WIRE 128 608 128 544
WIRE -32 640 -144 640
WIRE -32 688 -32 640
WIRE -144 768 -144 640
WIRE 128 800 128 688
WIRE -32 848 -32 768
WIRE 64 848 -32 848
WIRE 448 880 336 880
WIRE 448 912 448 880
WIRE 128 960 128 896
WIRE 336 960 336 880
WIRE 128 1120 128 1040
WIRE 336 1120 336 1040
WIRE 336 1120 128 1120
SYMBOL res 112 592 R0
SYMATTR InstName R4
SYMATTR Value 200
SYMBOL res 112 384 R0
SYMATTR InstName R3
SYMATTR Value 200
SYMBOL pnp 64 240 R0
SYMATTR InstName Q1
SYMATTR Value BC857A
SYMBOL voltage 272 64 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V3
SYMATTR Value 12
SYMBOL res 496 528 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R_Load
SYMATTR Value 4k
SYMBOL voltage 336 944 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value 12
SYMBOL res 112 64 R0
SYMATTR InstName R2
SYMATTR Value 470
SYMBOL voltage -32 672 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V4
SYMATTR Value 10.85
SYMBOL res 112 944 R0
SYMATTR InstName R1
SYMATTR Value 470
SYMBOL npn 64 800 R0
SYMATTR InstName Q7
SYMATTR Value BC847A
SYMBOL voltage -32 336 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value 9.6
FLAG -32 480 0
FLAG 624 576 0
FLAG 448 912 0
FLAG 272 208 0
FLAG -144 768 0
TEXT 48 776 Left 2 !;op
TEXT -400 1048 Left 2 !.dc V4 0 12 0.1
* Z:\home\khalils\Downloads\files\data\raw_asc\0778657688f5_Full_Wave_Rectifier.asc
* Generated by LTspice 26.0.1 for Windows.
V1 N001 N003 SINE(0,1,1k)
D3 N003 N002 1N4148
R1 N002 0 1k
D2 0 N003 1N4148
D4 0 N001 1N4148
D1 N001 N002 1N4148
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.tran 10m
.backanno
.end

* LTspice schematic (.asc):
Version 4.1
SHEET 1 880 680
WIRE 288 -32 64 -32
WIRE 288 48 288 -32
WIRE 288 48 240 48
WIRE 336 48 288 48
WIRE 64 160 64 -32
WIRE 240 160 240 112
WIRE 240 160 176 160
WIRE 336 160 336 112
WIRE 496 160 336 160
WIRE 240 192 240 160
WIRE 336 192 336 160
WIRE 496 192 496 160
WIRE 240 288 240 256
WIRE 288 288 240 288
WIRE 336 288 336 256
WIRE 336 288 288 288
WIRE 176 320 176 160
WIRE 496 320 496 272
WIRE 496 320 176 320
WIRE 64 352 64 240
WIRE 288 352 288 288
WIRE 288 352 64 352
WIRE 496 368 496 320
SYMBOL res 480 176 R0
SYMATTR InstName R1
SYMATTR Value 1k
SYMBOL diode 352 256 R180
WINDOW 0 24 64 Left 2
WINDOW 3 24 0 Left 2
SYMATTR InstName D3
SYMATTR Value 1N4148
SYMBOL diode 320 48 R0
SYMATTR InstName D1
SYMATTR Value 1N4148
SYMBOL voltage 64 144 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value SINE(0,1,1k)
SYMBOL diode 224 192 R0
SYMATTR InstName D2
SYMATTR Value 1N4148
SYMBOL diode 256 112 R180
WINDOW 0 24 64 Left 2
WINDOW 3 24 0 Left 2
SYMATTR InstName D4
SYMATTR Value 1N4148
FLAG 496 368 0
TEXT 24 392 Left 2 !.tran 10m
* Z:\home\khalils\Downloads\files\data\raw_asc\5b5b5f866690_Current-mirrors.asc
* Generated by LTspice 26.0.1 for Windows.
* Sizing:\n \n1) Set reference current -> 1 mA\n2) Iref = (Vcc-Vbe)/R1 -> R1 = (Vcc-Vbe)/R1 = (12-0.6)/1m =11.4k\n \nOutput resistance Rout = ?
* The following relation holds: Io/Iref = R3/R4\n \nSizing:\n1) Set Iref = I(R2) = 1mA\n2) Set V(R3) = 1 V -> R3 = 1k ohm\n3) If we want Io = 2 Iref -> R3/R4 = 2 -> R4 = 500 ohm\n4) R is given by R = (Vcc - Vbe - V(R3))/Iref = (12-0.6-1)/1m = 10.4 k ohm
* Io
* Iref
* Current mirrors
* DC sweep analysis
Q3 VL N002 N004 0 2N3904
V1 Vcc 0 12
R1 Vcc N001 11.4k
Q1 VL N001 0 0 2N3904
Q2 N001 N001 0 0 2N3904
R3 N003 0 1k
R4 N004 0 500
Q4 N002 N002 N003 0 2N3904
R2 Vcc N002 10.4k
V2 VL 0 1
.model NPN NPN
.model PNP PNP
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.bjt
.dc V2 0 10 0.1
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1348 1060
WIRE -144 -128 -144 -144
WIRE -32 -128 -32 -144
WIRE -144 -16 -144 -48
WIRE -32 -16 -32 -48
WIRE 112 160 112 128
WIRE 112 256 112 240
WIRE 192 256 112 256
WIRE 112 288 112 256
WIRE 304 288 304 128
WIRE 192 336 192 256
WIRE 192 336 176 336
WIRE 240 336 192 336
WIRE 112 416 112 384
WIRE 304 416 304 384
WIRE 112 624 112 592
WIRE 112 720 112 704
WIRE 192 720 112 720
WIRE 112 752 112 720
WIRE 304 752 304 592
WIRE 192 800 192 720
WIRE 192 800 176 800
WIRE 240 800 192 800
WIRE 112 896 112 848
WIRE 304 896 304 848
WIRE 112 1008 112 976
WIRE 304 1008 304 976
RECTANGLE Normal 1248 464 0 48 2
RECTANGLE Normal 1248 1056 0 464 2
SYMBOL res 96 880 R0
SYMATTR InstName R3
SYMATTR Value 1k
SYMBOL npn 240 288 R0
SYMATTR InstName Q1
SYMATTR Value 2N3904
SYMBOL voltage -144 -144 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value 12
SYMBOL res 96 144 R0
SYMATTR InstName R1
SYMATTR Value 11.4k
SYMBOL res 96 608 R0
SYMATTR InstName R2
SYMATTR Value 10.4k
SYMBOL npn 176 752 M0
SYMATTR InstName Q4
SYMATTR Value 2N3904
SYMBOL res 288 880 R0
SYMATTR InstName R4
SYMATTR Value 500
SYMBOL voltage -32 -144 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value 1
SYMBOL npn 176 288 M0
SYMATTR InstName Q2
SYMATTR Value 2N3904
SYMBOL npn 240 752 R0
SYMATTR InstName Q3
SYMATTR Value 2N3904
FLAG 112 416 0
FLAG 304 416 0
FLAG -144 -16 0
FLAG -32 -16 0
FLAG 304 1008 0
FLAG 112 1008 0
FLAG -32 -144 VL
FLAG 304 128 VL
FLAG 304 592 VL
FLAG 112 592 Vcc
FLAG 112 128 Vcc
FLAG -144 -144 Vcc
TEXT 96 8 Left 2 !.dc V2 0 10 0.1
TEXT 472 88 Left 2 ;Sizing:\n \n1) Set reference current -> 1 mA\n2) Iref = (Vcc-Vbe)/R1 -> R1 = (Vcc-Vbe)/R1 = (12-0.6)/1m =11.4k\n \nOutput resistance Rout = ?
TEXT 464 584 Left 2 ;The following relation holds: Io/Iref = R3/R4\n \nSizing:\n1) Set Iref = I(R2) = 1mA\n2) Set V(R3) = 1 V -> R3 = 1k ohm\n3) If we want Io = 2 Iref -> R3/R4 = 2 -> R4 = 500 ohm\n4) R is given by R = (Vcc - Vbe - V(R3))/Iref = (12-0.6-1)/1m = 10.4 k ohm
TEXT 320 696 Left 2 ;Io
TEXT 48 656 Left 2 ;Iref
TEXT 448 -120 Left 4 ;Current mirrors
TEXT 104 -24 Left 2 ;DC sweep analysis
* Z:\home\khalils\Downloads\files\data\raw_asc\097057c10774_1260.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\LT1260.asy)
XU1 IN N001 +V -V OUT LT1259 ;pnba In+)In-)V+)V-)OUT
R2 N001 0 1.6K
V2 -V 0 -5
V3 IN 0 SINE(0 1 1K)
R1 OUT N001 1.6K
V1 +V 0 5
.tran 3m
.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 144 96 128 96
WIRE 256 96 224 96
WIRE -288 144 -288 128
WIRE -160 144 -160 128
WIRE 192 208 192 192
WIRE 128 224 128 96
WIRE 160 224 128 224
WIRE -288 240 -288 224
WIRE -160 240 -160 224
WIRE 256 240 256 96
WIRE 256 240 224 240
WIRE 288 240 256 240
WIRE 160 256 0 256
WIRE 0 272 0 256
WIRE 192 288 192 272
WIRE 0 368 0 352
SYMBOL opamps\\LT1260 192 176 R0
SYMATTR InstName U1
SYMBOL voltage -160 128 R0
SYMATTR InstName V1
SYMATTR Value 5
SYMBOL res 128 80 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 1.6K
SYMBOL voltage 0 256 R0
SYMATTR InstName V3
SYMATTR Value SINE(0 1 1K)
SYMBOL voltage -288 128 R0
SYMATTR InstName V2
SYMATTR Value -5
SYMBOL res 240 80 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 1.6K
FLAG -160 240 0
FLAG 192 192 +V
FLAG -160 128 +V
FLAG 192 288 -V
FLAG -288 240 0
FLAG -288 128 -V
FLAG 16 96 0
FLAG 0 368 0
FLAG 288 240 OUT
FLAG 0 256 IN
TEXT 264 336 Left 2 !.tran 3m
* Z:\home\khalils\Downloads\files\data\raw_asc\LTC3304C-05.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\LTC3304C-05.asy)
C3 OUT N004 10p
XU1 IN N001 N003 N004 0 0 N001 N002 N001 LTC3304C-05 ;pnba VIN)EN)SW)FB)AGND)PGND)AVIN)PGOOD)MODE/SYNC
R3 IN N001 10
C2 N001 0 1
V1 IN 0 4
R4 OUT N002 500K
C1 OUT 0 10 m=2 Rser=10m
Rload OUT 0 0.3
R2 N004 0 18.2K
L1 N003 OUT 100n Rser=2m
R1 OUT N004 47.5K
.tran 1.5m startup
.lib LTC3304C-05.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 2652 1736
WIRE 1376 1248 1344 1248
WIRE 1488 1248 1376 1248
WIRE 1712 1248 1488 1248
WIRE 1344 1264 1344 1248
WIRE 1488 1264 1488 1248
WIRE 1712 1296 1712 1248
WIRE 1344 1360 1344 1344
WIRE 1488 1360 1488 1344
WIRE 1488 1360 1424 1360
WIRE 1552 1360 1488 1360
WIRE 1904 1360 1872 1360
WIRE 2016 1360 1984 1360
WIRE 1424 1376 1424 1360
WIRE 1424 1456 1424 1440
WIRE 1488 1472 1488 1360
WIRE 1552 1472 1488 1472
WIRE 1904 1472 1872 1472
WIRE 2016 1472 2016 1360
WIRE 2016 1472 1984 1472
WIRE 2128 1472 2016 1472
WIRE 2224 1472 2128 1472
WIRE 2272 1472 2224 1472
WIRE 2320 1472 2272 1472
WIRE 2016 1488 2016 1472
WIRE 2128 1488 2128 1472
WIRE 2224 1488 2224 1472
WIRE 2320 1488 2320 1472
WIRE 1488 1584 1488 1472
WIRE 1552 1584 1488 1584
WIRE 2016 1584 2016 1568
WIRE 2016 1584 1872 1584
WIRE 2128 1584 2128 1552
WIRE 2128 1584 2016 1584
WIRE 2224 1584 2224 1552
WIRE 2320 1584 2320 1568
WIRE 2016 1600 2016 1584
WIRE 1648 1680 1648 1664
WIRE 1776 1680 1776 1664
WIRE 2016 1696 2016 1680
SYMBOL ind 1888 1488 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 5 56 VBottom 2
SYMATTR InstName L1
SYMATTR Value 100n
SYMATTR SpiceLine Rser=2m
SYMBOL res 2000 1344 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R4
SYMATTR Value 500K
SYMBOL cap 1408 1376 R0
SYMATTR InstName C2
SYMATTR Value 1
SYMBOL cap 2208 1488 R0
WINDOW 123 24 84 Left 2
SYMATTR Value2 m=2
SYMATTR InstName C1
SYMATTR Value 10
SYMATTR SpiceLine Rser=10m
SYMBOL res 2304 1472 R0
SYMATTR InstName Rload
SYMATTR Value 0.3
SYMBOL RES 2000 1472 R0
SYMATTR InstName R1
SYMATTR Value 47.5K
SYMBOL cap 2112 1488 R0
SYMATTR InstName C3
SYMATTR Value 10p
SYMBOL res 2000 1584 R0
SYMATTR InstName R2
SYMATTR Value 18.2K
SYMBOL res 1472 1248 R0
SYMATTR InstName R3
SYMATTR Value 10
SYMBOL VOLTAGE 1344 1248 R0
SYMATTR InstName V1
SYMATTR Value 4
SYMBOL LTC3304C-05 1712 1456 R0
SYMATTR InstName U1
FLAG 1776 1680 0
FLAG 1648 1680 0
FLAG 1344 1360 0
FLAG 2320 1584 0
FLAG 2016 1696 0
FLAG 2224 1584 0
FLAG 1376 1248 IN
FLAG 2272 1472 OUT
FLAG 1424 1456 0
TEXT 2200 1696 Left 2 !.tran 1.5m startup
* Z:\home\khalils\Downloads\files\data\raw_asc\0b74e1dff924_ltspice_Sanwo_MOSFET_board__24V.asc
* Generated by LTspice 26.0.1 for Windows.
+ IS=10.000E-9
+ N=1.1248
+ RS=1.2366
+ IKF=45.752E-15
+ CJO=25.000E-12
+ M=.3333
+ VJ=.75
+ ISR=10.010E-21
+ BV=5.4169
+ IBV=10
+ TT=5.0000E-9
R2 N002 0 1k
Vs N001 0 24
R1 N001 N002 4.7k
D1 N002 0 IRLED
R3 N001 N002 1e12
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.tran 0 40u 0 1e-6 startup
.MODEL IRLED D
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1588 680
WIRE 0 -16 0 -112
WIRE 0 -16 -80 -16
WIRE 80 -16 80 -112
WIRE 128 -16 80 -16
WIRE 208 -16 128 -16
WIRE -80 16 -80 -16
WIRE 128 16 128 -16
WIRE 208 32 208 -16
WIRE -80 144 -80 96
WIRE 128 144 128 96
WIRE 128 144 -80 144
WIRE 208 144 208 96
WIRE 208 144 128 144
WIRE -80 208 -80 144
SYMBOL res -16 -96 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R3
SYMATTR Value 1e12
SYMBOL diode 192 32 R0
SYMATTR InstName D1
SYMATTR Value IRLED
SYMBOL res -16 0 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R1
SYMATTR Value 4.7k
SYMBOL voltage -80 0 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName Vs
SYMATTR Value 24
SYMBOL res 112 0 R0
SYMATTR InstName R2
SYMATTR Value 1k
FLAG -80 208 0
TEXT -112 232 Left 2 !.tran 0 40u 0 1e-6 startup
TEXT 352 -56 Left 2 !.MODEL IRLED D\n+ IS=10.000E-9\n+ N=1.1248\n+ RS=1.2366\n+ IKF=45.752E-15\n+ CJO=25.000E-12\n+ M=.3333\n+ VJ=.75\n+ ISR=10.010E-21\n+ BV=5.4169\n+ IBV=10\n+ TT=5.0000E-9