Patent ID: 9336081
Filing Date: 2016-05-10
CPC Classification: G06F

Claim Text:
1. A data writing method for writing data into a rewritable non-volatile memory module, the data writing method comprising: compressing the data to generate a first data; determining whether a length of the first data is smaller than a predetermined length; when the length of the first data is not smaller than the predetermined length, outputting the first data as a compressed data; when the length of the first data is not smaller than the predetermined length, padding the first data by using at least one padding bit to generated a second data, and outputting the second data as the compressed data, wherein a length of the second data is equal to the predetermined length; inputting the compressed data without a predetermined padding data into an error checking and correcting circuit to generate an error checking and correcting (ECC) code corresponding to the compressed data; generating an ECC frame according to the compressed data, the ECC code corresponding to the compressed data, and the predetermined padding data; and writing the ECC frame into the rewritable non-volatile memory module.