* SPICE netlist
Q2 N008 N008 N013 0 2N3904
D1 0 N013 BZX84C6V2L
R1 VCC N008 4.7k
R2 VCC N002 0.47
V1 VCC 0 {VCC}
Q3 DB N008 N010 0 2N3904
R4 N010 0 4.7k
Q4 PC PB PE 0 TIP42C
Q5 N007 DB PB 0 2N3906
Q7 N004 N004 N003 0 2N3906
Q6 N004 N004 DB 0 2N3904
R7 VCC VT 145
R13 VT N003 145
RT VCC VT {300*exp(beta*(1/(TEMP+273.15)-1/(25+273.15)))}
Q1 0 0 N007 0 TIP42C
D2 PC PB BAT54SHY
R12 N009 LEFT {R_SET}
L4 RIGHT N009 {L_SET}
V5 V_LOGIC 0 3.3
V7 WR 0 PULSE(0 3.3 {TC/2+50n} 1n 1n {TON} {TC} 1000)
V8 RD 0 PULSE(0 3.3 50n 1n 1n {TON} {TC} 1000)
V3 EN 0 3.3
D7 N016 N014 BAT54
R17 0 N016 100
R18 N018 N014 220
R19 N014 V_LOGIC 220
Q15 N016 N014 V_LOGIC 0 2N3906
Q16 0 RD N018 0 2N3906
Q21 0 EN N018 0 2N3906
D14 N019 BL BAT54
R20 VCC BL 50
R21 N017 N019 110
R27 N019 0 110
Q25 V_LOGIC N016 N017 0 2N3904
Q26 BL N019 0 0 2N3904
D21 TR N015 BAT54
R30 0 TR 50
R31 N020 N015 2k
R32 N015 VCC 110
Q27 TR N015 VCC 0 2N3906
Q30 0 BL N020 0 2N3906
D22 N023 N021 BAT54
R33 0 N023 100
R34 N025 N021 220
R35 N021 V_LOGIC 220
Q31 N023 N021 V_LOGIC 0 2N3906
Q32 0 WR N025 0 2N3906
Q33 0 EN N025 0 2N3906
D23 N026 BR BAT54
R36 VCC BR 50
R37 N024 N026 110
R38 N026 0 110
Q34 V_LOGIC N023 N024 0 2N3904
Q35 BR N026 0 0 2N3904
D24 TL N022 BAT54
R39 0 TL 50
R40 N027 N022 2k
R41 N022 VCC 110
Q36 TL N022 VCC 0 2N3906
Q37 0 BR N027 0 2N3906
M1 N011 BL 0 0 RSR025N03
M2 N005 TL PC PC RSL020P03
M3 N012 BR 0 0 RSR025N03
M4 N006 TR PC PC RSL020P03
C1 N002 N001 100n
D3 N005 LEFT 1N914
D4 LEFT N011 1N914
D5 N006 RIGHT 1N914
D6 RIGHT N012 1N914
D8 0 RIGHT BZX84C27VLY
D9 0 LEFT BZX84C27VLY
L1 N002 PE 1p
R3 VCC N001 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 2u 3u 4u
.param L_SET=1p
.param R_SET=25
.param TON=2000n
.param TC=5000n

* LTspice schematic (.asc)
Version 4
SHEET 1 2976 3728
WIRE -848 -1864 -1024 -1864
WIRE -688 -1864 -848 -1864
WIRE -352 -1864 -688 -1864
WIRE 112 -1864 -352 -1864
WIRE 368 -1864 112 -1864
WIRE 112 -1816 112 -1864
WIRE 368 -1816 368 -1864
WIRE -352 -1752 -352 -1864
WIRE -352 -1752 -544 -1752
WIRE 112 -1704 112 -1736
WIRE 192 -1704 112 -1704
WIRE 368 -1704 368 -1736
WIRE 368 -1704 256 -1704
WIRE -544 -1688 -544 -1752
WIRE -352 -1688 -352 -1752
WIRE 368 -1672 368 -1704
WIRE -544 -1560 -544 -1608
WIRE -400 -1560 -544 -1560
WIRE -352 -1560 -352 -1608
WIRE -352 -1560 -400 -1560
WIRE 368 -1560 368 -1592
WIRE 368 -1544 368 -1560
WIRE -352 -1496 -352 -1560
WIRE 304 -1496 80 -1496
WIRE 368 -1400 368 -1448
WIRE -352 -1368 -352 -1416
WIRE 80 -1336 80 -1496
WIRE 80 -1336 -112 -1336
WIRE 256 -1336 80 -1336
WIRE 368 -1336 368 -1400
WIRE 368 -1336 320 -1336
WIRE 784 -1336 368 -1336
WIRE -416 -1320 -512 -1320
WIRE 784 -1288 784 -1336
WIRE 784 -1288 512 -1288
WIRE 1056 -1288 784 -1288
WIRE -512 -1240 -512 -1320
WIRE -352 -1240 -352 -1272
WIRE -352 -1240 -512 -1240
WIRE -352 -1208 -352 -1240
WIRE -512 -1160 -512 -1240
WIRE -416 -1160 -512 -1160
WIRE 512 -1160 512 -1288
WIRE 1056 -1160 1056 -1288
WIRE 464 -1144 160 -1144
WIRE 1488 -1144 1104 -1144
WIRE -112 -1064 -112 -1336
WIRE -688 -1016 -688 -1864
WIRE -352 -1016 -352 -1112
WIRE -320 -1016 -352 -1016
WIRE -176 -1016 -320 -1016
WIRE 512 -1000 512 -1064
WIRE -1024 -984 -1024 -1864
WIRE 1056 -984 1056 -1064
WIRE -112 -936 -112 -968
WIRE 0 -888 -48 -888
WIRE -688 -872 -688 -936
WIRE -480 -872 -688 -872
WIRE 512 -872 512 -936
WIRE 592 -872 512 -872
WIRE 672 -872 592 -872
WIRE 832 -872 752 -872
WIRE 976 -872 912 -872
WIRE 1056 -872 1056 -920
WIRE 1056 -872 976 -872
WIRE -688 -840 -688 -872
WIRE -352 -840 -352 -1016
WIRE 512 -840 512 -872
WIRE 512 -840 384 -840
WIRE 1056 -840 1056 -872
WIRE 1184 -840 1056 -840
WIRE 512 -824 512 -840
WIRE 1056 -824 1056 -840
WIRE -480 -792 -480 -872
WIRE -480 -792 -624 -792
WIRE -416 -792 -480 -792
WIRE 384 -792 384 -840
WIRE 1184 -792 1184 -840
WIRE -112 -760 -112 -840
WIRE 0 -760 0 -888
WIRE 0 -760 -112 -760
WIRE -352 -728 -352 -744
WIRE 512 -680 512 -760
WIRE 1056 -680 1056 -760
WIRE -688 -664 -688 -744
WIRE 464 -600 160 -600
WIRE 1456 -600 1104 -600
WIRE -1024 -472 -1024 -904
WIRE -752 -472 -1024 -472
WIRE -688 -472 -688 -600
WIRE -688 -472 -752 -472
WIRE -352 -472 -352 -648
WIRE -352 -472 -688 -472
WIRE -112 -472 -112 -760
WIRE -112 -472 -352 -472
WIRE 384 -472 384 -728
WIRE 512 -472 512 -584
WIRE 512 -472 384 -472
WIRE 784 -472 512 -472
WIRE 1056 -472 1056 -584
WIRE 1056 -472 784 -472
WIRE 1184 -472 1184 -728
WIRE 1184 -472 1056 -472
WIRE -752 -440 -752 -472
WIRE 784 -392 784 -472
WIRE 912 56 352 56
WIRE 976 56 912 56
WIRE -736 168 -928 168
WIRE -624 168 -736 168
WIRE -336 168 -624 168
WIRE -32 168 -336 168
WIRE 192 168 128 168
WIRE 256 168 192 168
WIRE 480 168 256 168
WIRE 768 168 480 168
WIRE -624 216 -624 168
WIRE 480 216 480 168
WIRE 256 232 256 168
WIRE -336 312 -336 168
WIRE 768 312 768 168
WIRE -32 328 -32 168
WIRE -624 360 -624 296
WIRE -496 360 -624 360
WIRE -400 360 -496 360
WIRE 480 360 480 296
WIRE 608 360 480 360
WIRE 704 360 608 360
WIRE -96 376 -176 376
WIRE 256 424 256 312
WIRE 352 424 352 56
WIRE 352 424 256 424
WIRE -624 440 -624 360
WIRE 480 440 480 360
WIRE -496 456 -496 360
WIRE -432 456 -496 456
WIRE -336 456 -336 408
WIRE -336 456 -368 456
WIRE 608 456 608 360
WIRE 672 456 608 456
WIRE 768 456 768 408
WIRE 768 456 736 456
WIRE -32 472 -32 424
WIRE -624 536 -624 520
WIRE -624 536 -752 536
WIRE -336 536 -336 456
WIRE -176 536 -176 376
WIRE -176 536 -336 536
WIRE 160 536 96 536
WIRE 256 536 256 424
WIRE 256 536 224 536
WIRE -624 568 -624 536
WIRE 480 568 480 520
WIRE 256 584 256 536
WIRE 768 584 768 456
WIRE 912 584 768 584
WIRE 976 584 912 584
WIRE -912 616 -944 616
WIRE -688 616 -912 616
WIRE 352 616 352 424
WIRE 416 616 352 616
WIRE -32 632 -32 552
WIRE 96 632 96 536
WIRE 96 632 -32 632
WIRE 192 632 96 632
WIRE -752 664 -752 536
WIRE -336 680 -336 536
WIRE 768 680 768 584
WIRE -32 696 -32 632
WIRE -928 712 -944 712
WIRE -816 712 -928 712
WIRE -752 824 -752 760
WIRE -752 824 -864 824
WIRE -624 824 -624 664
WIRE -624 824 -752 824
WIRE -464 824 -624 824
WIRE -336 824 -336 760
WIRE -336 824 -464 824
WIRE -32 824 -32 776
WIRE -32 824 -336 824
WIRE 256 824 256 680
WIRE 256 824 -32 824
WIRE 480 824 480 664
WIRE 480 824 256 824
WIRE 768 824 768 760
WIRE 768 824 480 824
WIRE -464 904 -464 824
WIRE 912 1016 352 1016
WIRE 976 1016 912 1016
WIRE -736 1128 -928 1128
WIRE -624 1128 -736 1128
WIRE -336 1128 -624 1128
WIRE -32 1128 -336 1128
WIRE 192 1128 128 1128
WIRE 256 1128 192 1128
WIRE 480 1128 256 1128
WIRE 768 1128 480 1128
WIRE -624 1176 -624 1128
WIRE 480 1176 480 1128
WIRE 256 1192 256 1128
WIRE -336 1272 -336 1128
WIRE 768 1272 768 1128
WIRE -32 1288 -32 1128
WIRE -624 1320 -624 1256
WIRE -496 1320 -624 1320
WIRE -400 1320 -496 1320
WIRE 480 1320 480 1256
WIRE 608 1320 480 1320
WIRE 704 1320 608 1320
WIRE -96 1336 -176 1336
WIRE 256 1384 256 1272
WIRE 352 1384 352 1016
WIRE 352 1384 256 1384
WIRE -624 1400 -624 1320
WIRE 480 1400 480 1320
WIRE -496 1416 -496 1320
WIRE -432 1416 -496 1416
WIRE -336 1416 -336 1368
WIRE -336 1416 -368 1416
WIRE 608 1416 608 1320
WIRE 672 1416 608 1416
WIRE 768 1416 768 1368
WIRE 768 1416 736 1416
WIRE -32 1432 -32 1384
WIRE -624 1496 -624 1480
WIRE -624 1496 -752 1496
WIRE -336 1496 -336 1416
WIRE -176 1496 -176 1336
WIRE -176 1496 -336 1496
WIRE 160 1496 96 1496
WIRE 256 1496 256 1384
WIRE 256 1496 224 1496
WIRE -624 1528 -624 1496
WIRE 480 1528 480 1480
WIRE 256 1544 256 1496
WIRE 768 1544 768 1416
WIRE 912 1544 768 1544
WIRE 976 1544 912 1544
WIRE -912 1576 -944 1576
WIRE -688 1576 -912 1576
WIRE 352 1576 352 1384
WIRE 416 1576 352 1576
WIRE -32 1592 -32 1512
WIRE 96 1592 96 1496
WIRE 96 1592 -32 1592
WIRE 192 1592 96 1592
WIRE -752 1624 -752 1496
WIRE -336 1640 -336 1496
WIRE 768 1640 768 1544
WIRE -32 1656 -32 1592
WIRE -928 1672 -944 1672
WIRE -816 1672 -928 1672
WIRE -752 1784 -752 1720
WIRE -752 1784 -864 1784
WIRE -624 1784 -624 1624
WIRE -624 1784 -752 1784
WIRE -464 1784 -624 1784
WIRE -336 1784 -336 1720
WIRE -336 1784 -464 1784
WIRE -32 1784 -32 1736
WIRE -32 1784 -336 1784
WIRE 256 1784 256 1640
WIRE 256 1784 -32 1784
WIRE 480 1784 480 1624
WIRE 480 1784 256 1784
WIRE 768 1784 768 1720
WIRE 768 1784 480 1784
WIRE -464 1864 -464 1784
FLAG -752 -440 0
FLAG 368 -1560 PE
FLAG 368 -1400 PC
FLAG -400 -1560 VT
FLAG -848 -1864 VCC
FLAG -112 -1336 PB
FLAG -320 -1016 DB
FLAG 784 -392 0
FLAG -1408 -136 0
FLAG -1408 -216 V_LOGIC
FLAG -1488 1528 WR
FLAG -1488 1608 0
FLAG -1488 1016 RD
FLAG -1488 1096 0
FLAG -1488 1752 EN
FLAG -1488 1832 0
FLAG -912 616 RD
FLAG -736 168 V_LOGIC
FLAG -928 712 EN
FLAG 192 168 VCC
FLAG -464 904 0
FLAG 912 56 BL
FLAG 912 584 TR
FLAG -912 1576 WR
FLAG -736 1128 V_LOGIC
FLAG -928 1672 EN
FLAG 192 1128 VCC
FLAG -464 1864 0
FLAG 912 1016 BR
FLAG 912 1544 TL
FLAG 160 -1144 TL
FLAG 160 -600 BL
FLAG 1488 -1144 TR
FLAG 1456 -600 BR
FLAG 592 -872 LEFT
FLAG 976 -872 RIGHT
SYMBOL npn -624 -840 M0
SYMATTR InstName Q2
SYMATTR Value 2N3904
SYMBOL zener -672 -600 R180
SYMATTR InstName D1
SYMATTR Value BZX84C6V2L
SYMBOL res -704 -1032 R0
SYMATTR InstName R1
SYMATTR Value 4.7k
SYMBOL res 352 -1832 R0
SYMATTR InstName R2
SYMATTR Value 0.47
SYMBOL voltage -1024 -1000 R0
SYMATTR InstName V1
SYMATTR Value {VCC}
SYMBOL npn -416 -840 R0
SYMATTR InstName Q3
SYMATTR Value 2N3904
SYMBOL res -368 -744 R0
SYMATTR InstName R4
SYMATTR Value 4.7k
SYMBOL pnp 304 -1448 M180
SYMATTR InstName Q4
SYMATTR Value TIP42C
SYMBOL pnp -176 -968 M180
SYMATTR InstName Q5
SYMATTR Value 2N3906
SYMBOL pnp -416 -1272 M180
SYMATTR InstName Q7
SYMATTR Value 2N3906
SYMBOL npn -416 -1208 R0
SYMATTR InstName Q6
SYMATTR Value 2N3904
SYMBOL res -368 -1704 R0
SYMATTR InstName R7
SYMATTR Value 145
SYMBOL res -368 -1512 R0
SYMATTR InstName R13
SYMATTR Value 145
SYMBOL res -560 -1704 R0
SYMATTR Value {300*exp(beta*(1/(TEMP+273.15)-1/(25+273.15)))}
SYMATTR InstName RT
SYMBOL pnp -48 -840 R180
SYMATTR InstName Q1
SYMATTR Value TIP42C
SYMBOL schottky 320 -1352 R90
SYMATTR InstName D2
SYMATTR Value BAT54SHY
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 768 -888 R90
SYMATTR InstName R12
SYMATTR Value {R_SET}
SYMBOL ind 928 -888 R90
SYMATTR InstName L4
SYMATTR Value {L_SET}
SYMBOL voltage -1408 -232 R0
SYMATTR InstName V5
SYMATTR Value 3.3
SYMBOL voltage -1488 1512 R0
SYMATTR Value PULSE(0 3.3 {TC/2+50n} 1n 1n {TON} {TC} 1000)
SYMATTR InstName V7
SYMBOL voltage -1488 1000 R0
SYMATTR Value PULSE(0 3.3 50n 1n 1n {TON} {TC} 1000)
SYMATTR InstName V8
SYMBOL voltage -1488 1736 R0
SYMATTR Value 3.3
SYMATTR InstName V3
SYMBOL schottky -368 472 M270
SYMATTR InstName D7
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res -352 776 M180
SYMATTR InstName R17
SYMATTR Value 100
SYMBOL res -640 536 M180
SYMATTR InstName R18
SYMATTR Value 220
SYMBOL res -640 312 M180
SYMATTR InstName R19
SYMATTR Value 220
SYMBOL pnp -400 408 M180
SYMATTR InstName Q15
SYMATTR Value 2N3906
SYMBOL pnp -688 664 M180
SYMATTR InstName Q16
SYMATTR Value 2N3906
SYMBOL pnp -816 760 M180
SYMATTR InstName Q21
SYMATTR Value 2N3906
SYMBOL schottky 160 520 M90
SYMATTR InstName D14
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 240 216 R0
SYMATTR InstName R20
SYMATTR Value 50
SYMBOL res -48 456 R0
SYMATTR InstName R21
SYMATTR Value 110
SYMBOL res -48 680 R0
SYMATTR InstName R27
SYMATTR Value 110
SYMBOL npn -96 328 R0
SYMATTR InstName Q25
SYMATTR Value 2N3904
SYMBOL npn 192 584 R0
SYMATTR InstName Q26
SYMATTR Value 2N3904
SYMBOL schottky 736 472 M270
SYMATTR InstName D21
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 752 776 M180
SYMATTR InstName R30
SYMATTR Value 50
SYMBOL res 464 536 M180
SYMATTR InstName R31
SYMATTR Value 2k
SYMBOL res 464 312 M180
SYMATTR InstName R32
SYMATTR Value 110
SYMBOL pnp 704 408 M180
SYMATTR InstName Q27
SYMATTR Value 2N3906
SYMBOL pnp 416 664 M180
SYMATTR InstName Q30
SYMATTR Value 2N3906
SYMBOL schottky -368 1432 M270
SYMATTR InstName D22
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res -352 1736 M180
SYMATTR InstName R33
SYMATTR Value 100
SYMBOL res -640 1496 M180
SYMATTR InstName R34
SYMATTR Value 220
SYMBOL res -640 1272 M180
SYMATTR InstName R35
SYMATTR Value 220
SYMBOL pnp -400 1368 M180
SYMATTR InstName Q31
SYMATTR Value 2N3906
SYMBOL pnp -688 1624 M180
SYMATTR InstName Q32
SYMATTR Value 2N3906
SYMBOL pnp -816 1720 M180
SYMATTR InstName Q33
SYMATTR Value 2N3906
SYMBOL schottky 160 1480 M90
SYMATTR InstName D23
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 240 1176 R0
SYMATTR InstName R36
SYMATTR Value 50
SYMBOL res -48 1416 R0
SYMATTR InstName R37
SYMATTR Value 110
SYMBOL res -48 1640 R0
SYMATTR InstName R38
SYMATTR Value 110
SYMBOL npn -96 1288 R0
SYMATTR InstName Q34
SYMATTR Value 2N3904
SYMBOL npn 192 1544 R0
SYMATTR InstName Q35
SYMATTR Value 2N3904
SYMBOL schottky 736 1432 M270
SYMATTR InstName D24
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 752 1736 M180
SYMATTR InstName R39
SYMATTR Value 50
SYMBOL res 464 1496 M180
SYMATTR InstName R40
SYMATTR Value 2k
SYMBOL res 464 1272 M180
SYMATTR InstName R41
SYMATTR Value 110
SYMBOL pnp 704 1368 M180
SYMATTR InstName Q36
SYMATTR Value 2N3906
SYMBOL pnp 416 1624 M180
SYMATTR InstName Q37
SYMATTR Value 2N3906
SYMBOL nmos 464 -680 R0
SYMATTR InstName M1
SYMATTR Value RSR025N03
SYMBOL pmos 464 -1064 M180
SYMATTR InstName M2
SYMATTR Value RSL020P03
SYMBOL nmos 1104 -680 M0
SYMATTR InstName M3
SYMATTR Value RSR025N03
SYMBOL pmos 1104 -1064 R180
SYMATTR InstName M4
SYMATTR Value RSL020P03
SYMBOL cap 256 -1720 R90
SYMATTR InstName C1
SYMATTR Value 100n
SYMBOL diode 496 -1000 R0
SYMATTR InstName D3
SYMATTR Value 1N914
SYMBOL diode 496 -824 R0
SYMATTR InstName D4
SYMATTR Value 1N914
SYMBOL diode 1040 -984 R0
SYMATTR InstName D5
SYMATTR Value 1N914
SYMBOL diode 1040 -824 R0
SYMATTR InstName D6
SYMATTR Value 1N914
SYMBOL diode 1200 -728 R180
SYMATTR InstName D8
SYMATTR Value BZX84C27VLY
SYMBOL diode 400 -728 R180
SYMATTR InstName D9
SYMATTR Value BZX84C27VLY
SYMBOL ind 352 -1688 R0
SYMATTR InstName L1
SYMATTR Value 1p
SYMBOL res 96 -1832 R0
SYMATTR InstName R3
SYMATTR Value 1k