Patent ID: 8612667

Claim:
A method for performing data pattern management regarding data accessed by a controller of a Flash memory, the method comprising: when the controller receives a write command, generating a first random function, wherein the write command is utilized for instructing the controller to write the data into the Flash memory; adjusting a plurality of bits of the data bit by bit according to a sequence of the first random function to generate a pseudo-random bit sequence, and writing the pseudo-random bit sequence into the Flash memory to represent the data, whereby data pattern distribution of the data is adjusted; providing at least one Linear Feedback Shift Register (LFSR) within the controller; utilizing the at least one LFSR to generate at least one random function, wherein the at least one random function comprises the first random function; providing at least one switch within the at least one LFSR to form at least one programmable LFSR, wherein each switch of the programmable LFSR is installed on a linear combination path of the programmable LFSR; and inputting at least one key into the switch of the programmable LFSR, in order to utilize the at least one key to set linear combination path(s) of the programmable LFSR.