Si7li/ltspice-spice-circuits huggingface dataset:
* Z:\home\khalils\Downloads\files\data\raw_asc\30de2612192e_3PhaseRect.asc
* Generated by LTspice 26.0.1 for Windows.
* This is a 3-Phase rectifier circuit.\nReference: Schuler, 7th edition, page 71.\nRun the simulation and probe the waveform across R1.\nLeft-click the vertical axis and change the bottom axis limit to 0 V.\nThe low ripple content of three-phase rectification is apparent.
D5 N004 N001 D
V2 N004 N005 SINE(0 170 60 0 0 120)
V3 N002 N005 SINE(0 170 60 0 0 -120)
D1 N002 N001 D
D2 0 N002 D
D6 0 N004 D
V1 N003 N005 SINE(0 170 60)
D3 N003 N001 D
R1 N001 0 10
D4 0 N003 D
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.tran 33.3333e-3
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 932 680
WIRE 416 48 336 48
WIRE 496 48 416 48
WIRE 544 48 496 48
WIRE 336 64 336 48
WIRE 416 64 416 48
WIRE 496 64 496 48
WIRE 272 80 -80 80
WIRE 224 128 80 128
WIRE 544 144 544 48
WIRE 272 160 272 80
WIRE 336 160 336 128
WIRE 336 160 272 160
WIRE 224 176 224 128
WIRE 416 176 416 128
WIRE 416 176 224 176
WIRE -80 192 -80 80
WIRE 80 192 80 128
WIRE 496 192 496 128
WIRE 496 192 288 192
WIRE 336 224 336 160
WIRE 416 224 416 176
WIRE 496 224 496 192
WIRE 496 240 496 224
WIRE -80 288 -80 272
WIRE 80 288 80 272
WIRE 80 288 -80 288
WIRE 336 304 336 288
WIRE 416 304 416 288
WIRE 416 304 336 304
WIRE 496 304 496 288
WIRE 496 304 416 304
WIRE 544 304 544 224
WIRE 544 304 496 304
WIRE 544 336 544 304
WIRE 80 352 80 288
WIRE 80 464 80 432
WIRE 288 464 288 192
WIRE 288 464 80 464
SYMBOL diode 352 288 R180
WINDOW 0 24 72 Left 0
WINDOW 3 24 0 Left 0
SYMATTR InstName D2
SYMBOL diode 512 288 R180
WINDOW 0 24 72 Left 0
WINDOW 3 24 0 Left 0
SYMATTR InstName D6
SYMBOL diode 352 128 R180
WINDOW 0 27 63 Left 0
WINDOW 3 24 0 Left 0
SYMATTR InstName D1
SYMBOL voltage 80 448 R180
WINDOW 0 36 54 Left 0
WINDOW 3 -122 -39 Left 0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value SINE(0 170 60 0 0 120)
SYMBOL res 528 128 R0
SYMATTR InstName R1
SYMATTR Value 10
SYMBOL diode 512 128 R180
WINDOW 0 24 64 Left 0
WINDOW 3 24 0 Left 0
SYMATTR InstName D5
SYMBOL voltage -80 176 R0
WINDOW 3 -105 139 Left 0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
WINDOW 0 38 57 Left 0
SYMATTR Value SINE(0 170 60 0 0 -120)
SYMATTR InstName V3
SYMBOL voltage 80 176 R0
WINDOW 3 -76 -69 Left 0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
WINDOW 0 40 56 Left 0
SYMATTR Value SINE(0 170 60)
SYMATTR InstName V1
SYMBOL diode 432 288 R180
WINDOW 0 24 72 Left 0
WINDOW 3 24 0 Left 0
SYMATTR InstName D4
SYMBOL diode 432 128 R180
WINDOW 0 28 64 Left 0
WINDOW 3 24 0 Left 0
SYMATTR InstName D3
FLAG 544 336 0
TEXT 344 408 Left 0 !.tran 33.3333e-3
TEXT -128 -104 Left 0 ;This is a 3-Phase rectifier circuit.\nReference: Schuler, 7th edition, page 71.\nRun the simulation and probe the waveform across R1.\nLeft-click the vertical axis and change the bottom axis limit to 0 V.\nThe low ripple content of three-phase rectification is apparent.
* Z:\home\khalils\Downloads\files\data\raw_asc\ADuM4221-1A.asc
* Generated by LTspice 26.0.1 for Windows.
* GND1 is modeled as common GND
* Library below included based on ModelFile attribute of instance XU1 (C:\users\khalils\AppData\Local\LTspice\lib\sym\PowerProducts\ADuM4221-1A.asy)
V2 N003 0 5
V4 N004 0 15
R2 Gate_A N001 5.11
V5 N002 0 15
V1 Vin 0 PULSE(0 5 0 2n 2n 5u 10u)
R1 N006 0 10k
C1 Gate_A 0 2.2n
R3 Gate_B N007 5.11
XU1 Vin N003 0 N005 N006 0 N007 N004 0 N001 N002 ADuM4221-1A ;pnba PWM)VDD1)GND1)DISABLE)DT)GNDB)VOB)VDDB)GNDA)VOA)VDDA
V3 N005 0 0
C2 Gate_B 0 2.2n
.tran 50u
.lib ADuM4221-1A.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4.1
SHEET 1 3080 680
WIRE -1824 -432 -2208 -432
WIRE -1728 -432 -1824 -432
WIRE -1136 -432 -1424 -432
WIRE -1008 -432 -1056 -432
WIRE -880 -432 -1008 -432
WIRE -832 -432 -880 -432
WIRE -1008 -400 -1008 -432
WIRE -2208 -384 -2208 -432
WIRE -1248 -368 -1424 -368
WIRE -1728 -352 -2096 -352
WIRE -1248 -352 -1248 -368
WIRE -1008 -320 -1008 -336
WIRE -1392 -304 -1424 -304
WIRE -2096 -288 -2096 -352
WIRE -1728 -272 -1760 -272
WIRE -1248 -224 -1424 -224
WIRE -1248 -208 -1248 -224
WIRE -1728 -176 -1984 -176
WIRE -1392 -160 -1424 -160
WIRE -1728 -112 -1872 -112
WIRE -1136 -96 -1424 -96
WIRE -1008 -96 -1056 -96
WIRE -880 -96 -1008 -96
WIRE -832 -96 -880 -96
WIRE -1984 -80 -1984 -176
WIRE -1872 -64 -1872 -112
WIRE -1008 -64 -1008 -96
WIRE -1008 32 -1008 0
WIRE -2208 128 -2208 -304
WIRE -2096 128 -2096 -208
WIRE -1984 128 -1984 0
WIRE -1872 128 -1872 16
SYMBOL voltage -1248 -368 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
WINDOW 0 43 29 Left 2
WINDOW 3 46 61 Left 2
SYMATTR InstName V5
SYMATTR Value 15
SYMBOL voltage -1248 -224 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
WINDOW 0 42 34 Left 2
WINDOW 3 45 64 Left 2
SYMATTR InstName V4
SYMATTR Value 15
SYMBOL cap -1024 -64 R0
SYMATTR InstName C2
SYMATTR Value 2.2n
SYMBOL voltage -2096 -304 R0
SYMATTR InstName V2
SYMATTR Value 5
SYMBOL res -1040 -112 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R3
SYMATTR Value 5.11
SYMBOL voltage -2208 -400 R0
WINDOW 0 26 98 Left 2
WINDOW 3 33 16 Left 2
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value PULSE(0 5 0 2n 2n 5u 10u)
SYMBOL res -1040 -448 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 5.11
SYMBOL cap -1024 -400 R0
SYMATTR InstName C1
SYMATTR Value 2.2n
SYMBOL ADuM4221-1A -1568 -336 R0
SYMATTR InstName U1
SYMBOL voltage -1984 -96 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V3
SYMATTR Value 0
SYMBOL res -1888 -80 R0
SYMATTR InstName R1
SYMATTR Value 10k
FLAG -1984 128 0
FLAG -1392 -160 0
FLAG -2208 128 0
FLAG -2096 128 0
FLAG -1824 -432 Vin
FLAG -1392 -304 0
FLAG -1760 -272 0
FLAG -1872 128 0
FLAG -1248 -128 0
FLAG -880 -96 Gate_B
FLAG -880 -432 Gate_A
FLAG -1008 32 0
FLAG -1008 -320 0
FLAG -1248 -272 0
TEXT -1728 8 Left 2 !.tran 50u
TEXT -1728 -16 Left 1 ;GND1 is modeled as common GND
* Z:\home\khalils\Downloads\files\data\raw_asc\LTC3400-1.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\LTC3400-1.asy)
XU1 N001 0 N002 IN OUT IN LTC3400-1 ;pnba SW)GND)FB)_SHDN)Vout)Vin
C1 OUT 0 4.7
Rload OUT 0 50
R2 N002 0 604K
R1 OUT N002 1.02Meg
V1 IN 0 1.4
L1 IN N001 4.7 Rser=0.1
.tran 250u startup
.lib LTC3400-1.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 2628 1624
WIRE 1696 1120 1600 1120
WIRE 1872 1120 1696 1120
WIRE 1920 1120 1872 1120
WIRE 2064 1120 2000 1120
WIRE 1600 1152 1600 1120
WIRE 1872 1184 1872 1120
WIRE 2064 1248 2064 1120
WIRE 2064 1248 2016 1248
WIRE 1600 1264 1600 1232
WIRE 1696 1328 1696 1120
WIRE 1728 1328 1696 1328
WIRE 2080 1328 2016 1328
WIRE 2224 1328 2080 1328
WIRE 2336 1328 2224 1328
WIRE 2336 1344 2336 1328
WIRE 2224 1360 2224 1328
WIRE 2080 1408 2016 1408
WIRE 2080 1424 2080 1408
WIRE 2224 1440 2224 1424
WIRE 2336 1440 2336 1424
WIRE 1872 1488 1872 1472
WIRE 2080 1520 2080 1504
SYMBOL res 2320 1328 R0
SYMATTR InstName Rload
SYMATTR Value 50
SYMBOL RES 2064 1312 R0
SYMATTR InstName R1
SYMATTR Value 1.02Meg
SYMBOL res 2064 1408 R0
SYMATTR InstName R2
SYMATTR Value 604K
SYMBOL PowerProducts\\LTC3400-1 1872 1328 R0
SYMATTR InstName U1
SYMBOL ind 1904 1136 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 5 56 VBottom 2
SYMATTR InstName L1
SYMATTR Value 4.7
SYMATTR SpiceLine Rser=0.1
SYMBOL VOLTAGE 1600 1136 R0
SYMATTR InstName V1
SYMATTR Value 1.4
SYMBOL cap 2208 1360 R0
SYMATTR InstName C1
SYMATTR Value 4.7
FLAG 1872 1488 0
FLAG 2080 1520 0
FLAG 1600 1264 0
FLAG 2224 1440 0
FLAG 2336 1440 0
FLAG 2336 1328 OUT
FLAG 1600 1120 IN
TEXT 2200 1520 Left 2 !.tran 250u startup
* Z:\home\khalils\Downloads\files\data\raw_asc\LTC3541.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\LTC3541.asy)
Rload1 OUT1 0 12.5
C3 OUT2 0 2.2
R2 N002 0 115K
R1 OUT1 N002 243K
R3 OUT2 N003 412K
L1 N001 OUT1 2.2
C2 OUT1 N002 22p
C1 OUT1 0 10
R4 N003 0 150K
XU1 IN IN N002 N003 OUT2 OUT1 0 0 IN N001 LTC3541 ;pnba Vin)ENBuck)BuckFB)LFB)LVout)LVin)GND)Mode)ENVLDO)SW
Rload2 OUT2 0 5
V1 IN 0 3.6
.tran 1.5m startup
.lib LTC3541.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1020 680
WIRE 96 -16 0 -16
WIRE 256 -16 96 -16
WIRE 416 -16 256 -16
WIRE 0 0 0 -16
WIRE 256 0 256 -16
WIRE 96 64 96 -16
WIRE 112 64 96 64
WIRE 416 64 416 -16
WIRE 416 64 400 64
WIRE 0 96 0 80
WIRE 112 176 96 176
WIRE 416 176 400 176
WIRE 512 176 496 176
WIRE 544 176 512 176
WIRE 624 176 544 176
WIRE 736 176 624 176
WIRE 816 176 736 176
WIRE 544 192 544 176
WIRE 624 192 624 176
WIRE 736 192 736 176
WIRE 816 192 816 176
WIRE -80 288 -224 288
WIRE 16 288 -80 288
WIRE 112 288 16 288
WIRE 544 288 544 256
WIRE 544 288 400 288
WIRE 624 288 624 272
WIRE 624 288 544 288
WIRE 736 288 736 256
WIRE 816 288 816 272
WIRE -224 304 -224 288
WIRE -80 304 -80 288
WIRE 16 304 16 288
WIRE 624 304 624 288
WIRE -224 400 -224 384
WIRE -80 400 -80 368
WIRE 16 400 16 384
WIRE 112 400 16 400
WIRE 512 400 512 176
WIRE 512 400 400 400
WIRE 624 400 624 384
WIRE 16 416 16 400
WIRE 256 480 256 464
WIRE 16 512 16 496
SYMBOL res 608 176 R0
SYMATTR InstName R1
SYMATTR Value 243K
SYMBOL voltage 0 -16 R0
SYMATTR InstName V1
SYMATTR Value 3.6
SYMBOL res 0 288 R0
SYMATTR InstName R3
SYMATTR Value 412K
SYMBOL cap 720 192 R0
SYMATTR InstName C1
SYMATTR Value 10
SYMBOL res 0 400 R0
SYMATTR InstName R4
SYMATTR Value 150K
SYMBOL PowerProducts\\LTC3541 256 224 R0
SYMATTR InstName U1
SYMBOL cap 528 192 R0
SYMATTR InstName C2
SYMATTR Value 22p
SYMBOL cap -96 304 R0
SYMATTR InstName C3
SYMATTR Value 2.2
SYMBOL res 800 176 R0
SYMATTR InstName Rload1
SYMATTR Value 12.5
SYMBOL ind 400 192 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 5 56 VBottom 2
SYMATTR InstName L1
SYMATTR Value 2.2
SYMBOL res 608 288 R0
SYMATTR InstName R2
SYMATTR Value 115K
SYMBOL res -240 288 R0
SYMATTR InstName Rload2
SYMATTR Value 5
FLAG 256 480 0
FLAG 0 96 0
FLAG 0 -16 IN
FLAG 96 176 0
FLAG 816 288 0
FLAG 736 288 0
FLAG 816 176 OUT1
FLAG 624 400 0
FLAG -224 400 0
FLAG -80 400 0
FLAG -224 288 OUT2
FLAG 16 512 0
TEXT 528 464 Left 2 !.tran 1.5m startup
* Z:\home\khalils\Downloads\files\data\raw_asc\02f235f855be_switch-npn.asc
* Generated by LTspice 26.0.1 for Windows.
Q1 N001 P001 0 0 BC547C
Rload power N001 220
Rb P001 control 10k
V1 power 0 24
V2 control 0 PULSE(0 5 1 1m 1m 1
.model NPN NPN
.model PNP PNP
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.bjt
.tran 0 3
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 880 680
WIRE 240 80 64 80
WIRE 240 96 240 80
WIRE 240 208 240 176
WIRE 96 256 64 256
WIRE 240 336 240 304
FLAG 240 336 0
FLAG 64 256 control
IOPIN 64 256 In
FLAG 64 80 power
IOPIN 64 80 In
FLAG -256 224 0
FLAG -256 144 power
IOPIN -256 144 Out
FLAG -160 224 0
FLAG -160 144 control
IOPIN -160 144 Out
SYMBOL npn 176 208 R0
SYMATTR InstName Q1
SYMATTR Value BC547C
SYMBOL Res 224 80 R0
SYMATTR InstName Rload
SYMATTR Value 220
SYMBOL Res 192 240 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName Rb
SYMATTR Value 10k
SYMBOL Voltage -256 128 R0
SYMATTR InstName V1
SYMATTR Value 24
SYMBOL Voltage -160 128 R0
SYMATTR InstName V2
SYMATTR Value PULSE(0 5 1 1m 1m 1
TEXT -224 288 Left 2 !.tran 0 3
* Z:\home\khalils\Downloads\files\data\raw_asc\LTC6406.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\LTC6406.asy)
R2 N008 N007 402
R1 N003 N002 402
R3 N007 0 100
R4 N002 N001 100
V1 +V 0 3
V2 N001 0 sine(0 .2 1Meg)
XU1 N007 N005 +V N008 N003 0 NC_01 N002 N004 N006 LTC6406 ;pnba IN-)Vocm)V+)OUT+)OUT-)V-)_SHDN)IN+)OUTF+)OUTF-
C1 N005 0 .1
.tran 10u
.lib LTC7.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 980 680
WIRE -48 0 -240 0
WIRE 48 0 32 0
WIRE 272 0 48 0
WIRE 416 0 352 0
WIRE -240 16 -240 0
WIRE 192 64 192 48
WIRE -240 112 -240 96
WIRE 416 112 416 0
WIRE 416 112 384 112
WIRE 48 160 48 0
WIRE 80 160 48 160
WIRE 400 176 384 176
WIRE -16 208 -32 208
WIRE 80 208 48 208
WIRE 400 240 384 240
WIRE 80 256 48 256
WIRE -240 288 -240 272
WIRE 416 304 384 304
WIRE -240 384 -240 368
WIRE 192 384 192 352
WIRE -48 416 -64 416
WIRE 48 416 48 256
WIRE 48 416 32 416
WIRE 256 416 48 416
WIRE 416 416 416 304
WIRE 416 416 336 416
SYMBOL voltage -240 0 R0
SYMATTR InstName V2
SYMATTR Value sine(0 .2 1Meg)
SYMBOL res 352 400 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 402
SYMBOL voltage -240 272 R0
SYMATTR InstName V1
SYMATTR Value 3
SYMBOL res 48 -16 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R4
SYMATTR Value 100
SYMBOL opamps\\LTC6406 208 208 R0
SYMATTR InstName U1
SYMBOL res 48 400 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R3
SYMATTR Value 100
SYMBOL res 368 -16 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 402
SYMBOL cap 48 192 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C1
SYMATTR Value .1
FLAG -240 272 +V
FLAG 192 48 +V
FLAG -240 384 0
FLAG 192 384 0
FLAG -64 416 0
FLAG -240 112 0
FLAG -32 208 0
TEXT 240 496 Left 2 !.tran 10u
* Z:\home\khalils\Downloads\files\data\raw_asc\2f75cb6ac2fc_bss83.asc
* Generated by LTspice 26.0.1 for Windows.
* GAMMA added
* Enhanced model of the BSS83 from Philips\n \nSweep of Vgs from 0 to 5V at Vsb=-8, -4, 0V\n.dc V1 0 5 .1 V2 -8 0 4\nPlot Id(M1) to see how Vsb changes the behaviour.\n \nI added GAMMA=0.2 to the model to get the correct Ids(Vgs, Vsb).\nThe simulated drain current is independent of Vsb if GAMMA is \nomitted. This was clearly a missing parameter in the original model.\n \nThe complete ".model"-statement can be also put into a file \nlike BSS83.mod and added with a SPICEdirective.\n.include BSS83.mod
* * Philips model\n.MODEL BSS83 NMOS\n+ LEVEL=3\n+ W=1E-3\n+ L=1E-6\n+ VTO=2\n+ VMAX=1E6\n+ RS=3\n+ RD=3\n+ CJ=0.001396\n+ MJ=0.3936\n+ THETA=1E-6\n+ ETA=0.009307\n+ KAPPA=2.226
+ LEVEL=3
+ W=1E-3
+ L=1E-6
+ VTO=2
+ VMAX=1E6
+ RS=3
+ RD=3
+ CJ=0.001396
+ MJ=0.3936
+ THETA=1E-6
+ ETA=0.009307
+ KAPPA=2.226
+ GAMMA=0.2
M1 N001 N003 0 N002 BSS83
V1 N003 0 2
V3 N001 0 5
V2 N002 0 0
.model NMOS NMOS
.model PMOS PMOS
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.mos
.MODEL BSS83 NMOS
.dc V1 0 5 .1 V2 -8 0 4
.op
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1088 680
WIRE 32 256 32 224
WIRE 32 384 32 336
WIRE 128 224 32 224
WIRE 176 144 176 -32
WIRE 176 384 176 240
WIRE 288 -32 176 -32
WIRE 288 0 288 -32
WIRE 288 112 288 80
WIRE 288 192 176 192
WIRE 288 224 288 192
WIRE 288 384 288 304
SYMBOL voltage 32 240 R0
SYMATTR InstName V1
SYMATTR Value 2
SYMBOL nmos4 128 144 R0
SYMATTR InstName M1
SYMATTR Value BSS83
SYMBOL voltage 288 -16 R0
SYMATTR InstName V3
SYMATTR Value 5
SYMBOL voltage 288 208 R0
SYMATTR InstName V2
SYMATTR Value 0
FLAG 288 112 0
FLAG 288 384 0
FLAG 32 384 0
FLAG 176 384 0
TEXT 448 0 Left 0 !* GAMMA added\n.MODEL BSS83 NMOS\n+ LEVEL=3\n+ W=1E-3\n+ L=1E-6\n+ VTO=2\n+ VMAX=1E6\n+ RS=3\n+ RD=3\n+ CJ=0.001396\n+ MJ=0.3936\n+ THETA=1E-6\n+ ETA=0.009307\n+ KAPPA=2.226\n+ GAMMA=0.2
TEXT 32 -112 Left 0 !.dc V1 0 5  .1 V2 -8 0 4
TEXT 32 -72 Left 0 !.op
TEXT 32 -496 Left 0 ;Enhanced model of the BSS83 from Philips\n \nSweep of Vgs from 0 to 5V at Vsb=-8, -4, 0V\n.dc V1 0 5  .1 V2 -8 0 4\nPlot Id(M1) to see how Vsb changes the behaviour.\n \nI added GAMMA=0.2 to the model to get the correct Ids(Vgs, Vsb).\nThe simulated drain current is independent of Vsb if GAMMA is \nomitted. This was clearly a missing parameter in the original model.\n \nThe complete ".model"-statement can be also put into a file \nlike BSS83.mod and added with a SPICEdirective.\n.include BSS83.mod
TEXT 720 0 Left 0 ;* Philips model\n.MODEL BSS83 NMOS\n+ LEVEL=3\n+ W=1E-3\n+ L=1E-6\n+ VTO=2\n+ VMAX=1E6\n+ RS=3\n+ RD=3\n+ CJ=0.001396\n+ MJ=0.3936\n+ THETA=1E-6\n+ ETA=0.009307\n+ KAPPA=2.226
* Z:\home\khalils\Downloads\files\data\raw_asc\LTC6081.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\LTC6081.asy)
R3 N002 IN 2Meg
C4 N002 0 8.2p
C3 N003 N004 3.9p
R2 OUT N001 1Meg
C2 N004 IN 3.9p
XU1 N003 N001 +V -V OUT NC_01 LTC6081 ;pnba IN+)IN-)VCC)VEE)OUT)SHDN
V1 +V 0 2.5
V2 -V 0 -2.5
C1 OUT N001 47p
R5 0 N004 1Meg
R1 N001 0 10K
R4 N003 N002 2Meg
V3 IN 0 ac 1
.ac oct 10 1 1Meg
.lib LTC6.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 880 680
WIRE 96 -16 80 -16
WIRE 192 -16 176 -16
WIRE 208 -16 192 -16
WIRE 400 -16 272 -16
WIRE -176 48 -176 32
WIRE -80 48 -80 32
WIRE 192 48 192 -16
WIRE 256 48 192 48
WIRE 400 48 400 -16
WIRE 400 48 336 48
WIRE -176 144 -176 128
WIRE -80 144 -80 128
WIRE 48 144 48 128
WIRE 272 160 272 144
WIRE 192 208 192 48
WIRE 240 208 192 208
WIRE -64 224 -80 224
WIRE 48 224 48 208
WIRE 48 224 16 224
WIRE 96 224 48 224
WIRE 192 224 176 224
WIRE 400 240 400 48
WIRE 400 240 384 240
WIRE 416 240 400 240
WIRE -80 272 -80 224
WIRE -80 272 -208 272
WIRE 192 272 192 224
WIRE 240 272 192 272
WIRE -208 288 -208 272
WIRE -80 320 -80 272
WIRE -48 320 -80 320
WIRE 48 320 16 320
WIRE 96 320 48 320
WIRE 192 320 192 272
WIRE 192 320 160 320
WIRE 48 336 48 320
WIRE 272 352 272 320
WIRE -208 384 -208 368
WIRE 48 432 48 416
SYMBOL voltage -176 32 R0
SYMATTR InstName V1
SYMATTR Value 2.5
SYMBOL voltage -208 272 R0
SYMATTR InstName V3
SYMATTR Value ac 1
SYMBOL res 352 32 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 1Meg
SYMBOL LTC6081 272 240 R0
SYMATTR InstName U1
SYMBOL res 192 -32 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 10K
SYMBOL voltage -80 32 R0
SYMATTR InstName V2
SYMATTR Value -2.5
SYMBOL cap 16 304 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C2
SYMATTR Value 3.9p
SYMBOL res 192 208 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R4
SYMATTR Value 2Meg
SYMBOL cap 160 304 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C3
SYMATTR Value 3.9p
SYMBOL cap 32 208 M180
WINDOW 0 24 64 Left 2
WINDOW 3 24 8 Left 2
SYMATTR InstName C4
SYMATTR Value 8.2p
SYMBOL cap 272 -32 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C1
SYMATTR Value 47p
SYMBOL res 32 432 M180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName R5
SYMATTR Value 1Meg
SYMBOL res 32 208 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R3
SYMATTR Value 2Meg
FLAG -176 144 0
FLAG -80 144 0
FLAG 272 144 +V
FLAG -176 32 +V
FLAG -80 32 -V
FLAG 272 352 -V
FLAG 80 -16 0
FLAG -208 384 0
FLAG 48 432 0
FLAG 48 128 0
FLAG -208 272 IN
FLAG 416 240 OUT
TEXT 384 384 Left 2 !.ac oct 10 1 1Meg
* Z:\home\khalils\Downloads\files\data\raw_asc\0380c1055399_RGB_LED.asc
* Generated by LTspice 26.0.1 for Windows.
* LED: APTF1616LSEEZGKQBKC\nRGB Led\nSimulating current using resistors and Vf from datasheet
Vf_green N002 0 2.65
RGreen N002 0 330
Red N001 0 330
RBlue N003 0 330
Vf_red N001 0 1.8
Vf_blue N003 0 2.65
.tran 1
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 880 680
WIRE 176 48 32 48
WIRE 400 48 256 48
WIRE 608 48 464 48
WIRE 32 112 32 48
WIRE 256 112 256 48
WIRE 464 112 464 48
WIRE 176 224 176 48
WIRE 400 224 400 48
WIRE 608 224 608 48
WIRE 176 320 176 304
WIRE 400 320 400 304
WIRE 608 320 608 304
SYMBOL res 592 208 R0
SYMATTR InstName Blue
SYMATTR Value 330
SYMBOL voltage 464 96 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName Vf_blue
SYMATTR Value 2.65
SYMBOL res 160 208 R0
SYMATTR InstName Red
SYMATTR Value 330
SYMBOL voltage 32 96 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName Vf_red
SYMATTR Value 1.8
SYMBOL res 384 208 R0
SYMATTR InstName Green
SYMATTR Value 330
SYMBOL voltage 256 96 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName Vf_green
SYMATTR Value 2.65
FLAG 176 320 0
FLAG 32 192 0
FLAG 400 320 0
FLAG 256 192 0
FLAG 608 320 0
FLAG 464 192 0
TEXT 224 384 Left 2 !.tran 1
TEXT 64 -104 Left 2 ;LED: APTF1616LSEEZGKQBKC\nRGB Led\nSimulating current using resistors and Vf from datasheet
* Z:\home\khalils\Downloads\files\data\raw_asc\MAX17553A.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\MAX17553A.asy)
V1 vIN 0 24
R2 N002 0 287k
Rload vOUT 0 66
XU1 0 vIN N002 N004 vOUT N001 N003 N005 MAX17553A ;pnba GND)IN)EN/UV)HYST)FB/VO)LX)_RESET)RT
R4 vOUT N003 100k
R1 vIN N002 3.32Meg
R3 N002 N004 953k
L1 N001 vOUT 150 Rser=2
R7 N005 0 402k
C2 vOUT 0 10
.tran 4m startup
.lib MAX17553A.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 992 680
WIRE -176 -32 -192 -32
WIRE 48 -32 -176 -32
WIRE 176 -32 48 -32
WIRE 512 -32 464 -32
WIRE 624 -32 592 -32
WIRE 704 -32 624 -32
WIRE 768 -32 704 -32
WIRE 864 -32 768 -32
WIRE 896 -32 864 -32
WIRE 48 -16 48 -32
WIRE 624 -16 624 -32
WIRE 896 -16 896 -32
WIRE -192 16 -192 -32
WIRE 624 64 624 48
WIRE 896 80 896 64
WIRE 48 96 48 64
WIRE 48 96 -64 96
WIRE 176 96 48 96
WIRE -64 112 -64 96
WIRE 48 112 48 96
WIRE -192 128 -192 96
WIRE 512 128 464 128
WIRE 704 128 704 -32
WIRE 704 128 592 128
WIRE -64 224 -64 192
WIRE 48 224 48 192
WIRE 176 224 48 224
WIRE 768 224 768 -32
WIRE 768 224 464 224
WIRE 176 320 48 320
WIRE 48 336 48 320
WIRE 320 384 320 368
WIRE 48 432 48 416
SYMBOL res 608 112 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R4
SYMATTR Value 100k
SYMBOL voltage -192 0 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value 24
SYMBOL res 32 320 R0
SYMATTR InstName R7
SYMATTR Value 402k
SYMBOL res -80 96 R0
SYMATTR InstName R2
SYMATTR Value 287k
SYMBOL ind 496 -16 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 5 56 VBottom 2
SYMATTR InstName L1
SYMATTR Value 150
SYMATTR SpiceLine Rser=2
SYMBOL MAX17553A 320 144 R0
SYMATTR InstName U1
SYMBOL res 880 -32 R0
SYMATTR InstName Rload
SYMATTR Value 66
SYMBOL res 32 96 R0
SYMATTR InstName R3
SYMATTR Value 953k
SYMBOL cap 608 -16 R0
SYMATTR InstName C2
SYMATTR Value 10
SYMBOL res 32 -32 R0
SYMATTR InstName R1
SYMATTR Value 3.32Meg
FLAG -192 128 0
FLAG 320 384 0
FLAG 624 64 0
FLAG 896 80 0
FLAG -176 -32 vIN
FLAG 864 -32 vOUT
FLAG -64 224 0
FLAG 48 432 0
TEXT 480 392 Left 2 !.tran 4m startup