# US 2024/0404603 A1 · Control circuit and control method thereof

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

- Number: US 2024/0404603 A1
- Document ID: US20240404603A1
- Status: Published application
- Kind: A1
- Application number: 18/401,467
- Filed: 2023-12-30
- Published: 2024-12-05
- Earliest claimed: 2023-05-31
- Assignees: Nuvoton Technology Corporation
- Applicants: Nuvoton Technology Corporation
- Inventors: Wei-Ling LIN; Chia-Hao HUANG; Tsun-Yao FAN
- Web page: https://patentgrep.com/patent/US20240404603A1

## CPC

- G11C 16/22: Safety or protection circuits preventing unauthorised or accidental access to memory cells
- G06F 21/79: in semiconductor storage media, e.g. directly-addressable memories
- G11C 7/24: Memory cell safety or protection circuits, e.g. arrangements for preventing inadvertent reading or writing; Status cells; Test cells
- G11C 16/10: Programming or data input circuits
- G11C 16/14: Circuits for erasing electrically, e.g. erase voltage switching circuits
- G11C: STATIC STORES (semiconductor memory devices H10B)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A control circuit including a storage circuit, a register, and a write protection logic circuit is provided. The storage circuit stores data, an enable-set value and a mode-set value. The register stores a protection-set value. The write protection logic circuit determines whether to change at least one of the enable-set value, the mode-set value, and the protection-set value according to the mode-set value after receiving a write command. In response to the mode-set value matching a pre-determined value, the write protection logic circuit changes at least one of the enable-set value, the mode-set value, and the protection-set value according to the protection-set value. In response to the mode-set value not matching the pre-determined value, the write protection logic circuit does not change the enable-set value and the mode-set value.

## Claims

### Claim 1

A control circuit comprising:
a storage circuit storing data, an enable-set value and a mode-set value;
a first register storing a first protection-set value; and
a write protection logic circuit which determines whether to change at least one of the enable-set value, the mode-set value, and the first protection-set value according to the mode-set value after receiving a write command,
wherein:
in response to the mode-set value matching a first pre-determined value, the write protection logic circuit changes at least one of the enable-set value, the mode-set value, and the first protection-set value according to the first protection-set value, and
in response to the mode-set value not matching the first pre-determined value, the write protection logic circuit does not change the enable-set value and the mode-set value.

### Claim 2 (depends on 1)

The control circuit as claimed in claim 1, wherein in response to the mode-set value matching the first pre-determined value and the first protection-set value not matching a first specific value, the write protection logic circuit replaces at least one of the enable-set value, the mode-set value, and the first protection-set value with data information of the write command.

### Claim 3 (depends on 1)

The control circuit as claimed in claim 1, further comprising:
a second register storing a second protection-set value,
wherein:
in response to the mode-set value matching the first pre-determined value and address information of the write command corresponding to the first register, the write protection logic circuit determines whether the second protection-set value matches a second specific value,
in response to the second protection-set value matching the second specific value, the write protection logic circuit maintains the first protection-set value.

### Claim 4 (depends on 1)

The control circuit as claimed in claim 1, wherein in response to the mode-set value matching a second protection-set value, the write protection logic circuit maintains the enable-set value, the mode-set value, and the first protection-set value.

### Claim 5 (depends on 4)

The control circuit as claimed in claim 4, wherein the storage circuit comprises:
a memory array storing the data, the enable-set value, and the mode-set value; and
a control circuit clearing the data, setting the enable-set value to an initial value and setting the mode-set value to the first pre-determined value in response a specific event occurring.

### Claim 6 (depends on 5)

The control circuit as claimed in claim 5, further comprising:
a plurality of pins,
wherein:
in response to the mode-set value matching a third pre-determined value, the write protection logic circuit detects a voltage level of a specific pin of the plurality of pins,
in response to the voltage level of the specific pin matching a specific level, the write protection logic circuit replaces the first protection-set value with data information of the write command.

### Claim 7 (depends on 6)

The control circuit as claimed in claim 6, wherein in response to the mode-set value matching the third pre-determined value, the write protection logic circuit maintains the enable-set value and the mode-set value.

### Claim 8 (depends on 6)

The control circuit as claimed in claim 6, wherein in response to the mode-set value matching a fourth pre-determined value, the voltage level of the specific pin matching the specific level, and the specific event occurring, the write protection logic circuit maintains the data, the enable-set value, and the mode-set value.

### Claim 9 (depends on 8)

The control circuit as claimed in claim 8, wherein in response to the mode-set value matching the fourth pre-determined value and the voltage level of the specific pin matching the specific level, the write protection logic circuit maintains the data, the enable-set value, and the mode-set value and replaces the first protection-set value with the data information.

### Claim 10 (depends on 6)

The control circuit as claimed in claim 6, wherein the write protection logic circuit selects one of the plurality of pins as the specific pin according to pin information of the mode-set value.

### Claim 11

A control method applied a write protection logic circuit to adjust at least one of an enable-set value stored in a storage circuit, a mode-set value stored in the storage circuit, and a first protection-set value stored in a first register which is independent of the storage circuit, comprising:
receiving and decoding an input command;
reading the mode-set value in response to the input command being a write command;
determining whether the mode-set value matches a first pre-determined value;
changing at least one of the enable-set value, the mode-set value, and the first protection-set value according to the write command and the first protection-set value in response to the mode-set value matching the first pre-determined value; and
maintaining the enable-set value and the mode-set value in response to the mode-set value not matching the first pre-determined value.

### Claim 12 (depends on 11)

The control method as claimed in claim 11, wherein the step of changing at least one of the enable-set value, the mode-set value, and the first protection-set value comprises:
determining whether the first protection-set value matches a first specific value;
replacing one of the enable-set value, the mode-set value, and the first protection-set value with data information of the write command according to address information of the write command in response to the first protection-set value matching the first specific value.

### Claim 13 (depends on 12)

The control method as claimed in claim 12, further comprising:
in response to the mode-set value matching the first pre-determined value:
reading a second protection-set value stored in a second register;
determining whether the second protection-set value matches a second specific value;
maintaining the first protection-set value in response to the second protection-set value matching the second specific value.

### Claim 14 (depends on 11)

The control method as claimed in claim 11, further comprising:
determining whether the mode-set value matches a second pre-determined value;
maintaining the enable-set value, the mode-set value, and the first protection-set value in response to the mode-set value matching the second pre-determined value.

### Claim 15 (depends on 14)

The control method as claimed in claim 14, further comprising:
determining whether a specific event is occurring;
in response to the specific event occurring:
clearing the data;
setting the enable-set value into an initial value; and
setting the mode-set value into the first pre-determined value.

### Claim 16 (depends on 15)

The control method as claimed in claim 15, further comprising:
determining whether the mode-set value matches a third pre-determined value;
detecting a voltage level of a specific pin among a plurality of pins in response to the mode-set value matching the third pre-determined value;
determining whether the voltage level of the specific pin matches a specific level;
replacing the first protection-set value with data information of the write command in response to the voltage level of the specific pin matching the specific level; and
maintaining the first protection-set value in response to the voltage level of the specific pin not matching the specific level.

### Claim 17 (depends on 16)

The control method as claimed in claim 16, further comprising:
maintaining the enable-set value and the mode-set value in response to the mode-set value matching the third pre-determined value.

### Claim 18 (depends on 16)

The control method as claimed in claim 16, further comprising:
determining whether the mode-set value matches a fourth pre-determined value;
maintaining the data, the enable-set value, and the mode-set value in response to the mode-set value matching the fourth pre-determined value, the voltage level of the specific pin matching the specific level, and the specific event occurring.

### Claim 19 (depends on 18)

The control method as claimed in claim 18, further comprising:
in response to the mode-set value matching the fourth pre-determined value and the voltage level of the specific pin matching the specific level:
maintaining the data, the enable-set value, and the mode-set value; and
replacing the first protection-set value with the data information.

### Claim 20 (depends on 16)

The control method as claimed in claim 16, further comprising:
selecting one of the plurality of pins as the specific pin according to pin information of the mode-set value.
