# US 2015/0146486 A1 · Data Storage Device and Flash Memory Control Method

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2015/0146486 A1
- Document ID: US20150146486A1
- Status: Published application
- Kind: A1
- Application number: 14/091,908
- Filed: 2013-11-27
- Published: 2015-05-28
- Earliest claimed: 2013-11-27
- Assignees: Silicon Motion, Inc.
- Applicants: Silicon Motion, Inc.
- Inventors: Chia-Chien Wu; Yu-Chih Lin; Yen-Hung Lin
- Web page: https://patentgrep.com/patent/US20150146486A1

## CPC

- G11C 16/3459: {Circuits or methods to verify correct programming of nonvolatile memory cells}
- G11C 16/10: Programming or data input circuits
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

A data storage device using a FLASH memory with replay-protected blocks. The storage space of the FLASH memory is divided into blocks and each block is further divided into pages. A controller is provided in the data storage device to couple to the FLASH memory. The controller manages at least one replay-protected memory block of the FLASH memory. The controller programs a success flag and a write count into a system block of the FLASH memory after the controller programs two pages into the at least one replay-protected memory block of the FLASH memory. The controller may perform a power restoration process based on the success flag of the system block or/and based on the amount of programmed pages of the at least one replay-protected memory block.

## Claims

### Claim 1

A data storage device, comprising:
a FLASH memory with a storage space divided into blocks, wherein each block is further divided into pages; and
a controller coupled to the FLASH memory to manage at least one replay-protected memory block of the FLASH memory,
wherein the controller programs a success flag and a write count into a system block of the FLASH memory after the controller programs two pages into the at least one replay-protected memory block of the FLASH memory.

### Claim 2 (depends on 1)

The data storage device as claimed in claim 1, wherein:
the system block is a FAT block of the Flash memory.

### Claim 3 (depends on 1)

The data storage device as claimed in claim 1, wherein:
the controller further programs a fail flag into the system block after a first page of the two pages has been programmed into the at least one replay-protected block but a second page of the two pages has not been programmed into the at least one replay-protected block yet.

### Claim 4 (depends on 1)

The data storage device as claimed in claim 1, wherein:
the controller programs the success flag and the write count within the same page.

### Claim 5 (depends on 1)

The data storage device as claimed in claim 1, wherein:
when data issued from a host to be programmed into the at least one replay-protected memory block is shorter than two pages, the controller fills the data up to two pages with dummy data.

### Claim 6 (depends on 1)

The data storage device as claimed in claim 1, wherein:
during a power restoration process, the controller checks the system block to recognize whether a power failure event happened.

### Claim 7 (depends on 6)

The data storage device as claimed in claim 6, wherein:
during the power restoration process, the controller checks the success flag in the system block.

### Claim 8 (depends on 7)

The data storage device as claimed in claim 7, wherein:
during the power restoration process, the controller accepts the latest updated two pages when the success flag is found in the system block.

### Claim 9 (depends on 1)

The data storage device as claimed in claim 1, wherein:
during a power restoration process, the controller checks the amount of programmed pages of the at least one replay-protected memory block.

### Claim 10 (depends on 9)

The data storage device as claimed in claim 9, wherein:
during the power restoration process, the controller ignores the last programmed page of the at least one replay-protected memory block when there is an odd number of programmed pages of the at least one replay-protected memory block.

### Claim 11 (depends on 9)

The data storage device as claimed in claim 9, wherein:
during the power restoration process, the controller ignores the last two programmed pages of the at least one replay-protected memory block when there is an even number of programmed pages of the at least one replay-protected memory block but no success flag is found in the system block.

### Claim 12 (depends on 9)

The data storage device as claimed in claim 9, wherein:
during the power restoration process, the controller accepts the last two programmed pages of the at least one replay-protected memory block when there is an even number of programmed pages of the at least one replay-protected memory block and the success flag is found in the system block.

### Claim 13 (depends on 9)

The data storage device as claimed in claim 9, wherein:
during the power restoration process, the controller confirms data synchronization of the at least one replay-protected memory block when there is an even number of programmed pages of the at least one replay-protected memory block and the success flag is found in the system block.

### Claim 14

A FLASH memory control method, comprising:
managing at least one replay-protected memory block of a FLASH memory; and
programming a success flag and a write count into a system block of the FLASH memory after programming two pages into the at least one replay-protected memory block of the FLASH memory.

### Claim 15 (depends on 14)

The FLASH memory control method as claimed in claim 14, wherein:
the system block is a FAT block of the Flash memory.

### Claim 16 (depends on 14)

The FLASH memory control method as claimed in claim 14, further comprising:
programming a fail flag into the system block after a first page of the two pages has been programmed into the at least one replay-protected block but a second page of the two pages has not been programmed into the at least one replay-protected block yet

### Claim 17 (depends on 14)

The FLASH memory control method as claimed in claim 14, wherein:
the success flag and the write count are programmed within the same page.

### Claim 18 (depends on 14)

The FLASH memory control method as claimed in claim 14, wherein:
data issued from a host to be programmed into the at least one replay-protected memory block but shorter than two pages is filled up to two pages with dummy data.

### Claim 19 (depends on 14)

The FLASH memory control method as claimed in claim 14, further comprising:
checking the system block during a power restoration process, to recognize whether a power failure event happened.

### Claim 20 (depends on 19)

The FLASH memory control method as claimed in claim 19, further comprising:
checking the success flag in the system block during the power restoration process.

### Claim 21 (depends on 20)

The FLASH memory control method as claimed in claim 20, wherein:
confirming, during the power restoration process, the latest updated two pages when the success flag is found in the system block.

### Claim 22 (depends on 14)

The FLASH memory control method as claimed in claim 14, further comprising:
checking, during a power restoration process, the amount of programmed pages of the at least one replay-protected memory block.

### Claim 23 (depends on 22)

The FLASH memory control method as claimed in claim 22, wherein:
ignoring, during the power restoration process, the last programmed page of the at least one replay-protected memory block when there is an odd number of programmed pages of the at least one replay-protected memory block.

### Claim 24 (depends on 22)

The FLASH memory control method as claimed in claim 22, wherein:
ignoring, during the power restoration process, the last two programmed pages of the at least one replay-protected memory block when there is an even number of programmed pages of the at least one replay-protected memory block but no success flag is found in the system block.

### Claim 25 (depends on 22)

The FLASH memory control method as claimed in claim 22, wherein:
confirming, during the power restoration process, the last two programmed pages of the at least one replay-protected memory block when there is an even number of programmed pages of the at least one replay-protected memory block and the success flag is found in the system block.

### Claim 26 (depends on 22)

The FLASH memory control method as claimed in claim 22, wherein:
confirming, during the power restoration process, data synchronization of the at least one replay-protected memory block when there is an even number of programmed pages of the at least one replay-protected memory block and the success flag is found in the system block.
