A switchable linear regulator. The switchable linear regulator comprises a
constant voltage source, a differential amplifier, a pass transistor, a
first resistor, a plurality of second resistors and a plurality of
switches. The differential amplifier has a first input terminal coupled
to the constant voltage source and a second input terminal connected to a
first node. The pass transistor has a first terminal controlled by the
differential amplifier, a second terminal coupled to a supply voltage,
and a third terminal connected to a second node. The first resistor is
connected between the first and second nodes. Each second resistor
comprises one end connected to the first node. Each switch is coupled
between the other end of a corresponding second resistor and the ground.