Hi All,
I'm working on creating a 3-level PWM signal to drive an H-bridge for an inverter. The circuit before the MOSFETs is working just fine, but when I try the switching section I get fairly substantial distortion from voltage spikes and then Vpos is turned on when for all practical purposes it should be off, or so I think. Is this from the MOSFETs I'm using to switch or is there a fundamental flaw in the design somewhere,maybe an LTspice artifact?
Just some background on the circuit's operation, the square wave (Vsq) and triangle (Vtri) waves are summed in a non-inverting amplifier and then that signal is compared against a sine wave with a frequency equal to the square wave. There are two comparators there because I wanted a symmetrical waveform. Vneg is identical to Vpos every T/2 periods and then I use the MOSFETs to switch between Vpos and Vneg. Vsq is put through the inverter and to the Vneg gate to accommodate the T/2 shift.
I'm pretty new to MOSFETs so any aid you could provide is much appreciated,
Thanks
Additionally, the final circuit will have a triangle wave that reaches a max of ~500kHz if I can pull it off. If not I'd aim for ~200kHz

I'm working on creating a 3-level PWM signal to drive an H-bridge for an inverter. The circuit before the MOSFETs is working just fine, but when I try the switching section I get fairly substantial distortion from voltage spikes and then Vpos is turned on when for all practical purposes it should be off, or so I think. Is this from the MOSFETs I'm using to switch or is there a fundamental flaw in the design somewhere,maybe an LTspice artifact?
Just some background on the circuit's operation, the square wave (Vsq) and triangle (Vtri) waves are summed in a non-inverting amplifier and then that signal is compared against a sine wave with a frequency equal to the square wave. There are two comparators there because I wanted a symmetrical waveform. Vneg is identical to Vpos every T/2 periods and then I use the MOSFETs to switch between Vpos and Vneg. Vsq is put through the inverter and to the Vneg gate to accommodate the T/2 shift.
I'm pretty new to MOSFETs so any aid you could provide is much appreciated,
Thanks
Additionally, the final circuit will have a triangle wave that reaches a max of ~500kHz if I can pull it off. If not I'd aim for ~200kHz

