[go: up one dir, main page]

JPH04283837A - Program loading method - Google Patents

Program loading method

Info

Publication number
JPH04283837A
JPH04283837A JP4783491A JP4783491A JPH04283837A JP H04283837 A JPH04283837 A JP H04283837A JP 4783491 A JP4783491 A JP 4783491A JP 4783491 A JP4783491 A JP 4783491A JP H04283837 A JPH04283837 A JP H04283837A
Authority
JP
Japan
Prior art keywords
memory card
program
eprom
memory
stored
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
JP4783491A
Other languages
Japanese (ja)
Inventor
Yoshiyuki Hara
美幸 原
Naoki Shikauchi
鹿内 直樹
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP4783491A priority Critical patent/JPH04283837A/en
Publication of JPH04283837A publication Critical patent/JPH04283837A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To eliminate the need for a ROM stored with a program loader by storing the program loader and an update program on a memory card. CONSTITUTION:The program loader and update program are stored in an EPROM on the memory card 3. Then an inverter 5 has a pull-up resistance for a Vcc whose input is connected to a GND through the pattern of the memory card 3 only when the memory card 3 is connected. The output of the inverter 5 is inputted to a memory control circuit 4 as a memory card connection/ nonconnection signal. The memory control circuit 4 enables a flush type EPROM 2 when the memory card 3 is not connected and enables the EPROM on the memory card 3 when the memory card is connected. For the purpose, the memory card 3 is connected to put the program loader in operation and the update program stored in the EPROM can be written in the flush type EPROM 2.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明はマイコン制御で動作する
装置におけるプログラムローディング方法にかかり、特
にプログラムローダを記憶したROMや全てのプログラ
ムを記憶したROM等を必要としないプログラムローデ
ィング方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program loading method in a device operated under microcomputer control, and more particularly to a program loading method that does not require a ROM storing a program loader or a ROM storing all programs.

【0002】0002

【従来の技術】従来技術においては、マイコン制御で動
作する装置のプログラムローディングは、メインプログ
ラムをRAMに格納し、プログラムローダをROMに格
納し、送受信回路を介して上位制御装置あるいは外部記
憶装置からメインプログラムをRAMに格納することに
よって行っていた。また、装置単体をOEMユーザーに
販売し、他社の上位制御装置に接続する場合には、上位
制御装置あるいは外部記憶装置からのプログラムローデ
ィングが期待できないため、全てのプログラムをROM
に格納し、プログラムの変更はROMの交換という形で
行っていた。
[Prior Art] In the prior art, program loading for devices that operate under microcomputer control involves storing the main program in RAM, storing the program loader in ROM, and then loading the program from a higher-level control device or an external storage device via a transmitting/receiving circuit. This was done by storing the main program in RAM. In addition, when selling a single device to an OEM user and connecting it to a higher-level control device from another company, all programs must be stored in ROM because loading programs from the higher-level control device or external storage device cannot be expected.
The program was stored in the ROM, and changes to the program were made by replacing the ROM.

【0003】上記従来技術に関連するものとしては、特
開昭56−124930号公報、特開昭57−1620
13号公報、特開昭59−109927号公報、特開昭
59−109927号公報、特開昭59−148918
号公報、特開昭62−126452号公報等に開示され
た発明が存在する。
[0003] Related to the above-mentioned prior art, Japanese Patent Application Laid-Open No. 124930/1982 and Japanese Patent Application Laid-open No. 1620/1982
13, JP-A-59-109927, JP-A-59-109927, JP-A-59-148918
There are inventions disclosed in Japanese Patent Application Publication No. 62-126452, etc.

【0004】0004

【発明が解決しようとする課題】上記した従来技術にお
いては、RAMとROMを必要とするため、メモリに高
いコストがかかるという問題点がある。
SUMMARY OF THE INVENTION The above-mentioned conventional technology requires a RAM and a ROM, which poses a problem in that memory costs are high.

【0005】また、装置単体をOEMユーザーに販売し
、他社の上位制御装置に接続する場合には、前記したよ
うに、プログラムの変更はROM交換という形で行われ
るため、ROM再生及び交換のコストが発生するという
問題点がある。
[0005] Furthermore, when selling a single device to an OEM user and connecting it to a higher-level control device of another company, as mentioned above, program changes are made in the form of ROM replacement, so the cost of ROM regeneration and replacement is reduced. There is a problem that occurs.

【0006】本発明は上記した従来技術の問題点に鑑み
なされたもので、特にROMを必要としないプログラム
ローディング方法を提供することを目的としている。
The present invention has been made in view of the problems of the prior art described above, and specifically aims to provide a program loading method that does not require a ROM.

【0007】[0007]

【課題を解決するための手段】本発明のプログラムロー
ディング方法は、システムの制御を行うCPUと、CP
Uを動作させるプログラムを格納する書換可能メモリと
を備えた装置に適用され、書換可能メモリに記憶された
プログラムを更新するものであり、特にプログラムロー
ダと更新プログラムを格納した記憶手段を上記装置に接
続し、上記記憶手段に格納されているプログラムローダ
に従ってCPUを動作させることによって、上記記憶手
段に格納されている更新プログラムを上記書換可能メモ
リに格納することを特徴としている。
[Means for Solving the Problems] The program loading method of the present invention provides a CPU that controls a system, a CPU that controls a system,
It is applied to a device equipped with a rewritable memory that stores a program for operating the U, and updates the program stored in the rewritable memory, and in particular, a program loader and a storage means storing an update program are installed in the device. The update program stored in the storage means is stored in the rewritable memory by connecting the CPU and operating the CPU according to a program loader stored in the storage means.

【0008】[0008]

【作用】本発明によれば、上記記憶手段をメモリカード
等によって構成することにより、記憶手段を装置に接続
するだけでプログラムの更新を行うことが可能になる。 したがって、装置内にプログラムローダ等を格納したR
OMを必要とすることなく、プログラムを更新すること
ができる。
According to the present invention, by configuring the storage means using a memory card or the like, it becomes possible to update the program simply by connecting the storage means to the device. Therefore, the R
Programs can be updated without requiring OM.

【0009】[0009]

【実施例】以下、添付の図面に示す実施例により、更に
詳細に本発明について説明する。図1は本発明の第1の
実施例を示すブロック図である。図1において、CPU
1は、データバスとアドレスバスとリード/ライト信号
を送信するコントロールバスからなるバス6を有してい
る。図示するように、このバス6には、プログラムを格
納する電気的一括消去及び再書込可能なフラッシュ型E
PROM2(以下、FEPROMと称する)と、EPR
OMを搭載しているメモリカード3と、メモリコントロ
ール回路4と、RAM11が接続されている。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will now be described in more detail with reference to embodiments shown in the accompanying drawings. FIG. 1 is a block diagram showing a first embodiment of the present invention. In Figure 1, the CPU
1 has a bus 6 consisting of a data bus, an address bus, and a control bus for transmitting read/write signals. As shown in the figure, this bus 6 includes an electrically erasable and rewritable flash type E that stores programs.
PROM2 (hereinafter referred to as FEPROM) and EPR
A memory card 3 equipped with an OM, a memory control circuit 4, and a RAM 11 are connected.

【0010】ここで、メモリコントロール回路4は、図
示するように、FEPROM2のチップイネーブル信号
8と、メモリカード3内のEPROMのチップイネーブ
ル信号9と、FEPROM2の消去制御信号及び書込制
御信号及びモード制御信号を含む制御信号10をそれぞ
れ出力するモノである。
Here, as shown in the figure, the memory control circuit 4 receives a chip enable signal 8 of the FEPROM 2, a chip enable signal 9 of the EPROM in the memory card 3, an erase control signal, a write control signal, and a mode of the FEPROM 2. These devices each output a control signal 10 including a control signal.

【0011】さらに、図1に示す第1の実施例において
は、メモリカード3を接続したときに限って、メモリカ
ード3のパターンを介して、入力がGNDに接続される
Vccへのプルアップ抵抗を持つインバータ5が設けら
れている。このインバータ5の出力は、メモリカード接
続時に“1”出力、未接続時に“0”出力となるメモリ
カード接続有無信号7として、メモリコントロール回路
4に入力される。このメモリカード接続有無信号7を受
けて、メモリコントロール回路4はメモリカード3の未
接続時においてはFEPROM2をイネーブルし、メモ
リカード接続時においてはメモリカード3内のEPRO
Mをイネーブルする。なお、前記チップイネーブル信号
8,9は、CPU1の同一アドレス領域(領域A)に割
り付けられたアドレス信号をデコードして作られる信号
である。
Furthermore, in the first embodiment shown in FIG. 1, only when the memory card 3 is connected, a pull-up resistor to Vcc whose input is connected to GND is connected via the pattern of the memory card 3. An inverter 5 is provided. The output of the inverter 5 is input to the memory control circuit 4 as a memory card connection presence/absence signal 7 which outputs "1" when the memory card is connected and outputs "0" when the memory card is not connected. In response to this memory card connection signal 7, the memory control circuit 4 enables the FEPROM 2 when the memory card 3 is not connected, and enables the EPROM in the memory card 3 when the memory card 3 is connected.
Enable M. Note that the chip enable signals 8 and 9 are generated by decoding address signals allocated to the same address area (area A) of the CPU 1.

【0012】次に、図2〜図4を用いて、図1に示す実
施例の動作について説明する。前記したように、メモリ
カード3の未接続時においてはFEPROM2がイネー
ブルされる。したがって、図2に示すように、CPU1
のアドレス領域Aには、FEPROM2が割り付けられ
る。さらに、FEPROM2のチップイネーブル信号8
は、アドレス領域Aと重ならない別のアドレス領域Bも
イネーブルする。したがって、メモリカード3の未接続
時には、CPU1はFEPROM2のプログラムを実行
する。
Next, the operation of the embodiment shown in FIG. 1 will be explained using FIGS. 2 to 4. As described above, when the memory card 3 is not connected, the FEPROM 2 is enabled. Therefore, as shown in FIG.
FEPROM 2 is allocated to address area A of . Furthermore, the chip enable signal 8 of FEPROM2
also enables another address area B that does not overlap with address area A. Therefore, when the memory card 3 is not connected, the CPU 1 executes the program in the FEPROM 2.

【0013】メモリカードの接続時におては、メモリカ
ード3内のEPROMがイネーブルされる。したがって
、図3に示すように、CPU1はEPROMに格納され
たプログラムを実行する。
[0013] When the memory card is connected, the EPROM in the memory card 3 is enabled. Therefore, as shown in FIG. 3, the CPU 1 executes the program stored in the EPROM.

【0014】さらに、メモリカード3内のプログラムを
FEPROM2にコピーする場合には、次のように動作
する。すなわち、メモリカード3を接続することにより
、メモリカード3内のEPROMの一部に格納されたプ
ログラムローダが実行される。これによって、図4に示
すように、まずFEPROM2のアドレス領域Aに格納
されているプログラムがアドレス領域Bに転送され、次
にFEPROM2のアドレス領域Aにメモリカード3内
のEPROMに格納されている新しいプログラムが転送
される。
Furthermore, when copying the program in the memory card 3 to the FEPROM 2, the following operation is performed. That is, by connecting the memory card 3, the program loader stored in a part of the EPROM in the memory card 3 is executed. As a result, as shown in FIG. The program will be transferred.

【0015】したがって、図1に示す第1の実施例によ
れば、装置内にプログラムローダを格納する不揮発メモ
リ(EPROM等)を持たなくとも、メモリカード3を
接続することにより、メモリカード3内のEPROMの
プログラムをFEPROM2に書き込むことができる。
Therefore, according to the first embodiment shown in FIG. 1, even if the device does not have a non-volatile memory (such as an EPROM) for storing a program loader, by connecting the memory card 3, the data stored in the memory card 3 can be saved. The program of the EPROM can be written to the FEPROM2.

【0016】なお、CPU1のアドレスサイズが不足し
、2つのアドレス領域A,Bが定義できない場合には、
次のようにしてプログラムの書き換えを行う。すなわち
、メモリカード3内のEPROMに格納されているプロ
グラムローダをRAM11に転送し、RAM上でプログ
ラムローダを実行する。さらに、RAM11をワークエ
リアとして使用する。これにより、まずチップイネーブ
ル信号9によりメモリカード3をイネーブルし、メモリ
カード3内のEPROMのデータをRAM11に転送す
る。続いて、チップイネーブル信号8によりFEPRO
M2をイネーブルし、RAM11からFEPROM2へ
のデータ転送を行う。これによって、プログラムの書き
換えが実行できる。なお、RAM11のアドレスサイズ
が小さいときには、上記の動作を複数回に分けて行えば
良い。
[0016] If the address size of CPU 1 is insufficient and two address areas A and B cannot be defined,
Rewrite the program as follows. That is, the program loader stored in the EPROM in the memory card 3 is transferred to the RAM 11, and the program loader is executed on the RAM. Furthermore, the RAM 11 is used as a work area. As a result, first, the memory card 3 is enabled by the chip enable signal 9, and the data in the EPROM in the memory card 3 is transferred to the RAM 11. Subsequently, the chip enable signal 8 causes the FEPRO
Enable M2 and transfer data from RAM11 to FEPROM2. This allows the program to be rewritten. Note that when the address size of the RAM 11 is small, the above operation may be performed in multiple steps.

【0017】図5は、本発明の第2の実施例を示すブロ
ック図であり、図1に示す第1の実施例と同一部分には
同一符号を付している。図1に示す第1の実施例と図5
に示す第2の実施例が相違している部分は、FEPRO
M2の変わりにSRAM12を用いている事である。S
RAM12を使用している第2の実施例の動作は、FE
PROM22を使用している第1の実施例の動作と同じ
である。ただし、SRAM使用の場合は、バックアップ
用バッテリ13が必要になる。
FIG. 5 is a block diagram showing a second embodiment of the present invention, in which the same parts as in the first embodiment shown in FIG. 1 are given the same reference numerals. The first embodiment shown in FIG. 1 and FIG.
The difference in the second embodiment shown in FIG.
The reason is that SRAM12 is used instead of M2. S
The operation of the second embodiment using RAM12 is as follows:
The operation is the same as that of the first embodiment using PROM22. However, if SRAM is used, a backup battery 13 is required.

【0018】また、第1の実施例において、FEPRO
M2の代わりにEEPROMを使用することも可能であ
る。この場合の動作も、FEPROM2を使用する場合
の動作と同様である。
[0018] Furthermore, in the first embodiment, FEPRO
It is also possible to use EEPROM instead of M2. The operation in this case is also similar to the operation when using the FEPROM2.

【0019】なお、以上の説明においては、メモリカー
ド3を例にして説明したが、本発明はこれに限定される
ものではなく、言うまでもなくメモリボード等を用いて
もよい。
Although the above description has been made using the memory card 3 as an example, the present invention is not limited to this, and needless to say, a memory board or the like may be used.

【0020】[0020]

【発明の効果】以上説明したように、本発明によれば、
メモリカード等を接続するだけで、他に特別なプログラ
ムローディングのための特別の装置やROMを設けるこ
となく、プログラムの更新を行なうことが可能になる。
[Effects of the Invention] As explained above, according to the present invention,
By simply connecting a memory card or the like, programs can be updated without the need for any other special device or ROM for program loading.

【0021】さらに、プログラム変更時においては、メ
モリカード内のEPROMを新しいプログラムに変更し
て、メモリカードを用いて装置のプログラムをオンボー
ドで変更できるので、従来技術と比較して、変更に伴う
コストを大幅に少なくすることができる。
Furthermore, when changing the program, the EPROM in the memory card can be changed to a new program, and the program of the device can be changed on-board using the memory card. Costs can be significantly reduced.

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】本発明の第1の実施例を示すブロック図。FIG. 1 is a block diagram showing a first embodiment of the present invention.

【図2】図1に示す第1の実施例において、メモリカー
ド未接続時におけるCPUのアドレス領域を示す説明図
FIG. 2 is an explanatory diagram showing the address area of the CPU when a memory card is not connected in the first embodiment shown in FIG. 1;

【図3】図1に示す第1の実施例において、メモリカー
ド接続時におけるCPUのアドレス領域を示す説明図。
FIG. 3 is an explanatory diagram showing the address area of the CPU when a memory card is connected in the first embodiment shown in FIG. 1;

【図4】図1に示す第1の実施例において、メモリカー
ドを接続してプログラム更新を行う時におけるCPUの
アドレス領域を示す説明図。
FIG. 4 is an explanatory diagram showing the address area of the CPU when a memory card is connected and a program is updated in the first embodiment shown in FIG. 1;

【図5】本発明の第2の実施例を示すブロック図。FIG. 5 is a block diagram showing a second embodiment of the present invention.

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

1  CPU 2  FEPROM 3  メモリカード 4  メモリコントロール回路 5  インバータ 6  バス 8  チップイネーブル信号 9  チップイネーブル信号 10  制御信号 11  RAM 12  SRAM 13  バックアップ用バッテリ 1 CPU 2 FEPROM 3. Memory card 4 Memory control circuit 5 Inverter 6 Bus 8 Chip enable signal 9 Chip enable signal 10 Control signal 11 RAM 12 SRAM 13 Backup battery

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】システムの制御を行うCPUと、CPUを
動作させるプログラムを格納する書換可能メモリとを備
えた装置に適用され、書換可能メモリに記憶されたプロ
グラムを更新するプログラムローディング方法であって
、プログラムローダと更新プログラムを格納した記憶手
段を上記装置に接続し、上記記憶手段に格納されている
プログラムローダに従ってCPUを動作させることによ
って、上記記憶手段に格納されている更新プログラムを
上記書換可能メモリに格納することを特徴とするプログ
ラムローディング方法。
1. A program loading method for updating a program stored in the rewritable memory, which is applied to a device including a CPU that controls a system and a rewritable memory that stores a program for operating the CPU. The update program stored in the storage means can be rewritten by connecting a storage means storing a program loader and an update program to the device and operating the CPU according to the program loader stored in the storage means. A program loading method characterized by storing it in memory.
【請求項2】上記記憶手段は、書換可能メモリを搭載し
たメモリカードであることを特徴とする請求項1記載の
プログラムローディング方法。
2. The program loading method according to claim 1, wherein the storage means is a memory card equipped with a rewritable memory.
JP4783491A 1991-03-13 1991-03-13 Program loading method Pending JPH04283837A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4783491A JPH04283837A (en) 1991-03-13 1991-03-13 Program loading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4783491A JPH04283837A (en) 1991-03-13 1991-03-13 Program loading method

Publications (1)

Publication Number Publication Date
JPH04283837A true JPH04283837A (en) 1992-10-08

Family

ID=12786391

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4783491A Pending JPH04283837A (en) 1991-03-13 1991-03-13 Program loading method

Country Status (1)

Country Link
JP (1) JPH04283837A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001216164A (en) * 2000-02-02 2001-08-10 Canon Inc Processor system and activation method thereof
DE10255542A1 (en) * 2002-11-28 2004-06-17 Abb Patent Gmbh Memory circuit arrangement for use with a Harvard-architecture microcomputer circuit has an EPROM within a program storage area that is connected to the microcomputer circuit to permits its reprogramming

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001216164A (en) * 2000-02-02 2001-08-10 Canon Inc Processor system and activation method thereof
DE10255542A1 (en) * 2002-11-28 2004-06-17 Abb Patent Gmbh Memory circuit arrangement for use with a Harvard-architecture microcomputer circuit has an EPROM within a program storage area that is connected to the microcomputer circuit to permits its reprogramming
DE10255542B4 (en) * 2002-11-28 2015-11-12 Abb Ag Memory arrangement for a microcomputer circuit

Similar Documents

Publication Publication Date Title
JPH11143703A (en) Microcontroller with embedded programmable flash memory
US6516400B1 (en) Data storage, data processing system and method
KR100265266B1 (en) Microcomputer comprsing flash eeprom and method of erasing flash eeprom
KR100225518B1 (en) Apparatus for initializing node address of ipc and method
US6000005A (en) Method of writing a flash memory including dynamically switching and allocating memory spaces to the flash memory blocks
US5880992A (en) Electrically erasable and programmable read only memory
JPH04283837A (en) Program loading method
US5748967A (en) Program rewriting method and apparatus for multiprocessor system
JPH02214156A (en) Non-volatile semiconductor device
JPH04235632A (en) Program loading method
JPH05233478A (en) Flash memory rewriting circuit
JPH06180674A (en) Data storage device
JP2005128613A (en) Image forming device
JPH10283172A (en) Flash rom data rewrite system
KR100290280B1 (en) Microcontroller with Programmable Flash Memory
JP3130312B2 (en) Storage device programming device
JP2853593B2 (en) Download device
JPH04276838A (en) CPU device with built-in memory
JP3912447B2 (en) Memory system and method of using external nonvolatile memory
JP2581057B2 (en) Evaluation microcomputer
JPH1050086A (en) Microcomputer having eeprom and its rewriting method
JP2001075796A (en) Microcomputer, its firmware writing system and writing method
JPH04109334A (en) program change device
JPH02177095A (en) Semiconductor nonvolatile memory
JPH0325544A (en) memory control circuit