发明名称 Data writing method for a flash memory, and controller and storage system using the same
摘要 A data writing method for writing data from a host system into a flash memory chip is provided, and the flash memory chip has a plurality of physical blocks. The method includes receiving a host writing command and write data thereof, and executing the host writing command. The method also includes giving a data program command for writing the write data into one of the physical blocks of the flash memory chip, and giving a command for determining whether data stored in the physical block has any error bit. Accordingly, the method can effectively ensure the correctness of data to be written into the flash memory chip.
申请公布号 US8806301(B2) 申请公布日期 2014.08.12
申请号 US200912622084 申请日期 2009.11.19
申请人 Phison Electronics Corp. 发明人 Yu Hsiang-Hsiung;Huang Yi-Hsiang;Wu Chung-Lin;Shen Yu-Chung
分类号 G11C29/00 主分类号 G11C29/00
代理机构 J.C. Patents 代理人 J.C. Patents
主权项 1. A data writing method for ensuring data writing correctly from a host system into a flash memory chip, wherein the flash memory chip includes a plurality of physical blocks, and each of the physical blocks has a plurality of physical pages, the data writing method comprising: grouping the physical blocks into at least a data area, a spare area and a replacement area; receiving a host write command and write data corresponding to the host write command from the host system and executing the host write command by the flash memory controller; giving a data program command to the flash memory chip during the execution of the host write command to write the write data into one of the physical blocks of the spare area; and giving a read command to the flash memory chip before sending an acknowledgement message informing that the host write command is completed to the host system to determine whether at least a portion of data stored in one of the physical pages in the one of the physical blocks corresponding to the host write command has at least one error bit, wherein if the at least a portion of data stored in the one of the physical pages in the one of the physical blocks has the at least one error bit and the number of the at least one error bit is not larger than the maximum number of error correcting bits and is larger than an error bit threshold value, moving data stored in the one of the physical block to another physical block selected from the replacement area, and marking the one of the physical block as a bad physical block, wherein if the at least a portion of data stored in the one of the physical pages in the one of the physical blocks has the at least one error bit and the number of the at least one error bit is not larger than an error bit threshold value, marking the one of the physical block as an unreliable physical block, wherein the unreliable physical block is used for writing data only when the physical blocks of the replacement area are exhausted.
地址 Miaoli TW