A power supply controller circuit in one embodiment comprises a power
switch, a multifunction circuit, and a control circuit. The power switch
comprises a source and a drain respectively coupled to first and second
terminals of the power supply controller circuit. The multifunction
circuit comprises a first input that is coupled to a third terminal of
the controller circuit, wherein the third terminal is to receive a first
current control signal, and wherein the multifunction circuit is to
generate a second current control signal in response to the first current
control signal. The control circuit generates a switching waveform to
drive a control input of the power switch in response to: an oscillating
signal, a signal that is representative of current flowing through the
power switch, and the second current control signal.