JPH02220161A - Interruption accepting circuit - Google Patents

Interruption accepting circuit

Info

Publication number
JPH02220161A
JPH02220161A JP4141289A JP4141289A JPH02220161A JP H02220161 A JPH02220161 A JP H02220161A JP 4141289 A JP4141289 A JP 4141289A JP 4141289 A JP4141289 A JP 4141289A JP H02220161 A JPH02220161 A JP H02220161A
Authority
JP
Japan
Prior art keywords
interrupt
external
internal
code
slave
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
JP4141289A
Other languages
Japanese (ja)
Inventor
Toshiya Nishijima
西島 敏也
Junichi Takai
純一 高井
Yasushi Tajiri
田尻 裕史
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.)
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Corp
Meidensha Electric Manufacturing Co 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 Meidensha Corp, Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Corp
Priority to JP4141289A priority Critical patent/JPH02220161A/en
Publication of JPH02220161A publication Critical patent/JPH02220161A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To accept an interruption at a high speed by using a random access memory a (RAM) to store a desired identification (ID) code and a deciding means to compare the identification code of an external interruption request with the identification code stored in a memory. CONSTITUTION:A RAM 11 which stores a desired ID code is added to a circuit part containing a setting switch or a reference ROM in order to decide an internal or external interruption request. A deciding means MPU compares the ID code of the external interruption request with an ID code stored in a memory 11 to attain a software programming operation. Thus an internal or external interruption request is discriminated with a soft system constitution. Then the waste time is eliminated with an internal interruption request and an interruption can be accepted at a high speed.

Description

【発明の詳細な説明】 A、産業上の利用分野 本発明は、コンピュータシステムにおけるベクトル割込
みを処理する割込み受付回路に関し、特に、内部割込み
要求か外部割込み要求かの判別が可能な割込み受付回路
に関する。
DETAILED DESCRIPTION OF THE INVENTION A. Field of Industrial Application The present invention relates to an interrupt acceptance circuit that processes vector interrupts in a computer system, and particularly relates to an interrupt acceptance circuit that can distinguish between internal interrupt requests and external interrupt requests. .

B6発明の概要 本発明は、コンピュータシステムのベクトル割込みを処
理する割込み受付回路において、所望の識別コードを格
納するランダムアクセスメモリと、外部割込み要求の識
別コードをメモリ内の識別コードと比較する判定手段と
を備えることにより、 内部割込み要求か外部割込み要求かの判別が可能で、内
部割込み要求の場合に無駄な時間がなく、割込み受付は
処理が高速化し、トータルパフォーマンスも向上する技
術を提供するものである。
B6 Summary of the Invention The present invention provides, in an interrupt reception circuit that processes vector interrupts of a computer system, a random access memory that stores a desired identification code, and a determination means that compares the identification code of an external interrupt request with the identification code in the memory. By providing this, it is possible to determine whether an internal interrupt request is an external interrupt request, there is no wasted time in the case of an internal interrupt request, and the processing speed of interrupt reception is increased, thereby providing a technology that improves total performance. It is.

C1従来の技術 第3図は、コンピュータシステムの一例を示す構成図で
、マイクロプロセッサ(以下、MPUと略称する)を内
蔵するマスタモジュール群311.31−2.31−3
・・・と各種入出力装置又は記憶装置等のインターフェ
イスとして構成されるスレーブモジュール群32−1.
32−2〜32n・・・とがマルチマスタバス33によ
り連結された構成を示している。
C1 Prior Art FIG. 3 is a block diagram showing an example of a computer system, in which a master module group 311.31-2.31-3 containing a microprocessor (hereinafter abbreviated as MPU) is shown.
... and a slave module group 32-1 configured as an interface for various input/output devices or storage devices, etc.
32-2 to 32n... are connected by a multi-master bus 33.

第4図は、第3図に示したマスタモジュールとスレーブ
モジュールの間で割込み処理が行われる場合のハードウ
ェアの一例を示す構成図である。
FIG. 4 is a configuration diagram showing an example of hardware when interrupt processing is performed between the master module and slave module shown in FIG. 3.

第4図において、左方は1つのマスタモジュールの割込
みを処理するハードウェアを示し、右方はスレーブモジ
ュール群の割込みを処理する/%−ドウエア群を示して
いる。同図に示す構成の71−ドウエアでベクトル割込
み(vectored 1nterrupt)を処理す
る動作は、下記のとおりである。
In FIG. 4, the left side shows hardware that processes interrupts of one master module, and the right side shows a hardware group that processes interrupts of a slave module group. The operation of processing a vectored interrupt using the 71-ware having the configuration shown in the figure is as follows.

図中、スレーブ割込みコントローラ42−1゜42−2
.42−3・・・は第3図に示したスレーブモジュール
32−1.32−2・・・内に配設されたものであり、
マルチマスクバス43は前記マルチマスタバス33と同
じものである。
In the figure, slave interrupt controller 42-1゜42-2
.. 42-3... are arranged in the slave modules 32-1, 32-2... shown in FIG.
The multi-mask bus 43 is the same as the multi-master bus 33 described above.

各スレーブ割込みコントローラ42−1.42−2.4
2−3・・・はn個の割込み要素から割込み要求を受け
て、そのうち何番目の割込み要素から割込み要求が発生
しているかを検出し、その要素に対応するベクトル(1
byteのデータで、割込みを要求している要素に対応
する割込みプログラム上のアドレスを示すデータ)を発
生する。例えばスレーブ割込みコントローラ42−1が
いずれかの割込み要素から割込み要求を受けると、マル
チマスクバス43及び外部割込み要素信号線44aを介
して割込みレベル設定ジャンパ45へ割込み要求信号を
出力する。この外部割込み要素信号線44aは、外部ス
レーブモジュールの数nに対応する本数だけ配設されて
いて、どの外部スレーブモジュールから割込みが要求さ
れているかを識別するものである。
Each slave interrupt controller 42-1.42-2.4
2-3... receives an interrupt request from n interrupt elements, detects from which interrupt element the interrupt request is generated, and stores the vector (1
A byte of data indicating the address on the interrupt program corresponding to the element requesting the interrupt is generated. For example, when slave interrupt controller 42-1 receives an interrupt request from any interrupt element, it outputs an interrupt request signal to interrupt level setting jumper 45 via multi-mask bus 43 and external interrupt element signal line 44a. The external interrupt element signal lines 44a are provided in a number corresponding to the number n of external slave modules, and are used to identify which external slave module requests an interrupt.

前記割込みレベル設定ジャンパ45には、内部スレーブ
割込みコントローラ46も接続されている。この内部ス
レーブ割込みコントローラ46はマスタモジュール内部
のスレーブよりの割込みを制御するもので、割込み要素
の数に対応する本数の内部割込み要素信号線44bが配
設されていて、割込み要求信号が入力されると割込みベ
クトルを出力する。
An internal slave interrupt controller 46 is also connected to the interrupt level setting jumper 45 . This internal slave interrupt controller 46 controls interrupts from the slave inside the master module, and has internal interrupt element signal lines 44b corresponding to the number of interrupt elements, and receives an interrupt request signal. and outputs the interrupt vector.

割込みレベル設定ジャンパ45は、外部又は内部の各ス
レーブから割込みがあると、その要求をマスク割込みコ
ントローラ47に報告する。その際、割込みレベル設定
ジャンパ45は各スレーブに予め付与された所定の割込
み優先順位を考慮してどの割込みを優先するかを決定し
、選択されたスレーブに対応するレベル(0〜n)の信
号線により割込み要求信号をマスク割込みコントローラ
47へ出力する。
When an interrupt is received from an external or internal slave, the interrupt level setting jumper 45 reports the request to the mask interrupt controller 47. At this time, the interrupt level setting jumper 45 determines which interrupt is to be prioritized by considering a predetermined interrupt priority given to each slave in advance, and signals the level (0 to n) corresponding to the selected slave. An interrupt request signal is output to the mask interrupt controller 47 via the line.

マスク割込みコントローラ47は、割込み要求信号をP
MU48へ出力する。
The mask interrupt controller 47 sends the interrupt request signal to P.
Output to MU48.

PMU48は、割込みアクナレッジ・サイクルを実行し
、割込みの準備が整うと、ローカルバスコントローラ4
9を介して、割込みアクナレッジ信号を前記マスク割込
みコントローラ47と前記内部スレーブ割込みコントロ
ーラ46へ出力し、更に外部システムバスコントローラ
50へモ出力する。
The PMU 48 executes an interrupt acknowledge cycle, and when the interrupt is ready, the local bus controller 4
9, an interrupt acknowledge signal is outputted to the masked interrupt controller 47 and the internal slave interrupt controller 46, and further outputted to the external system bus controller 50.

外部システムバスコントローラ50には、外部ベクトル
/内部ベクトル設定スイッチ51が付設されている。該
設定スイッチ51は、その割込み制御が内部スレーブ単
独の制御か、内部スレーブ及び外部スレーブ両者の制御
かを選択するもので、内部スレーブ単独の割込み制御を
選定した場合、そのスイッチ動作により、外部システム
バスコントローラ50は、前記マルチマスタバス43へ
の信号線52に割込みアクナレッジ信号を出力せず、バ
ッファ53及びインバータ54にLow”の出力を行う
。このため、バッファ53はゲートを閉じ、バッファ5
5はゲートを開ける。バッファ55のゲートが開くと、
後記する識別コード(以下、IDコードと呼称する)に
よって指定された内部スレーブ割込みコントローラ46
から出力されるベクートルが、バッファ55を介して、
MPU48に取り込まれる。内部スレーブ及び外部スレ
ーブ両者の割込み制御が選定された場合には、外部スレ
ーブからの割込み受付けと内部割込み受付けとの2通り
の処理が行われる。第5図は、それらのタイミングを示
すタイムチャートである。
The external system bus controller 50 is provided with an external vector/internal vector setting switch 51. The setting switch 51 is used to select whether the interrupt control is for the internal slave alone or for both the internal slave and the external slave.When interrupt control for the internal slave alone is selected, the switch operation causes the external system to be controlled. The bus controller 50 does not output an interrupt acknowledge signal to the signal line 52 to the multi-master bus 43, but outputs "Low" to the buffer 53 and the inverter 54. Therefore, the buffer 53 closes its gate, and the buffer 53 closes its gate.
5 opens the gate. When the gate of buffer 55 opens,
Internal slave interrupt controller 46 designated by an identification code (hereinafter referred to as ID code) to be described later
The vector output from
It is taken into the MPU 48. When interrupt control for both an internal slave and an external slave is selected, two types of processing are performed: accepting an interrupt from the external slave and accepting an internal interrupt. FIG. 5 is a time chart showing these timings.

(1)外部スレーブからの割込み受付けに際して、外部
システムバスコントローラ50は、MPU48から割込
みアクナレッジ信号を受けることにより、内部バス56
を介して、マルチマスタバス48の制御権を得る(これ
は、他のマスタモジュールに対して行われる)6制御権
を得たのち、外部システムバスコントローラ50は、信
号tlA52とマルチマスクバス43を介して前記スレ
ーブ割込みコントローラ42−1へ出力すると共に、信
号線57によりバッファ5°8のゲートを開け、前記マ
スク割込みコントローラ47が割込みレベル設定ジャン
パ45より出力されたレベル0〜nのうちのいずれかル
ベルの信号を受けて、どのスレーブからの割込かを識別
するIDコード(3bitのデータで、23=8)を出
力するのをマルチマスクバス43へ通過させ、各スレー
ブのスレーブ割込みコントローラ42−1.42−2.
42−3・・・へ伝達させる。IDコードに対応するス
レーブ割込みコントローラ(この例では42−1)は、
自己のスレーブの割込みが受は入れられたことをこの信
号により認識し、更に、割込みアクナレッジ信号を受信
することで、自スレーブ内の割込みを要求している割込
み要素に対応するベクトルをマルチマスクバス43を介
して前記バッファ53へ出カスる。バッファ53は外部
システムバスコントローラ50によりゲートを開かれて
いるので、このベクトルはそのままMPU48に取り込
まれる。なお、このとき、バッファ55のゲートは閉じ
られている。
(1) When accepting an interrupt from an external slave, the external system bus controller 50 receives an interrupt acknowledge signal from the MPU 48 to
After gaining control of the multi-master bus 48 (this is done for other master modules) via At the same time, the gate of the buffer 5°8 is opened via the signal line 57, and the mask interrupt controller 47 selects any of the levels 0 to n output from the interrupt level setting jumper 45. The slave interrupt controller 42 of each slave receives the interrupt signal and outputs an ID code (3-bit data, 23=8) that identifies which slave the interrupt is from. -1.42-2.
42-3... The slave interrupt controller (42-1 in this example) corresponding to the ID code is
This signal recognizes that the interrupt of the own slave has been accepted, and furthermore, by receiving the interrupt acknowledge signal, the vector corresponding to the interrupt element requesting the interrupt in the own slave is multi-masked. The data is output to the buffer 53 via the bus 43. Since the gate of the buffer 53 is opened by the external system bus controller 50, this vector is taken into the MPU 48 as is. Note that at this time, the gate of the buffer 55 is closed.

(2)内部割込み受付けに際して、前記MPU48から
割込みアクナレッジ信号が各制御部に伝達されると、第
5図に示すように、マスク割込みコントローラ47はI
Dコードの出力を開始し、外部システムバスコントロー
ラ50は、マルチマスタバス43の制御権を獲得する。
(2) When accepting an internal interrupt, when an interrupt acknowledge signal is transmitted from the MPU 48 to each control section, as shown in FIG.
The external system bus controller 50 starts outputting the D code and gains control of the multi-master bus 43.

このIDコードを第4図に示すデコーダ59が受信し、
内部スレーブの割込みか外部スレーブの割込みかを判別
して内部スレーブの割込みと判断したときは、外部シス
テムバスコントローラ50に対してその旨を指令する。
The decoder 59 shown in FIG. 4 receives this ID code,
When determining whether the interrupt is an internal slave interrupt or an external slave interrupt, and determining that the interrupt is an internal slave interrupt, a command to that effect is given to the external system bus controller 50.

この指令は前記設定スイッチ5Iによる設定よりも優先
するので、MPU48がマルチマスタバス43の制御権
を獲得した後に再出力する第2の割込みアクナレッジ信
号を外部システムバスコントローラ50が受信したとき
、該コントローラ50は初めて設定スイッチ51が内部
スレーブ単独の割込み制御に設定された場合と同様の“
Low”出力等の動作を行い、内部スレーブ割込みがM
PU48に受付けられる。
Since this command has priority over the settings made by the setting switch 5I, when the external system bus controller 50 receives the second interrupt acknowledge signal that is re-outputted after the MPU 48 acquires control of the multi-master bus 43, the corresponding The controller 50 performs the same “
“Low” output, etc., and the internal slave interrupt is M
Accepted by PU48.

D1発明が解決しようとする課題 上記従来の回路においては、前記設定スイッチ5!を内
・外部スレーブ割込み側に設定して外部割込みベクトル
の読込みを可能とした場合、内部割込みベクトルの読込
みは、第6図に示すようなタイミング・シーケンスとな
る。この場合、内部割込みベクトルの読込み時には外部
システムバス50の制御権を獲得する必要がないにも拘
わらず、内部割込みか外部割込みかを判別できないため
に一律に外部システムバス50の制御権を獲得するよう
になっている。外部割込みを取り入れるようにするには
、外部スレーブ側の割込みコントローラ42−1.42
−2・・・のレジスタを調べることによりどの割込み要
素からの割込み要求であるかを判断するが、この動作は
ソフトウェアに頼らざるを得ず、MPUの負荷が大きく
なるばかりか時間の浪費になり、内部割込みベクトルの
読込み時に余計な時間を費やし、性能の低下を招いてい
る。
D1 Problems to be Solved by the Invention In the above conventional circuit, the setting switch 5! When the external interrupt vector is set to the internal/external slave interrupt side to enable reading of the external interrupt vector, the timing sequence for reading the internal interrupt vector is as shown in FIG. In this case, even though there is no need to acquire control of the external system bus 50 when reading the internal interrupt vector, control of the external system bus 50 is uniformly acquired because it cannot be determined whether it is an internal interrupt or an external interrupt. It looks like this. To accept external interrupts, use the interrupt controller 42-1.42 on the external slave side.
-2... It is determined which interrupt element the interrupt request comes from by checking the registers, but this operation has to rely on software, which not only increases the load on the MPU but also wastes time. , it takes extra time to read the internal interrupt vector, causing performance degradation.

一方、前記設定スイッチ51を内部スレーブ割込み側に
設定すると、内部割込みベクトルの読込みができなくな
ってしまう。
On the other hand, if the setting switch 51 is set to the internal slave interrupt side, it becomes impossible to read the internal interrupt vector.

この欠点を修正するために、第4図中に示した外部シス
テムバスコントローラ50及びその設定スイッチ51に
相当する部分を第7図に示す如く構成する工夫が提案さ
れている。この工夫では、判定基準のIDコード(カス
ケードアドレス)を予めROM70に格納しておいて、
マスク割込みコントローラから出力されるIDコードを
デコードしてROM70の内容と比較し、内部割込みで
あるか外部割込みであるかを判断して、内部バスもしく
は外部バスから割込みベクトルの読み込みを行うもので
ある。この方法では、IDコードを比較する時間が必要
となるが、マルチマスクバスの制御権を得る時間に比べ
ると、それほど影響はない。しかし、この方法では、外
部割込みとして認識するIDコードを予めROM70に
用意しておかなければならないために、前記割込みレベ
ル設定ジャンパにより割込みレベルを変更した場合、そ
れに対応するROMと交換しなければならず、従って割
込みレベル変更の度にROM交換が必要となって、柔軟
なシステム構築が困難になる。
In order to correct this drawback, a contrivance has been proposed in which a portion corresponding to the external system bus controller 50 and its setting switch 51 shown in FIG. 4 is configured as shown in FIG. 7. In this device, the ID code (cascade address) of the judgment criterion is stored in the ROM 70 in advance,
It decodes the ID code output from the masked interrupt controller, compares it with the contents of ROM 70, determines whether it is an internal interrupt or an external interrupt, and reads the interrupt vector from the internal bus or external bus. . Although this method requires time to compare ID codes, it does not have much of an impact compared to the time it takes to gain control of the multi-mask bus. However, with this method, an ID code that is recognized as an external interrupt must be prepared in the ROM 70 in advance, so when the interrupt level is changed using the interrupt level setting jumper, the ROM must be replaced with a corresponding ROM. Therefore, the ROM must be replaced every time the interrupt level is changed, making it difficult to build a flexible system.

本発明は、このような課題に鑑みて創案されたもので、
柔軟なシステム構築で内部割込み要求か外部割込み要求
かの判別ができ、内部割込み要求の場合に無駄な時間が
なく、割込み受付は処理が高速化し、トータルパフォー
マンスも向上する割込み受付回路を提供することを目的
としている。
The present invention was created in view of these problems, and
To provide an interrupt reception circuit that can distinguish between internal and external interrupt requests through flexible system construction, eliminates wasted time in the case of internal interrupt requests, speeds up interrupt reception processing, and improves total performance. It is an object.

80課題を解決するための手段 本発明における上記課題を解決するための手段は、マル
チマスタバスに外部スレーブモジュールを接続されたマ
スタモジュール内に配設され、割込み要求が外部割込み
要求か内部割込み要求かを判別したのち、マイクロプロ
セッサからの2回目の割込みアクナレッジ・サイクルで
割込みベクトルを読込む割込み受付回路において、所望
の識別コードを格納するランダムアクセスメモリと、外
部割込み要求の識別コードをメモリ内の識別コードと比
較する判定手段とを備える割込み受付回路とするもので
ある。
80 Means for Solving the Problems The means for solving the above problems in the present invention are provided in a master module connected to an external slave module to a multi-master bus, and whether an interrupt request is an external interrupt request or an internal interrupt request. After determining the external interrupt request, the interrupt acceptance circuit reads the interrupt vector in the second interrupt acknowledge cycle from the microprocessor. The interrupt reception circuit includes a determination means for comparing the identification code of the interrupt reception circuit with the identification code of the interrupt reception circuit.

F0作用 本発明の割込み受付回路は、内部割込み要求か外部割込
み要求かを判別するため、設定スイッチ又は基準ROM
が配設されていた回路部に、所望のIDコードを格納す
るランダムアクセスメモリ(以下、RAMと略称する)
を備え、判定手段により、外部割込み要求のIDコード
をメモリ内のIDコードとを比較し、ソフトウェアによ
るプログラミングを可能にするものである。
F0 action The interrupt reception circuit of the present invention uses a setting switch or a reference ROM to determine whether an internal interrupt request or an external interrupt request is required.
Random access memory (hereinafter abbreviated as RAM) that stores a desired ID code in the circuit section where the
The determining means compares the ID code of the external interrupt request with the ID code in the memory to enable programming by software.

本発明のRAMは従来例で示した外部システムバスコン
トローラに接続されるもので、そのIDコードは外部割
込み要求に対して設定され、それ以外は全て内部割込み
要求として処理すればよいので、設定スイッチ等のハー
ドウェアで限定しなくても内部割込み要求が優先され、
かつ常時内外両部の割込み要求に受付は態勢が待機でき
る。
The RAM of the present invention is connected to the external system bus controller shown in the conventional example, and its ID code is set for external interrupt requests, and all other requests can be processed as internal interrupt requests. Internal interrupt requests are given priority even if they are not limited by hardware such as
In addition, it is always ready to accept interrupt requests from both internal and external sources.

RAMを使用することで、ソフトウェアの使用が可能に
なり、しかもROMを使用する場合よりも柔軟なシステ
ム構築が可能になる。判定手段はRAMの周辺回路とし
て一体的に設ければよい。
By using RAM, it is possible to use software, and moreover, it is possible to construct a system more flexibly than when using ROM. The determining means may be provided integrally as a peripheral circuit of the RAM.

G、実施例 以下、図面を参照して、本発明の実施例を詳細に説明す
る。
G. Embodiments Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

第1図は、本発明の一実施例の構成図である。FIG. 1 is a configuration diagram of an embodiment of the present invention.

本実施例の割込み受付回路は、第4図で説明したマスタ
モジュール内に適用されるもので、図中の外部システム
バスコントローラ10は、第4図中の同名コントローラ
50に対応し、MPUからの割込みアクナレッジ信号を
受信してこれをマルチマスタバスへ中継するか否かを制
御すると共に、割込みベクトルがマルチマスタバスから
MPUへ送られるのを途中のバッファで制御する。RA
M11は、IDコードとMPUアドレスを対照するマル
チプレクサ12からアドレス(ADRS)を指定され、
そのデータ出力(DO〜D7)はORゲートI3を介し
て前記外部システムバスコントローラ10に入力される
。該データ出力はバッファI4を介してMPUデータバ
ス(DO−D7)にも接続されていて、両者の一致を検
出する。バッファ14のゲートはMPUのライト信号で
閉じられ、該ライト信号はRAMIIのライトイネーブ
ル端子にも入力される。また、RAMI 1のC8端子
には、ベクトルID書換選択信号と割込みアクナレッジ
サイクル信号とがNORゲート15でネガ選択されて指
示される。尚、これらはRAM1lの周辺回路として本
発明の判定手段を構成する。
The interrupt acceptance circuit of this embodiment is applied in the master module explained in FIG. 4, and the external system bus controller 10 in the figure corresponds to the controller 50 of the same name in FIG. It receives an interrupt acknowledge signal and controls whether or not to relay it to the multi-master bus, and also controls sending of the interrupt vector from the multi-master bus to the MPU using an intermediate buffer. R.A.
M11 is designated with an address (ADRS) from multiplexer 12 that compares the ID code and MPU address,
The data outputs (DO to D7) are input to the external system bus controller 10 via the OR gate I3. The data output is also connected to the MPU data bus (DO-D7) via buffer I4, and a match between the two is detected. The gate of the buffer 14 is closed by a write signal from the MPU, and the write signal is also input to the write enable terminal of the RAM II. Further, the vector ID rewrite selection signal and the interrupt acknowledge cycle signal are negative selected and instructed by the NOR gate 15 to the C8 terminal of the RAMI 1. Incidentally, these constitute the determination means of the present invention as a peripheral circuit of the RAM 1l.

第2図は、本実施例の各信号のタイムチャートである。FIG. 2 is a time chart of each signal in this embodiment.

以下、第2図を参照しながら説明する。This will be explained below with reference to FIG.

本実施例における外部割込みの受付は動作は、下記のと
おりである。
The operation of accepting external interrupts in this embodiment is as follows.

(1)MPUがリセットされた後のイニシャライズプロ
グラム中で、割込みレベル設定ジャンパで設定したレベ
ルに当たる外部割込み要求のIDコードをRAMI I
に書き込んでおく。
(1) In the initialization program after the MPU is reset, enter the ID code of the external interrupt request corresponding to the level set by the interrupt level setting jumper in RAMI
Write it in.

(2)マルチマスクバスに接続されているスレーブ割込
みコントローラから割込み要求が発生し、マスク割込み
コントローラを通して、MPUに通知される。
(2) An interrupt request is generated from the slave interrupt controller connected to the multi-mask bus, and is notified to the MPU through the mask interrupt controller.

(3)MPUは、1回目の割込みアクナレッジ・サイク
ルを実行し、割込みコントローラの状態を凍結する。
(3) The MPU executes the first interrupt acknowledge cycle and freezes the state of the interrupt controller.

(4)この割込みアクナレッジ・サイクルを受けたマス
ク割込みコントローラはIDコードを出力する。
(4) The masked interrupt controller that receives this interrupt acknowledge cycle outputs an ID code.

(5)このIDコードとRAMI Iに格納されている
外部割込み要求のIDコードとが一致するとマルチマス
タバスに対してバス使用要求信号を出力する。
(5) When this ID code matches the ID code of the external interrupt request stored in RAMI I, a bus use request signal is output to the multi-master bus.

(6)外部システムバスコントローラlOがマルチマス
タバスの制御権を得たら、マルチマスタバスに対して1
回目の割込みアクナレッジ信号を出力し、スレーブ割込
みコントローラの状態を凍結させ、その割込みアクナレ
ッジ・サイクルを終結させる。
(6) When the external system bus controller IO obtains control of the multi-master bus, one
A second interrupt acknowledge signal is output, freezing the state of the slave interrupt controller and terminating its interrupt acknowledge cycle.

(7)2回目の割込みアクナレッジ・サイクルを実行し
、マルチマスタバス上のスレーブ割込みコントローラか
ら割込みベクトルを読込む。
(7) Execute a second interrupt acknowledge cycle and read the interrupt vector from the slave interrupt controller on the multi-master bus.

(8)MPUは、読込んだ割込みベクトルに従って処理
を実行する。
(8) The MPU executes processing according to the read interrupt vector.

また、本実施例における内部割込みの受付は動作は、下
記のとおりである。
Further, the operation of accepting an internal interrupt in this embodiment is as follows.

(1)MPUがリセットされた後のイニシャライズプロ
グラム中で、割込みレベル設定ジャンパにより設定した
レベルに相当する外部割込み要求のIDコードをRAM
I lに書き込んでおく。
(1) In the initialization program after the MPU is reset, the ID code of the external interrupt request corresponding to the level set by the interrupt level setting jumper is stored in the RAM.
Write it down in I.

(2)内部割込み要求が発生し、マスク割込みコントロ
ーラを介して、MPUに通知される(内部割込み要求は
内部スレーブ割込みコントローラの場合もある)。
(2) An internal interrupt request is generated and notified to the MPU via the masked interrupt controller (the internal interrupt request may be an internal slave interrupt controller).

(3)MPUは、1回目の割込みアクナレッジ・サイク
ルを実行し、割込みコントローラの状態を凍結する。
(3) The MPU executes the first interrupt acknowledge cycle and freezes the state of the interrupt controller.

(4)この割込みアクナレッジ・サイクルを受けたマス
ク割込みコントローラはIDコードを出力する。
(4) The masked interrupt controller that receives this interrupt acknowledge cycle outputs an ID code.

(5)このIDコードとRAM11に格納されている外
部割込み要求のIDコードとは一致しないので、割込み
受付サイクルは内部のみで実行する。
(5) Since this ID code does not match the ID code of the external interrupt request stored in the RAM 11, the interrupt acceptance cycle is executed only internally.

(6)2回目の割込みアクナレッジ・サイクルで内部の
マスク割込みコントローラから割込みベクトルを読込む
(割込み要求が内部スレーブ割込みコントローラの場合
には、内部スレーブ割込みコントローラから読込む)。
(6) In the second interrupt acknowledge cycle, read the interrupt vector from the internal masked interrupt controller (if the interrupt request is from the internal slave interrupt controller, read from the internal slave interrupt controller).

(7)MPUは、読込んだ割込みベクトルに従って処理
を実行する。
(7) The MPU executes processing according to the read interrupt vector.

このように、本実施例では、内部割込み要求であるか外
部割込み要求であるかの判別が可能であり、内部割込み
要求の場合はIDコードがマスク割込みコントローラか
ら出力されるまで待ち時間が必要であるが、外部マルチ
マスクバスの制御権を獲得する必要がないため、無駄な
時間が省かれて割込み受付は処理が高速化され、また、
その間にマルチマスタバスで他マスクが処理を行うこと
ができ、トータルパフォーマンスも向上する。
In this way, in this embodiment, it is possible to determine whether it is an internal interrupt request or an external interrupt request, and in the case of an internal interrupt request, a waiting time is required until the ID code is output from the masked interrupt controller. However, since there is no need to acquire control of the external multi-mask bus, wasted time is eliminated and interrupt reception is processed faster.
Meanwhile, other masks can process on the multi-master bus, improving total performance.

尚、IDコードの比較部にRAMを使用するので、割込
みレベルのジャンパ設定を変更した場合でも、ROMの
交換又は書き直しが不要である。
Note that since a RAM is used in the ID code comparison section, there is no need to replace or rewrite the ROM even if the interrupt level jumper setting is changed.

H1発明の詳細 な説明したとおり、本発明によれば、柔軟なシステム構
築で内部割込み要求か外部割込み要求かの判別が可能で
、内部割込み要求の場合に無駄な時間がなく、割込み受
付けの処理を高速化し、トータルパフォーマンスも向上
させる割込み受付回路を提供することができる。
As described in detail of the H1 invention, according to the present invention, it is possible to determine whether an internal interrupt request is an internal interrupt request or an external interrupt request with a flexible system construction, and there is no wasted time in the case of an internal interrupt request, and the interrupt acceptance processing can be performed easily. It is possible to provide an interrupt acceptance circuit that speeds up the process and improves total performance.

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

第1図は本発明の一実施例の構成図、第2図は実施例の
タイムチャート、第3図はコンピュータシステムの構成
図、第4図は割込み処理ハードウェアの構成図、第5図
と第6図は従来例のタイムチャート、第7図は従来例の
構成図である。 10.50.70・・・外!’(システムバスコントロ
ーラ、ll・・・ランダムアクセスメモリ(RAM)、
12・・・マルチプレクサ、13・・・ORゲート、I
4・・・バッファ、15・・・NORゲート、33.4
3・・・マルチマスタバス、45・・・割込みレベル設
定ジャンパ、46・・・内部スレーブ割込みコントロー
ラ、47・・・マスク割込みコントローラ、48・・・
MPU。 49・・・ローカルバスコントローラ。 第1区 外2名 第2図 本発明の一実旋伊Jのタイム子マート 第3図 コンげニー9システムの一伊1のm*C第5図 第6図 従沫(vlJのタイム予マート 第7図 CイグリΦオー菅pつに9a 10コード
Fig. 1 is a block diagram of an embodiment of the present invention, Fig. 2 is a time chart of the embodiment, Fig. 3 is a block diagram of a computer system, Fig. 4 is a block diagram of interrupt processing hardware, and Fig. 5 is a block diagram of an embodiment of the present invention. FIG. 6 is a time chart of the conventional example, and FIG. 7 is a configuration diagram of the conventional example. 10.50.70...Outside! '(System bus controller, ll...Random access memory (RAM),
12... Multiplexer, 13... OR gate, I
4...Buffer, 15...NOR gate, 33.4
3... Multi-master bus, 45... Interrupt level setting jumper, 46... Internal slave interrupt controller, 47... Mask interrupt controller, 48...
M.P.U. 49...Local bus controller. Figure 1: 2 people outside the ward Figure 2: Issuance of the present invention Time schedule for IJ Mart Figure 7

Claims (1)

【特許請求の範囲】[Claims] (1)マルチマスタバスに外部スレーブモジュールを接
続されたマスタモジュール内に配設され、割込み要求が
外部割込み要求か内部割込み要求かを判別したのち、マ
イクロプロセッサからの2回目の割込みアクナレッジ・
サイクルで割込みベクトルを読込む割込み受付回路にお
いて、所望の識別コードを格納するランダムアクセスメ
モリと、外部割込み要求の識別コードをメモリ内の識別
コードと比較する判定手段とを備えたことを特徴とする
割込み受付回路。
(1) A second interrupt acknowledgment from the microprocessor is provided within the master module that connects the external slave module to the multi-master bus, and after determining whether the interrupt request is an external interrupt request or an internal interrupt request.
An interrupt reception circuit that reads an interrupt vector in cycles, characterized by comprising a random access memory that stores a desired identification code, and a determination means that compares the identification code of an external interrupt request with the identification code in the memory. Interrupt reception circuit.
JP4141289A 1989-02-21 1989-02-21 Interruption accepting circuit Pending JPH02220161A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4141289A JPH02220161A (en) 1989-02-21 1989-02-21 Interruption accepting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4141289A JPH02220161A (en) 1989-02-21 1989-02-21 Interruption accepting circuit

Publications (1)

Publication Number Publication Date
JPH02220161A true JPH02220161A (en) 1990-09-03

Family

ID=12607645

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4141289A Pending JPH02220161A (en) 1989-02-21 1989-02-21 Interruption accepting circuit

Country Status (1)

Country Link
JP (1) JPH02220161A (en)

Similar Documents

Publication Publication Date Title
EP0458304B1 (en) Direct memory access transfer controller and use
US5696989A (en) Microcomputer equipped with DMA controller allowed to continue to perform data transfer operations even after completion of a current data transfer operation
US4144562A (en) System and method for increasing microprocessor output data rate
US5809517A (en) Detachable memory apparatus capable of varying number of wait states for access based on stored timing information
JPH0612527B2 (en) Interrupt processing device
US6581119B1 (en) Interrupt controller and a microcomputer incorporating this controller
HK118397A (en) Dedicated service processor with inter-channel communication features
US5799144A (en) Microcomputer for resolving problems found in a program stored in a ROM
US4792890A (en) Method for resolving conflicts between interrupt sources sharing the same priority level
EP0331487B1 (en) Data transfer control system
JPH0420496B2 (en)
US20030172215A1 (en) Interrupt- controller
EP0473059B1 (en) Communication control system
US5671424A (en) Immediate system management interrupt source with associated reason register
US5355465A (en) Data storing device having a plurality of registers allotted for one address
US5713041A (en) Computer system having a host CPU and a logic for integrating peripheral control functions into the host CPU
JPH02220161A (en) Interruption accepting circuit
US5278965A (en) Direct memory access controller
EP0640925B1 (en) Data processing system having serial interface
EP0376003A2 (en) Multiprocessing system with interprocessor communications facility
EP0410382A2 (en) Data transfer controller using direct memory access method
RU93017448A (en) SYSTEM FOR PROGRAM MANAGEMENT OF TECHNOLOGICAL EQUIPMENT
JPS6239792B2 (en)
JP3139310B2 (en) Digital signal processor
RU1815643C (en) Device for debugging programs for microcomputer