JPS6155702B2 - - Google Patents
Info
- Publication number
- JPS6155702B2 JPS6155702B2 JP54070337A JP7033779A JPS6155702B2 JP S6155702 B2 JPS6155702 B2 JP S6155702B2 JP 54070337 A JP54070337 A JP 54070337A JP 7033779 A JP7033779 A JP 7033779A JP S6155702 B2 JPS6155702 B2 JP S6155702B2
- Authority
- JP
- Japan
- Prior art keywords
- memory
- program
- control
- control program
- data
- 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.)
- Expired
Links
- 230000015654 memory Effects 0.000 claims description 28
- 238000000034 method Methods 0.000 claims description 8
- 238000012986 modification Methods 0.000 claims description 7
- 230000004048 modification Effects 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 5
- 101100328887 Caenorhabditis elegans col-34 gene Proteins 0.000 description 4
- 238000012937 correction Methods 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
Description
【発明の詳細な説明】
本発明はマイクロコンピユータを使用して端末
装置の制御を行なう端末装置のプログラム制御方
式に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a program control system for a terminal device that uses a microcomputer to control the terminal device.
従来の端末装置では、制御プログラムの記憶媒
体として複数個の読出し専用メモリ(ROM)が
使用されているため、制御プログラムに変更があ
つた場合には、ROM自体を交換する必要があ
る。もし、プログラムの変更箇所が複数個の
ROMの各所に散在している場合は、変更箇所を
含むすべてのROMを交換しなければならないた
め費用がかかりすぎる欠点がある。 Conventional terminal devices use a plurality of read-only memories (ROM) as storage media for control programs, so if the control program is changed, the ROM itself must be replaced. If there are multiple changes in the program,
If the ROM is scattered throughout the ROM, the disadvantage is that it is too expensive because all the ROMs containing the changed parts must be replaced.
本発明の目的は上述の欠点を除去した端末装置
のプログラム制御方式を提供することにある。本
発明の制御方式は、電源投入直後ローダー・プロ
グラムによつて制御プログラムを記憶するROM
からランダム・アクセス・メモリ(RAM)に制
御プログラムデータを転送し、このプログラムを
修正データを記憶するROMのデータに従つて修
正した後、ローダー・プログラムから制御プログ
ラムによる装置制御を移行させることを特徴とす
る。このような制御方式により、制御プログラム
の変更により交換しなければならないROMの数
を減少させることができる。 SUMMARY OF THE INVENTION An object of the present invention is to provide a program control method for a terminal device that eliminates the above-mentioned drawbacks. The control method of the present invention is based on a ROM that stores a control program using a loader program immediately after power is turned on.
The control program data is transferred from the loader program to random access memory (RAM), the program is modified according to the data in the ROM that stores the modification data, and then device control by the control program is transferred from the loader program. shall be. Such a control method can reduce the number of ROMs that must be replaced by changing the control program.
次に本発明を図面を参照して詳細に説明する。
第1図および第2図は従来の端末装置の制御方式
を説明する図である。端末装置制御用の制御プロ
グラムはn個のROM3−1〜3−nからなるメ
モリ3に記憶されている。制御プログラム中のn
箇所のアドレスA1,A2…………AnのデータD1,
D2…………Dnを各々D1′,D2′…………Dn′に変更
するとき、変更するデータのアドレスが第1図に
示すように、ROM3−1〜3−nの各々に含ま
れている場合には、アドレスA1,A2…………An
のデータを各々D1′,D2′…………Dn′に変更した
新たなROM3−1′〜3−n′を準備しなければな
らないため費用がかかる欠点がある。 Next, the present invention will be explained in detail with reference to the drawings.
FIGS. 1 and 2 are diagrams illustrating a conventional control method for a terminal device. A control program for controlling the terminal device is stored in the memory 3 consisting of n ROMs 3-1 to 3-n. n in the control program
Location addresses A 1 , A 2 ......An's data D 1 ,
When changing D 2 ……Dn to D 1 ′, D 2 ′……Dn′, the address of the data to be changed is changed to each of ROM3-1 to 3-n as shown in Figure 1. address A 1 , A 2 …………An
It is necessary to prepare new ROMs 3-1' to 3-n' in which the data of D1 ', D2 '...Dn' are changed, respectively, which has the disadvantage of being expensive.
第3図は本発明の一実施例を説明する図であ
る。図において、メモリを構成するROM3−1
〜3−nは第1図のROM3−1〜3−nと同じ
内容を有する。本発明のプログラム制御方式で
は、電源投入時に、ROM1に記憶されているロー
ダー・プログラムによつてマイクロプロセツサ
(CPU)2はROM3−1〜3−nからなるメモリ
3に記憶されている制御プログラムをランダム・
アクセス・メモリRAM4へ転送する。次にロー
ダー・プログラムに応じてROM5に記憶されて
いる修正データに従つて第5図に示されるRAM
4に記憶されている制御プログラムデータを書き
替える。第4図はROM5に記憶される修正デー
タのデータ形式を示し、修正データは修正メモリ
アドレスA′1〜A′nと修正データD′1〜D′nとによ
つて1つのデータブロツクを形成している。デー
タブロツクとデータブロツクとの間は区切りコー
ドFFによつて区切られている。CPU2は第4図
の修正データに従つてRAM4内の指定アドレス
に指定された修正データを書き込んで行き、修正
データの終了を意味する2個の区切りコードの検
出によりデータの修正を完了する。修正後の
RAMに記憶されているデータを第6図に示す。
第6図に示す制御プログラムのデータは第2図に
示す従来のROM交換によるプログラム修正後の
データと同一となる。CPU2は修正データの終
了を検出するとローダー・プログラムによる制御
から制御プログラムによる制御に移行する。 FIG. 3 is a diagram illustrating an embodiment of the present invention. In the figure, ROM3-1 that constitutes memory
ROMs 3-1 to 3-n have the same contents as ROMs 3-1 to 3-n in FIG. In the program control system of the present invention, when the power is turned on, a loader program stored in ROM 1 causes a microprocessor (CPU) 2 to perform control stored in memory 3 consisting of ROMs 3-1 to 3-n. Randomize the program
Transfer to access memory RAM4. Next, according to the modified data stored in the ROM 5 according to the loader program, the RAM shown in FIG.
Rewrite the control program data stored in 4. FIG. 4 shows the data format of the modified data stored in the ROM 5. The modified data forms one data block by modified memory addresses A' 1 to A'n and modified data D' 1 to D'n. are doing. Data blocks are separated by a delimiter code FF. The CPU 2 writes the specified correction data to the specified address in the RAM 4 according to the correction data shown in FIG. 4, and completes the data correction by detecting two delimiter codes indicating the end of the correction data. after modification
Figure 6 shows the data stored in the RAM.
The data of the control program shown in FIG. 6 is the same as the data shown in FIG. 2 after the program is modified by exchanging the ROM. When the CPU 2 detects the end of the modified data, it shifts from control by the loader program to control by the control program.
以上のように、従来方式では、制御プログラム
の修正のためにn個のROMの交換が必要であつ
たのが、本発明方式では1個あるいは数個の修正
用ROM準備すればよい。第8図は本発明の他の
実施例を示す。 As described above, in the conventional system, it was necessary to replace n ROMs in order to modify the control program, but in the method of the present invention, it is only necessary to prepare one or several ROMs for modification. FIG. 8 shows another embodiment of the invention.
第8図は、第7図に示すようなm個のプログラ
ム制御端末装置101〜10mの制御プログラム
の変更を行う場合の本発明の他の実施例を示す。
第8図において、端末制御装置11は第3図と同
一構成を有し、メモリ3の制御プログラムは
ROM5の修正データに従つてRAM4内で修正さ
れる。各端末装置101〜10mは、制御装置1
1のRAM4からの修正された制御プログラムを
記憶するRAM4−1〜4−mと電源投入後RAM
4の修正制御プログラムをRAM4−1〜4−m
に転送するためのローダー・プログラムを記憶す
るROML1−1〜1−mとから構成されている。
このように端末制御装置11に接続される端末装
置101〜10mの制御プログラムの変更は、端
末制御装置11の修正用ROM5の変更のみです
む。これにより、従来の方式では制御プログラム
の変更のために(mxn)個の変換が必要であるの
に対し、本発明による端末制御方式では、1個あ
るいは数個のROMの交換ですむという大きな利
点を得ることができる。 FIG. 8 shows another embodiment of the present invention in which the control programs of m program control terminal devices 10 1 to 10m as shown in FIG. 7 are changed.
In FIG. 8, the terminal control device 11 has the same configuration as in FIG. 3, and the control program in the memory 3 is
It is modified in RAM 4 according to the modification data in ROM 5. Each terminal device 10 1 to 10m is a control device 1
RAM 4-1 to 4-m that stores the modified control program from RAM 4 of 1 and RAM after power-on.
4 modified control program to RAM 4-1 to 4-m.
It is composed of ROM L1-1 to ROM L1 -m that store a loader program for transferring to the computer.
In this way, the control programs of the terminal devices 10 1 to 10m connected to the terminal control device 11 can be changed only by changing the modification ROM 5 of the terminal control device 11. As a result, while the conventional method requires (mxn) conversions to change the control program, the terminal control method according to the present invention has the great advantage that only one or several ROMs need to be replaced. can be obtained.
以上のように、本発明には、多数のROMに記
憶された装置制御プログラムの一部分にデータの
変更が必要になつたとき、交換すべきROMの個
数を最少限にできるという効果がある。 As described above, the present invention has the effect of minimizing the number of ROMs to be replaced when it becomes necessary to change data in a part of the device control program stored in a large number of ROMs.
第1図および第2図は従来のプログラム制御方
式を説明する図、第3図〜第6図は本発明の一実
施例を説明する図、第7図および第8図は本発明
の他の実施例を説明する図である。
第3図および第8図において、2……マイクロ
プロセツサ、1−1〜1−m,1はローダー・プ
ログラムを記憶するリード・オンリ・メモリ、3
は制御プログラムデータを記憶するリード・オン
リ・メモリ群、5は制御プログラムの修正データ
を記憶するリード・オンリ・メモリ、4,4−1
〜4−mはランダム・アクセス・メモリ。
1 and 2 are diagrams explaining a conventional program control system, FIGS. 3 to 6 are diagrams explaining one embodiment of the present invention, and FIGS. 7 and 8 are diagrams explaining another embodiment of the present invention. It is a figure explaining an example. 3 and 8, 2...microprocessor, 1-1 to 1-m, 1 read-only memory for storing a loader program, 3
5 is a read-only memory group that stores control program data; 5 is a read-only memory that stores modification data for the control program; 4, 4-1;
~4-m is random access memory.
Claims (1)
ログラム制御を行なう端末装置制御方式におい
て、制御プログラムを記憶している読出し専用メ
モリからなる第1のメモリと、この第1のメモリ
と同じ記憶容量を持つランダム・アクセス・メモ
リからなる第2のメモリと、前記第1のメモリの
制御プログラムを前記第2のメモリに転送するた
めのローダー・プログラムを記憶する読出し専用
メモリからなる第3のメモリと、前記制御プログ
ラムの一部を修正するためのデータを記憶してい
る読出し専用メモリからなる第4のメモリとから
構成され、前記第3のメモリに記憶されているロ
ーダー・プログラムによつて前記第1のメモリか
ら前記第2のメモリに前記制御プログラムを転送
し、前記第4のメモリに記憶されている修正デー
タに従つて前記第2のメモリに転送された制御プ
ログラムを変更したあと前記第2のメモリに記憶
された制御プログラムによつて前記端末装置の制
御を開始するようにしたことを特徴とする端末装
置のプログラム制御方式。1 In a terminal device control method in which a microcomputer is used to perform program control of a terminal device, a first memory consisting of a read-only memory storing a control program and a random memory having the same storage capacity as the first memory are used. a second memory comprising an access memory; a third memory comprising a read-only memory storing a loader program for transferring the control program of the first memory to the second memory; and the control program. a fourth memory comprising a read-only memory storing data for modifying a portion of the first memory by a loader program stored in the third memory; Transferring the control program to the second memory, modifying the control program transferred to the second memory according to modification data stored in the fourth memory, and then storing the control program in the second memory. 1. A program control method for a terminal device, characterized in that control of the terminal device is started by a control program that is executed.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7033779A JPS55162130A (en) | 1979-06-05 | 1979-06-05 | Program control system of terminal equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7033779A JPS55162130A (en) | 1979-06-05 | 1979-06-05 | Program control system of terminal equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS55162130A JPS55162130A (en) | 1980-12-17 |
| JPS6155702B2 true JPS6155702B2 (en) | 1986-11-28 |
Family
ID=13428495
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP7033779A Granted JPS55162130A (en) | 1979-06-05 | 1979-06-05 | Program control system of terminal equipment |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS55162130A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH045596A (en) * | 1990-04-20 | 1992-01-09 | Furuno Electric Co Ltd | Position detecting device of underwater working robot |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5972542A (en) * | 1982-10-20 | 1984-04-24 | Hitachi Ltd | Correcting system of object program |
| JPS6069781A (en) * | 1983-09-26 | 1985-04-20 | Nec Corp | Data collection system |
| JPS6079451A (en) * | 1983-10-07 | 1985-05-07 | Fujitsu Ltd | Input and output device generation system |
| JP2539367B2 (en) * | 1985-11-27 | 1996-10-02 | 財団法人 鉄道総合技術研究所 | Terminal system |
| JPS62212858A (en) * | 1986-03-14 | 1987-09-18 | Fujitsu Ltd | Program loading system for terminal equipment |
| JPH02114330A (en) * | 1988-10-24 | 1990-04-26 | Brother Ind Ltd | How to store programs in device-embedded microprocessors |
-
1979
- 1979-06-05 JP JP7033779A patent/JPS55162130A/en active Granted
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH045596A (en) * | 1990-04-20 | 1992-01-09 | Furuno Electric Co Ltd | Position detecting device of underwater working robot |
Also Published As
| Publication number | Publication date |
|---|---|
| JPS55162130A (en) | 1980-12-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0341859B2 (en) | ||
| JPS60157646A (en) | Memory bank switching device | |
| JPS6155702B2 (en) | ||
| WO1985002040A1 (en) | Microcomputer having an internal address mapper | |
| JPH03252993A (en) | Information writing device for e2prom | |
| JPH11149372A (en) | Forced page zero paging scheme for microcontrollers using data RAM | |
| US5495599A (en) | Information processing system for relocating data and changing status information corresponding to the relocated data | |
| EP0787326B1 (en) | System and method for processing of memory data and communication system comprising such system | |
| JPH01125644A (en) | Data transfer equipment | |
| JP2507964B2 (en) | Program transfer method | |
| JPS59121561A (en) | Common resource access protecting system in multiprocessor system | |
| JP2687679B2 (en) | Program development equipment | |
| JPS6143367A (en) | Register control system | |
| JPS60134340A (en) | Terminal control device | |
| JPS6036615B2 (en) | Memory control method | |
| JPS6349771Y2 (en) | ||
| JPS58218091A (en) | Data transfer system | |
| JPH05108477A (en) | Memory access method | |
| JPS62134742A (en) | Information processor | |
| JP3333527B2 (en) | Computer equipment | |
| JPH0133848B2 (en) | ||
| JPS61236098A (en) | Rom program controller | |
| JPS6258356A (en) | Dma controller | |
| JPH0566756U (en) | Data I/O Control Device | |
| JPH05143316A (en) | Partial correction system for program |