The present disclosure is directed to an electrosurgical generator (100) including a resonant inverter (102) having an H-bridge (104) and a tank (106). The generator also includes a pulse width modulation (PWM) controller (110) configured to output PWM timing signals to the H-bridge (104). A switch (134) is configured to select a modality from among a plurality of modalities and the PWM controller (110) adjusts a frequency of the PWM timing signals based on the selected modality.