CPC G11C 11/1675 (2013.01) [G11C 11/1677 (2013.01); G11C 11/1697 (2013.01)] | 6 Claims |
1. A semiconductor device comprising:
a plurality of memory cells;
a write circuit for supplying a write current to the memory cells;
a power supply circuit for supplying power to the write circuit, wherein the power supply circuit includes:
a charge pump circuit for boosting an external power supply; and
a selection circuit for switching between a voltage of the external power supply and a boosted voltage boosted by the charge pump circuit to supply the power to the write circuit; and
a control circuit i) executes data write processing using the voltage of the external power supply, ii) determines whether a number of errors that occurred during the data write processing executed using the voltage of the external power supply is equal to or less than a predetermined number, iii) continue executing the data write processing using the voltage of the external power supply when the number of errors is not equal to or less than the predetermined number, and iv) control the selection circuit to switch from the voltage of the external power supply to the boosted voltage and execute data write processing using the boosted voltage when the number of errors is equal to or less than the predetermined number.
|