# US 2009/0276561 A1 · Spi nand protected mode entry methodology

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

- Number: US 2009/0276561 A1
- Document ID: US20090276561A1
- Status: Published application
- Kind: A1
- Application number: 12/112,880
- Filed: 2008-04-30
- Published: 2009-11-05
- Earliest claimed: 2008-04-30
- Assignees: Micron Technology, Inc.
- Inventors: Theodore T. Pekny; Samuel A. Shapero; Kirubakaran Periyannan
- Web page: https://patentgrep.com/patent/US20090276561A1

## CPC

- G06F 12/1458: {by checking the subject access rights}
- G06F 2212/2022: Flash memory
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

One or more techniques are provided for restricting access to protected modes of operation in a memory device. In one embodiment, detection circuitry is provided and configured to receive and evaluate a protected mode entry sequence for accessing a protected mode of operation. The detection circuitry may be further configured to temporarily enable an output pin on a serial interface between the memory device and a master device to receive inputs, such that a entry sequence may be entered on both the input and output pins. In another embodiment, the detection circuitry may be enabled only if a security code is first provided, thus requiring both the correct security code and entry sequence before protected mode access is allowed. The memory device may also include a parallel NAND memory array, and detection logic may be further configured to enable a serial-to-parallel NAND translator once protected mode access is allowed.

## Claims

### Claim 1

A method for detecting a protected mode entry sequence comprising:
receiving a plurality of inputs;
comparing each of the received plurality of inputs to a corresponding expected input of the protected mode entry sequence; and
allowing access to a protected mode of operation only if each of the received plurality of inputs matches a respective corresponding expected input of the protected mode entry sequence or else, denying access to the protected mode;
wherein the plurality of inputs is received on an interface including an input pin and an output pin, and wherein a first number of the plurality of inputs is received on the input pin and wherein a second number of the plurality of inputs is received on the output pin.

### Claim 2 (depends on 1)

The method of claim 1, wherein receiving the plurality of inputs comprises alternatingly receiving a first of the plurality of inputs on the input pin and subsequently receiving a second of the plurality of inputs on the output pin.

### Claim 3 (depends on 2)

The method of claim 2, wherein the output pin is configured to accept the second of the plurality of inputs only if the first of the plurality of inputs received on the input pin matches a corresponding expected input of the protected mode entry sequence.

### Claim 4 (depends on 1)

The method of claim 1, wherein comparing each of the received plurality of inputs to a corresponding expected input is permitted only if a security code is first provided.

### Claim 5 (depends on 4)

The method of claim 4, wherein providing the security code comprises writing the security code to a register.

### Claim 6 (depends on 1)

The method of claim 1, wherein comparing each of the received plurality of inputs to a corresponding expected input is permitted only if a command configured to enable the comparison is first executed.

### Claim 7 (depends on 1)

The method of claim 1, wherein the interface is an SPI NAND interface, the input pin is a serial data in (SIN) pin, and the output pin is a serial data out (SOUT) pin, and wherein the SPI NAND interface is coupled to a NAND memory array.

### Claim 8 (depends on 7)

The method of claim 7, wherein the NAND memory array comprises a parallel interface NAND memory array.

### Claim 9 (depends on 8)

The method of claim 8, further comprising enabling a serial-to-parallel NAND translator configured to convert SPI NAND signals received on the SPI NAND interface into parallel NAND signals, the serial-to-parallel NAND translator being enabled only if access to the protected mode is first allowed.

### Claim 10

A method for controlling protected mode access in an electronic device, the method comprising:
receiving a first code;
storing the first code in a protected mode access register;
comparing the first code to a security code; and
detecting a protected mode entry sequence only if the received first value matches the security code, wherein detecting the protected mode entry sequence comprises:
receiving a plurality of inputs on an interface of the memory device;
comparing each of the received plurality of inputs to a corresponding expected input of the protected mode entry sequence; and
allowing protected mode access to the electronic device only if each of the received plurality of inputs matches a corresponding expected input of the protected mode entry sequence;
wherein a first number of the plurality of inputs is received on an input pin of the interface and wherein a second number of the plurality of inputs is received on an output pin of the interface.

### Claim 11 (depends on 10)

The method of claim 10, wherein receiving and comparing the plurality of inputs comprises:
(a) receiving on the input pin one of the first number of the plurality of inputs;
(b) comparing the one of the first number of the plurality of inputs to its corresponding expected input of the protected mode entry sequence;
(c) enabling the output pin to accept a subsequent input only if the one of the first number of inputs received on the input pin matches its corresponding expected input;
(d) receiving on the output pin one of the second number of the plurality of inputs;
(e) comparing the one of the second number of the plurality of inputs input to its corresponding expected input of the protected mode entry sequence;
(f) if the input received on the output pin matches its corresponding expected input, disabling the output pin to accept a further input; and
(g) repeating steps (a)-(f) until each of first number and second number of the plurality of inputs has been received and compared with a corresponding expected input of the protected mode entry sequence.

### Claim 12 (depends on 10)

The method of claim 10, further comprising, if any of the received first or second numbers of the plurality of inputs does not match its corresponding expected input of the protected mode entry sequence, locking out protected mode access in the memory device, wherein locking out protected mode access prevents the detection of a protected mode entry sequence.

### Claim 13 (depends on 10)

The method of claim 10, further comprising, if each of the received plurality of inputs matches a respective corresponding expected input of the protected mode entry sequence, setting an acknowledgment bit indicating that the protected mode entry sequence has been correctly entered.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
receiving a second code, wherein the second code does not match the security code;
storing the second code in the protected mode access register; and
disabling protected mode access.

### Claim 15 (depends on 14)

The method of claim 14, further comprising:
receiving a third code, wherein the third code matches the security code;
storing the third code in the protected mode access register;
checking the acknowledgment bit to determine whether the protected mode entry sequence was previously entered correctly; and
re-enabling protected mode access without requiring the protected mode entry sequence to be re-entered if the acknowledgement bit indicates that the protected mode entry sequence was previously entered correctly.

### Claim 16

A memory device comprising:
a NAND memory array;
an interface including an input pin and an output pin, the interface being configured to receive a plurality of inputs; and
detection circuitry configured to detect a protected mode entry sequence by comparing each of the received plurality of inputs to a respective corresponding expected input of the protected mode entry sequence, wherein the detection circuitry is further configured to allow access to a protected mode of operation on the memory device only if it is determined that each of the received plurality of inputs matches its respective corresponding expected input.

### Claim 17 (depends on 16)

The memory device of claim 16, wherein the detection circuitry is configured to enable the receipt some of the plurality of inputs on the output pin.

### Claim 18 (depends on 17)

The memory device of claim 17, wherein the interface is configured to alternate between receiving one of the first number of the plurality of inputs on the input pin and one of the second number of the plurality of inputs on the output pin, and wherein the detection circuitry is configured to enable the output pin to accept an input only if an immediately preceding input received on the input pin matches its corresponding expected input of the protected mode entry sequence.

### Claim 19 (depends on 16)

The memory device of claim 16, further comprising a protected mode access register, wherein the detection circuitry is enabled to detect the protected mode entry sequence only if a correct security code is first written to in the protected mode access register.

### Claim 20 (depends on 16)

The memory device of claim 16, wherein the interface is an SPI NAND interface, the input pin is an SIN pin, and the output pin is an SOUT pin.

### Claim 21 (depends on 20)

The memory device of claim 20, wherein the NAND memory array comprises a parallel interface NAND memory array.

### Claim 22 (depends on 21)

The memory device of claim 21, further comprising a serial-to-parallel NAND translator configured to convert serial NAND signals received on the SPI NAND interface into parallel NAND signals, wherein the serial-to-parallel NAND translator is enabled only if access to the protected mode is first allowed.

### Claim 23

A method for controlling access to a protected mode of operation in a memory device comprising:
receiving a code;
storing the code in a register;
comparing the received code to a security access code; and
allowing access to the protected mode only if the received code matches the security access code.

### Claim 24

A NAND memory device comprising:
a NAND memory array;
an SPI NAND interface for receiving a plurality of inputs on each of an SIN pin and an SOUT pin, the SPI NAND interface being coupled to the NAND memory array;
a protected mode access register, the protected mode access register being operatively coupled to store data received via the SPI NAND interface;
detection circuitry coupled to the SPI NAND interface, wherein the detection logic is configured to detect a protected mode entry sequence by comparing each of the received plurality of inputs to a respective corresponding expected input of the protected mode entry sequence, wherein the detection circuitry is configured to be enabled only if a security code is first written to the protected mode access register; and
at least one of a protected command set or a protected register set coupled to the detection circuitry via one or more access control lines;
wherein the memory device is configured such that access to the protected command or protected register sets are allowed only if each of the received plurality of inputs matches a respective corresponding expected input of the protected mode entry sequence.

### Claim 25 (depends on 24)

The device of claim 24, wherein the NAND memory array is a parallel interface NAND memory array.

### Claim 26 (depends on 25)

The device of claim 25, further comprising a serial-to-parallel NAND translator configured to convert serial NAND signals received on the SPI NAND interface into a parallel NAND signals, wherein the serial-to-parallel NAND translator is configured to be enabled only if access to the protected command set or the protected register set is first allowed.
