| CPC G11C 11/1677 (2013.01) [G11C 11/1695 (2013.01)] | 23 Claims |

|
1. A magnetic storage device, comprising:
a nonvolatile magnetic memory including a plurality of memory cells each equipped with a magnetoresistance effect element;
a magnetic sensor configured to measure a magnitude of an external magnetic field; and
a controller configured to cause data to be written to the plurality of memory cells in a writing operation with writing parameters set according to the measured magnitude of the external magnetic field, wherein
the controller:
determines a threshold value based on a current number of times for writing data to the memory cells within the same writing operation; and
upon receipt of the measured magnitude of the external magnetic field that is greater than or equal to the determined threshold value, increases the number of times for writing data to the memory cells within the same writing operation.
|