Patent attributes
A control circuit for a voltage regulator includes a divider coupled to the regulated output voltage to generate a divided voltage having a value that is a fraction of the regulated output voltage, an ADC responsive to the divided voltage to generate a feedback control signal, a digital compensator responsive to the feedback control signal and to a feedforward control signal scaled by a feedforward gain value to generate a compensator signal, and a pulse width modulator responsive to the compensator signal to generate a voltage control signal to control a switch of the voltage regulator. The digital compensator includes a register configured to store a value indicative of the input voltage and a feedforward gain unit configured to generate the feedforward gain value in response to the value indicative of the input voltage. In embodiments, the feedforward gain value is generated in response to the square of the value indicative of the input voltage. The feedforward gain value can be updated each time the value indicative of the input voltage is updated.