WO2010000206A1 - Data storing methods and apparatus thereof - Google Patents

Data storing methods and apparatus thereof Download PDF

Info

Publication number
WO2010000206A1
WO2010000206A1 PCT/CN2009/072599 CN2009072599W WO2010000206A1 WO 2010000206 A1 WO2010000206 A1 WO 2010000206A1 CN 2009072599 W CN2009072599 W CN 2009072599W WO 2010000206 A1 WO2010000206 A1 WO 2010000206A1
Authority
WO
WIPO (PCT)
Prior art keywords
page
storing
data
pages
writing
Prior art date
Application number
PCT/CN2009/072599
Other languages
French (fr)
Inventor
Kun-Lin Ho
Original Assignee
Silicon Motion, Inc.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN2008101843199A external-priority patent/CN101620513B/en
Application filed by Silicon Motion, Inc. filed Critical Silicon Motion, Inc.
Publication of WO2010000206A1 publication Critical patent/WO2010000206A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0238Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory
    • G06F12/0246Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory in block erasable memory, e.g. flash memory

Definitions

  • the invention relates to flash memory, and more particularly to a data storing method and apparatus for multi-level cell (MLC) flash memories
  • Non-volatile memory such as a NAND flash memory, which has the advantages of a speedy programming time, a small chip area and low power consumption, commonly serve as storage media for various kinds of multimedia data, e g , secure digital (SD) cards or compact flash (CF) cards
  • SD secure digital
  • CF compact flash
  • a NAND flash memory may comprise a single-level cell (SLC) flash memory and a multi-level cell (MLC) flash memory, wherein each single-level cell may store two values '0' and T and each multi-level cell may store four values, such as OO', '01', ' 10' and ' 11', thus allowing for higher storage density
  • SLC single-level cell
  • MLC multi-level cell
  • the multi-level cell flash memory disadvantageously involves a low data transfer rate and is subject to data corruption and data loss [0004] Therefore, it is desirable to provide a data storing method capable of solving the problems due to data loss induced by the multi-level cell flash memory and further improving the reliability of data retention
  • the invention provides a data storing method for a non-volatile memory having at least one memory block
  • the non-volatile memory is a NAND flash memory and the memory block is a multi-level cell memory block
  • the memory block comprises a plurality of pages and the pages comprise a plurality of strong pages and a plurality of weak pages
  • the method comprises the steps of receiving a logic block writing command for storing corresponding writing data into the memory block, determining whether the writing data is larger than one page, dividing the writing data into a plurality of page data according to the memory size of the page when the writing data is larger than one page, obtaining a plurality of first storing pages for each page data according to a starting writing page corresponding to the logic block writing command, and sequentially writing the page data into the first storing pages, wherein each of the first storing pages is a strong page within the memory block
  • the invention provides a data storing apparatus comprising a nonvolatile memory and a controller
  • the non-volatile memory comprises at least one memory block
  • the non-volatile memory is a NAND flash memory and the memory block is a multi-level cell memory block
  • the memory block comprises a plurality of pages and the pages comprise a plurality of strong pages and a plurality of weak pages
  • the controller is coupled the non-volatile memory for receiving a logic block writing command from a host, determining whether the writing data corresponding to the logic block writing command is larger than one page, dividing the writing data larger than one page into a plurality of page data according to the memory size of the page, obtaining a plurality of first storing pages for each page data according to a starting writing page corresponding to the logic block writing command, and sequentially writing the page data into the first storing pages, wherein each of the first storing pages is a strong page in the memory block
  • the invention provides a data storing method for a non-volatile memory
  • the non-volatile memory is a NAND flash memory having at least one memory block
  • the memory block comprises a plurality of pages
  • the pages comprise a plurality of strong pages and a plurality of weak pages
  • a first writing command, a first starting address and writing data are received
  • the writing data is divided into a plurality of page data according to the first starting address and the length of the writing data, wherein the page data corresponds to a plurality of first storing pages
  • the first storing pages are converted into a plurality of second storing pages
  • a plurality of second writing commands, a plurality of second starting address for the second storing pages and the page data are transmitted to the non- volatile memory for data writing
  • the second storing pages are strong pages
  • the invention provides a data storing method for a non-volatile memory
  • the non-volatile memory is a NAND flash memory having at least one memory block, the memory block comprises a plurality of pages and the pages comprise a plurality of strong pages and a plurality of weak pages
  • the method comprises the steps of receiving a writing command and writing data, dividing the writing data into a plurality of page data, and writing the page data sequentially into the strong pages within the memory block of the non- volatile memory
  • FIG 1 shows a data storing apparatus and a host according to an embodiment of the invention
  • FIG 2 is a schematic diagram showing a non- volatile memory having several multi-level cell memory blocks according to an embodiment of the invention
  • FIG 3 shows a Mapping Table according to an embodiment of the invention
  • FIG 4 is a flowchart showing a data storing method according to an embodiment of the invention
  • FIG 5 is a flowchart showing a data storing method according to another embodiment of the invention.
  • FIG 6 is a flowchart showing a data storing method according to still another embodiment of the invention.
  • FIG 7 is a flowchart showing a data storing method according to yet another embodiment of the invention.
  • FIG 1 shows a data storing apparatus 102 and a host 104 according to an embodiment of the invention
  • the data storing apparatus 102 is a memory card or a solid state disk (SSD)
  • the host 104 e g , a digital camera or a cell phone
  • the data storing apparatus 102 comprises a controller 106 and a memory 108
  • the memory 108 is a non- volatile memory, such as a NAND flash memory embodied with several memory blocks as shown in FIG 2
  • FIG 2 is a schematic diagram showing a non-volatile memory 208 having several multi-level cell memory blocks according to an embodiment of the invention
  • the memory 208 comprises 1024 multi-level cell memory blocks For each memory block, such as Memory Block M, 128
  • the controller 106 is coupled to the host 104 and the memory 108 for receiving a logic block writing command from the host 104
  • the controller 106 acquires the corresponding writing data (i e , the system file 202) and a starting logic block address (LBA) according to the logic block writing command
  • the logic block writing command may comprise the number of logic blocks for storing the writing data
  • the starting logic block address is provided to correspond to a sector of a memory block, e g , sector 4N+2, and determining a starting writing page, such as Page N of the Memory Block M as shown in FIG 2
  • the controller 106 determines whether the writing data is larger than one page According to the aforementioned embodiment, assuming that 6 pages are required to store the system file 202 and the starting writing page is Page 0, the controller 106 divides the system file 202 into a plurality of serial page data according to memory size of each page, e g , 2K bytes Then, the controller 106 obtains an original storing page corresponding to each page data according to the starting writing page (Page 0) As shown in FIG 2, the system file 202 is sequentially stored into Page 0, Page 1 and Page 5 without separating the strong pages and the weak pages The controller 106 generates a plurality of page writing commands for performing a sequential write operation according to each page data and the corresponding original storing page
  • the strong pages corresponding to each original storing page need to be determined for assuring that the system file 202 can be entirely stored in the strong pages
  • the controller 106 may obtain the strong pages corresponding to Page 0 to Page 5 by a corresponding Formula represented by
  • X OR1GINAL represents an original storing page to be converted and X STRONG represents a converted strong page [0026]
  • Page 7 is the strong page corresponding to Page 5
  • the controller 106 stores the page data in Page 6 and Page 7, respectively, rather in Page 4 and Page 5
  • the host 106 may further use the aforementioned corresponding Formula (1) to convert each original storing page to a corresponding strong page for performing the write operation
  • the data storing apparatus 102 further comprises a Mapping Table 110 for mapping each original storing page to a strong page in the memory block
  • FIG 3 shows a Mapping Table 110 according to an embodiment of the invention
  • the controller 106 may obtain the strong pages (denoted by corresponding storing page in FIG 3) corresponding to each original storing page by looking up the Mapping Table 110 According to the Mapping Table 110 in
  • FIG 3 the corresponding strong page of Page 4 is directly determined to be Page 6 and the corresponding strong page of Page 5 is determined to be Page 7
  • FIG 4 is a flowchart showing a data storing method 40 according to an embodiment of the invention
  • the data storing method is used for a non- volatile memory, such as a NAND flash memory
  • the flash memory includes several memory blocks, e g , multi-level cell memory blocks
  • Each memory block, such as Memory Block M as shown in FIG 2 is composed of a plurality of pages having a plurality of strong pages and a plurality of weak pages
  • the controller 106 receives a logic block writing command from the host 104 for storing the writing data corresponding to the logic block writing command to the memory block (step S402)
  • the writing data is the system file 202 as shown in FIG 2
  • the controller 106 determines whether the writing data is larger than one page (step S404)
  • the controller 106 obtains a first storing page for each page data More specifically, the controller 106 determines the corresponding strong pages for each page data (step S408) The process for obtaining a corresponding strong page is described in detail in the embodiments associated with FIGs 1, 2 and 3, and hence, further description thereof is omitted for brevity
  • the page data is sequentially written to the corresponding strong pages (step S410)
  • the controller 106 obtains a starting writing page corresponding to the logic block writing command and determines another corresponding strong page for the starting writing page (step S412) Then, the controller 106 stores the writing data into another
  • FIG 6 is a flowchart showing a data storing method according to still another embodiment of the invention.
  • the controller 502 receives a first writing command CAh, a first starting address LBA, a data length Length and writing data Data (step S602) Afterwards, the writing data is divided into a plurality of page data according to the first starting address LBA and the length of the writing data Length, wherein the page data corresponds to a plurality of first storing pages (step S604), e g , Page 0 to Page 5 in FIG 2
  • the controller 502 subsequently converts the first storing pages (Page 0, Page 1, Page 2, Page 3, Page 4 and Page 5) into a plurality of second storing pages (Page 0, Page 1, Page 2, Page 3, Page 6 and Page 7) (step S606) according to the following Formula or the Mapping Table as shown in FIG 3,
  • X ORIGINAL represents a first storing page and X STRONG represents a
  • the controller 502 transmits a plurality of second writing commands 80h, a plurality of second starting addresses (i e , ALE 0, ALE 1 ALE 5) and the page data (i e , Data 0, Data 1, Data 2, Data 3, Data 4, Data 5) to a non- volatile memory 503 for data writing (step S608)
  • ALE 0 is the starting address of Page
  • ALE 1 is the starting address of Page 1
  • ALE 2 is the starting address of Page 2
  • ALE 3 is the starting address of Page 3
  • ALE 6 is the starting address of Page 6
  • ALE 7 is the starting address of Page 7
  • the page data Data 4 and Data 5 that would be stored in the weak pages such as Page 4 and Page 5 are instead stored in the strong pages, i e , Page 0- Page 3 and Page 6- Page 7, via the conversion of the controller 502, so as to improve the reliability of data retention that is subjected to the environmental conditions, such as temperature or humidity
  • FIG 7 is a flowchart showing a data storing method for storing data into a memory, e g , the non-volatile memory 208 with the Memory Block M as shown in FIG 2, according to yet another embodiment of the invention
  • the memory 208 comprises a plurality of strong pages and a plurality of weak pages alternately arranged on the basis of a predetermined order Each weak page corresponds to each strong page First, a writing command and corresponding writing data are received (step S702) Next, the writing data is divided into a plurality of page data (step S704) Then, each page data is sequentially stored when the page data are obtained In this embodiment, the page data are specifically written into the strong pages of the Memory Block M within the memory 208 (step S706)
  • the data storing apparatus and methods of the invention advantageously allow data to be written into all pages, or alternatively into strong pages of memory blocks by automatically skipping over weak pages, thereby avoiding corruption or loss of data, preserving integrity of the written data and improving stability and reliability for data storing

Abstract

A data storing method for non-vola tile memory is provided, wherein the non- volatile memory includes at least one memory block having a plurality of strong pages and weak pages. A logic block writing command is received for storing the corresponding writing data into the memory block. It is then determined whether the writing data is larger than one page. The writing data is divided into a plurality of page data according to the memory size of the page when the writing data is larger than one page. Next, a first storing page for each page data is determined according to a starting writing page according to the logic block writing command. And, the page data are sequentially written into the first storing pages. Note that each first storing page is a strong page within the memory block.

Description

DATA STORING METHODS AND APPARATUS THEREOF
BACKGROUND OF THE INVENTION
Field of the Invention
[0001] The invention relates to flash memory, and more particularly to a data storing method and apparatus for multi-level cell (MLC) flash memories
Description of the Related Art
[0002] Non-volatile memory, such as a NAND flash memory, which has the advantages of a speedy programming time, a small chip area and low power consumption, commonly serve as storage media for various kinds of multimedia data, e g , secure digital (SD) cards or compact flash (CF) cards
[0003] In general, a NAND flash memory may comprise a single-level cell (SLC) flash memory and a multi-level cell (MLC) flash memory, wherein each single-level cell may store two values '0' and T and each multi-level cell may store four values, such as OO', '01', ' 10' and ' 11', thus allowing for higher storage density However, compared with the single-level cell flash memory, the multi-level cell flash memory disadvantageously involves a low data transfer rate and is subject to data corruption and data loss [0004] Therefore, it is desirable to provide a data storing method capable of solving the problems due to data loss induced by the multi-level cell flash memory and further improving the reliability of data retention
BRIEF SUMMARY OF THE INVENTION
[0005] The invention provides a data storing method for a non-volatile memory having at least one memory block In an embodiment, the non-volatile memory is a NAND flash memory and the memory block is a multi-level cell memory block The memory block comprises a plurality of pages and the pages comprise a plurality of strong pages and a plurality of weak pages The method comprises the steps of receiving a logic block writing command for storing corresponding writing data into the memory block, determining whether the writing data is larger than one page, dividing the writing data into a plurality of page data according to the memory size of the page when the writing data is larger than one page, obtaining a plurality of first storing pages for each page data according to a starting writing page corresponding to the logic block writing command, and sequentially writing the page data into the first storing pages, wherein each of the first storing pages is a strong page within the memory block
[0006] In addition, the invention provides a data storing apparatus comprising a nonvolatile memory and a controller The non-volatile memory comprises at least one memory block In an embodiment, the non-volatile memory is a NAND flash memory and the memory block is a multi-level cell memory block The memory block comprises a plurality of pages and the pages comprise a plurality of strong pages and a plurality of weak pages The controller is coupled the non-volatile memory for receiving a logic block writing command from a host, determining whether the writing data corresponding to the logic block writing command is larger than one page, dividing the writing data larger than one page into a plurality of page data according to the memory size of the page, obtaining a plurality of first storing pages for each page data according to a starting writing page corresponding to the logic block writing command, and sequentially writing the page data into the first storing pages, wherein each of the first storing pages is a strong page in the memory block
[0007] In addition, the invention provides a data storing method for a non-volatile memory In an embodiment, the non-volatile memory is a NAND flash memory having at least one memory block, the memory block comprises a plurality of pages, and the pages comprise a plurality of strong pages and a plurality of weak pages First, a first writing command, a first starting address and writing data are received The writing data is divided into a plurality of page data according to the first starting address and the length of the writing data, wherein the page data corresponds to a plurality of first storing pages Next, the first storing pages are converted into a plurality of second storing pages Afterwards, a plurality of second writing commands, a plurality of second starting address for the second storing pages and the page data are transmitted to the non- volatile memory for data writing Note that the second storing pages are strong pages
[0008] In addition, the invention provides a data storing method for a non-volatile memory In an embodiment, the non-volatile memory is a NAND flash memory having at least one memory block, the memory block comprises a plurality of pages and the pages comprise a plurality of strong pages and a plurality of weak pages The method comprises the steps of receiving a writing command and writing data, dividing the writing data into a plurality of page data, and writing the page data sequentially into the strong pages within the memory block of the non- volatile memory
[0009] A detailed description is given in the following embodiments with reference to the accompanying drawings
BRIEF DESCRIPTION OF THE DRAWINGS
The invention can be more fully understood by reading the subsequent detailed description and examples with references made to the accompanying drawings, wherein [0010] FIG 1 shows a data storing apparatus and a host according to an embodiment of the invention,
[0011] FIG 2 is a schematic diagram showing a non- volatile memory having several multi-level cell memory blocks according to an embodiment of the invention, [0012] FIG 3 shows a Mapping Table according to an embodiment of the invention, [0013] FIG 4 is a flowchart showing a data storing method according to an embodiment of the invention,
[0014] FIG 5 is a flowchart showing a data storing method according to another embodiment of the invention,
[0015] FIG 6 is a flowchart showing a data storing method according to still another embodiment of the invention, and
[0016] FIG 7 is a flowchart showing a data storing method according to yet another embodiment of the invention
DETAILED DESCRIPTION OF THE INVENTION
[0017] The following description is of the best-contemplated mode of carrying out the invention This description is made for the purpose of illustrating the general principles of the invention and should not be taken in a limiting sense The scope of the invention is best determined by reference to the appended claims
[0018] FIG 1 shows a data storing apparatus 102 and a host 104 according to an embodiment of the invention In an embodiment, the data storing apparatus 102 is a memory card or a solid state disk (SSD), and the host 104, e g , a digital camera or a cell phone, stores data into the data storing apparatus 102, or reads data from the data storing apparatus 102 via an interface of universal serial bus (USB), personal computer memory card international association (PCMCIA), serial advanced technology attachment (SATA), or the like The data storing apparatus 102 comprises a controller 106 and a memory 108 According to an embodiment, the memory 108 is a non- volatile memory, such as a NAND flash memory embodied with several memory blocks as shown in FIG 2 [0019] FIG 2 is a schematic diagram showing a non-volatile memory 208 having several multi-level cell memory blocks according to an embodiment of the invention In an embodiment, the memory 208 comprises 1024 multi-level cell memory blocks For each memory block, such as Memory Block M, 128 pages are allocated For each page, such as Page N, 4 sectors are included, e g , 4N+0, 4N+1, 4N+2, and 4N+3 Note that M is an integer between 0 and 1023 and N is an integer between 0 and 63 According to an embodiment, each sector is a unit of 512 bytes in memory size for data storing operation [0020] For a multi-level cell memory block, such as Memory Block M in FIG 2, each page is classified as a strong page or a weak page Specifically, the reliability of data stored in the weak page is easily affected by some environment factors, such as temperature or humidity Further, compared with the weak page, the strong page is more reliable for a lower fault rate of erroneous data Thus, important data or files should preferably avoid being stored in the weak page for preventing erroneous data or missing data Moreover, the strong page is the page that requires less programming busy time for writing data and the weak page is the page that requires more programming busy time for writing data [0021] Generally, strong pages and weak pages are alternately arranged on the basis of a predetermined order For example, in the Memory Block M, Page 0 to Page 3 are strong pages, Page 4 and Page 5 are weak pages, Page 6 and Page 7 are strong pages, Page 8 and Page 9 are weak pages Page 12 and Page 13 are weak pages, and so on Additionally, for each memory block, each strong page corresponds to a weak page Referring to FIG 2, for the Memory Block M, page 0 is a strong page (represented by SO) corresponding to weak Page 4 (represented by WO), Page 1 is a strong page (represented by Sl) corresponding to weak Page 5 (represented by Wl), and so on The operations of storing data into strong pages and weak pages within the multi-level cell memory blocks are described below in detail with reference to FIG 1 and FIG 2
[0022] According to the embodiment of FIG 1, the controller 106 is coupled to the host 104 and the memory 108 for receiving a logic block writing command from the host 104 For example, according to an embodiment, when the host 104 attempts to store a system file 202 into the memory 108, the controller 106 acquires the corresponding writing data (i e , the system file 202) and a starting logic block address (LBA) according to the logic block writing command In other embodiments, the logic block writing command may comprise the number of logic blocks for storing the writing data The starting logic block address is provided to correspond to a sector of a memory block, e g , sector 4N+2, and determining a starting writing page, such as Page N of the Memory Block M as shown in FIG 2
[0023] Afterwards, the controller 106 determines whether the writing data is larger than one page According to the aforementioned embodiment, assuming that 6 pages are required to store the system file 202 and the starting writing page is Page 0, the controller 106 divides the system file 202 into a plurality of serial page data according to memory size of each page, e g , 2K bytes Then, the controller 106 obtains an original storing page corresponding to each page data according to the starting writing page (Page 0) As shown in FIG 2, the system file 202 is sequentially stored into Page 0, Page 1 and Page 5 without separating the strong pages and the weak pages The controller 106 generates a plurality of page writing commands for performing a sequential write operation according to each page data and the corresponding original storing page
[0024] Further, prior to performing the sequential write operation, the strong pages corresponding to each original storing page need to be determined for assuring that the system file 202 can be entirely stored in the strong pages
[0025] In an embodiment, the controller 106 may obtain the strong pages corresponding to Page 0 to Page 5 by a corresponding Formula represented by
^ ORIGINAL , Wnen Λ ORIGINAL "
X STRONG X
Y -4- ORIGIN 4AALL 1 x 2 , when 1 < XOR1GINΛL < 63 (1),
where XOR1GINAL represents an original storing page to be converted and XSTRONG represents a converted strong page [0026] For example, it is assumed that Page 4 in FIG 2 needs to be converted (i e , X ORIGINAL = ^ )' then the strong page corresponding to Page 4 is determined to be Page 6 (i e , XSTRONG = 6 ) by calculating the corresponding Formula (1) as described above
Similarly, via the aforementioned Formula corresponding (1), Page 7 is the strong page corresponding to Page 5 After obtaining the corresponding strong pages, the controller 106 stores the page data in Page 6 and Page 7, respectively, rather in Page 4 and Page 5
[0027] Note that when the system file 202 has been stored and the host 104 attempts to write other data to the same Memory Block M, the host 106 may further use the aforementioned corresponding Formula (1) to convert each original storing page to a corresponding strong page for performing the write operation
[0028] Additionally, according to another embodiment, the data storing apparatus 102 further comprises a Mapping Table 110 for mapping each original storing page to a strong page in the memory block
[0029] FIG 3 shows a Mapping Table 110 according to an embodiment of the invention Referring to FIG 3, since strong pages and weak pages are alternately arranged, for a memory block consisting of 128 pages, the number of available strong pages is equal to the half number of total pages In operation, the controller 106 may obtain the strong pages (denoted by corresponding storing page in FIG 3) corresponding to each original storing page by looking up the Mapping Table 110 According to the Mapping Table 110 in
FIG 3, the corresponding strong page of Page 4 is directly determined to be Page 6 and the corresponding strong page of Page 5 is determined to be Page 7
[0030] It is noted that the Mapping Table is generated by the aforementioned corresponding Formula (1)
[0031] Moreover, when the controller 106 receives a logic block writing command from the host 104 and determines that the writing data corresponding to the logic block writing command is less than one page, the corresponding strong page for the starting writing page may be obtained by the aforementioned corresponding Formula (1) or the Mapping Table 110, so as to store the writing data to the corresponding strong page [0032] FIG 4 is a flowchart showing a data storing method 40 according to an embodiment of the invention As described above, the data storing method is used for a non- volatile memory, such as a NAND flash memory The flash memory includes several memory blocks, e g , multi-level cell memory blocks Each memory block, such as Memory Block M as shown in FIG 2, is composed of a plurality of pages having a plurality of strong pages and a plurality of weak pages
[0033] First, the controller 106 receives a logic block writing command from the host 104 for storing the writing data corresponding to the logic block writing command to the memory block (step S402) In one embodiment, the writing data is the system file 202 as shown in FIG 2 Next, the controller 106 determines whether the writing data is larger than one page (step S404)
[0034] When the writing data is larger than one page, the writing data is divided into a plurality of page data according to the memory size of the page (step S406), e g , Page 0, Page 1 and Page 5 in FIG 2 Subsequently, according to a starting writing page corresponding to the logic block writing command, the controller 106 obtains a first storing page for each page data More specifically, the controller 106 determines the corresponding strong pages for each page data (step S408) The process for obtaining a corresponding strong page is described in detail in the embodiments associated with FIGs 1, 2 and 3, and hence, further description thereof is omitted for brevity When the corresponding strong pages for each page data are obtained, the page data is sequentially written to the corresponding strong pages (step S410) [0035] When the writing data is less than one page, the controller 106 obtains a starting writing page corresponding to the logic block writing command and determines another corresponding strong page for the starting writing page (step S412) Then, the controller 106 stores the writing data into another corresponding strong page (step S414) [0036] FIG 5 is a flowchart showing a data storing method according to another embodiment of the invention According to this embodiment, the data is entirely stored in the corresponding strong pages via the conversion of the controller 502 The detailed description is illustrated below in detail with reference to FIG 6
[0037] FIG 6 is a flowchart showing a data storing method according to still another embodiment of the invention Referring to FIG 2, first, the controller 502 receives a first writing command CAh, a first starting address LBA, a data length Length and writing data Data (step S602) Afterwards, the writing data is divided into a plurality of page data according to the first starting address LBA and the length of the writing data Length, wherein the page data corresponds to a plurality of first storing pages (step S604), e g , Page 0 to Page 5 in FIG 2 The controller 502 subsequently converts the first storing pages (Page 0, Page 1, Page 2, Page 3, Page 4 and Page 5) into a plurality of second storing pages (Page 0, Page 1, Page 2, Page 3, Page 6 and Page 7) (step S606) according to the following Formula or the Mapping Table as shown in FIG 3,
-^- ORIGINAL ' W"£M -A- ORIGINAL "
X STRONG Xr
X- ORIGINAL + - 1 x 2 ,when 1 < XOR]amAJ ≤ 63 (2),
wherein XORIGINAL represents a first storing page and XSTRONG represents a
corresponding second storing page
[0038] Accordingly, the controller 502 transmits a plurality of second writing commands 80h, a plurality of second starting addresses (i e , ALE 0, ALE 1 ALE 5) and the page data (i e , Data 0, Data 1, Data 2, Data 3, Data 4, Data 5) to a non- volatile memory 503 for data writing (step S608) Note that ALE 0 is the starting address of Page 0, ALE 1 is the starting address of Page 1, ALE 2 is the starting address of Page 2, ALE 3 is the starting address of Page 3, ALE 6 is the starting address of Page 6 and ALE 7 is the starting address of Page 7 It is further noted that the page data Data 4 and Data 5 that would be stored in the weak pages such as Page 4 and Page 5 are instead stored in the strong pages, i e , Page 0- Page 3 and Page 6- Page 7, via the conversion of the controller 502, so as to improve the reliability of data retention that is subjected to the environmental conditions, such as temperature or humidity
[0039] FIG 7 is a flowchart showing a data storing method for storing data into a memory, e g , the non-volatile memory 208 with the Memory Block M as shown in FIG 2, according to yet another embodiment of the invention As described above, the memory 208 comprises a plurality of strong pages and a plurality of weak pages alternately arranged on the basis of a predetermined order Each weak page corresponds to each strong page First, a writing command and corresponding writing data are received (step S702) Next, the writing data is divided into a plurality of page data (step S704) Then, each page data is sequentially stored when the page data are obtained In this embodiment, the page data are specifically written into the strong pages of the Memory Block M within the memory 208 (step S706)
[0040] In comparison with the prior art, the data storing apparatus and methods of the invention advantageously allow data to be written into all pages, or alternatively into strong pages of memory blocks by automatically skipping over weak pages, thereby avoiding corruption or loss of data, preserving integrity of the written data and improving stability and reliability for data storing
[0041] While the invention has been described by way of example and in terms of preferred embodiment, it is to be understood that the invention is not limited thereto To the contrary, it is intended to cover various modifications and similar arrangements (as would be apparent to those skilled in the art). Therefore, the scope of the appended claims should be accorded the broadest interpretation to encompass all such modifications and similar arrangements.

Claims

What is claimed is:
I A data storing method for a non-volatile memory having at least one memory block, wherein the memory block comprises a plurality of pages and the pages comprise a plurality of strong pages and a plurality of weak pages, comprising receiving a logic block writing command for storing corresponding writing data into the memory block, dividing the writing data into a plurality of page data according the memory size of the page when the writing data is larger than one page, obtaining a plurality of first storing pages for each page data according to a starting writing page corresponding to the logic block writing command, and writing the page data into the first storing pages sequentially, wherein each of the first storing pages is a strong page in the memory block
2 The data storing method according to claim 1, wherein the strong pages and the weak pages are alternately arranged on the basis of a predetermined order and wherein each weak page corresponds to each strong page
3 The data storing method according to claim 1, wherein the conversion by the following Formula is made for determining the first storing page for each page data
X- ORIGINAL > Wen ■%- ORIGINAL ~ ^
X STRONG X
Y -4- ORIGINAL
Λ ORIGINAL """ - 1 x 2 ,when \ < X0R1GINΛL < 6V
wherein XomGINΛL represents an original storing page to be converted and X STRONG represents a converted first storing page
4. The data storing method according to claim 1, wherein the first storing page for each page data is determined by looking up a Mapping Table, wherein the Mapping Table stores an original storing page to be converted and a converted first storing page corresponding to the original storing page.
5. The data storing method according to claim 1, further comprising: determining a second storing page corresponding to the starting writing page when the writing data is less than one page, wherein the starting writing page corresponds to the logic block writing command; and storing the writing data to the second storing page, wherein the second storing page is a strong page in the memory block.
6. The data storing method according to claim 1, further comprising: determining whether the writing data is larger than one page.
7. The data storing method according to claim 1, wherein the memory block is a multi-level cell memory block
8. A data storing apparatus, comprising: a non-volatile memory having at least one memory block, wherein the memory block comprises a plurality of pages and the pages comprise a plurality of strong pages and a plurality of weak pages, and a controller coupled to the non-volatile memory for receiving a logic block writing command from a host, dividing the writing data larger than one page into a plurality of page data according to the memory size of the page, obtaining a plurality of first storing pages for each page data according to a starting writing page corresponding to the logic block writing command, and sequentially writing the page data into the first storing pages, wherein each of the first storing pages is a strong page in the memory block.
9. The data storing apparatus according to claim 8, wherein the strong pages and the weak pages are alternately arranged on the basis of a predetermined order and wherein each weak page corresponds to each strong page.
10 The data storing apparatus according to claim 8, wherein the conversion by the following Formula is made for determining the first storing page for each page data:
^- ORIGINAL ' W^ -** ORIGINAL "
X STRONG Xr
^- ORIGINAL + -- 1 x 2 , when 1 < X ORIGINAL ≤ 63 '
wherein XomaiNAL represents an original storing page to be converted and X STRONG represents a converted first storing page
11 The data storing apparatus according to claim 8, wherein the first storing page for each page data is determined by looking up a Mapping Table, wherein the Mapping Table stores an original storing page to be converted and a converted first storing page corresponding to the original storing page.
12 The data storing apparatus according to claim 8, wherein the controller determines a second storing page corresponding to the starting writing page when the writing data is less than one page and stores the writing data into the second storing page, wherein the starting writing page corresponds to the logic block writing command and the second storing page is a strong page in the memory block.
13 The data storing apparatus according to claim 8, wherein the non- volatile memory comprises a NAND flash memory 14 The data storing apparatus according to claim 8, wherein the controller further determines whether the writing data corresponding to the logic block writing command is larger than one page.
15 A data storing method for a non- volatile memory having at least one memory block, wherein the memory block comprises a plurality of pages and the pages comprise a plurality of strong pages and a plurality of weak pages, comprising: receiving a first writing command, a first starting address and writing data, dividing the writing data into a plurality of page data according the first starting address and the length of the writing data, wherein the page data corresponds to a plurality of first storing pages; converting the first storing pages into a plurality of second storing pages, and transmitting a plurality of second writing commands, a plurality of second starting address for the second storing pages and the page data to the non- volatile memory for data writing, wherein the second storing pages are strong pages.
16 The data storing method according to claim 15, wherein the first storing pages are converted to the second storing pages by the following Formula:
ORIGINAL > W^en -Λ- ORIGINAL
X STRONG X ORIGINAL
X- ORIGINAL *" - 1 x 2 ,when 1 < XOR1G1NAL < 63 '
wherein XORIGINAL represents the first storing page and XSTRONG represents the second storing page.
17 The data storing method according to claim 15, wherein each of the second storing page is determined by looking up a Mapping Table, wherein the Mapping Table stores each of the first storing pages to be converted and the second storing pages each corresponding to the first storing pages.
18 A data storing method for a non- volatile memory having at least one memory block, wherein the memory block comprises a plurality of pages and the pages comprise a plurality of strong pages and a plurality of weak pages, comprising: receiving a writing command and writing data; dividing the writing data into a plurality of page data; and writing the page data sequentially into the strong pages within the memory block of the non- volatile memory
19 The data storing method according to claim 18, wherein the strong pages and the weak pages are alternately arranged on the basis of a predetermined order and wherein each weak page corresponds to each strong page.
20 The data storing method according to claim 18, wherein the programming busy time of the strong pages for writing data is less than that of the weak pages.
PCT/CN2009/072599 2008-07-03 2009-07-02 Data storing methods and apparatus thereof WO2010000206A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US7788408P 2008-07-03 2008-07-03
US61/077,884 2008-07-03
CN2008101843199A CN101620513B (en) 2008-07-03 2008-12-03 Data storage method and storage device thereof
CN200810184319.9 2008-12-03

Publications (1)

Publication Number Publication Date
WO2010000206A1 true WO2010000206A1 (en) 2010-01-07

Family

ID=41465508

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/072599 WO2010000206A1 (en) 2008-07-03 2009-07-02 Data storing methods and apparatus thereof

Country Status (1)

Country Link
WO (1) WO2010000206A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8897074B2 (en) 2013-03-08 2014-11-25 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Writing data to a thermally sensitive memory device
CN108646977A (en) * 2018-03-07 2018-10-12 深圳忆联信息系统有限公司 A kind of method and rubbish recovering method of the cold and hot data judgements of SSD

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1703678A (en) * 2002-10-28 2005-11-30 桑迪士克股份有限公司 Method and apparatus for performing multi-page write operations in a non-volatile memory system
CN101194238A (en) * 2005-06-24 2008-06-04 松下电器产业株式会社 Memory controller, nonvolatile storage device, nonvolatile storage system, and data writing method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1703678A (en) * 2002-10-28 2005-11-30 桑迪士克股份有限公司 Method and apparatus for performing multi-page write operations in a non-volatile memory system
CN101194238A (en) * 2005-06-24 2008-06-04 松下电器产业株式会社 Memory controller, nonvolatile storage device, nonvolatile storage system, and data writing method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8897074B2 (en) 2013-03-08 2014-11-25 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Writing data to a thermally sensitive memory device
US8988944B2 (en) 2013-03-08 2015-03-24 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Writing data to a thermally sensitive memory device
CN108646977A (en) * 2018-03-07 2018-10-12 深圳忆联信息系统有限公司 A kind of method and rubbish recovering method of the cold and hot data judgements of SSD
CN108646977B (en) * 2018-03-07 2021-02-05 深圳忆联信息系统有限公司 SSD (solid State disk) cold and hot data judgment method and garbage recycling method

Similar Documents

Publication Publication Date Title
CN107844431B (en) Mapping table updating method, memory control circuit unit and memory storage device
CN106681931B (en) Data storage device and operation method thereof
TWI527037B (en) Data storing method, memory control circuit unit and memory storage apparatus
US8291155B2 (en) Data access method, memory controller and memory storage system
US9582416B2 (en) Data erasing method, memory control circuit unit and memory storage apparatus
US9176865B2 (en) Data writing method, memory controller, and memory storage device
US20130013853A1 (en) Command executing method, memory controller and memory storage apparatus
US9021218B2 (en) Data writing method for writing updated data into rewritable non-volatile memory module, and memory controller, and memory storage apparatus using the same
TWI476590B (en) Memory management method, and memory controller and memory storage device using the same
US9141530B2 (en) Data writing method, memory controller and memory storage device
US10503433B2 (en) Memory management method, memory control circuit unit and memory storage device
CN107544922B (en) Data writing method, memory control circuit unit and memory storage device
US9389998B2 (en) Memory formatting method, memory controller, and memory storage apparatus
US8301981B2 (en) Data access method for flash memory and storage system and controller thereof
CN113885808B (en) Mapping information recording method, memory control circuit unit and memory device
TWI390548B (en) Data storing methods and apparatus thereof
CN112860194B (en) Memory control method, memory storage device and memory control circuit unit
CN109273033B (en) Memory management method, memory control circuit unit and memory storage device
US8065468B2 (en) Data storing methods and apparatus thereof
CN110837339A (en) Data merging method, memory storage device and memory control circuit unit
US8589620B2 (en) Data writing method, memory controller, and memory storage apparatus
CN102543184B (en) Memorizer memory devices, its Memory Controller and method for writing data
CN110442299B (en) Data writing method, memory control circuit unit and memory storage device
US8832358B2 (en) Data writing method, memory controller and memory storage apparatus
WO2010000206A1 (en) Data storing methods and apparatus thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09771976

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 30/05/2011)

122 Ep: pct application non-entry in european phase

Ref document number: 09771976

Country of ref document: EP

Kind code of ref document: A1