Patent ID: 8866457

Claim:
A voltage regulator comprising: an error amplifier circuit which amplifies and outputs the difference between a reference voltage and a divided voltage obtained by dividing a voltage output by an output transistor so as to control a gate of the output transistor; and a phase compensation circuit, wherein the phase compensation circuit comprises: a first transistor having a drain thereof connected to an output terminal of the error amplifier circuit; a second transistor having a drain thereof connected to a gate of the first transistor and a gate thereof connected to the gate of the first transistor through a resistor; a current mirror circuit which comprises a voltage detector transistor detecting a voltage input to the gate of the output transistor, mirrors current flowing into the voltage detector transistor and supplies current to a drain of the first transistor and a drain of the second transistor; and a first capacitor connected between a gate of the second transistor and a drain of the output transistor.