* SPICE netlist
R1 DB N013 {R_TRIM}
R2 VCC N001 {R_ISENSE}
V1 VCC 0 {VCC}
Q4 V_LOAD N003 N002 0 TIP42C
Q5 0 N009 N003 0 2N3906
Q7 DB DB N007 0 2N3906
R7 VCC VT 145
R13 VT N005 145
RT VCC VT {300*exp(beta*(1/(TEMP+273.15)-1/(25+273.15)))}
D2 V_LOAD N003 BAT54SHY
R12 LEFT MIDDLE {R_SET}
L4 N011 MIDDLE {L_SET}
V5 V_LOGIC 0 3.3
V8 _INH 0 PULSE(3.3 0 50n 1n 1n {TON} {TC})
M2 N010 N008 V_LOAD V_LOAD RSL020P03
C1 VCC N001 62n
D3 N010 LEFT 1N914
D9 0 LEFT BZX84C27VLY
D5 N015 N014 BAT54
R6 0 N015 100
R10 N021 N014 220
R11 N014 V_LOGIC 220
Q11 N015 N014 V_LOGIC 0 2N3906
Q12 0 _INH N021 0 2N3906
D7 N018 N019 BAT54
R15 V_LOAD N008 {R_DRVH}
R16 N016 N018 110
R17 N018 0 110
Q14 V_LOGIC N015 N016 0 2N3904
Q15 N019 N018 0 0 2N3904
D12 RIGHT 0 1N914
L1 N001 N002 1p
D4 N004 VCC BZX84C6V2L
R3 N006 0 4.7k
Q8 0 N006 N013 0 2N3906
Q9 N006 N006 N004 0 2N3906
R4 N009 DB 200
Q1 N007 N007 N005 0 TIP42C
R9 N008 _DRV 1
R14 _DRV N019 {R_DRVL}
D1 N020 _I_SRC_EN BAT54
R18 N017 N020 110
R19 N020 0 110
Q2 V_LOGIC _INH N017 0 2N3904
Q6 _I_SRC_EN N020 0 0 2N3904
R20 VCC _I_SRC_EN {R_DRVL}
LF1 N012 N011 {L_SET*1023}
LF2 N012 RIGHT {L_SET*1024}
.tran {TC*20}
.step temp 0 75 25
;.step param VCC 18 25 1
.param VCC=20
;.step param R_SET 100 350 5
.param beta=3468
;.step param beta 3100 4000 100
;.step param R_SET 15 30 15
.temp 25
.step param L_SET list 5n 10n 20n
.param L_SET=1p
.param R_SET=15
.param TON=350n
.param TC=750n
.param R_ISENSE=0.562
;.step dec param L_COMP 100n 1000n 3
;.step param R_TRIM 3k 4k 25
.param R_TRIM=3.0k
.param R_DRVH=100
.param R_DRVL=200
;.step param R_DRVH 50 150 10
K LF1 LF2 1

* LTspice schematic (.asc)
Version 4.1
SHEET 1 2848 2848
WIRE -944 -1424 -1376 -1424
WIRE -864 -1424 -944 -1424
WIRE -608 -1424 -864 -1424
WIRE 240 -1424 -608 -1424
WIRE 352 -1424 240 -1424
WIRE 240 -1392 240 -1424
WIRE 352 -1376 352 -1424
WIRE -608 -1312 -608 -1424
WIRE -608 -1312 -800 -1312
WIRE 240 -1280 240 -1328
WIRE 352 -1280 352 -1296
WIRE 352 -1280 240 -1280
WIRE -800 -1248 -800 -1312
WIRE -608 -1248 -608 -1312
WIRE 352 -1248 352 -1280
WIRE -800 -1120 -800 -1168
WIRE -656 -1120 -800 -1120
WIRE -608 -1120 -608 -1168
WIRE -608 -1120 -656 -1120
WIRE 352 -1104 352 -1168
WIRE -944 -1072 -944 -1424
WIRE -608 -1056 -608 -1120
WIRE 48 -1056 -32 -1056
WIRE 288 -1056 48 -1056
WIRE 48 -960 48 -1056
WIRE 240 -960 48 -960
WIRE 352 -960 352 -1008
WIRE 352 -960 304 -960
WIRE -944 -928 -944 -1008
WIRE -608 -928 -608 -976
WIRE -1008 -880 -1104 -880
WIRE -672 -880 -768 -880
WIRE 352 -832 352 -960
WIRE 352 -816 352 -832
WIRE 352 -816 288 -816
WIRE -1104 -800 -1104 -880
WIRE -944 -800 -944 -832
WIRE -944 -800 -1104 -800
WIRE -768 -800 -768 -880
WIRE -608 -800 -608 -832
WIRE -608 -800 -768 -800
WIRE -608 -768 -608 -800
WIRE -672 -720 -768 -720
WIRE 352 -720 352 -816
WIRE 176 -704 144 -704
WIRE 288 -704 288 -736
WIRE 288 -704 256 -704
WIRE 304 -704 288 -704
WIRE -768 -640 -768 -720
WIRE -608 -640 -608 -672
WIRE -608 -640 -768 -640
WIRE -32 -624 -32 -1056
WIRE -608 -576 -608 -640
WIRE -576 -576 -608 -576
WIRE -256 -576 -576 -576
WIRE -96 -576 -176 -576
WIRE 352 -560 352 -624
WIRE -1376 -544 -1376 -1424
WIRE -608 -512 -608 -576
WIRE 352 -400 352 -496
WIRE 432 -400 352 -400
WIRE 512 -400 432 -400
WIRE 624 -400 592 -400
WIRE 672 -400 624 -400
WIRE 944 -400 752 -400
WIRE 1104 -400 1024 -400
WIRE 1296 -400 1184 -400
WIRE 1424 -400 1296 -400
WIRE 1424 -384 1424 -400
WIRE 352 -320 352 -400
WIRE -608 -224 -608 -432
WIRE -944 -176 -944 -800
WIRE -672 -176 -944 -176
WIRE -944 -128 -944 -176
WIRE -1376 -32 -1376 -464
WIRE -944 -32 -944 -48
WIRE -944 -32 -1376 -32
WIRE -768 -32 -944 -32
WIRE -608 -32 -608 -128
WIRE -608 -32 -768 -32
WIRE -32 -32 -32 -528
WIRE -32 -32 -608 -32
WIRE 352 -32 352 -256
WIRE 624 -32 352 -32
WIRE 1424 -32 1424 -320
WIRE 1424 -32 624 -32
WIRE -768 0 -768 -32
WIRE 624 48 624 -32
WIRE 720 320 64 320
WIRE 784 320 720 320
WIRE 0 432 -64 432
WIRE 768 432 0 432
WIRE 832 432 768 432
WIRE 1056 432 832 432
WIRE -928 624 -1120 624
WIRE -816 624 -928 624
WIRE -528 624 -816 624
WIRE -224 624 -528 624
WIRE 544 624 -224 624
WIRE -816 672 -816 624
WIRE -528 768 -528 624
WIRE 64 768 64 320
WIRE 832 768 832 432
WIRE -224 784 -224 624
WIRE 544 784 544 624
WIRE -816 816 -816 752
WIRE -688 816 -816 816
WIRE -592 816 -688 816
WIRE -288 832 -368 832
WIRE 480 832 400 832
WIRE -816 896 -816 816
WIRE 832 896 832 848
WIRE 960 896 832 896
WIRE 1008 896 960 896
WIRE -688 912 -688 816
WIRE -624 912 -688 912
WIRE -528 912 -528 864
WIRE -528 912 -560 912
WIRE -224 928 -224 880
WIRE 544 928 544 880
WIRE -528 992 -528 912
WIRE -368 992 -368 832
WIRE -368 992 -528 992
WIRE -32 992 -96 992
WIRE 64 992 64 848
WIRE 64 992 32 992
WIRE 736 992 672 992
WIRE 832 992 832 896
WIRE 832 992 800 992
WIRE -816 1024 -816 976
WIRE 64 1040 64 992
WIRE 832 1040 832 992
WIRE -1104 1072 -1136 1072
WIRE -992 1072 -1104 1072
WIRE -880 1072 -992 1072
WIRE -224 1088 -224 1008
WIRE -96 1088 -96 992
WIRE -96 1088 -224 1088
WIRE 0 1088 -96 1088
WIRE 544 1088 544 1008
WIRE 672 1088 672 992
WIRE 672 1088 544 1088
WIRE 768 1088 672 1088
WIRE -528 1136 -528 992
WIRE -224 1152 -224 1088
WIRE 544 1152 544 1088
WIRE -816 1280 -816 1120
WIRE -816 1280 -1056 1280
WIRE -656 1280 -816 1280
WIRE -528 1280 -528 1216
WIRE -528 1280 -656 1280
WIRE -224 1280 -224 1232
WIRE -224 1280 -528 1280
WIRE 64 1280 64 1136
WIRE 64 1280 -224 1280
WIRE 544 1280 544 1232
WIRE 544 1280 64 1280
WIRE 832 1280 832 1136
WIRE 832 1280 544 1280
WIRE 1056 1280 832 1280
WIRE -656 1360 -656 1280
WIRE -992 1424 -992 1072
WIRE 400 1424 400 832
WIRE 400 1424 -992 1424
FLAG -768 0 0
FLAG -656 -1120 VT
FLAG -864 -1424 VCC
FLAG -576 -576 DB
FLAG 624 48 0
FLAG -1424 304 0
FLAG -1424 224 V_LOGIC
FLAG -784 448 _INH
FLAG -784 528 0
FLAG 144 -704 _DRV
FLAG 432 -400 LEFT
FLAG 1296 -400 RIGHT
FLAG 352 -832 V_LOAD
FLAG -1104 1072 _INH
FLAG -928 624 V_LOGIC
FLAG 0 432 VCC
FLAG -656 1360 0
FLAG 720 320 _DRV
FLAG 960 896 _I_SRC_EN
FLAG 768 432 VCC
FLAG 624 -400 MIDDLE
SYMBOL res -624 -528 R0
SYMATTR InstName R1
SYMATTR Value {R_TRIM}
SYMBOL res 336 -1392 R0
SYMATTR InstName R2
SYMATTR Value {R_ISENSE}
SYMBOL voltage -1376 -560 R0
SYMATTR InstName V1
SYMATTR Value {VCC}
SYMBOL pnp 288 -1008 M180
SYMATTR InstName Q4
SYMATTR Value TIP42C
SYMBOL pnp -96 -528 M180
SYMATTR InstName Q5
SYMATTR Value 2N3906
SYMBOL pnp -672 -672 M180
SYMATTR InstName Q7
SYMATTR Value 2N3906
SYMBOL res -624 -1264 R0
SYMATTR InstName R7
SYMATTR Value 145
SYMBOL res -624 -1072 R0
SYMATTR InstName R13
SYMATTR Value 145
SYMBOL res -816 -1264 R0
SYMATTR Value {300*exp(beta*(1/(TEMP+273.15)-1/(25+273.15)))}
SYMATTR InstName RT
SYMBOL schottky 304 -976 R90
SYMATTR InstName D2
SYMATTR Value BAT54SHY
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 496 -384 R270
SYMATTR InstName R12
SYMATTR Value {R_SET}
SYMBOL ind 768 -416 R90
SYMATTR InstName L4
SYMATTR Value {L_SET}
SYMBOL voltage -1424 208 R0
SYMATTR InstName V5
SYMATTR Value 3.3
SYMBOL voltage -784 432 R0
SYMATTR Value PULSE(3.3 0 50n 1n 1n {TON} {TC})
SYMATTR InstName V8
SYMBOL pmos 304 -624 M180
SYMATTR InstName M2
SYMATTR Value RSL020P03
SYMBOL cap 224 -1392 R0
SYMATTR InstName C1
SYMATTR Value 62n
SYMBOL diode 336 -560 R0
SYMATTR InstName D3
SYMATTR Value 1N914
SYMBOL diode 368 -256 R180
SYMATTR InstName D9
SYMATTR Value BZX84C27VLY
SYMBOL schottky -560 928 M270
SYMATTR InstName D5
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res -544 1232 M180
SYMATTR InstName R6
SYMATTR Value 100
SYMBOL res -832 992 M180
SYMATTR InstName R10
SYMATTR Value 220
SYMBOL res -832 768 M180
SYMATTR InstName R11
SYMATTR Value 220
SYMBOL pnp -592 864 M180
SYMATTR InstName Q11
SYMATTR Value 2N3906
SYMBOL pnp -880 1120 M180
SYMATTR InstName Q12
SYMATTR Value 2N3906
SYMBOL schottky -32 976 M90
SYMATTR InstName D7
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 272 -832 R0
SYMATTR InstName R15
SYMATTR Value {R_DRVH}
SYMBOL res -240 912 R0
SYMATTR InstName R16
SYMATTR Value 110
SYMBOL res -240 1136 R0
SYMATTR InstName R17
SYMATTR Value 110
SYMBOL npn -288 784 R0
SYMATTR InstName Q14
SYMATTR Value 2N3904
SYMBOL npn 0 1040 R0
SYMATTR InstName Q15
SYMATTR Value 2N3904
SYMBOL diode 1408 -384 R0
SYMATTR InstName D12
SYMATTR Value 1N914
SYMBOL ind 336 -1264 R0
SYMATTR InstName L1
SYMATTR Value 1p
SYMBOL zener -928 -1008 R180
SYMATTR InstName D4
SYMATTR Value BZX84C6V2L
SYMBOL res -960 -144 R0
SYMATTR InstName R3
SYMATTR Value 4.7k
SYMBOL pnp -672 -128 M180
SYMATTR InstName Q8
SYMATTR Value 2N3906
SYMBOL pnp -1008 -832 M180
SYMATTR InstName Q9
SYMATTR Value 2N3906
SYMBOL res -160 -592 R90
SYMATTR InstName R4
SYMATTR Value 200
SYMBOL pnp -672 -832 M180
SYMATTR InstName Q1
SYMATTR Value TIP42C
SYMBOL res 272 -720 R90
SYMATTR InstName R9
SYMATTR Value 1
SYMBOL res 48 752 R0
SYMATTR InstName R14
SYMATTR Value {R_DRVL}
SYMBOL schottky 736 976 M90
SYMATTR InstName D1
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 528 912 R0
SYMATTR InstName R18
SYMATTR Value 110
SYMBOL res 528 1136 R0
SYMATTR InstName R19
SYMATTR Value 110
SYMBOL npn 480 784 R0
SYMATTR InstName Q2
SYMATTR Value 2N3904
SYMBOL npn 768 1040 R0
SYMATTR InstName Q6
SYMATTR Value 2N3904
SYMBOL res 816 752 R0
SYMATTR InstName R20
SYMATTR Value {R_DRVL}
SYMBOL ind 1040 -416 R90
SYMATTR InstName LF1
SYMATTR Value {L_SET*1023}
SYMATTR Type ind
SYMBOL ind 1088 -384 R270
SYMATTR InstName LF2
SYMATTR Value {L_SET*1024}
SYMATTR Type ind