JPS6027058B2 - Interrupt control circuit - Google Patents

Interrupt control circuit

Info

Publication number
JPS6027058B2
JPS6027058B2 JP56024758A JP2475881A JPS6027058B2 JP S6027058 B2 JPS6027058 B2 JP S6027058B2 JP 56024758 A JP56024758 A JP 56024758A JP 2475881 A JP2475881 A JP 2475881A JP S6027058 B2 JPS6027058 B2 JP S6027058B2
Authority
JP
Japan
Prior art keywords
signal
interrupt
data
input
output
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
JP56024758A
Other languages
Japanese (ja)
Other versions
JPS57139833A (en
Inventor
知行 岩見
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 Home Electronics Ltd
Original Assignee
NEC Home Electronics 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 Home Electronics Ltd filed Critical NEC Home Electronics Ltd
Priority to JP56024758A priority Critical patent/JPS6027058B2/en
Publication of JPS57139833A publication Critical patent/JPS57139833A/en
Publication of JPS6027058B2 publication Critical patent/JPS6027058B2/en
Expired legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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

Landscapes

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

Description

【発明の詳細な説明】 本発明は、割込み信号に対し参照データを参照して割込
み応答処理を実行するプロセッサにおける割込み制御回
路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an interrupt control circuit in a processor that executes interrupt response processing with reference to reference data for an interrupt signal.

周知のように、近時普及しつつあるマイクロプロセッサ
においては、割込み信号入力端子が設けられ、この端子
に外部装置から割込み信号を与えることにより、マイク
oプロセッサ側の演算処理を一時保留したり、変更可能
なように構成されると共に、割込み信号と同時に参照デ
ータを与えることによりこの参照データを参照して割込
み応答内容を異ならせるように構成されている。
As is well known, microprocessors that are becoming popular these days are equipped with an interrupt signal input terminal, and by applying an interrupt signal to this terminal from an external device, it is possible to temporarily suspend arithmetic processing on the microprocessor side. It is configured to be changeable, and by providing reference data at the same time as the interrupt signal, it is configured to refer to this reference data and vary the contents of the interrupt response.

例えば、マイクロプロセッサ仏PD780(日本電気製
)はモード2の割込みモードにおいて上記のような割込
み応答を行う。このようなマイクロプロセッサの割込み
制御回,路において、外部装置から割込みを行う場合に
は前記参照データをメモリなどに予め記憶させておき、
この後割込み信号をマイクロプロセッサに与え、これに
対するマイクロプロセッサからの割込み許可信号または
データ議出し信号によって前記参照データをマイクロプ
ロセッサ側に転送する手法が多くとられている。
For example, the microprocessor PD780 (manufactured by NEC Corporation) responds to the interrupt as described above in mode 2 interrupt mode. In such a microprocessor interrupt control circuit, when an interrupt is generated from an external device, the reference data is stored in advance in a memory or the like,
Thereafter, an interrupt signal is given to the microprocessor, and the reference data is transferred to the microprocessor in response to an interrupt permission signal or data request signal from the microprocessor.

しかし、割込み信号発生源としての外部装置が複数の場
合、マイクロプロセッサ側ではどの外部装置から割込み
信号が発生されたかを検出しなければならず、割込み応
答が遅くなってしまうという問題が生じている。
However, when there are multiple external devices as sources of interrupt signals, the microprocessor must detect which external device has generated the interrupt signal, resulting in a slow interrupt response. .

また、外部装置が単一の場合であっても、外部装置から
ステータステータ等の割込み応等処理に無関係の転送デ
ータをマイクロプロセッサ側に転送する場合があるが、
この場合の転送データと割込み時の参照データとを別々
の経路で転送するようにすると、マイクロプロセッサと
外部装置との接続関係が複雑になってしまう問題点が生
じている。
Furthermore, even if there is only one external device, transfer data unrelated to interrupt response processing, such as status data, may be transferred from the external device to the microprocessor.
If the transfer data in this case and the reference data at the time of an interrupt are transferred through separate paths, a problem arises in that the connection relationship between the microprocessor and the external device becomes complicated.

本発明はこのような問題点を解決するためになされたも
ので、その目的は高速で割込み応答が可能になると共に
、簡単な構成で通常モードにおける転送データおよび割
込みモードにおける参照データをマイクロプロセッサ側
に転送し得るようにした割込み制御回路を提供すること
にある。
The present invention was made to solve these problems, and its purpose is to enable high-speed interrupt response, and to transfer data transferred in normal mode and reference data in interrupt mode to the microprocessor side with a simple configuration. An object of the present invention is to provide an interrupt control circuit that can transfer data to other sources.

以下、図示する実施例に基づき本発明を詳細に説明する
。第1図は本発明の一実施例を示すブロック図であって
、単一の外部装置からマイクロプロセッサに転送データ
および割込み応答時の参照データを転送する場合のもの
である。
Hereinafter, the present invention will be explained in detail based on illustrated embodiments. FIG. 1 is a block diagram showing an embodiment of the present invention, in which transfer data and reference data at the time of interrupt response are transferred from a single external device to a microprocessor.

そして、この実施例は外部装置自体も割込み応答機能を
持つマイクロプロセッサにより構成され、これら2つの
マイクロプロセッサ間で双方向にデータ転送が可能なよ
うにしたものである。以下、外部装置としてのマイクロ
プロセッサはスレィブプロセッサ、他方をマスタプロセ
ツサという。第1図において、マスタプロセッサ1は例
えば仏PD780(日本電気製)により構成され、16
ビッドのアドレスバス出力(へ〜A,5)、8ビットの
データバス入出力(Do〜○7)、割込み信号入力(瓜
T)、データ議出し信号出力(RD)、入出力リクエス
ト信号出力(10RQ)、第1マィンサィクル信号出力
(肌)、データ書込み信号出力(WR)等を有し、入出
力リクエスト信号10RQと第1マシンサイクル信号M
,とはオアゲート2において論理積がとられ、割込み要
求信号mTに対する割込み許可信号川T・ACKとして
出力される。
In this embodiment, the external device itself is also constituted by a microprocessor having an interrupt response function, and bidirectional data transfer is possible between these two microprocessors. Hereinafter, one microprocessor serving as an external device will be referred to as a slave processor, and the other one will be referred to as a master processor. In FIG. 1, the master processor 1 is composed of, for example, a French PD780 (manufactured by NEC Corporation), and has 16
Bit address bus output (to A, 5), 8-bit data bus input/output (Do to ○7), interrupt signal input (T), data request signal output (RD), input/output request signal output ( 10RQ), a first mine cycle signal output (skin), a data write signal output (WR), etc., and an input/output request signal 10RQ and a first machine cycle signal M
, are logically ANDed in the OR gate 2 and output as an interrupt enable signal T.ACK for the interrupt request signal mT.

また、アドレスパス出力(Ao〜A,5)における下位
8ビットのアドレス信号によって与えられる入出力デバ
イス番号は、デコーダ3において前記入出力リクエスト
信号10RQが出力されていることを条件にデコードさ
れ、チップセレクト信号CSとして出力される。なお、
マスタブロセツサ1は上記信号以外の信号入出力を有し
ているが、この実施例において使用しないものについて
は日本電気株式会会社発行の「山COM−82ユーザー
ズ・マニァル」(資料番号mM−61組)に記載され公
知であるので、ここでの説明は詳略する。次に、スレイ
ブプロセツサ4は例えばムPD8049(日本電気製)
により構成され、8ビット構成の2つの入出力ボートP
1,P2を有し、入出力ボートPIからはマスタプロセ
ッサ側に転送すべき、データを出力する。
Further, the input/output device number given by the lower 8-bit address signal in the address path output (Ao to A, 5) is decoded by the decoder 3 on the condition that the input/output request signal 10RQ is output, and the input/output device number is decoded by the chip. It is output as a select signal CS. In addition,
The master processor 1 has signal input/output other than the above-mentioned signals, but those not used in this embodiment are described in the "Yama COM-82 User's Manual" published by NEC Corporation (Document number mm-61 group). Since it is described in and is well known, the detailed explanation here will be omitted. Next, the slave processor 4 is, for example, a mu PD8049 (manufactured by NEC Corporation).
Two 8-bit input/output ports P
1 and P2, and the input/output port PI outputs data to be transferred to the master processor side.

そして、端子(TO)に信号が入力されると、その転送
データの送出を停止する。たた、入出力ボートP2から
はその転送データをプログラマフル・ベリフェラル・イ
ンタフェース5に記憶させるためのストロープ信号ST
Bおよびマスタプロセツサ1からの転送データを受取っ
たことを示すアクノリッジ信号ACKならびにマスタプ
ロセツサ1に対する割込み信号INTを出力する。なお
、これらの信号STB,ACK,INTは入出力拡張ユ
ニット6を介して出力される。また、このスレイブプロ
セツサ4は割込み信号INrsが与えられると、プログ
ラマフル・ベリフエラル・インタフェース5にマスタプ
ロセツサ1から転送され記憶されているデータを謙取る
ための割込み応答処理を行う。プログラマブル・ベリフ
エラル・インタフェース(以下、PPIという)5は、
例えば仏PD8255(日本電気製)により構成され、
次の第1表に示すような3組のプログラム可能な入出力
ボートPA,PB,PCを有し、このうち入出力ボート
としてモード2の状態八すなわち双方向入出力ボートと
して使用されると共に、ボートPCの一部がデータ転送
のための制御を行う信号入出力ボートとしてモード2の
状態で使用される。
Then, when a signal is input to the terminal (TO), the sending of the transfer data is stopped. In addition, a strobe signal ST is sent from the input/output boat P2 for storing the transferred data in the programmerful peripheral interface 5.
It outputs an acknowledge signal ACK indicating that it has received transfer data from master processor B and master processor 1, and an interrupt signal INT to master processor 1. Note that these signals STB, ACK, and INT are outputted via the input/output expansion unit 6. Further, when this slave processor 4 is given an interrupt signal INrs, it performs an interrupt response process for fetching the data transferred from the master processor 1 to the programmerful vertical interface 5 and stored therein. The programmable vertical interface (hereinafter referred to as PPI) 5 is
For example, it is composed of French PD8255 (manufactured by NEC Corporation),
It has three programmable input/output ports PA, PB, and PC as shown in Table 1 below, and is used as an input/output boat in state 8 of mode 2, that is, as a bidirectional input/output boat. A part of the boat PC is used in mode 2 as a signal input/output boat for controlling data transfer.

第2表にモード2の状態におけるボートPA〜PCの入
出力信号を示している。また、このPP15はデータ書
込み信号WR、データ読出し信号RD、ボート指定信号
AIおよびAOチップセレクト信号CSの入出端子を有
し、ボートPAは信号AIおよびAOを共に“0”にす
ることによって選択される。但し、この実施例では、通
常モード‘こおいてはマスタプロセツサ1のアドレス信
号A,,へがセレクタ7を介して入力され、割込みモー
ドにおいてはセレクタ7からAI=“0”,AO=“0
”の信号が入力される。一方、モード2の選択はマスタ
プロセツサ1かららの8ビットのコントロールワールド
の設定によって行なわれる。この場合、コントロールワ
ールドを含むマスタプロセツサ1からの転送データの書
込みはデータ書込み信号WRによって行なわれ、ストレ
イププロセツサ4からの転送データおよびPP15のス
テータスデータの読出しはデータ議出し信号RDによっ
て行なわれる。第1表 第2表 ここで、第2表における信号OBF,ACK,田F,S
TB,INTRのうち信号INTRは使用していない。
Table 2 shows the input/output signals of the boats PA to PC in the mode 2 state. Further, this PP15 has input/output terminals for a data write signal WR, a data read signal RD, a boat designation signal AI, and an AO chip select signal CS, and a boat PA is selected by setting both the signals AI and AO to "0". Ru. However, in this embodiment, in the normal mode, address signals A, . 0
" signal is input. On the other hand, mode 2 is selected by setting the 8-bit control world from master processor 1. In this case, the transfer data from master processor 1 including the control world is written. is performed by the data write signal WR, and reading of the transfer data from the stripe processor 4 and the status data of the PP 15 is performed by the data output signal RD. ,ACK, 田F,S
Of TB and INTR, the signal INTR is not used.

また、信号IBFスレイブプロセツサ4からの転送デー
タが入出力ボートPAに記憶され、禾だマスタプロセツ
サ1から謙出されていないことを示す信号であり、マス
タプロセツサ1からのデータ謙出し信号RDによってそ
の記憶データの論出しが完了すると“0”レベルに復帰
する。そして、この“0”レベルの信号IBFはスレイ
ブプロセツサ4の端子(TO)に入力され、これによっ
てスレイブブロセツサ4は入出力ボートPAへの転送デ
ータの送出を停止する。また、信号OBFはマスタプロ
セッサ1からの転送データが入出力ボートPAに記憶さ
れていることを示す信号であり、この信号OBFはスレ
ィブプロセツサ4に対し割込み信号INTsとして与え
られている。なお、このPP15の詳細な動作について
は日本電気株式会社発行の「ムPD8255の使い方J
(資料番号mM一郎7A)に記載され公知であるため、
ここでの説明は省略する。次にセレクタ7は、通常モー
ド‘こおいてはデータ議出し信号RD、アドレス信号A
IおよびA0、チップセレクト信号CSを選択してPP
15の入力端子RD,A1,A0,CSに供給し、また
スレイブプロセツサ4からマスタプロセツサ1への割込
みモードにおいては前記データ読出し信号RDに代えて
マスタプロセッサ1からの割込み許可信号INT・AC
Kを、またAI=“0”,AO=“0”,CS=“0”
の信号をPP15の入力端子RD,AI,A0,CSに
供給する。
Further, the signal IBF is a signal indicating that the data transferred from the slave processor 4 is stored in the input/output port PA and has not yet been output from the master processor 1, and is a data output signal from the master processor 1. When the logic of the stored data is completed by RD, it returns to the "0" level. This "0" level signal IBF is input to the terminal (TO) of the slave processor 4, and thereby the slave processor 4 stops sending the transfer data to the input/output port PA. Further, the signal OBF is a signal indicating that the transfer data from the master processor 1 is stored in the input/output port PA, and this signal OBF is given to the slave processor 4 as an interrupt signal INTs. For detailed operation of this PP15, please refer to "How to use PP8255" published by NEC Corporation.
(Document number: mm Ichiro 7A) and is publicly known,
The explanation here will be omitted. Next, the selector 7 outputs a data output signal RD and an address signal A in the normal mode.
I and A0, select chip select signal CS and PP
In the interrupt mode from the slave processor 4 to the master processor 1, the interrupt enable signal INT/AC from the master processor 1 is supplied in place of the data read signal RD.
K, and AI="0", AO="0", CS="0"
The signals are supplied to the input terminals RD, AI, A0, and CS of PP15.

そして、この場合の切換え制御は、オアゲート8の出力
信号によって行なわれる。すなわち、オアゲート8には
デコーダ3から出力されるチップセレクト信号CSをイ
ンバータ9によって反転した信号CSが入力されると共
に、入出力拡張ユニット6からマスタプロセツサ1に対
する割込み信号INTsが入力されている。これにより
、信号CS=“1”でかつ信号INTs=“0”の時、
すなわちマスタプロセッサ側から“0”のチップセレク
ト信号CSが出力されていない条件で割込み信号INT
sが発生した時、A側入力の信号川T・ACK,AI:
“0”,AO=“0”,CS=“0”を選択するように
切換えられる。また、マスタプロセツサ側からのチップ
セレクト信号CSがCS=“0”の時あるし、はスレイ
ププロセッサ4側からの割込み信号州Tsが“1”の時
にはB側入力の信号RD.AIおよびA0,CSを選択
するように切換えられる。なお、上記構成説明において
、信号名に付したオーバラィンは“0”レベルで有意で
あること示している。以上のような構成において、まず
初期状態においてはPP15の入出力ボートPAおよび
PCの一部をモード2の双方向入出力ボートとして機能
させるため、マスタプロセツサ1からPP15に対しコ
ントロールワールドがセットされる。
The switching control in this case is performed by the output signal of the OR gate 8. That is, a signal CS obtained by inverting the chip select signal CS output from the decoder 3 by an inverter 9 is input to the OR gate 8, and an interrupt signal INTs from the input/output expansion unit 6 to the master processor 1 is input. As a result, when the signal CS="1" and the signal INTs="0",
In other words, under the condition that the chip select signal CS of "0" is not output from the master processor side, the interrupt signal INT
When s occurs, the signal river T・ACK, AI of the A side input:
It is switched to select "0", AO="0", and CS="0". Also, when the chip select signal CS from the master processor side is CS="0", and when the interrupt signal state Ts from the slave processor 4 side is "1", the B side input signal RD. It can be switched to select AI, A0, and CS. In the above configuration description, the overline attached to the signal name indicates that it is significant at the "0" level. In the above configuration, in the initial state, a control world is set from the master processor 1 to the PP15 in order to make the input/output boat PA of the PP15 and part of the PC function as a mode 2 bidirectional input/output boat. Ru.

次に、マスタプロセツサ1がスレイブプロセツサ側にデ
ータを転送したい場合、アドレスバス出力(Ao〜A,
5)にスレイププロセツサ4の入出力デバイス番号を送
出し、デコーダ3からチップセレクト信号CSを出力せ
しめ、このチップセレクト信号CSをセレクタ7を介し
てPP15に供給すると共に、アドレス信号AI,AO
を“0”としてPP15を供給する。
Next, when the master processor 1 wants to transfer data to the slave processor side, the address bus outputs (Ao to A,
5) sends the input/output device number of the slave processor 4, causes the decoder 3 to output the chip select signal CS, supplies this chip select signal CS to the PP 15 via the selector 7, and also outputs the address signals AI, AO.
is set to "0" and PP15 is supplied.

そして、データバス出力(Do〜D7)に転送データを
送出し、次いでデータ書込み信号WRをPP15に供給
する。これによって、マスタプロセッサ1からの転送デ
ータはPP15の内部に記憶される。すると、PP15
から信号OBFが出力され、この信号OBFがスレイプ
プロセツサ4の割込み信号INTsとして供給する。こ
れによって、スレィブプロセッサ4は、PP15に記憶
されたマスタプロセッサ1からの転送データを割込み応
答処理によって読取る。この後、PP15は入出力ボー
トP2および入出力拡張ユニット6を介してアクノーリ
ッジ信号ACK(転送データを受取ったことを示す信号
)をPP15に返送する。これにより、PP15からの
信号OBFの送出は停止され、1つのデータの転送処理
が完了する。次に、スレイブプロセツサ4がマスクプロ
セッサ側の処理に割込みを行いたい場合、スレイブプロ
セッサ4は割込み要求内容に応じた参照データをボート
PIからデータバス出力に送出しておき、次にこのデー
タをPP15に記憶させるためにボートP2および入出
力拡張ユニット6を介してストローブ信号STBをPP
15に与える。
Then, the transfer data is sent to the data bus outputs (Do to D7), and then the data write signal WR is supplied to PP15. As a result, the data transferred from the master processor 1 is stored inside the PP 15. Then, PP15
A signal OBF is output from the CPU 4, and this signal OBF is supplied to the slave processor 4 as an interrupt signal INTs. As a result, the slave processor 4 reads the transfer data from the master processor 1 stored in the PP 15 through interrupt response processing. Thereafter, the PP 15 returns an acknowledge signal ACK (signal indicating that the transfer data has been received) to the PP 15 via the input/output port P2 and the input/output expansion unit 6. As a result, the sending of the signal OBF from the PP 15 is stopped, and the transfer process of one data is completed. Next, when the slave processor 4 wants to interrupt the processing on the mask processor side, the slave processor 4 sends reference data corresponding to the interrupt request contents from the boat PI to the data bus output, and then sends this data to the data bus output. The strobe signal STB is sent to the PP via the boat P2 and the input/output expansion unit 6 in order to be stored in the PP15.
Give to 15.

すると、スレイブプロセツサ4からの参照データはPP
15に記憶される。この時、参照データがPP15に記
憶されると、その記憶内容がマスタプロセッサ1から未
だ謙出されていないことを示す信号IBFがPP15の
端子(TO)に対して返送される。これによつて、スレ
イブブロセツサ4はボートPIからの参照データの送出
およびボート2からのストロープ信号STBの送出を停
止する。この後、このPP15に記憶された参照データ
を、マスタプロセッサ1が割込み応答によって読取るた
めの割込み信号…Tをボート2および入出力拡張ユニッ
ト6を介して送出する。この時、マスクプロセッサ側か
らチップセレクト信号CSが出力されていなければ、オ
アゲート8の出力は“0”レベルとなる。このため、セ
レクタ7はA側入力を選択出力する状態に切換えられる
。一方、マスタプロセッサ1はスレィブプロセツサ側の
割込み信号INTに対し、割込み許可信号INT・AC
Kをオアゲート2を介して出力する。この割込み許可信
号INT・ACKは、AI=“○”,AO=‘‘○”,
CS=“○”の信号と共にセレクタ7を介しててPP1
5に入力される。すなわち、信号INT・ACKはPP
15のデータ議出し信号入力端子(RD)に入力される
。これにより、PP15に記憶された参照データはマス
タプロセツサ1に謙取られ、マスタプロセツサ1はこの
参照データを基に割込み要求内容に対応した処理を実行
する。この時、PP15に記憶された参照データがマス
タプロセッサ1に謙取られると、PP15から出力され
る信号IBFは“0”となるため、スレイブプロセツサ
4は割込み信号INTの送出を停止する。これにより、
セレクタ7は初期状態に復帰される。次に、割込み要求
に無関係にデータをマスタプロセッサ側に送る場合、P
P15にその転送データを予め記憶させておく。
Then, the reference data from slave processor 4 becomes PP
15. At this time, when the reference data is stored in the PP15, a signal IBF indicating that the stored contents have not yet been retrieved from the master processor 1 is sent back to the terminal (TO) of the PP15. As a result, the slave processor 4 stops sending the reference data from the boat PI and stops sending the strobe signal STB from the boat 2. Thereafter, the master processor 1 sends an interrupt signal . At this time, if the chip select signal CS is not output from the mask processor side, the output of the OR gate 8 will be at the "0" level. Therefore, the selector 7 is switched to a state in which it selects and outputs the A-side input. On the other hand, the master processor 1 receives an interrupt enable signal INT/AC in response to the interrupt signal INT on the slave processor side.
K is output via OR gate 2. This interrupt enable signal INT/ACK is AI=“○”, AO=''○”,
PP1 via the selector 7 along with the CS=“○” signal.
5 is input. In other words, the signal INT/ACK is PP
The signal is input to the data output signal input terminal (RD) of No. 15. As a result, the reference data stored in the PP 15 is taken by the master processor 1, and the master processor 1 executes processing corresponding to the contents of the interrupt request based on this reference data. At this time, when the reference data stored in the PP15 is taken by the master processor 1, the signal IBF output from the PP15 becomes "0", so the slave processor 4 stops sending out the interrupt signal INT. This results in
The selector 7 is returned to its initial state. Next, when sending data to the master processor side regardless of interrupt requests, P
The transfer data is stored in P15 in advance.

すると、マスタプロセッサ1からのデータ議出し信号R
Dによって謙出され、マスタプロセッサ側に転送される
。なお、スレィブプロセツサ側から割込み信号mTが発
生した時、マスタプロセツサ側から“0”のチップセレ
クト信号CSが出力されている状態では、セレクタ7は
切換えられず、マスタプロセッサ側の処理が優先される
Then, the data output signal R from the master processor 1
D is extracted and transferred to the master processor side. Note that when the interrupt signal mT is generated from the slave processor side and the chip select signal CS of "0" is output from the master processor side, the selector 7 is not switched and the processing on the master processor side is is given priority.

このように本実施例によれば、単一の入出力ポインター
フェース部によってマスタプロセツサとスレイブプロセ
ツサ間におけるデータおよびスレィブプロセッサからの
割込み要求に関する参照データを転送することができる
。また、割込み要求が発生した場合、マスタプロセツサ
からの割込み許可信号はセレクタによって割込み要求の
発生源にのみ返送される構成となっているため、マスタ
プロセッサは割込み要求源を捜す処理が不要となり、高
速で割込み応答を行うことができる。従って、第2図に
示すような複数のスレィブプロセツサ4a,4bを備え
たマルチプロセッサシステムに適用すれば、高度の処理
内容を高速で処理することができる。なお、第2図にお
いて、10は第1のスレイブプロセッサ4aからの割込
み信号INT,と第2のスレイブプロセツサ4bからの
割込み信号INLとが同時に発生した場合の優先度を制
御する優先制御回路であって、2つの割込み信号INT
,,INT2が同時発生した場合にはいずれか1つのみ
が優先されてオアゲート11を介してマスタプロセッサ
1に送られる。なお、上記実施例において、外部装置自
体もマイクロプロセッサによって構成しているが、これ
に限定されるものではない。
As described above, according to this embodiment, data between the master processor and slave processor and reference data regarding interrupt requests from the slave processor can be transferred using a single input/output pointer interface. Furthermore, when an interrupt request occurs, the interrupt enable signal from the master processor is configured to be returned only to the source of the interrupt request by the selector, so the master processor does not need to search for the source of the interrupt request. Can respond to interrupts at high speed. Therefore, if applied to a multiprocessor system including a plurality of slave processors 4a and 4b as shown in FIG. 2, advanced processing contents can be processed at high speed. In FIG. 2, 10 is a priority control circuit that controls the priority when the interrupt signal INT from the first slave processor 4a and the interrupt signal INL from the second slave processor 4b occur simultaneously. There are two interrupt signals INT
, , INT2 occur simultaneously, only one of them is given priority and sent to the master processor 1 via the OR gate 11. In the above embodiments, the external device itself is also constituted by a microprocessor, but the present invention is not limited to this.

また、マスタプロセッサとのインタフェース部にはログ
ラマフル・インタフェースを使用しているが、単なるメ
モリ手段であってもよいものである。以上の説明から明
らかなように本発明によれば、マイクロプロセッサ側の
割込み応答を高速化できると共に、外部装置からのデー
タを簡単な構成で転送できる利点があり、マルチプロセ
ッサシステムに適用すれば極めて優れた効果発揮する。
Furthermore, although a programmable interface is used for the interface with the master processor, it may also be a simple memory means. As is clear from the above description, the present invention has the advantage of being able to speed up the interrupt response on the microprocessor side, as well as being able to transfer data from an external device with a simple configuration. Demonstrates excellent effects.

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

第1図は本発明の一実施例を示すブロック図、第2図は
本発明の他の実施例を示すブロック図である。 1……マスタプロセツサ、3……デコーダ、4,4a,
4b……スレイブプロセツサ、5……プログラマブル・
ベリフエラル・インターフェース(PPI)、6……入
出力拡張ユニット、7……セレクタ、10・・・・・・
陵先制御回路。 第1図図 N 船
FIG. 1 is a block diagram showing one embodiment of the invention, and FIG. 2 is a block diagram showing another embodiment of the invention. 1... Master processor, 3... Decoder, 4, 4a,
4b...Slave processor, 5...Programmable
Verifical interface (PPI), 6... Input/output expansion unit, 7... Selector, 10...
Climb control circuit. Figure 1 Figure N Ship

Claims (1)

【特許請求の範囲】[Claims] 1 割込み信号に対し割込み許可信号を出力すると共に
、外部装置からの参照データを参照して割込み応答処理
を実行するプロセツサを備え、該プロセツサに割込み信
号および前記参照データを外部装置から与える割込み制
御回路であつて、通常モードにおいては外部装置からの
転送データを記憶し、割込みモードにおいては前記割込
み信号の発生前に外部装置から与えられる前記参照デー
タを記憶するメモリ手段と、前記割込み信号によつて制
御され、通常モードにおいてはプロセツサからのデータ
読出し信号を前記メモリ手段のデータ読出し端子に入力
して前記転送データをプロセツサのデータ入力に転送さ
せ、割込みモードにおいては前記割込み許可信号を前記
メモリ手段のデータ読出し端子に入力して前記参照デー
タをプロセツサのデータ入力に転送させる信号切換回路
とを具備してなる割込み制御回路。
1. An interrupt control circuit that includes a processor that outputs an interrupt permission signal in response to an interrupt signal and executes interrupt response processing by referring to reference data from an external device, and supplies the interrupt signal and the reference data to the processor from the external device. a memory means for storing transfer data from an external device in a normal mode, and storing the reference data given from the external device before the generation of the interrupt signal in the interrupt mode; In the normal mode, the data read signal from the processor is input to the data read terminal of the memory means to transfer the transfer data to the data input of the processor, and in the interrupt mode, the interrupt enable signal is input to the data read terminal of the memory means. An interrupt control circuit comprising: a signal switching circuit input to a data read terminal to transfer the reference data to a data input of a processor.
JP56024758A 1981-02-20 1981-02-20 Interrupt control circuit Expired JPS6027058B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56024758A JPS6027058B2 (en) 1981-02-20 1981-02-20 Interrupt control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56024758A JPS6027058B2 (en) 1981-02-20 1981-02-20 Interrupt control circuit

Publications (2)

Publication Number Publication Date
JPS57139833A JPS57139833A (en) 1982-08-30
JPS6027058B2 true JPS6027058B2 (en) 1985-06-27

Family

ID=12147043

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56024758A Expired JPS6027058B2 (en) 1981-02-20 1981-02-20 Interrupt control circuit

Country Status (1)

Country Link
JP (1) JPS6027058B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60258649A (en) * 1984-06-04 1985-12-20 Mitsubishi Electric Corp Programmable controller
JP2573240B2 (en) * 1987-08-26 1997-01-22 松下電工株式会社 Sequencer interrupt unit

Also Published As

Publication number Publication date
JPS57139833A (en) 1982-08-30

Similar Documents

Publication Publication Date Title
US4099236A (en) Slave microprocessor for operation with a master microprocessor and a direct memory access controller
US4271466A (en) Direct memory access control system with byte/word control of data bus
EP0464615B1 (en) Microcomputer equipped with DMA controller
US4961161A (en) Arithmetic processor performing mask and trap operations for exceptions
JPS61166652A (en) Interruption generating system using exceptional memory protection
JP2581323B2 (en) How to update reference bits and change bits
EP0522582A2 (en) Memory sharing for communication between processors
JPH0250499B2 (en)
JPS6027058B2 (en) Interrupt control circuit
JPH0227696B2 (en) JOHOSHORISOCHI
JPS6315953Y2 (en)
JPS60129868A (en) Memory system
JP2574821B2 (en) Direct memory access controller
JP3209521B2 (en) Memory access control method and computer system
JPS5886623A (en) Memory control system
JPS603049A (en) Bus interface apparatus
JPS599324Y2 (en) multiprocessor device
JP2567833B2 (en) Interrupt detection method
JPS63155254A (en) Information processor
JPH0131224B2 (en)
JPH0630085B2 (en) Computer system
JPS61161560A (en) Memory device
JPH02144653A (en) Data processor
JPS61292739A (en) Memory device
JP2001014214A (en) Method for sharing memory and multiprocessor facility using this method