Si7li/ltspice-spice-circuits huggingface dataset:
* Z:\home\khalils\Downloads\files\data\raw_asc\ADP2108-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\ADP2108-1.8.asy)
Rload OUT 0 5
L1 N001 OUT 1
V1 IN 0 5
C1 OUT 0 10
XU1 IN IN N001 OUT 0 ADP2108-x.x Rtop=208K ;pnba Vin)EN)SW)FB)GND
.tran .5m startup
.lib ADP2108-x.x.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1112 700
WIRE 192 144 96 144
WIRE 208 144 192 144
WIRE 528 144 496 144
WIRE 640 144 608 144
WIRE 720 144 640 144
WIRE 800 144 720 144
WIRE 96 160 96 144
WIRE 720 160 720 144
WIRE 800 160 800 144
WIRE 96 256 96 240
WIRE 720 256 720 224
WIRE 800 256 800 240
WIRE 192 304 192 144
WIRE 208 304 192 304
WIRE 640 304 640 144
WIRE 640 304 496 304
WIRE 352 384 352 368
SYMBOL cap 704 160 R0
SYMATTR InstName C1
SYMATTR Value 10
SYMBOL VOLTAGE 96 144 R0
SYMATTR InstName V1
SYMATTR Value 5
SYMBOL RES 784 144 R0
SYMATTR InstName Rload
SYMATTR Value 5
SYMBOL ind 512 160 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 5 56 VBottom 2
SYMATTR InstName L1
SYMATTR Value 1
SYMBOL ADP2108-1.8 352 224 R0
SYMATTR InstName U1
FLAG 96 256 0
FLAG 352 384 0
FLAG 720 256 0
FLAG 800 256 0
FLAG 800 144 OUT
FLAG 96 144 IN
TEXT 568 360 Left 2 !.tran .5m startup
* Z:\home\khalils\Downloads\files\data\raw_asc\ADP165-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\ADP165-1.8.asy)
Rload OUT 0 180
C1 OUT 0 1
V1 IN 0 5
XU1 IN 0 N001 OUT ADP16xfd K=555.6u ;pnba Vin)GND)En)Vout
V2 N001 0 PULSE(0 5 100u 50n 50n 2.5m)
.tran 4m
.lib ADP16x.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 880 680
WIRE 160 96 -48 96
WIRE 416 96 352 96
WIRE 512 96 416 96
WIRE -48 112 -48 96
WIRE 416 112 416 96
WIRE 512 112 512 96
WIRE -48 208 -48 192
WIRE 160 208 16 208
WIRE 416 208 416 176
WIRE 512 208 512 192
WIRE 16 224 16 208
WIRE 256 272 256 256
WIRE 16 320 16 304
SYMBOL voltage 16 208 R0
SYMATTR InstName V2
SYMATTR Value PULSE(0 5 100u 50n 50n 2.5m)
SYMBOL voltage -48 96 R0
SYMATTR InstName V1
SYMATTR Value 5
SYMBOL ADP165-1.8 256 208 R0
SYMATTR InstName U1
SYMBOL res 496 96 R0
SYMATTR InstName Rload
SYMATTR Value 180
SYMBOL cap 400 112 R0
SYMATTR InstName C1
SYMATTR Value 1
FLAG -48 208 0
FLAG 256 272 0
FLAG 416 208 0
FLAG 512 208 0
FLAG 512 96 OUT
FLAG -48 96 IN
FLAG 16 320 0
TEXT 528 320 Left 2 !.tran 4m
* Z:\home\khalils\Downloads\files\data\raw_asc\ADP151-2.6.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\ADP151-2.6.asy)
XU1 IN 0 IN MP_01 OUT ADP151-x.x T=1.6Meg ;pnba Vin)GND)EN))Vout
Rload OUT 0 26
C1 OUT 0 1
V1 IN 0 5
.tran 500u startup
.lib ADP151-x.x.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 2808 1464
WIRE 1824 880 1696 880
WIRE 1984 880 1824 880
WIRE 1696 896 1696 880
WIRE 1984 896 1984 880
WIRE 1696 992 1696 976
WIRE 1824 1024 1824 880
WIRE 1856 1024 1824 1024
WIRE 2160 1024 2112 1024
WIRE 2256 1024 2160 1024
WIRE 2160 1040 2160 1024
WIRE 2256 1040 2256 1024
WIRE 2160 1136 2160 1104
WIRE 2256 1136 2256 1120
WIRE 1984 1168 1984 1152
SYMBOL PowerProducts\\ADP151-2.6 1984 1024 R0
SYMATTR InstName U1
SYMBOL VOLTAGE 1696 880 R0
SYMATTR InstName V1
SYMATTR Value 5
SYMBOL cap 2144 1040 R0
SYMATTR InstName C1
SYMATTR Value 1
SYMBOL res 2240 1024 R0
SYMATTR InstName Rload
SYMATTR Value 26
FLAG 2256 1024 OUT
FLAG 2256 1136 0
FLAG 1696 992 0
FLAG 1696 880 IN
FLAG 1984 1168 0
FLAG 2160 1136 0
TEXT 2144 1200 Left 2 !.tran 500u startup
* Z:\home\khalils\Downloads\files\data\raw_asc\0f074258da7e_1734L-4.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\PowerProducts\LTC1734L-4.2.asy)
XU1 N002 0 N001 N004 BAT N003 LTC1734L-x.x Ref=4.2 ;pnba Isense)GND)Vcc)Prog)BAT)Drive
V1 N001 0 7
R1 N004 0 1K
Q1 BAT N003 N002 0 2N2907
C1 BAT 0 .1
.model NPN NPN
.model PNP PNP
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.bjt
.tran 5 startup
.lib LTC1734L-x.x.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 2284 1688
WIRE 1680 1280 1536 1280
WIRE 2096 1280 1968 1280
WIRE 1536 1312 1536 1280
WIRE 2096 1328 2096 1280
WIRE 1680 1376 1632 1376
WIRE 2032 1376 1968 1376
WIRE 1536 1424 1536 1392
WIRE 1584 1472 1568 1472
WIRE 1680 1472 1664 1472
WIRE 2032 1472 1968 1472
WIRE 2096 1472 2096 1424
WIRE 2096 1472 2032 1472
WIRE 2096 1504 2096 1472
WIRE 2096 1584 2096 1568
SYMBOL PNP 2032 1424 M180
WINDOW 0 76 72 Left 0
WINDOW 3 76 36 Left 0
SYMATTR InstName Q1
SYMATTR Value 2N2907
SYMBOL cap 2080 1504 R0
SYMATTR InstName C1
SYMATTR Value .1
SYMBOL PowerProducts\\LTC1734L-4.2 1824 1376 R0
SYMATTR InstName U1
SYMBOL RES 1680 1456 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R1
SYMATTR Value 1K
SYMBOL VOLTAGE 1536 1296 R0
SYMATTR InstName V1
SYMATTR Value 7
FLAG 1568 1472 0
FLAG 1632 1376 0
FLAG 1536 1424 0
FLAG 2096 1584 0
FLAG 2032 1472 BAT
TEXT 1888 1560 Left 0 !.tran 5 startup
* Z:\home\khalils\Downloads\files\data\raw_asc\MAX14575A.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\MAX14575A.asy)
C1 OUT 0 150
S1 0 OUT N001 0 SHORT
R2 N006 0 348
R1 N005 N006 52.3K
R3 N004 N003 20K
V1 IN 0 5
V2 N002 0 2
XU1 IN N005 0 N003 N002 OUT MAX14575A ;pnba IN)SETI)GND)_FLAG)EN)OUT
V3 N004 0 5
V4 N001 0 PULSE(0 1 10m 1m 1m 30m)
.model SHORT SW(Ron=0.05 Roff=1K Vt=.5 Vh=-.4)
.tran 50m startup
.lib MAX14575A.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1800 680
WIRE -16 -352 -224 -352
WIRE 400 -352 272 -352
WIRE 512 -352 400 -352
WIRE 672 -352 560 -352
WIRE -224 -336 -224 -352
WIRE 400 -336 400 -352
WIRE 512 -336 512 -352
WIRE 672 -336 672 -352
WIRE 560 -320 560 -352
WIRE -224 -240 -224 -256
WIRE 400 -240 400 -272
WIRE 512 -240 512 -256
WIRE 672 -240 672 -256
WIRE -16 -160 -224 -160
WIRE 384 -160 272 -160
WIRE 576 -160 464 -160
WIRE -224 -144 -224 -160
WIRE 576 -128 576 -160
WIRE -16 -64 -128 -64
WIRE 336 -64 272 -64
WIRE -224 -48 -224 -64
WIRE -128 -48 -128 -64
WIRE 336 -32 336 -64
WIRE 576 -32 576 -48
WIRE -128 48 -128 32
WIRE -128 144 -128 128
SYMBOL voltage 576 -144 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V3
SYMATTR Value 5
SYMBOL cap 384 -336 R0
SYMATTR InstName C1
SYMATTR Value 150
SYMBOL res -144 32 R0
SYMATTR InstName R2
SYMATTR Value 348
SYMBOL voltage 672 -352 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V4
SYMATTR Value PULSE(0 1 10m 1m 1m 30m)
SYMBOL res 480 -176 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R3
SYMATTR Value 20K
SYMBOL MAX14575A 128 -208 R0
SYMATTR InstName U1
SYMBOL voltage -224 -160 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V2
SYMATTR Value 2
SYMBOL sw 512 -240 R180
WINDOW 0 -23 102 Right 2
WINDOW 3 -26 2 Right 2
SYMATTR InstName S1
SYMATTR Value SHORT
SYMBOL voltage -224 -352 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V1
SYMATTR Value 5
SYMBOL res -144 -64 R0
SYMATTR InstName R1
SYMATTR Value 52.3K
FLAG -224 -240 0
FLAG 400 -240 0
FLAG 512 -352 OUT
FLAG -224 -352 IN
FLAG 512 -240 0
FLAG 560 -272 0
FLAG 672 -240 0
FLAG -128 144 0
FLAG 576 -32 0
FLAG -224 -48 0
FLAG 336 -32 0
TEXT 480 144 Left 2 !.model SHORT SW(Ron=0.05 Roff=1K Vt=.5 Vh=-.4)
TEXT 480 184 Left 2 !.tran 50m startup
* Z:\home\khalils\Downloads\files\data\raw_asc\c0d159906937_Draft6.asc
* Generated by LTspice 26.0.1 for Windows.
VE a 0 SINE(0 10 10)
R b 0 220 tol=1 pwr=0.1
D1 b a D
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.tran 1
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 880 680
WIRE 144 64 80 64
WIRE 208 64 144 64
WIRE 320 64 272 64
WIRE 368 64 320 64
WIRE 80 144 80 64
WIRE 368 144 368 64
WIRE 80 256 80 224
WIRE 320 256 80 256
WIRE 368 256 368 224
WIRE 368 256 320 256
WIRE 80 272 80 256
SYMBOL diode 272 48 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName D1
SYMBOL voltage 80 128 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName E
SYMATTR Value SINE(0 10 10)
SYMBOL res 352 128 R0
SYMATTR InstName R
SYMATTR Value 220
SYMATTR SpiceLine tol=1 pwr=0.1
FLAG 80 272 0
FLAG 144 64 a
FLAG 320 64 b
FLAG 320 256 c
TEXT 46 296 Left 2 !.tran 1
* Z:\home\khalils\Downloads\files\data\raw_asc\095fb84c3a44_Draft1.asc
* Generated by LTspice 26.0.1 for Windows.
C3 N004 0 5n
V1 N001 0 PULSE(0 5 0 10n 10n 15u 33u 0)
C2 N003 0 5n
R1 N001 N002 10k
R3 N003 N004 10k
R2 N002 N003 10k
C1 N002 0 5n
.tran 0 5ms 0
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 880 680
WIRE 80 48 0 48
WIRE 208 48 160 48
WIRE 304 48 288 48
WIRE 384 48 304 48
WIRE 480 48 464 48
WIRE 560 48 480 48
WIRE 160 96 160 48
WIRE 304 96 304 48
WIRE 480 96 480 48
WIRE 0 160 0 128
WIRE 160 160 0 160
WIRE 304 160 160 160
WIRE 480 160 304 160
WIRE 0 176 0 160
WIRE 0 176 -32 176
WIRE -32 208 -32 176
SYMBOL cap 464 96 R0
SYMATTR InstName C3
SYMATTR Value 5n
SYMBOL cap 144 96 R0
WINDOW 0 47 31 Left 2
SYMATTR InstName C1
SYMATTR Value 5n
SYMBOL res 368 64 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R3
SYMATTR Value 10k
SYMBOL res 64 64 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R1
SYMATTR Value 10k
SYMBOL res 192 64 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R2
SYMATTR Value 10k
SYMBOL voltage 0 32 R0
WINDOW 0 -73 51 Left 2
WINDOW 3 4 116 Invisible 2
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V1
SYMATTR Value PULSE(0 5 0 10n 10n 15u 33u 0)
SYMBOL cap 288 96 R0
SYMATTR InstName C2
SYMATTR Value 5n
FLAG -32 208 0
TEXT -52 232 Left 2 !.tran 0 5ms 0
* Z:\home\khalils\Downloads\files\data\raw_asc\ADP1740-1.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\PowerProducts\ADP1740-1.2.asy)
XU1 IN OUT IN N002 OUT N001 MP_01 0 ADP1740-1.2 ;pnba Vin)Sense)EN)SS)Vout)PG))GND
V1 IN 0 1.8
C2 N002 0 10n
R1 IN N001 100k
C1 OUT 0 4.7 Rser=3m
Rload OUT 0 0.6
.tran 10m startup
.lib ADP1740-1.2.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1048 680
WIRE -112 32 -128 32
WIRE -16 32 -112 32
WIRE 80 32 -16 32
WIRE 96 32 80 32
WIRE 368 32 352 32
WIRE 416 32 368 32
WIRE 496 32 416 32
WIRE 528 32 496 32
WIRE -128 48 -128 32
WIRE -16 48 -16 32
WIRE 416 48 416 32
WIRE 528 48 528 32
WIRE 80 96 80 32
WIRE 96 96 80 96
WIRE -128 144 -128 128
WIRE 416 144 416 112
WIRE 528 144 528 128
WIRE -16 176 -16 128
WIRE 96 176 -16 176
WIRE 16 240 0 240
WIRE 96 240 80 240
WIRE 368 240 368 32
WIRE 368 240 352 240
WIRE 224 304 224 288
SYMBOL cap 80 224 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C2
SYMATTR Value 10n
SYMBOL voltage -128 32 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value 1.8
SYMBOL res -32 32 R0
SYMATTR InstName R1
SYMATTR Value 100k
SYMBOL ADP1740-1.2 224 128 R0
SYMATTR InstName U1
SYMBOL res 512 32 R0
SYMATTR InstName Rload
SYMATTR Value 0.6
SYMBOL cap 400 48 R0
SYMATTR InstName C1
SYMATTR Value 4.7
SYMATTR SpiceLine Rser=3m
FLAG 224 304 0
FLAG -128 144 0
FLAG 0 240 0
FLAG -112 32 IN
FLAG 528 144 0
FLAG 416 144 0
FLAG 496 32 OUT
TEXT 128 352 Left 2 !.tran 10m startup
* Z:\home\khalils\Downloads\files\data\raw_asc\5f51150ca504_MSi001_VCO_stuff.asc
* Generated by LTspice 26.0.1 for Windows.
C1 filter_out 0 2.7nF
C2 N001 filter_input 39nF
C3 0 filter_input 2.7nF
R1 0 N001 360
I1 0 filter_input PULSE(0 .001 0ns 0 0 1ns 42ns) AC 1
I3 0 filter_input PULSE(0 -.001 39.5ns 0 0 1ns 80ns) AC 0
R2 filter_out filter_input 500
* Loop filter pre-charge connects here?\n(this allows fast charging of cap, bypassing R)
* VCO_VCC connects here
* Charge pump out\n(this is to be filtered by the loop filter)
.ac dec 1000 1k 0.1G
* This loop filter is based on the PLL reference design given for the ADF4351 \non pg. 25 of its datasheet. This topology is also very close to the one used on\nthe reverse-engineered Mirics TV dongle.
* The charge pump output (phase detector) is probably somwhere around F_ref = 24 MHz.
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1396 812
WIRE -464 128 -560 128
WIRE -464 160 -464 128
WIRE -560 176 -560 128
WIRE -464 272 -464 240
WIRE -304 272 -464 272
WIRE -48 272 -304 272
WIRE 48 272 -48 272
WIRE 176 272 48 272
WIRE 368 272 256 272
WIRE -464 304 -464 272
WIRE -48 304 -48 272
WIRE 48 304 48 272
WIRE 368 336 368 272
WIRE -48 400 -48 368
WIRE -464 416 -464 384
WIRE 368 432 368 400
WIRE -48 496 -48 480
WIRE 48 496 48 368
WIRE 48 496 -48 496
WIRE -48 512 -48 496
FLAG -560 176 0
FLAG -464 416 0
FLAG 368 432 0
FLAG -48 512 0
FLAG -304 272 filter_input
FLAG 368 272 filter_out
SYMBOL cap 352 336 R0
SYMATTR InstName C1
SYMATTR Value 2.7nF
SYMBOL cap -32 368 R180
WINDOW 0 24 56 Left 2
WINDOW 3 24 8 Left 2
SYMATTR InstName C2
SYMATTR Value 39nF
SYMBOL cap 64 368 R180
WINDOW 0 24 56 Left 2
WINDOW 3 24 8 Left 2
SYMATTR InstName C3
SYMATTR Value 2.7nF
SYMBOL res -32 496 R180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName R1
SYMATTR Value 360
SYMBOL current -464 160 R0
WINDOW 123 45 41 Left 2
WINDOW 39 0 0 Left 0
WINDOW 3 -443 55 Left 2
SYMATTR Value2 AC 1
SYMATTR Value PULSE(0 .001 0ns 0 0 1ns 42ns)
SYMATTR InstName I1
SYMBOL current -464 384 R180
WINDOW 123 -100 40 Left 2
WINDOW 39 0 0 Left 0
WINDOW 0 -76 68 Left 2
WINDOW 3 45 84 Left 2
SYMATTR Value2 AC 0
SYMATTR InstName I3
SYMATTR Value PULSE(0 -.001 39.5ns 0 0 1ns 80ns)
SYMBOL res 272 256 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 500
TEXT -496 544 Left 2 ;Loop filter pre-charge connects here?\n(this allows fast charging of cap, bypassing R)
TEXT 376 184 Left 2 ;VCO_VCC connects here
TEXT -656 48 Left 2 ;Charge pump out\n(this is to be filtered by the loop filter)
TEXT -720 672 Left 2 !.ac dec 1000 1k 0.1G
TEXT -512 -112 Left 2 ;This loop filter is based on the PLL reference design given for the ADF4351 \non pg. 25 of its datasheet. This topology is also very close to the one used on\nthe reverse-engineered Mirics TV dongle.
TEXT -576 768 Left 2 ;The charge pump output (phase detector) is probably somwhere around F_ref = 24 MHz.
LINE Normal -208 384 -64 384 2
LINE Normal -336 512 -208 384 2
LINE Normal 464 272 512 224 2
LINE Normal 400 272 464 272 2
* Z:\home\khalils\Downloads\files\data\raw_asc\ADP1765.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\ADP1765.asy)
C1 N004 0 1
R1 OUT 0 .6
V1 IN 0 1.8
R2 N001 IN 50K
C4 OUT 0 22
C3 N002 0 1
XU1 N002 IN IN OUT OUT N001 0 N003 N004 N005 ADP1765 ;pnba Vreg)Vin)EN)Vout)Sense)PG)GND)SS)RefCap)Vadj
C2 N003 0 10n
R3 0 N005 10K
.tran 2m startup
.lib ADP1765.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 880 680
WIRE -16 -32 -128 -32
WIRE 80 -32 -16 -32
WIRE 224 -32 80 -32
WIRE -128 -16 -128 -32
WIRE 224 -16 224 -32
WIRE 80 32 80 -32
WIRE 96 32 80 32
WIRE 384 32 352 32
WIRE 496 32 384 32
WIRE 592 32 496 32
WIRE 496 48 496 32
WIRE 592 48 592 32
WIRE -128 80 -128 64
WIRE -16 128 -16 -32
WIRE 0 128 -16 128
WIRE 96 128 80 128
WIRE 384 128 384 32
WIRE 384 128 352 128
WIRE 496 144 496 112
WIRE 592 144 592 128
WIRE 16 224 0 224
WIRE 96 224 80 224
WIRE 368 224 352 224
WIRE 464 224 432 224
WIRE 16 320 -16 320
WIRE 96 320 80 320
WIRE 368 320 352 320
WIRE 464 320 448 320
WIRE 224 384 224 368
SYMBOL res 464 304 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R3
SYMATTR Value 10K
SYMBOL res 576 32 R0
SYMATTR InstName R1
SYMATTR Value .6
SYMBOL cap 80 208 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C3
SYMATTR Value 1
SYMBOL res 96 112 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 50K
SYMBOL cap 368 240 R270
WINDOW 0 32 32 VTop 2
WINDOW 3 0 32 VBottom 2
SYMATTR InstName C2
SYMATTR Value 10n
SYMBOL cap 480 48 R0
SYMATTR InstName C4
SYMATTR Value 22
SYMBOL ADP1765 224 176 R0
SYMATTR InstName U1
SYMBOL cap 80 304 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C1
SYMATTR Value 1
SYMBOL voltage -128 -32 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value 1.8
FLAG 224 384 0
FLAG -128 80 0
FLAG -16 320 0
FLAG 0 224 0
FLAG 464 320 0
FLAG 464 224 0
FLAG 592 144 0
FLAG 496 144 0
FLAG -128 -32 IN
FLAG 592 32 OUT
TEXT 504 392 Left 2 !.tran 2m startup
* Z:\home\khalils\Downloads\files\data\raw_asc\AD8506.asc
* Generated by LTspice 26.0.1 for Windows.
V1 +V 0 2.5
Vin IN 0 SINE(0 1 1K)
R1 N001 0 10K
R2 OUT N001 10K
V2 -V 0 -2.5
Rload OUT 0 10K
XU1 IN N001 +V -V OUT AD8506 ;pnba In+)In-)V+)V-)OUT
.tran 10m
* Library below included based on ModelFile attribute of instance XU1 (C:\users\khalils\AppData\Local\LTspice\lib\sym\OpAmps\AD8506.asy)
.lib ADI1.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1240 700
WIRE 432 -1216 416 -1216
WIRE 528 -1216 512 -1216
WIRE 544 -1216 528 -1216
WIRE 640 -1216 624 -1216
WIRE 144 -1152 144 -1168
WIRE 256 -1152 256 -1168
WIRE 528 -1120 528 -1216
WIRE 544 -1120 528 -1120
WIRE 640 -1104 640 -1216
WIRE 640 -1104 608 -1104
WIRE 752 -1104 640 -1104
WIRE 544 -1088 432 -1088
WIRE 752 -1088 752 -1104
WIRE 432 -1072 432 -1088
WIRE 144 -1056 144 -1072
WIRE 256 -1056 256 -1072
WIRE 752 -992 752 -1008
WIRE 432 -976 432 -992
FLAG 144 -1168 +V
FLAG 144 -1056 0
FLAG 432 -976 0
FLAG 752 -1104 OUT
FLAG 432 -1088 IN
FLAG 576 -1136 +V
FLAG 256 -1168 -V
FLAG 576 -1072 -V
FLAG 416 -1216 0
FLAG 752 -992 0
FLAG 256 -1056 0
SYMBOL voltage 144 -1168 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V1
SYMATTR Value 2.5
SYMBOL voltage 432 -1088 R0
WINDOW 123 24 146 Left 2
WINDOW 39 24 125 Left 2
SYMATTR InstName Vin
SYMATTR Value SINE(0 1 1K)
SYMBOL res 528 -1232 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 10K
SYMBOL res 640 -1232 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 10K
SYMBOL voltage 256 -1168 R0
WINDOW 123 24 146 Left 2
WINDOW 39 24 125 Left 2
SYMATTR InstName V2
SYMATTR Value -2.5
SYMBOL res 736 -1104 R0
SYMATTR InstName Rload
SYMATTR Value 10K
SYMBOL AD8506 576 -1168 R0
SYMATTR InstName U1
TEXT 632 -960 Left 2 !.tran 10m
* Z:\home\khalils\Downloads\files\data\raw_asc\28c1797d2f18_constant_current_src_led_driving_no_q2.asc
* Generated by LTspice 26.0.1 for Windows.
* Constant Current Source LED Driving using BJT Simulation | LT spice\nhttps://www.youtube.com/watch?v=dmpS4DbLk0w&list=WL&index=22&t=13s
* The impedance of the diode:\n(V(n001)-V(n002))/I(D1)
Q1 N002 N004 N005 0 BC846B
D2 N007 0 D
D4 N003 N006 D
R3 N004 N003 1K
V1 N001 0 5
D1 N001 N002 FMN1
R2 N005 0 {R2_list}
D3 N006 N007 D
R1 N001 N003 2K
.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
.dc V1 3.75 6.25 0.01
.step param R1_list 1K 30K 5K
.step param R2_list 30 200 50
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 880 680
WIRE 256 -144 -192 -144
WIRE 464 -144 256 -144
WIRE 464 -64 464 -144
WIRE 256 -48 256 -144
WIRE -192 -16 -192 -144
WIRE 256 128 256 16
WIRE 464 128 464 16
WIRE -192 176 -192 64
WIRE 16 176 -192 176
WIRE 192 176 96 176
WIRE -192 208 -192 176
WIRE 272 224 256 224
WIRE -192 304 -192 272
WIRE -192 320 -192 304
WIRE 272 384 272 224
WIRE -192 400 -192 368
WIRE 272 512 272 464
WIRE -192 528 -192 464
SYMBOL diode -208 400 R0
SYMATTR InstName D2
SYMBOL res -208 -32 R0
SYMATTR InstName R1
SYMATTR Value 2K
SYMBOL npn 192 128 R0
SYMATTR InstName Q1
SYMATTR Value BC846B
SYMBOL voltage 464 -80 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value 5
SYMBOL diode -208 304 R0
SYMATTR InstName D3
SYMBOL diode 240 -48 R0
SYMATTR InstName D1
SYMATTR Value FMN1
SYMBOL diode -208 208 R0
SYMATTR InstName D4
SYMBOL res 112 160 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R3
SYMATTR Value 1K
SYMBOL res 256 368 R0
SYMATTR InstName R2
SYMATTR Value {R2_list}
FLAG 272 512 0
FLAG -192 528 0
FLAG 464 128 0
TEXT 552 -24 Left 2 !.dc V1 3.75 6.25 0.01
TEXT -272 -240 Left 2 ;Constant Current Source LED Driving using BJT Simulation | LT spice\nhttps://www.youtube.com/watch?v=dmpS4DbLk0w&list=WL&index=22&t=13s
TEXT -752 -24 Left 2 !.step param R1_list 1K 30K 5K
TEXT -720 120 Left 2 !.step param R2_list 30 200 50
TEXT -1136 80 Left 2 ;The impedance of the diode:\n(V(n001)-V(n002))/I(D1)
* Z:\home\khalils\Downloads\files\data\raw_asc\039e85e85677_6432067021-PB3.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)
R2 N002 N001 4k
XU1 N003 N001 VCC VSS N002 OP727 ;pnba In+)In-)V+)V-)OUT
V2 VCC 0 5v
V3 0 VSS 5v
R1 N001 0 1k
V1 N003 0 SINE(0.3 0.3 10KHz)
R3 0 N002 10k
.tran 1ms
.lib ADI.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 880 680
WIRE 80 32 -96 32
WIRE 176 32 160 32
WIRE 48 80 48 -16
WIRE -208 96 -272 96
WIRE -96 96 -96 32
WIRE -96 96 -128 96
WIRE 16 96 -96 96
WIRE 176 112 176 32
WIRE 176 112 80 112
WIRE 256 112 176 112
WIRE 16 128 -64 128
WIRE -272 160 -272 96
WIRE 256 176 256 112
WIRE 48 256 48 144
WIRE -64 288 -64 208
WIRE 256 288 256 256
SYMBOL Res 176 16 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 4k
SYMBOL OP727 48 48 R0
SYMATTR InstName U1
SYMBOL voltage -304 -64 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value 5v
SYMBOL Res 272 272 R180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName R3
SYMATTR Value 10k
SYMBOL voltage -64 112 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
WINDOW 0 33 90 Left 2
WINDOW 3 -224 121 Left 2
SYMATTR InstName V1
SYMATTR Value SINE(0.3 0.3 10KHz)
SYMBOL Res -112 80 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 1k
SYMBOL voltage -400 -64 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V3
SYMATTR Value 5v
FLAG -64 288 0
FLAG 48 -16 VCC
FLAG -304 -48 VCC
FLAG -304 32 0
FLAG 48 256 VSS
FLAG -400 -48 0
FLAG -400 32 VSS
FLAG -272 160 0
FLAG 256 288 0
TEXT -120 312 Left 2 !.tran 1ms