PWM Code to for mosfet gate

yes in the phase shift please