* SPICE netlist
Q2 N011 N011 N013 0 2N3904
R1 VCC N011 4.32k
R2 VCC N001 {R_ISENSE}
V1 VCC 0 {VCC}
Q3 DB N011 N013 0 2N3904
Q4 V_LOAD N003 N002 0 TIP42C
Q5 0 N009 N003 0 2N3906
Q7 DB DB N008 0 2N3906
Q6 N004 N004 N008 0 2N3904
R7 VCC VT 145
R13 VT N004 145
RT VCC VT 300
D2 V_LOAD N003 BAT54SHY
R12 LEFT N012 {R_SET}
L4 RIGHT N012 {L_SET}
V5 V_LOGIC 0 3.3
V8 INH 0 PULSE(0 3.3 50n 1n 1n {TON} {TC})
M2 N010 DRV V_LOAD V_LOAD RSL020P03
C1 VCC N001 33n
D3 N010 LEFT 1N914
D9 0 LEFT BZX84C27VLY
D5 N016 N014 BAT54
R6 0 N016 100
R10 N019 N014 220
R11 N014 V_LOGIC 220
Q11 N016 N014 V_LOGIC 0 2N3906
Q12 0 INH N019 0 2N3906
D7 N018 _DRV BAT54
R15 VCC _DRV 100
R16 N017 N018 110
R17 N018 0 110
Q14 V_LOGIC N016 N017 0 2N3904
Q15 _DRV N018 0 0 2N3904
D8 DRV N015 BAT54
R18 0 DRV 100
R19 N020 N015 2k
R22 N015 VCC 110
Q16 DRV N015 VCC 0 2N3906
Q17 0 _DRV N020 0 2N3906
M1 0 _DRV 0 0 RSR025N03
D12 RIGHT 0 1N914
D13 0 RIGHT BZX84C27VLY
L1 N001 N002 1p
D4 N005 VCC BZX84C6V2L
R3 N006 0 4.7k
Q8 0 N006 N013 0 2N3906
C3 NC_01 0 10n
Q9 N006 N006 N005 0 2N3906
R4 N009 DB 100
C2 0 N007 120p
R5 N007 V_LOAD 1k
.tran {TC*10} uic
;.step temp list -25 0 25 50 75
;.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 1p 1u 2u 4u
.param L_SET=1p
.param R_SET=15
.param TON=10350n
.param TC=30500n
.param R_ISENSE=0.562
;.step dec param L_COMP 100n 1000n 3

* LTspice schematic (.asc)
Version 4
SHEET 1 2752 2784
WIRE -896 -1392 -1328 -1392
WIRE -816 -1392 -896 -1392
WIRE -656 -1392 -816 -1392
WIRE -320 -1392 -656 -1392
WIRE 288 -1392 -320 -1392
WIRE 400 -1392 288 -1392
WIRE 288 -1360 288 -1392
WIRE 400 -1344 400 -1392
WIRE -320 -1280 -320 -1392
WIRE -320 -1280 -512 -1280
WIRE 288 -1248 288 -1296
WIRE 400 -1248 400 -1264
WIRE 400 -1248 288 -1248
WIRE -512 -1216 -512 -1280
WIRE -320 -1216 -320 -1280
WIRE 400 -1216 400 -1248
WIRE -512 -1088 -512 -1136
WIRE -368 -1088 -512 -1088
WIRE -320 -1088 -320 -1136
WIRE -320 -1088 -368 -1088
WIRE 400 -1072 400 -1136
WIRE -896 -1040 -896 -1392
WIRE -320 -1024 -320 -1088
WIRE 96 -1024 16 -1024
WIRE 336 -1024 96 -1024
WIRE -320 -928 -320 -944
WIRE -320 -928 -480 -928
WIRE 96 -928 96 -1024
WIRE 288 -928 96 -928
WIRE 400 -928 400 -976
WIRE 400 -928 352 -928
WIRE -896 -896 -896 -976
WIRE -320 -896 -320 -928
WIRE -960 -848 -1056 -848
WIRE -480 -848 -480 -928
WIRE -384 -848 -480 -848
WIRE 400 -816 400 -928
WIRE 464 -816 400 -816
WIRE 576 -816 544 -816
WIRE 704 -816 640 -816
WIRE 400 -800 400 -816
WIRE -1056 -768 -1056 -848
WIRE -896 -768 -896 -800
WIRE -896 -768 -1056 -768
WIRE -320 -736 -320 -800
WIRE -384 -688 -480 -688
WIRE 400 -688 400 -800
WIRE 352 -672 192 -672
WIRE -480 -608 -480 -688
WIRE -320 -608 -320 -640
WIRE -320 -608 -480 -608
WIRE 16 -592 16 -1024
WIRE -656 -544 -656 -1392
WIRE -320 -544 -320 -608
WIRE -288 -544 -320 -544
WIRE -208 -544 -288 -544
WIRE -48 -544 -128 -544
WIRE 400 -528 400 -592
WIRE -1328 -512 -1328 -1392
WIRE -656 -400 -656 -464
WIRE -448 -400 -656 -400
WIRE -656 -368 -656 -400
WIRE -320 -368 -320 -544
WIRE 400 -368 400 -464
WIRE 480 -368 400 -368
WIRE 560 -368 480 -368
WIRE 720 -368 640 -368
WIRE 864 -368 800 -368
WIRE 976 -368 864 -368
WIRE 1104 -368 976 -368
WIRE 976 -352 976 -368
WIRE -448 -320 -448 -400
WIRE -448 -320 -592 -320
WIRE -384 -320 -448 -320
WIRE 1104 -320 1104 -368
WIRE 400 -288 400 -368
WIRE -656 -224 -656 -272
WIRE -320 -224 -320 -272
WIRE -320 -224 -656 -224
WIRE 976 -224 976 -288
WIRE 976 -224 768 -224
WIRE 976 -208 976 -224
WIRE -656 -192 -656 -224
WIRE -896 -144 -896 -768
WIRE -720 -144 -896 -144
WIRE 1376 -128 1024 -128
WIRE -896 -96 -896 -144
WIRE -1328 0 -1328 -432
WIRE -896 0 -896 -16
WIRE -896 0 -1328 0
WIRE -720 0 -896 0
WIRE -656 0 -656 -96
WIRE -656 0 -720 0
WIRE -224 0 -224 -176
WIRE -224 0 -656 0
WIRE 16 0 16 -496
WIRE 16 0 -224 0
WIRE 400 0 400 -224
WIRE 672 0 400 0
WIRE 768 0 768 -224
WIRE 768 0 672 0
WIRE 976 0 976 -112
WIRE 976 0 768 0
WIRE 1104 0 1104 -256
WIRE 1104 0 976 0
WIRE -720 32 -720 0
WIRE 672 80 672 0
WIRE 768 544 208 544
WIRE 832 544 768 544
WIRE -880 656 -1072 656
WIRE -768 656 -880 656
WIRE -480 656 -768 656
WIRE -176 656 -480 656
WIRE 48 656 -16 656
WIRE 112 656 48 656
WIRE 336 656 112 656
WIRE 624 656 336 656
WIRE -768 704 -768 656
WIRE 336 704 336 656
WIRE 112 720 112 656
WIRE -480 800 -480 656
WIRE 624 800 624 656
WIRE -176 816 -176 656
WIRE -768 848 -768 784
WIRE -640 848 -768 848
WIRE -544 848 -640 848
WIRE 336 848 336 784
WIRE 464 848 336 848
WIRE 560 848 464 848
WIRE -240 864 -320 864
WIRE 112 912 112 800
WIRE 208 912 208 544
WIRE 208 912 112 912
WIRE -768 928 -768 848
WIRE 336 928 336 848
WIRE -640 944 -640 848
WIRE -576 944 -640 944
WIRE -480 944 -480 896
WIRE -480 944 -512 944
WIRE 464 944 464 848
WIRE 528 944 464 944
WIRE 624 944 624 896
WIRE 624 944 592 944
WIRE -176 960 -176 912
WIRE -480 1024 -480 944
WIRE -320 1024 -320 864
WIRE -320 1024 -480 1024
WIRE 16 1024 -48 1024
WIRE 112 1024 112 912
WIRE 112 1024 80 1024
WIRE -768 1056 -768 1008
WIRE 336 1056 336 1008
WIRE 112 1072 112 1024
WIRE 624 1072 624 944
WIRE 768 1072 624 1072
WIRE 832 1072 768 1072
WIRE -1056 1104 -1088 1104
WIRE -832 1104 -1056 1104
WIRE 208 1104 208 912
WIRE 272 1104 208 1104
WIRE -176 1120 -176 1040
WIRE -48 1120 -48 1024
WIRE -48 1120 -176 1120
WIRE 48 1120 -48 1120
WIRE -480 1168 -480 1024
WIRE 624 1168 624 1072
WIRE -176 1184 -176 1120
WIRE -768 1312 -768 1152
WIRE -768 1312 -1008 1312
WIRE -608 1312 -768 1312
WIRE -480 1312 -480 1248
WIRE -480 1312 -608 1312
WIRE -176 1312 -176 1264
WIRE -176 1312 -480 1312
WIRE 112 1312 112 1168
WIRE 112 1312 -176 1312
WIRE 336 1312 336 1152
WIRE 336 1312 112 1312
WIRE 624 1312 624 1248
WIRE 624 1312 336 1312
WIRE -608 1392 -608 1312
FLAG -720 32 0
FLAG -368 -1088 VT
FLAG -816 -1392 VCC
FLAG -288 -544 DB
FLAG 672 80 0
FLAG -1376 336 0
FLAG -1376 256 V_LOGIC
FLAG -736 480 INH
FLAG -736 560 0
FLAG 192 -672 DRV
FLAG 480 -368 LEFT
FLAG 864 -368 RIGHT
FLAG 400 -800 V_LOAD
FLAG -1056 1104 INH
FLAG -880 656 V_LOGIC
FLAG 48 656 VCC
FLAG -608 1392 0
FLAG 768 544 _DRV
FLAG 768 1072 DRV
FLAG 1376 -128 _DRV
FLAG 704 -816 0
SYMBOL npn -592 -368 M0
SYMATTR InstName Q2
SYMATTR Value 2N3904
SYMBOL res -672 -560 R0
SYMATTR InstName R1
SYMATTR Value 4.32k
SYMBOL res 384 -1360 R0
SYMATTR InstName R2
SYMATTR Value {R_ISENSE}
SYMBOL voltage -1328 -528 R0
SYMATTR InstName V1
SYMATTR Value {VCC}
SYMBOL npn -384 -368 R0
SYMATTR InstName Q3
SYMATTR Value 2N3904
SYMBOL pnp 336 -976 M180
SYMATTR InstName Q4
SYMATTR Value TIP42C
SYMBOL pnp -48 -496 M180
SYMATTR InstName Q5
SYMATTR Value 2N3906
SYMBOL pnp -384 -640 M180
SYMATTR InstName Q7
SYMATTR Value 2N3906
SYMBOL npn -384 -896 R0
SYMATTR InstName Q6
SYMATTR Value 2N3904
SYMBOL res -336 -1232 R0
SYMATTR InstName R7
SYMATTR Value 145
SYMBOL res -336 -1040 R0
SYMATTR InstName R13
SYMATTR Value 145
SYMBOL res -528 -1232 R0
SYMATTR Value 300
SYMATTR InstName RT
SYMBOL schottky 352 -944 R90
SYMATTR InstName D2
SYMATTR Value BAT54SHY
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 544 -352 R270
SYMATTR InstName R12
SYMATTR Value {R_SET}
SYMBOL ind 816 -384 R90
SYMATTR InstName L4
SYMATTR Value {L_SET}
SYMBOL voltage -1376 240 R0
SYMATTR InstName V5
SYMATTR Value 3.3
SYMBOL voltage -736 464 R0
SYMATTR Value PULSE(0 3.3 50n 1n 1n {TON} {TC})
SYMATTR InstName V8
SYMBOL pmos 352 -592 M180
SYMATTR InstName M2
SYMATTR Value RSL020P03
SYMBOL cap 272 -1360 R0
SYMATTR InstName C1
SYMATTR Value 33n
SYMBOL diode 384 -528 R0
SYMATTR InstName D3
SYMATTR Value 1N914
SYMBOL diode 416 -224 R180
SYMATTR InstName D9
SYMATTR Value BZX84C27VLY
SYMBOL schottky -512 960 M270
SYMATTR InstName D5
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res -496 1264 M180
SYMATTR InstName R6
SYMATTR Value 100
SYMBOL res -784 1024 M180
SYMATTR InstName R10
SYMATTR Value 220
SYMBOL res -784 800 M180
SYMATTR InstName R11
SYMATTR Value 220
SYMBOL pnp -544 896 M180
SYMATTR InstName Q11
SYMATTR Value 2N3906
SYMBOL pnp -832 1152 M180
SYMATTR InstName Q12
SYMATTR Value 2N3906
SYMBOL schottky 16 1008 M90
SYMATTR InstName D7
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 96 704 R0
SYMATTR InstName R15
SYMATTR Value 100
SYMBOL res -192 944 R0
SYMATTR InstName R16
SYMATTR Value 110
SYMBOL res -192 1168 R0
SYMATTR InstName R17
SYMATTR Value 110
SYMBOL npn -240 816 R0
SYMATTR InstName Q14
SYMATTR Value 2N3904
SYMBOL npn 48 1072 R0
SYMATTR InstName Q15
SYMATTR Value 2N3904
SYMBOL schottky 592 960 M270
SYMATTR InstName D8
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 608 1264 M180
SYMATTR InstName R18
SYMATTR Value 100
SYMBOL res 320 1024 M180
SYMATTR InstName R19
SYMATTR Value 2k
SYMBOL res 320 800 M180
SYMATTR InstName R22
SYMATTR Value 110
SYMBOL pnp 560 896 M180
SYMATTR InstName Q16
SYMATTR Value 2N3906
SYMBOL pnp 272 1152 M180
SYMATTR InstName Q17
SYMATTR Value 2N3906
SYMBOL nmos 1024 -208 M0
SYMATTR InstName M1
SYMATTR Value RSR025N03
SYMBOL diode 960 -352 R0
SYMATTR InstName D12
SYMATTR Value 1N914
SYMBOL diode 1120 -256 R180
SYMATTR InstName D13
SYMATTR Value BZX84C27VLY
SYMBOL ind 384 -1232 R0
SYMATTR InstName L1
SYMATTR Value 1p
SYMBOL zener -880 -976 R180
SYMATTR InstName D4
SYMATTR Value BZX84C6V2L
SYMBOL res -912 -112 R0
SYMATTR InstName R3
SYMATTR Value 4.7k
SYMBOL pnp -720 -96 M180
SYMATTR InstName Q8
SYMATTR Value 2N3906
SYMBOL cap -240 -240 R0
SYMATTR InstName C3
SYMATTR Value 10n
SYMBOL pnp -960 -800 M180
SYMATTR InstName Q9
SYMATTR Value 2N3906
SYMBOL res -112 -560 R90
SYMATTR InstName R4
SYMATTR Value 100
SYMBOL cap 640 -832 R90
SYMATTR InstName C2
SYMATTR Value 120p
SYMBOL res 560 -832 R90
SYMATTR InstName R5
SYMATTR Value 1k