JP2001022571A - Electronic equipment and rewriting method for control program of the equipment - Google Patents

Electronic equipment and rewriting method for control program of the equipment

Info

Publication number
JP2001022571A
JP2001022571A JP11196146A JP19614699A JP2001022571A JP 2001022571 A JP2001022571 A JP 2001022571A JP 11196146 A JP11196146 A JP 11196146A JP 19614699 A JP19614699 A JP 19614699A JP 2001022571 A JP2001022571 A JP 2001022571A
Authority
JP
Japan
Prior art keywords
program
transfer
electronic device
storage means
control program
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
JP11196146A
Other languages
Japanese (ja)
Inventor
Kazuo Nakano
一男 中野
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.)
Riso Kagaku Corp
Original Assignee
Riso Kagaku 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 Riso Kagaku Corp filed Critical Riso Kagaku Corp
Priority to JP11196146A priority Critical patent/JP2001022571A/en
Publication of JP2001022571A publication Critical patent/JP2001022571A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To easily rewrite a control program to a nonvolatile memory which is fixed on a printed board and cannot be detached from the board. SOLUTION: A control program is stored in a memory 3 fixed on a printed board 10, and a CPU 1 start its operation to execute the control program. When the memory 3 is rewritten, a mounting base board 14 is mounted on an extension connector 12 of the board 10. At the same time, an address conversion means 7 mounted on the board 10 detects a prescribed potential via the mounting of the board 14 and switches the start address of the CPU 1 to a storage means 15 of the board 14. Then the CPU 1 starts a transfer execution program of the means 15 and transfers the object program to the memory 3 to rewrite the contents of the memory 3.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、電源の非供給時に
おいて格納内容を保持でき書き換え可能なメモリに格納
される制御プログラムの実行により起動する電子機器に
用いられ、特にこのメモリに格納される制御プログラム
を容易に書き換えることができるデータ書き換え装置及
び方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention is used in an electronic device which is started by executing a control program stored in a rewritable memory which can hold stored contents when power is not supplied, and is particularly stored in this memory. The present invention relates to a data rewriting device and method capable of easily rewriting a control program.

【0002】[0002]

【従来の技術】CPUを備えた電子機器は、電源投入に
よって所定の開始アドレス「0H」番地から制御プログ
ラムを読み込み実行するようになっている。この制御プ
ログラムは、CPUの制御動作用としてのベクタ(例え
ば、CPU内部のレジスタ使用時における退避先のアド
レス指定や、CPUエラー時の行き先)を含み、一連の
処理実行後に他のアドレスに移行して電子機器動作用の
所定のプログラムが実行開始されるようになっている。
2. Description of the Related Art An electronic apparatus equipped with a CPU reads a control program from a predetermined start address "0H" when power is turned on, and executes the control program. This control program includes a vector for the control operation of the CPU (for example, an address of a save destination when a register inside the CPU is used or a destination when a CPU error occurs), and shifts to another address after executing a series of processing. Thus, a predetermined program for operating the electronic device is started to be executed.

【0003】上記制御プログラムは、一般的に保守等の
ために書き換え、及び脱着可能な不揮発性メモリ(例え
ばEEPROM,フラッシュROM,FRAM等)に格
納されるようになっている。ここで、不揮発性メモリは
電子機器の電源がオフになっても、制御プログラムの内
容を保持する必要があるため用いられる。なお、不揮発
性メモリとしてSRAM等を電池等でバックアップする
構成も含むことができる。
The above control program is generally rewritten for maintenance or the like, and is stored in a removable non-volatile memory (for example, EEPROM, flash ROM, FRAM, etc.). Here, the nonvolatile memory is used because it is necessary to retain the contents of the control program even when the power of the electronic device is turned off. Note that a configuration in which an SRAM or the like is backed up by a battery or the like as a nonvolatile memory can also be included.

【0004】[0004]

【発明が解決しようとする課題】上記制御プログラム
は、基板から着脱可能な不揮発性メモリに格納される構
成であれば、この不揮発性メモリを新たなものと交換す
れば、新たなプログラムで装置を起動させることができ
る。しかしながら、近年、不揮発性メモリ自体の小型化
に伴いプリント基板に表面実装(SMT:Surface moun
t technology)される構成が多用化されてきている。こ
のSMTでは、不揮発性メモリに制御プログラムを書き
込んだ後、プリント基板に半田付けで表面実装される。
このように、プリント基板に固定された不揮発性メモリ
では物理的な着脱が不可能となり、修理や制御プログラ
ムのバージョンアップ、バグ修正が簡単に行えなくな
る。
If the above-mentioned control program is stored in a non-volatile memory detachable from the board, the non-volatile memory can be replaced with a new one, and the device can be replaced by a new program. Can be activated. However, in recent years, with the miniaturization of the nonvolatile memory itself, surface mounting on a printed circuit board (SMT: Surface mounting)
t technology) has been increasingly used. In this SMT, after a control program is written in a nonvolatile memory, it is surface-mounted on a printed circuit board by soldering.
As described above, the nonvolatile memory fixed to the printed circuit board cannot physically be attached or detached, so that repair, version upgrade of the control program, and bug correction cannot be easily performed.

【0005】これに対応して、JTAG(Joint Test Ac
tion Group) の通信プロトコルに従い、プリント基板に
固定された不揮発性メモリの内容を書き換える構成のも
のがあるが、この方式による書き換えでは、シリアル転
送であるため不揮発性メモリへの書き込みに時間がかか
り、又、書き込みのためにコンピュータ装置が必要で手
間がかかった。
In response to this, JTAG (Joint Test Ac
The configuration of the nonvolatile memory fixed to the printed circuit board is rewritten in accordance with the communication protocol of the Communication Group), but rewriting by this method takes a long time to write to the non-volatile memory because of serial transfer. Further, a computer device is required for writing, which is troublesome.

【0006】本発明は、上記課題を解決するためになさ
れたものであり、プリント基板に固定され着脱不可能な
不揮発性メモリに対して制御プログラムを容易に書き換
え可能なデータ書き換え装置及び方法を提供することを
目的としている。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and provides a data rewriting apparatus and method which can easily rewrite a control program in a non-removable nonvolatile memory fixed to a printed circuit board. It is intended to be.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するた
め、本発明の書き換え可能なメモリを有する電子機器に
用いられるデータ書き換え装置は、請求項1記載のよう
に電源投入時に、所定の開始アドレスからデータを読み
出して起動するプロセッサと、前記開始アドレスを先頭
としたアドレス空間に電子機器用の制御プログラムが格
納され、電源の非供給時においても格納されたデータを
保持する書き換え可能な内部記憶手段とを有する電子機
器において、前記制御プログラムを書き換えるための転
送実行用プログラム及び転送対象プログラムが格納され
た外部記憶手段を実装した媒体が前記電子機器に着脱自
在であって、前記媒体が前記電子機器に装着されている
ときに該機器の電源が投入されると、前記プロセッサが
前記転送実行用プログラムの先頭アドレスを前記開始ア
ドレスだと見做すように、前記両記憶手段と前記開始ア
ドレスとの対応関係を切り替えるアドレス変換手段を有
することを特徴とする。
According to a first aspect of the present invention, there is provided a data rewriting device for use in an electronic device having a rewritable memory, the method comprising the steps of: A processor for reading and starting data from the memory, and a rewritable internal storage means for storing a control program for an electronic device in an address space starting from the start address and holding the stored data even when power is not supplied And a medium on which an external storage means storing a transfer execution program for rewriting the control program and a transfer target program is detachable from the electronic device, and the medium is the electronic device. When the power of the device is turned on when the device is mounted on the device, the processor executes the transfer execution process. The start address of the ram so as to be regarded that it is the start address, and having an address conversion means for switching the correspondence between the two storage means and the start address.

【0008】また、請求項2記載のように、前記プロセ
ッサのバスに接続され前記媒体が着脱される拡張コネク
タを有する構成とすることができる。
[0008] According to a second aspect of the present invention, there may be provided a configuration having an extension connector which is connected to the bus of the processor and to which the medium is attached and detached.

【0009】また、請求項3記載のように、前記媒体に
は、前記拡張コネクタへの装着時に前記アドレス変換手
段に所定の電位を供給する電位供給手段が設けられ、前
記アドレス変換手段は、前記電位供給手段からの所定電
位の供給に基づき、前記対応関係を切り替える構成とす
ることができる。
According to a third aspect of the present invention, the medium is provided with a potential supply means for supplying a predetermined potential to the address conversion means when the medium is attached to the extension connector, and the address conversion means comprises The correspondence may be switched based on the supply of a predetermined potential from a potential supply unit.

【0010】また、請求項4記載のように、前記転送実
行用プログラムは、前記内部記憶手段に対する前記転送
対象プログラムの転送の正常終了時に、所定のアドレス
に該転送対象プログラムの管理番号を書き込む構成とし
てもよい。
According to a fourth aspect of the present invention, the transfer execution program writes the management number of the transfer target program to a predetermined address when the transfer of the transfer target program to the internal storage means ends normally. It may be.

【0011】本発明の方法は、請求項5記載のように、
電子機器制御用の制御プログラムが格納され、電源の非
供給時においても格納されたデータを保持する内部記憶
手段を有する電子機器に用いられるデータ書き換え方法
であって、予め、前記電子機器のプロセッサのバスに、
転送実行用プログラム及び転送対象プログラムが記憶さ
れた外部記憶手段を実装した媒体を装着し、該機器の電
源投入時に、該媒体の装着に基づき、前記プロセッサが
前記転送実行用プログラムの先頭アドレスを前記開始ア
ドレスだと見做すように、前記両記憶手段と前記開始ア
ドレスとの対応関係を切り替え、前記転送実行用プログ
ラムを実行して前記転送対象プログラムを前記内部記憶
媒体に転送させることにより、前記内部記憶手段の制御
プログラムを書き換えることを特徴とする。
[0011] The method according to the present invention comprises:
A control program for controlling an electronic device is a data rewriting method used for an electronic device having an internal storage unit that retains stored data even when power is not supplied. On the bus,
A medium mounted with an external storage means in which a transfer execution program and a transfer target program are stored is mounted, and when the device is powered on, the processor sets the start address of the transfer execution program based on the mounting of the medium. By switching the correspondence between the two storage means and the start address so as to be regarded as the start address, executing the transfer execution program and transferring the transfer target program to the internal storage medium, It is characterized in that the control program of the internal storage means is rewritten.

【0012】上記構成によれば、制御基板10上に設け
られたメモリ3に格納された制御プログラムは、拡張コ
ネクタ12部分に実装基板14を装着することによって
書き換えることができる。制御基板10上のアドレス変
換手段7は、実装基板14の装着により所定電位を検出
すると、プロセッサ1の開始アドレスをメモリ3ではな
く、実装基板14上の記憶手段15に切り替える。プロ
セッサ1は、記憶手段15の転送実行用プログラムから
起動し、転送対象プログラムをメモリ3に転送させるこ
とにより、データを書き換える。
According to the above configuration, the control program stored in the memory 3 provided on the control board 10 can be rewritten by mounting the mounting board 14 on the extension connector 12. When detecting a predetermined potential by mounting the mounting board 14, the address conversion means 7 on the control board 10 switches the start address of the processor 1 to the storage means 15 on the mounting board 14 instead of the memory 3. The processor 1 starts up from the transfer execution program in the storage unit 15 and rewrites the data by causing the transfer target program to be transferred to the memory 3.

【0013】[0013]

【発明の実施の形態】図1は、本発明のデータ書き換え
装置が適用される電子機器の全体を示す構成図である。
この装置は、プロセッサ(以下、CPUと称する)1に
より制御される機器全般に適用することができる。例え
ば、コンピュータゲーム機、コンピュータと画像形成装
置との間に介在するプリントコントローラ等が挙げられ
る。
FIG. 1 is a block diagram showing the entirety of an electronic apparatus to which a data rewriting device according to the present invention is applied.
This device can be applied to all devices controlled by a processor (hereinafter, referred to as a CPU) 1. For example, a computer game machine, a print controller interposed between a computer and an image forming apparatus, and the like can be given.

【0014】CPU1は、バス2を介して各部に接続さ
れている。電源の非供給時においても格納内容を保持す
る書き換え可能なメモリ(以下、便宜上不揮発性メモリ
と称する)3には、機器の電源投入時にCPU1が初め
に読み込む制御プログラムが格納されている。この実施
形態において、この不揮発性メモリはフラッシュROM
で構成されている。
The CPU 1 is connected to each section via a bus 2. A rewritable memory (hereinafter referred to as a non-volatile memory for convenience) 3 that retains the stored contents even when power is not supplied stores a control program that is read first by the CPU 1 when the device is powered on. In this embodiment, the nonvolatile memory is a flash ROM
It is composed of

【0015】SRAM等のメモリ4は、CPU1の処理
実行時のデータ等の格納用として用いられる。コントロ
ール回路5は、各部間のデータ送受のタイミングを調整
する。デコーダ6は、CPU1出力のアドレスをデコー
ドして各部に供給する。
A memory 4 such as an SRAM is used for storing data and the like when the CPU 1 executes processing. The control circuit 5 adjusts the timing of data transmission and reception between the units. The decoder 6 decodes the address of the output of the CPU 1 and supplies it to each unit.

【0016】アドレス変換回路7は、電子機器の電源投
入時におけるCPU1の読み込みアドレスを不揮発性メ
モリ3、あるいは後述する外部の記憶手段15のいずれ
かに選択的に切り替える。ここで上記CPU1〜アドレ
ス変換回路7の各部は、電子機器内部の制御基板10上
に搭載されている。この制御基板10には、拡張用コネ
クタ12が設けられ、この拡張用コネクタは上記バス2
を介してアドレス変換回路7に接続されている。
The address conversion circuit 7 selectively switches the read address of the CPU 1 when the power of the electronic device is turned on, to either the nonvolatile memory 3 or an external storage means 15 described later. Here, each part of the CPU 1 to the address conversion circuit 7 is mounted on a control board 10 inside the electronic device. The control board 10 is provided with an extension connector 12.
Is connected to the address conversion circuit 7 via the.

【0017】そして、この拡張用コネクタ12には、実
装基板14が着脱自在である。実装基板14は、電子機
器の外部から装着されるものであり、電子機器の筐体に
開口された挿入用スロット部分に外部から挿入される構
成としたり、電子機器の筐体を開放して電子機器内部に
装着される構成である。実装基板14を拡張用コネクタ
12に装着することにより、この実装基板14がバス2
に接続可能となり、アドレス変換回路7によって接続が
切り替えられる。
A mounting board 14 is detachably attached to the extension connector 12. The mounting substrate 14 is mounted from the outside of the electronic device. The mounting substrate 14 is configured to be inserted from the outside into an insertion slot portion opened in the housing of the electronic device, or the electronic device is opened by opening the housing of the electronic device. This is a configuration that is installed inside the device. By mounting the mounting board 14 on the extension connector 12, the mounting board 14
, And the connection is switched by the address conversion circuit 7.

【0018】この実装基板14には、ROM等の記憶手
段15が設けられている。この記憶手段15には、不揮
発性メモリ3の内容の書き換えを実行するための書換用
プログラム、及び不揮発性メモリに転送する対象のプロ
グラム(転送対象プログラム)が予め格納されている。
なお、転送対象プログラムは、プログラムコードに限ら
ず、データの場合もある。記憶手段15は、メモリカー
ドなど、実装基板14に対して着脱自在な構成であって
もよい。
The mounting board 14 is provided with storage means 15 such as a ROM. The storage unit 15 stores in advance a rewriting program for rewriting the contents of the nonvolatile memory 3 and a program to be transferred to the nonvolatile memory (a transfer target program).
The transfer target program is not limited to the program code, but may be data. The storage means 15 may be configured to be detachable from the mounting board 14, such as a memory card.

【0019】図2は、アドレス変換回路7を示す構成図
である。拡張用コネクタ12に実装基板14を装着する
ことにより、この実装基板14の記憶手段15は、上記
バス2を構成するデータバス2a,アドレスバス2b,
コントロールバス(READ信号)2cに接続される。
FIG. 2 is a block diagram showing the address conversion circuit 7. By mounting the mounting board 14 on the extension connector 12, the storage means 15 of the mounting board 14 stores the data bus 2a, the address bus 2b,
It is connected to a control bus (READ signal) 2c.

【0020】このアドレス変換回路7には、マルチプレ
クサ20が設けられ、このマルチプレクサ20によって
電子機器の電源投入時(CPU1起動時)における起動
対象が不揮発性メモリ3、あるいは記憶手段15にいず
れかに切り換えられる。
The address conversion circuit 7 is provided with a multiplexer 20, which switches the activation target when the power of the electronic device is turned on (when the CPU 1 is activated) to the nonvolatile memory 3 or the storage means 15. Can be

【0021】CPU1は、CS信号(CS0,CS1)
をデコータ6を介してマルチプレクサ20の入力端子2
0a,20bに入力する。このCS信号は起動対象を特
定するためのものであり、実装基板14が装着されてい
るか否かによって、出力端子20c,20dとの接続関
係が切り替わる。
The CPU 1 outputs a CS signal (CS0, CS1)
To the input terminal 2 of the multiplexer 20 via the decoder 6
Input to 0a and 20b. The CS signal is for specifying a target to be activated, and the connection relationship with the output terminals 20c and 20d is switched depending on whether or not the mounting board 14 is mounted.

【0022】実装基板14は、制御基板10側から拡張
コネクタ12を介して電源ライン18により電源供給さ
れる。また、装着検出用のグランド端子19は、グラン
ドライン18bを介してマルチプレクサ20の内部スイ
ッチ21(図3参照)に接続されている。グランドライ
ン18bの電位は、実装基板14が制御基板10に装着
されたときにグランドレベルとなり、非装着時には開放
されている。内部スイッチ21は、表1に示すように実
装基板14の装着・非装着によって接続関係を切り替え
られるような回路構成となっている。
The mounting board 14 is supplied with power from the control board 10 via a power supply line 18 via the extension connector 12. Further, the ground terminal 19 for mounting detection is connected to the internal switch 21 (see FIG. 3) of the multiplexer 20 via the ground line 18b. The potential of the ground line 18b is at the ground level when the mounting board 14 is mounted on the control board 10, and is open when the mounting board 14 is not mounted. As shown in Table 1, the internal switch 21 has a circuit configuration that can switch the connection relationship depending on whether the mounting board 14 is mounted or not.

【0023】[0023]

【表1】 [Table 1]

【0024】図3は、マルチプレクサ20内部の切り替
え動作を示す図である。非装着時には入力端子20a、
20bに対して夫々出力端子20c,20dが接続され
る(図3(a))。装着時には、入力端子20a,20
bに対して夫々出力端子20d,20cが接続される
(図3(b))。
FIG. 3 is a diagram showing the switching operation inside the multiplexer 20. When not attached, the input terminal 20a,
Output terminals 20c and 20d are connected to 20b, respectively (FIG. 3A). At the time of mounting, the input terminals 20a, 20
Output terminals 20d and 20c are connected to b, respectively (FIG. 3 (b)).

【0025】図4は、電子機器の通常動作時における不
揮発性メモリ3の使用状態を示すアドレスマップであ
る。不揮発性メモリ3には、CS0番地が割り当てられ
ており、電子機器を動作させるための制御プログラム及
び作業用の領域を有している。記憶手段15には、CS
1番地が割り当てられるが、この場合、記憶手段15が
装着されていないので不使用状態になっている。CPU
1は、CS0番地の先頭アドレスを開始アドレスとして
処理を開始するので、実装基板14が装着されていない
状態では、CPU1は不揮発性メモリ3の制御プログラ
ムの読み取りから処理を開始する。
FIG. 4 is an address map showing the use state of the nonvolatile memory 3 during normal operation of the electronic device. The non-volatile memory 3 is assigned the address CS0, and has a control program for operating the electronic device and a work area. In the storage means 15, CS
The address 1 is assigned, but in this case, the storage means 15 is not attached, and is in an unused state. CPU
1 starts processing with the start address of the address CS0 as a start address. Therefore, when the mounting board 14 is not mounted, the CPU 1 starts processing by reading the control program from the nonvolatile memory 3.

【0026】制御プログラムの実行後、CPU1は、図
示しない所定の動作プログラムが記載されている所定番
地のアドレスを読み取り実行することにより、電子機器
は通常時の動作を開始する。
After the execution of the control program, the CPU 1 reads and executes an address at a predetermined address where a predetermined operation program (not shown) is described, so that the electronic device starts a normal operation.

【0027】図5は、書き換え動作時における不揮発性
メモリ3及び記憶手段15の使用状態を示すアドレスマ
ップである。不揮発性メモリ3には、CS1番地が割り
当てられており、電子機器を動作させるための制御プロ
グラム及び作業用の領域を有している。記憶手段15に
は、CS0番地が割り当てられており、転送実行用プロ
グラムおよび転送対象の制御プログラムが納められてい
る。この転送実行用プログラムは、ベクタ、不揮発性メ
モリ3に対する書き換え動作を実行するための初期設
定、及び実作業用のプログラムからなる。CPU1は通
常動作同様、CS0番地の先頭アドレスを開始アドレス
として処理を開始するので、拡張コネクタ12に実装基
板14が装着されている状態では、CPU1は、実装基
板14に設けられた記憶手段15の転送実行用プログラ
ムを不揮発性メモリ3の作業用領域を使用して実行す
る。
FIG. 5 is an address map showing the use state of the nonvolatile memory 3 and the storage means 15 during the rewriting operation. The nonvolatile memory 3 is assigned an address CS1, and has a control program for operating the electronic device and a work area. The storage means 15 is assigned the address CS0, and stores a transfer execution program and a control program to be transferred. The transfer execution program includes a vector, an initial setting for executing a rewrite operation for the nonvolatile memory 3, and a program for actual work. As in the normal operation, the CPU 1 starts processing with the start address of the address CS0 as a start address. Therefore, when the mounting board 14 is mounted on the extension connector 12, the CPU 1 operates the storage unit 15 provided on the mounting board 14. The transfer execution program is executed using the work area of the nonvolatile memory 3.

【0028】そして、転送実行用プログラムにより、記
憶手段15の所定領域に格納されている転送対象プログ
ラムを不揮発性メモリ3のCS1番地以降に転送する処
理を実行する。転送対象プログラムが転送されることに
より、不揮発性メモリ3に格納されていた制御プログラ
ムが書き換えられる。
Then, a process for transferring the transfer target program stored in a predetermined area of the storage means 15 to the non-volatile memory 3 from the address CS1 is executed by the transfer execution program. By transferring the transfer target program, the control program stored in the nonvolatile memory 3 is rewritten.

【0029】すなわち、図示の如く、CS1番地から記
載されていた過去の制御プログラムは、転送された新た
な転送対象プログラムに書き換えられる。この転送対象
プログラムは、CPU1の実行開始時に始めに読み取る
0H番地からの制御プログラム(所謂、ベクタ)が含む
ことができる。なお、転送対象プログラムが、書き換え
たい制御プログラムのうち一部で構成されている場合に
は、この転送実行によって対応する一部の制御プログラ
ムだけが書き換えられることとなる。
That is, as shown in the figure, the past control program described from the address CS1 is rewritten to a new transferred program to be transferred. The transfer target program can include a control program (so-called vector) starting from address 0H which is read first when the CPU 1 starts execution. If the transfer target program is composed of a part of the control program to be rewritten, only the corresponding part of the control program is rewritten by the execution of the transfer.

【0030】図6は、上記構成による不揮発性メモリ3
の書き換え動作を示すフローチャートである。不揮発性
メモリ3の制御プログラムを書き換える際には(S1−
YES)、実装基板14を用いる。この実装基板14の
記憶手段15には、予め、書き換えたい制御プログラム
(転送対象プログラム)、および、転送実行用プログラ
ムを格納しておく。そして、この実装基板14を制御基
板10の拡張コネクタ12に装着する(S3)。
FIG. 6 shows the nonvolatile memory 3 having the above configuration.
9 is a flowchart showing the rewriting operation of FIG. When rewriting the control program of the nonvolatile memory 3, (S1-
YES), the mounting substrate 14 is used. The storage means 15 of the mounting board 14 previously stores a control program to be rewritten (a transfer target program) and a transfer execution program. Then, the mounting board 14 is mounted on the extension connector 12 of the control board 10 (S3).

【0031】一方、制御プログラムを書き換えない場合
には(S1−NO)、実装基板14を拡張コネクタ12
に装着しない限り制御プログラムの書き換えは行われな
い。この場合、通常時の動作(不揮発性メモリ3の制御
プログラムの読み込み実行)が行われる(S2)。
On the other hand, when the control program is not rewritten (S1-NO), the mounting board 14 is connected to the extension connector 12
The control program is not rewritten unless it is attached to the control program. In this case, a normal operation (reading and execution of the control program in the nonvolatile memory 3) is performed (S2).

【0032】拡張コネクタ12に実装基板14が装着さ
れることにより、グランドライン18bの電位はグラン
ドレベルとなる。次に、装置の電源をオンにすると(S
4)、マルチプレクサ20の内部スイッチ21は、入力
端子20aと出力端子20dとが接続されるように切り
替えられ、CS0番地である記憶手段15から起動され
る(S5)。
By mounting the mounting board 14 on the extension connector 12, the potential of the ground line 18b becomes the ground level. Next, when the power of the apparatus is turned on (S
4), the internal switch 21 of the multiplexer 20 is switched so that the input terminal 20a and the output terminal 20d are connected, and is activated from the storage means 15 at the address CS0 (S5).

【0033】これにより、記憶手段15に格納されてい
る転送実行用プログラムに従い、装置を初期設定した
後、転送実行の処理を開始する(S6)。そして、転送
実行用プログラムは、転送対象プログラムの内容を不揮
発性メモリ3の制御プログラムの領域に書込む(S
7)。これにより、新たな制御プログラムが転送され
る。
Thus, after the device is initialized according to the transfer execution program stored in the storage means 15, the transfer execution process is started (S6). Then, the transfer execution program writes the contents of the transfer target program in the control program area of the nonvolatile memory 3 (S
7). Thereby, a new control program is transferred.

【0034】このデータ転送が正常に終了したか否かが
判断される(S9)。正常終了した場合には(S9−Y
ES)、制御基板10上に設けられた不図示の報知手段
(例えばLED,ブザー等)を作動させ転送終了の旨を
報知し(S10)、装置の電源をオフにして終了する
(S11)。
It is determined whether this data transfer has been completed normally (S9). If the processing ends normally (S9-Y
ES), the notifying means (for example, LED, buzzer, etc.) provided on the control board 10 is operated to notify the end of the transfer (S10), and the power of the apparatus is turned off to end (S11).

【0035】一方、データ転送にエラーがあった場合に
は(S9−NO)、エラー回数をカウントし(S1
2)、予め設定した所定回数以内のエラーであればS5
に移行して再度、転送を実行させる。このエラーが所定
回数(例えば2回)に達した場合には、転送実行が不能
な状態である判断し(S14)、制御基板10あるいは
実装基板14の検査を促す報知を報知手段を作動させて
行う(S14)。
On the other hand, if there is an error in the data transfer (S9-NO), the number of errors is counted (S1).
2) If the error is within a predetermined number of times set in advance, S5
And transfer is executed again. If this error has reached a predetermined number of times (for example, two times), it is determined that the transfer cannot be executed (S14), and a notification prompting an inspection of the control board 10 or the mounting board 14 is activated by the notification means. Perform (S14).

【0036】上記S9におけるデータ転送は、転送終了
時にこの転送対象プログラムに対応した管理番号を参照
することにより、正常終了したか否かを判断することが
できる。即ち、転送用プログラムは、転送対象プログラ
ムの転送終了時に、予め定められた所定のアドレスに管
理番号を書き込む処理を実行する。例えば、このアドレ
スは、不揮発性メモリ3が有するアドレス空間内に書き
込む。
At the end of the data transfer in S9, it can be determined whether or not the data transfer has been completed normally by referring to the management number corresponding to the transfer target program. That is, the transfer program executes a process of writing the management number to a predetermined address at the end of the transfer of the transfer target program. For example, this address is written in the address space of the nonvolatile memory 3.

【0037】この後、書き込まれた管理番号を読み出す
ことにより、不揮発性メモリ3に格納されている制御プ
ログラムの内容を判断することができる。この管理番号
は、転送失敗時には書き込まれない。これにより、管理
番号を読み出すだけで不揮発性メモリ3に格納されてい
る制御プログラムが旧版であるか、あるいは最も新しい
ものであるかを判断することができるようになる。
Thereafter, by reading the written management number, the contents of the control program stored in the nonvolatile memory 3 can be determined. This management number is not written when transfer fails. Thus, it is possible to determine whether the control program stored in the non-volatile memory 3 is an old version or the latest version by simply reading the management number.

【0038】上記実施形態では、書き換え可能なメモリ
(不揮発性メモリ)としてフラッシュROMを例に説明
したが、これに限らず、EEPROMやFRAMなどで
あっても同様に適用することができる。また、これらメ
モリが着脱可能な構成であっても、同様に適用すること
ができる。
In the above embodiment, a flash ROM has been described as an example of a rewritable memory (non-volatile memory). However, the present invention is not limited to this, and an EEPROM, an FRAM, or the like can be similarly applied. Further, even when these memories are configured to be detachable, the same can be applied.

【0039】また、上記実施形態では、制御基板10に
対する実装基板14の装着をグランド電位の検出の有無
で得る構成としたが、これに限らず実装基板14の電位
供給手段が予め定められた所定電位を出力し、制御基板
10側でこれを検出する構成としてもよい。この他、制
御基板10上の設定SWを手動にて操作設定する構成と
したり、センサを用いて実装基板14の装着を検出する
ことも考えられる。
In the above embodiment, the mounting of the mounting board 14 to the control board 10 is performed by detecting the presence or absence of the ground potential. However, the present invention is not limited to this. A configuration may be adopted in which the potential is output and the control board 10 detects this. In addition, a configuration in which the setting SW on the control board 10 is manually operated and set, or detection of mounting of the mounting board 14 using a sensor may be considered.

【0040】[0040]

【発明の効果】本発明のデータ書き換え装置によれば、
メモリに格納された制御プログラムは、外部から記憶手
段を装着して書き換えることができる。この際、プロセ
ッサは、記憶手段に記憶された転送実行用プログラムか
ら起動し転送対象プログラムをメモリに転送するため、
ベクタを含む制御プログラムを書き換えることができる
ようになる。これにより、メモリが制御基板上に表面実
装などで固定された構成であっても、メモリの制御プロ
グラムを全部あるいは一部書き換えることができるよう
になる。書き換えは、制御プログラムに限らずデータも
対象にできる。請求項2によれば、メモリが設けられた
制御基板に対し、記憶手段が設けられた実装基板を拡張
コネクタに装着するだけで上記メモリのデータを書き換
えることができるようになる。請求項3によれば、制御
基板に対して実装基板を装着するだけで、所定の電位が
供給され、プロセッサを記憶手段側から起動させること
ができるようになるため、設定操作が不要で簡単に書き
換えを行えるようになる。請求項4によれば、メモリの
書き換えが正常終了すると管理番号が書き込まれるた
め、書き換え状態を容易に把握することができるように
なる。本発明のデータ書き換え方法によれば、プロセッ
サの電源投入前に、プロセッサに外部の記憶手段を接続
させ、電源投入時にプロセッサが読み出す開始アドレス
が前記転送実行用プログラムの開始アドレスに切り替わ
るので、記憶手段側からの起動でメモリの制御プログラ
ムが書き換えられる構成であり、簡単な手順で容易にメ
モリを書き換えることができるようになる。
According to the data rewriting device of the present invention,
The control program stored in the memory can be rewritten by attaching storage means from the outside. At this time, the processor starts up from the transfer execution program stored in the storage means and transfers the transfer target program to the memory.
The control program including the vector can be rewritten. Thus, even if the memory is fixed on the control board by surface mounting or the like, the control program of the memory can be completely or partially rewritten. Rewriting can be applied not only to the control program but also to data. According to the second aspect, the data in the memory can be rewritten only by attaching the mounting board provided with the storage means to the expansion connector on the control board provided with the memory. According to the third aspect, simply by mounting the mounting board on the control board, a predetermined potential is supplied and the processor can be started from the storage means side, so that setting operation is unnecessary and easy. Rewriting can be performed. According to the fourth aspect, when the rewriting of the memory is completed normally, the management number is written, so that the rewriting state can be easily grasped. According to the data rewriting method of the present invention, the external storage means is connected to the processor before the power supply of the processor is turned on, and the start address read by the processor at the time of power supply is switched to the start address of the transfer execution program. The configuration is such that the control program of the memory can be rewritten by starting from the side, and the memory can be easily rewritten by a simple procedure.

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

【図1】本発明のデータ書き換え装置が適用される電子
機器の全体を示す構成図。
FIG. 1 is a configuration diagram showing an entire electronic device to which a data rewriting device of the present invention is applied.

【図2】アドレス変換回路を示す構成図。FIG. 2 is a configuration diagram showing an address conversion circuit.

【図3】マルチプレクサ内部の切り替え動作を示す図。FIG. 3 is a diagram showing a switching operation inside a multiplexer.

【図4】電子機器の通常動作時におけるアドレスマッ
プ。
FIG. 4 is an address map during normal operation of the electronic device.

【図5】不揮発性メモリの書き換え動作時におけるアド
レスマップ。
FIG. 5 is an address map at the time of a rewriting operation of a nonvolatile memory.

【図6】不揮発性メモリの書き換え動作を示すフローチ
ャート。
FIG. 6 is a flowchart showing a rewriting operation of a nonvolatile memory.

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

1…CPU、2…バス、…不揮発性メモリ、7…アドレ
ス変換手段、10…制御基板、12…拡張コネクタ、1
4…実装基板、15…記憶手段、20…マルチプレク
サ、21…内部スイッチ、19…グランド端子。
DESCRIPTION OF SYMBOLS 1 ... CPU, 2 ... bus, ... nonvolatile memory, 7 ... address conversion means, 10 ... control board, 12 ... expansion connector, 1
4 mounting board, 15 storage means, 20 multiplexer, 21 internal switch, 19 ground terminal.

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 電源投入時に、所定の開始アドレスから
データを読み出して起動するプロセッサと、 前記開始アドレスを先頭としたアドレス空間に電子機器
用の制御プログラムが格納され、電源の非供給時におい
ても格納されたデータを保持する書き換え可能な内部記
憶手段とを有する電子機器において、 前記制御プログラムを書き換えるための転送実行用プロ
グラム及び転送対象プログラムが格納された外部記憶手
段を実装した媒体が前記電子機器に着脱自在であって、 前記媒体が前記電子機器に装着されているときに該機器
の電源が投入されると、前記プロセッサが前記転送実行
用プログラムの先頭アドレスを前記開始アドレスだと見
做すように、前記両記憶手段と前記開始アドレスとの対
応関係を切り替えるアドレス変換手段を有することを特
徴とする電子機器。
1. A processor which reads out data from a predetermined start address when power is turned on and starts, and a control program for an electronic device is stored in an address space starting from the start address. An electronic device having rewritable internal storage means for holding stored data, wherein the medium having an external storage means storing a transfer execution program for rewriting the control program and a transfer target program is the electronic device. When the power of the device is turned on while the medium is mounted on the electronic device, the processor regards the start address of the transfer execution program as the start address. The address conversion means for switching the correspondence between the two storage means and the start address. Electronic equipment characterized by the above.
【請求項2】 前記プロセッサのバスに接続され前記媒
体が着脱される拡張コネクタを有する請求項1記載の電
子機器。
2. The electronic apparatus according to claim 1, further comprising an expansion connector connected to a bus of said processor and to which said medium is attached and detached.
【請求項3】 前記媒体には、前記拡張コネクタへの装
着時に前記アドレス変換手段に所定の電位を供給する電
位供給手段が設けられ、 前記アドレス変換手段は、前記電位供給手段からの所定
電位の供給に基づき、前記対応関係を切り替える構成と
された請求項2記載の電子機器。
3. The medium is provided with a potential supply means for supplying a predetermined potential to the address conversion means when the medium is attached to the extension connector, and the address conversion means is provided with a predetermined potential from the potential supply means. 3. The electronic device according to claim 2, wherein the correspondence is switched based on supply.
【請求項4】 前記転送実行用プログラムは、前記内部
記憶手段に対する前記転送対象プログラムの転送の正常
終了時に、所定のアドレスに該転送対象プログラムの管
理番号を書き込む構成とされた請求項1記載の電子機
器。
4. The transfer execution program according to claim 1, wherein said transfer execution program writes a management number of said transfer target program to a predetermined address when transfer of said transfer target program to said internal storage means ends normally. Electronics.
【請求項5】 電子機器制御用の制御プログラムが格納
され、電源の非供給時においても格納されたデータを保
持する内部記憶手段を有する電子機器に用いられるデー
タ書き換え方法であって、 予め、前記電子機器のプロセッサのバスに、転送実行用
プログラム及び転送対象プログラムが記憶された外部記
憶手段を実装した媒体を装着し、 該機器の電源投入時に、該媒体の装着に基づき、前記プ
ロセッサが前記転送実行用プログラムの先頭アドレスを
前記開始アドレスだと見做すように、前記両記憶手段と
前記開始アドレスとの対応関係を切り替え、 前記転送実行用プログラムを実行して前記転送対象プロ
グラムを前記内部記憶媒体に転送させることにより、前
記内部記憶手段の制御プログラムを書き換えることを特
徴とする電子機器の制御プログラム書き換え方法。
5. A data rewriting method for use in an electronic device having an internal storage means for storing a control program for controlling the electronic device and holding the stored data even when power is not supplied, comprising: A medium mounted with an external storage means storing a transfer execution program and a transfer target program is mounted on a bus of a processor of an electronic device. When the device is powered on, the processor performs the transfer based on the mounted medium. The correspondence between the two storage means and the start address is switched so that the start address of the execution program is regarded as the start address, and the transfer execution program is executed to store the transfer target program in the internal storage. Controlling the electronic device by rewriting a control program in the internal storage means by transferring the control program to a medium. Program rewriting method.
JP11196146A 1999-07-09 1999-07-09 Electronic equipment and rewriting method for control program of the equipment Pending JP2001022571A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11196146A JP2001022571A (en) 1999-07-09 1999-07-09 Electronic equipment and rewriting method for control program of the equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11196146A JP2001022571A (en) 1999-07-09 1999-07-09 Electronic equipment and rewriting method for control program of the equipment

Publications (1)

Publication Number Publication Date
JP2001022571A true JP2001022571A (en) 2001-01-26

Family

ID=16352992

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11196146A Pending JP2001022571A (en) 1999-07-09 1999-07-09 Electronic equipment and rewriting method for control program of the equipment

Country Status (1)

Country Link
JP (1) JP2001022571A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006099215A (en) * 2004-09-28 2006-04-13 Toshiba Tec Corp Computer device mountable with download substrate
JP2014130647A (en) * 2007-07-26 2014-07-10 Ab Initio Technology Llc Transactional graph-based computation with error handling
US9507682B2 (en) 2012-11-16 2016-11-29 Ab Initio Technology Llc Dynamic graph performance monitoring
US9753751B2 (en) 2010-06-15 2017-09-05 Ab Initio Technology Llc Dynamically loading graph-based computations
US9886241B2 (en) 2013-12-05 2018-02-06 Ab Initio Technology Llc Managing interfaces for sub-graphs
US9886319B2 (en) 2009-02-13 2018-02-06 Ab Initio Technology Llc Task managing application for performing tasks based on messages received from a data processing application initiated by the task managing application
US10108521B2 (en) 2012-11-16 2018-10-23 Ab Initio Technology Llc Dynamic component performance monitoring
US10657134B2 (en) 2015-08-05 2020-05-19 Ab Initio Technology Llc Selecting queries for execution on a stream of real-time data

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006099215A (en) * 2004-09-28 2006-04-13 Toshiba Tec Corp Computer device mountable with download substrate
JP2014130647A (en) * 2007-07-26 2014-07-10 Ab Initio Technology Llc Transactional graph-based computation with error handling
CN107423046B (en) * 2007-07-26 2021-08-06 起元技术有限责任公司 Method, system, and computer-readable medium for processing graph-based computations
CN107423046A (en) * 2007-07-26 2017-12-01 起元技术有限责任公司 For handling method, system and the computer-readable medium of the calculating based on figure
US9886319B2 (en) 2009-02-13 2018-02-06 Ab Initio Technology Llc Task managing application for performing tasks based on messages received from a data processing application initiated by the task managing application
US10528395B2 (en) 2009-02-13 2020-01-07 Ab Initio Technology Llc Task managing application for performing tasks based on messages received from a data processing application initiated by the task managing application
US9753751B2 (en) 2010-06-15 2017-09-05 Ab Initio Technology Llc Dynamically loading graph-based computations
US10108521B2 (en) 2012-11-16 2018-10-23 Ab Initio Technology Llc Dynamic component performance monitoring
US9507682B2 (en) 2012-11-16 2016-11-29 Ab Initio Technology Llc Dynamic graph performance monitoring
US10180821B2 (en) 2013-12-05 2019-01-15 Ab Initio Technology Llc Managing interfaces for sub-graphs
US10318252B2 (en) 2013-12-05 2019-06-11 Ab Initio Technology Llc Managing interfaces for sub-graphs
US9886241B2 (en) 2013-12-05 2018-02-06 Ab Initio Technology Llc Managing interfaces for sub-graphs
US10901702B2 (en) 2013-12-05 2021-01-26 Ab Initio Technology Llc Managing interfaces for sub-graphs
US10657134B2 (en) 2015-08-05 2020-05-19 Ab Initio Technology Llc Selecting queries for execution on a stream of real-time data

Similar Documents

Publication Publication Date Title
KR100448932B1 (en) Flash rom writer device and its control method, especially recovering data without separating flash rom from pcb
EP0825530A2 (en) Computer apparatus having electrically rewritable nonvolatile memory, and nonvolatile semiconductor memory
CN110809755A (en) Electronic control system
US7337312B2 (en) Processor and firmware download method for same
CN112947977A (en) Software online upgrading method and system
JP2001022571A (en) Electronic equipment and rewriting method for control program of the equipment
JP2000245681A (en) Version updating method for firmware for electronic endoscope device and electronic endoscope device
JP2008009799A (en) Image forming device
EP0785508A2 (en) Method of controlling data writing into on-board microcomputer
JPH09305395A (en) Electronic equipment
JPH1027097A (en) Method and device for rewriting data of flash rom
JP4079553B2 (en) Nonvolatile memory device and image forming apparatus
JP2008182327A (en) Programmable device controller, and method thereof
JPH1011279A (en) Electronic appliance
US7308552B2 (en) Microcontroller
JP3572861B2 (en) Printing equipment
JP2004110460A (en) Electronic apparatus and method for downloading control program
JPH11149377A (en) Image forming device
JPH111049A (en) Image processor
JP2004070407A (en) Controller of electric appliance and writing method of application program thereto
JP2005103789A (en) Electronic apparatus
JPH09305394A (en) Electronic equipment
JP2000076073A (en) Electronic equipment
JPH1011278A (en) Microcomputer device with rewritable nonvolatile memory
JPH10287001A (en) Data rewriting device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050930

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051101

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060307