Patent ID: 9569126
Date: 2017-02-14
CPC Classifications: G06F

Claim:
1. A data storage device, comprising: a flash memory, providing a storage space that is divided into a plurality of physical blocks with each physical block further divided into a plurality of physical pages; and a control unit, comprising a microcontroller and a random access memory, wherein: the microcontroller is configured to generate command sequence information for write data, and further allocates the random access memory for temporary storage of the write data and the command sequence information; the microcontroller is further configured to upload the write data onto a run-time write block between the physical blocks of the flash memory with the command sequence information corresponding thereto; and the microcontroller is further configured to check the run-time write block during a power recovery process of the data storage device and, based on the command sequence information that has been uploaded onto the run-time write block, the write data in the run-time write block and later in a command sequence than lost data is abandoned.