* SPICE netlist
VFast_PWM N002 0 PULSE(0 3.3 0 10n 10n 5u 0.08u)
R1 N003 N002 33k
C1 N003 0 10n
V1 +10v 0 10V
V3 +5v 0 5V
R3 N001 0 220
XU1 N003 N001 +10v 0 #1_1 level1 Avol=1Meg GBW=10Meg Vos=0 En=0 Enk=0 In=0 Ink=0 Rin=500Meg ;pnba In+)In-)V+)V-)OUT
R2 #1_1 N001 470
V5 +3.3v 0 3.3V
V7 N007 0 PULSE(0 5 0 10n 10n 500m 1 5)
M5 N006 N007 0 0 NMOS
R15 +3.3v N006 100k
V2 N004 0 SINE(0 4 50)
D1 0 N004 D
D2 N004 N005 D
D3 0 0 D
D4 0 N005 D
R4 N005 0 2.2k
C2 N005 0 4.7n
V4 N008 0 SINE(0 10 50)
D5 0 N008 D
D6 N008 N009 D
D7 0 0 D
D8 0 N009 D
R5 N009 0 27
C3 N009 0 4.7n
R6 N009 0 1
R7 N009 0 1
.tran 1s

* LTspice schematic (.asc)
Version 4
SHEET 1 44960 32704
WIRE -20544 -16336 -20592 -16336
WIRE -20416 -16336 -20464 -16336
WIRE -22384 -16176 -22480 -16176
WIRE -20592 -16176 -20592 -16336
WIRE -20528 -16176 -20592 -16176
WIRE -20416 -16160 -20416 -16336
WIRE -20416 -16160 -20464 -16160
WIRE -20368 -16160 -20416 -16160
WIRE -20848 -16144 -20960 -16144
WIRE -20672 -16144 -20768 -16144
WIRE -20528 -16144 -20672 -16144
WIRE -20592 -16128 -20592 -16176
WIRE -22480 -16112 -22480 -16176
WIRE -20672 -16096 -20672 -16144
WIRE -20960 -16064 -20960 -16144
WIRE -20592 -16032 -20592 -16048
WIRE -22432 -15952 -22480 -15952
WIRE -22384 -15952 -22432 -15952
WIRE -22480 -15904 -22480 -15952
WIRE -21488 -15856 -22048 -15856
WIRE -20176 -15808 -20176 -15840
WIRE -22432 -15760 -22480 -15760
WIRE -22384 -15760 -22432 -15760
WIRE -21600 -15712 -21696 -15712
WIRE -21488 -15712 -21488 -15856
WIRE -21488 -15712 -21536 -15712
WIRE -21440 -15712 -21488 -15712
WIRE -21344 -15712 -21376 -15712
WIRE -20176 -15712 -20176 -15728
WIRE -20048 -15712 -20176 -15712
WIRE -22480 -15696 -22480 -15760
WIRE -22048 -15696 -22048 -15856
WIRE -20176 -15696 -20176 -15712
WIRE -21344 -15648 -21344 -15712
WIRE -21152 -15648 -21344 -15648
WIRE -20960 -15648 -21152 -15648
WIRE -20816 -15648 -20960 -15648
WIRE -21696 -15632 -21696 -15712
WIRE -21696 -15632 -21776 -15632
WIRE -21152 -15616 -21152 -15648
WIRE -20960 -15616 -20960 -15648
WIRE -20224 -15616 -20368 -15616
WIRE -20048 -15600 -20048 -15712
WIRE -19936 -15600 -20048 -15600
WIRE -21696 -15584 -21696 -15632
WIRE -21616 -15584 -21696 -15584
WIRE -21504 -15584 -21552 -15584
WIRE -21440 -15584 -21504 -15584
WIRE -21344 -15584 -21344 -15648
WIRE -21344 -15584 -21376 -15584
WIRE -20368 -15568 -20368 -15616
WIRE -22048 -15520 -22048 -15616
WIRE -21824 -15520 -22048 -15520
WIRE -21504 -15520 -21504 -15584
WIRE -21504 -15520 -21824 -15520
WIRE -21776 -15472 -21776 -15632
WIRE -21152 -15472 -21152 -15536
WIRE -21152 -15472 -21776 -15472
WIRE -21088 -15472 -21152 -15472
WIRE -20960 -15472 -20960 -15552
WIRE -20960 -15472 -21088 -15472
WIRE -21824 -15424 -21824 -15520
WIRE -21088 -15408 -21088 -15472
WIRE -21504 -15184 -22064 -15184
WIRE -21616 -15040 -21712 -15040
WIRE -21504 -15040 -21504 -15184
WIRE -21504 -15040 -21552 -15040
WIRE -21456 -15040 -21504 -15040
WIRE -21360 -15040 -21392 -15040
WIRE -22064 -15024 -22064 -15184
WIRE -21360 -14976 -21360 -15040
WIRE -21248 -14976 -21360 -14976
WIRE -21168 -14976 -21248 -14976
WIRE -21056 -14976 -21168 -14976
WIRE -20976 -14976 -21056 -14976
WIRE -20832 -14976 -20976 -14976
WIRE -21712 -14960 -21712 -15040
WIRE -21712 -14960 -21792 -14960
WIRE -21168 -14944 -21168 -14976
WIRE -20976 -14944 -20976 -14976
WIRE -21248 -14928 -21248 -14976
WIRE -21056 -14928 -21056 -14976
WIRE -21712 -14912 -21712 -14960
WIRE -21632 -14912 -21712 -14912
WIRE -21520 -14912 -21568 -14912
WIRE -21456 -14912 -21520 -14912
WIRE -21360 -14912 -21360 -14976
WIRE -21360 -14912 -21392 -14912
WIRE -22064 -14848 -22064 -14944
WIRE -21840 -14848 -22064 -14848
WIRE -21520 -14848 -21520 -14912
WIRE -21520 -14848 -21840 -14848
WIRE -21792 -14800 -21792 -14960
WIRE -21248 -14800 -21248 -14848
WIRE -21248 -14800 -21792 -14800
WIRE -21168 -14800 -21168 -14864
WIRE -21168 -14800 -21248 -14800
WIRE -21104 -14800 -21168 -14800
WIRE -21056 -14800 -21056 -14848
WIRE -21056 -14800 -21104 -14800
WIRE -20976 -14800 -20976 -14880
WIRE -20976 -14800 -21056 -14800
WIRE -21840 -14752 -21840 -14848
WIRE -21104 -14736 -21104 -14800
WIRE 22448 16336 22448 16320
WIRE 22480 16336 22448 16336
WIRE 22480 16352 22480 16336
FLAG -20960 -15984 0
FLAG -20672 -16032 0
FLAG -22480 -15824 0
FLAG -22480 -15616 0
FLAG -22432 -15952 +10v
FLAG -22432 -15760 +5v
FLAG -20592 -16032 0
FLAG -20496 -16192 +10v
FLAG -20496 -16128 0
FLAG -20368 -16160 #1_1
FLAG -22480 -16032 0
FLAG -22384 -16176 +3.3v
FLAG -20368 -15488 0
FLAG -20176 -15600 0
FLAG -20176 -15840 +3.3v
FLAG -21824 -15424 0
FLAG -21088 -15408 0
FLAG -21840 -14752 0
FLAG -21104 -14736 0
SYMBOL voltage -20960 -16080 R0
SYMATTR Value PULSE(0 3.3 0 10n 10n 5u 0.08u)
SYMATTR InstName Fast_PWM
SYMBOL res -20752 -16160 R90
SYMATTR InstName R1
SYMATTR Value 33k
SYMBOL cap -20688 -16096 R0
SYMATTR InstName C1
SYMATTR Value 10n
SYMBOL voltage -22480 -15920 R0
SYMATTR InstName V1
SYMATTR Value 10V
SYMBOL voltage -22480 -15712 R0
SYMATTR InstName V3
SYMATTR Value 5V
SYMBOL res -20608 -16144 R0
SYMATTR InstName R3
SYMATTR Value 220
SYMBOL OpAmps\\UniversalOpAmp -20496 -16160 R0
SYMATTR InstName U1
SYMBOL res -20448 -16352 R90
SYMATTR InstName R2
SYMATTR Value 470
SYMBOL voltage -22480 -16128 R0
SYMATTR InstName V5
SYMATTR Value 3.3V
SYMBOL voltage -20368 -15584 R0
SYMATTR InstName V7
SYMATTR Value PULSE(0 5 0 10n 10n 500m 1 5)
SYMBOL nmos -20224 -15696 R0
SYMATTR InstName M5
SYMBOL res -20192 -15824 R0
SYMATTR InstName R15
SYMATTR Value 100k
SYMBOL voltage -22048 -15712 R0
SYMATTR InstName V2
SYMATTR Value SINE(0 4 50)
SYMBOL diode -21600 -15696 R270
SYMATTR InstName D1
SYMBOL diode -21440 -15696 R270
SYMATTR InstName D2
SYMBOL diode -21616 -15568 R270
SYMATTR InstName D3
SYMBOL diode -21440 -15568 R270
SYMATTR InstName D4
SYMBOL res -21168 -15632 R0
SYMATTR InstName R4
SYMATTR Value 2.2k
SYMBOL cap -20976 -15616 R0
SYMATTR InstName C2
SYMATTR Value 4.7n
SYMBOL voltage -22064 -15040 R0
SYMATTR InstName V4
SYMATTR Value SINE(0 10 50)
SYMBOL diode -21616 -15024 R270
SYMATTR InstName D5
SYMBOL diode -21456 -15024 R270
SYMATTR InstName D6
SYMBOL diode -21632 -14896 R270
SYMATTR InstName D7
SYMBOL diode -21456 -14896 R270
SYMATTR InstName D8
SYMBOL res -21184 -14960 R0
SYMATTR InstName R5
SYMATTR Value 27
SYMBOL cap -20992 -14944 R0
SYMATTR InstName C3
SYMATTR Value 4.7n
SYMBOL res -21264 -14944 R0
SYMATTR InstName R6
SYMATTR Value 1
SYMBOL res -21072 -14944 R0
SYMATTR InstName R7
SYMATTR Value 1