# US 9,448,926 B2 · Bidirectional counter in a flash memory

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

- Number: US 9,448,926 B2
- Document ID: US9448926B2
- Status: Granted
- Kind: B2
- Application number: 14/634,386
- Filed: 2015-02-27
- Published: 2015-11-05
- Granted: 2016-09-20
- Earliest claimed: 2014-04-30
- Assignees: Proton World International N.V.
- Applicants: Proton World International N.V.
- Inventors: Ronny Van Keer; Guillaume Docquier
- Web page: https://patentgrep.com/patent/US9448926B2

## CPC

- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 9/3001: {Arithmetic instructions}
- G11C 16/105: {Circuits or methods for updating contents of nonvolatile memory, especially with 'security' features to ensure reliable replacement, i.e. preventing that old data is lost before new data is reliably written}
- H03K 21/403: {Arrangements for storing the counting state in case of power supply interruption}
- H03K 23/56: Reversible counters (H03K23/52 {and H03K23/548} take precedence)
- G06F 2212/7207: management of metadata or control data
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)
- H03K: PULSE TECHNIQUE (measuring pulse characteristics G01R; modulating sinusoidal oscillations with pulses H03C; transmission of digital information H04L; discriminator circuits detecting phase difference between two signals by counting or integrating cycles of oscillation H03D3/04; automatic control, starting, synchronisation or stabilisation of generators of electronic oscillations or pulses where the type of generator is irrelevant or unspecified H03L; coding, decoding or code conversion, in general H03M)

## Abstract

A method of storing a counter in at least two non-volatile memory pages, including: a step of initializing a page with an initial value and then, on each update of the counter value, a step of storing an update value and an opcode associated with this value, selected from a set of opcodes, the current value of the counter being given by application of the successive update operations to the initial value of the page.

## Claims

### Claim 1

A method, comprising:
storing a counter value using at least two non-volatile memory pages of a memory, the storing including:
storing an initial counter value in a page of the at least two non-volatile memory pages; and
for each update of the stored initial counter value, storing an update value and an opcode associated with the update value in the page of the at least two pages; and
determining a current value of the counter based on the stored initial value, stored update values and stored opcodes.

### Claim 2 (depends on 1)

The method of claim 1, comprising:
when the page is full,
calculating the current value of the counter; and
storing the calculated current value of the counter as an initial counter value in another page of the at least two non-volatile memory pages.

### Claim 3 (depends on 1)

The method of claim 1, comprising:
initializing the at least two non-volatile memory pages to a first state.

### Claim 4 (depends on 1)

The method of claim 1 wherein the opcodes are selected from a set of opcodes comprising an addition opcode and a subtraction opcode.

### Claim 5 (depends on 1)

The method of claim 1 wherein the opcodes are selected from a set of opcodes comprising an erase code.

### Claim 6 (depends on 1)

The method of claim 1 wherein the opcodes are selected from a set of opcodes comprising a code to cancel a previous operation.

### Claim 7 (depends on 1)

The method of claim 1 wherein a page comprises one of 32, 64, 128, 256, 512, 1,024, and 2,048 bytes.

### Claim 8

An apparatus, comprising:
a non-volatile memory; and
circuitry configured to:
store a counter value using at least two pages of the non-volatile memory, the storing including:
storing an initial counter value in a page of the at least two pages; and
for each update of the stored initial counter value, storing an update value and an opcode associated with the update value in the page of the at least two pages; and
determine a current value of the counter based on the stored initial value, stored update values and stored opcodes.

### Claim 9 (depends on 8)

The apparatus of claim 8 wherein when the page is full the circuitry is configured to:
calculate the current value of the counter; and
store the calculated current value of the counter as an initial counter value in another page of the at least two pages.

### Claim 10 (depends on 8)

The apparatus of claim 8 wherein the circuitry is configured to selectively initialize the at least two pages to a first state.

### Claim 11 (depends on 8)

The apparatus of claim 8 wherein the opcodes are selected from a set of opcodes comprising an addition opcode and a subtraction opcode.

### Claim 12 (depends on 8)

The apparatus of claim 8 wherein the opcodes are selected from a set of opcodes comprising an erase code.

### Claim 13 (depends on 8)

The apparatus of claim 8 wherein the opcodes are selected from a set of opcodes comprising a code to cancel a previous operation.

### Claim 14 (depends on 8)

The apparatus of claim 8 wherein the non-volatile memory is a flash memory.

### Claim 15

A system, comprising:
a bus system; and
control circuitry configured to:
control storage of a counter in a plurality of pages of a non-volatile memory, the storing including:
storing an initial counter value in a page of the plurality of pages; and
for each update of the stored initial counter value, storing an update value and an opcode associated with the update value in the page of the plurality of pages; and
determine a current value of the counter based on the stored initial value, stored update values and stored opcodes.

### Claim 16 (depends on 15)

The system of claim 15 wherein when the page is full the control circuitry is configured to:
calculate the current value of the counter; and
store the calculated current value of the counter as an initial counter value in another page of the plurality of pages.

### Claim 17 (depends on 15)

The system of claim 15 wherein the control circuitry is configured to selectively initialize the plurality of pages to a first state.

### Claim 18 (depends on 15)

The system of claim 15, comprising the non-volatile memory.

### Claim 19 (depends on 18)

The system of claim 18 wherein the non-volatile memory comprises a flash memory.

### Claim 20 (depends on 15)

The system of claim 15, comprising a near-field communication router including the non-volatile memory.

### Claim 21

A non-transitory computer-readable medium whose contents cause a counter to perform a method, the method comprising:
storing a counter value using a plurality of pages of a non-volatile memory, the storing including:
storing an initial counter value in a page of the plurality of pages; and
for each update of the stored initial counter value, storing an update value and an opcode associated with the update value in the page of the plurality of pages; and
determining a current value of the counter based on the stored initial value, stored update values and stored opcodes.

### Claim 22 (depends on 21)

The non-transitory computer-readable medium of claim 21 wherein the method comprises:
when the page is full:
calculating the current value of the counter; and
storing the calculated current value of the counter as an initial counter value in another page of the plurality of pages.

### Claim 23 (depends on 21)

The non-transitory computer-readable medium of claim 21 wherein the method comprises selecting the opcodes from a set of opcodes including at least one of an addition opcode and a subtraction opcode.
