# US 2003/0217200 A1 · Microprocessor preventing erroneous writing to control register

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

- Number: US 2003/0217200 A1
- Document ID: US20030217200A1
- Status: Published application
- Kind: A1
- Application number: 10/323,807
- Filed: 2002-12-20
- Published: 2003-11-20
- Earliest claimed: 2002-04-26
- Assignees: Mitsubishi Denki Kabushiki Kaisha
- Inventors: Nobuharu Yoshioka
- Web page: https://patentgrep.com/patent/US20030217200A1

## CPC

- G06F 12/1425: {the protection being physical, e.g. cell, word, block}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A transfer circuit transfers a write inhibit address stored in a ROM to an address register. An access preventing circuit inhibits writing to a control register by a CPU when an address outputted from the CPU coincides with a write inhibit address stored in the address register. Since the address register is a register to which data cannot be written by the CPU, a write inhibit address stored in the address register is not changed. Therefore, the write inhibition to the control register is not canceled, so that erroneous operation of the CPU can be prevented.

## Claims

### Claim 1

A microprocessor comprising:
a processor;
a peripheral I/O having a control register;
an address register storing an address of a control register to which writing is inhibited, and to which data cannot be written by said processor; and
a write inhibiting circuit inhibiting writing to said control register by said processor when an address outputted from said processor coincides with the address stored in said address register.

### Claim 2 (depends on 1)

The microprocessor according to claim 1, wherein
said write inhibiting circuit inhibits writing to said control register by said processor when the address outputted from said processor coincides with the address stored in said address register and an operation mode of said processor is a debugging mode.

### Claim 3 (depends on 1)

The microprocessor according to claim 1, further comprising an address mask register masking each of bits of an address, wherein
said write inhibiting circuit masks the address outputted from said processor and the address stored in said address register by said address mask register and, when the masked addresses coincide with each other, inhibits writing to said control register by said processor.

### Claim 4 (depends on 1)

The microprocessor according to claim 1, further comprising a plurality of address registers, wherein
said write inhibiting circuit includes a selection register selecting any of said plurality of address registers so as to be validated.

### Claim 5 (depends on 1)

The microprocessor according to claim 1, further comprising a plurality of address registers, wherein
said write inhibiting circuit includes a reference register storing information indicating which of said plurality of address registers inhibits writing to the control register.

### Claim 6 (depends on 1)

The microprocessor according to claim 1, further comprising a data register storing data of which writing to the control register is inhibited, and to which data cannot be written by said processor, wherein
said write inhibiting circuit inhibits writing to said control register by said processor when the address and data outputted from said processor coincide with the address stored in said address register and the data stored in said data register.

### Claim 7 (depends on 6)

The microprocessor according to claim 6, wherein
said write inhibiting circuit inhibits writing to said control register by said processor when the address and data outputted from said processor coincide with the address stored in said address register and the data stored in said data register, and an operation mode of said processor is a debugging mode.

### Claim 8 (depends on 6)

The microprocessor according to claim 6, further comprising:
an address mask register masking each of bits of an address; and
a data mask register masking each of bits of data, wherein
when said write inhibiting circuit masks the address outputted from said processor and the address stored in said address register by said address mask register, the masked addresses coincide with each other, masks data outputted from said processor and the data stored in said data register by said data mask register, and the masked data coincide with each other, said write inhibiting circuit inhibits writing to said control register by said processor.

### Claim 9 (depends on 6)

The microprocessor according to claim 6, further comprising a plurality of address registers and a plurality of data registers, wherein
said write inhibiting circuit includes a selection register indicating which of said plurality of address registers and said plurality of data registers are validated.

### Claim 10 (depends on 6)

The microprocessor according to claim 6, further comprising a plurality of address registers and a plurality of data registers, wherein
said write inhibiting circuit includes a reference register for storing information indicating an address register in said plurality of address registers and a data register in said plurality of data registers, by which writing to a control register is inhibited.

### Claim 11 (depends on 1)

The microprocessor according to claim 1, wherein
when writing to said control register by said processor is inhibited, said write inhibiting circuit generates an interruption to said processor.

### Claim 12

A microprocessor comprising:
a processor;
a peripheral I/O having a control register;
an address register storing an address of a control register to which writing is inhibited;
a write inhibiting circuit inhibiting writing to said control register by said processor when an address outputted from said processor coincides with the address stored in said address register;
a nonvolatile memory storing an address of a control register to which writing is inhibited; and
a transfer circuit transferring the address stored in said nonvolatile memory to said address register.

### Claim 13 (depends on 12)

The microprocessor according to claim 12, further comprising a data register storing data of which writing to the control register is inhibited, wherein
said transfer circuit transfers data stored in said nonvolatile memory to said data register, and
said write inhibiting circuit inhibits writing to said control register by said processor when the address and data outputted from said processor coincide with the address stored in said address register and the data stored in said data register.

### Claim 14

A microprocessor comprising:
a processor;
a peripheral I/O having a control register;
a first associative memory storing an address of a control register to which writing is inhibited, and to which data cannot be written by said processor; and
a write inhibiting circuit inhibiting writing to said control register by said processor when an address outputted from said processor coincides with the address stored in said first associative memory.

### Claim 15 (depends on 14)

The microprocessor according to claim 14, further comprising a second associative memory storing data of which writing to a control register is inhibited, and to which data cannot be written by said processor, wherein
said write inhibiting circuit inhibits writing to said control register by said processor when the address and data outputted from said processor coincide with the address stored in said first associative memory and the data stored in said second associative memory.
