* Z:\home\khalils\Downloads\files\data\raw_asc\LT3791.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.asy)
R5 IN N007 1Meg
MQ5 N019 N022 0 0 Si4840DY
R2 IN N005 332K
R8 N015 0 4m
R10 N016 0 44.2K
V1 IN 0 16
R4 N003 N001 50
D6 N002 N019 LXK2-PW14 M=2 N=5
D2 N004 N006 MBRS1100
C6 N008 N011 .1
C7 N006 N012 .1
R6 N007 0 54.9K
C3 IN N003 470n
C4 0 N004 4.7
R7 N017 0 86.6K
XU1 N018 N020 N018 NC_01 NC_02 N018 NC_03 NC_04 N005 IN N003 N001 N004 N009 N008 N011 0 N013 N014 MP_05 N012 N006 MP_06 N010 OUT N002 N015 0 MP_07 0 N022 MP_08 NC_09 0 N017 N021 N016 N007 LT3791 ;pnba CTRL)SS)PWM)_OPENLED)_SHORTLED)Vref)ISmon)IVinmon)EN/UVLO)IVinP)IVinN)Vin)INTVcc)TG1)BST1)SW1)PGND)BG1)BG2))SW2)BST2))TG2)ISP)ISN)SNSP)SNSN))SGND)PWMOUT))CLKOUT)SYNC)RT)Vc)FB)OVLO
R9 OUT N016 1Meg
C1 N020 0 20n
MQ2 N011 N013 N015 N015 RJK0651DPB
L1 N011 N012 10 Rser=20m Rpar=5K
D1 N004 N008 MBRS1100
R11 OUT N002 50m
R3 N005 0 121K
C8 OUT 0 4.7 x5
R1 IN N001 3m
MQ3 OUT N010 N012 N012 Si4840DY
C2 N021 0 22n Rser=1K
MQ4 N012 N014 N015 N015 Si4840DY
MQ1 N001 N009 N011 N011 RJK0651DPB
C5 N018 0 .1
.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 4m startup
.lib LT3791.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 3924 1300
WIRE 736 -480 80 -480
WIRE 1424 -464 176 -464
WIRE -512 -448 -560 -448
WIRE -432 -448 -512 -448
WIRE -320 -448 -432 -448
WIRE -112 -448 -320 -448
WIRE -64 -448 -112 -448
WIRE 80 -448 80 -480
WIRE 80 -448 16 -448
WIRE 1312 -448 272 -448
WIRE -560 -432 -560 -448
WIRE -112 -368 -112 -448
WIRE -96 -368 -112 -368
WIRE -16 -368 -32 -368
WIRE 0 -368 -16 -368
WIRE 80 -368 80 -448
WIRE -320 -352 -320 -448
WIRE -560 -336 -560 -352
WIRE 368 -336 368 -352
WIRE 464 -336 368 -336
WIRE 592 -336 464 -336
WIRE -112 -320 -112 -368
WIRE -16 -320 -16 -368
WIRE 80 -320 80 -368
WIRE 176 -320 176 -464
WIRE 272 -320 272 -448
WIRE 368 -320 368 -336
WIRE -320 -256 -320 -272
WIRE -176 -256 -320 -256
WIRE 464 -256 464 -272
WIRE 464 -256 432 -256
WIRE 944 -256 464 -256
WIRE -320 -240 -320 -256
WIRE -432 -208 -432 -448
WIRE -176 -160 -224 -160
WIRE 592 -160 592 -272
WIRE 592 -160 432 -160
WIRE 1216 -160 1008 -160
WIRE 1264 -160 1216 -160
WIRE 1312 -160 1312 -448
WIRE 1312 -160 1264 -160
WIRE 1328 -160 1312 -160
WIRE 1424 -160 1424 -464
WIRE 1424 -160 1408 -160
WIRE -320 -144 -320 -160
WIRE 592 -144 592 -160
WIRE 736 -144 736 -480
WIRE 1008 -144 1008 -160
WIRE 1264 -144 1264 -160
WIRE -432 -112 -432 -128
WIRE -224 -112 -224 -160
WIRE -224 -112 -432 -112
WIRE -432 -96 -432 -112
WIRE 944 -96 944 -256
WIRE 688 -64 432 -64
WIRE 1152 -64 1056 -64
WIRE 1264 -64 1264 -80
WIRE -432 0 -432 -16
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 688 128 432 128
WIRE 1088 128 1056 128
WIRE 1216 160 1216 -160
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 1216 256 1216 240
WIRE 1216 256 1184 256
WIRE 1424 256 1424 -160
WIRE 1216 272 1216 256
WIRE 448 320 432 320
WIRE 864 336 864 320
WIRE 1216 368 1216 352
WIRE -272 416 -288 416
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 -192 704 -192 608
WIRE -176 704 -192 704
WIRE 1152 704 1152 -64
WIRE 1152 704 432 704
WIRE 1424 720 1424 320
WIRE -112 784 -112 768
WIRE -16 784 -16 768
WIRE 80 784 80 768
WIRE 176 784 176 768
WIRE 368 784 368 768
WIRE 1184 784 1184 256
WIRE 1184 784 368 784
WIRE 272 800 272 768
WIRE 1376 800 272 800
WIRE 1424 832 1424 816
WIRE -16 864 -16 848
WIRE 176 864 176 848
SYMBOL res 1200 144 R0
SYMATTR InstName R9
SYMATTR Value 1Meg
SYMBOL LED 1408 256 R0
WINDOW 123 22 109 Left 2
WINDOW 3 24 81 Left 2
SYMATTR Value2 M=2 N=5
SYMATTR Value LXK2-PW14
SYMATTR InstName D6
SYMATTR Description Diode
SYMATTR Type diode
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 848 224 R0
SYMATTR InstName R8
SYMATTR Value 4m
SYMBOL cap 1248 -144 R0
WINDOW 123 29 64 Left 2
WINDOW 3 36 35 Left 2
SYMATTR Value2 x5
SYMATTR Value 4.7
SYMATTR InstName C8
SYMBOL nmos 1376 720 R0
SYMATTR InstName Q5
SYMATTR Value Si4840DY
SYMBOL PowerProducts\\LT3791 128 224 R0
SYMATTR InstName U1
SYMBOL res 1312 -144 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R11
SYMATTR Value 50m
SYMBOL res -176 400 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R7
SYMATTR Value 86.6K
SYMBOL nmos 688 -144 R0
WINDOW 0 60 11 Left 2
WINDOW 3 56 106 Left 2
SYMATTR InstName Q1
SYMATTR Value RJK0651DPB
SYMBOL cap -32 784 R0
SYMATTR InstName C1
SYMATTR Value 20n
SYMBOL cap 352 -416 R0
WINDOW 0 32 14 Left 2
SYMATTR InstName C4
SYMATTR Value 4.7
SYMBOL cap 928 -96 R0
SYMATTR InstName C7
SYMATTR Value .1
SYMBOL nmos 1056 -144 M0
WINDOW 0 7 -5 Left 2
WINDOW 3 37 107 Right 2
SYMATTR InstName Q3
SYMATTR Value Si4840DY
SYMBOL nmos 1056 48 M0
WINDOW 0 6 -6 Left 2
WINDOW 3 39 108 Right 2
SYMATTR InstName Q4
SYMATTR Value Si4840DY
SYMBOL nmos 688 48 R0
WINDOW 0 55 27 Left 2
WINDOW 3 53 88 Left 2
SYMATTR InstName Q2
SYMATTR Value RJK0651DPB
SYMBOL cap -96 -352 R270
WINDOW 0 32 32 VTop 2
WINDOW 3 0 32 VBottom 2
SYMATTR InstName C3
SYMATTR Value 470n
SYMBOL cap 576 -144 R0
SYMATTR InstName C6
SYMATTR Value .1
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 voltage -560 -448 R0
SYMATTR InstName V1
SYMATTR Value 16
SYMBOL res -336 -256 R0
SYMATTR InstName R3
SYMATTR Value 121K
SYMBOL res -16 -352 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R4
SYMATTR Value 50
SYMBOL cap 160 784 R0
WINDOW 3 38 33 Left 2
WINDOW 39 27 59 Left 2
SYMATTR Value 22n
SYMATTR SpiceLine Rser=1K
SYMATTR InstName C2
SYMBOL res -448 -112 R0
SYMATTR InstName R6
SYMATTR Value 54.9K
SYMBOL res -336 -368 R0
SYMATTR InstName R2
SYMATTR Value 332K
SYMBOL res -448 -224 R0
SYMATTR InstName R5
SYMATTR Value 1Meg
SYMBOL res -80 -432 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R1
SYMATTR Value 3m
SYMBOL res 1200 256 R0
SYMATTR InstName R10
SYMATTR Value 44.2K
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
FLAG -112 784 0
FLAG -16 864 0
FLAG 80 784 0
FLAG 176 864 0
FLAG -560 -336 0
FLAG -320 -144 0
FLAG 368 -416 0
FLAG -432 0 0
FLAG -288 416 0
FLAG -288 512 0
FLAG 448 416 0
FLAG 864 336 0
FLAG 448 320 0
FLAG 1216 368 0
FLAG 1424 832 0
FLAG 1264 -160 OUT
FLAG 1264 -64 0
FLAG -512 -448 IN
TEXT 1008 840 Left 2 !.tran 4m startup