[go: up one dir, main page]

JPH06195210A - Program exchange system - Google Patents

Program exchange system

Info

Publication number
JPH06195210A
JPH06195210A JP34293092A JP34293092A JPH06195210A JP H06195210 A JPH06195210 A JP H06195210A JP 34293092 A JP34293092 A JP 34293092A JP 34293092 A JP34293092 A JP 34293092A JP H06195210 A JPH06195210 A JP H06195210A
Authority
JP
Japan
Prior art keywords
program
storage device
volatile storage
external communication
update
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
JP34293092A
Other languages
Japanese (ja)
Inventor
Yasukazu Miyazaki
靖一 宮崎
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.)
Panasonic Electric Works Co Ltd
Original Assignee
Matsushita Electric Works Ltd
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 Matsushita Electric Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP34293092A priority Critical patent/JPH06195210A/en
Publication of JPH06195210A publication Critical patent/JPH06195210A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To provide a program exchange system updating the program of a non-volatile storage device to a new program without reducing the power of a controller and without physically exchanging the non-volatile storage device through the use of a jig and the like. CONSTITUTION:A main controller 1 for executing the program stored in a storage device, an external communication equipment 2 which can read the update program from an external communication terminal 5, the non-volatile storage device 3 whose storage content cannot be deleted even if power is cut and which is rewritable, a non-volatile storage device 4 whose storage content is not deleted and an inspection device 6 inspecting the presence or absence of the update request of the program are provided. When the update request of the program is given, the program which is read from the external communication equipment 2 into the volatile storage device 4 is stored in the non-volatile storage device 3.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は書換え可能な不揮発性記
憶装置と揮発性記憶装置を有する制御装置のプログラム
交換方式に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program exchange system for a control device having a rewritable nonvolatile memory device and a volatile memory device.

【0002】[0002]

【従来の技術】図2は従来の制御装置の概略構成を示し
ている。図中、7は不揮発性記憶装置、8は揮発性記憶
装置、9はプログラム、10は主制御装置である。主制
御装置10は不揮発性記憶装置7に書き込まれたプログ
ラム9を不揮発性記憶装置7から読み出して逐次実行す
る。不揮発性記憶装置7に書き込まれたプログラム9を
更新する場合は、電源を切り、以前の不揮発性記憶装置
7を治具等を使って抜き取り、新しいプログラムを書き
込まれた別の不揮発性記憶装置7を物理的に交換する。
2. Description of the Related Art FIG. 2 shows a schematic configuration of a conventional control device. In the figure, 7 is a non-volatile storage device, 8 is a volatile storage device, 9 is a program, and 10 is a main control device. The main controller 10 reads the program 9 written in the non-volatile storage device 7 from the non-volatile storage device 7 and sequentially executes it. When updating the program 9 written in the non-volatile memory device 7, the power is turned off, the previous non-volatile memory device 7 is pulled out using a jig or the like, and another non-volatile memory device 7 in which the new program is written is removed. Physically replace.

【0003】[0003]

【発明が解決しようとする課題】上述のように、従来の
制御装置では、不揮発性記憶装置7に書き込まれたプロ
グラム9を更新する場合には、治具等を使用して、不揮
発性記憶装置7を抜き取り、物理的に差し替えを行う必
要があった。このため、制御装置のカバーを開ける必要
があり、作業の工数が増えるという問題があった。ま
た、不揮発性記憶装置7を交換する場合には、制御装置
の電源を落さなければならなかった。このため、制御装
置の機能が一時的に中断するという問題があった。
As described above, in the conventional control device, when updating the program 9 written in the nonvolatile storage device 7, a jig or the like is used to update the nonvolatile storage device. It was necessary to remove 7 and physically replace it. Therefore, there is a problem in that it is necessary to open the cover of the control device, which increases the number of man-hours for the work. Further, when replacing the non-volatile storage device 7, the power supply of the control device had to be turned off. Therefore, there is a problem that the function of the control device is temporarily interrupted.

【0004】本発明はこのような点に鑑みてなされたも
のであり、その目的とするところは、制御装置の電源を
落とすことなく、かつ、治具等を使用して不揮発性記憶
装置を物理的に差し替えることなく、不揮発性記憶装置
のプログラムを新しいプログラムに更新することを可能
としたプログラム交換方式を提供することにある。
The present invention has been made in view of the above circumstances, and an object of the present invention is to physically configure a nonvolatile memory device by using a jig or the like without turning off the power source of the control device. The purpose of the present invention is to provide a program exchanging method capable of updating a program of a non-volatile memory device with a new program without replacing the program.

【0005】[0005]

【課題を解決するための手段】本発明のプログラム交換
方式にあっては、上記の課題を解決するために、図1に
示すように、記憶装置に記憶されたプログラムを実行す
るための主制御装置1と、外部通信端末5から更新用プ
ログラムを読み込み可能な外部通信装置2と、電源を切
っても記憶内容が消えない書換え可能な不揮発性記憶装
置3と、電源を切ると記憶内容が消える揮発性記憶装置
4と、プログラムの更新要求の有無を検査する検査装置
6とを備え、プログラムの更新要求が有ると、外部通信
装置2から揮発性記憶装置4に読み込んだプログラムを
不揮発性記憶装置3に格納するように構成したことを特
徴とするものである。
In the program exchange system of the present invention, in order to solve the above problems, as shown in FIG. 1, a main control for executing a program stored in a storage device. The device 1, the external communication device 2 that can read the update program from the external communication terminal 5, the rewritable nonvolatile storage device 3 that does not lose the stored contents even when the power is turned off, and the stored contents that disappears when the power is turned off. A volatile storage device 4 and an inspection device 6 for inspecting the presence / absence of a program update request are provided. When there is a program update request, the program read from the external communication device 2 into the volatile storage device 4 is stored in the nonvolatile storage device. It is characterized in that it is configured to be stored in No. 3.

【0006】[0006]

【作用】図1に示す構成によれば、書換え可能な不揮発
性記憶装置3の初期設定がなされていない場合又はプロ
グラムの更新要求がある場合を検査装置6が検出する
と、主制御装置1は機器の電源を落とさずに外部通信装
置2を介して新しいプログラムを格納した外部通信端末
5に更新用プログラムを要求する。更新用プログラムは
一度揮発性記憶装置4に読み込ませる。揮発性記憶装置
4に一度読み込ませる理由は、更新中に電源停止が起き
ても更新前のプログラムが不揮発性記憶装置3に残って
いることにより、機器の動作を損なわせないためであ
る。プログラムの読み込みを完了した後、書換え可能な
不揮発性記憶装置3に新しいプログラムを書き込み、次
回からは新しいプログラムを実行する。実行するときに
は、不揮発性記憶装置3に圧縮格納されているプログラ
ムを一度揮発性記憶装置4に展開し、プログラムを実行
するものである。
According to the configuration shown in FIG. 1, when the inspection device 6 detects that the rewritable nonvolatile storage device 3 has not been initialized or that there is a program update request, the main control device 1 will operate as a device. The update program is requested to the external communication terminal 5 storing the new program through the external communication device 2 without turning off the power of the. The update program is once read into the volatile storage device 4. The reason why the data is read once into the volatile storage device 4 is that the operation of the device is not impaired because the program before the update remains in the non-volatile storage device 3 even if the power supply is stopped during the update. After the reading of the program is completed, the new program is written in the rewritable nonvolatile storage device 3, and the new program is executed from the next time. When executing, the program compressed and stored in the non-volatile storage device 3 is once expanded in the volatile storage device 4 and the program is executed.

【0007】[0007]

【実施例】図3は本発明の一実施例のブロック図であ
る。この実施例では、主制御装置としてのCPU20
と、外部通信装置としてのRS232Cインターフェイ
ス13と、不揮発性記憶装置としてのEEPROM11
と、揮発性記憶装置としてのDRAM12と、検査装置
としての更新要求スイッチ21とを備えている。EEP
ROM11は、起動プログラム16を格納するエリア1
7と、プログラムを格納するエリア18を備えている。
また、DRAM12はプログラムを展開するためのエリ
ア19を備えている。制御装置の電源を投入すると、起
動プログラム16が動作を開始する。更新要求スイッチ
21が操作されていない場合には、EEPROM11の
ソフトウェアがチェックされる。EEPROM11のソ
フトウェアのチェック結果に問題が無ければ、エリア1
8の圧縮されたプログラムをDRAM12のプログラム
格納用のエリア19に展開し、CPU20が実行する。
FIG. 3 is a block diagram of an embodiment of the present invention. In this embodiment, the CPU 20 as the main controller
And an RS232C interface 13 as an external communication device and an EEPROM 11 as a non-volatile storage device.
And a DRAM 12 as a volatile storage device and an update request switch 21 as an inspection device. EEP
ROM 11 is an area 1 for storing the boot program 16.
7 and an area 18 for storing the program.
The DRAM 12 also has an area 19 for developing a program. When the power of the control device is turned on, the startup program 16 starts operating. When the update request switch 21 is not operated, the software of the EEPROM 11 is checked. If there is no problem in the software check result of EEPROM 11, area 1
The compressed program 8 is expanded in the program storage area 19 of the DRAM 12 and executed by the CPU 20.

【0008】次に、新しい更新用プログラム15に更新
する場合には、更新要求スイッチ21を操作する。更新
要求スイッチ21は、例えば、CPU20の入力ポート
を更新要求が無い場合とは異なる状態に設定すると共
に、CPU20のリセット端子に強制的にリセット信号
を与えるためのスイッチである。この更新要求スイッチ
21の操作によりCPU20がリセットされて、再び起
動プログラム16が動作を開始するが、CPU20の入
力ポートの状態がパワーオンリセット時とは異なるた
め、プログラム更新のための処理を実行する。すなわ
ち、RS232Cインターフェイス13を介して外部通
信端末14の内部メモリのエリア22に格納された更新
用プログラム15を一度DRAM12のエリア19に読
み込ませる。そして、この更新用プログラム15を所定
の手順で圧縮し、EEPROM11内のエリア18に格
納し、プログラムの更新が完了する。その後、DRAM
12のエリア19内のプログラムの実行を再開すれば、
電源を切ることなく、新しい更新用プログラム15が実
行されることになる。
Next, when updating to the new update program 15, the update request switch 21 is operated. The update request switch 21 is, for example, a switch for setting the input port of the CPU 20 to a state different from that when there is no update request and forcibly giving a reset signal to the reset terminal of the CPU 20. The CPU 20 is reset by the operation of the update request switch 21 and the startup program 16 starts to operate again. However, since the state of the input port of the CPU 20 is different from that at the time of power-on reset, the processing for updating the program is executed. . That is, the update program 15 stored in the area 22 of the internal memory of the external communication terminal 14 is once read into the area 19 of the DRAM 12 via the RS232C interface 13. Then, the update program 15 is compressed in a predetermined procedure and stored in the area 18 in the EEPROM 11, and the update of the program is completed. Then DRAM
If the execution of the program in the area 19 of 12 is restarted,
The new update program 15 will be executed without turning off the power.

【0009】[0009]

【発明の効果】本発明によれば、従来は治具等を用いた
物理的交換を必要としていた不揮発性記憶装置のプログ
ラムを、機器の電源を切ることなく、また、不揮発性記
憶装置の差し替えを行うことなく、新しい更新用プログ
ラムに交換できるという利点がある。
According to the present invention, a program for a non-volatile memory device, which has conventionally required physical replacement using a jig or the like, can be replaced without turning off the power to the device. There is an advantage that the program can be replaced with a new update program without performing.

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

【図1】本発明の基本的な構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing a basic configuration of the present invention.

【図2】従来例の概略構成を示すブロック図である。FIG. 2 is a block diagram showing a schematic configuration of a conventional example.

【図3】本発明の一実施例のブロック図である。FIG. 3 is a block diagram of an embodiment of the present invention.

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

1 主制御装置 2 外部通信装置 3 不揮発性記憶装置 4 揮発性記憶装置 5 外部通信端末 6 検査装置 1 main control device 2 external communication device 3 non-volatile storage device 4 volatile storage device 5 external communication terminal 6 inspection device

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 記憶装置に記憶されたプログラムを実
行するための主制御装置と、外部通信端末から更新用プ
ログラムを読み込み可能な外部通信装置と、電源を切っ
ても記憶内容が消えない書換え可能な不揮発性記憶装置
と、電源を切ると記憶内容が消える揮発性記憶装置と、
プログラムの更新要求の有無を検査する検査装置とを備
え、プログラムの更新要求が有ると、外部通信装置から
揮発性記憶装置に読み込んだプログラムを不揮発性記憶
装置に格納するように構成したことを特徴とするプログ
ラム交換方式。
1. A main control device for executing a program stored in a storage device, an external communication device that can read an update program from an external communication terminal, and rewritable data that does not disappear even if the power is turned off. A non-volatile memory device and a volatile memory device that loses its memory contents when the power is turned off.
An inspection device for inspecting the presence or absence of a program update request is provided, and when the program update request is made, the program read from the external communication device to the volatile storage device is stored in the nonvolatile storage device. And program exchange method.
JP34293092A 1992-12-22 1992-12-22 Program exchange system Pending JPH06195210A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34293092A JPH06195210A (en) 1992-12-22 1992-12-22 Program exchange system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34293092A JPH06195210A (en) 1992-12-22 1992-12-22 Program exchange system

Publications (1)

Publication Number Publication Date
JPH06195210A true JPH06195210A (en) 1994-07-15

Family

ID=18357619

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34293092A Pending JPH06195210A (en) 1992-12-22 1992-12-22 Program exchange system

Country Status (1)

Country Link
JP (1) JPH06195210A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009259266A (en) * 2009-07-14 2009-11-05 Yamaha Corp Communication line connection device and version upgrade method for firmware of the same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009259266A (en) * 2009-07-14 2009-11-05 Yamaha Corp Communication line connection device and version upgrade method for firmware of the same

Similar Documents

Publication Publication Date Title
KR100415371B1 (en) Computer
JP3886539B2 (en) How to load the operating system
JP3830867B2 (en) Single-chip microcomputer and its boot area switching method
JP2000020178A (en) Electronic controller
JPH06195210A (en) Program exchange system
US20020112115A1 (en) Data processing device
JP2002175193A (en) Device and method for rewriting program
JP2000235483A (en) Information processor
JP2008059339A (en) Controller
JPH0784894A (en) Method for writing nonvolatile memory
JP2004287712A (en) Electronic device
JP2003122590A (en) Program rewriting method and electronic apparatus
JP2005128613A (en) Image forming device
JP2003114831A (en) Portable electronic device
US7596717B2 (en) Microcomputer and debugging method
JP2003242046A (en) Information processor, and operational method and program for information processor
JPH11338690A (en) Flash memory, firmware use system device and firmware rewriting method
JPH06139064A (en) Electronic device bug countermeasure device
KR20040018624A (en) Write Debugging Method In Flash Memory
JPH02125303A (en) Programmable controller
JP2005078336A (en) Image forming apparatus and program rewriting method for image forming apparatus
JPH08194622A (en) Program start method using memory card
JP3133710B2 (en) Microcomputer evaluation device
KR20000000888A (en) Memory program changing and reading method
JP2000284958A (en) Information processing device and information storage medium