# US 2008/0301357 A1 · Non-volatile memory with auxiliary rotating sectors

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

- Number: US 2008/0301357 A1
- Document ID: US20080301357A1
- Status: Published application
- Kind: A1
- Application number: 12/113,721
- Filed: 2008-05-01
- Published: 2008-12-04
- Earliest claimed: 2007-05-02
- Assignees: STMicroelectronics S.r.l.
- Inventors: Francesco La Rosa; Antonino Conte
- Web page: https://patentgrep.com/patent/US20080301357A1

## CPC

- G11C 16/225: {Preventing erasure, programming or reading when power supply voltages are outside the required ranges}
- G11C 16/102: {External programming circuits, e.g. EPROM programmers; In-circuit programming or reprogramming; EPROM emulators}
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

A method writes data in a non-volatile memory. The method provides, in the memory, a non-volatile main memory area comprising target pages, a non-volatile auxiliary memory area comprising auxiliary pages, and, in the auxiliary memory area: a current sector comprising erased auxiliary pages usable to write data, a save sector comprising auxiliary pages comprising data linked to target pages to be erased or being erased, a transfer sector comprising auxiliary pages including data to be transferred to erased target pages, and an unavailable sector comprising auxiliary pages to be erased or being erased. The method can be applied in particular to FLASH memories.

## Claims

### Claim 1

A method, comprising:
providing a non-volatile main memory area comprising target pages; and
providing a non-volatile auxiliary memory area comprising auxiliary pages, wherein providing the auxiliary memory area includes providing:
a current sector that includes erased auxiliary pages usable to write data,
a save sector for auxiliary pages comprising data linked to target pages to be erased or being erased,
a transfer sector for auxiliary pages comprising data to be transferred to erased target pages, and
an unavailable sector for auxiliary pages to be erased or being erased.

### Claim 2 (depends on 1)

A method according to claim 1, comprising, in response to a command for writing a first piece of data in a first target page of the target pages:
applying a partial erasure step to the auxiliary pages of the unavailable sector and to target pages linked to pages of the save sector;
transferring data from a first auxiliary page of the transfer sector to an erased page of the main memory area, if the first auxiliary page is valid, and invalidating the first auxiliary page; and
writing the piece of data in an erased second auxiliary page of the current sector, and invalidating the first target page.

### Claim 3 (depends on 2)

A method according to claim 2, comprising, in response to a command for writing a second piece of data in the first target page:
writing the second piece of data in an erased third auxiliary page, if a previous piece of data of same address of the first target page has already been written in the second auxiliary page; and
invalidating the second auxiliary page.

### Claim 4 (depends on 2)

A method according to claim 2, comprising:
providing an address field in each of the auxiliary pages; and
when a second piece of data is written in a third auxiliary page, writing in the address field of the third auxiliary page the address of a target page of second the piece of data.

### Claim 5 (depends on 2)

A method according to claim 2, comprising, in response to a command for writing a second piece of data in a second target page, directly writing the second piece of data in the second target page or in a valid auxiliary page comprising a piece of data previously written having the same address as the second target page, if some memory cells to receive the second piece of data are in an erased state in the second target page or in the valid auxiliary page.

### Claim 6 (depends on 2)

A method according to claim 2, comprising:
before writing the first piece of data in the first auxiliary page, reading an initial set of data in the first target page;
inserting the first piece of data into the initial set of data, to obtain an updated set of data; and
writing the updated set of data in the first auxiliary page.

### Claim 7 (depends on 1)

A method according to claim 1, comprising:
updating a look-up table that associates addresses of invalid target pages and addresses of valid auxiliary pages; and
in response to a request to read a piece of data in a first target page of the target pages, reading the piece of data in a valid auxiliary page if the address of the valid auxiliary page exists in the look-up table, if not, reading the piece of data in the target page.

### Claim 8 (depends on 1)

A method according to claim 1, comprising using auxiliary page pointer to designate in the transfer sector an auxiliary page having content to be transferred to one of the target pages and in the current sector an erased auxiliary page to be used to write a piece of data.

### Claim 9 (depends on 1)

A method according to claim 1, comprising applying to the unavailable sector a number of steps of partial erasure equal at a maximum to the number of auxiliary pages that the current sector contains.

### Claim 10 (depends on 1)

A method according to claim 1, comprising, after erasing the unavailable sector, rotating sectors comprising:
declaring as current sector the sector that was previously the unavailable sector;
declaring as save sector the sector that was previously the current sector;
declaring as transfer sector the sector that was previously the save sector; and
declaring as unavailable sector the sector that was previously the transfer sector.

### Claim 11 (depends on 1)

A method according to claim 1, comprising providing a page invalidation flag in each useful page of the main memory area and the auxiliary memory area, and invalidating a first page of the main memory area and the auxiliary memory area by setting the flag of the first page at a programming logic value.

### Claim 12

A non-volatile memory, comprising:
a main memory area comprising target pages; and,
an auxiliary memory area comprising auxiliary pages, and having:
a current sector comprising erased auxiliary pages usable to write data,
a save sector comprising auxiliary pages comprising data linked to target pages to be erased or being erased,
a transfer sector comprising auxiliary pages comprising data to be transferred to erased target pages, and
an unavailable sector comprising auxiliary pages to be erased or being erased.

### Claim 13 (depends on 12)

A memory according to claim 12, comprising a write control unit configured to, in response to a command for writing a first piece of data in a first target page of the target pages:
apply a partial erasure step to the auxiliary pages of the unavailable sector and to target pages linked to pages of the save sector;
transferring data from a first auxiliary page of the transfer sector to an erased target page of the main memory area, if the first auxiliary page is valid, and invalidating the first auxiliary page; and
writing the first piece of data in an erased second auxiliary page of the current sector, and invalidating the first target page.

### Claim 14 (depends on 13)

A memory according to claim 13, wherein the control unit is configured, in response to a command for writing a second piece of data in the first target page, to:
write the second piece of data in an erased third auxiliary page, if the first piece of data has already been written in the second auxiliary page; and
invalidate the second auxiliary page.

### Claim 15 (depends on 13)

A memory according to claim 13, wherein the auxiliary pages each comprise an address field, and the control unit is configured to write in the address field of the second auxiliary page the address of the first target page.

### Claim 16 (depends on 12)

A memory according to claim 12, comprising a control unit configured to, in response to a command for writing a first piece of data in a first target page of the target pages, directly write the first piece of data in the first target page or in a valid auxiliary page of the same address as the target page comprising a previously written second piece of data, if memory cells to receive the first piece of data are erased in the first target page or the valied auxiliary page.

### Claim 17 (depends on 12)

A memory according to claim 12, comprising a control unit configured, before writing a piece of data in a first auxiliary page of the auxiliary pages, to:
read an initial set of data in a source page;
insert the piece of data to be written into the initial set of data, to obtain an updated set of data; and
write the updated set of data in the first auxiliary page.

### Claim 18 (depends on 12)

A memory according to claim 12, comprising a control unit configured to:
update a look-up table associating addresses of invalid target pages and addresses of valid auxiliary pages; and
in response to a request to read a piece of data in a first target page of the target pages, read the piece of data in a valid auxiliary page of the auxiliary pages in the current sector if an address of the valid auxiliary page exists in the look-up table, if not, read the piece of data in the first target page.

### Claim 19 (depends on 12)

A memory according to claim 12, comprising an auxiliary page pointer that designates at the same time in the transfer sector an auxiliary page having content to be transferred to a target page and in the current sector an erased page to be used to write a piece of data.

### Claim 20 (depends on 12)

A memory according to claim 12, comprising a control unit configured to apply to the unavailable sector a number of steps of partial erasure equal at a maximum to the number of auxiliary pages that the current sector contains.

### Claim 21 (depends on 12)

A memory according to claim 12, comprising a control unit configured, after erasing the unavailable sector, to:
declare as current sector the sector that was previously the unavailable sector;
declare as save sector the sector that was previously the current sector;
declare as transfer sector the sector that was previously the save sector; and
declare as unavailable sector the sector that was previously the transfer sector.

### Claim 22 (depends on 12)

A memory according to claim 12, wherein each useful page of the main memory area and the auxiliary memory area comprises a page invalidation flag, the memory further comprising a control unit configured to invalidate a first page of the main memory area and the auxiliary memory area by setting the flag of the first page at a programming logic value.

### Claim 23

An integrated circuit, comprising:
a memory that includes:
a main memory area comprising target pages; and,
an auxiliary memory area comprising auxiliary pages, and having:
a current sector comprising erased auxiliary pages usable to write data,
a save sector comprising auxiliary pages comprising data linked to target pages to be erased or being erased,
a transfer sector comprising auxiliary pages comprising data to be transferred to erased target pages, and
an unavailable sector comprising auxiliary pages to be erased or being erased.

### Claim 24 (depends on 23)

The integrated circuit according to claim 23, wherein the integrated circuit is a chipcard or electronic tag.

### Claim 25 (depends on 23)

The integrated circuit according to claim 23, wherein the memory includes a write control unit configured to, in response to a command for writing a first piece of data in a first target page of the target pages:
apply a partial erasure step to the auxiliary pages of the unavailable sector and to target pages linked to pages of the save sector;
transferring data from a first auxiliary page of the transfer sector to an erased target page of the main memory area, if the first auxiliary page is valid, and invalidating the first auxiliary page; and
writing the first piece of data in an erased second auxiliary page of the current sector, and invalidating the first target page.

### Claim 26 (depends on 23)

The integrated circuit according to claim 23, wherein the memory includes a control unit configured to apply to the unavailable sector a number of steps of partial erasure equal at a maximum to the number of auxiliary pages that the current sector contains.

### Claim 27 (depends on 23)

The integrated circuit according to claim 23, wherein the memory includes a control unit configured, after erasing the unavailable sector, to:
declare as current sector the sector that was previously the unavailable sector;
declare as save sector the sector that was previously the current sector;
declare as transfer sector the sector that was previously the save sector; and
declare as unavailable sector the sector that was previously the transfer sector.
