Patent ID: 7855903

Claim:
A power converter device, comprising: a first pin; a second pin; an error amplifier having an input and an output, wherein the input of the error amplifier is coupled to the first pin; a switch that is coupled to the second pin and the output of the error amplifier, that is operable to de-couple the second pin from the output of the error amplifier during a first stage of operation, and that is operable to couple the second pin to the output of the error amplifier during a second stage of operation; a comparison circuit that is coupled to the switch so as to compare an external current to a plurality of reference currents from a plurality of current sources during the second stage of operation, wherein the comparison circuit includes a current minor circuit that is coupled to each of the current sources; and a decoder that is operable to select a parameter during the first stage of operation as a function of a determined reference signal, wherein the decode includes: a plurality of flip-flops that are each coupled to at least one of the portions of the comparison circuit; and combinational logic that is coupled to each of the flip-flops.