An integrated circuit comprising a plurality of resistivity changing cells, wherein at least two resistance ranges are assigned to each resistivity changing cell, each resistance range defining a possible state of the resistivity changing cell and wherein the integrated circuit is operable in a cell initializing mode, in which initializing signals are applied to the resistivity changing cells, strengths and durations of the initializing signals being chosen such that the resistance of each resistivity changing cell is shifted into one of the resistance ranges assigned to the resistivity changing cell.