Si7li/ltspice-spice-circuits huggingface dataset:
* Z:\home\khalils\Downloads\files\data\raw_asc\LT1078A.asc
* Generated by LTspice 26.0.1 for Windows.
* Absolute Value Circuit(Full-Wave Rectifier)
* Library below included based on ModelFile attribute of instance XU1, XU2 (C:\users\khalils\AppData\Local\LTspice\lib\sym\OpAmps\LT1078A.asy)
XU2 N002 OUT +V 0 OUT LT1078 ;pnba In+)In-)V+)V-)OUT
R2 N001 IN 200K
XU1 0 N001 +V 0 N003 LT1078 ;pnba In+)In-)V+)V-)OUT
V3 IN 0 SINE(0 1 100)
R1 N002 N001 200K
V1 +V 0 5
D1 N003 N002 1N4148
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.tran 30m
.lib LTC.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 896 680
WIRE 32 96 -80 96
WIRE 128 96 112 96
WIRE 224 96 128 96
WIRE 416 96 304 96
WIRE -80 112 -80 96
WIRE 544 128 432 128
WIRE -192 160 -192 144
WIRE 480 192 480 176
WIRE -80 208 -80 192
WIRE 192 208 192 192
WIRE 432 208 432 128
WIRE 448 208 432 208
WIRE 128 224 128 96
WIRE 160 224 128 224
WIRE 544 224 544 128
WIRE 544 224 512 224
WIRE 576 224 544 224
WIRE 336 240 224 240
WIRE 416 240 416 96
WIRE 416 240 400 240
WIRE 448 240 416 240
WIRE -192 256 -192 240
WIRE 160 256 128 256
WIRE 480 272 480 256
WIRE 192 288 192 272
SYMBOL res 128 80 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 200K
SYMBOL diode 336 256 R270
WINDOW 0 32 32 VTop 2
WINDOW 3 0 32 VBottom 2
SYMATTR InstName D1
SYMATTR Value 1N4148
SYMBOL voltage -192 144 R0
SYMATTR InstName V1
SYMATTR Value 5
SYMBOL opamps\\LT1078A 480 160 R0
SYMATTR InstName U2
SYMBOL voltage -80 96 R0
SYMATTR InstName V3
SYMATTR Value SINE(0 1 100)
SYMBOL opamps\\LT1078A 192 176 R0
SYMATTR InstName U1
SYMBOL res 320 80 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 200K
FLAG -192 256 0
FLAG 192 192 +V
FLAG -192 144 +V
FLAG -80 208 0
FLAG 192 288 0
FLAG 480 176 +V
FLAG 480 272 0
FLAG -80 96 IN
FLAG 576 224 OUT
FLAG 128 256 0
TEXT 448 336 Left 2 !.tran 30m
TEXT 392 32 Bottom 2 ;Absolute Value Circuit(Full-Wave Rectifier)
* Z:\home\khalils\Downloads\files\data\raw_asc\1fd1c6261ae6_RLC.asc
* Generated by LTspice 26.0.1 for Windows.
V1 N001 0 SINE(0 2 1340) AC 1
R2 P001 N001 9.9
C1 N002 0 46.8n
L1 N002 P001 104.9m
.ac dec 1000 1 100Meg
.backanno
.end

* LTspice schematic (.asc):
Version 4.1
SHEET 1 880 680
WIRE 208 -32 128 -32
WIRE 128 16 128 -32
WIRE 368 16 368 -32
WIRE 128 128 128 96
WIRE 368 128 368 80
WIRE 368 128 128 128
FLAG 128 128 0
SYMBOL voltage 128 0 R0
WINDOW 123 24 124 Left 2
WINDOW 39 0 0 Left 0
SYMATTR Value2 AC 1
SYMATTR InstName V1
SYMATTR Value SINE(0 2 1340)
SYMBOL res 304 -48 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 9.9
SYMBOL cap 352 16 R0
SYMATTR InstName C1
SYMATTR Value 46.8n
SYMBOL ind 384 -48 R90
WINDOW 0 5 56 VBottom 2
WINDOW 3 30 62 VTop 2
SYMATTR InstName L1
SYMATTR Value 104.9m
TEXT 368 -8 Left 2 !.ac dec 1000 1 100Meg
* Z:\home\khalils\Downloads\files\data\raw_asc\093148bae00b_Draft1.asc
* Generated by LTspice 26.0.1 for Windows.
R5 N001 N003 R=(1-V(alpha_lin))*{Rlin}
R2 N003 vb 220k
R3 ve 0 22k
Vcc N004 0 9
R7 N002 N004 1e-3
R8 N002 N001 1e-3
V1 alpha_lin 0 PWL(0 0.1 2 1)
R1 N002 vc 22k
Q1 vc vb ve 0 NPN
R9 N005 0 1e-3
R4 vb 0 50k
R6 N003 N005 R=V(alpha_lin)*{Rlin}
.model NPN NPN
.model PNP PNP
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.bjt
.param Rlin 10k
.param Rvol 50k
.param duration=2
.tran 0 2 0
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 880 680
WIRE -128 -272 -192 -272
WIRE 256 -272 -48 -272
WIRE 384 -272 256 -272
WIRE -192 -240 -192 -272
WIRE 384 -224 384 -272
WIRE -192 -144 -192 -160
WIRE 128 -144 -192 -144
WIRE -192 -112 -192 -144
WIRE 128 -112 128 -144
WIRE 256 -112 256 -272
WIRE 384 -112 384 -144
WIRE -192 16 -192 -32
WIRE 256 48 256 -32
WIRE 256 96 256 48
WIRE -192 128 -192 96
WIRE 128 144 128 -32
WIRE 176 144 128 144
WIRE 192 144 176 144
WIRE -448 160 -528 160
WIRE -528 208 -528 160
WIRE 256 240 256 192
WIRE 128 288 128 144
WIRE 256 288 256 240
WIRE 128 416 128 368
WIRE 256 416 256 368
WIRE 256 416 128 416
WIRE 128 464 128 416
SYMBOL res -208 -128 R0
SYMATTR InstName R6
SYMATTR Value R=V(alpha_lin)*{Rlin}
SYMBOL res 240 -128 R0
SYMATTR InstName R1
SYMATTR Value 22k
SYMBOL voltage -528 192 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value PWL(0 0.1 2 1)
SYMBOL npn 192 96 R0
SYMATTR InstName Q1
SYMBOL res -208 -256 R0
SYMATTR InstName R5
SYMATTR Value R=(1-V(alpha_lin))*{Rlin}
SYMBOL res -208 0 R0
SYMATTR InstName R9
SYMATTR Value 1e-3
SYMBOL res 368 -240 R0
SYMATTR InstName R7
SYMATTR Value 1e-3
SYMBOL res 112 -128 R0
SYMATTR InstName R2
SYMATTR Value 220k
SYMBOL res 112 272 R0
SYMATTR InstName R4
SYMATTR Value 50k
SYMBOL voltage 384 -128 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName Vcc
SYMATTR Value 9
SYMBOL res -32 -288 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R8
SYMATTR Value 1e-3
SYMBOL res 240 272 R0
SYMATTR InstName R3
SYMATTR Value 22k
FLAG 384 -32 0
FLAG 128 464 0
FLAG 176 144 vb
FLAG 256 48 vc
FLAG 256 240 ve
FLAG -528 288 0
FLAG -448 160 alpha_lin
FLAG -192 128 0
TEXT -496 -248 Left 2 !.param Rlin 10k
TEXT -496 -216 Left 2 !.param Rvol 50k
TEXT -496 -320 Left 2 !.param duration=2
TEXT -498 -280 Left 2 !.tran 0 2 0
* Z:\home\khalils\Downloads\files\data\raw_asc\LTM4660.asc
* Generated by LTspice 26.0.1 for Windows.
V1 IN 0 48
C1 N004 N007 10 m=12
C2 N006 0 10 m=12
C3 OUT 0 150
R1 0 N009 4.32K
C4 N008 0 10n
R2 N005 0 61.9K
R3 N003 0 100K
Rload OUT 0 0.499
C5 N002 0 0.47
XU1 NC_01 NC_02 NC_03 NC_04 NC_05 N002 N008 N001 N003 N010 N005 OUT N009 N010 MP_06 NC_07 MP_08 MP_09 N001 N007 MP_10 MP_11 MP_12 MP_13 N006 N006 IN IN N004 MP_14 MP_15 MP_16 0 LTM4660 ;pnba Mode_PLLin)Clkout)Run)_Fault)Pgood)Timer)SS)ExtRef)Hys_prgm)CompA)Freq)Vout)Vfb)CompB))ExtVcc)))IntVcc)C-)))))Mid)Mid_sense)Vin_sense)Vin)C+))))Gnd
.tran 0 960m 958m startup
* Library below included based on ModelFile attribute of instance XU1 (C:\users\khalils\AppData\Local\LTspice\lib\sym\PowerProducts\LTM4660.asy)
.lib LTM4660.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 924 724
WIRE 0 -448 -336 -448
WIRE 0 -384 0 -448
WIRE -240 -320 -272 -320
WIRE -128 -320 -176 -320
WIRE 432 -320 384 -320
WIRE 576 -320 432 -320
WIRE 576 -304 576 -320
WIRE 432 -224 432 -320
WIRE 432 -224 384 -224
WIRE 576 -208 576 -224
WIRE -240 -128 -272 -128
WIRE -128 -128 -160 -128
WIRE 592 -128 384 -128
WIRE -240 -32 -272 -32
WIRE -128 -32 -160 -32
WIRE 432 -32 384 -32
WIRE 496 -32 432 -32
WIRE 496 -16 496 -32
WIRE 592 -16 592 -128
WIRE 432 64 432 -32
WIRE 432 64 384 64
WIRE 496 112 496 48
WIRE 592 160 592 48
WIRE 592 160 384 160
WIRE -336 256 -336 -448
WIRE -128 256 -336 256
WIRE 576 256 384 256
WIRE 672 256 576 256
WIRE 576 288 576 256
WIRE 672 288 672 256
WIRE 576 384 576 352
WIRE 672 384 672 368
WIRE -240 448 -288 448
WIRE -128 448 -176 448
WIRE 416 448 384 448
WIRE 528 448 496 448
WIRE 128 528 128 512
WIRE 0 560 0 512
WIRE 256 560 256 512
WIRE 256 560 0 560
FLAG 576 -208 0
FLAG 496 112 0
FLAG 576 384 0
FLAG 528 448 0
FLAG 128 528 0
FLAG -288 448 0
FLAG -272 -32 0
FLAG -272 -128 0
FLAG 672 384 0
FLAG 672 256 OUT
FLAG 576 -320 IN
FLAG -272 -320 0
SYMBOL voltage 576 -320 R0
SYMATTR InstName V1
SYMATTR Value 48
SYMBOL cap 576 -16 R0
WINDOW 123 24 84 Left 2
SYMATTR Value2 m=12
SYMATTR InstName C1
SYMATTR Value 10
SYMBOL cap 480 -16 R0
WINDOW 123 24 84 Left 2
SYMATTR Value2 m=12
SYMATTR InstName C2
SYMATTR Value 10
SYMBOL cap 560 288 R0
SYMATTR InstName C3
SYMATTR Value 150
SYMBOL res 512 432 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 4.32K
SYMBOL cap -176 432 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C4
SYMATTR Value 10n
SYMBOL res -144 -48 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 61.9K
SYMBOL res -144 -144 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R3
SYMATTR Value 100K
SYMBOL res 656 272 R0
SYMATTR InstName Rload
SYMATTR Value 0.499
SYMBOL cap -176 -336 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C5
SYMATTR Value 0.47
SYMBOL LTM4660 128 64 R0
SYMATTR InstName U1
TEXT 512 568 Left 2 !.tran 0 960m 958m startup
* Z:\home\khalils\Downloads\files\data\raw_asc\ADPL83200.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\ADPL83200.asy)
C1 OUT 0 10
Rload OUT 0 100
V1 N002 0 PWL(0 0 20u 5)
MQ1 N002 N003 OUT OUT FDC638P
XU1 N002 0 0 N004 N003 OUT ADPL83200 ;pnba VIN)GND)CTL)STAT)GATE)SENSE
R1 OUT N004 470K
V2 N001 0 PWL(0 0 1 7)
D1 N001 OUT 1N5819
.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
.tran 0 1 100u
.lib ADPL83200.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4.1
SHEET 1 2500 1444
WIRE 1760 1024 1216 1024
WIRE 2064 1024 1824 1024
WIRE 1216 1040 1216 1024
WIRE 1936 1104 1408 1104
WIRE 2064 1104 2064 1024
WIRE 2064 1104 2032 1104
WIRE 2112 1104 2064 1104
WIRE 2240 1104 2112 1104
WIRE 2336 1104 2240 1104
WIRE 2240 1120 2240 1104
WIRE 2336 1120 2336 1104
WIRE 1216 1136 1216 1120
WIRE 2112 1184 2112 1104
WIRE 1408 1216 1408 1104
WIRE 1680 1216 1408 1216
WIRE 2064 1216 2064 1104
WIRE 2064 1216 1936 1216
WIRE 2240 1216 2240 1184
WIRE 2336 1216 2336 1200
WIRE 1408 1232 1408 1216
WIRE 1680 1296 1648 1296
WIRE 2016 1296 2016 1152
WIRE 2016 1296 1936 1296
WIRE 1408 1328 1408 1312
WIRE 1680 1376 1648 1376
WIRE 2112 1376 2112 1264
WIRE 2112 1376 1936 1376
SYMBOL PMOS 1936 1152 R270
WINDOW 0 90 48 VCenter 2
WINDOW 3 63 45 VCenter 2
SYMATTR InstName Q1
SYMATTR Value FDC638P
SYMBOL ADPL83200 1808 1296 R0
SYMATTR InstName U1
SYMBOL cap 2224 1120 R0
SYMATTR InstName C1
SYMATTR Value 10
SYMBOL voltage 1216 1024 R0
SYMATTR InstName V2
SYMATTR Value PWL(0 0 1 7)
SYMBOL RES 2096 1168 R0
SYMATTR InstName R1
SYMATTR Value 470K
SYMBOL res 2320 1104 R0
SYMATTR InstName Rload
SYMATTR Value 100
SYMBOL VOLTAGE 1408 1216 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value PWL(0 0 20u 5)
SYMBOL schottky 1760 1040 R270
WINDOW 0 32 32 VTop 2
WINDOW 3 0 32 VBottom 2
SYMATTR InstName D1
SYMATTR Value 1N5819
FLAG 1648 1376 0
FLAG 1648 1296 0
FLAG 2240 1216 0
FLAG 2336 1216 0
FLAG 1408 1328 0
FLAG 1216 1136 0
FLAG 2336 1104 OUT
TEXT 2176 1408 Left 2 !.tran 0 1 100u
* Z:\home\khalils\Downloads\files\data\raw_asc\AD8541.asc
* Generated by LTspice 26.0.1 for Windows.
* Comparator Function
* Library below included based on ModelFile attribute of instance XU1 (C:\users\khalils\AppData\Local\LTspice\lib\sym\OpAmps\AD8541.asy)
R2 Vout N001 1Meg
XU1 Vref N001 V+ 0 Vout AD8541 ;pnba In+)In-)V+)V-)OUT
VREF Vref 0 2.5
R1 N001 Vin 1k
VS V+ 0 5
VIN Vin 0 SINE(2.5 1 5k)
.tran 1m
.lib AD8541.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 884 680
WIRE -160 144 -208 144
WIRE 64 144 -80 144
WIRE -400 256 -432 256
WIRE -352 256 -400 256
WIRE -208 256 -208 144
WIRE -208 256 -272 256
WIRE -80 256 -208 256
WIRE 64 272 64 144
WIRE 64 272 -16 272
WIRE 112 272 64 272
WIRE 144 272 112 272
WIRE -160 288 -208 288
WIRE -80 288 -160 288
WIRE -208 320 -208 288
WIRE -48 320 -48 304
WIRE -432 352 -432 256
WIRE -704 464 -704 432
WIRE -432 464 -432 432
WIRE -208 464 -208 400
SYMBOL res -64 128 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 1Meg
SYMBOL AD8541 -48 208 R0
SYMATTR InstName U1
SYMBOL voltage -208 304 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName VREF
SYMATTR Value 2.5
SYMBOL voltage -432 336 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName VIN
SYMATTR Value SINE(2.5 1 5k)
SYMBOL voltage -704 336 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName VS
SYMATTR Value 5
SYMBOL res -256 240 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 1k
FLAG -208 464 0
FLAG -704 464 0
FLAG -704 352 V+
FLAG -48 240 V+
FLAG -160 288 Vref
FLAG 112 272 Vout
FLAG -432 464 0
FLAG -400 256 Vin
FLAG -48 320 0
TEXT -720 200 Left 2 !.tran 1m
TEXT -712 136 Left 2 ;Comparator Function
* Z:\home\khalils\Downloads\files\data\raw_asc\LTC3204-3.3.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\LTC3204-3.3.asy)
C2 OUT 0 2.2
V1 IN 0 2.4
XU1 0 IN OUT N001 N002 IN LTC3204-3.3 ;pnba GND)Vin)Vout)C+)C-)_SHDN
C1 N001 N002 2.2
Rload OUT 0 100
.tran 1m startup
.lib LTC3204-3.3.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 880 680
WIRE 0 160 -96 160
WIRE 16 160 0 160
WIRE 384 160 272 160
WIRE 480 160 384 160
WIRE -96 176 -96 160
WIRE 384 176 384 160
WIRE 480 176 480 160
WIRE 0 240 0 160
WIRE 16 240 0 240
WIRE 304 240 272 240
WIRE 384 272 384 240
WIRE 480 272 480 256
WIRE -96 288 -96 256
WIRE 16 320 0 320
WIRE 304 320 304 304
WIRE 304 320 272 320
SYMBOL res 464 160 R0
SYMATTR InstName Rload
SYMATTR Value 100
SYMBOL voltage -96 160 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V1
SYMATTR Value 2.4
SYMBOL PowerProducts\\LTC3204-3.3 144 240 R0
SYMATTR InstName U1
SYMBOL cap 288 240 R0
SYMATTR InstName C1
SYMATTR Value 2.2
SYMBOL cap 368 176 R0
SYMATTR InstName C2
SYMATTR Value 2.2
FLAG 384 272 0
FLAG 480 272 0
FLAG 0 320 0
FLAG -96 288 0
FLAG -96 160 IN
FLAG 480 160 OUT
TEXT 384 320 Left 2 !.tran 1m startup
* Z:\home\khalils\Downloads\files\data\raw_asc\7091588f3c2f_NAND.asc
* Generated by LTspice 26.0.1 for Windows.
M1 NAND A N001 N001 Sp2025P
M2 NAND B N001 N001 Sp2025P
M3 NAND A N002 N002 Sp2025N
M4 N002 B 0 0 Sp2025N
V1 N001 0 5
.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 880 680
WIRE 336 -160 128 -160
WIRE 560 -160 336 -160
WIRE 128 -96 128 -160
WIRE 336 -96 336 -160
WIRE 32 -80 16 -80
WIRE 80 -80 32 -80
WIRE 240 -80 224 -80
WIRE 288 -80 240 -80
WIRE 128 32 128 0
WIRE 224 32 128 32
WIRE 336 32 336 0
WIRE 336 32 224 32
WIRE 432 32 336 32
WIRE 32 48 -16 48
WIRE 224 64 224 32
WIRE 32 112 -16 112
WIRE 128 144 112 144
WIRE 176 144 128 144
WIRE 224 208 224 160
WIRE 128 288 112 288
WIRE 176 288 128 288
WIRE 224 352 224 304
FLAG 224 352 0
FLAG -16 48 A
IOPIN -16 48 In
FLAG -16 112 B
IOPIN -16 112 In
FLAG 128 144 A
FLAG 128 288 B
FLAG 32 -80 A
FLAG 240 -80 B
FLAG 432 32 NAND
IOPIN 432 32 Out
FLAG 560 -80 0
SYMBOL pmos 80 0 M180
SYMATTR InstName M1
SYMATTR Value Sp2025P
SYMBOL pmos 288 0 M180
SYMATTR InstName M2
SYMATTR Value Sp2025P
SYMBOL nmos 176 64 R0
SYMATTR InstName M3
SYMATTR Value Sp2025N
SYMBOL nmos 176 208 R0
SYMATTR InstName M4
SYMATTR Value Sp2025N
SYMBOL voltage 560 -176 R0
SYMATTR InstName V1
SYMATTR Value 5
* Z:\home\khalils\Downloads\files\data\raw_asc\f6acf7870d97_Assignment_3a__vi_.asc
* Generated by LTspice 26.0.1 for Windows.
V1 N001 0 SINE(0 5 1000) Rser=0.001
R1 N002 0 1000
D1 N001 N002 1N4148
C1 N002 0 0.00001
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.tran 5ms
* Positive Half Wave Rectifier Circuit (with 10microF Capacitor) (Practical)
.backanno
.end

* LTspice schematic (.asc):
Version 4.1
SHEET 1 880 680
WIRE 304 80 192 80
WIRE 464 80 368 80
WIRE 576 80 464 80
WIRE 192 128 192 80
WIRE 464 128 464 80
WIRE 576 144 576 80
WIRE 192 256 192 208
WIRE 288 256 192 256
WIRE 464 256 464 208
WIRE 464 256 288 256
WIRE 576 256 576 208
WIRE 576 256 464 256
WIRE 288 288 288 256
FLAG 288 288 0
SYMBOL voltage 192 112 R0
WINDOW 123 0 0 Left 2
WINDOW 39 24 124 Left 2
SYMATTR SpiceLine Rser=0.001
SYMATTR InstName V1
SYMATTR Value SINE(0 5 1000)
SYMBOL res 448 112 R0
SYMATTR InstName R1
SYMATTR Value 1000
SYMBOL diode 304 96 R270
WINDOW 0 32 32 VTop 2
WINDOW 3 0 32 VBottom 2
SYMATTR InstName D1
SYMATTR Value 1N4148
SYMBOL cap 560 144 R0
SYMATTR InstName C1
SYMATTR Value 0.00001
TEXT 128 288 Left 2 !.tran 5ms
TEXT -24 8 Left 2 ;Positive Half Wave Rectifier Circuit (with 10microF Capacitor) (Practical)
* Z:\home\khalils\Downloads\files\data\raw_asc\283cf2fdc061_PWM_schematic.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\Comparators\LTC6752.asy)
A1 reset clk 0 0 0 c 0 0 SRFLOP Vhigh=5
A2 comp_out clk_dmax 0 0 0 0 reset 0 OR Vhigh=5
Vclk_Dmax clk_dmax 0 PULSE(0 5 {Dmax/fs} 1n 1n {(1-Dmax)/fs} {1/fs})
Vsawtooth sawtooth 0 PULSE({Voffset} {Voffset+VM} 0 {0.99/fs} {(0.01)/fs} 0 {1/fs})
XU1 sawtooth vc Vdd5V 0 comp_out LTC6752 ;pnba +In)-In)VCC)VEE)Q
V3 Vdd5V 0 5
Vclk clk 0 PULSE(0 5 0 1n 1n {Dmin/fs} {1/fs})
.param Dmin = 0
.param Dmax=0.9
.param fs = 100kHz
.param VM=1
.param Voffset=0
.lib LTC7.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1176 680
WIRE -176 -16 -320 -16
WIRE -96 -16 -176 -16
WIRE -320 64 -320 32
WIRE -320 96 -320 64
WIRE -96 144 -96 -16
WIRE -128 160 -320 160
WIRE 112 160 32 160
WIRE 256 160 112 160
WIRE 32 176 32 160
WIRE 32 176 -64 176
WIRE 256 176 192 176
WIRE 368 176 320 176
WIRE 448 176 368 176
WIRE -128 192 -176 192
WIRE 256 192 240 192
WIRE 240 208 240 192
WIRE 256 208 240 208
WIRE -96 224 -96 208
WIRE 240 224 240 208
WIRE 256 224 240 224
WIRE 448 224 336 224
WIRE 720 224 560 224
WIRE 240 240 240 224
WIRE 272 240 272 224
WIRE 272 240 240 240
WIRE -176 256 -176 192
WIRE 272 256 272 240
WIRE 192 288 192 176
WIRE -176 304 -176 256
WIRE 336 320 336 224
WIRE 192 352 192 288
WIRE 336 352 336 320
WIRE -176 400 -176 384
WIRE 192 448 192 432
WIRE 336 448 336 432
IOPIN 720 224 Out
IOPIN -320 160 In
SYMBOL Digital\\srflop 496 128 R0
WINDOW 3 0 0 Invisible 2
SYMATTR Value Vhigh=5
SYMATTR InstName A1
SYMBOL voltage -320 -32 R0
WINDOW 0 -71 37 Left 2
WINDOW 3 -64 67 Left 2
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V3
SYMATTR Value 5
SYMBOL voltage -176 288 R0
WINDOW 0 -149 89 Left 2
WINDOW 3 -477 161 Left 2
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName Vsawtooth
SYMATTR Value PULSE({Voffset} {Voffset+VM} 0 {0.99/fs} {(0.01)/fs} 0 {1/fs})
SYMBOL Comparators\\LTC6752 -96 112 R0
SYMATTR InstName U1
SYMBOL voltage 336 336 R0
WINDOW 0 45 59 Left 2
WINDOW 3 32 96 Left 2
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName Vclk
SYMATTR Value PULSE(0 5 0 1n 1n {Dmin/fs} {1/fs})
SYMBOL Digital\\or 288 128 R0
SYMATTR InstName A2
SYMATTR Value2 Vhigh=5
SYMBOL voltage 192 336 R0
WINDOW 0 -160 61 Left 2
WINDOW 3 -220 151 Left 2
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName Vclk_Dmax
SYMATTR Value PULSE(0 5 {Dmax/fs} 1n 1n {(1-Dmax)/fs} {1/fs})
FLAG 336 448 0
FLAG -96 224 0
FLAG -176 400 0
FLAG -320 96 0
FLAG 336 320 clk
FLAG -176 256 sawtooth
FLAG 192 448 0
FLAG 192 288 clk_dmax
FLAG 272 256 0
FLAG 368 176 reset
FLAG 720 224 c
FLAG -320 160 vc
FLAG -176 -16 Vdd5V
FLAG 112 160 comp_out
TEXT 40 -72 Left 2 !.param Dmin = 0
TEXT 40 -40 Left 2 !.param Dmax=0.9
TEXT 40 -104 Left 2 !.param fs = 100kHz
TEXT 40 -8 Left 2 !.param VM=1
TEXT 40 24 Left 2 !.param Voffset=0
* Z:\home\khalils\Downloads\files\data\raw_asc\LTC6409.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\LTC6409.asy)
V1 N004 0 5
R1 N002 N001 150
C2 N002 N001 1.3p
XU1 N007 N006 N008 N004 N005 N001 N002 0 LTC6409 ;pnba OUT-)IN+)SHDN)V+)VOCM)IN-)OUT+)V-
R3 N007 N006 150
R4 N006 0 150
C3 N007 N006 1.3p
V3 N003 0 PULSE(-.1 .1 .5n .01n .01n 6n 12n)
C1 N005 0 .1
R2 N001 N003 150
.tran 30n
.lib LTC6.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 992 680
WIRE 48 32 16 32
WIRE 240 32 112 32
WIRE -496 96 -512 96
WIRE -80 96 -416 96
WIRE 16 96 16 32
WIRE 16 96 0 96
WIRE 112 96 16 96
WIRE 240 96 240 32
WIRE 240 96 192 96
WIRE 80 144 -224 144
WIRE -224 160 -224 144
WIRE 80 160 80 144
WIRE 16 208 16 96
WIRE 48 208 16 208
WIRE 240 208 240 96
WIRE 240 208 208 208
WIRE -48 240 -64 240
WIRE 48 240 16 240
WIRE -224 256 -224 240
WIRE 48 272 16 272
WIRE 240 272 208 272
WIRE 80 336 80 320
WIRE 112 336 112 320
WIRE -80 384 -96 384
WIRE 16 384 16 272
WIRE 16 384 0 384
WIRE 112 384 16 384
WIRE 240 384 240 272
WIRE 240 384 192 384
WIRE 16 448 16 384
WIRE 48 448 16 448
WIRE 240 448 240 384
WIRE 240 448 112 448
SYMBOL res 16 368 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R4
SYMATTR Value 150
SYMBOL voltage -400 96 R90
WINDOW 123 74 56 VTop 2
WINDOW 39 53 56 VTop 2
WINDOW 0 -32 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName V3
SYMATTR Value PULSE(-.1 .1 .5n .01n .01n 6n 12n)
SYMBOL cap 112 16 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C2
SYMATTR Value 1.3p
SYMBOL opamps\\LTC6409 112 240 R0
SYMATTR InstName U1
SYMBOL res 16 80 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 150
SYMBOL res 208 80 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 150
SYMBOL res 208 368 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R3
SYMATTR Value 150
SYMBOL cap 112 432 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C3
SYMATTR Value 1.3p
SYMBOL voltage -224 144 R0
SYMATTR InstName V1
SYMATTR Value 5
SYMBOL cap 16 224 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C1
SYMATTR Value .1
FLAG -512 96 0
FLAG -224 256 0
FLAG -96 384 0
FLAG -64 240 0
FLAG 80 336 0
TEXT 288 472 Left 2 !.tran 30n
* Z:\home\khalils\Downloads\files\data\raw_asc\MeasureBW.asc
* Generated by LTspice 26.0.1 for Windows.
* This example schematic is supplied for informational/educational purposes only.
* Example of using a .measure script to measure the 3dB bandwidth of a response.\nExecute View=>SPICE Error Log after running the simulation to see the output of the\n.measure statements.
V3 IN 0 AC 1
C1 N002 IN 1
R1 0 N002 10K
Q1 OUT N002 N003 0 2N3904
R3 N003 0 1K
C3 N002 OUT 100p
R2 N002 N001 100K
C2 N003 0 20
R4 N001 OUT 20K
V1 N001 0 9
.model NPN NPN
.model PNP PNP
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.bjt
.ac oct 10 1 10Meg
.measure tmp max mag(V(out))
.measure BW trig mag(V(out))=tmp/sqrt(2) rise=1 targ mag(V(out))=tmp/sqrt(2) fall=last
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 2344 1936
WIRE 400 1152 192 1152
WIRE 576 1152 400 1152
WIRE 400 1168 400 1152
WIRE 576 1168 576 1152
WIRE 192 1184 192 1152
WIRE 400 1264 400 1248
WIRE 400 1264 272 1264
WIRE 448 1264 400 1264
WIRE 576 1264 576 1248
WIRE 272 1280 272 1264
WIRE 400 1312 400 1264
WIRE 80 1360 16 1360
WIRE 192 1360 192 1264
WIRE 192 1360 144 1360
WIRE 272 1360 272 1344
WIRE 272 1360 192 1360
WIRE 336 1360 272 1360
WIRE 16 1392 16 1360
WIRE 192 1392 192 1360
WIRE 400 1424 400 1408
WIRE 480 1424 400 1424
WIRE 400 1440 400 1424
WIRE 480 1456 480 1424
WIRE 16 1520 16 1472
WIRE 192 1520 192 1472
WIRE 400 1536 400 1520
WIRE 480 1536 480 1520
SYMBOL voltage 576 1152 R0
SYMATTR InstName V1
SYMATTR Value 9
SYMBOL cap 464 1456 R0
SYMATTR InstName C2
SYMATTR Value 20
SYMBOL cap 256 1344 M180
WINDOW 0 28 52 Left 2
WINDOW 3 24 8 Left 2
SYMATTR InstName C3
SYMATTR Value 100p
SYMBOL res 384 1424 R0
SYMATTR InstName R3
SYMATTR Value 1K
SYMBOL npn 336 1312 R0
SYMATTR InstName Q1
SYMATTR Value 2N3904
SYMBOL voltage 16 1376 R0
WINDOW 123 24 105 Left 2
SYMATTR Value2 AC 1
SYMATTR InstName V3
SYMATTR Value ""
SYMBOL res 176 1280 M180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName R2
SYMATTR Value 100K
SYMBOL cap 144 1344 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C1
SYMATTR Value 1
SYMBOL res 384 1152 R0
SYMATTR InstName R4
SYMATTR Value 20K
SYMBOL res 176 1488 M180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName R1
SYMATTR Value 10K
FLAG 16 1520 0
FLAG 16 1360 IN
FLAG 192 1520 0
FLAG 400 1536 0
FLAG 448 1264 OUT
FLAG 576 1264 0
FLAG 480 1536 0
TEXT 560 1392 Left 2 !.ac oct 10 1 10Meg
TEXT 424 1632 Top 1 ;This example schematic is supplied for informational/educational purposes only.
TEXT -48 1584 Left 2 !.measure tmp max mag(V(out))\n.measure BW trig mag(V(out))=tmp/sqrt(2) rise=1 targ mag(V(out))=tmp/sqrt(2) fall=last
TEXT -72 1088 Left 2 ;Example of using a .measure script to measure the 3dB bandwidth of a response.\nExecute View=>SPICE Error Log after running the simulation to see the output of the\n.measure statements.