JPH05307471A - Electronic equipment - Google Patents

Electronic equipment

Info

Publication number
JPH05307471A
JPH05307471A JP4111747A JP11174792A JPH05307471A JP H05307471 A JPH05307471 A JP H05307471A JP 4111747 A JP4111747 A JP 4111747A JP 11174792 A JP11174792 A JP 11174792A JP H05307471 A JPH05307471 A JP H05307471A
Authority
JP
Japan
Prior art keywords
version
program
information
control program
control
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.)
Withdrawn
Application number
JP4111747A
Other languages
Japanese (ja)
Inventor
Koji Kajita
公司 梶田
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP4111747A priority Critical patent/JPH05307471A/en
Publication of JPH05307471A publication Critical patent/JPH05307471A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To enable execution of a program as it is without re-inputting newly control information even if the program is updated. CONSTITUTION:The version information of a control program is written beforehand in a non-volatile memory 4 in which the control information is written, and at the time of the execution of the control program, a CPU 3a reads out the written version information, and compares it with the version of the present control program, and when it is judged that the version of the present control program is the version newer than the version information having been written in the non-volatile memory 4, it reads out the control information in conformity with the storage system of the old version, and simultaneously, it converts it into a form capable of being used in the control program of the existing version, and stores it again in the non-volatile memory 4, and simultaneously, it updates the version information of the nonvolatile memory 4 into the new version.

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 provided with a microcomputer for controlling each part based on a control program, and a non-volatile storage means for storing control information required when the microcomputer executes the control program. The present invention relates to a device, for example, an electronic device capable of exchanging a storage medium constituting a control program or a non-volatile storage means.

【0002】[0002]

【従来の技術】従来、格納されたプログラムを制御する
制御プログラムに基づいて各部を制御するマイクロコン
ピユータと、このマイクロコンピユータが前記制御プロ
グラムを実行する時に必要なる制御情報を記憶する不揮
発性メモリとを備えた電子機器、例えば複写装置、プリ
ンタ装置、フアクシミリ装置、コンピユータ装置等が実
用化されている。
2. Description of the Related Art Conventionally, a microcomputer for controlling each part based on a control program for controlling a stored program, and a non-volatile memory for storing control information required when the microcomputer executes the control program. Electronic equipment provided, for example, a copying apparatus, a printer apparatus, a facsimile apparatus, a computer apparatus, and the like have been put to practical use.

【0003】このうち、上記不揮発性メモリには、各機
器の各種設定値や動作条件等を記憶させておくことによ
り、機器の細かな調整や使用者・環境等に合わせた動作
を行うように制御されている。また、ICカードなどを
用いて複雑な設定を記憶させておき、該設定が記憶され
たICカードを持ち運び、使用しようとする機器に読み
込ませることにより、面倒な設定動作を不要としたシス
テムもある。
Of these, the nonvolatile memory stores various set values and operating conditions of each device so that the device can be finely adjusted and operated in accordance with the user and environment. Controlled. Further, there is also a system in which complicated settings are stored by using an IC card or the like, and the IC card in which the settings are stored is carried and read by a device to be used, thereby eliminating a troublesome setting operation. ..

【0004】このようなシステムにおいては、こうした
不揮発性メモリの初期設定を行う前に、その記憶内容を
参照すると不都合が生じるために、特定アドレスに識別
用の特定マーク情報を書込み、メモリ内容が意味のある
ものかどうか判断する方式を取ることがある。あるいは
また、本出願人より所定の範囲の不揮発性メモリの内容
の照合用の情報を合わせて記憶させておき、記憶情報の
改編の有無を検出する方法も提案されている。
In such a system, since it is inconvenient to refer to the stored contents of the nonvolatile memory before initializing such a nonvolatile memory, specific mark information for identification is written at a specific address, and the contents of the memory mean. There may be a method to judge whether or not there is. Alternatively, the applicant has also proposed a method of storing information for collating the contents of a nonvolatile memory in a predetermined range together and detecting whether or not the stored information is modified.

【0005】[0005]

【発明が解決しようとしている課題】しかしながら、上
記従来例では、確かに記憶内容の正当性は検証可能であ
るが、記憶内容の形式は変化しないと仮定しているため
に次のような不都合があつた。プログラムにより制御さ
れるマイクロコンピユータを内蔵する電子機器におい
て、性能の向上やあるいはプログラムの不具合を解消す
る目的などにより、プログラム自体を新しく改訂したも
のに交換するのはごく普通におこなわれることである。
あるいはICカードに情報を記憶する構成をとつている
場合は、情報を書き込んだ機器ではない同種の機器に差
し込んで使用されることがある。
However, in the above-mentioned conventional example, although the correctness of the stored content can be verified, it is assumed that the format of the stored content does not change, so that the following inconveniences occur. Atsuta In an electronic device with a built-in microcomputer controlled by a program, it is common to replace the program with a newly revised one for the purpose of improving performance or eliminating a problem in the program.
Alternatively, when the IC card is configured to store information, it may be used by inserting it into a device of the same type that is not the device that wrote the information.

【0006】このような場合、不揮発性メモリを持つマ
イクロコンピユータ内蔵機器においては、過去に記憶し
ておいたデータを引き続き使えることが望ましいが、記
憶しておいたデータの形式とプログラムで用いるデータ
の形式が異なる場合が往々にして発生する。一例を挙げ
れば、例えば温度制御を行う機器において、精度の向上
を目的としてプログラムの更新を行ない、目標温度の設
定値の分解能を上げた結果、設定値を記憶するのに必要
なビット数が増えてしまう場合等がある。
In such a case, in a device with a built-in microcomputer having a non-volatile memory, it is desirable to be able to continue to use the data stored in the past, but the format of the stored data and the data used in the program Sometimes different formats occur. For example, in a device that performs temperature control, for example, the number of bits required to store the set value increases as a result of updating the program to improve the accuracy and increasing the resolution of the set value of the target temperature. There are cases where it will end up.

【0007】従来、このような変更については、これま
でその設定値を記憶するのに使つていたアドレスの変数
領域の使用を中止し、新たに変数領域を確保してそこに
新しい値を記憶するようプログラム側を変更するのが普
通である。しかしながら、この場合にはプログラム交換
に先立つて記憶されていたデータは引き継がれない。こ
のため、サービスマンが交換前の記憶値を書き留めてお
き、プログラム交換後に記憶値を再度手で入力するなど
の対策を講じる必要があつた。
For such a change, conventionally, the use of the variable area of the address, which has been used to store the set value, is stopped, a new variable area is reserved, and the new value is stored therein. It is common to change the program side to do so. However, in this case, the data stored prior to the program exchange is not inherited. For this reason, it is necessary for the service person to write down the stored value before the exchange and to take a measure such as manually inputting the stored value again after the program exchange.

【0008】また、他の記憶値に影響を及ぼさないよう
にするために、それまで利用していた変数領域を空き領
域として扱うために、記憶領域の無駄が発生し、またプ
ログラミングする上においても空き領域を考慮すること
はその自由度を減じ、好ましくないものであつた。
Further, in order to prevent the influence on other stored values, the variable area which has been used up to that point is treated as an empty area, so that the storage area is wasted, and also in programming. Considering the empty area reduces the degree of freedom and is not preferable.

【0009】[0009]

【課題を解決するための手段】本発明は以上の課題を解
決することを目的として成されたもので、上述の課題を
解決する一手段として以下の構成を備える。即ち、制御
プログラムに基づいて各部を制御するマイクロコンピユ
ータと、該マイクロコンピユータが前記制御プログラム
を実行する際に必要な制御情報を記憶する不揮発性記憶
手段とを備えた電子機器において、制御プログラムのバ
ージョン情報を不揮発性記憶手段に書き込む書き込み手
段と、該書き込み手段に書き込まれている前記バージヨ
ン情報を読み出し現在の制御プログラムのバージヨンと
比較する比較手段と、該比較手段が現在の制御プログラ
ムのバージヨンが前記不揮発性記憶手段に書き込まれて
いたバージヨン情報よりも新しいバージヨンと判別した
場合には前記制御情報を旧バージヨンの格納方式に従つ
て読み出すとともに現行バージヨンの制御プログラムで
利用可能な形式に変換して前記不揮発性記憶手段に再格
納するとともに該不揮発性記憶手段のバージヨン情報を
新バージヨンに更新する更新手段とを備える。プログラ
ムを更新した場合でも新たに不揮発性メモリにデータを
記憶し直す事を不要とするものである。
The present invention has been made for the purpose of solving the above problems, and has the following structure as one means for solving the above problems. That is, in an electronic device including a microcomputer for controlling each part based on a control program and a non-volatile storage means for storing control information required when the microcomputer executes the control program, a version of the control program Writing means for writing information in the non-volatile storage means, comparing means for reading the version information written in the writing means and comparing it with the version of the current control program, and the comparing means for the version of the current control program When it is determined that the version is newer than the version information written in the non-volatile storage means, the control information is read according to the storage method of the old version and is converted into a format usable by the control program of the current version. Restore in non-volatile storage means Together comprising an updating means for updating the Bajiyon information nonvolatile storage means to the new Bajiyon. Even if the program is updated, it is not necessary to store the data again in the nonvolatile memory.

【0010】[0010]

【作用】以上の構成において、マイクロコンピユータが
制御情報を不揮発性記憶手段に書き込む際に、併せて現
在のプログラムのバージヨン情報を同時に書き込んでお
き、プログラムが更新された場合において、当該バージ
ヨン情報をアクセスしその不揮発性記憶手段に保存され
ているデータの形式について知ることにより、プログラ
ムを更新した場合でも人間が不揮発性メモリに制御情報
を記憶し直す事を不要とし、自動的に新しいバージヨン
の形式にして適切なアドレスに記憶し直すことが可能と
なる。
In the above structure, when the microcomputer writes the control information in the non-volatile storage means, the version information of the current program is also written at the same time, and when the program is updated, the version information is accessed. However, by knowing the format of the data stored in the non-volatile storage means, even if the program is updated, it is not necessary for humans to re-store the control information in the non-volatile memory, and a new version format is automatically created. It becomes possible to re-store it at an appropriate address.

【0011】これにより、わざわざ古いデータを人手で
入れ直すことを不要とし、またプログラムで使用するメ
モリの配置もバージヨン毎に独立に設定でき自由度を増
すことを可能にすることができる。
As a result, it is not necessary to manually reinsert old data, and the memory layout used in the program can be independently set for each version, thereby increasing the degree of freedom.

【0012】[0012]

【実施例】以下、図面を参照して本発明に係る一実施例
を詳説する。 [第1実施例]図1は本発明に係る一実施例でる電子機
器の構成を示すブロツク図であり、本実施例においては
本発明を複写装置に適用する場合を例に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment according to the present invention will be described below in detail with reference to the drawings. [First Embodiment] FIG. 1 is a block diagram showing the configuration of an electronic apparatus according to one embodiment of the present invention. In this embodiment, the case where the present invention is applied to a copying apparatus will be described as an example.

【0013】図1において、1は操作部であり、複写シ
ーケンスに必要な情報を設定入力するキーおよび動作状
態を表示する表示部等を備えている。2はセンサ部であ
り、複写シーケンス実行状態を検知する各種の光セン
サ、マイクロスイツチ等で構成されている。3はマイク
ロコンピユータであり、CPU3a(中央演算素子)、
RAM3b(読み書き可能メモリ)、ROM3c(読み
出し専用メモリ)等から構成され、ROM3cに記憶さ
れた制御プログラムに基づいて各部を総括的に制御す
る。
In FIG. 1, reference numeral 1 denotes an operation unit, which is provided with keys for setting and inputting information necessary for a copy sequence, a display unit for displaying an operation state, and the like. Reference numeral 2 denotes a sensor unit, which includes various optical sensors for detecting the copy sequence execution state, a micro switch, and the like. 3 is a microcomputer, CPU3a (central processing element),
It is composed of a RAM 3b (readable / writable memory), a ROM 3c (read-only memory) and the like, and collectively controls each unit based on a control program stored in the ROM 3c.

【0014】4は不揮発性メモリであり、本実施例装置
の電源が切れている状態で記憶内容を保持するものであ
れば、任意の構成で足りる。例えば、揮発性のメモリ媒
体にバックアップ電池を接続した構成であつても、EE
PROM(電気的消去可能なプログラマブルメモリ)等
であつてもよい。5はモータおよびクラッチ等から構成
される印刷出力時の記録用紙搬送制御及び原稿読み取り
時の光学系の原稿走査制御等を行なう駆動部、6はラン
プ、ヒータ等の負荷である。これら複写機一般の構成は
公知の構成である。
Reference numeral 4 denotes a non-volatile memory, which may have any configuration as long as it retains the stored contents when the apparatus of this embodiment is powered off. For example, even if the backup battery is connected to the volatile memory medium, the EE
It may be a PROM (electrically erasable programmable memory) or the like. Reference numeral 5 denotes a drive unit configured by a motor, a clutch, and the like, for performing recording paper conveyance control at the time of printing output, document scanning control of the optical system at the time of document reading, and the like; The general structure of these copying machines is a known structure.

【0015】以上の構成よりなる本実施例装置におい
て、マイクロコンピユータ3は操作部1から複写開始が
指示入力されると、駆動部5を制御して原稿の走査、記
録用紙の搬送等の動作を行い、ランプ、ヒータ等の負荷
6により原稿を照明したり定着器等を駆動したりして複
写動作を行なう。この複写動作自体は公知であるため、
詳細説明を省略する。
In the apparatus of the present embodiment having the above-described configuration, when the microcomputer 3 receives an instruction to start copying from the operation unit 1, it controls the drive unit 5 to perform operations such as scanning of an original document and conveyance of recording paper. Then, the copy operation is performed by illuminating the original document by a load 6 such as a lamp and a heater and driving a fixing device. Since this copying operation itself is known,
Detailed description is omitted.

【0016】本実施例のマイクロコンピユータ3は、予
め不揮発性メモリ4に本実施例装置の動作タイミング、
定着器等における温度設定、プロセス条件の設定等の各
種パラメータ(制御情報)を書き込んでおき、該制御情
報を参照して本実施例装置の制御を行なう。この際、マ
イクロコンピユータ3は、このような制御情報を不揮発
性メモリ4に書き込む際に、同時に不揮発性メモリ4上
の所定のアドレスに現在動作している制御プログラムの
バージヨン情報を書き込んでおく。なお、バージヨン情
報は、以後の制御情報の更新に際して毎回書き込む必要
はなく、基本的にはプログラムが最初に制御情報を不揮
発性メモリに書き込むときに実行すればよい。しかし、
以後の制御情報の更新に際して毎回バージヨン情報を書
き込むように制御してももちろん構わない。
The microcomputer 3 of the present embodiment stores the operation timing of the device of the present embodiment in the nonvolatile memory 4 in advance,
Various parameters (control information) such as temperature setting and process condition setting in the fixing device are written, and the control of the apparatus of this embodiment is performed with reference to the control information. At this time, when the microcomputer 3 writes such control information in the non-volatile memory 4, the micro-computer 3 simultaneously writes the version information of the currently operating control program in a predetermined address in the non-volatile memory 4. The version information does not need to be written every time the control information is updated thereafter, and basically it may be executed when the program first writes the control information to the nonvolatile memory. But,
Of course, the control may be performed such that the version information is written every time the control information is updated thereafter.

【0017】複写動作時等、マイクロコンピユータ3が
不揮発性メモリ4に記憶されている制御情報にアクセス
する場合、制御情報に先立つて予め上記バージヨン情報
を読み出し、現在実行する制御プログラムのバージヨン
との比較照合を行う。この結果もし制御情報を書き込ん
だときのバージヨンと現在のバージヨンが異なると判定
された場合は、不揮発性メモリ4に記憶の旧バージヨン
の制御情報のうちで、記憶形式が異なつたものについて
は不揮発性メモリ4から旧バージヨンの記憶形式に従つ
て制御情報を読み出し、新バージヨン独自の記憶形式に
変換してワークエリア上の変数領域にストアする。
When the microcomputer 3 accesses the control information stored in the non-volatile memory 4, such as during a copying operation, the version information is read in advance prior to the control information and compared with the version of the control program currently executed. Match. As a result, if it is determined that the version when the control information is written is different from the current version, the control information of the old version stored in the non-volatile memory 4 that has a different storage format is non-volatile. The control information is read from the memory 4 according to the storage format of the old version, converted into the storage format unique to the new version, and stored in the variable area on the work area.

【0018】一方、旧バージヨンの制御情報のうちで記
憶形式が変わつてない制御変数については、読み出し後
そのままワークエリア上の当該変数領域にストアする。
こうして全ての不揮発性メモリ4上の制御情報をワーク
エリア上に正しい形式に変換してストアした後、新バー
ジヨンの記憶形式に従つて不揮発性メモリ4の上に制御
情報書き戻し、同時にバージヨン情報を現在のプログラ
ムバージヨンに更新する。
On the other hand, among the control information of the old version, the control variable whose storage format has not changed is stored in the variable area in the work area as it is after being read.
In this way, all the control information on the non-volatile memory 4 is converted into the correct format and stored in the work area, and then the control information is written back on the non-volatile memory 4 according to the storage format of the new version. Update to the current program version.

【0019】このバージヨン情報の読み出しと照合の動
作は、例えば制御プログラムの電源投入後のスタートア
ツプシーケンスで実行するように構成すればよい。しか
し、以上の例に限定されるものではなく、制御情報を読
み出す時に毎回行つても、あるいはプログラム交換時に
サービスマンが手動で指示することによりこの動作を行
わせるように構成することもできる。
The operation of reading and verifying the version information may be executed, for example, in a start-up sequence after the power of the control program is turned on. However, the present invention is not limited to the above example, and it is also possible to perform this operation every time when the control information is read out, or when a service person manually gives an instruction during the program exchange.

【0020】本実施例における以上の不揮発性メモリ4
の制御情報およびバージヨン情報の書込み・読み出し手
順の一例を図2を参照して以下に説明する。図2はこの
本実施例における以上の不揮発性メモリ4の制御情報お
よびバージヨン情報の書込み・読み出し処理を示すフロ
ーチャートである。不揮発性メモリ4に記憶されている
制御情報を読み出す場合、まずステツプS1においてバ
ージヨン情報を読み出す。次にステツプS2でステツプ
S1で読み出して取得したバージヨンと現行の制御プロ
グラムのバージヨンを比較して、制御情報が現行バージ
ヨンのプログラムによつて記憶されたものか否かの判別
を行なう。その結果もし現行バージヨンのプログラムで
記憶されていたならステツプS7に進み、そのまま制御
情報を読み出し、ステツプS6において該読み出し制御
情報に従つて以後の動作を継続する。
The above nonvolatile memory 4 in this embodiment
An example of a procedure for writing / reading the control information and the version information will be described below with reference to FIG. FIG. 2 is a flowchart showing the writing / reading processing of the control information and version information of the nonvolatile memory 4 in this embodiment. When the control information stored in the non-volatile memory 4 is read, the version information is first read in step S1. Then, in step S2, the version read out and obtained in step S1 is compared with the version of the current control program to determine whether or not the control information is stored by the program of the current version. As a result, if it is stored in the current version of the program, the process proceeds to step S7, the control information is read as it is, and the subsequent operation is continued in accordance with the read control information in step S6.

【0021】一方、ステツプS2でもし古いバージヨン
のプログラムで記憶されていたことが判明した場合に
は、ステツプS2よりステツプS3に進み、現行のバー
ジヨンと互換性の無い形式で記憶されている制御変数に
ついては古いバージヨンの形式にしたがつて読み出し、
また形式に変化のない制御変数についてはそのまま読み
出す。そしてステツプS4で全て現行バージヨンの形式
に変換して不揮発性メモリ4に書き込む。
On the other hand, if it is found in step S2 that the program was stored in the old version program, the process proceeds from step S2 to step S3, and the control variables stored in a format incompatible with the current version. About the old version format,
In addition, control variables whose format does not change are read as they are. Then, in step S4, the data is converted into the current version format and written in the non-volatile memory 4.

【0022】以後、不揮発性メモリ4へのアクセス時に
おいては記憶情報の変更が必要がなくなる。このためス
テツプS5において、バージヨン情報について現行バー
ジヨンのものに更新する。そして以後ステツプS6に進
み、得られた制御情報に従つた動作を継続する。以上説
明した様に本実施例によれば、上述した様に、制御プロ
グラムを格納するROM3cが交換され、制御プログラ
ムのバージヨンが上がつたような場合においても、上述
の制御を行うことにより、わざわざ古いデータを人手で
入れ直すことを不要とし、またプログラムで使用するメ
モリの配置もバージヨン毎に独立に設定でき、以前のバ
ージヨンのプログラムによつて記憶されていた不揮発性
メモリ4の内容を引き継いで使用することができる。
After that, it is not necessary to change the stored information when accessing the non-volatile memory 4. Therefore, in step S5, the version information is updated to that of the current version. After that, the process proceeds to step S6 to continue the operation according to the obtained control information. As described above, according to the present embodiment, even if the ROM 3c for storing the control program is exchanged and the version of the control program is increased as described above, the purpose of carrying out the above control is to bother. It is not necessary to manually replace old data, and the memory layout used by the program can be set independently for each version, and the contents of the non-volatile memory 4 stored by the previous version of the program are inherited and used. can do.

【0023】[第2実施例]以上説明した第1の実施例
においては、制御プログラム自体が不揮発性メモリ4に
記憶された制御プログラムバージヨンの照合と、不揮発
性メモリ4に記憶されていた制御情報の更新を例につい
て説明した。しかし、本発明は以上の例に限定されるも
のではなく、プログラムの更新に際して外部から制御プ
ログラムをダウンロードすることにより、物理的な交換
をすることなく制御プログラムの更新をする様に制御し
てもよい。
[Second Embodiment] In the first embodiment described above, the control program itself is collated with the control program version stored in the non-volatile memory 4 and the control information stored in the non-volatile memory 4. The update was described as an example. However, the present invention is not limited to the above example, and the control program may be updated from the outside by downloading the control program when updating the program so that the control program may be updated without physically exchanging the program. Good.

【0024】プログラムの更新に際して外部から制御プ
ログラムをダウンロードすることにより、物理的な交換
をすることなく制御プログラムの更新をする本発明に係
る第2の実施例を図3及び図4を参照して以下に説明す
る。図3は本発明に係る第2実施例の構成を示すブロツ
ク図であり、上述した図1に示す第1実施例と同様構成
には同一番号を付し詳細説明を省略する。
A second embodiment according to the present invention in which the control program is updated without physically exchanging it by downloading the control program from outside when updating the program will be described with reference to FIGS. 3 and 4. This will be described below. FIG. 3 is a block diagram showing the configuration of the second embodiment according to the present invention. The same components as those of the first embodiment shown in FIG. 1 described above are designated by the same reference numerals and detailed description thereof will be omitted.

【0025】図3において、3dは書き換え可能な読み
出し専用メモリであるフラツシユROM(FlashR
OM)(書き換え可能な読み出し専用メモリ)であり、
第1実施例と異なりプログラムの更新に際しては外部か
ら制御プログラムをダウンロードすることにより、物理
的な交換をすることなく制御プログラムの更新を行うこ
とができる。
In FIG. 3, 3d is a flash ROM (FlashR) which is a rewritable read-only memory.
OM) (rewritable read-only memory),
Unlike the first embodiment, when the program is updated, the control program is downloaded from the outside, so that the control program can be updated without physically exchanging it.

【0026】7はダウンロードするプログラムを記憶し
ているROMであり、ダウンロード動作を行うときに本
実施例装置に接続されている必要がある。しかし、通常
動作を行つている時は接続されている必要はなく、いわ
ゆるICカード状のもので構成しても良いことは勿論で
ある。以上の構成を備える第2実施例の動作を図4のフ
ローチヤートを参照して以下に説明する。
Reference numeral 7 is a ROM storing a program to be downloaded, which must be connected to the apparatus of this embodiment when performing the download operation. However, it is needless to say that they are not connected during the normal operation, and it goes without saying that they may be configured by what is called an IC card. The operation of the second embodiment having the above configuration will be described below with reference to the flow chart of FIG.

【0027】マイクロコンピユータに新しい制御プログ
ラムをダウンロードする際には、ダウンロードに先だつ
て不揮発性メモリ4の記憶内容の形式の更新を行う。即
ち、先ずステツプS11で不揮発性メモリ4に記憶され
ている制御プログラムのバージヨン情報を読み出し、ス
テツプS12で読み出したバージヨン情報と新しくダウ
ンロードする制御プログラムのバージヨンとの比較照合
を行ない、不揮発性メモリ4に制御情報を書き込んだ時
の制御プログラムと、新しくダウンロードしようとする
制御プログラムの不揮発性メモリへの記憶形式が変更さ
れているかどうかを判別する。
When a new control program is downloaded to the microcomputer, the format of the contents stored in the non-volatile memory 4 is updated prior to the download. That is, first, in step S11, the version information of the control program stored in the non-volatile memory 4 is read out, and the version information read in step S12 is compared and compared with the version of the control program to be newly downloaded. It is determined whether the storage format of the control program at the time of writing the control information and the control program to be newly downloaded in the nonvolatile memory has been changed.

【0028】この結果バージヨンが更新されるのに伴つ
て制御情報の格納形式に変更がある場合、即ち、読み出
したバージヨンの制御プログラムと記憶形式が異なつて
いる制御変数がある場合はステツプS13に進み、不揮
発性メモリ4に格納されている制御情報を一度旧バージ
ヨンの格納形式に従つて読み出す。そして続くステツプ
S14で、新たにダウンロードしようとする制御プログ
ラムの形式に変換したうえで不揮発性メモリ4に書き込
む動作を行う。
As a result, if the storage format of the control information is changed as the version is updated, that is, if there is a control variable whose storage format is different from that of the read version control program, the process proceeds to step S13. , The control information stored in the non-volatile memory 4 is once read according to the storage format of the old version. Then, in a succeeding step S14, an operation of converting into a format of a control program to be newly downloaded and writing it into the nonvolatile memory 4 is performed.

【0029】従つて以後は、不揮発性メモリ4に対する
記憶形式の変更は必要なくなる。このため続くステツプ
S15で不揮発性メモリ4に記憶されるバージヨン情報
を現行バージヨンのものに更新する。なお、この時同時
に格納するアドレスの変更も行う事ができる。そして続
くステツプS16で新しい制御プログラムを外部ROM
7より読み出してマイクロコンピユータ3内のフラツシ
ユROM3dに記憶するダウンロード処理を実行する。
そして以後処理を制御プログラムに渡し、ダウンロード
した制御プログラムに従い本実施例装置の動作を行な
う。
Therefore, after that, it is no longer necessary to change the storage format for the non-volatile memory 4. Therefore, in the subsequent step S15, the version information stored in the non-volatile memory 4 is updated to that of the current version. At this time, the address to be stored can be changed at the same time. Then, in a succeeding step S16, a new control program is stored in the external ROM.
A download process for reading the data from the memory 7 and storing it in the flash ROM 3d in the microcomputer 3 is executed.
Then, the process is passed to the control program, and the operation of the apparatus of this embodiment is performed according to the downloaded control program.

【0030】一方、ステツプS12で不揮発性メモリ4
4に制御情報を書き込んだ時の制御プログラムと、新し
くダウンロードしようとする制御プログラムの不揮発性
メモリ4への記憶形式の変更がない場合にはステツプS
16に進み、そのままプログラムをダウンロードし、通
常動作に移ることができる。以上説明したダウンロード
に先立つ動作を行うためのプログラムは、本来の制御プ
ログラムの動作時には必要がないので、外部ROM7か
らフラツシユROM3cにダウンロードしないよう構成
する事が可能であり、装置本体のROMの有効な利用が
可能となる。
On the other hand, in step S12, the nonvolatile memory 4
If there is no change in the storage format of the control program when the control information is written in 4 and the control program to be newly downloaded in the nonvolatile memory 4, step S
Proceeding to step 16, the program can be downloaded as it is and the normal operation can be performed. Since the program for performing the operation prior to the download described above is not required during the operation of the original control program, it can be configured not to download from the external ROM 7 to the flash ROM 3c, and the ROM of the apparatus main body can be effectively used. It becomes available.

【0031】また、先の説明において用いられた外部R
OMは必ずしもROMだけに限るものではなく、磁気デ
イスク装置等の記憶手段であつてもよい。更に記憶手段
だけでなく独立したマイクロコンピユータを備えた外部
装置として構成することも可能であり、サービスマンが
携帯するチェッカーなどに内蔵することもできる。 [第3実施例]上述した第1、又は第2実施例において
は、電子機器の制御プログラム側が更新されることを前
提にしていた。しかし、本発明は以上の例に限定される
ものではなく、逆に不揮発性メモリ4側を着脱可能に構
成した様な場合にも有効である。即ち、不揮発性メモリ
4がICカードなどで構成され、自由に着脱ができる場
合には、そこへ記憶された制御情報は必ずしも同じ機器
によつて読み出されるとは限らず、別の機器により読み
出す際には制御プログラムが異なつている場合がある。
このような場合においても、ICカードの装着後にその
バージヨン情報を確認することにより、記憶されている
制御情報の格納形式を把握することができ、格納された
形式にしたがつて読み出し、その制御プログラムに適合
した形式で再格納することにより違つたバージヨンの制
御プログラムで動いている他の機器により記憶された情
報を有効に活用することができる。
Also, the external R used in the above description
The OM is not necessarily limited to the ROM, but may be a storage means such as a magnetic disk device. Further, it can be configured as an external device equipped with not only a storage means but also an independent micro computer, and can also be built in a checker or the like carried by a service person. [Third Embodiment] In the above-described first or second embodiment, it is assumed that the control program side of the electronic device is updated. However, the present invention is not limited to the above example, but is also effective in the case where the nonvolatile memory 4 side is configured to be removable. That is, when the non-volatile memory 4 is composed of an IC card or the like and can be freely attached and detached, the control information stored therein is not always read by the same device, and when read by another device. The control programs may be different.
Even in such a case, the storage format of the stored control information can be grasped by checking the version information after mounting the IC card, and the control program can be read out according to the stored format. By re-storing in a format that conforms to, it is possible to effectively utilize the information stored by other devices running under the wrong version control program.

【0032】図5は以上の様に不揮発性メモリ4側を着
脱可能に構成した本発明に係る第3実施例の制御を示す
フローチヤートであり、以下、図5を参照して本発明に
係る第3実施例を説明する。第3実施例においても基本
構成は上述した各実施例と同様で足り、不揮発性メモリ
4が着脱可能なICカードであればよい。図5は本発明
には本発明に係る第3実施例における、制御プログラム
がICカードの装着を認識してから制御情報を取り扱う
流れを示すフローチャートである。
FIG. 5 is a flow chart showing the control of the third embodiment according to the present invention in which the non-volatile memory 4 side is detachable as described above, and the present invention will be described below with reference to FIG. A third embodiment will be described. Also in the third embodiment, the basic configuration is the same as that of each of the above-mentioned embodiments, and any IC card to which the nonvolatile memory 4 can be attached / detached may be used. FIG. 5 is a flow chart showing a flow of handling control information after the control program recognizes the mounting of the IC card in the third embodiment according to the present invention.

【0033】本実施例装置は、装置へのICカードの装
着を認識すると図5の処理に移行する。即ち、先ずステ
ツプS21で装着されたICカードに記憶されているバ
ージヨン情報を読み出す。次にステツプS22でステツ
プS21で読み出して取得したバージヨンと現行の制御
プログラムのバージヨンを比較して、制御情報が現行バ
ージヨンのプログラムによつて記憶されたものか否かの
判別を行なう。その結果もし現行バージヨンのプログラ
ムで記憶されていたならステツプS27に進み、そのま
ま現行の形式に従つて制御情報を読み出し、ステツプS
26において該読み出し制御情報に従つて以後の動作を
継続する。
The apparatus of this embodiment shifts to the processing of FIG. 5 when it recognizes that the IC card is attached to the apparatus. That is, first, the version information stored in the IC card mounted in step S21 is read. Next, in step S22, the version read out and obtained in step S21 is compared with the version of the current control program to determine whether the control information is stored by the program of the current version. As a result, if it is stored in the current version of the program, the process proceeds to step S27, the control information is read as it is in accordance with the current format, and step S27 is executed.
At 26, the subsequent operation is continued according to the read control information.

【0034】一方、ステツプS22でもし古いバージヨ
ンのプログラムで記憶されていたことが判明した場合に
は、ステツプS23に進み、現行のバージヨンと互換性
の無い形式で記憶されている制御変数については古いバ
ージヨンの形式にしたがつて読み出し、また形式に変化
のない制御変数についてはそのまま読み出す。そしてス
テツプS24で全て現行バージヨンの形式に変換してI
Cカードに書き込む。
On the other hand, if it is found in step S22 that the program is stored in the old version program, the process proceeds to step S23, in which the control variables stored in a format incompatible with the current version are old. It is read according to the version format, and the control variables whose format does not change are read as they are. Then, in step S24, all data is converted to the current version format and I
Write on the C card.

【0035】以後、ICカードへのアクセス時において
は記憶情報の変更が必要がなくなる。このためステツプ
S25において、バージヨン情報について現行バージヨ
ンのものに更新する。そして以後ステツプS26に進
み、得られた制御情報に従つた動作を継続する。以上の
手順を踏むことによりICカードを交換した場合にも制
御プログラム側の変更を意識することなく、記憶されて
いた制御情報を継続して使用することが可能になる。
After that, it is not necessary to change the stored information when accessing the IC card. Therefore, in step S25, the version information is updated to that of the current version. After that, the process proceeds to step S26, and the operation according to the obtained control information is continued. By following the above procedure, even when the IC card is replaced, the stored control information can be continuously used without being aware of the change on the control program side.

【0036】以上説明したように各実施例によれば、マ
イクロコンピユータが不揮発性メモリ4に制御情報とと
もに制御プログラムのバージヨン情報も書き込んでおく
ことにより、制御プログラムが交換され新しいバージヨ
ンに更新され制御情報を不揮発性メモリ4に格納する形
式が変更された場合においても、自動的に以前のバージ
ヨンの制御プログラムの用いていた格納形式に従つて制
御情報の読み出しを行い、新しいバージヨンの制御プロ
グラムで利用可能な形式に変換して再度格納することが
できる。
As described above, according to each embodiment, the microcomputer writes the control information and the version information of the control program in the nonvolatile memory 4, so that the control program is exchanged and updated to a new version. Even if the format of storing the data in the non-volatile memory 4 is changed, the control information is automatically read according to the storage format used by the previous version control program and can be used by the new version control program. It can be converted to any format and stored again.

【0037】これにより、制御プログラムの更新に際し
て従来用いていた制御情報を再度入力し直す必要がなく
なり、そのまま受け継いで動作することが可能となる。
このことは、例えばプログラムROMの交換作業に際し
て、なんら複雑な手続きを必要とせず、ただ単にプログ
ラムを変換するだけで従来とまつたく同じ設定を自動的
に行えることを意味し、作業の効率化・確実性の向上に
寄与する。また同時に制御プログラムの不揮発性メモリ
4上のメモリ割り当ても以前のバージヨンのものにとら
われることなく自由度の高いプログラム設定が可能とな
るという効果がある。
As a result, it becomes unnecessary to re-input the control information used conventionally when updating the control program, and it is possible to continue the operation without change.
This means that, for example, when exchanging program ROMs, complicated procedures are not required, and the same settings as the conventional ones can be automatically performed by simply converting the program. It contributes to the improvement of certainty. At the same time, the memory allocation of the control program on the non-volatile memory 4 is not limited to the previous version, and it is possible to set the program with a high degree of freedom.

【0038】尚、本発明は、複数の機器から構成される
システムに適用しても1つの機器から成る装置に適用し
ても良い。また、本発明は、システム或は装置にプログ
ラムを供給することによつて達成される場合にも適用で
きることはいうまでもない。
The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of a single device. Further, it goes without saying that the present invention can be applied to the case where it is achieved by supplying a program to a system or an apparatus.

【0039】[0039]

【発明の効果】以上説明したように本発明によれば、マ
イクロコンピユータが制御情報を不揮発性記憶手段に書
き込む際に、併せて現在のプログラムのバージヨン情報
を同時に書き込んでおき、プログラムが更新された場合
において、当該バージヨン情報をアクセスしその不揮発
性記憶手段に保存されているデータの形式について知る
ことにより、プログラムを更新した場合でも新たに不揮
発性メモリに制御情報を記憶し直す事を不要とし、自動
的に新しいバージヨンの形式にして適切なアドレスに記
憶し直すことが可能となる。
As described above, according to the present invention, when the microcomputer writes the control information in the non-volatile storage means, the version information of the current program is simultaneously written, and the program is updated. In this case, by accessing the version information and knowing the format of the data stored in the nonvolatile storage means, it becomes unnecessary to store the control information again in the nonvolatile memory even when the program is updated, It is possible to automatically store in a new version format and store it at an appropriate address.

【0040】これにより、わざわざ古いデータを人手で
入れ直すことを不要とし、またプログラムで使用するメ
モリの配置もバージヨン毎に独立に設定でき自由度を増
すことを可能にすることができる。
As a result, it is not necessary to manually reinsert old data, and it is possible to increase the degree of freedom by independently setting the arrangement of the memory used by the program for each version.

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

【図1】本発明に係る一実施例の構成を説明するブロツ
ク図である。
FIG. 1 is a block diagram illustrating the configuration of an embodiment according to the present invention.

【図2】本実施例における不揮発性メモリのアクセスの
ための所定手順の一例を説明するフローチャートであ
る。
FIG. 2 is a flowchart illustrating an example of a predetermined procedure for accessing a nonvolatile memory according to the present exemplary embodiment.

【図3】本発明に係る第2の実施例の構成を説明するブ
ロツク図である。
FIG. 3 is a block diagram illustrating a configuration of a second exemplary embodiment according to the present invention.

【図4】第2実施例における制御プログラムのダウンロ
ードのための所定手順の一例を説明するフローチャート
である。
FIG. 4 is a flowchart illustrating an example of a predetermined procedure for downloading a control program in the second embodiment.

【図5】本発明に係る第3の実施例のICカードを持つ
電子機器におけるICカードの記憶内容にアクセスする
ための所定手順の一例を説明するフローチャートであ
る。
FIG. 5 is a flowchart illustrating an example of a predetermined procedure for accessing stored contents of an IC card in an electronic device having an IC card according to a third embodiment of the present invention.

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

1 操作部 2 センサ部 3 マイクロコンピユータ 3a CPU 3b RAM 3c ROM 3d フラツシユROM 4 不揮発性メモリ 5 駆動部 6 負荷 7 外部ROM 1 Operation Section 2 Sensor Section 3 Micro Computer 3a CPU 3b RAM 3c ROM 3d Flash ROM 4 Nonvolatile Memory 5 Drive Section 6 Load 7 External ROM

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 制御プログラムに基づいて各部を制御す
るマイクロコンピユータと、該マイクロコンピユータが
前記制御プログラムを実行する際に必要な制御情報を記
憶する不揮発性記憶手段とを備えた電子機器において、 前記制御プログラムのバージョン情報を前記不揮発性記
憶手段に書き込む書き込み手段と、 該書き込み手段に書き込まれている前記バージヨン情報
を読み出し現在の制御プログラムのバージヨンと比較す
る比較手段と、 該比較手段が現在の制御プログラムのバージヨンが前記
不揮発性記憶手段に書き込まれていたバージヨン情報よ
りも新しいバージヨンと判別した場合には前記制御情報
を旧バージヨンの格納方式に従つて読み出すとともに現
行バージヨンの制御プログラムで利用可能な形式に変換
して前記不揮発性記憶手段に再格納するとともに該不揮
発性記憶手段のバージヨン情報を新バージヨンに更新す
る更新手段とを備えることを特徴とする電子機器。
1. An electronic device comprising: a micro-computer for controlling each part based on a control program; and a non-volatile storage means for storing control information required when the micro-computer executes the control program. Writing means for writing the version information of the control program into the non-volatile storage means, comparing means for reading out the version information written in the writing means and comparing it with the version of the current control program, and the comparing means for the current control. When it is determined that the version of the program is newer than the version information written in the non-volatile storage means, the control information is read out according to the storage method of the old version and can be used by the control program of the current version. Converted to the non-volatile memory And an updating unit for re-storing the version information in the non-volatile storage unit to a new version.
JP4111747A 1992-04-30 1992-04-30 Electronic equipment Withdrawn JPH05307471A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4111747A JPH05307471A (en) 1992-04-30 1992-04-30 Electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4111747A JPH05307471A (en) 1992-04-30 1992-04-30 Electronic equipment

Publications (1)

Publication Number Publication Date
JPH05307471A true JPH05307471A (en) 1993-11-19

Family

ID=14569164

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4111747A Withdrawn JPH05307471A (en) 1992-04-30 1992-04-30 Electronic equipment

Country Status (1)

Country Link
JP (1) JPH05307471A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006268586A (en) * 2005-03-24 2006-10-05 Fuji Xerox Co Ltd Processing mode designation information conversion program and method
KR100739105B1 (en) * 2001-08-09 2007-07-13 삼성전자주식회사 Apparatus and method for initialization of nonvolatile memory
JP2013116044A (en) * 2011-11-25 2013-06-10 Ls Industrial Systems Co Ltd Electric vehicle and program application method for the same
JP2013130923A (en) * 2011-12-20 2013-07-04 Canon Inc Image processor, server device, information processing method, and program

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100739105B1 (en) * 2001-08-09 2007-07-13 삼성전자주식회사 Apparatus and method for initialization of nonvolatile memory
JP2006268586A (en) * 2005-03-24 2006-10-05 Fuji Xerox Co Ltd Processing mode designation information conversion program and method
JP2013116044A (en) * 2011-11-25 2013-06-10 Ls Industrial Systems Co Ltd Electric vehicle and program application method for the same
US9090166B2 (en) 2011-11-25 2015-07-28 Lsis Co., Ltd. Method of managing program for electric vehicle
JP2013130923A (en) * 2011-12-20 2013-07-04 Canon Inc Image processor, server device, information processing method, and program

Similar Documents

Publication Publication Date Title
US20020002652A1 (en) Method of rewriting program in flash microcomputer
US5933595A (en) Computer apparatus having electrically rewritable nonvolatile memory, and nonvolatile semiconductor memory
KR20050079835A (en) Method for updating firmware in embedded controller and medium recorded update firmware
JP4784100B2 (en) Processing device and firmware download method thereof.
KR100425229B1 (en) Microcomputer and method for rewriting data on flash memory
JPH05307471A (en) Electronic equipment
JP2000163268A (en) Computer
JPH07191841A (en) Program updating method for computer
KR100310486B1 (en) Microcumputer
JP2001117766A (en) Information processor with patch function of mask rom
JP2004341783A (en) Data storage method and data storage device
JP2007069514A (en) Ink-jet recording device
JP2001344156A (en) Device with flash memory and data rewriting method
JPH08305561A (en) Method and device for down-loading firmware
JP2002007152A (en) Download method and download device
JP2002032238A (en) Program rewritable computer interface device for stencil printer and program rewriting method to be used for the same
JP2000263897A (en) Image-forming apparatus and method for updating control program of image-forming apparatus
JPH1011277A (en) Computer device with electrically rewritable nonvolatile memory and nonvolatile semiconductor memory
JP3572861B2 (en) Printing equipment
JP2004341781A (en) Method and device for updating firmware, and flash rom
JP2004355310A (en) Image processing device
JPH01112424A (en) Electronic equipment
JP4575112B2 (en) Firmware rewriting method, disk drive device, and information processing system
JP2004062339A (en) Data processor and data processing method
JP2000207180A (en) Information processor and program rewriting method

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990706