PWM Code to for mosfet gate

How is that wish related to your code?