# US 2011/0029719 A1 · Data writing method for flash memory and control circuit and storage system using the same

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

- Number: US 2011/0029719 A1
- Document ID: US20110029719A1
- Status: Published application
- Kind: A1
- Application number: 12/561,879
- Filed: 2009-09-17
- Published: 2011-02-03
- Earliest claimed: 2009-08-03
- Assignees: Phison Electronics Corp.
- Inventors: Chih-Kang Yeh
- Web page: https://patentgrep.com/patent/US20110029719A1

## CPC

- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 2212/7202: Allocation control and policies
- G06F 2212/7203: Temporary buffering, e.g. using volatile buffer or dedicated buffer blocks
- G06F 2212/7208: Multiple device management, e.g. distributing data over multiple flash devices
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A data writing method for moving data in a plurality of flash memory modules during a write command of a host system is executed is provided, wherein each of the flash memory modules has a plurality of physical blocks. The present data writing method includes transferring first data received from the host system to one of the flash memory modules and writing the first data into the physical blocks of the flash memory module according to the write command. The present data writing method also includes moving at least one second data in the physical blocks of another one of the flash memory modules during the first data is written. Thereby, when the host system is about to write data into the other flash memory module, the time for executing the write command is effectively reduced.

## Claims

### Claim 1

A data writing method, for moving data in a first flash memory module or a second flash memory module during a write command of a host system is executed, wherein the first flash memory module and the second flash memory module respectively have a plurality of physical blocks, the data writing method comprising:
providing a flash memory controller, wherein the flash memory controller is coupled to the first flash memory module and the second flash memory module through the same data input/output bus;
transferring first data received from the host system to the first flash memory module and writing the first data into the physical blocks of the first flash memory module according to the write command by using the flash memory controller; and
moving at least one second data of at least one physical block in the physical blocks of the second flash memory module by using the flash memory controller during the first data is written into the physical blocks of the first flash memory module.

### Claim 2 (depends on 1)

The data writing method according to claim 1, wherein the step of moving the at least one second data of the at least one physical block in the physical blocks of the second flash memory module by using the flash memory controller during the first data is written into the physical blocks of the first flash memory module comprises:
reading the at least one second data from one of the physical blocks of the second flash memory module by using the flash memory controller during a part of the first data is written into the physical blocks of the first flash memory module.

### Claim 3 (depends on 1)

The data writing method according to claim 1, wherein the step of moving the at least one second data of the at least one physical block in the physical blocks of the second flash memory module by using the flash memory controller during the first data is written into the physical blocks of the first flash memory module comprises:
executing a copyback command on the second flash memory module by using the flash memory controller to move the at least one second data during a part of the first data is written into the physical blocks of the first flash memory module.

### Claim 4 (depends on 2)

The data writing method according to claim 2, wherein the step of moving the at least one second data of the at least one physical block in the physical blocks of the second flash memory module by using the flash memory controller during the first data is written into the physical blocks of the first flash memory module further comprises:
writing the at least one second data into another one of the physical blocks of the second flash memory module by using the flash memory controller during another part of the first data is written into the physical blocks of the first flash memory module.

### Claim 5 (depends on 1)

The data writing method according to claim 1, wherein the physical blocks of the first flash memory module have a plurality of upper pages and a plurality of lower pages, and the step of writing the first data into the physical blocks of the first flash memory module comprises:
only writing the first data into the lower pages of the physical blocks of the first flash memory module.

### Claim 6

A flash memory control circuit, for moving data in a first flash memory module or a second flash memory module during a write command of a host system is executed, wherein the first flash memory module and the second flash memory module respectively have a plurality of physical blocks, the flash memory control circuit comprising:
a microprocessor unit;
a flash memory interface unit, coupled to the microprocessor unit, and configured to couple to the first flash memory module and the second flash memory module through the same data input/output bus;
a host interface unit, coupled to the microprocessor unit and configured to couple to the host system; and
a memory management unit, coupled to the microprocessor unit, and configured to transfer first data received from the host system to the first flash memory module and writing the first data into the physical blocks of the first flash memory module according to the write command,
wherein during the first data is written into the physical blocks of the first flash memory module, the memory management unit moves at least one second data of at least one physical block in the physical blocks of the second flash memory module.

### Claim 7 (depends on 6)

The flash memory control circuit according to claim 6, wherein during a part of the first data is written into the physical blocks of the first flash memory module, the memory management unit reads the at least one second data from one of the physical blocks of the second flash memory module.

### Claim 8 (depends on 6)

The flash memory control circuit according to claim 6, wherein during a part of the first data is written into the physical blocks of the first flash memory module, the memory management unit executes a copyback command on the second flash memory module to move the at least one second data.

### Claim 9 (depends on 7)

The flash memory control circuit according to claim 7, wherein during another part of the first data is written into the physical blocks of the first flash memory module, the memory management unit writes the at least one second data into another one of the physical blocks of the second flash memory module.

### Claim 10 (depends on 6)

The flash memory control circuit according to claim 6, wherein the physical blocks of the first flash memory module have a plurality of upper pages and a plurality of lower pages, and the memory management unit only writes the first data into the lower pages of the physical blocks of the first flash memory module.

### Claim 11

A flash memory storage system, comprising:
a connector, configured to couple to a host system;
a flash memory chip, having a first flash memory module and a second flash memory module, wherein the first flash memory module and the second flash memory module respectively have a plurality of physical blocks; and
a flash memory controller, coupled to the connector, and coupled to the first flash memory module and the second flash memory module through the same data input/output bus,
wherein the flash memory controller receives a write command and first data from the host system,
wherein the flash memory controller transfers the first data to the first flash memory module and writes the first data into the physical blocks of the first flash memory module according to the write command,
wherein during the first data is written into the physical blocks of the first flash memory module, the flash memory controller moves at least one second data of at least one physical block in the physical blocks of the second flash memory module.

### Claim 12 (depends on 11)

The flash memory storage system according to claim 11, wherein during a part of the first data is written into the physical blocks of the first flash memory module, the flash memory controller reads the at least one second data from one of the physical blocks of the second flash memory module.

### Claim 13 (depends on 11)

The flash memory storage system according to claim 11, wherein during a part of the first data is written into the physical blocks of the first flash memory module, the flash memory controller executes a copyback command on the second flash memory module to move the at least one second data.

### Claim 14 (depends on 12)

The flash memory storage system according to claim 12, wherein during another part of the first data is written into the physical blocks of the first flash memory module, the flash memory controller writes the at least one second data into another one of the physical blocks of the second flash memory module.

### Claim 15 (depends on 11)

The flash memory storage system according to claim 11, wherein the physical blocks of the first flash memory module have a plurality of upper pages and a plurality of lower pages, and the flash memory controller only writes the first data into the lower pages of the physical blocks of the first flash memory module.

### Claim 16

A data writing method, for moving data in one of a plurality of flash memory modules during a write command of a host system is executed, wherein the flash memory modules have a plurality of physical blocks, the data writing method comprising:
providing a flash memory controller;
transferring first data received from the host system to one of the flash memory modules and writing the first data into the physical blocks of the flash memory module according to the write command by using the flash memory controller; and
during the first data is written into the physical blocks of one of the flash memory modules, moving at least one second data of at least one physical block in the physical blocks of another one of the flash memory modules by using the flash memory controller.

### Claim 17 (depends on 16)

The data writing method according to claim 16, wherein the step of providing the flash memory controller comprises:
coupling the flash memory controller to the flash memory modules through the same data input/output bus.

### Claim 18 (depends on 16)

The data writing method according to claim 16, wherein the step of moving the at least one second data of the at least one physical block in the physical blocks of another one of the flash memory modules by using the flash memory controller during the first data is written into the physical blocks of one of the flash memory modules comprises:
during a part of the first data is written into the physical blocks of one of the flash memory modules, reading the at least one second data from one of the physical blocks of another one of the flash memory modules by using the flash memory controller.

### Claim 19 (depends on 18)

The data writing method according to claim 18, wherein the step of moving the at least one second data of the at least one physical block in the physical blocks of another one of the flash memory modules by using the flash memory controller during the first data is written into the physical blocks of one of the flash memory modules further comprises:
during another part of the first data is written into the physical blocks of one of the flash memory modules, writing the at least one second data into another one of the physical blocks of another one of the flash memory modules by using the flash memory controller.

### Claim 20 (depends on 16)

The data writing method according to claim 16, wherein the physical blocks of one of the flash memory modules have a plurality of upper pages and a plurality of lower pages, and the step of writing the first data into the physical blocks of the flash memory module comprises:
writing the first data only into the lower pages of the physical blocks of the flash memory module.

### Claim 21 (depends on 16)

The data writing method according to claim 16, wherein the step of moving the at least one second data of the at least one physical block in the physical blocks of another one of the flash memory modules by using the flash memory controller during the first data is written into the physical blocks of one of the flash memory modules comprises:
during a part of the first data is written into the physical blocks of one of the flash memory modules, executing a copyback command on another one of the flash memory modules by using the flash memory controller to move the at least one second data.
