* SPICE netlist
VFast_PWM N006 0 PULSE(0 3.3 0 10n 10n 0.5u 1u 2000)
R1 N007 N006 3k
C1 N007 0 10n
V1 +10v 0 10V
V3 +5v 0 5V
R3 N005 0 200
XU1 N007 N005 +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 N005 400
V#2_1/#2_2 N008 0 SINE(0 4 50 0 0 0 100)
R4 N009 N008 200
R5 #2_1/#2_2_input N009 100
XU2 0 N009 +5v 0 N010 level1 Avol=1Meg GBW=10Meg Vos=0 En=0 Enk=0 In=0 Ink=0 Rin=500Meg ;pnba In+)In-)V+)V-)OUT
D1 N010 #2_1/#2_2_input 1N4148
D2 N009 N010 1N4148
R6 #2_1/#2_2_input 0 1k
V#2_3/#2_4 N011 0 5
XU3 0 N012 +5v 0 N013 level1 Avol=1Meg GBW=10Meg Vos=0 En=0 Enk=0 In=0 Ink=0 Rin=500Meg ;pnba In+)In-)V+)V-)OUT
R7 N012 N011 150
R8 N013 N012 100
XU4 0 N014 +5v 0 #2_3/#2_4_input level1 Avol=1Meg GBW=10Meg Vos=0 En=0 Enk=0 In=0 Ink=0 Rin=500Meg ;pnba In+)In-)V+)V-)OUT
R9 N014 N013 100
R10 #2_3/#2_4_input N014 100
V2 N004 0 PULSE(0 3.3 0 10n 10n 500m 1000m 5)
R11 +5v N001 100k
V4 N002 0 PULSE(0 3.3 0 10n 10n 500m 1000m 5)
V5 +3.3v 0 3.3V
M1 N001 N004 0 0 NMOS
M2 N003 +3.3v N002 N002 NMOS
R12 +5v N003 100k
V6 N019 0 PULSE(0 5 0 10n 10n 500m 1 5)
M3 N016 N019 0 0 NMOS
M4 N017 N016 0 0 NMOS
R13 +3.3v N016 100k
R14 +3.3v N017 100k
V7 N018 0 PULSE(0 5 0 10n 10n 500m 1 5)
M5 N015 N018 0 0 NMOS
R15 +3.3v N015 100k
V8 +10v__ 0 10.8V
XU5 0 N020 +10v__ 0 N021 level1 Avol=1Meg GBW=10Meg Vos=0 En=0 Enk=0 In=0 Ink=0 Rin=500Meg ;pnba In+)In-)V+)V-)OUT
R16 N020 +10v__ 200
R17 N021 N020 100
XU6 0 N022 +10v__ 0 +5v__ level1 Avol=1Meg GBW=10Meg Vos=0 En=0 Enk=0 In=0 Ink=0 Rin=500Meg ;pnba In+)In-)V+)V-)OUT
R18 N022 N021 100
R19 +5v__ N022 100
XU7 0 N023 +10v__ 0 N024 level1 Avol=1Meg GBW=10Meg Vos=0 En=0 Enk=0 In=0 Ink=0 Rin=500Meg ;pnba In+)In-)V+)V-)OUT
R20 N023 +10v__ 330
R21 N024 N023 100
XU8 0 N025 +10v__ 0 3.3V_output level1 Avol=1Meg GBW=10Meg Vos=0 En=0 Enk=0 In=0 Ink=0 Rin=500Meg ;pnba In+)In-)V+)V-)OUT
R22 N025 N024 100
R23 3.3V_output N025 100
XU9 0 N026 +10v__ 0 N027 level1 Avol=1Meg GBW=10Meg Vos=0 En=0 Enk=0 In=0 Ink=0 Rin=500Meg ;pnba In+)In-)V+)V-)OUT
R24 N026 +10v__ 110
R25 N027 N026 100
XU10 0 N028 +10v__ 0 .potential.10v_output level1 Avol=1Meg GBW=10Meg Vos=0 En=0 Enk=0 In=0 Ink=0 Rin=500Meg ;pnba In+)In-)V+)V-)OUT
R26 N028 N027 100
R27 .potential.10v_output N028 100
.tran 0 10 0 0.1

* LTspice schematic (.asc)
Version 4
SHEET 1 44672 33008
WIRE -21584 -16504 -21680 -16504
WIRE -21680 -16440 -21680 -16504
WIRE -18768 -16424 -18768 -16456
WIRE -19536 -16408 -19536 -16440
WIRE -19536 -16312 -19536 -16328
WIRE -19392 -16312 -19536 -16312
WIRE -18912 -16296 -19040 -16296
WIRE -18768 -16296 -18768 -16344
WIRE -18768 -16296 -18816 -16296
WIRE -18656 -16296 -18768 -16296
WIRE -21632 -16280 -21680 -16280
WIRE -21584 -16280 -21632 -16280
WIRE -21680 -16232 -21680 -16280
WIRE -19584 -16232 -19648 -16232
WIRE -20688 -16184 -20736 -16184
WIRE -20560 -16184 -20608 -16184
WIRE -19040 -16184 -19040 -16296
WIRE -19648 -16168 -19648 -16232
WIRE -19536 -16168 -19536 -16216
WIRE -21632 -16088 -21680 -16088
WIRE -21584 -16088 -21632 -16088
WIRE -21680 -16024 -21680 -16088
WIRE -20736 -16024 -20736 -16184
WIRE -20672 -16024 -20736 -16024
WIRE -20560 -16008 -20560 -16184
WIRE -20560 -16008 -20608 -16008
WIRE -20512 -16008 -20560 -16008
WIRE -20992 -15992 -21104 -15992
WIRE -20816 -15992 -20912 -15992
WIRE -20672 -15992 -20816 -15992
WIRE -20736 -15976 -20736 -16024
WIRE -20816 -15944 -20816 -15992
WIRE -21104 -15912 -21104 -15992
WIRE -20736 -15880 -20736 -15896
WIRE -21920 -15688 -21984 -15688
WIRE -21744 -15688 -21840 -15688
WIRE -21648 -15688 -21744 -15688
WIRE -21456 -15688 -21568 -15688
WIRE -18064 -15656 -18064 -15688
WIRE -19040 -15640 -19040 -15656
WIRE -18848 -15640 -18848 -15656
WIRE -21744 -15608 -21744 -15688
WIRE -21664 -15608 -21744 -15608
WIRE -21536 -15608 -21600 -15608
WIRE -20720 -15608 -20768 -15608
WIRE -20560 -15608 -20640 -15608
WIRE -20464 -15608 -20560 -15608
WIRE -20304 -15608 -20384 -15608
WIRE -20112 -15592 -20160 -15592
WIRE -19984 -15592 -20032 -15592
WIRE -18064 -15560 -18064 -15576
WIRE -17936 -15560 -18064 -15560
WIRE -19040 -15544 -19040 -15560
WIRE -18928 -15544 -19040 -15544
WIRE -18848 -15544 -18848 -15560
WIRE -18736 -15544 -18848 -15544
WIRE -18064 -15544 -18064 -15560
WIRE -19040 -15528 -19040 -15544
WIRE -18848 -15528 -18848 -15544
WIRE -21744 -15512 -21744 -15608
WIRE -21632 -15512 -21744 -15512
WIRE -21536 -15496 -21536 -15608
WIRE -21536 -15496 -21568 -15496
WIRE -21456 -15496 -21456 -15688
WIRE -21456 -15496 -21472 -15496
WIRE -21392 -15496 -21456 -15496
WIRE -21344 -15496 -21392 -15496
WIRE -21632 -15480 -21744 -15480
WIRE -20560 -15480 -20560 -15608
WIRE -20480 -15480 -20560 -15480
WIRE -18736 -15480 -18736 -15544
WIRE -18656 -15480 -18736 -15480
WIRE -21984 -15464 -21984 -15688
WIRE -20304 -15464 -20304 -15608
WIRE -20304 -15464 -20416 -15464
WIRE -20272 -15464 -20304 -15464
WIRE -20160 -15464 -20160 -15592
WIRE -20160 -15464 -20192 -15464
WIRE -20112 -15464 -20160 -15464
WIRE -18112 -15464 -18256 -15464
WIRE -21744 -15448 -21744 -15480
WIRE -20480 -15448 -20560 -15448
WIRE -19984 -15448 -19984 -15592
WIRE -19984 -15448 -20048 -15448
WIRE -19920 -15448 -19984 -15448
WIRE -19088 -15448 -19184 -15448
WIRE -18928 -15448 -18928 -15544
WIRE -18896 -15448 -18928 -15448
WIRE -17936 -15448 -17936 -15560
WIRE -17824 -15448 -17936 -15448
WIRE -20112 -15432 -20304 -15432
WIRE -19184 -15416 -19184 -15448
WIRE -18256 -15416 -18256 -15464
WIRE -20768 -15368 -20768 -15608
WIRE -20560 -15288 -20560 -15448
WIRE -20304 -15288 -20304 -15432
WIRE -22320 -15032 -22336 -15032
WIRE -22048 -15032 -22320 -15032
WIRE -22048 -14936 -22048 -15032
WIRE -22000 -14936 -22048 -14936
WIRE -21840 -14936 -21920 -14936
WIRE -21744 -14936 -21840 -14936
WIRE -21584 -14936 -21664 -14936
WIRE -21392 -14920 -21440 -14920
WIRE -21264 -14920 -21312 -14920
WIRE -22336 -14888 -22336 -15032
WIRE -21840 -14808 -21840 -14936
WIRE -21760 -14808 -21840 -14808
WIRE -21584 -14792 -21584 -14936
WIRE -21584 -14792 -21696 -14792
WIRE -21552 -14792 -21584 -14792
WIRE -21440 -14792 -21440 -14920
WIRE -21440 -14792 -21472 -14792
WIRE -21392 -14792 -21440 -14792
WIRE -21760 -14776 -21840 -14776
WIRE -21264 -14776 -21264 -14920
WIRE -21264 -14776 -21328 -14776
WIRE -21232 -14776 -21264 -14776
WIRE -21200 -14776 -21232 -14776
WIRE -21392 -14760 -21584 -14760
WIRE -21840 -14616 -21840 -14776
WIRE -21584 -14616 -21584 -14760
WIRE -22048 -14456 -22048 -14936
WIRE -22000 -14456 -22048 -14456
WIRE -21840 -14456 -21920 -14456
WIRE -21744 -14456 -21840 -14456
WIRE -21584 -14456 -21664 -14456
WIRE -21392 -14440 -21440 -14440
WIRE -21264 -14440 -21312 -14440
WIRE -21840 -14328 -21840 -14456
WIRE -21760 -14328 -21840 -14328
WIRE -21584 -14312 -21584 -14456
WIRE -21584 -14312 -21696 -14312
WIRE -21552 -14312 -21584 -14312
WIRE -21440 -14312 -21440 -14440
WIRE -21440 -14312 -21472 -14312
WIRE -21392 -14312 -21440 -14312
WIRE -21760 -14296 -21840 -14296
WIRE -21264 -14296 -21264 -14440
WIRE -21264 -14296 -21328 -14296
WIRE -21200 -14296 -21264 -14296
WIRE -21392 -14280 -21584 -14280
WIRE -21840 -14136 -21840 -14296
WIRE -21584 -14136 -21584 -14280
WIRE -22048 -13976 -22048 -14456
WIRE -22000 -13976 -22048 -13976
WIRE -21840 -13976 -21920 -13976
WIRE -21744 -13976 -21840 -13976
WIRE -21584 -13976 -21664 -13976
WIRE -21392 -13960 -21440 -13960
WIRE -21264 -13960 -21312 -13960
WIRE -21840 -13848 -21840 -13976
WIRE -21760 -13848 -21840 -13848
WIRE -21584 -13832 -21584 -13976
WIRE -21584 -13832 -21696 -13832
WIRE -21552 -13832 -21584 -13832
WIRE -21440 -13832 -21440 -13960
WIRE -21440 -13832 -21472 -13832
WIRE -21392 -13832 -21440 -13832
WIRE -21760 -13816 -21840 -13816
WIRE -21264 -13816 -21264 -13960
WIRE -21264 -13816 -21328 -13816
WIRE -21200 -13816 -21264 -13816
WIRE -21392 -13800 -21584 -13800
WIRE -21840 -13656 -21840 -13816
WIRE -21584 -13656 -21584 -13800
WIRE 22304 16488 22304 16472
WIRE 22336 16488 22304 16488
WIRE 22336 16504 22336 16488
FLAG -21104 -15832 0
FLAG -20816 -15880 0
FLAG -21680 -16152 0
FLAG -21680 -15944 0
FLAG -21632 -16280 +10v
FLAG -21632 -16088 +5v
FLAG -20736 -15880 0
FLAG -20640 -16040 +10v
FLAG -20640 -15976 0
FLAG -20512 -16008 #1_1
FLAG -21984 -15384 0
FLAG -21744 -15448 0
FLAG -21600 -15528 +5v
FLAG -21600 -15464 0
FLAG -21392 -15416 0
FLAG -21344 -15496 #2_1/#2_2_input
FLAG -20768 -15288 0
FLAG -20560 -15288 0
FLAG -20448 -15496 +5v
FLAG -20448 -15432 0
FLAG -20080 -15480 +5v
FLAG -20080 -15416 0
FLAG -20304 -15288 0
FLAG -19920 -15448 #2_3/#2_4_input
FLAG -19648 -16088 0
FLAG -19536 -16440 +5v
FLAG -19536 -16168 0
FLAG -19040 -16104 0
FLAG -21680 -16360 0
FLAG -21584 -16504 +3.3v
FLAG -18768 -16456 +5v
FLAG -18896 -16344 +3.3v
FLAG -19184 -15336 0
FLAG -19040 -15656 +3.3v
FLAG -18848 -15656 +3.3v
FLAG -19040 -15432 0
FLAG -18848 -15432 0
FLAG -18256 -15336 0
FLAG -18064 -15448 0
FLAG -18064 -15688 +3.3v
FLAG -22336 -14808 0
FLAG -21840 -14616 0
FLAG -21728 -14760 0
FLAG -21360 -14744 0
FLAG -21584 -14616 0
FLAG -21200 -14776 5V_output
FLAG -21840 -14136 0
FLAG -21728 -14280 0
FLAG -21360 -14264 0
FLAG -21584 -14136 0
FLAG -21200 -14296 3.3V_output
FLAG -21840 -13656 0
FLAG -21728 -13800 0
FLAG -21360 -13784 0
FLAG -21584 -13656 0
FLAG -21200 -13816 .potential.10v_output
FLAG -21232 -14776 +5v__
FLAG -22320 -15032 +10v__
FLAG -21360 -13848 +10v__
FLAG -21728 -13864 +10v__
FLAG -21728 -14824 +10v__
FLAG -21360 -14808 +10v__
FLAG -21728 -14344 +10v__
FLAG -21360 -14328 +10v__
SYMBOL voltage -21104 -15928 R0
SYMATTR Value PULSE(0 3.3 0 10n 10n 0.5u 1u 2000)
SYMATTR InstName Fast_PWM
SYMBOL res -20896 -16008 R90
SYMATTR InstName R1
SYMATTR Value 3k
SYMBOL cap -20832 -15944 R0
SYMATTR InstName C1
SYMATTR Value 10n
SYMBOL voltage -21680 -16248 R0
SYMATTR InstName V1
SYMATTR Value 10V
SYMBOL voltage -21680 -16040 R0
SYMATTR InstName V3
SYMATTR Value 5V
SYMBOL res -20752 -15992 R0
SYMATTR InstName R3
SYMATTR Value 200
SYMBOL OpAmps\\UniversalOpAmp -20640 -16008 R0
SYMATTR InstName U1
SYMBOL res -20592 -16200 R90
SYMATTR InstName R2
SYMATTR Value 400
SYMBOL voltage -21984 -15480 R0
SYMATTR InstName #2_1/#2_2
SYMATTR Value SINE(0 4 50 0 0 0 100)
SYMBOL res -21824 -15704 R90
SYMATTR InstName R4
SYMATTR Value 200
SYMBOL res -21552 -15704 R90
SYMATTR InstName R5
SYMATTR Value 100
SYMBOL OpAmps\\UniversalOpAmp -21600 -15496 R0
SYMATTR InstName U2
SYMBOL diode -21536 -15480 R270
SYMATTR InstName D1
SYMATTR Value 1N4148
SYMBOL diode -21664 -15592 R270
SYMATTR InstName D2
SYMATTR Value 1N4148
SYMBOL res -21408 -15512 R0
SYMATTR InstName R6
SYMATTR Value 1k
SYMBOL voltage -20768 -15384 R0
SYMATTR InstName #2_3/#2_4
SYMATTR Value 5
SYMBOL OpAmps\\UniversalOpAmp -20448 -15464 R0
SYMATTR InstName U3
SYMBOL res -20624 -15624 R90
SYMATTR InstName R7
SYMATTR Value 150
SYMBOL res -20368 -15624 R90
SYMATTR InstName R8
SYMATTR Value 100
SYMBOL OpAmps\\UniversalOpAmp -20080 -15448 R0
SYMATTR InstName U4
SYMBOL res -20176 -15480 R90
SYMATTR InstName R9
SYMATTR Value 100
SYMBOL res -20016 -15608 R90
SYMATTR InstName R10
SYMATTR Value 100
SYMBOL voltage -19648 -16184 R0
SYMATTR InstName V2
SYMATTR Value PULSE(0 3.3 0 10n 10n 500m 1000m 5)
SYMBOL res -19552 -16424 R0
SYMATTR InstName R11
SYMATTR Value 100k
SYMBOL voltage -19040 -16200 R0
SYMATTR InstName V4
SYMATTR Value PULSE(0 3.3 0 10n 10n 500m 1000m 5)
SYMBOL voltage -21680 -16456 R0
SYMATTR InstName V5
SYMATTR Value 3.3V
SYMBOL nmos -19584 -16312 R0
SYMATTR InstName M1
SYMBOL nmos -18816 -16344 R90
SYMATTR InstName M2
SYMBOL res -18784 -16440 R0
SYMATTR InstName R12
SYMATTR Value 100k
SYMBOL voltage -19184 -15432 R0
SYMATTR InstName V6
SYMATTR Value PULSE(0 5 0 10n 10n 500m 1 5)
SYMBOL nmos -19088 -15528 R0
SYMATTR InstName M3
SYMBOL nmos -18896 -15528 R0
SYMATTR InstName M4
SYMBOL res -19056 -15656 R0
SYMATTR InstName R13
SYMATTR Value 100k
SYMBOL res -18864 -15656 R0
SYMATTR InstName R14
SYMATTR Value 100k
SYMBOL voltage -18256 -15432 R0
SYMATTR InstName V7
SYMATTR Value PULSE(0 5 0 10n 10n 500m 1 5)
SYMBOL nmos -18112 -15544 R0
SYMATTR InstName M5
SYMBOL res -18080 -15672 R0
SYMATTR InstName R15
SYMATTR Value 100k
SYMBOL voltage -22336 -14904 R0
SYMATTR InstName V8
SYMATTR Value 10.8V
SYMBOL OpAmps\\UniversalOpAmp -21728 -14792 R0
SYMATTR InstName U5
SYMBOL res -21904 -14952 R90
SYMATTR InstName R16
SYMATTR Value 200
SYMBOL res -21648 -14952 R90
SYMATTR InstName R17
SYMATTR Value 100
SYMBOL OpAmps\\UniversalOpAmp -21360 -14776 R0
SYMATTR InstName U6
SYMBOL res -21456 -14808 R90
SYMATTR InstName R18
SYMATTR Value 100
SYMBOL res -21296 -14936 R90
SYMATTR InstName R19
SYMATTR Value 100
SYMBOL OpAmps\\UniversalOpAmp -21728 -14312 R0
SYMATTR InstName U7
SYMBOL res -21904 -14472 R90
SYMATTR InstName R20
SYMATTR Value 330
SYMBOL res -21648 -14472 R90
SYMATTR InstName R21
SYMATTR Value 100
SYMBOL OpAmps\\UniversalOpAmp -21360 -14296 R0
SYMATTR InstName U8
SYMBOL res -21456 -14328 R90
SYMATTR InstName R22
SYMATTR Value 100
SYMBOL res -21296 -14456 R90
SYMATTR InstName R23
SYMATTR Value 100
SYMBOL OpAmps\\UniversalOpAmp -21728 -13832 R0
SYMATTR InstName U9
SYMBOL res -21904 -13992 R90
SYMATTR InstName R24
SYMATTR Value 110
SYMBOL res -21648 -13992 R90
SYMATTR InstName R25
SYMATTR Value 100
SYMBOL OpAmps\\UniversalOpAmp -21360 -13816 R0
SYMATTR InstName U10
SYMBOL res -21456 -13848 R90
SYMATTR InstName R26
SYMATTR Value 100
SYMBOL res -21296 -13976 R90
SYMATTR InstName R27
SYMATTR Value 100