* Z:\home\khalils\Downloads\files\data\raw_asc\LT1641-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\LT1641-2.asy)
V2 N007 0 PWL(0 0 80m 0 80.001m 1 100m 1 100.001m 0 215m 0 215.001m 1 225m 1 225.001m 0 500m 0 500.001m 1 510m 1 510.001m 0 2000m 0)
R8 OUT N009 24.3K
D2 OUT N005 BZX84C15L
S1 N004 0 N007 0 myS1
V3 N003 0 PWL(0 0 140m 0 140.001m 1 160m 1 160.001m 0 2000m 0)
MQ1 N001 N002 OUT OUT IRF530
V1 IN 0 PWL(0 0 2.7m 0 2.701m 24)
XU1 N004 N006 N009 0 N008 N005 N001 IN LT1641-2 ;pnba ON)FB)PwrGD)GND)Timer)GATE)Sense)Vcc
C1 N008 0 0.68
R1 IN N004 49.9K
C3 OUT 0 30
R2 N004 0 3.4K
R6 OUT N006 59K
R3 N002 N005 10
R5 IN N001 20m
S2 OUT 0 N003 0 myS2
C2 0 N005 10n Rser=1K
R7 N006 0 3.57K
.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 1
.model myS1 SW(Ron=0.1 Roff=1G Vt=0.5 Vh=-.4)
.model myS2 SW(Ron=0.1 Roff=1K Vt=0.5 Vh=-.4)
.lib LT1641-2.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 2548 932
WIRE 304 32 -128 32
WIRE 448 32 304 32
WIRE 480 32 448 32
WIRE 592 32 560 32
WIRE 608 32 592 32
WIRE 800 32 704 32
WIRE 976 32 800 32
WIRE 1072 32 976 32
WIRE 1120 32 1072 32
WIRE 1216 32 1120 32
WIRE -128 48 -128 32
WIRE 1120 48 1120 32
WIRE 1216 48 1216 32
WIRE 304 64 304 32
WIRE 800 64 800 32
WIRE 1280 64 1264 64
WIRE 976 80 976 32
WIRE 688 96 688 80
WIRE 1328 112 1264 112
WIRE 1120 128 1120 112
WIRE 1328 128 1328 112
WIRE -128 144 -128 128
WIRE 448 144 448 32
WIRE 592 144 592 32
WIRE 1216 144 1216 128
WIRE 1072 192 1072 32
WIRE 304 208 304 144
WIRE 304 208 128 208
WIRE 400 208 304 208
WIRE 688 208 688 176
WIRE 688 208 656 208
WIRE 800 208 800 128
WIRE 800 208 688 208
WIRE 816 208 800 208
WIRE 304 224 304 208
WIRE 1328 224 1328 208
WIRE 128 288 128 208
WIRE 1072 288 1072 272
WIRE 1072 288 656 288
WIRE 80 304 64 304
WIRE 1072 304 1072 288
WIRE 304 320 304 304
WIRE 80 352 48 352
WIRE 320 368 304 368
WIRE 400 368 384 368
WIRE 976 368 976 160
WIRE 976 368 656 368
WIRE 48 384 48 352
WIRE 128 384 128 368
WIRE 1072 400 1072 384
WIRE 528 432 528 416
WIRE 48 480 48 464
SYMBOL nmos 608 80 R270
WINDOW 0 54 47 VTop 2
WINDOW 3 27 95 VRight 2
SYMATTR InstName Q1
SYMATTR Value IRF530
SYMBOL cap 384 352 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C1
SYMATTR Value 0.68
SYMBOL voltage 48 368 R0
WINDOW 123 24 138 Left 2
WINDOW 39 24 117 Left 2
SYMATTR Value PWL(0 0 80m 0 80.001m 1 100m 1 100.001m 0 215m 0 215.001m 1 225m 1 225.001m 0 500m 0 500.001m 1 510m 1 510.001m 0 2000m 0)
SYMATTR InstName V2
SYMBOL zener 784 64 R0
SYMATTR InstName D2
SYMATTR Value BZX84C15L
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL voltage -128 32 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V1
SYMATTR Value PWL(0 0 2.7m 0 2.701m 24)
SYMBOL sw 1216 32 M0
WINDOW 0 -13 10 Right 2
WINDOW 3 -18 99 Right 2
SYMATTR InstName S2
SYMATTR Value myS2
SYMBOL sw 128 272 R0
SYMATTR InstName S1
SYMATTR Value myS1
SYMBOL cap 880 192 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
WINDOW 39 60 32 VTop 2
SYMATTR InstName C2
SYMATTR Value 10n
SYMATTR SpiceLine Rser=1K
SYMBOL res 960 64 R0
SYMATTR InstName R8
SYMATTR Value 24.3K
SYMBOL res 672 80 R0
SYMATTR InstName R3
SYMATTR Value 10
SYMBOL res 288 208 R0
SYMATTR InstName R2
SYMATTR Value 3.4K
SYMBOL res 288 48 R0
SYMATTR InstName R1
SYMATTR Value 49.9K
SYMBOL cap 1104 48 R0
SYMATTR InstName C3
SYMATTR Value 30
SYMBOL res 1056 288 R0
SYMATTR InstName R7
SYMATTR Value 3.57K
SYMBOL voltage 1328 112 R0
WINDOW 123 24 138 Left 2
WINDOW 39 24 117 Left 2
SYMATTR Value PWL(0 0 140m 0 140.001m 1 160m 1 160.001m 0 2000m 0)
SYMATTR InstName V3
SYMBOL LT1641-2 528 272 R0
SYMATTR InstName U1
SYMBOL res 464 48 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R5
SYMATTR Value 20m
SYMBOL res 1056 176 R0
SYMATTR InstName R6
SYMATTR Value 59K
FLAG 880 208 0
FLAG 304 320 0
FLAG 304 368 0
FLAG 528 432 0
FLAG 1072 400 0
FLAG 1120 128 0
FLAG -128 144 0
FLAG 1216 32 OUT
FLAG -128 32 IN
FLAG 128 384 0
FLAG 48 480 0
FLAG 64 304 0
FLAG 1216 144 0
FLAG 1328 224 0
FLAG 1280 64 0
TEXT 888 528 Left 2 !.tran 1\n.model myS1 SW(Ron=0.1 Roff=1G Vt=0.5 Vh=-.4)\n.model myS2 SW(Ron=0.1 Roff=1K Vt=0.5 Vh=-.4)