# US 2002/0059494 A1 · Microcomputer and method of controlling the same

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

- Number: US 2002/0059494 A1
- Document ID: US20020059494A1
- Status: Published application
- Kind: A1
- Application number: 10/010,306
- Filed: 2001-11-08
- Published: 2002-05-16
- Earliest claimed: 2000-11-10
- Assignees: Sanyo Electric Co., Ltd.
- Inventors: Hideo Kondo
- Web page: https://patentgrep.com/patent/US20020059494A1

## CPC

- G06F 8/60: Software deployment
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

The objective of the present invention is to provide a microcomputer and a method, wherein a program is written from a host to a microcomputer at a high speed by utilizing a USB cable for connecting the host to a peripheral device. A flash ROM 50 for program storage has a first program area to which program data transmitted from a personal computer 100 are to be written and a second program area storing a write control program, and program data stored temporarily in a RAM 40 are written to the first program area of the flash ROM 50 through a USB interface circuit 30 in accordance with the write control program.

## Claims

### Claim 1

A microcomputer comprising a USB interface circuit for interfacing data transmission and receipt between a host and the microcomputer, a nonvolatile memory for program storage which can electrically carry out rewrite and read, a data memory for temporarily storing program data transmitted from the host which are parallel converted by the USB interface circuit, and a CPU for executing a program instruction read from the nonvolatile memory,
wherein the nonvolatile memory for program storage has a first program area storing a write control program and a second program area to which the program data are to be written, and the program data stored temporarily in the data memory are written to the second program area in accordance with the write control program stored in the first program area.

### Claim 2 (depends on 1)

The microcomputer according to claim 1, further comprising a program counter for controlling an address of the nonvolatile memory for program storage, a value of the program counter being caused to jump to a starting address of the first program area in response to a reset of the microcomputer.

### Claim 3 (depends on 1)

The microcomputer according to claim 1, wherein the data memory is a RAM.

### Claim 4 (depends on 3)

The microcomputer according to claim 3, wherein the RAM is accessible from the USB interface circuit and the CPU.

### Claim 5 (depends on 4)

The microcomputer according to claim 4, further comprising an address selecting circuit for selecting a first address signal output from the USB interface circuit and a second address signal output from the CPU and inputting the address signal to an address decoder of the RAM, a data area of the RAM being accessible from the USB interface circuit and the CPU.

### Claim 6 (depends on 5)

The microcomputer according to claim 5, wherein the address selecting circuit selects the first address signal output from the USB interface circuit during receipt of data from the host.

### Claim 7

A microcomputer comprising:
a USB interface circuit for interfacing data transmission and receipt between a host and the microcomputer;
a temporary register for transmission and receipt which is provided in the USB interface circuit and serves to temporarily store data; and
a RAM which is accessible from the CPU and the temporary register for transmission and receipt in the microcomputer,
wherein data transfer is carried out between the temporary register and the RAM.

### Claim 8 (depends on 7)

The microcomputer according to claim 7, further comprising an address selecting circuit for selecting a first address signal output from the USB interface circuit and a second address signal output from the CPU and inputting the address signal to an address decoder of the RAM, a data area of the RAM being accessible from the USB interface circuit and the CPU.

### Claim 9 (depends on 8)

The microcomputer according to claim 8, wherein the address selecting circuit selects the first address signal output from the USB interface circuit during receipt of data from the host.

### Claim 10

A microcomputer comprising a USB interface circuit for interfacing data transmission and receipt between a host and the microcomputer, a nonvolatile memory for program storage which can electrically carry out rewrite and read, and a CPU for executing a program read from the nonvolatile memory,
wherein a specific memory area for storing identification information to specify a vendor of the microcomputer is provided in the nonvolatile memory and the identification information read from the specific memory area is transmitted to the host through the USB interface circuit during initialization of a USB.

### Claim 11 (depends on 10)

The microcomputer according to claim 10, wherein the nonvolatile memory has a first program area storing a write control program and a second program area to which program data are to be written, and the program data are written to the second program area in accordance with the write control program stored in the first program area.

### Claim 12 (depends on 11)

The microcomputer according to claim 11, wherein the specific memory area of the nonvolatile memory in which the identification information is to be stored is provided adjacently to the first program area.

### Claim 13

A method of controlling a microcomputer comprising a USB interface circuit for interfacing data transmission and receipt between a host and the microcomputer, a nonvolatile memory having a first program area storing a write control program and a second program area to which program data are to be written and capable of electrically carrying out rewrite and read, and a CPU for executing a program read from the nonvolatile memory, comprising:
a first step of starting execution of the write control program in response to a reset of the microcomputer, a second step of executing initialization of a USB, a third step of writing program data from the host to the second program area of the nonvolatile memory, and a fourth step of executing a program written to the second program area.

### Claim 14 (depends on 13)

A method of controlling a microcomputer according to claim 13, wherein the microcomputer is reset by power-on reset.

### Claim 15 (depends on 13)

A method of controlling a microcomputer according to claim 13, further comprising a step of deciding whether or not program data are to be rewritten from the host after the fourth step, wherein when the rewrite is to be carried out, the first to fourth steps are repeated again to rewrite the program data from the host to the second program area of the nonvolatile memory and to execute a program thus rewritten.

### Claim 16 (depends on 13)

A method of controlling a microcomputer according to claim 13, further comprising a step of writing collating code data to a specific area in the second program area after the third step and a step of comparing data in the specific area with the collating code data after the first step, the third step being executed if both of them are not coincident with each other and program data are not rewritten from the host to the second program area of the nonvolatile memory but a program written to the second program area is executed if both of them are coincident with each other.
