The present invention is an inverter controller with feed-forward
compensation. The inverter controller includes an error amplifier, a high
frequency oscillator (HFOSC) with feed-forward compensation, a
comparator, and a driver. The error amplifier can output a signal
independent on the variation of a supply voltage. The HFOSC can generate
a saw-tooth signal with a constant frequency and an amplitude
proportional to the supply voltage. The comparator can compare the signal
with the saw-tooth signal and generate a pulse width modulation signal
whose duty cycle varies with the variation of the supply voltage. The
driver receives the PWM signal and provides a proper pulse width
modulation signal to drive an external inverter.