Patent ID: 6963501

Claim:
A nonvolatile memory comprising: a memory cell array including: a data storage area configured to store a data; and a data invert flag storage area configured to store a data invert flag indicating whether or not the data is inverted, the memory cell array configured to output selected data and a data invert flag related to the selected data; a state machine configured to determine whether or not the number of memory cells to which a bias voltage is applied is equal to or greater than a predetermined number when writing data into the memory cell array, the state machine configured to instruct a data controller to transfer inverted data and a data invert flag if it is equal to or greater than the predetermined number; and the data controller configured to receive the data to be written into the memory cell array, the data controller configured to transfer, to the memory cell array, the data inverted according to the instruction of the state machine and the data invert flag.