JPH0443439A - Peripheral controller - Google Patents

Peripheral controller

Info

Publication number
JPH0443439A
JPH0443439A JP2151066A JP15106690A JPH0443439A JP H0443439 A JPH0443439 A JP H0443439A JP 2151066 A JP2151066 A JP 2151066A JP 15106690 A JP15106690 A JP 15106690A JP H0443439 A JPH0443439 A JP H0443439A
Authority
JP
Japan
Prior art keywords
program
address
program counter
storage means
microprogram
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
JP2151066A
Other languages
Japanese (ja)
Inventor
Hiroshi Iizuka
浩 飯塚
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP2151066A priority Critical patent/JPH0443439A/en
Publication of JPH0443439A publication Critical patent/JPH0443439A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent a program from being erroneously destroyed by providing a comparison means which compares an address image with the value of a program counter and which generates an interruption signal to a micro processor when they coincide and a storage means collecting and storing operation information on a device when interruption occurs. CONSTITUTION:An address storage means 2 storing the address image which a host device 3 designates, the comparison means 3 which compares the address image with the value of the program counter 1 and which generates the interruption signal to the micro processor when they coincide and the storage means 8 collecting and storing operation information on the device when interruption occurs are provided. In such a case, it is not necessary to rewrite the program since interruption is executed by the target address so as to execute a processing for obtaining operation information at the time of executing the program. Thus, the program is prevented from being erroneously destroyed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は周辺制御装置に関し、特にプログラム動作時に
指定したアドレスを通過した時点でのレジスタ情報等の
装置の動作情報を任意に収集可能とする保守・診断機能
を有する周辺制御装置に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a peripheral control device, and in particular, it is possible to arbitrarily collect device operation information such as register information at the time when a specified address is passed during program operation. This invention relates to peripheral control devices with maintenance and diagnostic functions.

〔従来の技術〕[Conventional technology]

従来、この種の周辺制御装置は、プログラム中の特定な
アドレスに固定的に装置の動作情報を記録する処理を設
定していた。また、読み書き可能な記憶素子上のプログ
ラムの場合は、サービスプロセッサ等を用いて外部から
プログラムの一部を書き替えることによって、目的とす
るアドレスで装置の動作情報を記憶素子上に記録する処
理を行なっていた。
Conventionally, this type of peripheral control device has set a process for recording device operation information fixedly at a specific address in the program. In addition, in the case of a program on a readable/writable memory element, by rewriting part of the program externally using a service processor, etc., it is possible to record the operating information of the device on the memory element at the target address. I was doing it.

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

上述した従来の周辺制御装置は、目的とするアドレスを
通過した時点での動作情報を収集する手段として、プロ
グラムの一部を書き替えて動作情報を収集し、記憶素子
上に記録する処理を行なうプログラムを呼び出していた
The conventional peripheral control device described above rewrites a part of the program to collect operational information and records it on a storage element as a means of collecting operational information at the time when the target address is passed. calling the program.

読み書き可能な記憶素子上で書き替えを行なった場合、
周辺制御装置が初期設定を行うたびごとに書き替えが無
効化され、再度書き替えを行なわねばならないという、
欠点がある。
When rewriting is performed on a read/write memory element,
Every time the peripheral control device performs initial settings, rewriting is disabled and rewriting must be performed again.
There are drawbacks.

また、周辺制御装置のプログラムが磁気記憶媒体で存在
し、初期設定のたびにブートロードされる形式となって
いるものでは、磁気記憶媒体中のプログラムを書き替え
る方法もある。しかし、この場合、目的とするアドレス
での情報収集を中止する場合や、情報を収集するためア
ドレスを変更する場合など、プログラムの書き替えや、
修正を重ねているとプログラムを破壊する可能性が増大
し、その扱いはきわめて慎重さを要求され、一般に扱い
にくいという欠点がある。
Furthermore, if the program of the peripheral control device exists on a magnetic storage medium and is boot-loaded each time initial settings are made, there is also a method of rewriting the program on the magnetic storage medium. However, in this case, if you want to stop collecting information at the target address or change the address to collect information, you may need to rewrite the program,
Repeated modifications increase the possibility of corrupting the program, which requires extreme care and is generally difficult to handle.

さらに、プログラムが書き込み不可能な不揮発性記憶素
子上に存在する場合、プログラムの書き替えによって任
意のアドレスでプログラム動作の情報を得たり、実行速
度の低下を防ぐために情報収集を途中で中止するという
ことが不可能であるという欠点がある。
Furthermore, if a program exists on a non-volatile memory element that cannot be written to, information on the program operation can be obtained at any address by rewriting the program, or information collection can be stopped midway to prevent a decrease in execution speed. The disadvantage is that it is impossible.

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

本発明の周辺制御装置は、インタフェースによって上位
装置と接続され、マイクロプロセッサとマイクロプログ
ラム実行時に実行アドレスを示すプログラムカウンタと
マイクロプログラムを格納するメモリとを有し、プログ
ラムカウンタで指示されたアドレスに格納されたデータ
をメモリより順次読み出すことにより制御を行う周辺制
御装置において、 上位装置から指定されたアドレスイメージを格納するア
ドレス格納手段と、前記アドレスイメージと前記プログ
ラムカウンタの値とを比較し、致した時に前記マイクロ
プロセッサに対して割込み信号を発生する比較手段と、
割込み発生時に装置の動作情報を収集し、記憶する記憶
手段とを備えて構成される。
The peripheral control device of the present invention is connected to a host device through an interface, and has a microprocessor, a program counter that indicates an execution address when a microprogram is executed, and a memory that stores the microprogram, and stores the microprogram at an address indicated by the program counter. In a peripheral control device that performs control by sequentially reading out data from memory, an address storage means that stores an address image designated by a host device compares the address image with the value of the program counter, comparing means for generating an interrupt signal to the microprocessor at certain times;
and storage means for collecting and storing operating information of the device when an interrupt occurs.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

プログラムカウンタ1は、プログラムの実行アドレスが
格納され、アドレス格納レジスタ2とともに比較器3に
接続されている。比較器3は割込み信号線4を介してC
PUの制御回路5と接続されている。割込みベクトル6
は割込みが発生した時に実行が開始されるアドレスが格
納されており、内部バス7を介してプログラムカウンタ
1と接続されている。また、レジスタを含む装置の動作
情報を格納する記憶回路8と、マイクロプログラム格納
領域9と、プログラムの実行によって随時更新されるレ
ジスタ類10とは、内部ノ(スフに接続されている。さ
らに、この周辺制御装置はボート11から上位装置との
インタフェース12を介し、上位装置13に接続されて
いる。
A program counter 1 stores an execution address of a program, and is connected to an address storage register 2 and a comparator 3. Comparator 3 is connected to C via interrupt signal line 4.
It is connected to the control circuit 5 of the PU. interrupt vector 6
stores an address at which execution starts when an interrupt occurs, and is connected to the program counter 1 via an internal bus 7. Further, a memory circuit 8 that stores operational information of the device including registers, a microprogram storage area 9, and registers 10 that are updated as needed by program execution are connected to an internal space.Furthermore, This peripheral control device is connected from the boat 11 to a host device 13 via an interface 12 with the host device.

次に上記構成にもとづいた本実施例の動作を説明する。Next, the operation of this embodiment based on the above configuration will be explained.

まず、割込み処理を行なわせるアドレスをボート11で
上位装置13からインタフェース12を介し受は取り、
アドレス一致比較用のアドレスデータとして、アドレス
格納レジスタ2に格納する。比較器3でプログラムカウ
ンタ1の値とアドレス格納レジスタ2の値とを常に比較
し、一致した時点で割込み信号線4によってCPUの制
御回路5に割込み要求を出す。割込み要求によってCP
Uの制御回路5は、割込みベクトル6の内容を内部バス
7を介してプログラムカウンタ1にセットさせることに
より、プログラム格納領域9に格納されているプログラ
ムの実行アドレスを割込みベクトル6で指定した割込み
処理プログラムの先頭アドレスに変更する。
First, the boat 11 receives an address for performing interrupt processing from the host device 13 via the interface 12, and
It is stored in the address storage register 2 as address data for address match comparison. A comparator 3 constantly compares the value of the program counter 1 and the value of the address storage register 2, and when they match, an interrupt request is issued to the control circuit 5 of the CPU via an interrupt signal line 4. CP by interrupt request
The control circuit 5 of the U sets the contents of the interrupt vector 6 in the program counter 1 via the internal bus 7, thereby executing the interrupt processing specified by the interrupt vector 6 at the execution address of the program stored in the program storage area 9. Change to the start address of the program.

被割込みプログラムへの戻りアドレスは、記憶回路8に
一時的に退避しておく。割込み処理プログラムに、従っ
てCPUの制御回路5が動作することによって記憶回路
8にレジスタ類10の内容や装置の動作に関する情報を
格納する。割込み処理プログラムの終了時に、記憶回路
8に退避していた被割込みプログラムへの戻りアドレス
を、プログラムカウンタ1にセットすることによりもと
の処理を継続する。
The return address to the interrupted program is temporarily saved in the storage circuit 8. By operating the control circuit 5 of the CPU in accordance with the interrupt processing program, the contents of the registers 10 and information regarding the operation of the device are stored in the storage circuit 8. At the end of the interrupt processing program, the return address to the interrupted program saved in the storage circuit 8 is set in the program counter 1, thereby continuing the original processing.

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

以上説明したように本発明は、プログラム実行時の動作
情報を得るために目的とするアドレスで割込みを行って
処理をするため、プログラムを書き替える必要がなく、
誤ってプログラムを破壊することを防ぐことができると
いう効果がある。また、プログラムが書き込み不可な不
揮発性記憶素子上で動作していても、目的とするアドレ
スを通過した時点で動作情報を得ることができるという
効果がある。さらに、アドレスの設定操作を上位装置か
ら行うため、遠隔操作で情報収集が上位装置から自由に
行なえるという効果もある。
As explained above, the present invention performs processing by interrupting at the target address in order to obtain operational information during program execution, so there is no need to rewrite the program.
This has the effect of preventing accidental program destruction. Furthermore, even if the program is operating on a non-writable non-volatile memory element, there is an advantage that operating information can be obtained when the program passes through a target address. Furthermore, since the address setting operation is performed from the host device, information collection can be freely performed from the host device by remote control.

ジスタ、3・・・比較器、4・・・割込み信号線、5・
・・CPUの制御回路、6・・・割込みベクトル、7・
・・内部バス、8・・・記憶回路、9・・・マイクロプ
ログラム格納領域、10・・・レジスタ類、11・・・
ボート、12・・・上位装置とのインタフェース、13
・・・上位装置。
Register, 3...Comparator, 4...Interrupt signal line, 5.
...CPU control circuit, 6...Interrupt vector, 7.
...Internal bus, 8...Memory circuit, 9...Microprogram storage area, 10...Registers, 11...
Boat, 12... Interface with host device, 13
...Upper device.

Claims (1)

【特許請求の範囲】 インタフェースによって上位装置と接続され、マイクロ
プロセッサとマイクロプログラム実行時に実行アドレス
を示すプログラムカウンタとマイクロプログラムを格納
するメモリとを有し、プログラムカウンタで指示された
アドレスに格納されたデータをメモリより順次読み出す
ことにより制御を行う周辺制御装置において、 上位装置から指定されたアドレスイメージを格納するア
ドレス格納手段と、前記アドレスイメージと前記プログ
ラムカウンタの値とを比較し、一致した時に前記マイク
ロプロセッサに対して割込み信号を発生する比較手段と
、割込み発生時に装置の動作情報を収集し記憶する記憶
手段とを備えて成ることを特徴とする周辺制御装置。
[Claims] A microprocessor connected to a host device through an interface, comprising a microprocessor, a program counter that indicates an execution address when a microprogram is executed, and a memory that stores the microprogram, wherein the microprogram is stored at an address indicated by the program counter. In a peripheral control device that performs control by sequentially reading data from a memory, an address storage means that stores an address image designated by a host device compares the address image with the value of the program counter, and when they match, the A peripheral control device comprising: comparison means for generating an interrupt signal to a microprocessor; and storage means for collecting and storing operating information of the device when an interrupt occurs.
JP2151066A 1990-06-08 1990-06-08 Peripheral controller Pending JPH0443439A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2151066A JPH0443439A (en) 1990-06-08 1990-06-08 Peripheral controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2151066A JPH0443439A (en) 1990-06-08 1990-06-08 Peripheral controller

Publications (1)

Publication Number Publication Date
JPH0443439A true JPH0443439A (en) 1992-02-13

Family

ID=15510560

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2151066A Pending JPH0443439A (en) 1990-06-08 1990-06-08 Peripheral controller

Country Status (1)

Country Link
JP (1) JPH0443439A (en)

Similar Documents

Publication Publication Date Title
JPH01219982A (en) Ic card
JPH0328947A (en) Peripheral controller
KR890000100B1 (en) Register control processing system
JPH0443439A (en) Peripheral controller
JP2731047B2 (en) Program operand check method
JPH0335331A (en) Peripheral controller
JPS61134836A (en) Limiting system for application of software
JPS6217299B2 (en)
JPS6148741B2 (en)
JP3022011B2 (en) Data backup system
JPH07253931A (en) Destruction prevention system for program data storage area
US5434979A (en) Disk drive controller
JP3293144B2 (en) Peripheral control device
JPS58182766A (en) Program tracing device
JP2696970B2 (en) Information processing device
JP2665173B2 (en) Processor trap circuit
KR930010775A (en) Image processing device
JPS63120336A (en) Switching system for memory access mode
JPS6054691B2 (en) Memory protection method for information processing equipment
JPS626341A (en) Information processor
JPH07239802A (en) Fault information managing device
JPH04352249A (en) Data saving device for in-computer fault occurrence time
JPH0438011B2 (en)
JPH05143245A (en) Floppy disk device control system
JPH05158681A (en) Microprogram controller