Patent ID: 8943264
Filing Date: 2015-01-27
Classification: G06F

Abstract:
1. A method for storing data in a rewritable non-volatile memory module, wherein the rewritable non-volatile memory module comprises a plurality of physical erase units, each of the physical erase units has a plurality of physical program units, the physical program units comprise a plurality of lower physical program units and a plurality of upper physical program units, a speed of writing data into the lower physical program units is greater than a speed of writing data into the upper physical program units, and the method comprises: configuring a plurality of logical addresses; receiving a page data from a host system, wherein the page data is to be stored in a first logical address of the logical addresses according to an instruction of the host system; selecting a first physical erase unit from the physical erase units, wherein the first physical erase unit belongs to a spare physical erase unit; determining whether a storage status of the rewritable non-volatile memory module is a predetermined status; if the storage status of the rewritable non-volatile memory module is the predetermined status, using a first writing mode to write the page data into a first physical program unit of the physical program units in the first physical erase unit, and mapping the first logical address to the first physical program unit, wherein in the first writing mode the lower physical program units of the first physical erase unit are applied for writing data, and the upper physical program units of the first physical erase unit are not applied for writing data; and if the storage status of the rewritable non-volatile memory module is not the predetermined status, using a second writing mode to write the page data into a second physical program unit of the physical program units in the first physical erase unit, and mapping the first logical address to the second physical program unit, wherein in the second writing mode the lower physical program units and the upper physical program units of the first physical erase unit are applied for writing data.