JPS6229819B2 - - Google Patents

Info

Publication number
JPS6229819B2
JPS6229819B2 JP1009577A JP1009577A JPS6229819B2 JP S6229819 B2 JPS6229819 B2 JP S6229819B2 JP 1009577 A JP1009577 A JP 1009577A JP 1009577 A JP1009577 A JP 1009577A JP S6229819 B2 JPS6229819 B2 JP S6229819B2
Authority
JP
Japan
Prior art keywords
interrupt
cause
circuit
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
JP1009577A
Other languages
Japanese (ja)
Other versions
JPS5394849A (en
Inventor
Hidetoshi Kosaka
Manabu Kimoto
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
Nippon Electric 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP1009577A priority Critical patent/JPS5394849A/en
Publication of JPS5394849A publication Critical patent/JPS5394849A/en
Publication of JPS6229819B2 publication Critical patent/JPS6229819B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 この発明は複数の割込原因に対する割込処理を
行なう処理装置において、1つの割込処理中に他
の割込信号が発生した場合の割込制御装置に関
し、特に複数の割込原因に対して単一の割込要求
信号を処理装置に印加する割込制御装置に関す
る。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an interrupt control device that performs interrupt processing for multiple interrupt causes when another interrupt signal is generated during one interrupt processing, and particularly relates to an interrupt control device that performs interrupt processing for multiple interrupt causes. The present invention relates to an interrupt control device that applies a single interrupt request signal to a processing device for an interrupt cause.

割込原因の数が増加してくると一つの割込処理
を実行中に他の割込原因が発生することがある。
このような場合、従来は後で発生した割込信号を
待機させ、先の割込処理が終了した後、後の割込
原因に対する処理を行つていた。しかし割込原因
が増加した場合には割込レベルを多重化して、或
る割込原因に対する割込処理を実行中、その割込
原因よりも、優先順位が高位にある割込原因が発
生した場合に先の割込処理を中断して後の割込原
因に対する割込処理を実行し、その割込処理の終
了後に先の割込処理に復帰し、一方実行中の割込
処理の割込原因よりも優先順位が低位の割込原因
が発生した場合は、現在の割込処理の終了後に後
の割込原因に対する割込処理を実行することを可
能にすることが好ましい。
As the number of interrupt causes increases, other interrupt causes may occur while one interrupt process is being executed.
In such a case, conventionally, the interrupt signal that occurs later is waited for, and after the previous interrupt processing is completed, processing for the cause of the later interrupt is performed. However, when the number of interrupt causes increases, the interrupt levels are multiplexed so that while interrupt processing for a certain interrupt cause is being executed, an interrupt cause with a higher priority than that interrupt cause occurs. In this case, interrupt the previous interrupt processing, execute the interrupt processing for the later interrupt cause, return to the previous interrupt processing after the interrupt processing is completed, and interrupt the interrupt processing that is currently being executed. When an interrupt cause with a lower priority than the cause occurs, it is preferable to allow interrupt processing for a later interrupt cause to be executed after the current interrupt processing is completed.

しかるに、複数の割込原因に対して夫々異なる
割込要求信号を割り当てて、前記複数の割込原因
を独立に制御するようにすれば、割込原因の待機
および許可を比較的容易に制御することができる
が、割込要求信号の数が増すと割込処理回路の構
成が複雑化するので好ましくない。これに対し
て、複数の割込原因に対して1つの割込要求信号
回路で対処すれば、割込処理回路の簡略化が計れ
る。しかしながら、単一の割込要求信号で複数の
割込原因に対処すると先に述べた割込の多重処理
および優先処理が困難である。
However, if a different interrupt request signal is assigned to each of a plurality of interrupt causes and the plurality of interrupt causes are controlled independently, waiting and enabling of the interrupt causes can be controlled relatively easily. However, as the number of interrupt request signals increases, the configuration of the interrupt processing circuit becomes complicated, which is not preferable. On the other hand, if a single interrupt request signal circuit handles a plurality of interrupt causes, the interrupt processing circuit can be simplified. However, if a single interrupt request signal is used to deal with a plurality of interrupt causes, it is difficult to multiplex and prioritize interrupts as described above.

この発明の目的は複数の割込原因に対して共通
に用いられる1つの割込要求信号発生回路を有す
る装置において、割込原因が多重に発生した場合
でも、割込原因の優先順位に応じた割込処理を可
能とする割込制御装置を提供するにある。
An object of the present invention is to provide a device having one interrupt request signal generation circuit that is commonly used for multiple interrupt causes, even when multiple interrupt causes occur. An object of the present invention is to provide an interrupt control device that enables interrupt processing.

本発明は優先順位の異なる複数の割込原因の各
各に対応して設けられ、割込原因からの割込信号
によつてセツトされ、割込処理終了後リセツトさ
れる割込入力記憶回路と、介割込入力記憶回路に
対応して設けられ、割込処理開始時にセツトされ
割込処理終了後にリセツトされるマスク記憶回路
と、単一の割込要求信号発生回路と、各割込入力
記憶回路に対応して設けられ、その割込入力記憶
回路および対応するマスク記憶回路が夫々セツト
およびリセツト状態にあり、かつ優先順位が上位
の割込原因に対応する割込入力記憶回路のすべて
がリセツト状態にある期間出力を発生するゲート
回路とを具備し、前記割込要求信号発生回路は前
記ゲート回路からの出力に応答して該出力が発生
された時点から所定の期間割込要求信号を発生
し、任意の割込原因に対して割込要求信号が発生
された後、当該割込原因に対応するマスク記憶回
路をセツトすることによつて前記ゲート回路の出
力を停止せしめ、これによつて続けて発生される
優先順位の上位の割込の受付けを許可するととも
に優先順位の下位の割込の受付けを禁止すること
を特徴とするものである。
The present invention includes an interrupt input storage circuit that is provided corresponding to each of a plurality of interrupt causes having different priorities, is set by an interrupt signal from the interrupt cause, and is reset after the interrupt processing is completed. , a mask memory circuit provided corresponding to the interrupt input memory circuit, which is set at the start of interrupt processing and reset after the end of interrupt processing, a single interrupt request signal generation circuit, and each interrupt input memory. The interrupt input storage circuit and the corresponding mask storage circuit provided corresponding to the circuit are in the set and reset states, respectively, and all of the interrupt input storage circuits corresponding to the interrupt cause with the higher priority are reset. and a gate circuit that generates an output during a period in which the interrupt request signal generating circuit generates an interrupt request signal for a predetermined period from the time when the output is generated in response to the output from the gate circuit. After an interrupt request signal is generated for an arbitrary interrupt cause, the output of the gate circuit is stopped by setting a mask memory circuit corresponding to the interrupt cause, and thereby the output of the gate circuit is stopped. This system is characterized in that it allows acceptance of successively generated interrupts with a higher priority, and prohibits acceptance of interrupts with a lower priority.

この発明による割込制御装置の実施例を図面を
参照して詳細に説明する。第1図においてMSK
0、MSK1、MSK2、MSK3はデータ処理中央
演算装置(以下CPUとする)より発生される命
令SMSK0、SMSK1、SMSK2、SMSK3を
夫々そのセツト入力とし、命令RMSK0、RMSK
1、RMSK2、RMSK3をリセツト入力とするセ
ツトリセツト型フリツプフロツプ(以下F/Fと
記す)で、後述するようにこれらは各割込に対す
るマスクF/Fとして働く。IH0、IH1、IH
2、IH3はそれぞれ対応する割込原因INT0、
INT1、INT2、INT3をそのセツト入力とし、
命令RIH0、RIH1、RIH2、RIH3をリセツト
入力とする割込入力F/Fである。アンドゲート
1は割込入力F/F IH0の出力と対応する
マスクF/F MSK0の出力とを入力とする
2入力アンドゲート、アンドゲート2は上位の割
込入力F/F IH0の出力、対応するマスク
F/F MSK1のQ出力、自身の割込入力F/
F IH1のQ出力を入力とする3入力アンドゲ
ート、アンドゲート3は上位の割込入力F/F
IH0、IH1、対応するマスクF/F MSK2の
各出力と、自身の割込入力F/F IH2のQ
出力を入力とする4入力アンドゲート、アンドゲ
ート4は上位の割込入力F/F IH0、IH1、
IH2、対応するマスクF/F MSK3の各出
力、自身の割込入力IH3のQ出力を入力とする5
入力アンドゲートであり、オアゲート5はアンド
ゲート1,2,3,4の各出力をその入力とする
4入力オアゲート、遅延型F/F(以下D−F/
Fとする)6はオアゲート5の出力をその入力と
している。インバータ7はD−F/F6の出力を
入力とし、その反転出力をアンドゲート8に入力
する。アンドゲート8の他方の入力はオアゲート
5の出力である。D−F/F6、インバータ7、
アンドゲート8は割込要求信号(REQ)となる
ワンパルスを作成するパルス微分回路を構成する
割込要求信号発生回路9である。
Embodiments of an interrupt control device according to the present invention will be described in detail with reference to the drawings. In Figure 1, MSK
0, MSK1, MSK2, and MSK3 take the instructions SMSK0, SMSK1, SMSK2, and SMSK3, respectively, generated by the data processing central processing unit (hereinafter referred to as CPU) as their set inputs, and the instructions RMSK0, RMSK
1, RMSK2, and RMSK3 are reset type flip-flops (hereinafter referred to as F/Fs) which serve as mask F/Fs for each interrupt, as will be described later. IH0, IH1, IH
2. IH3 has the corresponding interrupt cause INT0,
INT1, INT2, INT3 are the set inputs,
This is an interrupt input F/F that uses instructions RIH0, RIH1, RIH2, and RIH3 as reset inputs. AND gate 1 is a 2-input AND gate whose inputs are the output of interrupt input F/F IH0 and the output of corresponding mask F/F MSK0, and AND gate 2 is the output of upper interrupt input F/F IH0, corresponding Q output of mask F/F MSK1, own interrupt input F/
F 3-input AND gate that takes Q output of IH1 as input, AND gate 3 is upper interrupt input F/F
Each output of IH0, IH1, and the corresponding mask F/F MSK2, and the Q of its own interrupt input F/F IH2
4-input AND gate with output as input, AND gate 4 is upper interrupt input F/F IH0, IH1,
IH2, each output of the corresponding mask F/F MSK3, and its own interrupt input IH3's Q output is input 5
It is an input AND gate, and OR gate 5 is a 4-input OR gate whose inputs are the outputs of AND gates 1, 2, 3, and 4, and a delay type F/F (hereinafter referred to as D-F/F/F).
F) 6 has the output of the OR gate 5 as its input. Inverter 7 inputs the output of DF/F 6 and inputs its inverted output to AND gate 8 . The other input of AND gate 8 is the output of OR gate 5. D-F/F6, inverter 7,
The AND gate 8 is an interrupt request signal generating circuit 9 that constitutes a pulse differentiating circuit that generates a single pulse serving as an interrupt request signal (REQ).

回路9の出力端子10から割込要求信号REQ
が発生すると、CPUは実行中のプログラムを中
断し、割込時点のプログラム、各種データを退避
し、割込原因に対応した割込処理プログラムに移
る。どの割込原因に対する処理も実行されていな
いとすると、割込入力F/F IH0、IH1、IH
2、IH3はいずれもリセツト状態(出力が
“1”)となつている。プログラムの処理状態によ
つては割込原因が発生してもその割込みを受付け
ないようにすることがあり、この受付けを許すか
否かはCPUによりマスクF/F MSK0、MSK
1、MSK2、MSK3を制御することにより行な
うことができる。いまこれ等マスクF/Fは割込
受付状態にあつてすべてリセツト状態(出力が
“1”)にあるとする。
Interrupt request signal REQ from output terminal 10 of circuit 9
When this occurs, the CPU interrupts the program being executed, saves the program and various data at the time of the interrupt, and moves to the interrupt processing program corresponding to the cause of the interrupt. Assuming that no processing is being executed for any interrupt cause, interrupt input F/F IH0, IH1, IH
Both IH2 and IH3 are in the reset state (output is "1"). Depending on the processing status of the program, even if an interrupt cause occurs, the interrupt may not be accepted. Whether or not this acceptance is allowed is determined by the CPU mask F/F MSK0, MSK
This can be done by controlling 1, MSK2, and MSK3. It is now assumed that these mask F/Fs are in an interrupt acceptance state and are all in a reset state (output is "1").

この状態において3番目の優先順位をもつ割込
原因INT2が発生し、割込原因INT2に対する割
込処理プログラムを実行中に割込原因INT2より
も優先順位の高い2番目の割込原因INT1が発生
した場合のプログラムの推移を第2図に、そのタ
イムチヤートを第3図にそれぞれ示して説明す
る。CPUがプログラムAを実行中で、その番地
Anとなつた時点t1に割込原因INT2が発生する
と、この信号は割込入力F/F IH2をセツト
する(Q=“1”,=“0”となる)。今上位の割
込入力F/F IH0、IH1、および対応するマ
スクF/F MSK2の何れもリセツトされてい
るので割込入力F/F IH2のQ出力はアンド
ゲート3、オアゲート5を介して割込信号発生回
路9に入力され、出力端子10にはD−F/F6
によつて定められた遅延時間に相当する割込要求
信号REQが時点t2に発生する。この信号により
CPUは実行中のプログラムAを番地Anの終りで
中断し、アンドゲート3が論理値1であることを
検出してこれに対応する割込原因INT2に対する
割込処理プログラムBに移る。この割込処理プロ
グラムの先頭にはマスクF/FMSK2をセツトす
る命令SMSK2があり、マスクF/F MSK2
はこの割込処理プログラム内ではセツト状態(
出力=“0”)となる。つまり割込原因INT2の割
込処理状態になると、この割込原因と対応する割
込マスクF/F MSK2をセツトして、割込原
因INT2を受付けないようにし、この割込処理が
終つた後に改めて割込原因INT2を受付けてよい
か否かの判断を行なう。この状態においてはアン
ドゲート3の入力のうちマスクF/F MSK2
の出力は論理値“0”となり、割込入力F/F
IH2のQ出力はアンドゲート3によつて割込
信号発生回路9へ入力されることを禁止される。
In this state, interrupt cause INT2 with the third priority occurs, and while the interrupt processing program for interrupt cause INT2 is being executed, the second interrupt cause INT1, which has a higher priority than interrupt cause INT2, occurs. The progress of the program in this case is shown in FIG. 2, and the time chart is shown in FIG. 3 for explanation. The CPU is executing program A, and the address
When the interrupt cause INT2 occurs at the time t1 when An is reached, this signal sets the interrupt input F/F IH2 (Q=“1”,=“0”). Since the upper interrupt input F/Fs IH0 and IH1 and the corresponding mask F/F MSK2 have all been reset, the Q output of the interrupt input F/F IH2 is divided via AND gate 3 and OR gate 5. D-F/F6 is input to the output terminal 10.
An interrupt request signal REQ corresponding to the delay time determined by is generated at time t2 . With this signal
The CPU interrupts the program A being executed at the end of the address An, detects that the AND gate 3 has a logical value of 1, and moves to the interrupt processing program B for the corresponding interrupt cause INT2. At the beginning of this interrupt processing program, there is an instruction SMSK2 to set mask F/FMSK2.
is in the set state (
Output=“0”). In other words, when the interrupt processing state for interrupt cause INT2 is reached, the interrupt mask F/F MSK2 corresponding to this interrupt cause is set to prevent the interrupt cause INT2 from being accepted, and after this interrupt processing is finished, It is determined again whether or not to accept the interrupt cause INT2. In this state, among the inputs of AND gate 3, mask F/F MSK2
The output becomes logical value “0”, and the interrupt input F/F
The Q output of IH2 is prohibited from being input to the interrupt signal generation circuit 9 by the AND gate 3.

ここで、仮にマスクF/F MSK2がなかつ
たならば、割込入力F/F IH2は割込処理期
間中セツト状態にあるため、アンドゲート3の出
力は常に“1”となり続け、上位の割込原因から
の割込信号が発生してもパルス微分回路9から割
込要求信号を発生することができない。一方、割
込原因INT2に対する割込処理の開始に伴つて、
割込入力F/F IH2をリセツトするとアンド
ゲート3の出力は停止され、上位の割込の受付け
は可能となるが、同時に下位の割込原因INT3の
受付けも可能となり優先割込処理ができない。従
つて、マスクF/F MSK2を設けることによ
つて、これをセツトすることによつてアンドゲー
ト3の出力を停止し、優先順位の上位の割込を許
可するとともに優先順位の下位の割込の受付けを
禁止することができるので、多重優先割込制御が
可能となる。他のマスクF/Fについても同様で
ある。かかるマスクF/Fは複数の割込原因に対
して単一の割込要求信号を発生する本考案の割込
制御装置において特に有効である。
Here, if the mask F/F MSK2 were not present, the interrupt input F/F IH2 would be in the set state during the interrupt processing period, so the output of the AND gate 3 would always remain "1" and the upper interrupt Even if an interrupt signal is generated from an interrupt cause, the pulse differentiating circuit 9 cannot generate an interrupt request signal. On the other hand, with the start of interrupt processing for interrupt cause INT2,
When the interrupt input F/F IH2 is reset, the output of the AND gate 3 is stopped, and it becomes possible to accept higher-order interrupts, but at the same time, it also becomes possible to accept the lower-order interrupt cause INT3, making it impossible to perform priority interrupt processing. Therefore, by providing the mask F/F MSK2 and setting it, the output of the AND gate 3 is stopped, allowing interrupts with a higher priority, and interrupts with a lower priority. It is possible to prohibit the acceptance of interrupts, which enables multiple priority interrupt control. The same applies to other mask F/Fs. Such a mask F/F is particularly effective in the interrupt control device of the present invention which generates a single interrupt request signal for a plurality of interrupt causes.

割込原因INT2に対する割込処理期間中に時点
t3で上位の割込原因INT1による割込が発生する
と、割込入力F/F IH1がセツトされる。こ
の時割込入力F/F IH0はリセツト状態にあ
り、マスクF/F MSK1もリセツト状態にあ
るので割込入力F/F IH1のQ出力はアンド
ゲート2、オアゲート5を介して割込信号発生回
路9に入力され、割込要求信号REQが時点t4に発
生する。上述したように割込要求信号REQが発
生すると実行中のプログラムを中断するので、割
込原因INT2に対するプログラムBはその番地B
pの終りで中断され、CPUはアンドゲート2の出
力が論理値“1”であることを検出して割込原因
1に対する割込処理プログラムCに移る。この割
込原因1に対する割込処理プログラムの先頭には
マスクF/F MSK1に対するセツト命令
SMSK1を置き、マスクF/F SMSK1をセツ
ト状態として下位の割込受付けを禁止する。
At a point in time during the interrupt processing period for interrupt cause INT2
When an interrupt occurs due to the upper interrupt cause INT1 at t3 , the interrupt input F/F IH1 is set. At this time, the interrupt input F/F IH0 is in the reset state and the mask F/F MSK1 is also in the reset state, so the Q output of the interrupt input F/F IH1 generates an interrupt signal via AND gate 2 and OR gate 5. The interrupt request signal REQ is input to the circuit 9 and is generated at time t4 . As mentioned above, when the interrupt request signal REQ occurs, the running program is interrupted, so the program B for the interrupt cause INT2 is placed at address B.
The process is interrupted at the end of p , and the CPU detects that the output of the AND gate 2 is a logical value "1" and moves to the interrupt processing program C for the interrupt cause 1. At the beginning of the interrupt processing program for this interrupt cause 1, there is a set instruction for mask F/F MSK1.
SMSK1 is placed, and the mask F/F SMSK1 is set to prohibit reception of lower-order interrupts.

割込原因INT1に対するプログラムCの最後に
は割込入力F/F IH1のリセツト命令RIH1が
置かれ割込原因INT1に対するプログラム終了
後、時点t5に割込入力F/F IH1はリセツト状
態となる。また、マスクF/F MSK1に対す
る命令RMSK1も割込入力F/F IH1がリセ
ツトされた後に発生することができ、再度割込原
因INT1が現われた場合、この割込原因INT1に
対する割込処理を受付けるかどうか設定できる。
割込原因INT1に対する割込処理プログラムCが
終了すると中断されていた割込原因INT2に対す
る割込処理プログラムBの番地Bp+1に復帰し、
このプログラムの残りを実行し、その最後には割
込原因INT1に対する割込処理プログラムと同様
に割込原因を保持する割込入力F/F HI2、
マスクF/F MSK2に対する命令が設けら
れ、プログラムBの終了時点t6に割込原因INT2
が発生する前のプログラムAの番地Ao+1に復帰
する。
At the end of program C for interrupt cause INT1, a reset instruction RIH1 for interrupt input F/F IH1 is placed, and after the program for interrupt cause INT1 ends, interrupt input F/F IH1 enters the reset state at time t5 . . In addition, the instruction RMSK1 for the mask F/F MSK1 can also be generated after the interrupt input F/F IH1 is reset, and if the interrupt cause INT1 appears again, the interrupt processing for this interrupt cause INT1 will be accepted. You can set whether or not.
When the interrupt processing program C for the interrupt cause INT1 is finished, the interrupted interrupt processing program B for the interrupt cause INT2 returns to address B p+1 .
The rest of this program is executed, and at the end, the interrupt input F/F HI2, which holds the interrupt cause in the same way as the interrupt processing program for the interrupt cause INT1,
An instruction for mask F/F MSK2 is provided, and interrupt cause INT2 is issued at the end of program B at t6 .
Returns to address A o+1 of program A before occurrence of the error.

他方、割込原因INT2に対する割込処理プログ
ラム実行中に割込原因INT3が発生した時のプロ
グラムの推移を第4図に、タイムチヤートを第5
図にそれぞれ示す。INT3が発生した時点t7で割
込入力F/F IH3はセツトされるが、アンドゲ
ート4の入力の一つである割込入力F/F IH
2の出力が論理値“0”であるため、割込入力
F/F IH3のQ出力は割込信号発生回路9に
入力されず、割込原因INT2に対する割込処理プ
ログラムBの実行が継続される。このプログラム
Bの終了した時点t8への前述した如く割込入力
F/F IH2がリセツトされるため割込原因INT
1、INT2に対すると同様にして割込要求信号
REQが発生し、CPUはアンドゲート4の出力が
論理値“1”であることを検出し、割込原因INT
3に対応した割込処理プログラムDに移る。この
プログラムの先頭にも割込原因INT1、INT2と
同様に割込入力F/F INT3に対するマスク
F/F MSK3のセツト命令が置かれる。割込
原因INT3に対する割込処理プログラムDの終了
後は割込原因INT1、INT2に対する割込処理プ
ログラムにおけると同様の処理を実行し、割込原
因INT2が発生する前のプログラムAの番地Ao+
に復帰する。
On the other hand, Figure 4 shows the progress of the program when the interrupt cause INT3 occurs during the execution of the interrupt processing program for the interrupt cause INT2, and the time chart is shown in Figure 5.
Each is shown in the figure. Interrupt input F/F IH 3 is set at time t7 when INT3 occurs, but interrupt input F/F IH, which is one of the inputs of AND gate 4, is set.
Since the output of INT2 is the logical value "0", the Q output of the interrupt input F/F IH3 is not input to the interrupt signal generation circuit 9, and the execution of the interrupt processing program B for the interrupt cause INT2 continues. Ru. As mentioned above, the interrupt input F/F IH2 is reset at the time t8 when this program B ends, so the interrupt cause INT
1. Interrupt request signal in the same way as for INT2
REQ occurs, the CPU detects that the output of AND gate 4 is a logical value "1", and the interrupt cause INT
The process moves to interrupt processing program D corresponding to No. 3. Also placed at the beginning of this program is an instruction to set the mask F/F MSK3 for the interrupt input F/F INT3, similar to the interrupt causes INT1 and INT2. After the interrupt processing program D for interrupt cause INT3 ends, the same processing as in the interrupt processing program for interrupt causes INT1 and INT2 is executed, and the address A o+ of program A before interrupt cause INT2 occurs is executed.
Return to 1 .

割込原因INT0、INT1、INT3に関しても割
込処理は優先順位の高い順に行なわれる。この例
においては優先順位はINT0、INT1、INT2、
INT3の順であることがわかる。
Interrupt processing for interrupt causes INT0, INT1, and INT3 is also performed in order of priority. In this example, the priorities are INT0, INT1, INT2,
It can be seen that the order is INT3.

以上述べたように、単一割込要求方式のこの発
明の割込制御装置によれば、割込原因に優先順位
が存在し、ある割込原因に対する割込処理プログ
ラム実行中に、別の割込原因が発生し、これに対
し割込を行なうか待期を行なうかが優先順位に従
つて決定され、従来このような優先順位を付けず
に、割込原因の発生が重なつた場合に後から発生
したものが単に待される方式と比較してこの発明
の効果は大きいことは容易に理解されよう。
As described above, according to the interrupt control device of the present invention using the single interrupt request method, there is a priority order for interrupt causes, and while the interrupt processing program for one interrupt cause is being executed, another interrupt When an interrupt cause occurs, whether to perform an interrupt or wait is determined according to the priority order. It will be easily understood that the effect of this invention is greater than that of a method in which what occurs later is simply waited for.

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

第1図はこの発明による割込制御装置の実施例
を示すブロツク図、第2図は優先順位低位の割込
原因が発生した後に、これより優先順位高位の割
込原因が発生した時のプログラムの推移を示す
図、第3図は第2図における状態での第1図に示
した回路のタイムチヤート、第4図は優先順位高
位の割込原因が発生した後に、これより優先順位
低位の割込原因が発生した時のプログラムの推移
を示す図、第5図は第4図における状態での第1
図に示した回路のタイムチヤートである。 IH0〜IH3:割込原因記憶素子、MSK0〜
MSK3:割込不受理記憶素子、1〜4:優先順
位設定用アンドゲート、9:割込信号発生回路。
Fig. 1 is a block diagram showing an embodiment of the interrupt control device according to the present invention, and Fig. 2 is a program when an interrupt cause with a higher priority occurs after an interrupt cause with a lower priority occurs. Figure 3 is a time chart of the circuit shown in Figure 1 in the state shown in Figure 2. Figure 4 is a time chart of the circuit shown in Figure 1 in the state of Figure 2. Figure 5 is a diagram showing the transition of the program when an interrupt cause occurs.
This is a time chart of the circuit shown in the figure. IH0~IH3: Interrupt cause memory element, MSK0~
MSK3: Interrupt non-acceptance storage element, 1 to 4: AND gate for priority setting, 9: Interrupt signal generation circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 優先順位の異なる複数の割込原因の各々に対
応して設けられ、割込原因からの割込信号によつ
てセツトされ、割込処理終了後リセツトされる割
込入力記憶回路と、各割込入力記憶回路に対応し
て設けられ、割込処理開始時にセツトされ割込処
理終了後にリセツトされるマスク記憶回路と、単
一の割込要求信号発生回路と、各割込入力記憶回
路に対応して設けられ、その割込入力記憶回路お
よび対応するマスク記憶回路が夫々セツトおよび
リセツト状態にあり、かつ優先順位が上位の割込
原因に対応する割込入力記憶回路のすべてがリセ
ツト状態にある期間出力を発生するゲート回路と
を具備し、前記割込要求信号発生回路は前記ゲー
ト回路からの出力に応答して該出力が発生された
時点から所定の期間割込要求信号を発生し、任意
の割込原因に対して割込要求信号が発生された
後、当該割込原因に対応するマスク記憶回路をセ
ツトすることによつて前記ゲート回路の出力を停
止せしめ、これによつて続けて発生される優先順
位の上位の割込の受付けを許可するとともに優先
順位の下位の割込の受付けを禁止することを特徴
とする割込処理制御装置。
1. An interrupt input storage circuit that is provided corresponding to each of a plurality of interrupt causes with different priorities, that is set by an interrupt signal from the interrupt cause, and that is reset after the completion of interrupt processing; A mask memory circuit is provided corresponding to the interrupt input memory circuit, and is set at the start of interrupt processing and reset after the interrupt processing is completed, a single interrupt request signal generation circuit, and a mask memory circuit corresponding to each interrupt input memory circuit. The interrupt input storage circuit and the corresponding mask storage circuit are in the set and reset states, respectively, and all of the interrupt input storage circuits corresponding to the higher priority interrupt cause are in the reset state. a gate circuit that generates an output for a period, and the interrupt request signal generation circuit generates an interrupt request signal for a predetermined period from the time when the output is generated in response to the output from the gate circuit, and After an interrupt request signal is generated for the interrupt cause, the output of the gate circuit is stopped by setting the mask memory circuit corresponding to the interrupt cause, and thereby the interrupt request signal is generated continuously. 1. An interrupt processing control device that allows acceptance of interrupts with a higher priority and prohibits acceptance of interrupts with a lower priority.
JP1009577A 1977-01-31 1977-01-31 Control unit for interruption process Granted JPS5394849A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1009577A JPS5394849A (en) 1977-01-31 1977-01-31 Control unit for interruption process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1009577A JPS5394849A (en) 1977-01-31 1977-01-31 Control unit for interruption process

Publications (2)

Publication Number Publication Date
JPS5394849A JPS5394849A (en) 1978-08-19
JPS6229819B2 true JPS6229819B2 (en) 1987-06-29

Family

ID=11740759

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1009577A Granted JPS5394849A (en) 1977-01-31 1977-01-31 Control unit for interruption process

Country Status (1)

Country Link
JP (1) JPS5394849A (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6121532A (en) * 1984-07-09 1986-01-30 Matsushita Electric Ind Co Ltd Scheduling method
JPS61224060A (en) * 1985-03-29 1986-10-04 Usac Electronics Ind Co Ltd Control system for input/output device
JPH03257629A (en) * 1990-03-08 1991-11-18 Matsushita Electric Ind Co Ltd Interruption restoring device
JP2580072B2 (en) * 1990-11-14 1997-02-12 松下電器産業株式会社 Interrupt processing device
JPH04362741A (en) * 1991-06-10 1992-12-15 Seikosha Co Ltd Interruption control method

Also Published As

Publication number Publication date
JPS5394849A (en) 1978-08-19

Similar Documents

Publication Publication Date Title
US4189766A (en) Racing circuit for controlling access of processor units to a common device
JP2661222B2 (en) Pulse output device
JPS6229819B2 (en)
US5070447A (en) Interrupt circuit and interrupt processing method for microcomputer
JP2579081B2 (en) Competitive arbitration with prohibition time
JPH05233276A (en) Method and device for submodel control in data processing system
JPS5998256A (en) Interruption controller
JPH08278943A (en) Shared bus control system
JPS6156812B2 (en)
JP2614931B2 (en) Interrupt control circuit
JPH07244595A (en) Process switch controller and process controlling method
JPH0443302B2 (en)
JP2615504B2 (en) Microcontroller
JPS62205441A (en) Microcomputer
JPH02247760A (en) Input signal arbitrator
JPS6217255B2 (en)
JPH01321525A (en) Hardware semaphore
JPS59216253A (en) Interruption processing system
JPH0352094B2 (en)
JPH04130544A (en) Microcomputer
JPH11288377A (en) Interruption controller
JPS6022248A (en) Interruption controller
JPS5930294B2 (en) Information transfer control device
JPH087686B2 (en) Interrupt controller device with priority setting function
JPH01154234A (en) Interruption controller