JPS6252635A - Data conversion method - Google Patents
Data conversion methodInfo
- Publication number
- JPS6252635A JPS6252635A JP60192342A JP19234285A JPS6252635A JP S6252635 A JPS6252635 A JP S6252635A JP 60192342 A JP60192342 A JP 60192342A JP 19234285 A JP19234285 A JP 19234285A JP S6252635 A JPS6252635 A JP S6252635A
- Authority
- JP
- Japan
- Prior art keywords
- program
- address
- rom
- memory circuit
- 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
Links
- 238000000034 method Methods 0.000 title claims description 8
- 238000006243 chemical reaction Methods 0.000 title claims description 6
- 230000015654 memory Effects 0.000 claims abstract description 42
- 230000002401 inhibitory effect Effects 0.000 abstract 1
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 101100524639 Toxoplasma gondii ROM3 gene Proteins 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
【発明の詳細な説明】
〔概 要〕
プログラムを格納したメモリ回路を有し、アドレスに応
じてこのメモリ回路から供給されたプログラムをマイク
ロプロセッサが実行する系において、プログラムの変更
が必要になったとき、そのプログラムのアドレスを検出
して、プログラムを格納しているメモリ回路に対するア
クセスを禁止するとともに、他のメモリ回路に予め格納
されているプログラムを読み出してこれをもとのプログ
ラムに代えてマイクロプロセッサが実行するようにした
ので、プログラムを格納したメモリ回路の内容を変更す
ることなく、プログラムを変更することが可能になる。[Detailed Description of the Invention] [Summary] In a system that has a memory circuit that stores a program and in which a microprocessor executes a program supplied from this memory circuit according to an address, it has become necessary to change the program. At the same time, it detects the address of the program, prohibits access to the memory circuit storing the program, reads out a program previously stored in another memory circuit, and replaces it with the original program. Since the processor executes the program, it is possible to change the program without changing the contents of the memory circuit that stores the program.
本発明はマイクロプロセッサによる制御装置において、
マイクロプロセッサの発生するアドレス信号を制御する
ことによって、リードオンリーメモリ (以下ROMと
いう)に格納されているプロダラムの変更を容易に行わ
せることができるようにしたデータ変換方式に関するも
のである。The present invention provides a control device using a microprocessor.
The present invention relates to a data conversion method that makes it possible to easily change a program stored in a read-only memory (hereinafter referred to as ROM) by controlling address signals generated by a microprocessor.
マイクロプロセッサによって制御を行う装置においては
、一般にROMからなるメモリ領域を有し、ここに格納
されているプログラムによって所定の制御を行う。この
ような装置において、例えばプログラムのデバッグ等の
ような試験の目的で、プログラムの変更を行う必要が生
しることがあるが、このような場合、容易にこのような
プログラムの変更を行い得ることが要望される。A device controlled by a microprocessor generally has a memory area consisting of a ROM, and predetermined control is performed by a program stored in the memory area. In such devices, it may be necessary to change the program for testing purposes such as program debugging, but in such cases, such program changes can be easily made. It is requested that
本発明はこのような目的に対して好適な、プログラム変
更のためのデータ変換方式を提供しようとするものであ
る。The present invention aims to provide a data conversion method for changing programs that is suitable for such purposes.
従来、ROMに格納されているプログラムの一部を変更
しようとする場合には、そのROMを変更されたプログ
ラムが書き込まれている別のROMと差し換えるか、ま
たはROMの内容を同じアドレス空間を有するランダム
アクセスメモリ (以下RAMという)に置き換えてか
らその内容を書き替える方法が用いられている。Conventionally, when attempting to change part of a program stored in a ROM, the ROM must be replaced with another ROM in which the changed program has been written, or the contents of the ROM must be moved to the same address space. A method is used in which the content is rewritten after replacing the memory with random access memory (hereinafter referred to as RAM).
しかしながらプログラムの変更を行うためにROMを差
し換える方法では、変更内容によっては複数のROMを
変更しなければならないことがあり、このような場合に
は最終変更までには何回かROMを取り替えることが必
要とな−って、ROMが書き替え不可能なP−ROMの
ときは無駄が多くなる。またROMの接続にソケットを
使用せず直接プリント板にハンダ付けしている場合には
、ROMの脱着によってプリント板のパターン切断の可
能性が大となる。However, with the method of replacing ROMs to change programs, it may be necessary to change multiple ROMs depending on the content of the change, and in such cases, the ROMs may have to be replaced several times before the final change. , and when the ROM is a P-ROM that cannot be rewritten, there is a lot of waste. Furthermore, if the ROM is directly soldered to the printed board without using a socket, there is a high possibility that the pattern on the printed board will be cut when the ROM is attached or removed.
一方、ROMの内容をRAMに置き換えてプログラムの
変更を行う場合には、RAMに対するプログラムのロー
ディングを行うための手段が別に必要となって、このよ
うな手段を有しない場合には直ちに対応できないという
問題がある。On the other hand, if you change the program by replacing the contents of ROM with RAM, you will need a separate means to load the program into RAM, and if you do not have such means, you will not be able to respond immediately. There's a problem.
第1図は本発明方式の原理的構成を示したものである。 FIG. 1 shows the basic configuration of the system of the present invention.
101はメモリ回路であって、制御のため必要なプログ
ラムを格納している。A memory circuit 101 stores programs necessary for control.
102はマイクロプロセッサであって、アドレスに応じ
てメモリ回路から供給されたプログラムを実行すること
によって所要の制御を行う。A microprocessor 102 performs necessary control by executing a program supplied from a memory circuit according to an address.
103はアドレス検出手段であって、メモリ回路に対し
て出力された任意のアドレスを検出する。Reference numeral 103 denotes an address detection means, which detects an arbitrary address output to the memory circuit.
104はプログラム変更手段であって、このアドレスが
検出されたときメモリ回路に対するアクセスを禁止する
とともに、予め他のメモリ回路に格納されているプログ
ラムをメモリ回路101のプログラムに代えてマイクロ
プロセッサに供給する。104 is a program changing means which prohibits access to the memory circuit when this address is detected, and supplies a program previously stored in another memory circuit to the microprocessor in place of the program in the memory circuit 101. .
本発明のデータ変換方式では、メモリ回路に格納されて
いるプログラムをマイクロプロセッサが実行する系にお
いて、変更を必要とするプログラムのアドレスが検出さ
れたとき、プログラムを格納しているメモリ回路に対す
るアクセスを禁止するとともに、他のメモリ回路にジャ
ンプしてそのメモリ回路に予め格納されているプログラ
ムを読み出してマイクロプロセッサが実行するので、も
とのメモリ回路の内容を変更することなく、プログラム
を変更することが可能になる。In the data conversion method of the present invention, in a system where a microprocessor executes a program stored in a memory circuit, when an address of a program that requires modification is detected, access to the memory circuit storing the program is disabled. In addition, the microprocessor jumps to another memory circuit, reads the program stored in that memory circuit, and executes it, making it possible to change the program without changing the contents of the original memory circuit. becomes possible.
第2図は本発明の一実施例の構成を示したものであって
、1はマイクロプロセッサ、2はRAM、3はプログラ
ム格納用のROM、4はアドレスデコーダ、5はデータ
発生器、6は変更用メモリを示し、10はアドレスバス
、11はデータバス、12はアドレスデコード出力であ
る。FIG. 2 shows the configuration of an embodiment of the present invention, in which 1 is a microprocessor, 2 is a RAM, 3 is a ROM for storing programs, 4 is an address decoder, 5 is a data generator, and 6 is a A memory for modification is shown, 10 is an address bus, 11 is a data bus, and 12 is an address decode output.
第2図において、マイクロプロセッサ1は常時はアドレ
スバス10を経てROM3に書かれているプログラムの
アドレスを順次指定し、ROM3からデータバス11上
に読み出されたプログラムを実行することによって、所
要の制御を行っている。In FIG. 2, the microprocessor 1 normally sequentially specifies the addresses of programs written in the ROM 3 via the address bus 10, and executes the programs read from the ROM 3 onto the data bus 11. is under control.
中
RAM2はこの際におけるマイクロプロセッサI演算処
理に使用されるものである。The middle RAM 2 is used for the microprocessor I arithmetic processing at this time.
いまROM3に書かれているあるプログラムを変更しよ
うとする場合には、変更すべきプログラムのアドレスA
oをアドレスデコーダ4にセットし、データ発生器5に
ジャンプ先のアドレスデータaoを設定するとともに、
変更用メモリ6に変更されたプログラムを書き込んでお
く。If you want to change a certain program currently written in ROM3, enter the address A of the program to be changed.
o is set in the address decoder 4, jump destination address data ao is set in the data generator 5, and
The modified program is written in the modification memory 6.
マイクロプロセッサ1がこのアドレスAoをアドレスバ
ス10上に発生したときは、アドレスデコーダ4はこれ
を検出して出力12を発生して、ROM3に対するアク
セスを禁止するとともに、データ発生器5を駆動してそ
の内容であるジャンプ先史用メモリ6のあるエリアを指
すようになっており、従ってこの部分がアクセスされて
、予め書かれている変更されたプログラムがデータバス
11上に読み出されるので、マイクロプロセッサ1はこ
のプログラムを実行する。変更用メモリ6のプロダラム
の最終行には、ジャンプ命令とジャンプ先のアドレスB
oとが書かれていてこれが読み出されると、アドレスB
oはROM3を指しているので、従って再びROM3の
アドレスに戻り、マイクロプロセッサ1は引き続いてR
OM3のプログラムを実行する。When the microprocessor 1 generates this address Ao on the address bus 10, the address decoder 4 detects this and generates an output 12 to prohibit access to the ROM 3 and drive the data generator 5. It points to a certain area of the jump prehistory memory 6, which is its contents, and therefore, this part is accessed and the modified program written in advance is read onto the data bus 11, so that the microprocessor 1 runs this program. The last line of the program in the change memory 6 contains a jump command and the jump destination address B.
o is written and when this is read, address B
Since o points to ROM3, the address returns to ROM3, and microprocessor 1 continues to read R.
Execute the OM3 program.
この場合、アドレスデコーダおよびデータ発生器を複数
個用意し、変更用メモリの容量をある程度大きくしてお
けば、複数回のプログラム変更を行うことも可能である
。In this case, if a plurality of address decoders and data generators are prepared and the capacity of the change memory is increased to a certain extent, it is possible to change the program multiple times.
このようにしてROMのプログラムを変更して実行して
所期の結果が得られたときは、ROMの内容を書き替え
たものを作成して置き換えればよく、その後は第2図に
おけるアドレスデコーダ4゜データ発生器5.変更用メ
モリ6は除去することができる。When the desired result is obtained by changing the program in the ROM and executing it in this way, it is sufficient to create a new one with the contents of the ROM rewritten and replace it.After that, the address decoder 4 in FIG.゜Data generator 5. The modification memory 6 can be removed.
以上説明したように本発明のデータ変換方式によれば、
既に完成してROMからなるメモリ回路に手各納されて
いるプログラムをマイクロプロセッサが実行する系にお
いて、プログラムの変更が必要になったとき、変更を必
要とするプログラムのアドレスを検出して、プログラム
を格納しているメモリ回路に対するアクセスを禁止する
とともに、他のメモリ回路に予め格納されているプログ
ラムを読み出してマイクロプロセッサが実行するように
したので、ROMからなるメモリ回路の内容を変更する
ことなく、プログラムの変更を容易に行うことができる
。As explained above, according to the data conversion method of the present invention,
In a system where a microprocessor executes a program that has already been completed and is stored in a memory circuit consisting of ROM, when a program change becomes necessary, it detects the address of the program that requires the change and executes the program. In addition to prohibiting access to the memory circuit that stores the ROM, the microprocessor reads out programs previously stored in other memory circuits and executes them, without changing the contents of the memory circuit consisting of the ROM. , program changes can be easily made.
第1図は本発明方式の原理的構成を示す図、第2図は本
発明の一実施例の構成を示す図、第3図は変更用メモリ
の内容の一例を示す図である。
1−・−マイクロプロセッサ、
2−・−ランダムアクセスメモリ (RAM)、3−
リードオンリーメモリ (ROM)、4−アドレスデコ
ーダ、
5・−データ発生器、
6゛・・−変更用メモリ、
10・−アドレスバス、
11・−データバス、
12・−アドレスデコード出力FIG. 1 is a diagram showing the basic configuration of the system of the present invention, FIG. 2 is a diagram showing the configuration of an embodiment of the present invention, and FIG. 3 is a diagram showing an example of the contents of the change memory. 1-.-Microprocessor, 2-.-Random access memory (RAM), 3-
Read-only memory (ROM), 4-address decoder, 5-data generator, 6゛...-memory for change, 10-address bus, 11-data bus, 12-address decode output
Claims (1)
レスに応じて該メモリ回路から供給されたプログラムを
マイクロプロセッサ(102)が実行する系において、 前記メモリ回路(101)に対する任意のアドレスを検
出するアドレス検出手段(103)と、該アドレスが検
出されたとき前記メモリ回路(101)に対するアクセ
スを禁止するとともに、予め他のメモリ回路に格納され
ているプログラムを前記メモリ回路(101)のプログ
ラムに代えてマイクロプロセッサに供給するプログラム
変更手段(104)とを具えたことを特徴とするデータ
変換方式。[Scope of Claims] In a system that includes a memory circuit (101) storing a program and in which a microprocessor (102) executes a program supplied from the memory circuit according to an address, an arbitrary value for the memory circuit (101) is provided. an address detecting means (103) for detecting the address of the memory circuit (101), which prohibits access to the memory circuit (101) when the address is detected, and executes a program previously stored in another memory circuit. ) A data conversion method characterized by comprising a program changing means (104) for supplying the program to the microprocessor in place of the program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP60192342A JPS6252635A (en) | 1985-08-31 | 1985-08-31 | Data conversion method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP60192342A JPS6252635A (en) | 1985-08-31 | 1985-08-31 | Data conversion method |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS6252635A true JPS6252635A (en) | 1987-03-07 |
Family
ID=16289676
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP60192342A Pending JPS6252635A (en) | 1985-08-31 | 1985-08-31 | Data conversion method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS6252635A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01169629A (en) * | 1987-12-25 | 1989-07-04 | Fujitsu Ltd | ROM patch method |
US5051897A (en) * | 1988-03-11 | 1991-09-24 | Mitsubishi Denki Kabushiki Kaisha | Single-chip microcomputer with memory patching capability |
EP0615187A1 (en) | 1993-03-11 | 1994-09-14 | Olympus Optical Co., Ltd. | One-chip microcomputer system having function for substantially correcting contents of program |
US5357627A (en) * | 1989-03-28 | 1994-10-18 | Olympus Optical Co., Ltd. | Microcomputer having a program correction function |
US5574926A (en) * | 1993-03-11 | 1996-11-12 | Olympus Optical Co., Ltd. | One-chip microcomputer system having function for substantially correcting contents of program |
-
1985
- 1985-08-31 JP JP60192342A patent/JPS6252635A/en active Pending
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01169629A (en) * | 1987-12-25 | 1989-07-04 | Fujitsu Ltd | ROM patch method |
US5051897A (en) * | 1988-03-11 | 1991-09-24 | Mitsubishi Denki Kabushiki Kaisha | Single-chip microcomputer with memory patching capability |
US5357627A (en) * | 1989-03-28 | 1994-10-18 | Olympus Optical Co., Ltd. | Microcomputer having a program correction function |
US5592613A (en) * | 1989-03-28 | 1997-01-07 | Olympus Optical Co., Ltd. | Microcomputer having a program correction function |
EP0615187A1 (en) | 1993-03-11 | 1994-09-14 | Olympus Optical Co., Ltd. | One-chip microcomputer system having function for substantially correcting contents of program |
US5574926A (en) * | 1993-03-11 | 1996-11-12 | Olympus Optical Co., Ltd. | One-chip microcomputer system having function for substantially correcting contents of program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7110837B2 (en) | Control system and method for on-line editing of user program | |
US5600807A (en) | Programmable controller capable of updating a user program during operation by switching between user program memories | |
JPS63101931A (en) | Program control system | |
JPS6252635A (en) | Data conversion method | |
JPH05135596A (en) | Memory designate control device | |
EP0393281A2 (en) | Method and apparatus for shadowing memory | |
JPH0460840A (en) | System for activating information processor | |
JPS62137627A (en) | Memory dump system | |
JP3190735B2 (en) | Memory chip select switching circuit | |
JPH09288595A (en) | Arithmetic processing unit | |
JP2506591B2 (en) | Auxiliary processor | |
JPS60126731A (en) | Program control method | |
JPH11259308A (en) | Programmable controller | |
JPH0423147A (en) | Bank switching method | |
JP2001282319A (en) | Programmable controller | |
KR940011045B1 (en) | Interrupt vector addressing method in micro controller unit | |
JPH0883188A (en) | A computer that performs multitasking | |
JPS63214805A (en) | Programmable controller | |
JPH04245538A (en) | Information processor | |
JPH0581017A (en) | Program processor | |
JPS62221060A (en) | How to control a microprocessor system | |
JPH04167146A (en) | Address tracing system for information processor | |
JPS59186048A (en) | Microprogram control system | |
JPH09198245A (en) | Digital signal processor | |
JPH03233703A (en) | Sequence controller |