JPH04125730A - Controller - Google Patents

Controller

Info

Publication number
JPH04125730A
JPH04125730A JP24649290A JP24649290A JPH04125730A JP H04125730 A JPH04125730 A JP H04125730A JP 24649290 A JP24649290 A JP 24649290A JP 24649290 A JP24649290 A JP 24649290A JP H04125730 A JPH04125730 A JP H04125730A
Authority
JP
Japan
Prior art keywords
memory
information
rom
read
volatile memory
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
JP24649290A
Other languages
Japanese (ja)
Inventor
Hideki Sugiyama
秀樹 杉山
Hironori Yamamoto
浩憲 山本
Takeshi Niwada
剛 庭田
Isao Sasazaki
勲 笹崎
Yasushi Tanzawa
丹澤 靖
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP24649290A priority Critical patent/JPH04125730A/en
Publication of JPH04125730A publication Critical patent/JPH04125730A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To easily update a control program by providing a controller with a non-volatile memory and storing change information in this memory at the time of changing the control program of a microprocessor stored in a ROM in a device like a printer. CONSTITUTION:This controller consisting of a processing means (MPU) 1 and a ROM 2 is provided with non-volatile memories 3 and 4. When it is necessary to change the contents of the ROM 2 due to bugs, improvement, etc., of the program, the MPU 1 is controlled through a line by a center terminal to write information, which indicates th change of contents of the ROM 2, and information of the changed page in the memory 3. Further, the changing information of this page in the ROM 2 is written in the memory 4. The MPU 1 first reads the information, which indicates whether contents are changed or not, from the memory 3 in the case of reading out change information. When they are changed, the read of the memory 4 is permitted, and the read of teh designated page of the ROM 2 is inhibited, and the memory 4 is read.

Description

【発明の詳細な説明】 〔概要〕 マイクロプロセッサのようなプログラムで動作する処理
手段の制御プログラムを最新のプログラムレベルに更新
して動作させる制御装置に関し、装置設置現場でのリー
ドオンリメモリの交換を必要とせず、さらに転送時間及
び転送回数を最小にしながら、プログラムの更新及び/
又は実行が可能である制御装置を提供することを目的と
し、プログラムで動作する処理手段により制御される制
御装置において、プログラム又はデータが格納されたリ
ードオンリメモリと、該リードオンリメモリを複数ペー
ジに分けたそれぞれの領域に対して変更情報の有無を格
納する第1の不揮発性メモリと、前記リードオンリメモ
リの所定ページ分に相当する変更情報を格納し得る第2
の不揮発性メモリとを有し、前記リードオンリメモリの
内容を変更する必要が生した際に、前記第1の不揮発性
メモリに変更情報有りの情報を、前記第2の不揮発性メ
モリに変更情報をそれぞれ格納しておき、前記処理手段
が前記リードオンリメモリから情報を読み出す際に、前
記第1の不揮発性メモリに変更情報有りの情報が格納さ
れておれば、リードオンリメモリの変更のあるページの
みを、前記第2の不揮発性メモリの該当する変更情報に
置き換えて読み出すことを特徴とする。
[Detailed Description of the Invention] [Summary] Regarding a control device that updates the control program of a processing means operated by a program such as a microprocessor to the latest program level and operates it, the read-only memory can be replaced at the device installation site. Program updates and/or
The purpose of the control device is to provide a control device that is capable of executing the program, and is controlled by a processing means that operates on a program. a first non-volatile memory that stores the presence or absence of change information for each divided area; and a second non-volatile memory that can store change information corresponding to a predetermined page of the read-only memory.
non-volatile memory, and when it becomes necessary to change the contents of the read-only memory, information indicating that there is change information is transferred to the first non-volatile memory and change information is transferred to the second non-volatile memory. are stored respectively, and when the processing means reads information from the read-only memory, if information indicating that there is change information is stored in the first non-volatile memory, the page with the change in the read-only memory is stored. The second non-volatile memory is read by replacing only the change information with the corresponding change information in the second non-volatile memory.

〔産業上の利用分野〕 本発明は、例えばマイクロプロセ、すのようなプログラ
ムで動作する処理手段の制御プログラムを最新のプログ
ラムレベルに更新して動作させる制御装置に関するもの
である。
[Industrial Field of Application] The present invention relates to a control device that updates a control program of a processing means, such as a microprocessor, to the latest program level and operates the program.

近年のコンビュータンステムにおいては、システムを構
成する装置の高性能化・高機能化が要求されると同時に
小型軽量化並びに低価格化が要求されている。
In recent years, there has been a demand for high performance and high functionality of the devices constituting the system, and at the same time, there has been a demand for reductions in size, weight, and cost.

このように小型軽量化が要求される、プリンタその他の
装置においては、高機能化を達成するために必要とされ
る複雑かつ大容量化したプログラムを格納しながら装置
全体を小型化するためにマスクROMを採用する等の努
力がなされている。
In printers and other devices that are required to be smaller and lighter, masks are used to downsize the entire device while storing the complex and large-capacity programs needed to achieve high functionality. Efforts are being made to adopt ROM.

しかし、ユーザ要求による場合やプログラムバグ等によ
り制御プログラムの一部を修正する必要が生じた場合、
新たに必要な内容の書き込まれたマスクROMを作成し
、これを装置設置現場等において従来のROMと交換す
る必要がある。
However, if it becomes necessary to modify part of the control program due to user requests or program bugs,
It is necessary to create a mask ROM in which new necessary contents are written and replace it with the conventional ROM at the equipment installation site or the like.

かかる対策は多大の時間及び労力を必要とし、各種の困
難が伴っていた。
Such countermeasures required a great deal of time and effort, and were accompanied by various difficulties.

〔従来の技術〕[Conventional technology]

従来の制御装置においては、主として装置設置場所にお
いてROMの交換が行われており、膨大な人手と時間と
が費やされていた。その後、マスクROMではなく、例
えば紫外線の照射により記憶内容を消去することが可能
なEFROM(消去及びプログラム可能ROM)を採用
することにより、ROM作成期間は短縮されたものの、
ROMの交換作業を省略することはできず、依然として
膨大な人手と時間とを要していた。
In conventional control devices, the ROM is mainly replaced at the location where the device is installed, consuming a huge amount of manpower and time. After that, the ROM creation period was shortened by adopting EFROM (erasable and programmable ROM), whose memory contents can be erased by irradiation with ultraviolet rays, for example, instead of mask ROM.
The work of replacing the ROM could not be omitted and still required a huge amount of manpower and time.

近年では、ROMとRAMとを二重に搭載することによ
り、プログラムを一旦RAM上に展開し、変更データを
RAM上において修正する方式も採用されている。
In recent years, a method has also been adopted in which a ROM and a RAM are installed in duplicate, so that a program is once loaded onto the RAM and modified data is modified on the RAM.

しかし、この場合のRAM容量はROM全体を包含でき
る記憶容量が必要となり、また素子の物理的寸法も大き
くなりがちで、小型化の要請に反している。
However, the RAM capacity in this case requires a storage capacity that can include the entire ROM, and the physical dimensions of the element also tend to increase, which is contrary to the demand for miniaturization.

また、不揮発性メモリを使用し、例えばターミナルコン
トローラや回線を介してのセンター設置のホストコンピ
ュータ等の上位装置からダウンロードする方式も採用さ
れているが、プログラム又は格納データ全体を転送する
にはかなりの時間を必要とする欠点があり、かつRAM
がバッテリーハソクアソブの場合には、ダウンロード用
制御プログラムを別途備えたROMに格納しておく必要
があり、結局ROMとRAMとの二重搭載が不可欠であ
るため、装置小型化の要請に反するものとなっていた。
In addition, methods have been adopted that use non-volatile memory and download from a higher-level device such as a terminal controller or a centrally installed host computer via a line, but it takes a considerable amount of time to transfer the entire program or stored data. It has the disadvantage of requiring time and RAM.
In the case of battery storage, the control program for download must be stored in a separate ROM, which ultimately requires dual installation of ROM and RAM, which goes against the demand for device miniaturization. It had become a thing.

また、記憶内容が電気的に消去可能でありかつプログラ
ム可能なROMであるEEPROMを使用して記憶内容
の更新を行う方式にあっては、容量の十分大きなEEF
ROMが得難くかつ高価である欠点があり、抜本的な解
決策とはなり得なかった・ したがって、従来技術においては、装置規模やシステム
構成の如何、又は小型・軽量化の要求の度合い等に応じ
て、人手及び時間を掛けでやむを得すROM交換を行っ
たり、又は上位装置からのダウンロード方式を採用し、
ROMとRAMとのメモリ二重化方式又はEEPROM
を採用して小型化を断念する等の妥協策が採られていた
In addition, in the method of updating the memory contents using EEPROM, which is a ROM whose memory contents are electrically erasable and programmable, an EEPROM with a sufficiently large capacity is used.
ROMs have the disadvantage of being difficult to obtain and expensive, and cannot be used as a fundamental solution. Therefore, in the conventional technology, it is difficult to obtain ROMs depending on the scale of the device, the system configuration, or the degree of demand for miniaturization and weight reduction. Depending on the situation, we may have to replace the ROM unavoidably, which requires manpower and time, or we may need to download it from a host device.
Dual memory system of ROM and RAM or EEPROM
Compromise measures were adopted, such as abandoning miniaturization in favor of

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

本発明は、上記事情に鑑みてなされたもので、装置設置
現場でのROMの交換を必要とせず、さらに転送時間及
び転送回数を最小にしながら、格納情報の更新/実行が
可能である制御装置を提供することを目的とする。
The present invention has been made in view of the above circumstances, and provides a control device that does not require replacing the ROM at the device installation site and can update/execute stored information while minimizing transfer time and number of transfers. The purpose is to provide

〔課題を解決するための手段〕[Means to solve the problem]

第1図は本発明の原理説明図であり、装置全体は処理手
段1によって制御される。
FIG. 1 is an explanatory diagram of the principle of the present invention, and the entire apparatus is controlled by a processing means 1. In FIG.

回申、2はプログラムを格納するためのリードオンリメ
モリ(ROM)であり、処理手段1が直接リードし、か
つ格納プログラムが実行されるものであり、3は第1の
不揮発性メモリであって、その領域を複数ページ(Nペ
ージ)に分けて、ROM2に記憶されたプログラム又は
データの内容の変更情報の有無及び該当データの格納エ
リアを示す情報を格納するものであり、4は前記指定ペ
ージに該当する所定ページ(Mページ)分の変更情報を
格納する第2の不揮発性メモリである。
Reference numeral 2 is a read-only memory (ROM) for storing programs, which is directly read by the processing means 1 and executes the stored program; 3 is a first non-volatile memory; , the area is divided into a plurality of pages (N pages), and information indicating the presence or absence of change information of the program or data contents stored in the ROM 2 and the storage area of the corresponding data is stored, and 4 is the specified page. This is a second nonvolatile memory that stores change information for a predetermined page (M pages) corresponding to .

これら第1及び第2の不揮発性メモリ3及び4は、それ
ぞれが処理手段1により直接リード/ライト可能であっ
て、上位装置からのダウンロード又は外部記憶装置等に
より情報の書き込みが可能であり、制御装置はこれら情
報に従って置き換えられた変更情報(新しいプログラム
)により実行が可能である。
These first and second nonvolatile memories 3 and 4 can be directly read/written by the processing means 1, and information can be written by downloading from a host device or by an external storage device, etc., and can be controlled. The device can be executed with the changed information (new program) replaced according to this information.

〔作用] 本発明では、第1図のリードオンリメモリ2に記憶され
た情報の内容を変更する必要が生した場合には、上位装
置又は外部記憶装置等から直接又は回線を介して第1の
不揮発性メモリ3及び第2の不揮発性メモリ4に所要情
報が格納される。
[Operation] In the present invention, when it becomes necessary to change the contents of the information stored in the read-only memory 2 shown in FIG. Necessary information is stored in the nonvolatile memory 3 and the second nonvolatile memory 4.

この際リードオンリメモリ2については、電気的にも物
理的にもなんら変更はなされない。
At this time, no electrical or physical changes are made to the read-only memory 2.

処理手段1が格納情報を読み取る際には、先ず第1の不
揮発性メモリ3の内容によって、リードオンリメモリ2
に格納されている情報の内容を変更する必要があるか否
かが判断され、変更がない場合には、第2の不揮発性メ
モリ4の読出しを禁止しておきそのままリードオンリメ
モリ2の内容が読出される。
When the processing means 1 reads stored information, it first reads the read-only memory 2 depending on the contents of the first non-volatile memory 3.
It is determined whether or not it is necessary to change the contents of the information stored in the memory. If there is no change, reading of the second non-volatile memory 4 is prohibited and the contents of the read-only memory 2 remain unchanged. Read out.

一方、リードオンリメモリ2の記憶内容を変更する必要
がある旨の情報が格納されている場合には、リードオン
リメモリ2の該当ページの読出しを禁止すると同時に、
該当ページ部分の更新された情報の格納されている第2
の不揮発性メモリ4の読み出しを実行する。したがって
、第1の不揮発性メモリ3に変更を指示する情報がある
場合にのみリードオンリメモリ2の格納情報の該当部分
の代わりに第2の不揮発性メモリ4に格納された変更情
報が処理手段1に読込まれ、みかけ上はリードオンリメ
モリ2の格納情報が変更されたように機能し、リードオ
ンリメモリ2の交換又は情報を変更すること無しに、プ
ログラム又は情報の更新/実行が可能となる。
On the other hand, if information indicating that the storage contents of the read-only memory 2 need to be changed is stored, reading of the corresponding page of the read-only memory 2 is prohibited, and at the same time,
The second page that stores the updated information for the corresponding page part
The non-volatile memory 4 is read. Therefore, only when the first non-volatile memory 3 has information instructing a change, the processing means 1 uses the change information stored in the second non-volatile memory 4 instead of the corresponding part of the information stored in the read-only memory 2. The information stored in the read-only memory 2 appears to be changed, and the program or information can be updated/executed without replacing the read-only memory 2 or changing the information.

〔実施例〕〔Example〕

第2図は、第1図に示した本発明の制御装置の実施例を
示すブロック図を示すものである。なお、第1図と同一
の部分には同一の符号を付している。
FIG. 2 shows a block diagram showing an embodiment of the control device of the present invention shown in FIG. Note that the same parts as in FIG. 1 are given the same reference numerals.

1は処理手段であり、通常はマイクロプロセッサ(以下
、rMPU、という)が用いられる。
1 is a processing means, and a microprocessor (hereinafter referred to as rMPU) is usually used.

2はリードオンリメモリ(以下、rROMJという)で
あり、プログラム又はその他のデータを格納しておくも
のであり、全記憶領域はNページ分に分割されている。
Reference numeral 2 denotes a read-only memory (hereinafter referred to as rROMJ), which stores programs or other data, and the entire storage area is divided into N pages.

この場合のNは、装置規模、制御方式、制御内容等に応
して決定される。
In this case, N is determined depending on the device scale, control method, control content, etc.

第1の不揮発性メモリ3は、ROM2のページ数に相当
するN個の情報を格納するもので、通常の状態では電源
が遮断されても記憶内容が保持される。
The first non-volatile memory 3 stores N pieces of information corresponding to the number of pages of the ROM 2, and under normal conditions, the stored contents are retained even if the power is cut off.

第2の不揮発性メモリ4はROM2のページに該当する
格納領域をMページ分備えている。この場合のMは、格
納されるプログラム又はデータの内容等に応して適宜決
定される。
The second non-volatile memory 4 has a storage area corresponding to M pages of the ROM 2. In this case, M is determined as appropriate depending on the contents of the program or data to be stored.

回路選択部5は、第1の不揮発性メモリ3、第2の不揮
発性メモリ4及びROM2を各々の選択条件により選択
信号を出力するものである。
The circuit selection section 5 outputs selection signals for the first nonvolatile memory 3, the second nonvolatile memory 4, and the ROM 2 according to respective selection conditions.

メモリ選択部6は、第2の不揮発性メモリ4の特定ペー
ジを指定すると同時に、MPUIの読出し要求時であれ
ば第1の不揮発性メモリ3の格納情報に応して、MPU
IがROM2又は第2の不揮発性メモリ4の何れか一方
のみを読み出し得るように制御する。
The memory selection unit 6 specifies a specific page of the second non-volatile memory 4, and at the same time selects the MPU according to the information stored in the first non-volatile memory 3 in the case of an MPUI read request.
Control is performed so that I can read only either the ROM 2 or the second nonvolatile memory 4.

本実施例の動作は以下のように行われる。装置完成時に
は、ROM2に必要なプログラム又はデータが格納され
ており、第1の不揮発性メモリ3は、変更情報無しの状
態になっている。
The operation of this embodiment is performed as follows. When the device is completed, the necessary programs or data are stored in the ROM 2, and the first nonvolatile memory 3 is in a state without change information.

ユーザの要望やプログラムのバグ又は改良等により、R
OM2の内容に変更の必要性が生した場合には、図示し
ない回線を介してセンターターミナル又はセンターの制
御マシンからMPUIを制御し、第1の不揮発性メモリ
3にROM2内の該当ページに変更がある旨の情報及び
第2の付揮発性メモリ4上の変更エリアの情報を書き込
む。さらに、第2の不揮発性メモリ4にROM2内の該
当ページの変更情報の書き込みを行う。
Due to user requests, bugs or improvements to the program, R
When it is necessary to change the contents of OM2, the MPUI is controlled from the center terminal or the center control machine via a line not shown, and the changes are made to the corresponding page in ROM2 in the first non-volatile memory 3. Information to that effect and information on the changed area on the second volatile memory 4 are written. Further, change information for the corresponding page in the ROM 2 is written into the second nonvolatile memory 4.

このように、変更情報を書き込まれた制御装置は、MP
UIからの読み出しが発生すると、第3図に示す動作を
行う。即ち、先ず、第1の不揮発性メモリ3の格納情報
に応してメモリ選択部6が、ROM2の情報の変更があ
るか否かを調べる(ステップ511)。ここで変更がな
いことが判断されると、第2の不揮発性メモリ4の読み
出しを禁止し、回路選択部5に読み出し可能信号を付与
する。これにより、ROM2の指定ページが読み出され
ることになる (ステップ512)。
In this way, the control device to which the change information has been written is the MP
When reading from the UI occurs, the operation shown in FIG. 3 is performed. That is, first, the memory selection unit 6 checks whether the information in the ROM 2 has been changed in accordance with the information stored in the first nonvolatile memory 3 (step 511). If it is determined that there is no change, reading from the second nonvolatile memory 4 is prohibited and a read enable signal is given to the circuit selection section 5. As a result, the designated page of ROM2 is read out (step 512).

一方、上記ステップSllで変更があることが判断され
ると、第2の不揮発性メモリ4の読み出しを許可し、回
路選択部5に読み出し禁止信号を付与する。これにより
、ROM2の指定ページからの読み出しが禁止される一
方、第2の不揮発性メモリ(EEFROM)4が読み出
されることになる (ステップ513)。
On the other hand, if it is determined in step Sll that there is a change, reading from the second nonvolatile memory 4 is permitted, and a read prohibition signal is given to the circuit selection section 5. As a result, reading from the designated page of the ROM 2 is prohibited, while reading from the second nonvolatile memory (EEFROM) 4 is performed (step 513).

次いで、上記ステップS12又はS13において読み出
されたデータ、つまりプログラムを実行する (ステッ
プ514)。次いで、プログラム終了したか否かを判断
しくステップ515)、終了するまで上記一連の処理を
繰り返す。
Next, the data read out in step S12 or S13, that is, the program, is executed (step 514). Next, it is determined whether the program has ended or not (step 515), and the series of processes described above are repeated until the program ends.

このような構成及び動作によって、ROM2の格納内容
に変更の必要性が生じた場合にも、容量の小さな第1及
び第2の不揮発性メモリ3及び4の内容のみを変更し、
ROM2の製作、交換を行うことなしに、容易かつ廉価
にプログラムの更新/実行が可能となる。
With such a configuration and operation, even if it becomes necessary to change the contents stored in the ROM 2, only the contents of the first and second non-volatile memories 3 and 4, which have small capacities, can be changed.
Programs can be updated/executed easily and inexpensively without creating or replacing the ROM2.

第4図は本発明の実施例をさらに詳しく説明するもので
、第2図に所要数値例を記入したものである。
FIG. 4 explains the embodiment of the present invention in more detail, and shows an example of required numerical values in FIG. 2.

本実施例では、ROM2は64にバイトの容量を採用し
ているが、制御装置の種類又は規模等により適宜選定で
きる。
In this embodiment, the ROM 2 has a capacity of 64 bytes, but it can be selected as appropriate depending on the type or scale of the control device.

RO’M2は、256バイト単位にページ分けられて、
全256ページから構成されている。したかって、アド
レスは右側に示すように、例えば16進数の80000
〜)100FF 、 )10100〜HOIFF 、 
110200〜HO2FF 、  ・・・HFFOO〜
HFFFF となる。なお、上記rH,は16進数であ
ることを示す。
RO'M2 is divided into pages in units of 256 bytes,
It consists of a total of 256 pages. Therefore, the address is, for example, 80000 in hexadecimal as shown on the right.
~)100FF, )10100~HOIFF,
110200~HO2FF,...HFFOO~
It becomes HFFFF. Note that the above rH indicates that it is a hexadecimal number.

第1及び第2の不揮発性メモリ3及び4には、電気的に
消去及びプログラム可能なROMすなわちEEPROM
を採用している。
The first and second nonvolatile memories 3 and 4 include electrically erasable and programmable ROM, that is, EEPROM.
is adopted.

第1の不揮発性メモリ3は、ここではROM2のページ
数N=256ページの情報を記憶するために充分な2に
ハイドの容量のものが選定される。
The first non-volatile memory 3 is selected here to have a capacity of 2 to 100 liters, which is sufficient to store information on the number of pages N=256 of the ROM 2.

この第1の不揮発性メモリ3は、変更情報がある場合に
図示されていない上位装置からの制御に応じて、ROM
2の要変更ページに該当するページの状態を変化させる
。したがって、変更情輯の有無と該当ページの特定情報
とが書き込まれる。
This first non-volatile memory 3 is configured as a ROM in accordance with control from a host device (not shown) when there is change information.
Change the state of the page corresponding to the page requiring change in step 2. Therefore, the presence or absence of change information and specific information of the relevant page are written.

このような変更に応じて、それまで変更無しを表す信号
HOOを出力するものが、該当ページに限って変更状態
を示す信号H01に変化せしめられる。
In response to such a change, the signal HOO indicating no change is outputted to a signal H01 indicating a changed state only for the corresponding page.

第4図の例では、ROM2のページ3に変更があり、変
更内容はEEFROM4のページ1にあることを表して
いる。
The example shown in FIG. 4 shows that page 3 of ROM2 has been changed, and the changed contents are on page 1 of EEFROM4.

第2の不揮発性メモリ4は、ROM2のページに該当す
る256ハイト単位の8ペ一ジ分の領域を確保しており
、2にハイドの容量のものが選定されているが、プログ
ラムの大きさや制御内容によってさらに大きな容量のも
のや小さな容量のものを採用することも任意である。こ
の第2の不揮発性メモリ4は、ROM2の要変更ページ
の新たな情報を格納するものである。本実施例では、上
位装置から転送されるROM2のページ3の更新情報を
格納しておくことになる。
The second non-volatile memory 4 has an area for one eight pages of 256-height units, which corresponds to the page of the ROM 2, and the capacity of the second non-volatile memory 4 is selected to be Hyde, but depending on the size of the program It is also optional to adopt a larger capacity or a smaller capacity depending on the control content. This second non-volatile memory 4 is for storing new information of pages of the ROM 2 that need to be changed. In this embodiment, update information of page 3 of the ROM 2 transferred from the host device is stored.

第4図に示した構成の動作は、以下のようになる。いま
MPUIより命令フェッチのアドレスが出力されると、
ページNの分割単位で第1の不揮発性メモリ、EEFR
OM3が該当するデータを出力する。この出力を受けた
メモリ選択部6は、変更データの有無をチエツクし、出
力が1(00の場合は、ROM2を選択するために回路
選択部5に対して許可信号を、そして第2の不揮発性メ
モリ、EEFROM4に対しては反転信号によって出力
禁止の制御を行う。したがって、MPUIには、通常通
りのROM2のデータの読み込みが行われる。
The operation of the configuration shown in FIG. 4 is as follows. Now, when the instruction fetch address is output from MPUI,
A first non-volatile memory, EEFR, in division units of page N.
OM3 outputs the corresponding data. Upon receiving this output, the memory selection section 6 checks the presence or absence of the changed data, and if the output is 1 (00), sends a permission signal to the circuit selection section 5 to select the ROM 2, and then sends a permission signal to the circuit selection section 5 to select the ROM 2. The output of the external memory EEFROM 4 is inhibited by an inverted signal. Therefore, the data of the ROM 2 is read into the MPUI as usual.

反対に、メモリ選択部6が、図のページ3のように変更
データ有りを表す信号1(01を受けた場合は、ROM
2のページを特定するための回路選択部5に対して禁止
信号を、そしてEEFROM4に対しては許可信号を加
える。その結果、このページ3の場合には、ROM2の
該当ページの読み出しの代わりにMPUIによって指定
される、第2の不揮発性メモリ4のページ1から下位ア
ドレスAO〜A7で指定されるデータがMPUIに読み
込まれる。その結果、MPU 1はあたかもROM2か
ら変更されたデータを読み込んだようにプログラムが実
行される。
On the other hand, if the memory selection unit 6 receives the signal 1 (01) indicating that there is change data as shown in page 3 of the figure, the ROM
A prohibition signal is applied to the circuit selection unit 5 for specifying page 2, and a permission signal is applied to the EEFROM 4. As a result, in the case of page 3, the data specified by the lower addresses AO to A7 from page 1 of the second non-volatile memory 4, which is specified by the MPUI, is sent to the MPUI instead of reading the corresponding page of the ROM 2. Loaded. As a result, the MPU 1 executes the program as if the changed data were read from the ROM 2.

ここに示した実施例では、ROMを256バイト単位の
ページに区切り、変更データを格納するためのEEFR
OMを8ページで構成しているが、装置規模や制御内容
等によって多少任意に設定することができる。
In the embodiment shown here, the ROM is divided into pages of 256 bytes, and the EEFR is used to store changed data.
Although the OM consists of 8 pages, it can be set somewhat arbitrarily depending on the device scale, control details, etc.

またEEFROM3に書き込まれるデータもデータ変更
なし■00、変更ありHot とし16進により表現さ
れる数値がページ指定としているが、その他任意のデー
タ構成を採用することができる。
Furthermore, the data written to the EEFROM 3 is set to ``00'' with no data change, ``Hot'' with change, and a numerical value expressed in hexadecimal as the page designation, but any other data structure may be adopted.

さらに格納情報としては、プログラム単独、保存性を要
求されるデータとすることもでき、両者を含むようにす
ることもページ構成を考慮することにより任意である。
Furthermore, the stored information can be a program alone or data that requires storability, and it is also possible to include both, depending on the page structure.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、ターミナルコントローラやホストコン
ピュータ等の上位装置あるいは外部記憶装置等から、変
更情報をEEFROMに書き込んでおくことにより、容
易にプログラムの更新が行われる。したがって、ROM
交換と同様の効果が得られる。この場合のEEFROM
は小容量のもので足り、価格低廉及び寸法も小さく、低
価格化及び小型化の要請も満足することができる。この
ような構成により、上位装置からのダウンロードにより
制御装置のプログラム更新が可能となり、変更ROMの
製作及び装置設置現場でのROM交換が不要となる効果
が得られる。
According to the present invention, a program can be easily updated by writing change information into an EEFROM from a host device such as a terminal controller or host computer, or from an external storage device. Therefore, ROM
The same effect as replacement can be obtained. EEFROM in this case
It suffices to have a small capacity, low price and small size, and can satisfy the demands for lower prices and smaller size. With such a configuration, it is possible to update the program of the control device by downloading it from the host device, and it is possible to obtain the effect that there is no need to create a change ROM or replace the ROM at the device installation site.

【図面の簡単な説明】 第1図は、本発明にかがるプログラム更新/実行可能な
制御装置の原理構成図、 第2図は、本発明にががるプログラム更新/実行可能な
制御装置の実施例の構成図、 第3図は、本発明にかかるプログラム更新/実行可能な
制御装置の要部の動作を示すフローチャート図、 第4図は、本発明にかかるプログラム更新/実行可能な
制御装置の実施例のさらに詳細な構成図である。 図において、 1・・・処理手段(MPU)、 2・・・リードオンリメモリ (ROM)、3・・・第
1の不揮発性メモリ(EEPROM)、4・・・第2の
不揮発性メモリ(EEPROM)、5・・・回路選択部
、 6・・・メモリ選択部。 図中、 同 符号は同 又は相当部分を示す。 出 願 人 富士通株式会社 代 理 人
[BRIEF DESCRIPTION OF THE DRAWINGS] FIG. 1 is a diagram showing the principle configuration of a program update/executable control device according to the present invention. FIG. 2 is a program update/executable control device according to the present invention. FIG. 3 is a flowchart showing the operation of the main parts of the program update/executable control device according to the present invention; FIG. 4 is a program update/executable control according to the present invention. FIG. 3 is a more detailed block diagram of an embodiment of the device; In the figure, 1... Processing unit (MPU), 2... Read only memory (ROM), 3... First non-volatile memory (EEPROM), 4... Second non-volatile memory (EEPROM) ), 5...Circuit selection section, 6...Memory selection section. In the figure, the same symbols indicate the same or equivalent parts. Applicant Fujitsu Limited Agent

Claims (2)

【特許請求の範囲】[Claims] (1)プログラムで動作する処理手段(1)により制御
される制御装置において、 プログラム又はデータが格納されたリードオンリメモリ
(2)と、 該リードオンリメモリ(2)を複数ページに分けたそれ
ぞれの領域に対して変更情報の有無を格納する第1の不
揮発性メモリ(3)と、 前記リードオンリメモリ(2)の所定ページ分に相当す
る変更情報を格納し得る第2の不揮発性メモリ(4)と
を有し、 前記リードオンリメモリ(2)の内容を変更する必要が
生じた際に、前記第1の不揮発性メモリ(3)に変更情
報有りの情報を、前記第2の不揮発性メモリ(4)に変
更情報をそれぞれ格納しておき、前記処理手段(1)が
前記リードオンリメモリ(2)から情報を読み出す際に
、前記第1の不揮発性メモリ(3)に変更情報有りの情
報が格納されておれば、リードオンリメモリ(2)の変
更のあるページのみを、前記第2の不揮発性メモリ(4
)の該当する変更情報に置き換えて読み出すことを特徴
とする制御装置。
(1) In a control device controlled by a processing means (1) that operates on a program, there is a read-only memory (2) in which programs or data are stored, and each read-only memory (2) is divided into multiple pages. A first non-volatile memory (3) that stores the presence or absence of change information for an area; and a second non-volatile memory (4) that can store change information corresponding to a predetermined page of the read-only memory (2). ), and when it becomes necessary to change the contents of the read-only memory (2), information indicating that there is change information is transferred to the first non-volatile memory (3) and to the second non-volatile memory (3). (4) respectively store change information, and when the processing means (1) reads information from the read-only memory (2), information indicating that change information is stored in the first non-volatile memory (3). is stored, only the changed page of the read-only memory (2) is stored in the second non-volatile memory (4).
) is replaced with corresponding change information and read out.
(2)請求項(1)記載の制御装置において、前記第1
の不揮発性メモリ(3)に格納される情報は、変更情報
の有無を表す情報及び変更情報が格納されている第2の
不揮発性メモリ(3)のページを指定する情報で構成さ
れることを特徴とする制御装置。
(2) In the control device according to claim (1), the first
The information stored in the second non-volatile memory (3) is composed of information indicating the presence or absence of change information and information specifying the page of the second non-volatile memory (3) in which the change information is stored. Characteristic control device.
JP24649290A 1990-09-17 1990-09-17 Controller Pending JPH04125730A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24649290A JPH04125730A (en) 1990-09-17 1990-09-17 Controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24649290A JPH04125730A (en) 1990-09-17 1990-09-17 Controller

Publications (1)

Publication Number Publication Date
JPH04125730A true JPH04125730A (en) 1992-04-27

Family

ID=17149207

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24649290A Pending JPH04125730A (en) 1990-09-17 1990-09-17 Controller

Country Status (1)

Country Link
JP (1) JPH04125730A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6023758A (en) * 1995-05-25 2000-02-08 Matsushita Electric Industrial Co., Ltd. Method and processor for changing program by replacing instruction stored in ROM with predetermined value to be interpreted as an instruction

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6023758A (en) * 1995-05-25 2000-02-08 Matsushita Electric Industrial Co., Ltd. Method and processor for changing program by replacing instruction stored in ROM with predetermined value to be interpreted as an instruction

Similar Documents

Publication Publication Date Title
JP4668416B2 (en) Protecting boot block code when enabling write access to the boot block
US5854937A (en) Method for reprogramming flash ROM in a personal computer implementing an EISA bus system
US5933846A (en) Rewritable ROM file device having read/write buffer access control via copy of rewritable area
US7039799B2 (en) Methods and structure for BIOS reconfiguration
JPH03141447A (en) Method and apparatus for updating farm ware residing in electrically reloadable programmable read-only memory
CA2021274C (en) Non-volatile memory usage
GB2227584A (en) Computer control data modification system
CN110908932A (en) Data processing apparatus and data protection method thereof
JP3563768B2 (en) ROM program change device
JP2000020391A (en) Storage device, data processor and its method
US7958344B2 (en) Method for adjusting set-up default value of bios and mainboard using the same method
JPH09282103A (en) Information processor
JPH11110218A (en) Firmware rewriting device
JPH04125730A (en) Controller
US6148362A (en) Microcomputer using nonvolatile semiconductor memory to store user code/data
US5978882A (en) Real-mode, 32-bit, flat-model execution apparatus and method
WO2018100633A1 (en) Control device and program update method
WO2018150820A1 (en) Information processing device
JPH11282690A (en) Method for writing control program, information processor and information processing system
JP2853593B2 (en) Download device
JPH0784886A (en) Method and unit for cache memory control
JP2003196087A (en) Memory addressing system of microcontroller and page mapping device
JPH05143315A (en) Version up method for firmware
JP3541863B2 (en) Central processing unit
JPH03269633A (en) Terminal program rewriting system