Patent ID: 7417414

Claim:
A semiconductor device comprising: an input terminal; an output terminal; a switching element which is connected between a first node located between said input terminal and said output terminal and a ground potential; an output voltage detection circuit which detects an output voltage as a voltage of said output terminal; a control circuit which is connected between a control electrode of said switching element and said output voltage detection circuit, and controls driving of said switching element on the basis of said output voltage detected by said output voltage detection circuit; and a feedback circuit which is connected between said control electrode of said switching element and a second node located between said output voltage detection circuit and said control circuit, and includes a resistive element and a capacitive element, wherein said control circuit includes an error amplifier whose input node is connected to said second node, wherein said resistive element is connected between said control electrode of said switching element and said capacitive element, and said capacitive element is connected between said resistive element and said input node of said error amplifier, and wherein said control circuit includes a phase compensation circuit being connected between said input node of the error amplifier and an output node of the error amplifier.