Data storage device and data writing method thereof
First Claim
Patent Images
1. A data storage device, comprising:
- a flash memory, having a plurality of TLC blocks, wherein each of the TLC blocks has a plurality of pages numbered in sequence starting from X; and
a controller, checking whether a first number of a first page is greater than a predetermined threshold when the data storage device resumes operation after a power-off event, and stopping the writing of data into a first TLC block when the first number of the first page is greater than the predetermined threshold, wherein the first TLC block was undergoing a first write operation which was unfinished when the power-off event occurred, and the first page was the last one being written in the first TLC block.
1 Assignment
0 Petitions
Accused Products
Abstract
The present invention provides a data storage device including a flash memory and a controller. The controller checks whether a first number of a first page in the flash memory is greater than a predetermined threshold when the data storage device resumes operation after a power-off event, and stops writing data into a first TLC block when the first number of the first page is greater than the predetermined threshold, wherein the first TLC block was undergoing a first write operation which was unfinished when the power-off event occurred, and the first page was the last one being written in the first TLC block.
12 Citations
20 Claims
-
1. A data storage device, comprising:
-
a flash memory, having a plurality of TLC blocks, wherein each of the TLC blocks has a plurality of pages numbered in sequence starting from X; and a controller, checking whether a first number of a first page is greater than a predetermined threshold when the data storage device resumes operation after a power-off event, and stopping the writing of data into a first TLC block when the first number of the first page is greater than the predetermined threshold, wherein the first TLC block was undergoing a first write operation which was unfinished when the power-off event occurred, and the first page was the last one being written in the first TLC block. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A data writing method, applied to a data storage device, wherein the data storage device comprises a flash memory having a plurality of TLC blocks, each of the TLC blocks has a plurality of pages numbered in sequence starting from X, and the data writing method further comprises:
-
when the data storage device resumes operation after a power-off event, checking whether any of the TLC blocks was undergoing a write operation which was unfinished at the time that the power-off event occurred; when a first TLC block was undergoing a first write operation which was unfinished at the time that the power-off event occurred, checking whether a first number of a first page is greater than a predetermined threshold; and when the first number of the first page is greater than the predetermined threshold, stopping the writing of data into a first TLC block when the first number of the first page is greater than the predetermined threshold, wherein the first TLC block was undergoing the first write operation which was unfinished at the time that the power-off event occurred, and the first page was the last one being written in the first TLC block. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19, 20)
-
Specification