# US 2012/0254658 A1 · Microcomputer and method of operation thereof

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

- Number: US 2012/0254658 A1
- Document ID: US20120254658A1
- Status: Published application
- Kind: A1
- Application number: 13/501,718
- Filed: 2010-10-15
- Published: 2012-10-04
- Earliest claimed: 2009-10-15
- Assignees: L E Tech Co., Ltd.
- Inventors: Isao Tatsuno
- Web page: https://patentgrep.com/patent/US20120254658A1

## CPC

- G06F 11/0793: {Remedial or corrective actions (recovery from an exception in an instruction pipeline G06F9/3861; by retry G06F11/1402; for recovering from a failure of a protocol instance or entity H04L69/40)}
- G06F 1/24: Resetting means
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Disclosed is a microcomputer such that even when a program cannot be executed in a CPU of the microcomputer due to an external noise, an unstable power-supply voltage, and other causes, and an fatal error such as runaway occurs, returning to the original state is possible within an extremely short time while preferably avoiding initialization of the entire system. During execution of normal software processing, an interrupt signal and a reset signal are output at an arbitrary time, and if it is determined that a CPU of a microcomputer gets into a runaway state, data which has been stored in a RAM as recovery information is read out, and the CPU is recovered to the state before the runaway. Because such recovery from a fatal error occurs within a short time, software which is being executed can continue its processing as if the fatal error had not occurred.

## Claims

### Claim 1

A microcomputer comprising:
a CPU;
a RAM connected to the CPU via a CPU bus;
interrupt request signal output circuit operable to output, to the CPU, an interrupt request signal for requesting to start execution of interrupt processing; and
CPU reset signal output circuit operable, after the interrupt request signal output circuit outputs the interrupt request signal, to output, to the CPU, a CPU reset signal for requesting to start CPU reset processing,
wherein the CPU is operable, upon receiving the interrupt request signal, to stop processing of an application program being executed on the CPU, and store, in the RAM, information from a CPU register of the CPU, as recovery information, and, then upon receiving the CPU reset signal, to undergo a reset, and copy the recovery information stored in the RAM, to the CPU register.

### Claim 2 (depends on 1)

The microcomputer as defined in claim 1, which further comprises a timer counter circuit for cyclically generating the CPU reset signal and the interrupt request signal.

### Claim 3 (depends on 1)

The microcomputer as defined in claim 1, which further comprises a timer counter circuit for cyclically generating the CPU reset signal and the interrupt request signal, wherein the timer counter circuit comprises an additional timer, and the CPU is operable to determine whether the information from the CPU register is normal, and wherein the additional timer is configured such that, only when the information from the CPU register is determined to be normal, it is activated to prohibit the execution of the CPU reset processing, during a time period in which the CPU reset signal is supplied to the CPU.

### Claim 4 (depends on 1)

The microcomputer as defined in claim 1, which further comprises a system rest signal source for resetting the entire microcomputer, and an OR circuit, wherein the CPU reset signal output circuit and the system rest signal source are connected to an input of the OR circuit, and the CPU is connected to an output of the OR circuit.

### Claim 5

A method of operation of a microcomputer, comprising the steps of:
outputting, from a timer counter circuit to a CPU, an interrupt request signal for requesting to start execution of interrupt processing;
causing the CPU to stop processing of an application program being executed on the CPU, upon receiving the interrupt request signal;
causing the CPU to store, in a RAM, information from a CPU register of the CPU as recovery information;
after the output of the interrupt request signal, outputting, from the timer counter circuit to the CPU, a CPU reset signal for requesting to start CPU reset processing;
causing the CPU to undergo a reset, upon receiving the CPU reset signal; and
causing the CPU to copy the recovery information stored in the RAM, to the CPU register.

### Claim 6 (depends on 5)

The method as defined in claim 5, wherein the CPU reset signal and the interrupt request signal are cyclically generated by the timer counter circuit.

### Claim 7 (depends on 5)

The method as defined in claim 5, which further comprises the step of causing the CPU to determine whether the information from the CPU register is normal, and, only when the information from the CPU register is determined to be normal, prohibiting execution of the step of causing the CPU to undergo a reset, during a time period in which the CPU reset signal is supplied to the CPU, wherein the CPU reset signal and the interrupt request signal are cyclically generated by the timer counter circuit.
