1. A programmable voltage regulator comprising: a voltage input;
a regulated voltage output
a regulator transistor having a channel between the voltage input and the regulated voltage output, wherein an effective resistance of the channel is a function of a gate voltage of the regulator transistor;
a reference voltage generator for generating a reference voltage;
a comparator receiving the reference voltage from the reference voltage generator and a feedback voltage, the comparator comparing the feedback voltage to the reference voltage to generate the gate voltage to the regulator transistor;
a variable resistor network coupled between the regulated voltage output and a ground;
a series of resistors within the variable resistor network;
a plurality of switches coupled to tap nodes between resistors in the series of resistors, the plurality of switches connecting a tap node to the comparator to generate the feedback voltage; and
a programmable register storing a resistor setting value that controls the plurality of switches, the resistor setting value determining which tap node in the series of resistors is connected to the comparator as the feedback voltage.