PWM Code to for mosfet gate

can you help me with the code for the inverted output signal, or can you clarify more what you mean?