In a method and system for controlling a direct current to direct current
(DC-DC) converter includes an inductor coupled to receive a voltage input
at an input terminal. A diode is coupled in series between the inductor
and an output terminal of the DC-DC converter. A switch is coupled
between the inductor and a ground reference. The switch receives a
control signal from a controller for adjusting a duty cycle of the DC-DC
converter. The duty cycle controls an output voltage at the output
terminal. The controller generates the control signal in response to
receiving a feedback signal, which is derived as a predefined function of
a voltage feedback signal indicative of the output voltage and a current
feedback signal indicative of a current flowing through the inductor.