JP2002157136A - Electronic apparatus with program function, program data correction device, and program data correction system - Google Patents

Electronic apparatus with program function, program data correction device, and program data correction system

Info

Publication number
JP2002157136A
JP2002157136A JP2000349761A JP2000349761A JP2002157136A JP 2002157136 A JP2002157136 A JP 2002157136A JP 2000349761 A JP2000349761 A JP 2000349761A JP 2000349761 A JP2000349761 A JP 2000349761A JP 2002157136 A JP2002157136 A JP 2002157136A
Authority
JP
Japan
Prior art keywords
program
data
correction
memory
correction data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2000349761A
Other languages
Japanese (ja)
Inventor
努 ▲高▼橋
Tsutomu Takahashi
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP2000349761A priority Critical patent/JP2002157136A/en
Publication of JP2002157136A publication Critical patent/JP2002157136A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To realize a program data correction system for a microcomputer- controlled electronic apparatus without unnecessarily increasing the capacity of a nonvolatile memory in the electronic apparatus. SOLUTION: When a television receiver 1 is connected to a program data correction device 5 and power supply to the receiver 1 is turned on, a CPU(central processing unit) 2a of a microcomputer 2 in the receiver 1 works according to a program stored in a program ROM(read only memory) 2c and writes an ID(identification) number denoting the version of the program in the nonvolatile memory 3 in the receiver 1. The correction device 5 accesses the memory 3 in the receiver 1 to read the ID number, and writes correction data corresponding to the ID number in the memory 3 in the receiver 1. The correction data written in a correction data area 3b of the memory 3 are used in place of data of a defective portion in the program, thereby conrolling a system in the receiver 1.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、プログラムデータ
訂正機能を有するマイクロコンピュータ(以下、マイコ
ンと記す)と訂正データの記憶領域を有する不揮発性メ
モリとを搭載した電子機器、当該電子機器の不揮発性メ
モリにプログラムのバージョンに応じた訂正データを書
き込むプログラムデータ訂正装置、及びこれら電子機器
とプログラムデータ訂正装置とを含むプログラムデータ
訂正システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic device equipped with a microcomputer having a program data correction function (hereinafter referred to as a microcomputer) and a nonvolatile memory having a storage area for correction data, and a nonvolatile memory of the electronic device. The present invention relates to a program data correction device that writes correction data according to a version of a program into a memory, and a program data correction system including these electronic devices and the program data correction device.

【0002】[0002]

【従来の技術】従来、マイコンの低簾化と普及がすすむ
につれ、種々の電子機器がマイコンで制御されるように
なった。かかる電子機器に搭載されているマイコンは一
般にCPUと、メモリなどが1つのチップに組み込まれ
た所謂ワンチップマイコンである。
2. Description of the Related Art Conventionally, various electronic devices have been controlled by microcomputers as the number of microcomputers has been reduced and spread. A microcomputer mounted on such an electronic device is generally a so-called one-chip microcomputer in which a CPU, a memory, and the like are incorporated in one chip.

【0003】通常かかるマイコンを作製する場合には、
マスク品と呼ばれる変更不可能な最終製品ができる時期
より一定期間前にプログラムを作成し終わっている必要
がある。通常プログラムが完成してからマスク化するた
めの期間が数週間から数カ月程度必要であるためであ
る。しかし、この期間内にハード構成の変更によるプロ
グラムの変更、プログラムのバグなどの不具合点が発見
されることが多々ある。
[0003] Usually, when manufacturing such a microcomputer,
It is necessary to complete the program a certain period before the time when an unchangeable final product called a mask product is made. Usually, it takes several weeks to several months for masking after the completion of the program. However, during this period, a defect such as a change in the program due to a change in the hardware configuration or a bug in the program is often found.

【0004】このような場合にはROMコレクションと
呼ばれるプログラムデータ訂正機能を使い、マスク化さ
れているプログラムの訂正を行うのが一般的である。R
OMコレクションは、訂正データを不揮発性メモリ内に
記憶させて、マスク化されたプログラム中の不具合箇所
のデータの代わりに使用する機能である。その方法とし
ては、マイコン内蔵のハードウエアとプログラムとによ
って行う方法、すなわちプログラムの中の修正、訂正し
たい箇所のアドレスの訂正データを不揮発性メモリに保
持しておきROMコレクションに対応したマイコンハー
ドの機能を使ってプログラム内の該当するアドレスのデ
ータを変更する方法や、不揮発性メモリに不具合箇所を
訂正データに置き換えたプログラムを記憶させておい
て、そのプログラムをRAMに読み込みRAM領域をプ
ログラム領域であるかの様に使用する方法などがある。
In such a case, it is general to correct a masked program by using a program data correction function called a ROM correction. R
The OM correction is a function of storing correction data in a non-volatile memory and using it instead of data of a defective portion in a masked program. The method is performed by hardware and a program built in the microcomputer, that is, the function of the microcomputer hardware corresponding to the ROM collection by storing the correction data of the address of the part to be corrected or corrected in the program in the nonvolatile memory. And a method of changing data at a corresponding address in a program using a program, or storing a program in which a defective portion is replaced with correction data in a non-volatile memory, reading the program into the RAM, and using the RAM area as a program area. There are methods to use as if.

【0005】いずれの場合も不揮発性メモリに記憶させ
る訂正データは訂正したいプログラム専用のデータであ
るためプログラムと必ず対になっている必要がある。ま
たプログラムがバージョンアップされた場合には前回の
プログラム用に不揮発性メモリに記憶されている訂正デ
ータは機能しないようにしなくてはならない。
In any case, the correction data stored in the non-volatile memory is data dedicated to the program to be corrected, and therefore must always be paired with the program. When the program is upgraded, the correction data stored in the nonvolatile memory for the previous program must not function.

【0006】上記方法として従来は、マイコンのプログ
ラム内にデータとしてバージョン番号などのID番号を
保持しておき、不揮発性メモリ内に記憶しておくデータ
としては訂正データの他にマイコン内に保持されている
のと同じID番号を記憶しておく方法をとっていた。そ
して訂正データを読み込む前に、マイコンのプログラム
内に保持してあるID番号と、不揮発性メモリ内に記憶
してあるID番号とが等しいか否かをチェックし、等し
ければそのマイコン用の訂正データであるとしてそれを
読み込みデータの訂正を行っていた。
Conventionally, an ID number such as a version number is stored as data in a program of a microcomputer, and data stored in a nonvolatile memory is stored in the microcomputer in addition to correction data. In this case, the same ID number is stored. Before reading the correction data, it is checked whether the ID number stored in the program of the microcomputer is equal to the ID number stored in the nonvolatile memory. It was read as it was and the data was corrected.

【0007】このように、不揮発性メモリとプログラム
とが必ず対になっている必要があるため、例えばマイコ
ンプログラムのバージョン切換え時などでは、数種類の
マイコンと不揮発性メモリを準備し更にその組合わせの
管理も必要となり、製造現場での管理が困難になること
や、サービスなどで対応する場合でも、それぞれのバー
ジョン毎に適した不揮発性メモリを供給しなくてはなら
ないという問題があった。
As described above, since the nonvolatile memory and the program must always be paired, for example, when switching the version of the microcomputer program, several types of the microcomputer and the nonvolatile memory are prepared, and the combination of the microcomputer and the nonvolatile memory is further prepared. There is also a problem that management is required, which makes it difficult to manage at a manufacturing site, and that even when a service is used, a nonvolatile memory suitable for each version must be supplied.

【0008】これらの問題点を解消するために、特開平
9−265391号公報記載のプログラムデータ訂正シ
ステムでは、不揮発性メモリにCPUのバージョンに対
応させて複数のバージョンの訂正データをID番号と対
にして記憶しておき、CPUの動作手順を記憶している
プログラムROM内に記憶されているそのCPU特有の
バージョンを示すID番号と照合し、ID番号同志が一
致しないときは、不揮発性メモリの当該ID番号と共に
記憶されているアドレスに従って他のバージョンの訂正
データと対となっているID番号を読み出して更に照合
を行い、ID番号同志が一致したときにのみプログラム
の訂正を実行する方法をとっている。上記方法によれ
ば、ROMコレクションを使用する場合にマイコンと不
揮発性メモリの切り換えを同時に行う必要がなく、かつ
プログラムのバージョンの数と同じ数だけの不揮発性メ
モリを用意する必要もなくなる。
In order to solve these problems, in a program data correction system described in Japanese Patent Application Laid-Open No. 9-265391, a plurality of versions of corrected data are associated with an ID number in a nonvolatile memory in correspondence with a version of a CPU. Is compared with an ID number indicating a CPU-specific version stored in a program ROM storing an operation procedure of the CPU. According to the address stored together with the ID number, the ID number paired with the correction data of another version is read out and further collated, and the program is corrected only when the ID numbers match. ing. According to the above method, it is not necessary to switch between the microcomputer and the nonvolatile memory at the same time when using the ROM correction, and it is not necessary to prepare the same number of nonvolatile memories as the number of program versions.

【0009】[0009]

【発明が解決しようとする課題】しかしながら、上記公
報記載の技術では、電子機器本体に内蔵される不揮発性
メモリに、マイコンのバージョンに対応させて複数のバ
ージョンの訂正データをID番号と対にして記憶してお
く必要があるため、本来必要となる訂正データのデータ
量に比べ、大幅に容量の大きな不揮発性メモリが必要と
なってしまうという問題がある。
However, according to the technology described in the above publication, a plurality of versions of correction data are paired with ID numbers in a nonvolatile memory built in the electronic device main body in correspondence with the version of the microcomputer. Since it is necessary to store the non-volatile memory, there is a problem that a non-volatile memory having a significantly larger capacity is required as compared with the originally required amount of correction data.

【0010】本発明は、前記の問題点を解消するために
なされたものであって、ROMコレクションを使用する
場合にマイコンと不揮発性メモリの切り換えを同時に行
う必要がなく、かつプログラムのバージョンの数と同じ
数だけの不揮発性メモリを用意する必要のないプログラ
ムデータ訂正システムを、電子機器内に配置される不揮
発性メモリの容量を不必要に大容量化することなく実現
できるようにすることを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problem, and it is not necessary to switch between a microcomputer and a nonvolatile memory at the same time when using a ROM correction, and to reduce the number of program versions. The purpose of the present invention is to realize a program data correction system that does not need to prepare the same number of nonvolatile memories as described above, without unnecessarily increasing the capacity of the nonvolatile memory arranged in the electronic device. And

【0011】[0011]

【課題を解決するための手段】本発明は、上記の目的を
達成するため、次の構成を有する。本発明の第1の要旨
に係るプログラム機能付き電子機器は、CPUと、該C
PUが実行するプログラムおよび該プログラムのバージ
ョン情報を記憶しているプログラムROMと、前記プロ
グラムのバージョン情報および訂正データの記憶領域を
有する書き込み可能な不揮発性メモリと、該不揮発性メ
モリに外部機器がアクセスして前記バージョン情報の読
み出し及び前記訂正データの書き込みを行うためのイン
タフェースとを備え、前記CPUは、前記プログラムに
従って動作することにより、該プログラムのバージョン
情報を前記不揮発性メモリに書き込む処理および前記不
揮発性メモリに記憶されている訂正データを使用する処
理を実行することを特徴とする。
The present invention has the following configuration to achieve the above object. An electronic device with a program function according to a first aspect of the present invention includes a CPU,
A program ROM storing a program executed by the PU and version information of the program, a writable nonvolatile memory having a storage area for the version information of the program and correction data, and an external device accessing the nonvolatile memory An interface for reading the version information and writing the correction data, wherein the CPU operates in accordance with the program to write version information of the program to the nonvolatile memory; Executing a process using the correction data stored in the dynamic memory.

【0012】本発明の第2の要旨に係るプログラムデー
タ訂正装置は、前記電子機器の前記不揮発性メモリに前
記訂正データを書き込むためのプログラムデータ訂正装
置であって、前記不揮発性メモリにアクセスするための
インタフェースと、複数のプログラムの訂正データを各
プログラムのバージョン情報と対応させて記憶している
訂正データ格納用メモリとを備え、前記不揮発性メモリ
に書き込まれているバージョン情報を読み出し、該バー
ジョン情報と対応する訂正データを前記訂正データ格納
用メモリから読み出し前記不揮発性メモリに書き込む機
能を有することを特徴とする。
A program data correction device according to a second aspect of the present invention is a program data correction device for writing the correction data in the nonvolatile memory of the electronic device, and for accessing the nonvolatile memory. And a correction data storage memory for storing correction data of a plurality of programs in association with version information of each program, and reading out the version information written in the nonvolatile memory, And a function of reading the correction data corresponding to the above from the correction data storage memory and writing the same to the nonvolatile memory.

【0013】本発明の第3の要旨に係るプログラムデー
タ訂正システムは、前記電子機器と前記プログラムデー
タ訂正装置とを有することを特徴とする。
[0013] A program data correction system according to a third aspect of the present invention includes the electronic device and the program data correction device.

【0014】上記のように構成したことにより、第1の
要旨に係る電子機器では、CPUがプログラムROMに
記憶されているプログラムに従って動作することによ
り、該プログラムのバージョン情報が電子機器内の不揮
発性メモリに書き込まれるので、この電子機器にプログ
ラムデータ訂正用の外部機器を接続して、電子機器内の
不揮発性メモリに書き込まれているバージョン情報を読
み出すことにより、プログラムのバージョン情報を取得
でき、そのバージョン情報と対応する訂正データを不揮
発性メモリに書き込むことができる。電子機器のCPU
が現に実行するプログラムの訂正データのみを不揮発性
メモリに書き込むことができるため、本来必要となる訂
正データのデータ量にみあった容量の不揮発性メモリを
用いることができる。その後は、不揮発性メモリに記憶
されている訂正データがマスク化されたプログラム中の
不具合箇所のデータの代わりに使用される。
With the above-described configuration, in the electronic device according to the first aspect, the CPU operates in accordance with the program stored in the program ROM, and the version information of the program is stored in the nonvolatile device in the electronic device. Since the data is written into the memory, an external device for correcting program data is connected to the electronic device, and the version information written in the non-volatile memory in the electronic device can be read to obtain the version information of the program. Correction data corresponding to the version information can be written to the nonvolatile memory. Electronic equipment CPU
Can write only the correction data of the program to be actually executed in the nonvolatile memory, so that a nonvolatile memory having a capacity corresponding to the originally required amount of correction data can be used. Thereafter, the correction data stored in the non-volatile memory is used instead of the data of the defective portion in the masked program.

【0015】第2の要旨に係るプログラムデータ訂正装
置は、前記電子機器内の不揮発性メモリにアクセスして
バージョン情報を読み出し、該バージョン情報と対応す
る訂正データを前記電子機器内の不揮発性メモリに書き
込む。したがって、このプログラムデータ訂正装置を使
用することにより、前記電子機器のCPUが現に実行す
るプログラムの訂正データのみを不揮発性メモリに容易
に書き込むことができ、前記電子機器の不揮発性メモリ
として、本来必要となる訂正データのデータ量にみあっ
た容量の不揮発性メモリを使用できるようになる。
A program data correction device according to a second aspect reads a version information by accessing a nonvolatile memory in the electronic device, and stores correction data corresponding to the version information in the nonvolatile memory in the electronic device. Write. Therefore, by using this program data correction device, it is possible to easily write only the correction data of the program actually executed by the CPU of the electronic device into the nonvolatile memory. Thus, a nonvolatile memory having a capacity corresponding to the data amount of the correction data to be used can be used.

【0016】第3の要旨に係るプログラムデータ訂正シ
ステムによれば、前記電子機器に前記プログラムデータ
訂正装置を接続することにより、前記電子機器のCPU
が現に実行するプログラムの訂正データのみを不揮発性
メモリに容易に書き込むことができる。したがって、前
記電子機器の不揮発性メモリとして、本来必要となる訂
正データのデータ量にみあった容量の不揮発性メモリを
使用できるようになる。
According to the program data correction system of the third aspect, by connecting the program data correction device to the electronic device, the CPU of the electronic device can be controlled.
Can easily write only the correction data of the program actually executed in the nonvolatile memory. Therefore, a nonvolatile memory having a capacity corresponding to the data amount of the correction data originally required can be used as the nonvolatile memory of the electronic device.

【0017】[0017]

【発明の実施の形態】以下、図面を参照して本発明の実
施形態を詳細に説明する。図1は、本発明に係るプログ
ラムデータ訂正システムの構成を例示するブロック図で
ある。ここではマイコンを内蔵した電子機器の一つであ
るテレビジョン受信機のプログラムデータ訂正システム
を例にとり説明する。図1において、1はテレビジョン
受信機(以下、テレビ受信機と記す。)、5はプログラ
ムデータ訂正装置である。
Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 is a block diagram illustrating the configuration of a program data correction system according to the present invention. Here, a program data correction system of a television receiver, which is one of electronic devices incorporating a microcomputer, will be described as an example. In FIG. 1, reference numeral 1 denotes a television receiver (hereinafter, referred to as a television receiver), and reference numeral 5 denotes a program data correction device.

【0018】テレビ受信機1は、マイコン2と書き換え
可能な不揮発性メモリ3とを内蔵している。またテレビ
受信機1には、プログラムデータ訂正装置5を接続する
ためのインタフェース(以下、I/Fと記す。)である
外部機器接続I/Fコネクタ(以下、単にコネクタと記
す。)4の一方のコネクタエレメント4aが設けられて
いる。このテレビ受信機1側のコネクタエレメント4a
にプログラムデータ訂正装置5側のもう一方のコネクタ
エレメント4bが接続される。
The television receiver 1 includes a microcomputer 2 and a rewritable nonvolatile memory 3. One of an external device connection I / F connector (hereinafter simply referred to as a connector) 4 which is an interface (hereinafter referred to as an I / F) for connecting the program data correction device 5 to the television receiver 1. Connector element 4a is provided. The connector element 4a of the television receiver 1
Is connected to the other connector element 4b on the program data correction device 5 side.

【0019】マイコン2は、CPU2a、RAM2b、
プログラムROM2c、およびI/F2dを一つの基板
上に形成してなるワンチップマイコンである。CPU2
aはマイコン2の内部バス2eによってRAM2b、プ
ログラムROM2c、およびI/F2dと相互に接続さ
れている。I/F2dは外部バス6によって不揮発性メ
モリ3とコネクタエレメント4aとに接続されている。
The microcomputer 2 includes a CPU 2a, a RAM 2b,
This is a one-chip microcomputer in which the program ROM 2c and the I / F 2d are formed on one substrate. CPU2
a is mutually connected to the RAM 2b, the program ROM 2c, and the I / F 2d by the internal bus 2e of the microcomputer 2. The I / F 2d is connected to the nonvolatile memory 3 and the connector element 4a by the external bus 6.

【0020】CPU2aは、I/F2d、外部バス6な
どを介して不揮発性メモリ3にアクセスし、またコネク
タ4によって接続されたプログラムデータ訂正装置5と
も信号の授受を行う。
The CPU 2a accesses the non-volatile memory 3 via the I / F 2d, the external bus 6, etc., and exchanges signals with the program data correction device 5 connected by the connector 4.

【0021】プログラムROM2cには、通常のコンピ
ュータ同様、CPU2aの動作手順がプログラムとして
記憶されており、CPU2aはこのプログラムを読み出
して、その指示に従った所定の動作を実行する。また、
プログラムROM2cの所定の領域には、上記プログラ
ムのバージョンを示すID番号情報(バージョン情報)
が予め書き込まれている。
The operation procedure of the CPU 2a is stored as a program in the program ROM 2c, similar to a normal computer, and the CPU 2a reads this program and executes a predetermined operation according to the instruction. Also,
In a predetermined area of the program ROM 2c, ID number information (version information) indicating the version of the program is provided.
Is written in advance.

【0022】不揮発性メモリ3には、ID番号領域3a
と、訂正データ領域3bと、システムデータ領域3cと
が設けられており、それぞれの領域に必要なデータが記
憶されている。ID番号領域3aは、CPU2aによっ
て書き込まれるID番号情報の記憶領域である。訂正デ
ータ領域3bは、プログラムデータ訂正装置5によって
書き込まれる訂正データの記憶領域である。システムデ
ータ領域3cは、テレビ受信機1が動作するために必要
な各種データの記憶領域である。
The nonvolatile memory 3 has an ID number area 3a
, A correction data area 3b, and a system data area 3c, and necessary data is stored in each area. The ID number area 3a is a storage area for ID number information written by the CPU 2a. The correction data area 3b is a storage area for correction data written by the program data correction device 5. The system data area 3c is a storage area for various data necessary for the television receiver 1 to operate.

【0023】プログラムデータ訂正装置5は、CPU5
a、RAM5b、ROM5c、訂正データ格納用メモリ
5d、およびI/F5eを内蔵している。CPU5aは
プログラムデータ訂正装置5内のシステムバス5fを介
してRAM5b、プログラムROM5c、訂正データ格
納用メモリ5d、およびI/F5eと相互に接続されて
いる。I/F5eにはコネクタケーブル7が接続されて
いる。コネクタケーブル7の末端にはコネクタエレメン
ト4bが設けられている。CPU5aは、テレビ受信機
1内の不揮発性メモリ3に、I/F5e、コネクタ4、
外部バス6などを介してアクセスする。
The program data correction device 5 includes a CPU 5
a, a RAM 5b, a ROM 5c, a memory 5d for storing correction data, and an I / F 5e. The CPU 5a is mutually connected to a RAM 5b, a program ROM 5c, a memory 5d for storing correction data, and an I / F 5e via a system bus 5f in the program data correction device 5. The connector cable 7 is connected to the I / F 5e. At the end of the connector cable 7, a connector element 4b is provided. The CPU 5a stores the I / F 5e, the connector 4, and the like in the nonvolatile memory 3 in the television receiver 1.
Access is made via the external bus 6 or the like.

【0024】プログラムROM5cには、CPU5aの
動作手順がプログラムとして記憶されており、CPU5
aはこのプログラムを読み出して、その指示に従った所
定の動作を実行する。
The operation procedure of the CPU 5a is stored as a program in the program ROM 5c.
a reads this program and executes a predetermined operation according to the instruction.

【0025】訂正データ格納メモリ5dには、バージョ
ンの異なる複数のプログラムの訂正データが各プログラ
ムのID番号情報と対応させて記憶されている。
The correction data storage memory 5d stores correction data of a plurality of programs having different versions in association with ID number information of each program.

【0026】次に、上記のように構成されたこの実施の
形態のプログラムデータ訂正システムの動作を説明す
る。テレビ受信機1に組み込まれているマイコン2のプ
ログラム訂正を行う場合、テレビ受信機1のコネクタエ
レメント4aにプログラムデータ訂正装置5のコネクタ
エレメント4bを接続する。
Next, the operation of the program data correction system according to this embodiment configured as described above will be described. When performing program correction of the microcomputer 2 incorporated in the television receiver 1, the connector element 4 b of the program data correction device 5 is connected to the connector element 4 a of the television receiver 1.

【0027】この状態で、マイコン2を起動する操作を
行うと、たとえばテレビ受信機1の電源を入れると、マ
イコン2内ではCPU2aがプログラムROM2cに書
き込まれているID番号情報を読み出し、I/F2dを
介してID番号情報を不揮発性メモリ3のID番号領域
3aに書き込む。
In this state, when the operation of activating the microcomputer 2 is performed, for example, when the power of the television receiver 1 is turned on, the CPU 2a in the microcomputer 2 reads out the ID number information written in the program ROM 2c, and the I / F 2d The ID number information is written to the ID number area 3a of the nonvolatile memory 3 via the.

【0028】一方、プログラムデータ訂正装置5は、プ
ログラムROM5c内のプログラムを実行し、I/F5
e、コネクタ4などを介して不揮発性メモリ3のID番
号領域3aからID番号情報を読み出し、訂正データ格
納用メモリ5dに格納されている複数の訂正データの中
からID番号情報と一致するID番号の訂正データを読
み出し、その訂正データをI/F5e、コネクタ4など
を介して不揮発性メモリ3の訂正データ領域3bに書き
込む。
On the other hand, the program data correction device 5 executes the program in the program ROM 5c,
e, the ID number information is read from the ID number area 3a of the nonvolatile memory 3 via the connector 4 and the like, and an ID number matching the ID number information is selected from a plurality of pieces of correction data stored in the correction data storage memory 5d. And writes the corrected data to the corrected data area 3b of the nonvolatile memory 3 via the I / F 5e, the connector 4, and the like.

【0029】不揮発性メモリ3への訂正データの書き込
みが終了したら、テレビ受信機1のコネクタエレメント
4aからプログラムデータ訂正装置5のコネクタエレメ
ント4bを外す。
When the writing of the correction data to the nonvolatile memory 3 is completed, the connector element 4b of the program data correction device 5 is removed from the connector element 4a of the television receiver 1.

【0030】その後、テレビ受信機1のマイコン2を再
起動し、プログラムROM2cに格納されているプログ
ラムをCPU2aに実行させると、上述した書き込み処
理によって不揮発性メモリ3の訂正データ領域3bに書
き込まれた訂正データがプログラム中の不具合箇所のデ
ータの代わりに使用されてテレビ受信機1のシステムが
制御される。
Thereafter, when the microcomputer 2 of the television receiver 1 is restarted and the program stored in the program ROM 2c is executed by the CPU 2a, the program is written into the correction data area 3b of the nonvolatile memory 3 by the above-described writing process. The correction data is used instead of the data of the defective part in the program, and the system of the television receiver 1 is controlled.

【0031】以上のように、この実施の形態のプログラ
ムデータ訂正システムでは、テレビ受信機1内のマイコ
ン2のCPU2aがプログラムROM2cに記憶されて
いるプログラムに従って動作することにより、当該プロ
グラムのバージョンを示すID番号情報をテレビ受信機
1内の不揮発性メモリ3に書き込み、プログラムデータ
訂正装置5が、テレビ受信機1内の不揮発性メモリ3に
アクセスしてID番号情報を読み出し、当該ID番号と
対応する訂正データをテレビ受信機1内の不揮発性メモ
リ3に書き込むように構成したので、テレビ受信機1の
CPU2aが現に実行するプログラムの訂正データのみ
を不揮発性メモリ3に容易に書き込むことができる。
As described above, in the program data correction system of this embodiment, the version of the program is indicated by the CPU 2a of the microcomputer 2 in the television receiver 1 operating according to the program stored in the program ROM 2c. The ID number information is written in the non-volatile memory 3 in the television receiver 1, and the program data correction device 5 accesses the non-volatile memory 3 in the television receiver 1 to read out the ID number information, and corresponds to the ID number. Since the correction data is configured to be written to the nonvolatile memory 3 in the television receiver 1, only the correction data of the program currently executed by the CPU 2a of the television receiver 1 can be easily written to the nonvolatile memory 3.

【0032】なお、上記の例では、プログラムデータ訂
正装置5の訂正データ格納用メモリ5dにバージョンの
異なる複数のプログラムの訂正データが記憶されている
が、これらの訂正データをプログラムROM5cに格納
し、訂正データ格納用メモリ5dを省略してもよい。
In the above example, the correction data of a plurality of programs of different versions are stored in the correction data storage memory 5d of the program data correction device 5, but these correction data are stored in the program ROM 5c. The correction data storage memory 5d may be omitted.

【0033】また、プログラム訂正対象となる電子機器
はテレビ受信機に限らない。本発明は、VTR、CDプ
レーヤ、エアコン、冷蔵庫、洗濯機、電子レンジ、ビデ
オゲーム機など、様々な電気機器に適用することが可能
である。
The electronic device to be corrected is not limited to a television receiver. The present invention can be applied to various electric devices such as a VTR, a CD player, an air conditioner, a refrigerator, a washing machine, a microwave oven, and a video game machine.

【0034】[0034]

【発明の効果】以上説明した通り、以下のような優れた
効果を奏する。第1の発明の要旨に係るプログラム機能
付き電子機器では、CPUがプログラムROMに記憶さ
れているプログラムに従って動作することにより、該プ
ログラムのバージョン情報が電子機器内の不揮発性メモ
リに書き込まれるので、この電子機器にプログラムデー
タ訂正用の外部機器を接続して、電子機器内の不揮発性
メモリに書き込まれているバージョン情報を読み出すこ
とにより、プログラムのバージョン情報を取得でき、そ
のバージョン情報と対応する訂正データを不揮発性メモ
リに書き込むことができる。電子機器のCPUが現に実
行するプログラムの訂正データのみを不揮発性メモリに
書き込むことができるため、本来必要となる訂正データ
のデータ量にみあった容量の不揮発性メモリを用いるこ
とができる。
As described above, the following excellent effects can be obtained. In the electronic device with the program function according to the gist of the first invention, the version information of the program is written to the nonvolatile memory in the electronic device by the CPU operating according to the program stored in the program ROM. By connecting an external device for program data correction to the electronic device and reading out the version information written in the non-volatile memory in the electronic device, the program version information can be obtained, and the version information and the corresponding correction data can be obtained. Can be written to the non-volatile memory. Since only the correction data of the program actually executed by the CPU of the electronic device can be written into the nonvolatile memory, a nonvolatile memory having a capacity corresponding to the originally required amount of correction data can be used.

【0035】第2の発明の要旨に係るプログラムデータ
訂正装置は、前記電子機器内の不揮発性メモリにアクセ
スしてバージョン情報を読み出し、該バージョン情報と
対応する訂正データを前記電子機器内の不揮発性メモリ
に書き込むので、このプログラムデータ訂正装置を使用
することにより、前記電子機器のCPUが現に実行する
プログラムの訂正データのみを不揮発性メモリに容易に
書き込むことができ、前記電子機器の不揮発性メモリと
して、本来必要となる訂正データのデータ量にみあった
容量の不揮発性メモリを使用できるようになる。
According to a second aspect of the present invention, there is provided a program data correction device which accesses a non-volatile memory in the electronic device to read version information, and stores correction data corresponding to the version information in the non-volatile memory in the electronic device. Since the data is written into the memory, by using this program data correction device, it is possible to easily write only the correction data of the program actually executed by the CPU of the electronic device into the nonvolatile memory, and as the nonvolatile memory of the electronic device. Thus, a nonvolatile memory having a capacity corresponding to the originally required amount of correction data can be used.

【0036】本発明の第3の要旨に係るプログラムデー
タ訂正システムによれば、前記電子機器に前記プログラ
ムデータ訂正装置を接続することにより、前記電子機器
のCPUが現に実行するプログラムの訂正データのみを
不揮発性メモリに容易に書き込むことができるので、前
記電子機器の不揮発性メモリとして、本来必要となる訂
正データのデータ量にみあった容量の不揮発性メモリを
使用できるようになる。
According to the program data correction system according to the third aspect of the present invention, by connecting the program data correction device to the electronic device, only the correction data of the program currently executed by the CPU of the electronic device can be obtained. Since the data can be easily written in the non-volatile memory, the non-volatile memory of the electronic device can use a non-volatile memory having a capacity corresponding to the originally required amount of correction data.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の実施形態に係るプログラムデータ訂正
システムの構成を例示するブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a program data correction system according to an embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1:テレビジョン受信機 2:マイクロコンピュータ 2a:CPU 2c:プログラムROM 2d:インタフェース 3:不揮発性メモリ 3a:ID番号領域(バージョン情報の記憶領域) 3b:訂正データ領域(訂正データの記憶領域) 4:外部機器接続インタフェースコネクタ(インタフェ
ース) 5:プログラムデータ訂正装置 5d:訂正データ格納用メモリ
1: Television receiver 2: Microcomputer 2a: CPU 2c: Program ROM 2d: Interface 3: Non-volatile memory 3a: ID number area (storage area for version information) 3b: Corrected data area (storage area for corrected data) 4 : External device connection interface connector (interface) 5: Program data correction device 5 d: Correction data storage memory

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 CPUと、該CPUが実行するプログラ
ムおよび該プログラムのバージョン情報を記憶している
プログラムROMと、前記プログラムのバージョン情報
および訂正データの記憶領域を有する書き込み可能な不
揮発性メモリと、該不揮発性メモリに外部機器がアクセ
スして前記バージョン情報の読み出し及び前記訂正デー
タの書き込みを行うためのインタフェースとを備え、 前記CPUは、前記プログラムに従って動作することに
より、該プログラムのバージョン情報を前記不揮発性メ
モリに書き込む処理および前記不揮発性メモリに記憶さ
れている訂正データを使用する処理を実行することを特
徴とするプログラム機能付き電子機器。
1. A CPU, a program ROM storing a program executed by the CPU and version information of the program, a writable nonvolatile memory having a storage area for the version information of the program and correction data, An interface for an external device to access the non-volatile memory to read the version information and write the correction data, wherein the CPU operates in accordance with the program so that the version information of the program is An electronic device with a program function, which performs a process of writing to a non-volatile memory and a process of using correction data stored in the non-volatile memory.
【請求項2】 請求項1記載の電子機器の前記不揮発性
メモリに前記訂正データを書き込むプログラムデータ訂
正装置であって、 前記不揮発性メモリにアクセスするためのインタフェー
スと、 複数のプログラムの訂正データを各プログラムのバージ
ョン情報と対応させて記憶している訂正データ格納用メ
モリとを備え、 前記不揮発性メモリに書き込まれているバージョン情報
を読み出し、該バージョン情報と対応する訂正データを
前記訂正データ格納用メモリから読み出し前記不揮発性
メモリに書き込むことを特徴とするプログラムデータ訂
正装置。
2. A program data correction device for writing the correction data to the non-volatile memory of the electronic device according to claim 1, wherein: an interface for accessing the non-volatile memory; A memory for storing correction data that is stored in association with version information of each program; reads version information written in the nonvolatile memory; and stores correction data corresponding to the version information for storing the correction data. A program data correction device for reading from a memory and writing to the non-volatile memory.
【請求項3】 請求項1記載の電子機器と請求項2記載
のプログラムデータ訂正装置とを有することを特徴とす
るプログラムデータ訂正システム。
3. A program data correction system comprising the electronic device according to claim 1 and the program data correction device according to claim 2.
JP2000349761A 2000-11-16 2000-11-16 Electronic apparatus with program function, program data correction device, and program data correction system Pending JP2002157136A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000349761A JP2002157136A (en) 2000-11-16 2000-11-16 Electronic apparatus with program function, program data correction device, and program data correction system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000349761A JP2002157136A (en) 2000-11-16 2000-11-16 Electronic apparatus with program function, program data correction device, and program data correction system

Publications (1)

Publication Number Publication Date
JP2002157136A true JP2002157136A (en) 2002-05-31

Family

ID=18823103

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000349761A Pending JP2002157136A (en) 2000-11-16 2000-11-16 Electronic apparatus with program function, program data correction device, and program data correction system

Country Status (1)

Country Link
JP (1) JP2002157136A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2246784A1 (en) 2009-04-28 2010-11-03 Sanyo Electric Co., Ltd. Program update system and electronic device with program update function

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2246784A1 (en) 2009-04-28 2010-11-03 Sanyo Electric Co., Ltd. Program update system and electronic device with program update function
US8694717B2 (en) 2009-04-28 2014-04-08 Semiconductor Components Industries, Llc Program update system and electronic device with program update function

Similar Documents

Publication Publication Date Title
US7426633B2 (en) System and method for reflashing disk drive firmware
US6601132B2 (en) Nonvolatile memory and method of writing data thereto
CN103154900A (en) Embedded program update method, embedded program update program, electronic apparatus, network system
JP2000020391A (en) Storage device, data processor and its method
US6237120B1 (en) Program patching of a ROM
JP2000065899A (en) Semiconductor device, and its data rewriting method
JP3563768B2 (en) ROM program change device
JP2002157136A (en) Electronic apparatus with program function, program data correction device, and program data correction system
US6934537B2 (en) Radio communication device, method of and program for rewriting boot program therefor
JPH11265283A (en) Correction method for firmware in storage device, and storage device
US20030068162A1 (en) Updating system for digital players and method of using the same
US7210007B2 (en) Method of verifying a system in which a plurality of master devices share a storage device
TWI417888B (en) An embedded chip system, a method for burning a wafer, and a computer program product
JP3358214B2 (en) Electronic equipment
JP2007066326A (en) Storage device, data processor and data processing method
JP2000208567A (en) Semiconductor integrated circuit and test method therefor
US20100082909A1 (en) Memory system and control method
JP2557102B2 (en) Method for checking large capacity RAM and its peripheral circuits
JP2639927B2 (en) Test method for control device in data processing system
JP4608174B2 (en) Entertainment device, information processing device, and portable storage device
JP2972587B2 (en) How to diagnose cache memory
JPH09269896A (en) Booting method for firm cpu
JP3048199B2 (en) IC memory card
JPH04257030A (en) Rom patch system
JP2000082122A (en) Memory card