JPH04140874A - Interruption receiving system - Google Patents

Interruption receiving system

Info

Publication number
JPH04140874A
JPH04140874A JP26417190A JP26417190A JPH04140874A JP H04140874 A JPH04140874 A JP H04140874A JP 26417190 A JP26417190 A JP 26417190A JP 26417190 A JP26417190 A JP 26417190A JP H04140874 A JPH04140874 A JP H04140874A
Authority
JP
Japan
Prior art keywords
interrupt
interruption
control device
flag
group
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
JP26417190A
Other languages
Japanese (ja)
Inventor
Koji Muramoto
村本 浩司
Makoto Okajima
岡島 眞
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
NEC Engineering Ltd
Original Assignee
NEC Corp
NEC Engineering 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 NEC Corp, NEC Engineering Ltd filed Critical NEC Corp
Priority to JP26417190A priority Critical patent/JPH04140874A/en
Publication of JPH04140874A publication Critical patent/JPH04140874A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To efficiently accept an interruption by providing the first means which permits the interruption, the second means which temporarily holds the plural interruption causes, and the third means which transmits the plural interruption causes to a controller by a preliminarily decided unit. CONSTITUTION:A command controller 102 transmits an interruption transmission permitting signal 1 to a device 200 to be controlled at the time of accepting the interruption. The (1) and (2) of an interruption cause holding flag group 201 are received through a selector 203 by an interruption receiving buffer 101 in a timing in which the interruption transmission permitting signal 1 is outputted, and at the same time a flag reset circuit 205 resets the (1) and (2) of the group 201 corresponding to the transmitted interruption causes. A transmitted flag selected counter 202 counts up from 0 to 1 at the time of receiving 1, the (3) and (4) of the group 201 are transmitted and received by the interruption receiving buffer 101, and at the same time the flat reset circuit 205 resets the (3) and (4) of the group 201 corresponding to the transmitted interruption causes.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は制御装置の割り込み受信方式に関し、特に制御
装置が被制御装置から次の実行命令の要求を受け付ける
割り込み受信方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an interrupt reception method for a control device, and more particularly to an interrupt reception method in which a control device receives a request for the next execution instruction from a controlled device.

〔従来の技術〕[Conventional technology]

従来、この種の割り込み受信方式は、制御装置が被制御
装置から割り込みを受け付けるときに、被制御装置から
の割り込み要因に対し優先判定を行い、さらに割り込み
要因をリセットする必要があった。
Conventionally, in this type of interrupt reception method, when a control device receives an interrupt from a controlled device, it is necessary to determine the priority of the interrupt factor from the controlled device and to reset the interrupt factor.

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

上述した従来の割り込み受信方式は、被制御装置からの
割り込み要因に対し優先判定を行う回路や、割り込み要
因をリセットする為に金物量が増えるという欠点があっ
た。
The above-mentioned conventional interrupt reception method has the disadvantage that it requires a circuit for prioritizing interrupt factors from a controlled device and an increase in the amount of hardware needed to reset the interrupt factors.

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

本発明の割り込み受信方式は、制御装置が被制御装置か
ら次の実行命令の要求を受け付ける割り込み受信方式に
於て、前記制御装置か前記被制御装置に割り込みを許可
する第1の手段と、前記被制御装置に複数の割り込み要
因を一時保持する第2の手段と、前記第1の手段により
割り込みが許可されたとき前記第2の手段により保持さ
れている前記複数の割り込み要因を予め定めた単位で前
記制御装置へ送出する第3の手段とを備えている。
The interrupt reception method of the present invention includes, in the interrupt reception method in which a control device receives a request for the next execution command from a controlled device, a first means for allowing an interrupt to the control device or the controlled device; a second means for temporarily holding a plurality of interrupt factors in a controlled device; and a unit for predetermining the plurality of interrupt factors held by the second means when an interrupt is permitted by the first means. and third means for sending the information to the control device.

前記第3の手段は、前記第1の手段により割り込みが許
可されたときカラン1−ア・7ブを開始しカウント値が
あらかじめ定めた値になると初期値に戻る送出フラグ選
択カウンタと、この送出フラグ選択カウンタのカウント
値に対応して前記第2の手段により保持されている前記
複数の割り込み要因を前記予め定めた単位で前記制御装
置へ送出するセレクタとを有して構成されていてもよい
The third means includes a sending flag selection counter that starts the 1st to 7th call when the interrupt is permitted by the first means and returns to the initial value when the count value reaches a predetermined value; and a selector that sends the plurality of interrupt factors held by the second means to the control device in the predetermined unit in accordance with the count value of the flag selection counter. .

又、本発明の割り込み受信方式は、前記第3の手段が送
出した前記複数の割り込み要因を受信して前記第1の手
段に見せる割り込み受信バッファを含んで構成されてい
てもよい。
Further, the interrupt reception method of the present invention may include an interrupt reception buffer that receives the plurality of interrupt causes sent by the third means and presents them to the first means.

〔実施例〕〔Example〕

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

第1図は、制御装置側の割り込み要因を8個とした場合
の本発明の一実施例を示すブロフク図である。
FIG. 1 is a diagram showing an embodiment of the present invention in which there are eight interrupt factors on the control device side.

第1図に於て、]、 OOは制御装置、200は被制御
装置、101は割り込み受信バッファ、102は命令制
御装置、201は割り込み要因保持フラグ群、202は
送出フラグ選択カウンタ、203はセレクタ、204は
制御回路、205はフラグリセット回路、信号線1は割
り込み送出許可信号、信号線2は割り込み送出信号、信
号線3は実行命令である。
In FIG. 1, ], OO is a control device, 200 is a controlled device, 101 is an interrupt reception buffer, 102 is an instruction control device, 201 is a group of interrupt cause holding flags, 202 is a sending flag selection counter, and 203 is a selector. , 204 is a control circuit, 205 is a flag reset circuit, signal line 1 is an interrupt sending permission signal, signal line 2 is an interrupt sending signal, and signal line 3 is an execution command.

制御装置100は、配下に接続される被制御装置200
に実行命令を与え被制御装置200を操作する装置であ
る。割り込み受信バッファ101は、被制御装置200
から送られてくる割り込み送出信号2と受信し、命令制
御装置1102に受信した割り込み要因フラグの内容を
見せるためのものである。命令制御装置102は、割り
込み処理回路と命令処理回路で構成されており、被制御
装置200に割り込み送出の許可を与える制御と、割り
込み要因フラグの内容を解読して次の実行命令を被制御
装置200に与える制御を行っている。被制御装置20
0は、制御装置11fl 00からの実行命令にしたが
って動作する装置で、合討8つの割り込み要因が発生し
、その割り込み要因の発生の割合は命令制御装置102
の処理に対して十分少ない装置である。割り込み要因保
持フラグ群201は、制御回路204から発生しr、−
11Jり込み要因を制御装置100に送出するまで保持
しておくためのフラグ群で、割り込み要因が発生すると
セットされ、制御装置100へ送出されるとリセットさ
れるフリップフロップである。送出フラグ選択カウンタ
202は、0から3までカランI・アンプして行き3に
なると次に0になるカウンタで、割り込み許可信号1が
来たときにOからカウントアツプして再び0になると次
の割り込み許可信号1が来るまで0で止まっている。セ
レクタ203は、割り込み要因保持フラグ群201の中
から送出フラグ選択カウンタ202の値に応じて制御装
W100に送出する割り込み要因保持フラグを選択する
ものである。制御回路20・4は、命令制御装置102
の実行命令を実行する回路で、複数の制御回路で構成さ
れており8つの割り込み要因を発生する。フラグリセッ
ト回路205は、割り込み要因保持フラグ群201に保
持している割り込み要因が制御装置】00に送出される
と、割り込み要因保持フラグ群201をリセットする回
路である。
The control device 100 has a controlled device 200 connected thereunder.
This is a device that operates the controlled device 200 by giving execution instructions to the device. The interrupt reception buffer 101 is connected to the controlled device 200
This is for receiving the interrupt sending signal 2 sent from the instruction controller 1102 and displaying the contents of the received interrupt factor flag to the instruction control device 1102. The instruction control device 102 is composed of an interrupt processing circuit and an instruction processing circuit, and controls the controlled device 200 to permit sending an interrupt, and decodes the contents of the interrupt factor flag to send the next execution instruction to the controlled device. 200 is controlled. Controlled device 20
0 is a device that operates according to the execution command from the control device 11fl 00, and eight interrupt factors occur, and the rate of occurrence of these interrupt factors is the same as that of the instruction control device 102.
This is a sufficiently small number of devices for processing. The interrupt factor holding flag group 201 is generated from the control circuit 204 and r, -
11J is a flag group for holding an interrupt factor until it is sent to the control device 100, and is a flip-flop that is set when an interrupt factor occurs and reset when it is sent to the control device 100. The send flag selection counter 202 is a counter that amplifies from 0 to 3, and when it reaches 3, it goes to 0. When the interrupt permission signal 1 comes, it counts up from 0, and when it reaches 0 again, it starts the next one. It remains at 0 until the interrupt enable signal 1 arrives. The selector 203 selects an interrupt cause holding flag to be sent to the control unit W100 from the interrupt cause holding flag group 201 according to the value of the sending flag selection counter 202. The control circuits 20 and 4 are the command control device 102
This circuit executes execution instructions, and is composed of multiple control circuits and generates eight interrupt factors. The flag reset circuit 205 is a circuit that resets the interrupt factor holding flag group 201 when the interrupt factor held in the interrupt factor holding flag group 201 is sent to the control device 00.

まず、命令制御装置102は制御回路204に実行命令
3を与える。制御回路204は、命令を実行して行き、
割り込み要因か発生すると割り込み要因保持フラグ群2
01の要因に応じたフラグをセットする。割り込み要因
保持フラグ群201が制御装置100に送信されるまで
に時間かかかるので、最大8個まで割り込み要因保持フ
ラグ群201がセットされる可能性がある。次に、命令
制御装置102は、被制御装置200の割り込みを受付
けられるとき、割り込み送出許可信号1を被制御装置2
00に送る。送出フラグ選択カウンタ202は、0で停
止したままなので、命令制御装置102が割り込み送出
許可信号1を出力するタイミングでセレクタ203を介
し割り込み要因保持フラグ群201の■と■が割り込み
受信バッファ10]に受信され、同時にフラグリセット
回路205は送出された割り込み要因に対応する割り込
み要因保持フラグ群201の■と■をリセットする。送
出フラグ選択カウンタ202は、1がくると、Oから1
にカラン(・アップして、割り込み要因保持フラグ群2
01の■と■が送出され割り込み受信バッファ101に
受信され、同時にフジグリセット回路205は送出され
た割り込み要因に対応する割り込み要因保持フラグ群2
01の■と■をリセットする。同様に送出フラグ選択カ
ウンタ202は、1から2.2から3とカウントアツプ
して行き割り込み要因保持フラグ群201の■と■、■
と■が割り込み受信バッファ101に受信される。割り
込み受信バッファ101は、連続して受信した割り込み
要因保持フラグ群201の■−■、■−■、■−■、■
−■を命令制御装置102に見せる。命令制御装置10
2は割り込み要因を解析して次の実行命令3を被制御装
置200に与える。
First, the instruction control device 102 provides the execution instruction 3 to the control circuit 204. The control circuit 204 executes the instructions,
When an interrupt factor occurs, interrupt factor retention flag group 2
Set a flag according to the factor of 01. Since it takes time for the interrupt factor holding flag group 201 to be sent to the control device 100, there is a possibility that up to eight interrupt factor holding flags 201 are set. Next, when the instruction control device 102 receives an interrupt from the controlled device 200, the instruction control device 102 transmits the interrupt sending permission signal 1 to the controlled device 200.
Send to 00. Since the sending flag selection counter 202 remains stopped at 0, at the timing when the instruction control device 102 outputs the interrupt sending permission signal 1, the selector 203 sends ■ and ■ of the interrupt cause holding flag group 201 to the interrupt receiving buffer 10. At the same time that the received interrupt factor is received, the flag reset circuit 205 resets ■ and ■ of the interrupt factor holding flag group 201 corresponding to the transmitted interrupt factor. When the sending flag selection counter 202 reaches 1, it changes from O to 1.
Click (up) and select interrupt factor retention flag group 2.
■ and ■ of 01 are sent and received by the interrupt reception buffer 101, and at the same time, the Fuji reset circuit 205 sets the interrupt factor holding flag group 2 corresponding to the sent interrupt factor.
Reset ■ and ■ in 01. Similarly, the sending flag selection counter 202 counts up from 1 to 2.
and ■ are received by the interrupt reception buffer 101. The interrupt reception buffer 101 stores the consecutively received interrupt cause holding flags 201 -■, ■-■, ■-■, ■.
- Show ■ to the command control device 102. Command control device 10
2 analyzes the interrupt cause and provides the next execution instruction 3 to the controlled device 200.

第2図は、送出フラグ選択カウンタ202の値と、制御
装置100に送出される割り込み要因保持フラグ群20
1との関係を示している。
FIG. 2 shows the value of the sending flag selection counter 202 and the interrupt factor holding flag group 20 sent to the control device 100.
It shows the relationship with 1.

第3図は、割り込み送出許可信号1と送出フラグ選択カ
ウンタ202の値と割り込み受信バッファ]01に割り
込み要因保持フラグ群201の■から■が受信されるタ
イミングを示すタイムチャートである。
FIG. 3 is a time chart showing the timing at which the interrupt sending permission signal 1, the value of the sending flag selection counter 202, and the interrupt receiving buffer ]01 receive the interrupt cause holding flags 201 from ■ to ■.

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

以上説明したように本発明は、制御装置が割り込み要因
を処理可能なときに割り込み要因送出許可信号を送信す
ることにより割り込み要因の優先判定を必要とせずに割
り込み要因を受信てきる。
As described above, according to the present invention, an interrupt factor can be received without requiring priority determination of the interrupt factor by transmitting an interrupt factor sending permission signal when the control device is capable of processing the interrupt factor.

また、割り込み要因をリセットする信号も必要ないので
金物が削減できる。更に、制御装置の配下に複数の被制
御装置を接続してタイミング良く割り込み送出許可信号
を出力することにより、効率よく被制御装置の割り込み
を受け付けることが出来るという効果がある。
Furthermore, since there is no need for a signal to reset the interrupt factor, the amount of hardware can be reduced. Furthermore, by connecting a plurality of controlled devices under the control device and outputting interrupt sending permission signals at a timely manner, it is possible to efficiently receive interrupts from the controlled devices.

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

第1図は本発明の一実施例を示すブロック図、第2図は
第1図の送出フラグ選択カウンタ202の値と制御装置
100に送出される割り込み要因保持フラグ群201と
の関係を示す図、第3図は第1図の割り込み送出許可信
号1と送出フラグ選択カウンタ202の値と割り込み受
信バッファ101に割り込み要因保持フラグ群201の
■から■か受信されるタイミングを示すタイムチャート
である。 100・制御装置、101・・・割り込み受信バッファ
、102・・命令制御装置、200・・・被制御装置、
201・・割り込み要因保持フラグ群、202送出フラ
グ選択カウンタ、203・・セレクタ、204・・・制
御回路、205 ・フラグリセット回路。
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a diagram showing the relationship between the value of the sending flag selection counter 202 in FIG. 1 and the interrupt factor holding flag group 201 sent to the control device 100. , FIG. 3 is a time chart showing the interrupt sending permission signal 1 shown in FIG. 100 Control device, 101 Interrupt reception buffer, 102 Instruction control device, 200 Controlled device,
201... Interrupt factor holding flag group, 202 Sending flag selection counter, 203... Selector, 204... Control circuit, 205 - Flag reset circuit.

Claims (1)

【特許請求の範囲】 1、制御装置が被制御装置から次の実行命令の要求を受
け付ける割り込み受信方式に於て、前記制御装置が前記
被制御装置に割り込みを許可する第1の手段と、前記被
制御装置に複数の割り込み要因を一時保持する第2の手
段と、前記第1の手段により割り込みが許可されたとき
前記第2の手段により保持されている前記複数の割り込
み要因を予め定めた単位で前記制御装置へ送出する第3
の手段とを備えたことを特徴とする割り込み受信方式。 2、前記第3の手段は、前記第1の手段により割り込み
が許可されたときカウントアップを開始しカウント値が
あらかじめ定めた値になると初期値に戻る送出フラグ選
択カウンタと、この送出フラグ選択カウンタのカウント
値に対応して前記第2の手段により保持されている前記
複数の割り込み要因を前記予め定めた単位で前記制御装
置へ送出するセレクタとを有することを特徴とする請求
項1記載の割り込み受信方式。 3、前記第3の手段が送出した前記複数の割り込み要因
を受信して前記第1の手段に見せる割り込み受信バッフ
ァを含むことを特徴とする請求項1記載の割り込み受信
方式。
[Scope of Claims] 1. In an interrupt reception method in which a control device receives a request for the next execution command from a controlled device, the control device includes first means for allowing the controlled device to interrupt; a second means for temporarily holding a plurality of interrupt factors in a controlled device; and a unit for predetermining the plurality of interrupt factors held by the second means when an interrupt is permitted by the first means. a third signal sent to the control device at
An interrupt reception method characterized by comprising: means. 2. The third means includes a sending flag selection counter that starts counting up when an interrupt is permitted by the first means and returns to an initial value when the count value reaches a predetermined value; and a selector for sending the plurality of interrupt factors held by the second means to the control device in the predetermined unit in accordance with the count value of the interrupt control device according to claim 1. Reception method. 3. The interrupt receiving system according to claim 1, further comprising an interrupt receiving buffer that receives the plurality of interrupt causes sent by the third means and displays them to the first means.
JP26417190A 1990-10-02 1990-10-02 Interruption receiving system Pending JPH04140874A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26417190A JPH04140874A (en) 1990-10-02 1990-10-02 Interruption receiving system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26417190A JPH04140874A (en) 1990-10-02 1990-10-02 Interruption receiving system

Publications (1)

Publication Number Publication Date
JPH04140874A true JPH04140874A (en) 1992-05-14

Family

ID=17399445

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26417190A Pending JPH04140874A (en) 1990-10-02 1990-10-02 Interruption receiving system

Country Status (1)

Country Link
JP (1) JPH04140874A (en)

Similar Documents

Publication Publication Date Title
US4275458A (en) Interrupt expander circuit
JPH04140874A (en) Interruption receiving system
KR100199021B1 (en) A multi-interrupt control device and method by interrupt order on pci bus
EP1029285B1 (en) Peripheral servicing
JPH05282244A (en) Information processor
JP2687324B2 (en) Reception buffer control method
US5125079A (en) Method for controlling the data transmission of a central unit interfacing control circuit and circuit arrangement for the implementation of the method
JPH0358217B2 (en)
JPS62235898A (en) Remote supervisory and controlling slave station equipment
JPS6165557A (en) Control system of communications priority
JP3211738B2 (en) Data transfer device and data transfer method
JPH0991157A (en) Task-device driver communication control method
JPH0353639A (en) Communication control equipment
JPH0512203A (en) Bus performance measurement system
JPS6188635A (en) Signal transmitting and receiving circuit
JPH0325552A (en) Bus connector
JPS61264829A (en) Control system for interruption of network controller
JPH01314363A (en) Telegraphic message reception system
JPH04183145A (en) Communication controller
JPH0573484A (en) Information processing system
JPH0675780A (en) Interruption controller
JPH04359348A (en) Device cross call device
JPH03189746A (en) System controller
JPH0760416B2 (en) Data processing device
JPS60143046A (en) Cyclic transmission system