主权项 |
1. A data storage device, comprising:
a flash memory, comprising a plurality of chips, a plurality of channel select lines and a plurality of chip select lines, wherein each of the chips has a plurality of pages, and the chips are arranged in a matrix, the channel select lines are arranged to select columns of the matrix, the chip select lines are arranged to select rows of the matrix, the pages of each of the chips are arranged to be assembled into a super block according to a predetermined order, and each of the super blocks comprises the pages of the different chips; a plurality of counting control arrays, wherein each of the counting control arrays comprises a plurality of fields, the counting control arrays corresponds to one of the super blocks, each of the fields corresponds to one of a plurality of combinations of the chip select lines and the channel select lines that arranged to select the chips; and a controller, reading a first counting control array corresponding to a first super block of the super blocks to obtain value of a first field corresponding to a first chip of the first counting control array when data of the first super block in the first chip is required to be read, wherein the controller keeps the value of the first field and writes a second value into the other fields except of the first field of the first counting control array when the value of the first field is a first value, and writes the first value into the first field and maintain values of the other fields except for the first field of the first counting control array when the value of the first field is the second value. |