Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0126107B2 - - Google Patents
[go: Go Back, main page]

JPH0126107B2 - - Google Patents

Info

Publication number
JPH0126107B2
JPH0126107B2 JP15495184A JP15495184A JPH0126107B2 JP H0126107 B2 JPH0126107 B2 JP H0126107B2 JP 15495184 A JP15495184 A JP 15495184A JP 15495184 A JP15495184 A JP 15495184A JP H0126107 B2 JPH0126107 B2 JP H0126107B2
Authority
JP
Japan
Prior art keywords
interrupt request
input
output
signal
interrupt
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
Application number
JP15495184A
Other languages
Japanese (ja)
Other versions
JPS6133561A (en
Inventor
Fumio Yamazaki
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.)
Toyo Electric Manufacturing Ltd
Original Assignee
Toyo Electric Manufacturing 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 Toyo Electric Manufacturing Ltd filed Critical Toyo Electric Manufacturing Ltd
Priority to JP15495184A priority Critical patent/JPS6133561A/en
Publication of JPS6133561A publication Critical patent/JPS6133561A/en
Publication of JPH0126107B2 publication Critical patent/JPH0126107B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/24Handling requests for interconnection or transfer for access to input/output bus using interrupt
    • G06F13/26Handling requests for interconnection or transfer for access to input/output bus using interrupt with priority control

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bus Control (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は入出力装置の割込み制御方法、特にプ
ロセス入出力装置の多重優先割込み制御方式に関
するものである。かような技術において第3図を
参照して説明する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an interrupt control method for an input/output device, and particularly to a multiple priority interrupt control method for a process input/output device. Such a technique will be explained with reference to FIG.

第3図はプロセス入出力装置の全体構成を示す
もので、1は制御用計算機、2はプロセス入出力
ユニツト、3はプロセス入出力バスである。ここ
に、プロセス入出力ユニツト2のそれぞれは図示
の如くユニツト番号U0,U1……が割当てられ、
その各入出力モジユール22もIO0,IO1のよう
にチヤンネル番号が割当てられ、各ユニツトコン
トローラ21がプロセス入出力バス3に接続され
て制御用計算機1と各入出力モジユール22と間
のプロセス情報の転送制御を行うようになつてい
る。
FIG. 3 shows the overall configuration of the process input/output device, where 1 is a control computer, 2 is a process input/output unit, and 3 is a process input/output bus. Here, each of the process input/output units 2 is assigned a unit number U 0 , U 1 . . . as shown in the figure.
Each input/output module 22 is also assigned a channel number such as IO 0 and IO 1 , and each unit controller 21 is connected to the process input/output bus 3 to transmit process information between the control computer 1 and each input/output module 22. transfer control.

さて、かような構成のプロセス入出力装置にお
いては、各入出力モジユール22により発生され
る各種のサービス要求、例えばアナログ入力モジ
ユールからのアナログデイジタル変換終了に伴う
サービスの要求、デイジタル入力モジユールから
の入力状態変化に伴うサービス要求などを制御用
計算機1に伝達し、サービス要求に対する所定の
処理を制御用計算機に実行させるために、同時に
多数のプロセス入出力ユニツト2が割込み要求が
を行つた場合、所定の優先順位に基づいて1個の
プロセス入出力ユニツトの割込み要求が受付けら
れるようにした多重優先割込み制御が採用されて
いる。
Now, in a process input/output device having such a configuration, various service requests are generated by each input/output module 22, such as a request for service upon completion of analog-to-digital conversion from an analog input module, and an input from a digital input module. In order to transmit service requests associated with state changes to the control computer 1 and have the control computer execute predetermined processing in response to the service requests, when a large number of process input/output units 2 simultaneously make interrupt requests, the predetermined Multi-priority interrupt control is adopted in which an interrupt request from one process input/output unit is accepted based on the priority of the process input/output unit.

〔従来技術とその問題点〕[Prior art and its problems]

第4図は従来のプロセス入出力装置の全体構成
を示すもので、31は割込み要求転送バス、32
は割込み要求確認信号線である。図中、第3図と
同符号のものは同じ構成部分を示す。
FIG. 4 shows the overall configuration of a conventional process input/output device, in which 31 is an interrupt request transfer bus, 32
is an interrupt request confirmation signal line. In the figure, the same reference numerals as in FIG. 3 indicate the same components.

第4図において、第3図に示される入出力バス
3としては割込み要求転送バス31と、制御計算
機1、各プロセス入出力ユニツト2を縦続に接続
している割込み要求確認信号線32とが設けられ
ている。
In FIG. 4, the input/output bus 3 shown in FIG. 3 includes an interrupt request transfer bus 31 and an interrupt request confirmation signal line 32 that connects the control computer 1 and each process input/output unit 2 in cascade. It is being

その割込み要求転送バス31では、各プロセス
入出力ユニツト2のユニツトコントローラ21の
割込み要求出力QOから送出される割込み要求信
号を制御用計算機1の割込み要求入力QIに転送
するようにし、いまユニツト番号U0,U1…の如
きユニツト番号UMのプロセス入出力ユニツト2
を当該プロセス入出力ユニツトとすると、割込み
要求確認信号線32では、制御用計算機1あるい
は前段のユニツト番号UM-1のプロセス入出力ユ
ニツトのユニツトコントローラ21の割込み要求
確認出力GOから送出される割込み要求確認信号
を、当該プロセス入出力ユニツトのユニツトコン
トローラ21の割込み要求確認入力GIに転送し、
当該プロセス入出力ユニツトのユニツトコントロ
ーラ21の割込み要求確認出力GOから送出する
割込み要求確認信号を次段のユニツト番号UM+1
のプロセス入出力ユニツトのユニツトコントロー
ラ21の割込み要求確認入力GIに転送するよう
にして多重割込み制御を行うものとなる。
The interrupt request transfer bus 31 is configured to transfer the interrupt request signal sent from the interrupt request output QO of the unit controller 21 of each process input/output unit 2 to the interrupt request input QI of the control computer 1. Process input/output unit 2 with unit number U M such as 0 , U 1 ...
Assuming that the process input/output unit is the corresponding process input/output unit, the interrupt request confirmation signal line 32 receives an interrupt sent from the interrupt request confirmation output GO of the control computer 1 or the unit controller 21 of the process input/output unit with unit number U M-1 in the previous stage. Transfer the request confirmation signal to the interrupt request confirmation input GI of the unit controller 21 of the process input/output unit,
The interrupt request confirmation signal sent from the interrupt request confirmation output GO of the unit controller 21 of the process input/output unit is sent to the next stage unit number U M+1.
Multiple interrupt control is performed by transferring the request to the interrupt request confirmation input GI of the unit controller 21 of the process input/output unit.

第5図は第4図のプロセス入出力ユニツトのユ
ニツトコントローラにおける多重優先割込制御回
路の一例を示すもので、4はバスレシーバ、5,
5′はバスドライバ、6はデータ入力D、クロツ
ク入力T、記憶出力Qおよび反転記憶出力をも
つポジテイブエツジトリガDタイプフリツプフロ
ツプ(以下単にフリツプフロツプという)、OR1
は論理和ゲート、AND1,AND2は論理積ゲート
である。
FIG. 5 shows an example of a multiple priority interrupt control circuit in the unit controller of the process input/output unit shown in FIG. 4, where 4 is a bus receiver, 5,
5' is a bus driver; 6 is a positive edge trigger D-type flip-flop (hereinafter simply referred to as a flip-flop) having data input D, clock input T, memory output Q, and inverted memory output; OR 1
is an OR gate, AND 1 and AND 2 are AND gates.

さて、割込み要求確認信号が制御用計算機1あ
るいは前段のプロセス入出力ユニツトから割込み
要求確認信号線32を通して割込み要求確認入力
GIに転送されると、割込み要求確認信号はバス
レシーバ4により受信されてフリツプフロツプ6
のクロツク入力Tと論理積ゲートAND1,AND2
に伝えられ、その信号入力の前縁でフリツプフロ
ツプ6のデータ入力Dの論理を記憶させるため、
このときデータ入力Dの論理が「0」であれば記
憶出力Qの論理が「0」、反転記憶出力の論理
が「1」となる。
Now, the interrupt request confirmation signal is input from the control computer 1 or the previous process input/output unit through the interrupt request confirmation signal line 32.
Once transferred to the GI, the interrupt request acknowledge signal is received by bus receiver 4 and sent to flip-flop 6.
clock input T and AND gates AND 1 , AND 2
in order to store the logic of the data input D of the flip-flop 6 at the leading edge of its signal input.
At this time, if the logic of the data input D is "0", the logic of the storage output Q becomes "0", and the logic of the inverted storage output becomes "1".

これより、割込み要求確認信号は論理積ケート
AND2とバスドライバ5′を通して出力し、割込
み要求確認出力GOから割込み要求確認信号線3
2に送出されて次段のプロセス入出力ユニツトの
ユニツトコントローラ21の割込み要求確認入力
GIに転送される。また、フリツプフロツプ6の
データ入力Dの論理が「1」であれば、記憶出力
Qの論理が「1」、反転記憶出力が「0」とな
り、割込み要求確認信号はバスドライバ5′に伝
えられずに論理積ゲートAND1により割込み要求
受付信号ACKとして内部の論理回路に伝えられ
るものとなる。
From this, the interrupt request confirmation signal is a logical product.
Output through AND 2 and bus driver 5', and output from interrupt request confirmation output GO to interrupt request confirmation signal line 3.
Interrupt request confirmation input to the unit controller 21 of the next stage process input/output unit.
Transferred to GI. Furthermore, if the logic of the data input D of the flip-flop 6 is "1", the logic of the memory output Q is "1", the inverted memory output is "0", and the interrupt request confirmation signal is not transmitted to the bus driver 5'. Then, the interrupt request acceptance signal ACK is transmitted to the internal logic circuit by the AND gate AND1 .

したがつて、当該プロセス入出力ユニツトにお
いていずれかの入出力モジユールによりサービス
要求が発生されると、サービス要求信号SQ0
SQ1,SQ2……のうちサービス要求を発生した入
出力モジユールのサービス要求信号が論理「1」
となつて論理和ゲートOR1の出力の論理を「1」
にし、バスドライバ5を通して出力し割込み要求
出力QOから割込み要求転送バス31に送出して
割込み要求を行うとともに、フリツプフロツプ6
のデータ入力Dの論理を「1」にしているため、
同様に次段以降のプロセス入出力ユニツトが割込
み要求を行つていても、割込み要求確認信号は当
該プロセス入出力ユニツトによつて受付けられた
次段以降のプロセス入出力ユニツトには伝達され
ない。これは次段以降のプロセス入出力ユニツト
に比べて当該プロセス入出力ユニツトは割込み要
求の優先順位が高いということになる。
Therefore, when a service request is generated by any input/output module in the process input/output unit, the service request signal SQ 0 ,
Among SQ 1 , SQ 2 ..., the service request signal of the input/output module that generated the service request is logic "1"
So, the logic of the output of OR gate OR 1 is "1"
is output through the bus driver 5, and sent from the interrupt request output QO to the interrupt request transfer bus 31 to issue an interrupt request.
Since the logic of data input D is set to "1",
Similarly, even if a subsequent process input/output unit issues an interrupt request, the interrupt request confirmation signal is not transmitted to the subsequent process input/output unit accepted by the process input/output unit. This means that the process input/output unit has a higher priority for interrupt requests than the process input/output units in the next and subsequent stages.

かようにして、第4図および第5図に示したも
のは、簡単な回路構成で多重優先割込み制御が行
えるという利点があるが、一方割込み要求に対す
る各プロセス入出力ユニツトの優先順位が各プロ
セス入出力ユニツト間の物理的な接続順序で決定
されるという欠点をもつものである。
In this way, the system shown in FIGS. 4 and 5 has the advantage that multiple priority interrupt control can be performed with a simple circuit configuration, but on the other hand, the priority of each process input/output unit with respect to interrupt requests is determined by each process. This has the disadvantage that it is determined by the physical connection order between input and output units.

これは、仮に優先順位変更しようとすればプロ
セス入出力バスを構成するケーブルの引きまわし
を変更しなくてはならないものである。さらに、
割込み要求を行つていないプロセス入出力ユニツ
トは、ユニツトコントローラの多重優先割込み制
御回路を通して次段のプロセス入出力ユニツトに
割込み要求確認信号をバイパスするようにしてい
るため、電源が供給されていないプロセス入出力
ユニツトがあれば割込み要求確認信号はそのプロ
セス入出力ユニツトからバイパスされず、その結
果次段以降のプロセス入出力ユニツトにおいて割
込み要求を行うことができなくなつてシステムの
運転を停止させてしまう。換言するならば、シス
テムの運転中に電源を切断することによつて一部
のプロセス入出力ユニツトを切離し、保守などを
行うことができない。
This means that if the priority order were to be changed, the routing of the cables that constitute the process input/output bus would have to be changed. moreover,
For process input/output units that have not requested an interrupt, the interrupt request confirmation signal is bypassed to the next stage process input/output unit through the multiple priority interrupt control circuit of the unit controller, so that processes to which power is not supplied are bypassed. If there is an input/output unit, the interrupt request confirmation signal will not be bypassed from that process input/output unit, and as a result, subsequent process input/output units will not be able to request an interrupt, causing system operation to stop. . In other words, some process input/output units cannot be disconnected for maintenance or the like by cutting off the power while the system is in operation.

〔発明の構成〕[Structure of the invention]

本発明は上述したような点に鑑みて、割込み要
求に対する優先順位を各プロセス入出力ユニツト
間の物理的な接続順序に依存することなく各プロ
セス入出力ユニツトごとに自由に設定可能とし、
かつ割込み要求確認信号を各プロセス入出力ユニ
ツトのユニツトコントローラを通してバイパスさ
せることなく制御用計算機から直接割込み要求を
行つているプロセス入出力ユニツトに伝達させる
ようにした、柔軟性に富むプロセス入出力装置の
多重優先割込み制御方式を提供するにある。以
下、本発明を図面に基づいて説明する。
In view of the above-mentioned points, the present invention enables the priority order of interrupt requests to be freely set for each process input/output unit without depending on the physical connection order between the process input/output units,
Furthermore, a highly flexible process input/output device is provided in which the interrupt request confirmation signal is directly transmitted from the control computer to the process input/output unit making the interrupt request without bypassing the unit controller of each process input/output unit. The present invention provides a multiple priority interrupt control method. Hereinafter, the present invention will be explained based on the drawings.

第1図は本発明によるプロセス入力装置を説明
するため示したもので、1′は制御用計算機、
2′はプロセス入出力ユニツト、34は割込み要
求確認転送バスである。図中、第4図と同符号の
ものは同じ機能を有する部分を示す。
FIG. 1 is shown to explain the process input device according to the present invention, and 1' is a control computer;
2' is a process input/output unit, and 34 is an interrupt request confirmation transfer bus. In the figure, the same reference numerals as in FIG. 4 indicate parts having the same functions.

すなわち、第1図に示した系統においては、プ
ロセス入出力バスとしては割込み要求転送バス3
1と同期信号転送バス33と割込み要求確認転送
バス34とが設けられ、その割込み要求転送バス
31において各プロセス入出力ユニツト2′のユ
ニツトコントローラ21′の割込み要求入出力
QIOから送出される割込み要求信号を制御用計算
機1′の割込み要求入力QIに転送するとともに、
各プロセス入出力ユニツト2′のユニツトコント
ローラ21′の割込み入出力QIOに転送するよう
にし、同期信号転送バス33において制御用計算
機1′にて図示していない同期信号発生回路より
与えられて制御用計算機1′の同期信号出力SOか
ら送出される一定周期の同期信号を各プロセス入
出力ユニツト2′のユニツトコントローラ21′の
同期信号入力SIに転送するようにし、割込み要求
確認転送バス34において制御用計算機1′の割
込み要求確認出力GOから送出される割込み要求
確認信号を各プロセス入出力ユニツト2′のユニ
ツトコントローラ21′の割込み要求確認入力GI
に転送するようにする。
That is, in the system shown in FIG. 1, the interrupt request transfer bus 3 is used as the process input/output bus.
1, a synchronization signal transfer bus 33, and an interrupt request confirmation transfer bus 34 are provided, and the interrupt request input/output of the unit controller 21' of each process input/output unit 2' is carried out on the interrupt request transfer bus 31.
Transfers the interrupt request signal sent from QIO to the interrupt request input QI of control computer 1',
It is transferred to the interrupt input/output QIO of the unit controller 21' of each process input/output unit 2', and the control computer 1' receives the control signal from the synchronous signal generation circuit (not shown) on the synchronous signal transfer bus 33. A synchronizing signal of a fixed period sent from the synchronizing signal output SO of the computer 1' is transferred to the synchronizing signal input SI of the unit controller 21' of each process input/output unit 2', and the interrupt request confirmation transfer bus 34 is used for control. The interrupt request confirmation signal sent from the interrupt request confirmation output GO of the computer 1' is sent to the interrupt request confirmation input GI of the unit controller 21' of each process input/output unit 2'.
to be forwarded to.

さらに、各プロセス入出力ユニツト2′のユニ
ツトコントローラ21′に、割込み要求転送バス
31に割込み要求信号が送出されていないときに
のみ、同期信号入力SIに転送される同期信号の一
周期の開始時からチエツクパルスの計数を行い、
予め設定されている各プロセス入出力ユニツトご
とに固有の優先順位設定値に相当する個数のチエ
ツクパルスを計数した時点において、入出力モジ
ユールによりサービス要求が発生されていてかつ
割込み要求転送バス31に割込み要求信号が送出
されていなければ、割込み要求出力QOから割込
み要求転送バス31に割込み要求信号を送出して
割込み要求を行い、この割込み要求を行つている
ときにのみ、割込み要求確認入力GIに転送され
る割込み要求確認信号を受けるようにした多重優
先割込み機能を有するものである。
Furthermore, only when no interrupt request signal is sent to the interrupt request transfer bus 31 to the unit controller 21' of each process input/output unit 2', at the start of one cycle of the synchronization signal transferred to the synchronization signal input SI. Count the check pulses from
At the time when the number of check pulses corresponding to the priority set value unique to each process input/output unit is counted in advance, if a service request is generated by the input/output module and an interrupt is sent to the interrupt request transfer bus 31. If no request signal has been sent, an interrupt request signal is sent from the interrupt request output QO to the interrupt request transfer bus 31 to request an interrupt, and only when this interrupt request is being made is it transferred to the interrupt request confirmation input GI. It has a multi-priority interrupt function that allows it to receive interrupt request confirmation signals.

かような機能について、つぎに第2図例を用い
て詳細説明する。
Next, such a function will be explained in detail using an example in FIG.

第2図は本発明によるプロセス入出力ユニツト
のユニツトコントローラにおける多重優先割込み
制御回路の具体的な回路構成例を示すもので、
4′,4″,4はバスレシーバ、5″はバスドラ
イバ、6′,6″はセツト入力Sとリセツト入力R
と記憶出力Qとを有するR−Sタイプ、データ入
力Dとクロツク入力Tとリセツト入力Rと記憶出
力Qとを有するポジテイブエツジトリガDタイプ
のフリツプフロツプ、7,7′はデータ入力Dの
論理が「1」のときクロツク入力Tの立ち上がり
エツジにてトリガされてパルス出力Qからワンシ
ヨツトパルスを出力する如きワンシヨツト回路、
8はパルス発振イネーブル入力ENの論理が
「1」になる期間パルス出力CLKからチエツクパ
ルスを与えるチエツクパルス発生器、9はロード
入力LDとプリセツトデータ入力PDと減算パルス
入力TDとボロー出力BRとを有するプリセツト
機能付減算カウンタによるチエツクパルス計数
器、10は優先順位設定器、OR2は論理和ゲー
ト、AND3,AND4は論理積ゲート、NOT1
NOT2はインバータゲートである。
FIG. 2 shows a specific circuit configuration example of the multiple priority interrupt control circuit in the unit controller of the process input/output unit according to the present invention.
4', 4'', 4 are bus receivers, 5'' are bus drivers, 6', 6'' are set input S and reset input R.
and a storage output Q, a positive edge trigger D type flip-flop having a data input D, a clock input T, a reset input R and a storage output Q; 1, a one-shot circuit that is triggered by the rising edge of the clock input T and outputs a one-shot pulse from the pulse output Q;
8 is a check pulse generator that provides a check pulse from the pulse output CLK during the period when the logic of the pulse oscillation enable input EN is "1"; 9 is a load input LD, a preset data input PD, a subtraction pulse input TD, and a borrow output BR. 10 is a priority setter, OR 2 is an OR gate, AND 3 , AND 4 are AND gates, NOT 1 ,
NOT 2 is an inverter gate.

すなわち、かかる回路構成の機能はつぎの如く
である。
That is, the functions of this circuit configuration are as follows.

さて、割込み要求転送バス31に送出され制御
用計算機1の割込み要求入力QIに転送される割
込み要求信号は、各プロセス入出力ユニツト2′
のユニツトコントローラ21′の割込み要求入力
QIOにも転送されることにより、バスレシーバ
4″によつて受信されてインバータゲートNOT1
に伝えられ、このNOT1により論理が反転された
のち論理積ゲートAND3とワンシヨツト回路7の
データ入力Dとに与えられる。
Now, the interrupt request signal sent to the interrupt request transfer bus 31 and transferred to the interrupt request input QI of the control computer 1 is transmitted to each process input/output unit 2'.
Interrupt request input to unit controller 21'
QIO is also transferred to the bus receiver 4″ and is received by the inverter gate NOT 1
After the logic is inverted by this NOT 1 , it is applied to the AND gate AND 3 and the data input D of the one shot circuit 7.

一方、同期信号転送バス33に送出され同期信
号入力SIに転送される同期信号は、バスレシーバ
4に受信されてワンシヨツト回路7のクロツク
入力Tに入力される。このワンシヨツト回路7に
おいては、前記同期信号の一周期の開始時である
立ち上がりエツジごとにデータ入力Dの論理状態
を調べ、そのデータ入力Dの論理が「1」である
ときのみトリガしてパルス出力Qから起動パルス
を発生する如く作用することから、いずれかのプ
ロセス入出力ユニツトで割込み要求が行われてい
ないときには割込み要求入出力QIOに割込み要求
信号が転送されないためバスレシーバ4″出力の
論理は「0」であり、インバータゲートNOT1
より反転されてワンシヨツト回路7のデータ入力
Dの論理が「1」となり、ワンシヨツト回路7は
クロツク入力Tに入力される同期信号の立ち上が
りエツジにてトリガされてパルス出力Qから起動
パルスを出力する。
On the other hand, the synchronization signal sent to the synchronization signal transfer bus 33 and transferred to the synchronization signal input SI is received by the bus receiver 4 and input to the clock input T of the one shot circuit 7. This one-shot circuit 7 checks the logic state of the data input D at every rising edge that is the start of one cycle of the synchronization signal, and triggers and outputs a pulse only when the logic of the data input D is "1". Since Q acts to generate a starting pulse, when no interrupt request is made in any process input/output unit, the interrupt request signal is not transferred to the interrupt request input/output QIO, so the logic of bus receiver 4'' output is It is "0" and is inverted by the inverter gate NOT 1 , so that the logic of the data input D of the one shot circuit 7 becomes "1", and the one shot circuit 7 is triggered by the rising edge of the synchronization signal input to the clock input T. A starting pulse is output from pulse output Q.

また、ワンシヨツト回路7のパルス出力Qがチ
エツクパルス計数器9のロード入力LDとフリツ
プフロツプ6′のセツト入力Sに接続されている
ため、前述の起動パルスがスイツチ等の優先順位
設定器10によつて設定されプリセツトデータ入
力PDに入力されている優先順位設定値をチエツ
クパルス計数器9にプリセツトさせ、一方フリツ
プフロツプ6′をセツトさせて記憶出力Qの論理
を「1」にするので、チエツクパルス発生器8は
パルス発振イネーブル入力ENの論理が「1」に
なつてパルス出力CLKからチエツクパルス列を
出力する。チエツクパルス発生器8のパルス出力
CLKがチエツクパルス計数器9の減算パルス入
力TDに接続されているため、チエツクパルス計
数器9は前述のチエツクパルス列の1つのチエツ
クパルスを入力するごとに計数値を1ずつ減じ、
プリセツトしている前記優先順位設定値の減算計
数を行い優先順位設定値に相当する個数のチエツ
クパルスを計数したときに、ボロー出力BRから
割込みチエツク信号を出力する。
Furthermore, since the pulse output Q of the one-shot circuit 7 is connected to the load input LD of the check pulse counter 9 and the set input S of the flip-flop 6', the above-mentioned starting pulse is controlled by the priority setter 10 such as a switch. The priority set value that has been set and is input to the preset data input PD is preset to the check pulse counter 9, and the flip-flop 6' is set to set the logic of the memory output Q to "1", so a check pulse is generated. When the logic of the pulse oscillation enable input EN becomes "1", the device 8 outputs a check pulse train from the pulse output CLK. Pulse output of check pulse generator 8
Since CLK is connected to the subtraction pulse input TD of the check pulse counter 9, the check pulse counter 9 subtracts the count value by 1 every time one check pulse of the above-mentioned check pulse train is input.
When the preset priority setting value is subtracted and the number of check pulses corresponding to the priority setting value is counted, an interrupt check signal is output from the borrow output BR.

さらには、チエツクパルス計数器9のボロー出
力BRがフリツプフロツプ6′のリセツト入力R
とフリツプフロツプ6″のクロツク入力Tに接続
されているため、前述の割込みチエツク信号がフ
リツプフロツプ6′をリセツトさせて記憶出力Q
の論理を「0」にするので、チエツクパルス発生
器8はパルス発振イネーブル入力ENの論理が
「0」となつてチエツクパルスの出力を停止し、
一方その前縁にてフリツプフロツプ6″にデータ
入力Dの論理を記憶させ、さらに記憶出力Qから
送出させてバスドライバ5″と論理積ゲート
AND4の一方の入力とに伝えるため、その際フリ
ツプフロツプ6″のデータ入力Dの論理が「1」
になつているに記憶出力Qの論理が「1」になつ
ていることから、バスドライバ5″を通して割込
み要求入出力QIOから割込み要求転送バス31に
割込み要求信号を送出し割込み要求を行う。ま
た、割込み要求確認信号が割込み要求確認転送バ
ス34に送出され、割込み要求確認入力GIに転
送されてバスレシーバ4′により受信されると、
割込み要求確認信号が論理積ゲートAND4のもう
一方の入力されるのでこの論理積ゲートAND4
より割込み要求受付け信号ACKが内部の論理回
路に伝えられることになる。
Furthermore, the borrow output BR of the check pulse counter 9 is connected to the reset input R of the flip-flop 6'.
is connected to the clock input T of flip-flop 6'', so that the aforementioned interrupt check signal resets flip-flop 6' and outputs the memory output Q.
Since the logic of the check pulse generator 8 becomes "0", the logic of the pulse oscillation enable input EN becomes "0" and stops outputting check pulses.
On the other hand, the logic of the data input D is stored in the flip-flop 6'' at its leading edge, and the logic of the data input D is further sent out from the storage output Q, and connected to the bus driver 5'' and the AND gate.
AND 4 , so that the logic of data input D of flip-flop 6'' is "1".
Since the logic of the memory output Q is "1" when the current state is 1, an interrupt request signal is sent from the interrupt request input/output QIO to the interrupt request transfer bus 31 through the bus driver 5'', and an interrupt request is made. , when the interrupt request confirmation signal is sent to the interrupt request confirmation transfer bus 34, transferred to the interrupt request confirmation input GI, and received by the bus receiver 4',
Since the interrupt request confirmation signal is inputted to the other input of the AND gate AND4 , the interrupt request acceptance signal ACK is transmitted to the internal logic circuit by the AND gate AND4 .

ところで、フリツプフロツプ6″のデータ入力
Dの論理は論理積ゲートAND3におけるインバー
タゲートNOT1出力の論理と論理和ゲートOR2
力の論理との論理積によつて決定されるものとな
ることから、入出力モジユールから発生されるサ
ービス要求の有無と他のプロセス入出力ユニツト
から発生させる割込み要求の有無とにより、つぎ
の3通りの論理がある。
By the way, since the logic of the data input D of the flip-flop 6'' is determined by the logical product of the output of the inverter gate NOT 1 in the AND gate AND 3 and the logic of the output of the OR gate OR 2 , There are the following three logics depending on the presence or absence of a service request generated from an input/output module and the presence or absence of an interrupt request generated from another process input/output unit.

(1) いずれの入出力モジユールによつてもサービ
ス要求が発生されていないときには、サービス
要求信号SQ0,SQ1,SQ2,……はいずれも論
理「0」であつても論理和ゲートOR2出力の論
理が「0」となるため、論理積ゲートAND3
力の論理は「0」である。
(1) When no service request is generated by any input/output module, the service request signals SQ 0 , SQ 1 , SQ 2 , etc. Since the logic of the 2 outputs is "0", the logic of the AND 3 output of the AND gate is "0".

(2) いずれかのプロセス入出力ユニツトにより割
込み要求が行われているときには、バスレシー
バ4″出力の論理は「1」であつてインバータ
ゲートNOT1により反転されインバータゲート
NOT1出力の論理が「0」となるため、論理和
ゲートOR2の出力の論理、すなわち入出力モジ
ユールにより発生されるサービス要求の有無に
拘らず論理積ゲートAND3出力の論理は「0」
である。
(2) When an interrupt request is made by any process input/output unit, the logic of the bus receiver 4'' output is "1" and is inverted by the inverter gate NOT 1 .
Since the logic of the NOT 1 output is "0", the logic of the output of the OR gate OR 2 , that is, the logic of the AND 3 output is "0" regardless of the presence or absence of a service request generated by the input/output module.
It is.

(3) いずれかの入出力モジユールによつてサービ
ス要求が発生されかついずれのプロセス入出力
ユニツトによつても割込み要求が行われていな
いときには、サービス要求信号SQ0,SQ1
SQ2,……のうちサービス要求を発生している
入出力モジユールのサービス要求信号は論理
「1」であつて、論理和ゲートOR2出力の論理
が「1」となり、かつバスレシーバ4″出力の
論理は「0」であつてインバータゲートNOT1
により反転されインバータゲートNOT1出力の
論理が「1」となるため、論理積ゲートAND3
出力の論理は「1」である。
(3) When a service request is generated by any input/output module and no interrupt request is issued by any process input/output unit, the service request signals SQ 0 , SQ 1 ,
Among SQ 2 , ..., the service request signal of the input/output module generating the service request is logic "1", the logic of the OR gate OR 2 output is "1", and the bus receiver 4'' output The logic of is "0" and the inverter gate NOT 1
is inverted and the logic of the inverter gate NOT 1 output becomes "1", so the AND gate AND 3
The logic of the output is "1".

よつて、前述の(1)は入出力モジユールによりサ
ービス要求が発生されていないために、割込み要
求を行う必要のない場合である。また、前述の(2)
は当該プロセス入出力ユニツトよりも優先順位設
定値の小さいプロセス入出力ユニツトが割込み要
求を行つているために、仮に入出力モジユールに
よりサービス要求が発生されていても割込み要求
が禁止される場合である。さらにまた、前述の(3)
が当該プロセス入出力ユニツトよりも優先順位設
定値の小さいプロセス入出力ユニツトが割込み要
求を行つていないために割込み要求を行うことが
許され、かつ入出力モジユールによりサービス要
求が発生されているために割込み要求を行う場合
である。したがつて、この(3)の場合割込み要求を
行うことにより、当該プロセス入出力ユニツト入
出力ユニツトよりも優先順位設展値の大きいプロ
セス入出力ユニツトの割込み要求を禁止するので
ある。
Therefore, in (1) above, there is no need to issue an interrupt request because no service request is generated by the input/output module. Also, the above (2)
This is a case where interrupt requests are prohibited even if a service request is generated by an input/output module because a process input/output unit with a lower priority setting value than the process input/output unit is requesting an interrupt. . Furthermore, the above (3)
is allowed to issue an interrupt request because a process input/output unit with a lower priority setting value than the relevant process input/output unit has not issued an interrupt request, and a service request has been generated by the input/output module. This is the case when an interrupt request is made. Therefore, in the case of (3), by issuing an interrupt request, the interrupt request of a process input/output unit having a higher priority level than that of the process input/output unit is prohibited.

つぎに、ワンシヨツト回路7′はデータ入力D
の論理を「1」を固定してあり、割込み要求受付
信号ACKがインバータゲートNOT2に反転され
てクロツク入力Tに伝えられると、割込み要求受
付信号ACKの後縁、したがつて割込み要求確認
信号の後縁にてトリガされてパルス出力Qからリ
セツトパルスを発生する。
Next, the one-shot circuit 7' has a data input D
The logic of is fixed to "1", and when the interrupt request acceptance signal ACK is inverted by the inverter gate NOT 2 and transmitted to the clock input T, the trailing edge of the interrupt request acceptance signal ACK, and therefore the interrupt request confirmation signal. A reset pulse is generated from the pulse output Q by being triggered at the trailing edge of .

このワンシヨツト回路7′のパルス出力Qがフ
リツプフロツプ6″のリセツト入力Rに接続され
ており、前述のリセツトパルスはフリツプフロツ
プ6″をリセツトして記憶出力Qの論理を「0」
にし、バスドライバ5″を通して割込み要求入出
力QIOから割込み要求転送バス31に送出してい
た割込み要求信号を解除する。
The pulse output Q of this one-shot circuit 7' is connected to the reset input R of the flip-flop 6'', and the aforementioned reset pulse resets the flip-flop 6'' and sets the logic of the memory output Q to "0".
and cancels the interrupt request signal sent from the interrupt request input/output QIO to the interrupt request transfer bus 31 through the bus driver 5''.

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

本発明は第1図および第2図を参照して記述し
た如くに、各プロセス入出力ユニツトの割込み要
求に対する優先順位は、単に起動パルスにより優
先順位設定器10からチエツクパルス計数器9に
プリセツトされる優先順位設定値の大小によつて
のみ決定されることから、優先順位設定器10に
スイツチ等可変で容易に設定と変更が実施できる
ような設定器を採用し、各プロセス入出力ユニツ
トごとに固有のデータを優先順位設定値としてお
くことにより、割込み要求に対する優先順位を各
プロセス入出力ユニツト間の物理的な接続順序と
は無関係に、優先順位設定値により各プロセス入
出力ユニツトごとに自由に割当て可能な簡便な構
成の装置を実現し得る方法を提供できる。
In the present invention, as described with reference to FIGS. 1 and 2, the priorities for interrupt requests of each process input/output unit are preset from the priority setter 10 to the check pulse counter 9 simply by a start pulse. Since the priority setting value is determined only by the magnitude of the priority setting value, the priority setting device 10 is a switch or other variable setting device that can be easily set and changed. By setting unique data as the priority setting value, the priority for interrupt requests can be set freely for each process I/O unit depending on the priority setting value, regardless of the physical connection order between each process I/O unit. A method can be provided that can realize a device with a simple configuration that can be allocated.

また、割込み要求確認信号を転送する手段とし
て各プロセス入出力ユニツトに共有の割込み要求
確認転送バス34を設けることにより、制御用計
算機から割込み要求を行つているプロセス入出力
ユニツトにのみ、直接割込み要求確認信号が伝達
されるため、例え電源が供給されていないプロセ
ス入出力ユニツトが存在していても、他のプロセ
ス入出力ユニツトからは支障なく割込み得るもの
となり、柔軟性に富み自由度の大きい格別なプロ
セス入出力装置の多重優先割込み制御方式による
装置を実現できる。
Furthermore, by providing a shared interrupt request confirmation transfer bus 34 to each process input/output unit as a means for transferring an interrupt request confirmation signal, a direct interrupt request can be made only to the process input/output unit that is making an interrupt request from the control computer. Because the confirmation signal is transmitted, even if there is a process input/output unit to which power is not supplied, it can be interrupted by other process input/output units without any problem, making it extremely flexible and with a large degree of freedom. It is possible to realize a device using a multi-priority interrupt control method for a process input/output device.

なお、本発明ではチエツクパルス計数部にプリ
セツト機能付きの減算カウンタを用い、優先順位
設定値の減算計数を行うものとしたが、これは優
先順位設定値に相当する個数のチエツクパルスを
計数する手段であれば代替可能であることは勿論
である。
In the present invention, a subtraction counter with a preset function is used in the check pulse counting section to perform subtraction counting of the priority setting value, but this is a means for counting the number of check pulses corresponding to the priority setting value. Of course, they can be substituted.

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

第1図および第2図は本発明によるプロセス入
出力装置を説明するため示した系統図およびその
プロセス入出力ユニツトのユニツトコントローラ
における多重優先割込み制御回路の具体的な一例
を示す回路図、第3図はプロセス入出力装置の全
体構成を示す系統図、第4図および第5図は従来
のプロセス入出力装置の多重優先割込み制御方式
を説明するため示した系統図およびその部分回路
図である。 1,1′……制御用計算機、2,2′……プロセ
ス入出力ユニツト、31……割込み要求転送バ
ス、33……同期信号転送バス、34……割込み
要求確認転送バス、6,6′,6″……フリツプフ
ロツプ、7,7′……ワンシヨツト回路、8……
チエツクパルス発生器、9……チエツクパルス計
数器、10……優先順位設定器。
1 and 2 are a system diagram shown to explain a process input/output device according to the present invention, a circuit diagram showing a specific example of a multiple priority interrupt control circuit in a unit controller of the process input/output unit, and FIG. FIG. 4 is a system diagram showing the overall configuration of a process input/output device, and FIGS. 4 and 5 are a system diagram and a partial circuit diagram thereof shown to explain a conventional multiple priority interrupt control system for a process input/output device. 1, 1'... Control computer, 2, 2'... Process input/output unit, 31... Interrupt request transfer bus, 33... Synchronous signal transfer bus, 34... Interrupt request confirmation transfer bus, 6, 6' ,6″...Flip-flop, 7,7′...One-shot circuit, 8...
Check pulse generator, 9...Check pulse counter, 10...Priority setter.

Claims (1)

【特許請求の範囲】[Claims] 1 プロセス入出力バスに割込み要求転送バスと
同期信号転送バスと割込み要求確認転送バスを設
けることにより、前記割込み要求転送バスにおい
て各プロセス入出力ユニツトのユニツトコントロ
ーラの割込み要求入出力から送出される割込み要
求信号を制御用計算機の割込み要求入力に転送す
るとともに、ユニツトコントローラの割込み要求
入出力に転送させ、前記同期信号転送バスにおい
て制御用計算機の同期信号出力から送出される一
定周期の同期信号を各プロセス入出力ユニツトの
ユニツトコントローラの同期信号入力に転送さ
せ、前記割込み要求確認転送バスにおいて制御用
計算機の割込み要求確認出力から送出される割込
み要求確認信号を各プロセス入出力ユニツトのユ
ニツトコントローラの割込み要求確認入力にに転
送し、各プロセス入出力ユニツトのユニツトコン
トローラに優先順位設定器とチエツクパルス発生
器とチエツクパルス計数器とを有する多重優先割
込み制御回路を設けるとともに、同期信号入力に
転送される同期信号の一周期の開始ごとに割込み
要求入出力に転送される割込み要求信号の有無を
調べることより、割込み要求転送バスに割込み要
求信号が送出されていないときにのみ前記チエツ
クパルス発生器からチエツクパルスを発生させて
前記チエツクパルス計数器により計数し、該チエ
ツクパルス計数器が前記優先順位設定器により設
定されている優先順位設定値相当のチエツクパル
スを計数した時点においてサービス要求の発生の
有無と割込み要求入出力に転送される割込み要求
信号の有無を調べることより、サービス要求信号
が発生されかつ割込み要求転送バスに割込み要求
信号が送出されていないときにのみ、割込み要求
入出力から割込み要求転送バスに割込み要求信号
を送出するとともに、割込み要求確認入力に転送
される割込み要求確認信号を受付けるようにした
ことを特徴とする入出力装置の割込み制御方法。
1. By providing an interrupt request transfer bus, a synchronization signal transfer bus, and an interrupt request confirmation transfer bus in the process input/output bus, interrupts sent from the interrupt request input/output of the unit controller of each process input/output unit can be processed on the interrupt request transfer bus. The request signal is transferred to the interrupt request input of the control computer, and is also transferred to the interrupt request input/output of the unit controller, and the synchronization signal of a constant period sent from the synchronization signal output of the control computer is transferred to each of the synchronization signal transfer buses. The interrupt request confirmation signal sent from the interrupt request confirmation output of the control computer on the interrupt request confirmation transfer bus is transferred to the synchronization signal input of the unit controller of each process input/output unit. A multi-priority interrupt control circuit having a priority setter, a check pulse generator, and a check pulse counter is provided in the unit controller of each process input/output unit, and a synchronization signal is transferred to the synchronization signal input. By checking the presence or absence of an interrupt request signal transferred to the interrupt request input/output at each start of one cycle of the signal, the check pulse generator generates a check pulse only when no interrupt request signal is sent to the interrupt request transfer bus. is generated and counted by the check pulse counter, and at the time when the check pulse counter counts check pulses equivalent to the priority setting value set by the priority setting device, whether or not a service request has occurred and an interrupt is generated. By checking the presence or absence of an interrupt request signal transferred to the request input/output, it is possible to transfer the interrupt request signal from the interrupt request input/output to the interrupt request transfer bus only when a service request signal is generated and no interrupt request signal is sent to the interrupt request transfer bus. 1. An interrupt control method for an input/output device, characterized in that the interrupt request signal is sent to the input/output device, and the interrupt request confirmation signal is transferred to the interrupt request confirmation input.
JP15495184A 1984-07-25 1984-07-25 Method for controlling interruption of input/output device Granted JPS6133561A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15495184A JPS6133561A (en) 1984-07-25 1984-07-25 Method for controlling interruption of input/output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15495184A JPS6133561A (en) 1984-07-25 1984-07-25 Method for controlling interruption of input/output device

Publications (2)

Publication Number Publication Date
JPS6133561A JPS6133561A (en) 1986-02-17
JPH0126107B2 true JPH0126107B2 (en) 1989-05-22

Family

ID=15595477

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15495184A Granted JPS6133561A (en) 1984-07-25 1984-07-25 Method for controlling interruption of input/output device

Country Status (1)

Country Link
JP (1) JPS6133561A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61249741A (en) * 1985-04-30 1986-11-06 Sanrain Kogyo:Kk Manufacture of button
JPH0331307U (en) * 1989-08-07 1991-03-27

Also Published As

Publication number Publication date
JPS6133561A (en) 1986-02-17

Similar Documents

Publication Publication Date Title
US4071911A (en) Machine control system with machine serializing and safety circuits
US4320467A (en) Method and apparatus of bus arbitration using comparison of composite signals with device signals to determine device priority
US5195185A (en) Dynamic bus arbitration with concurrent same bus granting every cycle
EP0383475A2 (en) Shared resource arbitration
JPH01193964A (en) System bus expansion device for combining multiple computer systems capable of multi-mastering
US4047003A (en) Communication control system
EP0030978A1 (en) Data-transfer controlling system
JPS6048791B2 (en) access control device
JPH0126107B2 (en)
JPS5965355A (en) Method and circuit for feeding interrupt request signal
JPS586177B2 (en) Interface circuit selection system
JPS6217779B2 (en)
JPS6273358A (en) Control method for microcomputer and its peripheral device
GB2230166A (en) Resource control allocation
KR100328630B1 (en) Data transmitting method and data transmission channel apparatus of sun bus and versa module eurocard bus
JPS6265155A (en) Digital data processing arbitration system
JP2615815B2 (en) Priority control method
JP2574333B2 (en) Bus usage right acquisition control method
EP0072613B1 (en) Bid control circuit for time-shared bus
JP2677657B2 (en) Bus control method
JPS6042975B2 (en) Time division data transfer control method
JPS63188257A (en) Bus acquiring system
JPH0442700B2 (en)
JPH02123448A (en) Bus mediation circuit
JPH0452971B2 (en)