Data storage device and data erasing method wherein after erasing process, predetermined value is written to indicate completion of said erasing method
First Claim
Patent Images
1. A data-storage device, comprising:
- a flash memory, comprising a plurality of blocks, wherein each of the plurality of blocks comprises a plurality of pages; and
a controller, arranged to receive an erase signal from a host, and enable the flash memory to execute an erasing process on at least one first block of the plurality of blocks in response to the erase signal, wherein the erase signal comprises a predetermined value that is different from 0xFF used in the erasing process, wherein in the erasing process executed on the first block, the controller erases each of the plurality of pages of the first block and also writes the predetermined value into a specific page of the first block after the first block is erased,wherein each of the plurality of pages of each of the plurality of blocks has a logical address and a physical address, and the data-storage device further comprises at least one mapping table arranged to store the corresponding relationships between the logical addresses and the physical addresses of the plurality of pages, wherein the logical addresses of all the plurality of pages of the first block are mapped to the physical address of the specific page of the first block in the mapping table, such that data read out from either of the logical addresses corresponding to the plurality of pages of the first block is the predetermined value, wherein the host determines that the erasing process executed on the first block is completed based upon reading the predetermined value from either of the logical addresses corresponding to the plurality of pages of the first block.
1 Assignment
0 Petitions
Accused Products
Abstract
The present invention provides a data-storage device. The data-storage device includes a flash memory and a controller. The flash memory includes a plurality of blocks, and each of the blocks includes a plurality of pages. The controller is arranged to receive an erase signal from a host, and enable the flash memory to sequentially execute an erasing process on at least one first block of the blocks in response to the erase signal, wherein a specific page of the first block has been written by a predetermined value and the other pages of the first block in exception to the specific page have been erased after the erasing process executed on the first block is completed.
19 Citations
13 Claims
-
1. A data-storage device, comprising:
-
a flash memory, comprising a plurality of blocks, wherein each of the plurality of blocks comprises a plurality of pages; and a controller, arranged to receive an erase signal from a host, and enable the flash memory to execute an erasing process on at least one first block of the plurality of blocks in response to the erase signal, wherein the erase signal comprises a predetermined value that is different from 0xFF used in the erasing process, wherein in the erasing process executed on the first block, the controller erases each of the plurality of pages of the first block and also writes the predetermined value into a specific page of the first block after the first block is erased, wherein each of the plurality of pages of each of the plurality of blocks has a logical address and a physical address, and the data-storage device further comprises at least one mapping table arranged to store the corresponding relationships between the logical addresses and the physical addresses of the plurality of pages, wherein the logical addresses of all the plurality of pages of the first block are mapped to the physical address of the specific page of the first block in the mapping table, such that data read out from either of the logical addresses corresponding to the plurality of pages of the first block is the predetermined value, wherein the host determines that the erasing process executed on the first block is completed based upon reading the predetermined value from either of the logical addresses corresponding to the plurality of pages of the first block. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A data erasing method, applied to a data-storage device, wherein the data-storage device comprises a flash memory, the flash memory comprises a plurality of blocks, and the data erasing method comprises:
-
executing an erasing process on the first block in response to an erase signal, wherein the erase signal comprises a predetermined value that is different from 0xFF used in the erasing process; erasing each of pages of the first block and also writing the predetermined value into a specific page of the first block after the first block is erased in the erasing process, wherein each of the pages of the first block has a logical address and a physical address, and the data-storage device further comprises at least one mapping table arranged to store the corresponding relationships between the logical addresses and the physical addresses of the pages; updating the mapping table to map the logical addresses of all the pages of the first block to the physical address of the specific page of the first block, such that data read out from either of the logical addresses corresponding to the pages of the first block is the predetermined value; and determining that the erasing process executed on the first block is completed based upon reading the predetermined value from either of the pages of the first block. - View Dependent Claims (8, 9, 10, 11, 12, 13)
-
Specification