Patent ID: 8675417

Claim:
A method of storing a plurality of bits, comprising: (a) attempting to set a respective value of a physical parameter of each of at least one memory cell so that the at least one value of the physical parameter of the at least one memory cell represents an initial portion of the bits; (b) providing, in accordance with the at least one value to which the physical parameter of the at least one cell has been set, an adaptive mapping of the bits to physical parameter value ranges for storing all of the bits in the at least one memory cell; and (c) for each of the at least one memory cell, if, according to the adaptive mapping, the respective value of the physical parameter of the each memory cell needs to be adjusted in order for all of the bits to be stored in the at least one memory cell: adjusting the respective value of the physical parameter of the each memory cell in accordance with the adaptive mapping.