# US 6,731,536 B1 · Password and dynamic protection of flash memory data

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

- Number: US 6,731,536 B1
- Document ID: US6731536B1
- Status: Granted
- Kind: B1
- Application number: 10/091,767
- Filed: 2002-03-07
- Granted: 2004-05-04
- Earliest claimed: 2001-03-05
- Assignees: Advanced Micro Devices, Inc.
- Inventors: Mark Alan McClain; Michael Garrett Tanaka; Ralf Muenster
- Web page: https://patentgrep.com/patent/US6731536B1

## CPC

- G11C 7/24: Memory cell safety or protection circuits, e.g. arrangements for preventing inadvertent reading or writing; Status cells; Test cells
- G11C 16/22: Safety or protection circuits preventing unauthorised or accidental access to memory cells
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

In protecting Flash memory data, a flexible system and method provides for different levels of protection. It offers the ability to dynamically lock a sector of memory using a dynamic protection bit in volatile memory. It offers persistent locking of a sector using a non-volatile bit in memory and locking this status using a lock bit in volatile memory. It offers yet further protection by including a password mode which requires a password to clear the lock bit. The password is located in an unreadable, one time programmable area of the memory. The memory also includes areas, whose protection state is controlled by an input signal, for storing boot code in a protected manner.

## Claims

### Claim 1

A method of protecting Flash memory against alterations, comprising
providing different degrees of protection including
persistently locking a sector for preventing modification of the sector, and
dynamically locking a sector which prevents modification of the sector without first resetting a protection bit.

### Claim 2 (depends on 1)

A method of claim 1, wherein persistently locking a sector, includes assigning a persistent protection bit (PPB) in non-volatile memory.

### Claim 3 (depends on 1)

A method of claim 1, wherein dynamically locking a sector, includes assigning a dynamic protection bit (DPB) in a volatile memory. This volatile memory may take the form of flip-flops.

### Claim 4 (depends on 3)

A method of claim 3, wherein the DPBs are individually modifiable through a write command.

### Claim 5 (depends on 3)

A method of claim 3, wherein after a power-up or a hardware reset all DPBs are either set or reset, depending on the desired default state.

### Claim 6 (depends on 2)

A method of claim 2, further comprising a further level of protection applying to the persistent locking of the sectors, by making use of a PPB lock bit in volatile memory, which, when set, prevents the states of the PPBs being changed.

### Claim 7 (depends on 1)

A method of claim 1, further comprising holding a write protect pin low to prevent certain sectors being changed.

### Claim 8 (depends on 7)

A method of claim 7, further comprising maintaining boot code in said certain sectors.

### Claim 9 (depends on 6)

A method of claim 6, further comprising including a password mode requiring that a password be entered in order to clear the PPB lock bit.

### Claim 10 (depends on 9)

A method of claim 9, wherein the password is a fixed password.

### Claim 11 (depends on 9)

A method of claim 9, wherein the password is variable and is produced by a dynamic password algorithm.

### Claim 12 (depends on 9)

A method of claim 9, wherein when password mode is selected, the PPB lock bit is in a set state when the device is first powered on or comes out of a reset cycle.

### Claim 13 (depends on 10)

A method of claim 10, wherein the password is stored in a one time programmable region of the Flash memory.

### Claim 14 (depends on 9)

A method of claim 9, wherein a password mode locking bit is assigned which permanently sets the Flash memory in password mode.

### Claim 15 (depends on 9)

A method of claim 9, wherein a non-password mode locking bit is assigned which, once set, permanently prevents entering the password mode.

### Claim 16 (depends on 9)

A method of claim 9, wherein a time delay is introduced between each attempt to clear the PPB lock bit.

### Claim 17 (depends on 9)

A method of claim 9, wherein only a limited number of successive attempts at clearing the PPB lock bit are permitted.

### Claim 18 (depends on 9)

A method of claim 9, wherein a new power cycle is required between attempts to clear the PPB lock bit.

### Claim 19 (depends on 9)

A method of claim 9, wherein the password is related to an electronic serial number (ESN) of the Flash memory.

### Claim 20

A Flash memory having multiple degrees of protection, comprising
a non-volatile storage area defining at least one Persistent Protection Bit (PPB) which has to be cleared in order to change the contents of the memory, and
a volatile storage area defining at least one Dynamic Protection Bit (DPB), which has to be cleared in order to change the contents of the memory.

### Claim 21 (depends on 20)

A method of claim 20, wherein the volatile storage area further defines at least one PPB lock bit which, when set prevents the at least one PPB from being cleared.

### Claim 22 (depends on 21)

A method of claim 21, wherein each DPB and each PPB lock bit can be cleared only by means of a power-up or hardware reset.

### Claim 23 (depends on 21)

A method of claim 21, wherein there is one PPB and one DPB per sector of the Flash memory, and a single global PPB lock bit for all sectors.

### Claim 24

A Flash memory includes a password or password generating code in the non-volatile storage area in an area that is read and write protected.

### Claim 25 (depends on 24)

A method of claim 24, wherein the password in the non-volatile storage area or generated by the code defines a password that has to be entered to clear the PPB lock bit.

### Claim 26 (depends on 25)

A method of claim 25, wherein the Flash memory includes at least one mode selection bit for selecting password mode or non-password mode.

### Claim 27 (depends on 26)

A method of claim 26, wherein the at least one mode selection bit is located in a one time programmable portion of the memory to permanently lock the memory into one or the other-mode.

### Claim 28 (depends on 20)

A method of claim 20, wherein further including a write protect pin to prevent programming or erasing of part of the Flash memory.
