Data storage device and flash memory control method
First Claim
Patent Images
1. A data storage device, comprising:
- a flash memory, divided into a plurality of blocks with each block comprising a plurality of pages; and
a control unit, coupling the flash memory to a host and comprising a microcontroller,wherein the microcontroller is configured to allocate the flash memory to provide a first block from the blocks to work as a run-time write block for reception of write data and, during a power recovery process due to an unexpected power-off event that interrupted write operations on the first block, the microcontroller is configured to allocate the flash memory to provide a second block from the blocks for complete data recovery of the first block and to replace the first block as the run-time write block, wherein the microcontroller is configured to allocate the flash memory to provide the first block as the run-time write block when finishing writing of a table-outdated block between the blocks of the flash memory, the control unit further comprises a random access memory, the microcontroller is configured to establish a physical-to-logical address mapping table in the random access memory to record logical addresses corresponding to physical addresses of the table-outdated block, and the microcontroller is configured to update a logical-to-physical address mapping table in accordance with the physical-to-logical address mapping table at intervals longer than a time-out period between write operations on the run-time write block.
1 Assignment
0 Petitions
Accused Products
Abstract
A data storage device and a flash memory control method with a power recovery design. A microcontroller is configured to allocate a flash memory to provide a first block from the blocks to work as a run-time write block for reception of write data. During a power recovery process due to an unexpected power-off event that interrupted write operations on the first block, the microcontroller is configured to allocate the flash memory to provide a second block from the blocks for complete data recovery of the first block and to replace the first block as the run-time write block.
45 Citations
12 Claims
-
1. A data storage device, comprising:
-
a flash memory, divided into a plurality of blocks with each block comprising a plurality of pages; and a control unit, coupling the flash memory to a host and comprising a microcontroller, wherein the microcontroller is configured to allocate the flash memory to provide a first block from the blocks to work as a run-time write block for reception of write data and, during a power recovery process due to an unexpected power-off event that interrupted write operations on the first block, the microcontroller is configured to allocate the flash memory to provide a second block from the blocks for complete data recovery of the first block and to replace the first block as the run-time write block, wherein the microcontroller is configured to allocate the flash memory to provide the first block as the run-time write block when finishing writing of a table-outdated block between the blocks of the flash memory, the control unit further comprises a random access memory, the microcontroller is configured to establish a physical-to-logical address mapping table in the random access memory to record logical addresses corresponding to physical addresses of the table-outdated block, and the microcontroller is configured to update a logical-to-physical address mapping table in accordance with the physical-to-logical address mapping table at intervals longer than a time-out period between write operations on the run-time write block. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A flash memory control method, comprising:
-
allocating a flash memory to provide a first block from a plurality of blocks of the flash memory to work as a run-time write block for reception of write data; during a power recovery process due to an unexpected power-off event that interrupted write operations on the first block, allocating the flash memory to provide a second block from the blocks for complete data recovery of the first block and to replace the first block as the run-time write block; allocating the flash memory to provide the first block as the run-time write block when finishing writing of a table-outdated block between the blocks of the flash memory; establishing a physical-to-logical address mapping table in a random access memory to record logical addresses corresponding to physical addresses of the table-outdated block; and updating a logical-to-physical address mapping table in accordance with the physical-to-logical address mapping table at intervals longer than a time-out period between write operations on the run-time write block. - View Dependent Claims (8, 9, 10, 11, 12)
-
Specification