Microcomputer and method of controlling the same
AssigneeSanyo Electric Co., Ltd.
InventorHideo Kondo
Life of this patent
Estimating the term…
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.
Claims16
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.
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.
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.
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.
Dependencies are inferred from the claim text.