Patent ID: 8498173

Claim:
A semiconductor device configured to output an internal power supply voltage from an output terminal based on an external power supply voltage supplied to an input terminal, comprising: a power supply switch, one end of the power supply switch being connected to the input terminal, the other end of the power supply switch being connected to the output terminal, and the power supply switch being controlled to be on or off; and a first regulator comprising a power supply terminal and a voltage output terminal, the power supply terminal being connected to the one end of the power supply switch, the voltage output terminal being connected to the other end of the power supply switch, the first regulator configured to control a voltage of the voltage output terminal to approach a target voltage based on a voltage of the power supply terminal, the target voltage being switched to a first voltage or a second voltage, the first voltage being equal to or more than the voltage of the power supply terminal, the second voltage being lower than the voltage of the power supply terminal, wherein after the power supply switch is controlled to be on and the target voltage of the first regulator is set at the first voltage, the power supply switch is controlled to be off, and at or after the point in time when the power supply switch is controlled to be off, the target voltage of the first regulator is set at the second voltage.