×

Data storage device and flash memory control method

  • US 9,645,894 B2
  • Filed: 11/06/2014
  • Issued: 05/09/2017
  • Est. Priority Date: 12/26/2013
  • Status: Active Grant
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.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×