* SPICE netlist
VCC VCC 0 {VCC}
V_IN IN 0 PULSE({V_in+0.6} {VCC-0.6} 0 {rise} {rise} {1/freq/2-rise} {1/freq}) AC 3.3
Q1 _OUT1 N008 N010 0 2N3904
D1 N008 _OUT1 BAT54
Q2 N001 N006 N007 0 2N3904
R2 N007 N009 1k
R3 N009 0 220
C1 N007 N009 1n
C2 _OUT1 0 40p
Q3 0 N006 N005 0 2N3906
R5 N001 N003 220
R6 N003 N005 1k
C5 N003 N005 1n
D2 _OUT1 N004 BAT54
Q4 _OUT1 N004 N002 0 2N3906
R7 VCC N001 1m
R1 NC_01 0 1k
I_LOAD _OUT1 0 {Il}
R4 N001 N002 33
R8 N010 0 33
R9 N004 N003 10
R10 N008 N009 10
R11 IN N006 220
;.dc V_IN 0 {VCC} 0.01
.param VCC=20
.param freq=10Mega
.param rise=1n
.param reps=1
.step temp -25 125 25
.temp 125
;.step param Il -50m 50m 5m
;.step param V_in -0.6 20.6 2
.param Il 0mA
.param V_in 0
.tran {1/freq*10}

* LTspice schematic (.asc)
Version 4.1
SHEET 1 3680 1040
WIRE 464 -520 416 -520
WIRE 656 -520 544 -520
WIRE 928 -520 656 -520
WIRE 1360 -520 928 -520
WIRE 1360 -504 1360 -520
WIRE 928 -472 928 -520
WIRE 1360 -408 1360 -424
WIRE 928 -360 928 -392
WIRE 1024 -360 928 -360
WIRE 1200 -360 1104 -360
WIRE 1296 -360 1200 -360
WIRE 928 -328 928 -360
WIRE 928 -328 832 -328
WIRE 928 -296 928 -328
WIRE 832 -280 832 -328
WIRE 1200 -248 1200 -360
WIRE 1264 -248 1200 -248
WIRE 1360 -248 1360 -312
WIRE 1360 -248 1328 -248
WIRE -1840 -232 -1840 -264
WIRE 832 -184 832 -216
WIRE 928 -184 928 -216
WIRE 928 -184 832 -184
WIRE 928 -152 928 -184
WIRE -1840 -136 -1840 -152
WIRE 864 -104 528 -104
WIRE 656 -24 656 -520
WIRE 304 24 112 24
WIRE 352 24 304 24
WIRE 528 24 528 -104
WIRE 528 24 432 24
WIRE 592 24 528 24
WIRE 1360 40 1360 -248
WIRE 1440 40 1360 40
WIRE 1504 40 1440 40
WIRE 1840 40 1504 40
WIRE 656 104 656 72
WIRE 656 104 560 104
WIRE 656 120 656 104
WIRE 560 136 560 104
WIRE 1264 184 1200 184
WIRE 1360 184 1360 40
WIRE 1360 184 1328 184
WIRE 1504 200 1504 40
WIRE 1840 200 1840 40
WIRE 1360 232 1360 184
WIRE 560 248 560 200
WIRE 656 248 656 200
WIRE 656 248 560 248
WIRE 656 280 656 248
WIRE 1040 280 656 280
WIRE 1200 280 1200 184
WIRE 1200 280 1120 280
WIRE 1296 280 1200 280
WIRE 656 344 656 280
WIRE 1360 360 1360 328
WIRE 656 472 656 424
WIRE 656 472 352 472
WIRE 928 472 928 -56
WIRE 928 472 656 472
WIRE 1360 472 1360 440
WIRE 1360 472 928 472
WIRE 1504 472 1504 264
WIRE 1504 472 1360 472
WIRE 1664 472 1664 280
WIRE 1664 472 1504 472
WIRE 1840 472 1840 280
WIRE 1840 472 1664 472
WIRE 352 520 352 472
FLAG -1840 -136 0
FLAG -960 -264 IN
FLAG -1840 -264 VCC
FLAG -1040 -264 0
FLAG 352 520 0
FLAG 416 -520 VCC
FLAG 1440 40 _OUT1
FLAG 304 24 IN
SYMBOL voltage -1840 -248 R0
SYMATTR InstName VCC
SYMATTR Value {VCC}
SYMBOL voltage -944 -264 R90
SYMATTR Value2 AC 3.3
SYMATTR InstName V_IN
SYMATTR Value PULSE({V_in+0.6} {VCC-0.6} 0 {rise} {rise} {1/freq/2-rise} {1/freq})
SYMBOL npn 1296 232 R0
SYMATTR InstName Q1
SYMATTR Value 2N3904
SYMBOL schottky 1264 200 R270
SYMATTR InstName D1
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL npn 592 -24 R0
SYMATTR InstName Q2
SYMATTR Value 2N3904
SYMBOL res 640 104 R0
SYMATTR InstName R2
SYMATTR Value 1k
SYMBOL res 640 328 R0
SYMATTR InstName R3
SYMATTR Value 220
SYMBOL cap 544 136 R0
SYMATTR InstName C1
SYMATTR Value 1n
SYMBOL cap 1488 200 R0
SYMATTR InstName C2
SYMATTR Value 40p
SYMBOL pnp 864 -56 M180
SYMATTR InstName Q3
SYMATTR Value 2N3906
SYMBOL res 912 -488 R0
SYMATTR InstName R5
SYMATTR Value 220
SYMBOL res 912 -312 R0
SYMATTR InstName R6
SYMATTR Value 1k
SYMBOL cap 816 -280 R0
SYMATTR InstName C5
SYMATTR Value 1n
SYMBOL schottky 1328 -264 R90
SYMATTR InstName D2
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL pnp 1296 -312 M180
SYMATTR InstName Q4
SYMATTR Value 2N3906
SYMBOL res 448 -504 R270
SYMATTR InstName R7
SYMATTR Value 1m
SYMBOL res 1648 184 R0
SYMATTR InstName R1
SYMATTR Value 1k
SYMBOL current 1840 200 R0
SYMATTR InstName I_LOAD
SYMATTR Value {Il}
SYMBOL res 1344 -520 R0
SYMATTR InstName R4
SYMATTR Value 33
SYMBOL res 1344 344 R0
SYMATTR InstName R8
SYMATTR Value 33
SYMBOL res 1120 -376 R90
SYMATTR InstName R9
SYMATTR Value 10
SYMBOL res 1136 264 R90
SYMATTR InstName R10
SYMATTR Value 10
SYMBOL res 336 40 R270
SYMATTR InstName R11
SYMATTR Value 220