Patent ID: 8169387

Claim:
A programmable light-emitting diode (LED) driver circuit for driving at least one LED, the programmable LED driver circuit comprising: a charge pump capable of being turned off and on, and when on, capable of providing a plurality of different non-zero output voltages to the at least one LED in response to first control signal; a current regulator for generating a reference current, the current regulator including an on-chip trimmable resistance module, the reference current being generated based upon a reference voltage and a resistance of the on-chip trimmable resistance module; the on-chip trimmable resistance module including a plurality of resistors connected in series and a plurality of switches coupled to receive second control signals to thereby change the resistance of the on-chip trimmable resistance module; at least two transistors coupled to each of the at least one LED, the at least two transistors being controlled by third control signals; and a non-volatile memory configured to store: first control data for specifying the first control signals to select one of the different non-zero output voltages; second control data for specifying the second control signals to select the resistance of the on-chip trimmable resistance module; third control data for specifying the third control signals to operate the at least two transistors.