I am working on sine wave inverter and i really need serious help,It will be heavily appreciated, I am controlling H-bridge(High side P channel,Low side N-channel) via SPWM signals and 50HZ Square Pulses.The first leg controlled by SPWM and other leg controlled by 50HZ square waves, I am confused about the functioning of P-channel Mosfets, How are they conducting?.What is the criteria of conduction? The source of high side p mosfets is 12V dc to be converted to 220V,50Hz sine wave,My confusion is that output distorted Sine wave will have a peak of 12V?. After implementing on proteus I am getting 0v between two outputs of H-bridge.