PWM Code to for mosfet gate

Both what?
What frequency is showing?