Patent ID: 8381046
Filing Date: 2013-02-19
Classification: G06F,H03M

Abstract:
1. A method for preventing data shift errors, comprising: receiving data from a host; encoding the data to obtain an error correction code; scrambling the error correction code according to a scramble algorithm to obtain a scrambled code to be stored in a memory of a data storage device; when the host requests the data from the data storage device, reading the scrambled code from the memory to obtain a first read-out code; descrambling the first read-out code according to a descramble algorithm to obtain a first descrambled error correction code; decoding the first descrambled error correction code to determine whether the first descrambled error correction code comprises uncorrectable errors; when the first descrambled error correction code comprises uncorrectable errors, re-reading the scrambled code from the memory to obtain a second read-out code without shift errors, descrambling the second read-out code to obtain a second descrambled error correction code, and decoding the second descrambled error correction code; and sending the data obtained by decoding the first descrambled error correction code or the second descrambled error correction code to the host.