* SPICE netlist
V1 N001 0 3.3
Q1 out N007 N002 0 2N3906
Q2 out N013 0 0 2N3904
V2 in 0 PULSE(0 3.3 0 1n 1n 48n 100n)
Q3 N001 in N012 0 2N3904
R1 N012 N013 {R}
R2 N013 0 {R}
Q4 0 N012 N011 0 2N3906
R6 N001 N007 {R}
R7 N007 N011 {R}
R8 N001 N002 1m
D1 out N007 BAT54
D2 N013 out BAT54
V3 N014 0 3.3
Q6 out2 N018 0 0 2N3904
Q7 N014 N016 N017 0 2N3904
R3 N017 N018 220
R4 N018 0 220
R10 N014 N015 1m
D4 N018 out2 BAT54
R5 N015 out2 520
B1 N016 0 V={V(in)}
V4 N003 0 3.3
B2 N008 0 V={V(in)}
M1 N010 N009 N005 N005 BSS84
M2 N010 N009 0 0 2N7002
M3 N009 N008 N004 N004 BSS84
M4 N009 N008 0 0 2N7002
M5 out3 N010 N006 N006 BSS84
M6 out3 N010 0 0 2N7002
C1 out3 0 50p
R12 out3 0 1k
R9 N003 N006 1m
R11 N003 N005 1m
R13 N003 N004 1m
.dc v2 0 3.3 0.01
.step temp -25 125 25
;.step param R 200 1k 100
.param R=220

* LTspice schematic (.asc)
Version 4.1
SHEET 1 2432 1744
WIRE -832 -872 -1216 -872
WIRE -656 -872 -832 -872
WIRE -544 -872 -656 -872
WIRE -384 -872 -464 -872
WIRE 432 -872 -96 -872
WIRE 736 -872 432 -872
WIRE 1040 -872 736 -872
WIRE 432 -840 432 -872
WIRE 736 -840 736 -872
WIRE 1040 -840 1040 -872
WIRE -656 -824 -656 -872
WIRE -384 -760 -384 -872
WIRE -832 -744 -832 -872
WIRE 432 -728 432 -760
WIRE 736 -728 736 -760
WIRE 1040 -728 1040 -760
WIRE -656 -712 -656 -744
WIRE -528 -712 -656 -712
WIRE -448 -712 -528 -712
WIRE 384 -712 256 -712
WIRE 688 -712 560 -712
WIRE 992 -712 864 -712
WIRE -960 -696 -1024 -696
WIRE -896 -696 -960 -696
WIRE -656 -680 -656 -712
WIRE 256 -664 256 -712
WIRE 256 -664 96 -664
WIRE -528 -632 -528 -712
WIRE -480 -632 -528 -632
WIRE -384 -632 -384 -664
WIRE -384 -632 -416 -632
WIRE -384 -600 -384 -632
WIRE -256 -600 -384 -600
WIRE 432 -600 432 -632
WIRE 560 -600 560 -712
WIRE 560 -600 432 -600
WIRE 736 -600 736 -632
WIRE 864 -600 864 -712
WIRE 864 -600 736 -600
WIRE 1040 -600 1040 -632
WIRE 1136 -600 1040 -600
WIRE 1168 -600 1136 -600
WIRE 1216 -600 1168 -600
WIRE -656 -536 -656 -600
WIRE -832 -488 -832 -648
WIRE -720 -488 -832 -488
WIRE 1216 -488 1216 -600
WIRE 1136 -472 1136 -600
WIRE -1024 -456 -1024 -696
WIRE 96 -456 96 -664
WIRE -832 -440 -832 -488
WIRE -1216 -424 -1216 -872
WIRE -96 -424 -96 -872
WIRE -480 -376 -528 -376
WIRE -384 -376 -384 -600
WIRE -384 -376 -416 -376
WIRE 432 -376 432 -600
WIRE 736 -376 736 -600
WIRE 1040 -376 1040 -600
WIRE -384 -344 -384 -376
WIRE -832 -296 -832 -360
WIRE -528 -296 -528 -376
WIRE -528 -296 -832 -296
WIRE -448 -296 -528 -296
WIRE 256 -296 256 -664
WIRE 384 -296 256 -296
WIRE 560 -296 560 -600
WIRE 688 -296 560 -296
WIRE 864 -296 864 -600
WIRE 992 -296 864 -296
WIRE -832 -264 -832 -296
WIRE -1216 -136 -1216 -344
WIRE -1024 -136 -1024 -376
WIRE -1024 -136 -1216 -136
WIRE -832 -136 -832 -184
WIRE -832 -136 -1024 -136
WIRE -656 -136 -656 -440
WIRE -656 -136 -832 -136
WIRE -384 -136 -384 -248
WIRE -384 -136 -656 -136
WIRE -96 -136 -96 -344
WIRE 96 -136 96 -376
WIRE 96 -136 -96 -136
WIRE 432 -136 432 -280
WIRE 432 -136 96 -136
WIRE 736 -136 736 -280
WIRE 736 -136 432 -136
WIRE 1040 -136 1040 -280
WIRE 1040 -136 736 -136
WIRE 1136 -136 1136 -408
WIRE 1136 -136 1040 -136
WIRE 1216 -136 1216 -408
WIRE 1216 -136 1136 -136
WIRE -1216 -104 -1216 -136
WIRE -96 -104 -96 -136
WIRE -832 104 -1216 104
WIRE -736 104 -832 104
WIRE -576 104 -656 104
WIRE -576 216 -576 104
WIRE -832 232 -832 104
WIRE -896 280 -1024 280
WIRE -576 376 -576 296
WIRE -448 376 -576 376
WIRE -1024 520 -1024 280
WIRE -832 536 -832 328
WIRE -1216 552 -1216 104
WIRE -672 600 -720 600
WIRE -576 600 -576 376
WIRE -576 600 -608 600
WIRE -576 632 -576 600
WIRE -832 680 -832 616
WIRE -720 680 -720 600
WIRE -720 680 -832 680
WIRE -640 680 -720 680
WIRE -832 712 -832 680
WIRE -1216 840 -1216 632
WIRE -1024 840 -1024 600
WIRE -1024 840 -1216 840
WIRE -832 840 -832 792
WIRE -832 840 -1024 840
WIRE -576 840 -576 728
WIRE -576 840 -832 840
WIRE -1216 872 -1216 840
FLAG -1216 -104 0
FLAG -256 -600 out
FLAG -1216 872 0
FLAG -448 376 out2
FLAG -960 -696 in
FLAG -96 -104 0
FLAG 1168 -600 out3
SYMBOL voltage -1216 -440 R0
SYMATTR InstName V1
SYMATTR Value 3.3
SYMBOL pnp -448 -664 M180
SYMATTR InstName Q1
SYMATTR Value 2N3906
SYMBOL npn -448 -344 R0
SYMATTR InstName Q2
SYMATTR Value 2N3904
SYMBOL voltage -1024 -472 R0
SYMATTR Value PULSE(0 3.3 0 1n 1n 48n 100n)
SYMATTR InstName V2
SYMBOL npn -896 -744 R0
SYMATTR InstName Q3
SYMATTR Value 2N3904
SYMBOL res -848 -456 R0
SYMATTR InstName R1
SYMATTR Value {R}
SYMBOL res -848 -280 R0
SYMATTR InstName R2
SYMATTR Value {R}
SYMBOL pnp -720 -440 M180
SYMATTR InstName Q4
SYMATTR Value 2N3906
SYMBOL res -672 -840 R0
SYMATTR InstName R6
SYMATTR Value {R}
SYMBOL res -672 -696 R0
SYMATTR InstName R7
SYMATTR Value {R}
SYMBOL res -560 -856 R270
SYMATTR InstName R8
SYMATTR Value 1m
SYMBOL diode -416 -648 R90
SYMATTR InstName D1
SYMATTR Value BAT54
SYMBOL diode -480 -360 R270
SYMATTR InstName D2
SYMATTR Value BAT54
SYMBOL voltage -1216 536 R0
SYMATTR InstName V3
SYMATTR Value 3.3
SYMBOL npn -640 632 R0
SYMATTR InstName Q6
SYMATTR Value 2N3904
SYMBOL npn -896 232 R0
SYMATTR InstName Q7
SYMATTR Value 2N3904
SYMBOL res -848 520 R0
SYMATTR InstName R3
SYMATTR Value 220
SYMBOL res -848 696 R0
SYMATTR InstName R4
SYMATTR Value 220
SYMBOL res -752 120 R270
SYMATTR InstName R10
SYMATTR Value 1m
SYMBOL diode -672 616 R270
SYMATTR InstName D4
SYMATTR Value BAT54
SYMBOL res -592 200 R0
SYMATTR InstName R5
SYMATTR Value 520
SYMBOL bv -1024 504 R0
SYMATTR InstName B1
SYMATTR Value V={V(in)}
SYMBOL voltage -96 -440 R0
SYMATTR InstName V4
SYMATTR Value 3.3
SYMBOL bv 96 -472 R0
SYMATTR InstName B2
SYMATTR Value V={V(in)}
SYMBOL pmos 688 -632 M180
SYMATTR InstName M1
SYMATTR Value BSS84
SYMBOL nmos 688 -376 R0
SYMATTR InstName M2
SYMATTR Value 2N7002
SYMBOL pmos 384 -632 M180
SYMATTR InstName M3
SYMATTR Value BSS84
SYMBOL nmos 384 -376 R0
SYMATTR InstName M4
SYMATTR Value 2N7002
SYMBOL pmos 992 -632 M180
SYMATTR InstName M5
SYMATTR Value BSS84
SYMBOL nmos 992 -376 R0
SYMATTR InstName M6
SYMATTR Value 2N7002
SYMBOL cap 1120 -472 R0
SYMATTR InstName C1
SYMATTR Value 50p
SYMBOL res 1200 -504 R0
SYMATTR InstName R12
SYMATTR Value 1k
SYMBOL res 1024 -856 R0
SYMATTR InstName R9
SYMATTR Value 1m
SYMBOL res 720 -856 R0
SYMATTR InstName R11
SYMATTR Value 1m
SYMBOL res 416 -856 R0
SYMATTR InstName R13
SYMATTR Value 1m