JPH04235632A - Program loading method - Google Patents

Program loading method

Info

Publication number
JPH04235632A
JPH04235632A JP142291A JP142291A JPH04235632A JP H04235632 A JPH04235632 A JP H04235632A JP 142291 A JP142291 A JP 142291A JP 142291 A JP142291 A JP 142291A JP H04235632 A JPH04235632 A JP H04235632A
Authority
JP
Japan
Prior art keywords
program
memory card
memory
address area
eprom
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
JP142291A
Other languages
Japanese (ja)
Inventor
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 JP142291A priority Critical patent/JPH04235632A/en
Publication of JPH04235632A publication Critical patent/JPH04235632A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To easily update a program without storing a main program in a ROM even though the memory cost of a device is reduced and also a single body of device is sold to an OEM user. CONSTITUTION:A program loader end a memory card 3 storing an updated program are loader into a device. The address area of a nonvolatile memory EPROM contained in the card 3 is set in an enable state. Then the address area of a flash type EPROM (FEPROM) 2 is also set in en enable state. Under such conditions, the program loader erases totally the storage contents of the FEPROM 2 end then the updated program stored in the address area of the EPROM of the card 3 is transferred into the address area of the FEPROM 2.

Description

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

【0001】0001

【産業上の利用分野】本発明はマイコン制御で動作する
装置におけるプログラムローディング方法に関するもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program loading method for a device operated under microcomputer control.

【0002】0002

【従来の技術】従来のマイコン制御で動作する装置にお
いては、一般にプログラムローダがリードオンリイメモ
リ(ROM)に格納されており、上位制御装置から送信
されるメインプログラムを上記プログラムローダにより
送受信回路を介してRAMにローディングし、これによ
ってメインプログラムをランダムアクセスメモリ(RA
M)に格納している。
2. Description of the Related Art In devices that operate under conventional microcomputer control, a program loader is generally stored in a read-only memory (ROM), and the main program transmitted from a host control device is transmitted by the program loader through a transmitting/receiving circuit. This loads the main program into random access memory (RA).
M).

【0003】0003

【発明が解決しようとする課題】上記したように、従来
の装置においては、RAMとROMを必要とするため、
メモリのコストが高くなるという問題点がある。
[Problems to be Solved by the Invention] As mentioned above, since the conventional device requires RAM and ROM,
There is a problem that the cost of memory increases.

【0004】また、プログラムを上位制御装置(磁気デ
ィスク装置の場合もある)からローディングするため、
装置単体をOEMユーザーに販売するような場合には、
規格の異なる他社製の上位制御装置からのローディング
を期待できないケースが多い。このような場合には、メ
インプログラム自体をROMに格納する必要がある。こ
の場合、プログラムの更新は、ROM交換という形によ
って行うことになり、ROM再製及びROM交換のコス
トが必要になるという問題点があった。
[0004] Furthermore, in order to load a program from a host control device (sometimes a magnetic disk device),
When selling a single device to an OEM user,
In many cases, loading from a higher-level control device made by another company with different standards cannot be expected. In such a case, it is necessary to store the main program itself in the ROM. In this case, the program must be updated by replacing the ROM, which poses the problem of necessitating the cost of remanufacturing the ROM and replacing the ROM.

【0005】本発明はこれらの従来技術の問題点に鑑み
なされたもので、装置におけるメモリコストを低減し、
かつ装置単体をOEMユーザーに販売するような場合に
おいても、ROMにメインプログラムを格納することな
く、簡単にプログラム更新を行なえるプログラムローデ
ィング方法を提供することを目的としている。
The present invention was devised in view of these problems of the prior art, and it reduces the memory cost in the device.
Another object of the present invention is to provide a program loading method that allows the program to be easily updated without storing the main program in the ROM even when the device is sold to an OEM user.

【0006】[0006]

【課題を解決するための手段】本発明は上記目的を達成
するために、プログラムとプログラムローダを格納して
いるメモリカードを上記装置に装着し、上記メモリカー
ド内のプログラムローダを起動して、装置内の一括消去
可能な記憶手段に記憶されているプログラムを一括消去
し、次にメモリカードに記憶されているプログラムを読
み出して、装置内の上記記憶手段に転送して記憶するよ
うにしたものである。
[Means for Solving the Problems] In order to achieve the above object, the present invention installs a memory card storing a program and a program loader in the above device, starts the program loader in the memory card, A system in which the programs stored in a storage means that can be erased all at once in the device are erased all at once, and then the program stored in the memory card is read out and transferred to and stored in the storage means in the device. It is.

【0007】[0007]

【作用】本発明によれば、メモリカードを装着するだけ
で、プログラムの更新を行うことが可能となり、装置内
にプログラムローダを格納する不揮発性メモリ(EPR
OM等)を持つ必要がなく、メモリコストを削減できる
。また、装置単体をOEMユーザーに販売するような場
合においても、ROMにメインプログラムを格納する必
要がなく、メモリカードにより簡単にプログラム更新を
行うことができる
[Operation] According to the present invention, programs can be updated simply by installing a memory card.
There is no need to have OM, etc.), and memory costs can be reduced. In addition, even when selling a single device to an OEM user, there is no need to store the main program in ROM, and the program can be easily updated using a memory card.

【0008】。[0008].

【実施例】以下、添付の図面に示す実施例により、さら
に詳細に本発明について説明する。図1は、本発明にか
かるマイコン制御で動作する装置の一実施例を示すブロ
ック図である。図1に示すように、本実施例の装置は、
マイクロプロセッサ1と、プログラムを格納する電気的
に一括消去可能なフラッシュ型EPROM(以下、FE
PROMと称す)2と、EPROMを搭載している着脱
自在型のメモリカード3と、メモリコントロール4と、
インバータ5と、バス6と、RAM11とから構成され
ている。なお、上記フラッシュ型EPROMは、電気的
に一括消去可能であり、プログラムを格納するメモリと
して、現在のところ最も低コストのものである。
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 an embodiment of a device that operates under microcomputer control according to the present invention. As shown in FIG. 1, the device of this example has the following features:
A microprocessor 1 and an electrically erasable flash EPROM (hereinafter referred to as FE) that stores programs.
(referred to as PROM) 2, a removable memory card 3 equipped with an EPROM, and a memory control 4.
It is composed of an inverter 5, a bus 6, and a RAM 11. The flash type EPROM can be electrically erased all at once, and is currently the lowest cost memory for storing programs.

【0009】ここで、バス6はデータバスとアドレスバ
スとリード/ライト信号等の制御信号を通すコントロー
ルバスを含んで構成されている。
Here, the bus 6 includes a data bus, an address bus, and a control bus through which control signals such as read/write signals are passed.

【0010】また、電圧Vccのプルアップ抵抗を持つ
インバータ5の入力側は、メモリカード3が接続された
場合に限って、メモリカード3内の配線パターンを介し
てグランドに接続される。したがって、インバータ5は
、メモリカード接続有無信号7として、メモリカード3
が接続されている場合には“1”を出力し、メモリカー
ド3が接続されていない場合には“0”を出力する。イ
ンバータ5から出力されるメモリカード接続有無信号7
は、メモリコントロール回路4に入力される。
Further, the input side of the inverter 5 having a pull-up resistor of voltage Vcc is connected to ground via a wiring pattern within the memory card 3 only when the memory card 3 is connected. Therefore, the inverter 5 outputs the memory card 3 as the memory card connection presence/absence signal 7.
When the memory card 3 is connected, it outputs "1", and when the memory card 3 is not connected, it outputs "0". Memory card connection presence signal 7 output from inverter 5
is input to the memory control circuit 4.

【0011】メモリコントロール4は、上記メモリカー
ド有無信号7を受信し、メモリカード有無信号7が“1
”のときFEPROM2に対してチップイネーブル信号
8を出力し、メモリカード有無信号7が“0”のときメ
モリカード3に対してチップイネーブル信号9を出力す
る。さらに、メモリコントロール4は、信号線10を介
してFEPROM2に対して、消去制御信号・書込制御
信号・モード制御信号をそれぞれ出力する。なお、チッ
プイネーブル信号8,9は、通常動作時においては、上
記したようにインバータ5から出力されるメモリカード
有無信号7によっていずれか一方が“1”となるように
形成され、後述するプログラムコピー実行時においては
チップイネーブル信号8,9の双方が“1”となるよう
に形成される。
The memory control 4 receives the memory card presence/absence signal 7 and determines that the memory card presence/absence signal 7 is "1".
”, the chip enable signal 8 is output to the FEPROM 2, and when the memory card presence/absence signal 7 is “0”, the chip enable signal 9 is output to the memory card 3. An erase control signal, a write control signal, and a mode control signal are respectively output to the FEPROM 2 via the FEPROM 2.In addition, during normal operation, the chip enable signals 8 and 9 are output from the inverter 5 as described above. One of the chip enable signals 8 and 9 is set to "1" depending on the memory card presence/absence signal 7, and both chip enable signals 8 and 9 are set to "1" when executing a program copy, which will be described later.

【0012】すなわち、チップイネーブル信号8,9は
、アドレス領域Aに割り付けられたアドレスバスをデコ
ードして作られる信号であり、通常動作時においては、
前記メモリカード接続有無信号7により、図2に示すよ
うにメモリカード未接続時はFEPROM2のアドレス
領域Aがイネーブルとなり、図3に示すようにメモリカ
ード接続時はメモリカード3のEPROMのアドレス領
域Aがイネーブルされる。したがって、メモリカード3
が未接続のときには、マイクロプロセッサ1はFEPR
OM2に格納されているプログラムを実行し、メモリカ
ード接続時はマイクロプロセッサ1はメモリカード3の
EPROMに格納されているプログラムを実行する。な
お、プログラムコピー実行時においては、図4に示すよ
うに、メモリコントロール4は、チップイネーブル信号
8,9の両方を“1”とし、メモリ カード3のEPR
OMのアドレス領域AとFEPROM2のアドレス領域
B(アドレス領域Aと重ならない別の領域)がイネーブ
ルされる。
That is, chip enable signals 8 and 9 are signals generated by decoding the address bus assigned to address area A, and during normal operation,
The memory card connection presence/absence signal 7 enables the address area A of the FEPROM 2 when the memory card is not connected as shown in FIG. 2, and enables the address area A of the EPROM of the memory card 3 when the memory card is connected as shown in FIG. is enabled. Therefore, memory card 3
is not connected, microprocessor 1
The microprocessor 1 executes the program stored in the OM2, and when the memory card is connected, the microprocessor 1 executes the program stored in the EPROM of the memory card 3. Note that during program copy execution, as shown in FIG.
Address area A of OM and address area B of FEPROM 2 (another area that does not overlap with address area A) are enabled.

【0013】次に、プログラムコピー実行時の動作につ
いて説明する。この場合には、メモリカード3内のEP
ROMにプログラムローダと更新プログラムが格納され
ているものとし、このメモリカード3を装置に装着する
。この場合、前記したように、メモリカード3内のEP
ROMのアドレス領域Aがイネーブルされ、さらにFE
PROM2のアドレス領域Bがイネーブルされる。この
状態において、プログラムローダは、FEPROM2の
記憶内容を一括消去し、次にメモリカード3内のEPR
OMのアドレス領域Aに格納されている更新プログラム
を読み出し、読み出した更新プログラムをFEPROM
2のアドレス領域Bに格納する。
Next, the operation when executing a program copy will be explained. In this case, the EP in memory card 3
It is assumed that a program loader and an update program are stored in the ROM, and this memory card 3 is installed in the device. In this case, as mentioned above, the EP in the memory card 3
ROM address area A is enabled and FE
Address area B of PROM2 is enabled. In this state, the program loader erases the memory contents of the FEPROM 2 all at once, and then erases the EPR in the memory card 3.
Reads the update program stored in address area A of the OM, and transfers the read update program to the FEPROM.
2 in address area B.

【0014】したがって、本構成により、装置内にプロ
グラムローダを格納する不揮発性メモリ(EPROM等
)を持たなくとも、メモリカード3を接続することによ
り、メモリカード3内のEPROMの一部に格納された
プログラムローダを実行し、アドレス領域Aからアドレ
ス領域Bへのデータ転送を実行することによって、メモ
リカード3のEPROM内の更新プログラムをFEPR
OM2に書込むことができる。
Therefore, with this configuration, even if the device does not have a non-volatile memory (such as an EPROM) for storing the program loader, by connecting the memory card 3, the program loader can be stored in a part of the EPROM in the memory card 3. By executing the program loader and transferring data from address area A to address area B, the update program in the EPROM of the memory card 3 is transferred to the FEPR.
Can be written to OM2.

【0015】なお、マイクロプロセッサ1のアドレスサ
イズが不足し、アドレス領域を2つ定義できないときは
、マイクロプロセッサ1のバス6に接続されているRA
M11に対して、メモリカード3内のEPROMからR
AM11にプログラムローダを転送し、RAM11上で
プログラムローダを実行するようにする。次に、RAM
11をワークメモリとして使用し、チップイネーブル信
号8を“0”、チップイネーブル信号9を“1”にして
、メモリカード3のEPROMだけをイネーブルし、そ
のアドレス領域Aから更新プログラムを読み出してRA
M11に転送しする。次に、チップイネーブル信号8を
“1”、チップイネーブル信号9を“0”にして、FE
PROM2だけをイネーブルし、RAM11からFEP
ROM2へのデータ転送を行う。これによって、更新プ
ログラムのコピーが実行できる。なお、RAM11のア
ドレス領域が小さいときには、更新プログラムのコピー
を複数回に分けて行えばよい。
Note that if the address size of the microprocessor 1 is insufficient and two address areas cannot be defined, the RA connected to the bus 6 of the microprocessor 1
For M11, from EPROM in memory card 3
The program loader is transferred to the AM 11 and executed on the RAM 11. Next, RAM
11 as a work memory, set the chip enable signal 8 to "0" and the chip enable signal 9 to "1", enable only the EPROM of the memory card 3, read the update program from the address area A, and read the update program from the RA.
Transfer to M11. Next, the chip enable signal 8 is set to "1", the chip enable signal 9 is set to "0", and the FE
Enable only PROM2 and read from RAM11 to FEP
Transfer data to ROM2. This will allow you to copy the updates. Note that when the address area of the RAM 11 is small, the update program may be copied multiple times.

【0016】以上の説明から明らかなように、本実施例
によれば、メモリカード3を接続するだけで、他に特別
なプログラムローディングのための装置を必要とするこ
となく、プログラムの更新を行うことができる。また、
プログラムローダ用のROM等のメモリを持つ必要もな
い。
As is clear from the above description, according to this embodiment, programs can be updated simply by connecting the memory card 3 without requiring any other special program loading device. be able to. Also,
There is no need to have memory such as ROM for the program loader.

【0017】さらに、プログラム更新時においては、メ
モリカード3のEPROMに格納されているプログラム
を新しいプログラムに変更し、メモリカード3によって
装置のプログラムをオンボードで更新できるので、EP
ROMに比べて変更に伴うコストも少なくできる。
Furthermore, when updating a program, the program stored in the EPROM of the memory card 3 can be changed to a new program, and the program of the device can be updated on-board using the memory card 3.
Compared to ROM, the cost associated with changes can be reduced.

【0018】[0018]

【発明の効果】以上の説明から明らかなように、本発明
によれば、マイコン制御による装置におけるメモリコス
トを低減し、かつ装置単体をOEMユーザーに販売する
ような場合においても、ROMにメインプログラムを格
納する必要の無いプログラムローディング方法を提供す
ることができる。
As is clear from the above description, according to the present invention, it is possible to reduce the memory cost in a device controlled by a microcomputer, and even when the device is sold alone to an OEM user, the main program can be stored in the ROM. It is possible to provide a program loading method that does not require storing.

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

【図1】本発明の一実施例のハードウエア構成を示すブ
ロック図。
FIG. 1 is a block diagram showing the hardware configuration of an embodiment of the present invention.

【図2】図1に示すマイクロプロセッサのメモリマップ
を示す説明図。
FIG. 2 is an explanatory diagram showing a memory map of the microprocessor shown in FIG. 1;

【図3】図1に示すマイクロプロセッサのメモリマップ
を示す説明図。
FIG. 3 is an explanatory diagram showing a memory map of the microprocessor shown in FIG. 1;

【図4】図1に示すマイクロプロセッサのメモリマップ
を示す説明図。
FIG. 4 is an explanatory diagram showing a memory map of the microprocessor shown in FIG. 1;

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

1…マイクロプロセッサ 2…FEPROM 3…メモリカード 4…メモリコントロール 5…インバータ 6…バス 7…メモリカード有無信号 8…チップイネーブル信号 9…チップイネーブル信号 10…信号線 11…RAM 1...Microprocessor 2...FEPROM 3...Memory card 4...Memory control 5...Inverter 6...Bus 7...Memory card presence/absence signal 8...Chip enable signal 9...Chip enable signal 10...Signal line 11...RAM

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】マイクロプロセッサの制御によって動作す
る装置のプログラムローディング方法において、プログ
ラムとプログラムローダを格納しているメモリカードを
上記装置に装着し、上記プログラムローダを起動して、
装置内の一括消去可能な記憶手段に記憶されているプロ
グラムを一括消去し、次にメモリカードに記憶されてい
るプログラムを読み出して、読み出したプログラムを装
置内の上記記憶手段に転送して記憶することを特徴とす
るプログラムローディング方法。
1. A program loading method for a device that operates under the control of a microprocessor, comprising: loading a memory card storing a program and a program loader into the device; activating the program loader;
Batch erasing the programs stored in the batch erasable storage means in the device, then reading out the programs stored in the memory card, and transferring the read programs to the storage means in the device and storing them. A program loading method characterized by:
JP142291A 1991-01-10 1991-01-10 Program loading method Pending JPH04235632A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP142291A JPH04235632A (en) 1991-01-10 1991-01-10 Program loading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP142291A JPH04235632A (en) 1991-01-10 1991-01-10 Program loading method

Publications (1)

Publication Number Publication Date
JPH04235632A true JPH04235632A (en) 1992-08-24

Family

ID=11501028

Family Applications (1)

Application Number Title Priority Date Filing Date
JP142291A Pending JPH04235632A (en) 1991-01-10 1991-01-10 Program loading method

Country Status (1)

Country Link
JP (1) JPH04235632A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1995022219A1 (en) * 1994-02-09 1995-08-17 Harris Corporation Firmware modification in remote measurement unit
US6000005A (en) * 1996-08-06 1999-12-07 Nec Corporation Method of writing a flash memory including dynamically switching and allocating memory spaces to the flash memory blocks
JP2001188686A (en) * 1999-10-22 2001-07-10 Sony Corp Data rewriting device, control method, and recording medium
JP2002140204A (en) * 2000-10-31 2002-05-17 Mitsubishi Electric Corp Device and method for upgrade
JP2010176182A (en) * 2009-01-27 2010-08-12 Mitsubishi Electric Corp Electronic equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1995022219A1 (en) * 1994-02-09 1995-08-17 Harris Corporation Firmware modification in remote measurement unit
US6000005A (en) * 1996-08-06 1999-12-07 Nec Corporation Method of writing a flash memory including dynamically switching and allocating memory spaces to the flash memory blocks
JP2001188686A (en) * 1999-10-22 2001-07-10 Sony Corp Data rewriting device, control method, and recording medium
JP2002140204A (en) * 2000-10-31 2002-05-17 Mitsubishi Electric Corp Device and method for upgrade
JP2010176182A (en) * 2009-01-27 2010-08-12 Mitsubishi Electric Corp Electronic equipment

Similar Documents

Publication Publication Date Title
US6148441A (en) Method for reprogramming flash ROM in a personal computer implementing an EISA bus system
US6009496A (en) Microcontroller with programmable embedded flash memory
US5664194A (en) Method for autonomously transferring code to a computer without accessing local memory by the central processing unit
US6505279B1 (en) Microcontroller system having security circuitry to selectively lock portions of a program memory address space
EP0991081B1 (en) Emulated EEPROM memory device and corresponding method
JPH03141447A (en) Method and apparatus for updating farm ware residing in electrically reloadable programmable read-only memory
EP0917054A2 (en) Memory paging method for microcontrollers
JP2004118826A (en) System unit booted using flash memory, and its booting method
KR100265266B1 (en) Microcomputer comprsing flash eeprom and method of erasing flash eeprom
US20050251615A1 (en) Microcomputer
JP3173407B2 (en) Microcomputer with built-in flash EEPROM
JPH04235632A (en) Program loading method
US6594727B1 (en) Entertainment system which includes an information processing unit capable of communicating with detachable portable storage device even after insertion of a different portable storage device
US7046536B2 (en) Programable identification circuitry
US6000005A (en) Method of writing a flash memory including dynamically switching and allocating memory spaces to the flash memory blocks
US6148362A (en) Microcomputer using nonvolatile semiconductor memory to store user code/data
JPH06275084A (en) Nonvolatile semiconductor storage and data processor using the same
JPH09146767A (en) Method for reloading program
JPH11282690A (en) Method for writing control program, information processor and information processing system
US6466994B1 (en) Method and system for programming a system board using a peripheral controller
KR100290280B1 (en) Microcontroller with Programmable Flash Memory
US20020004877A1 (en) Method and system for updating user memory in emulator systems
JPH04283837A (en) Program loading method
WO1997009673A1 (en) Transferring code to computer without accessing ram
JP3912447B2 (en) Memory system and method of using external nonvolatile memory