* Z:\home\khalils\Downloads\files\data\raw_asc\LT3791-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\LT3791-1.asy)
C5 N021 0 .1
MQ1 N001 N010 N013 N013 RJK0651DPB
C3 IN N003 470n
R5 IN N007 499K
R2 IN N005 499K
R13 N004 N020 100K
MQ3 N002 N011 N014 N014 Si4840DY
C4 0 N004 4.7
R4 N003 N001 50
D2 N004 N006 MBRS1100
D1 N004 N008 MBRS1100
L1 N013 N014 10 Rser=20m Rpar=5K
R11 N002 OUT 15m
C6 N008 N013 .1
MQ2 N013 N016 N019 N019 RJK0651DPB
C2 N024 0 10n Rser=5.1K
R9 OUT N026 73.2K
Rload OUT 0 4.8
R1 IN N001 3m
R8 N019 0 4m
C9 N002 0 220 V=35 Irms=760m Rser=0.09 Lser=0 mfg="Panasonic" pn="ECA1VFQ221" type="Al electrolytic"
R7 N023 0 147K
XU1 N021 N022 N021 N020 N018 N021 N015 N012 N005 IN N003 N001 N004 N010 N008 N013 0 N016 N017 MP_01 N014 N006 MP_02 N011 N002 OUT N019 0 MP_03 0 N025 N020 N009 0 N023 N024 N026 N007 LT3791-1 ;pnba CTRL)SS)PWM)_C/10)_SHORT)Vref)ISmon)IVinmon)EN/UVLO)IVinP)IVinN)Vin)INTVcc)TG1)BST1)SW1)PGND)BG1)BG2))SW2)BST2))TG2)ISP)ISN)SNSP)SNSN))SGND)PWMOUT)CCM)CLKOUT)SYNC)RT)Vc)FB)OVLO
C7 N006 N014 .1
R14 N021 N022 100K
V1 IN 0 32
R6 N007 0 27.4K
C8 N002 0 4.7 x2 V=50 Irms=0 Rser=0.004 Lser=0 mfg="TDK" pn="C575OX7RIH475M" type="X7R"
R3 N005 0 56.2K
C1 N022 0 20n
R12 N004 N018 200K
MQ4 N014 N017 N019 N019 Si4840DY
R10 N026 0 3.83K
.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 2m startup
.lib LT3791-1.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 2888 1300
WIRE 736 -480 80 -480
WIRE -480 -464 -608 -464
WIRE -368 -464 -480 -464
WIRE -112 -464 -368 -464
WIRE -48 -464 -112 -464
WIRE 80 -464 80 -480
WIRE 80 -464 32 -464
WIRE 1440 -464 176 -464
WIRE -608 -448 -608 -464
WIRE 1312 -448 272 -448
WIRE -112 -384 -112 -464
WIRE -96 -384 -112 -384
WIRE -16 -384 -32 -384
WIRE 0 -384 -16 -384
WIRE 80 -384 80 -464
WIRE -608 -352 -608 -368
WIRE -368 -352 -368 -464
WIRE 368 -336 368 -352
WIRE 368 -336 -272 -336
WIRE 464 -336 368 -336
WIRE 592 -336 464 -336
WIRE -112 -320 -112 -384
WIRE -16 -320 -16 -384
WIRE 80 -320 80 -384
WIRE 176 -320 176 -464
WIRE 272 -320 272 -448
WIRE 368 -320 368 -336
WIRE -368 -256 -368 -272
WIRE -176 -256 -368 -256
WIRE 464 -256 464 -272
WIRE 464 -256 432 -256
WIRE 944 -256 464 -256
WIRE -368 -240 -368 -256
WIRE -480 -208 -480 -464
WIRE -176 -160 -192 -160
WIRE 592 -160 592 -272
WIRE 592 -160 432 -160
WIRE 1200 -160 1008 -160
WIRE 1312 -160 1312 -448
WIRE 1312 -160 1200 -160
WIRE 1344 -160 1312 -160
WIRE 1440 -160 1440 -464
WIRE 1440 -160 1424 -160
WIRE 1488 -160 1440 -160
WIRE -368 -144 -368 -160
WIRE 592 -144 592 -160
WIRE 736 -144 736 -480
WIRE 1008 -144 1008 -160
WIRE 1488 -144 1488 -160
WIRE 1200 -128 1200 -160
WIRE 1312 -128 1312 -160
WIRE -480 -112 -480 -128
WIRE -192 -112 -192 -160
WIRE -192 -112 -480 -112
WIRE -480 -96 -480 -112
WIRE 944 -96 944 -256
WIRE -176 -64 -192 -64
WIRE 688 -64 432 -64
WIRE 1152 -64 1056 -64
WIRE 1200 -48 1200 -64
WIRE 1312 -48 1312 -64
WIRE 1488 -48 1488 -64
WIRE -480 0 -480 -16
WIRE -176 32 -192 32
WIRE 592 32 592 -80
WIRE 592 32 432 32
WIRE 736 32 736 -48
WIRE 736 32 592 32
WIRE 816 32 736 32
WIRE 944 32 944 -32
WIRE 944 32 896 32
WIRE 1008 32 1008 -48
WIRE 1008 32 944 32
WIRE 1120 32 1008 32
WIRE 736 48 736 32
WIRE 1008 48 1008 32
WIRE -272 80 -272 -336
WIRE -272 80 -336 80
WIRE -272 128 -272 80
WIRE -176 128 -192 128
WIRE 688 128 432 128
WIRE 1088 128 1056 128
WIRE -336 224 -336 80
WIRE -272 224 -272 208
WIRE -176 224 -272 224
WIRE 736 224 736 144
WIRE 736 224 432 224
WIRE 864 224 736 224
WIRE 1008 224 1008 144
WIRE 1008 224 864 224
WIRE 864 240 864 224
WIRE -336 320 -336 304
WIRE -192 320 -336 320
WIRE -176 320 -192 320
WIRE 448 320 432 320
WIRE 864 336 864 320
WIRE -192 416 -192 320
WIRE -176 416 -192 416
WIRE 448 416 432 416
WIRE -272 512 -288 512
WIRE -192 512 -208 512
WIRE -176 512 -192 512
WIRE 1088 512 1088 128
WIRE 1088 512 432 512
WIRE -192 608 -192 512
WIRE -176 608 -192 608
WIRE 1120 608 1120 32
WIRE 1120 608 432 608
WIRE 1440 688 1440 -160
WIRE -192 704 -192 608
WIRE -192 704 -240 704
WIRE -176 704 -192 704
WIRE 1152 704 1152 -64
WIRE 1152 704 432 704
WIRE -240 736 -240 704
WIRE -112 784 -112 768
WIRE -32 784 -32 768
WIRE -32 784 -64 784
WIRE 48 784 48 768
WIRE 128 784 128 768
WIRE 208 784 208 768
WIRE 288 784 288 768
WIRE 368 784 368 768
WIRE 1440 784 1440 768
WIRE 1440 784 368 784
WIRE 1440 800 1440 784
WIRE -240 832 -240 816
WIRE -64 832 -64 784
WIRE -64 832 -240 832
WIRE -32 864 -32 848
WIRE 208 864 208 848
WIRE 128 880 128 864
WIRE 1440 896 1440 880
SYMBOL nmos 688 -144 R0
WINDOW 0 60 11 Left 2
WINDOW 3 56 106 Left 2
SYMATTR InstName Q1
SYMATTR Value RJK0651DPB
SYMBOL res 848 224 R0
SYMATTR InstName R8
SYMATTR Value 4m
SYMBOL res -256 720 R0
SYMATTR InstName R14
SYMATTR Value 100K
SYMBOL res 112 768 R0
SYMATTR Value 147K
SYMATTR InstName R7
SYMBOL cap -96 -368 R270
WINDOW 0 32 32 VTop 2
WINDOW 3 0 32 VBottom 2
SYMATTR InstName C3
SYMATTR Value 470n
SYMBOL schottky 448 -336 R0
WINDOW 0 38 21 Left 2
WINDOW 3 1 103 Left 2
SYMATTR InstName D2
SYMATTR Value MBRS1100
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL schottky 576 -336 R0
SYMATTR InstName D1
SYMATTR Value MBRS1100
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res -288 112 R0
SYMATTR InstName R12
SYMATTR Value 200K
SYMBOL cap -208 496 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C5
SYMATTR Value .1
SYMBOL res 1424 784 R0
SYMATTR InstName R10
SYMATTR Value 3.83K
SYMBOL res 1328 -144 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R11
SYMATTR Value 15m
SYMBOL res -64 -448 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R1
SYMATTR Value 3m
SYMBOL res 1424 672 R0
SYMATTR InstName R9
SYMATTR Value 73.2K
SYMBOL PowerProducts\\LT3791-1 128 224 R0
SYMATTR InstName U1
SYMBOL cap -48 784 R0
SYMATTR InstName C1
SYMATTR Value 20n
SYMBOL res -384 -256 R0
SYMATTR InstName R3
SYMATTR Value 56.2K
SYMBOL res -384 -368 R0
SYMATTR InstName R2
SYMATTR Value 499K
SYMBOL cap 576 -144 R0
SYMATTR InstName C6
SYMATTR Value .1
SYMBOL res -496 -224 R0
SYMATTR InstName R5
SYMATTR Value 499K
SYMBOL cap 352 -416 R0
WINDOW 0 32 14 Left 2
SYMATTR InstName C4
SYMATTR Value 4.7
SYMBOL nmos 1056 -144 M0
WINDOW 0 7 -5 Left 2
WINDOW 3 37 107 Right 2
SYMATTR InstName Q3
SYMATTR Value Si4840DY
SYMBOL polcap 1296 -128 R0
WINDOW 123 29 64 Left 2
WINDOW 3 36 35 Left 2
SYMATTR Value 220
SYMATTR InstName C9
SYMATTR Description Capacitor
SYMATTR Type cap
SYMATTR SpiceLine V=35 Irms=760m Rser=0.09 Lser=0 mfg="Panasonic" pn="ECA1VFQ221" type="Al electrolytic"
SYMBOL nmos 688 48 R0
WINDOW 0 55 27 Left 2
WINDOW 3 53 88 Left 2
SYMATTR InstName Q2
SYMATTR Value RJK0651DPB
SYMBOL nmos 1056 48 M0
WINDOW 0 6 -6 Left 2
WINDOW 3 39 108 Right 2
SYMATTR InstName Q4
SYMATTR Value Si4840DY
SYMBOL ind 800 48 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 5 56 VBottom 2
SYMATTR InstName L1
SYMATTR Value 10
SYMATTR SpiceLine Rser=20m Rpar=5K
SYMBOL cap 192 784 R0
WINDOW 3 38 33 Left 2
WINDOW 39 27 59 Left 2
SYMATTR Value 10n
SYMATTR SpiceLine Rser=5.1K
SYMATTR InstName C2
SYMBOL cap 928 -96 R0
SYMATTR InstName C7
SYMATTR Value .1
SYMBOL res -352 208 R0
SYMATTR InstName R13
SYMATTR Value 100K
SYMBOL res -496 -112 R0
SYMATTR InstName R6
SYMATTR Value 27.4K
SYMBOL cap 1184 -128 R0
WINDOW 123 29 64 Left 2
WINDOW 3 36 35 Left 2
SYMATTR Value2 x2
SYMATTR Value 4.7
SYMATTR InstName C8
SYMATTR SpiceLine V=50 Irms=0 Rser=0.004 Lser=0 mfg="TDK" pn="C575OX7RIH475M" type="X7R"
SYMBOL voltage -608 -464 R0
SYMATTR InstName V1
SYMATTR Value 32
SYMBOL res 1472 -160 R0
SYMATTR InstName Rload
SYMATTR Value 4.8
SYMBOL res -16 -368 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R4
SYMATTR Value 50
FLAG -112 784 0
FLAG -32 864 0
FLAG 48 784 0
FLAG 208 864 0
FLAG -608 -352 0
FLAG -368 -144 0
FLAG 368 -416 0
FLAG -480 0 0
FLAG 128 880 0
FLAG -288 512 0
FLAG 448 416 0
FLAG 864 336 0
FLAG 448 320 0
FLAG 1440 896 0
FLAG -608 -464 IN
FLAG 1488 -160 OUT
FLAG 1200 -48 0
FLAG 1312 -48 0
FLAG 1488 -48 0
TEXT 1008 840 Left 2 !.tran 2m startup