JPH1055282A - Interruption processing method and interruption processor - Google Patents

Interruption processing method and interruption processor

Info

Publication number
JPH1055282A
JPH1055282A JP21154096A JP21154096A JPH1055282A JP H1055282 A JPH1055282 A JP H1055282A JP 21154096 A JP21154096 A JP 21154096A JP 21154096 A JP21154096 A JP 21154096A JP H1055282 A JPH1055282 A JP H1055282A
Authority
JP
Japan
Prior art keywords
interrupt
processing
factor
interrupt factor
priority
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
JP21154096A
Other languages
Japanese (ja)
Inventor
Yoshihide Asakura
良英 朝倉
Takehiko Nagao
武彦 長尾
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP21154096A priority Critical patent/JPH1055282A/en
Publication of JPH1055282A publication Critical patent/JPH1055282A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To reduce processing delay by the frequent occurrence of interruption by counting the number per unit time of interruption factors generated during the execution of a processing, disconnecting the interruption factor from the processing and not performing a corresponding processing in the case of being larger than an allowable interruption factor. SOLUTION: The number of the interruption factors generated per unit time is counted for each interruption factor, and in the case that the number exceeds an allowable interruption number, the interruption factor is disconnected from the processing and a corresponding interruption processing is not performed even when the interruption factor at the time is inputted to a processor 2 thereafter. When a counted value becomes smaller than the stipulated allowable interruption number, the disconnected interruption factor is connected to the processing again. Thus, in the case that key input is frequently generated by the fault of the contact of a keyboard 11 for instance, the frequently generated interruption factor is temporarily disconnected and the processor 2 is prevented from being turned into a hung state without being able to operate the part of the interruption processing.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、計算機やソフト
ウェア等よりなり所定のプログラムに従って処理を行う
処理装置において処理の実行中に割り込みが発生した場
合の割り込み処理方法および割り込み処理方法を実施す
る割り込み処理装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an interrupt processing method when an interrupt occurs during the execution of a processing in a processing device comprising a computer, software, and the like and performing processing according to a predetermined program, and an interrupt processing for executing the interrupt processing method. It concerns the device.

【0002】[0002]

【従来の技術】図15および図16は従来の割り込み処
理方法の例を示す説明図であり、図において、1は後述
の処理装置2へ割り込み要因の入力を行う例えばキーボ
ード、マウス、センサ等の各入力装置であり、各入力装
置1毎に各種の割り込み要因が存在する。例えば入力装
置1がキーボードの場合には、処理装置2において特定
の処理を行っている状態におけるキーAの入力、キーB
の入力等の割り込み要因が存在し、入力装置1がマウス
の場合には、処理装置2において特定の処理を行ってい
る状態におけるマウスの左クリック、右クリック等の割
り込み要因が存在し、入力装置1がセンサの場合には、
センサからの計測値出力、警報出力等の割り込み要因が
存在する。なお、以降この各種の割り込み要因に対応し
て処理装置2へ入力される割り込み信号についても割り
込み要因と呼ぶこととする。
2. Description of the Related Art FIGS. 15 and 16 are explanatory diagrams showing an example of a conventional interrupt processing method. In the drawings, reference numeral 1 denotes a keyboard, a mouse, a sensor, etc. for inputting an interrupt factor to a processing unit 2 described later. Each input device has various interrupt factors for each input device 1. For example, when the input device 1 is a keyboard, the input of the key A and the key B while the processing device 2 is performing a specific process is performed.
When the input device 1 is a mouse, there is an interrupt factor such as a left click or a right click of the mouse in a state where the processing device 2 is performing a specific process. If 1 is a sensor,
There are interrupt factors such as a measured value output from a sensor and an alarm output. Hereinafter, an interrupt signal input to the processing device 2 corresponding to these various interrupt factors is also referred to as an interrupt factor.

【0003】2はCPU,ROM,RAM等より構成さ
れる計算機やソフトウェア等よりなり、所定のプログラ
ムに従って処理を行う処理装置であり、処理の実行中に
割り込み要因を受け付けて前記割り込み要因に対応する
割り込みの処理を行う。
Reference numeral 2 denotes a processing unit which comprises a computer including a CPU, a ROM, a RAM, and the like and performs processing in accordance with a predetermined program. The processing unit 2 receives an interrupt factor during execution of the process and responds to the interrupt factor. Performs interrupt processing.

【0004】3は論理和演算回路、4は割り込み要因が
ビット単位で割り付けられている割り込み要因ビット割
り付けレジスタである。
Reference numeral 3 denotes an OR operation circuit, and reference numeral 4 denotes an interrupt factor bit assignment register to which interrupt factors are assigned in bit units.

【0005】次に動作について説明する。図15は処理
装置2が同時に複数の割り込み要因を受け付けることが
可能な場合の割り込み処理方法を示しており、入力装置
1において発生した各々の割り込み要因は直接処理装置
2に伝達され、処理装置2は各割り込み要因に従った処
理を行う。
Next, the operation will be described. FIG. 15 shows an interrupt processing method when the processing device 2 can simultaneously receive a plurality of interrupt factors. Each interrupt factor generated in the input device 1 is directly transmitted to the processing device 2, and Performs processing according to each interrupt factor.

【0006】図16は処理装置2が同時に1つの割り込
み要因しか受け付けられない場合の割り込み処理方法を
示しており、図16において、複数の割り込み要因の論
理和が論理和演算回路3を経て割り込みとして処理装置
2に伝達され、割り込み要因ビット割り付けレジスタ4
の内容を処理装置2が読みとることにより処理装置2は
割り込み要因の種類を判別して割り込み要因に対応した
処理を行う。
FIG. 16 shows an interrupt processing method in the case where the processing device 2 can accept only one interrupt factor at the same time. In FIG. 16, a logical sum of a plurality of interrupt factors is output as an interrupt via the logical sum operation circuit 3. Transmitted to the processing unit 2 and the interrupt factor bit allocation register 4
Is read by the processing device 2, the processing device 2 determines the type of the interrupt factor and performs a process corresponding to the interrupt factor.

【0007】[0007]

【発明が解決しようとする課題】従来の割り込み処理方
法および割り込み処理装置は以上のように構成されてい
るので、割り込み要因が処理装置の処理速度を超える頻
度で発生した場合、処理装置は割り込みレベルの処理し
か行えず、その割り込み要因に対応した割り込み処理の
部分を動作させることができずに、処理装置が見かけ上
ハングしたような状態になってしまうなどの課題があっ
た。
Since the conventional interrupt processing method and the conventional interrupt processing apparatus are configured as described above, when an interrupt factor occurs at a frequency exceeding the processing speed of the processing apparatus, the processing apparatus sets the interrupt level. However, there is a problem that the processing device may appear to be hung, because the interrupt processing portion corresponding to the interrupt factor cannot be operated.

【0008】この発明は上記のような課題を解決するた
めになされたものであり、割り込み要因が処理装置の処
理速度を超える頻度で発生した場合でも処理装置が見か
け上ハングしたような状態にならずに確実に割り込み要
因に対応した処理を行うことを可能とし、割り込み多発
による処理遅れを低減することができる割り込み処理方
法および割り込み処理装置を得ることを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problem. Even when an interrupt factor occurs at a frequency exceeding the processing speed of the processing device, if the processing device appears to hang. It is an object of the present invention to provide an interrupt processing method and an interrupt processing apparatus which can surely perform a process corresponding to an interrupt factor without reducing a processing delay due to a large number of interrupts.

【0009】[0009]

【課題を解決するための手段】請求項1記載の発明に係
る割り込み処理方法は、所定の手順に従って処理を行う
処理装置に対して処理の実行中に発生する割り込み要因
の単位時間当たりの数を計数し、これを予め設定された
単位時間当たりの許容割り込み数と比較し、前者が大で
ある場合にはいずれかの割り込み要因を処理から切り離
して対応する処理を行わないようにしたものである。
According to a first aspect of the present invention, there is provided an interrupt processing method for determining the number of interrupt factors occurring during execution of a process per unit time for a processing device performing a process according to a predetermined procedure. Counting and comparing this with a preset allowable number of interrupts per unit time, and when the former is large, any interrupt cause is separated from the processing so that the corresponding processing is not performed. .

【0010】請求項2記載の発明に係る割り込み処理方
法は、割り込み要因の単位時間当たりの数を割り込み要
因毎に計数し、これを割り込み要因毎に予め設定された
単位時間当たりの許容割り込み数と比較し、前者が大で
ある場合にはその割り込み要因を処理から切り離すよう
にしたものである。
According to a second aspect of the present invention, in the interrupt processing method, the number of interrupt factors per unit time is counted for each interrupt factor, and the number of interrupt factors is set as a predetermined number of interrupts per unit time for each interrupt factor. In comparison, when the former is large, the interrupt factor is separated from the processing.

【0011】請求項3記載の発明に係る割り込み処理方
法は、計数された割り込み要因の単位時間当たりの数が
予め設定された単位時間当たりの許容割り込み数以下と
なった際に、切り離されている割り込み要因を処理に接
続するようにしたものである。
According to a third aspect of the present invention, when the number of interrupt factors counted per unit time becomes equal to or less than a preset allowable number of interrupts per unit time, the interrupt processing method is disconnected. The interrupt factor is connected to the processing.

【0012】請求項4記載の発明に係る割り込み処理方
法は、切り離された割り込み要因が存在する縮退運転状
態であるか、切り離された割り込み要因が存在しない通
常運転状態であるかを判定し、縮退運転時には、切り離
されていない割り込み要因に対応して、縮退運転時用に
設定された処理を行うようにしたものである。
According to the fourth aspect of the present invention, the interrupt processing method determines whether the operating state is a reduced operation state in which an isolated interrupt factor exists or a normal operating state in which an isolated interrupt factor does not exist. During operation, processing set for degenerate operation is performed in response to interrupt factors that have not been separated.

【0013】請求項5記載の発明に係る割り込み処理方
法は、切り離されていない割り込み要因に対応する処理
を、予め設定された割り込み要因の優先度に従って行う
ようにしたものである。
According to a fifth aspect of the invention, an interrupt processing method is provided in which a process corresponding to an interrupt factor that is not disconnected is performed according to a preset priority of the interrupt factor.

【0014】請求項6記載の発明に係る割り込み処理方
法は、切り離された割り込み要因が存在する縮退運転時
には、割り込み要因の優先度として、予め設定された縮
退運転時用の割り込み要因の優先度を用いるようにした
ものである。
According to a sixth aspect of the present invention, in the degenerate operation in which the separated interrupt factor is present, a predetermined priority of the interrupt factor for the degenerate operation is set as the priority of the interrupt factor. It is intended to be used.

【0015】請求項7記載の発明に係る割り込み処理方
法は、計数された割り込み要因の単位時間当たりの数が
許容割り込み数より大の場合、予め設定された割り込み
要因の優先度の低い割り込み要因を処理から切り離すよ
うにしたものである。
According to a seventh aspect of the present invention, in the case where the counted number of interrupt factors per unit time is larger than the allowable number of interrupts, an interrupt factor having a low priority of the preset interrupt factor is determined. This is to separate it from the processing.

【0016】請求項8記載の発明に係る割り込み処理方
法は、縮退運転時に切り離された割り込み要因を記憶手
段に待避させておき、縮退運転から通常運転に復帰した
際に前記待避させた割り込み要因を前記記憶手段から復
帰させて対応する処理を行うようにしたものである。
In the interrupt processing method according to the present invention, the interrupt factor disconnected during the degenerate operation is saved in the storage means, and the interrupt factor saved when returning from the degenerate operation to the normal operation is stored. The processing is restored by returning from the storage means.

【0017】請求項9記載の発明に係る割り込み処理方
法は、縮退運転時に切り離された割り込み要因のうち、
予め設定された割り込み要因の優先度の高い割り込み要
因のみを待避させるようにしたものである。
According to a ninth aspect of the present invention, there is provided an interrupt processing method, comprising:
Only a high-priority interrupt factor of a preset interrupt factor is saved.

【0018】請求項10記載の発明に係る割り込み処理
方法は、縮退運転から通常運転に復帰した際に、待避さ
せていた割り込み要因に対応する処理を、予め設定され
た割り込み要因の優先度の高い順に行うようにしたもの
である。
In the interrupt processing method according to the present invention, when returning from the degraded operation to the normal operation, the processing corresponding to the interrupted factor which has been saved is performed with a higher priority of the preset interrupt factor. They are performed in order.

【0019】請求項11記載の発明に係る割り込み処理
方法は、予め設定された割り込み要因の優先度を変更可
能としたものである。
According to an eleventh aspect of the present invention, the priority of a preset interrupt factor can be changed.

【0020】請求項12記載の発明に係る割り込み処理
方法は、特定の割り込み要因に対して、優先度の変更を
禁じるようにしたものである。
According to a twelfth aspect of the present invention, a change in the priority of a specific interrupt factor is prohibited.

【0021】請求項13記載の発明に係る割り込み処理
装置は、所定の手順に従って処理を行う処理装置に割り
込み要因の入力を行う入力装置と前記処理装置との間
に、単位時間を表す信号を発生させる単位時間信号発生
装置と、前記単位時間を表す信号が示す単位時間内に発
生する割り込み要因の数を計数する割り込み数計数装置
と、前記割り込み数計数装置の計数値が予め設定された
単位時間当たりの許容割り込み数を超える場合にその際
の割り込み要因を処理から切り離す割り込み選別装置と
を備えたものである。
According to a thirteenth aspect of the present invention, the interrupt processing apparatus generates a signal representing a unit time between an input device for inputting an interrupt factor to a processing device that performs processing according to a predetermined procedure and the processing device. A unit time signal generating device, an interrupt number counting device for counting the number of interrupt factors generated within a unit time indicated by the signal indicating the unit time, and a unit time for which a count value of the interrupt number counting device is set in advance. When the number of permissible interrupts is exceeded, an interrupt selection device for separating an interrupt factor at that time from processing is provided.

【0022】[0022]

【発明の実施の形態】以下、この発明の実施の一形態を
説明する。 実施の形態1.図1はこの発明の実施の形態1による割
り込み処理方法の説明用概略図であり、図において、1
は処理装置2へ割り込み要因の入力を行う例えばキーボ
ード、マウス、センサ等の各入力装置である。例えば入
力装置1がキーボードの場合には、処理装置2において
特定の処理を行っている状態におけるキーAの入力、キ
ーBの入力等、入力装置1がマウスの場合には、処理装
置2において特定の処理を行っている状態におけるマウ
スの左クリック、右クリック等、入力装置1がセンサの
場合には、センサからの計測値出力、警報出力等の、各
入力装置1毎に対応した各種の割り込み要因が存在す
る。なお、以降この各種の割り込み要因に対応して処理
装置2に対して出力される割り込み信号についても割り
込み要因と呼ぶ。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below. Embodiment 1 FIG. FIG. 1 is a schematic diagram for explaining an interrupt processing method according to Embodiment 1 of the present invention.
Are input devices such as a keyboard, a mouse, and a sensor for inputting an interrupt factor to the processing device 2. For example, when the input device 1 is a keyboard, the input of the key A and the input of the key B in a state where a specific process is being performed in the processing device 2. When the input device 1 is a sensor, such as a left-click or right-click of the mouse in the state where the processing is performed, various interrupts corresponding to each input device 1 such as a measured value output from the sensor, an alarm output, etc. There are factors. Hereinafter, an interrupt signal output to the processing device 2 in response to these various interrupt factors is also referred to as an interrupt factor.

【0023】2はCPU,ROM,RAM等より構成さ
れる計算機やソフトウェア等よりなり、所定のプログラ
ムに従って処理を行う処理装置であり、処理の実行中に
割り込み要因を入力した際に、所定の場合にはこの割り
込み要因を処理に接続して割り込み要因に対応する処理
を行い、また、他の所定の場合にはこの割り込み要因を
処理から切り離して割り込み要因に対応する処理を行わ
ない。
Reference numeral 2 denotes a processing unit which comprises a computer including a CPU, a ROM, a RAM, and the like, performs processing according to a predetermined program, and performs a predetermined processing when an interrupt factor is input during execution of the processing. In this case, the interrupt factor is connected to the process, and the process corresponding to the interrupt factor is performed. In other predetermined cases, the interrupt factor is separated from the process, and the process corresponding to the interrupt factor is not performed.

【0024】図2はこの発明の実施の形態1による割り
込み処理方法を行う処理装置2と入力装置1の構成図で
あり、処理装置2内については割り込み処理に関連した
部分を抜粋して示している。図において、11は入力装
置としてのキーボード、12は入力装置としてのマウ
ス、13は入力装置としてのセンサ、14は処理装置2
に設けられキーボード11とのインターフェースを行う
キーボードインターフェース、15は処理装置2に設け
られマウス12とのインターフェースを行うマウスイン
ターフェース、16は処理装置2に設けられセンサ13
とのインターフェースを行うI/Oボード、17は処理
装置2においてシステムプログラムとして用いられるO
S(オペレーティングシステム)、18は処理装置2に
おいて所定の処理を行う際に実行されるアプリケーショ
ンプログラムである。
FIG. 2 is a block diagram of the processing device 2 and the input device 1 for performing the interrupt processing method according to the first embodiment of the present invention. In the processing device 2, portions related to interrupt processing are extracted and shown. I have. In the figure, 11 is a keyboard as an input device, 12 is a mouse as an input device, 13 is a sensor as an input device, and 14 is a processing device 2
A keyboard interface 15 is provided in the processing device 2 to interface with the mouse 12, and a mouse interface 16 is provided in the processing device 2 and interfaces with the mouse 12.
An I / O board 17 for interfacing with the I / O board;
S (Operating System) and 18 are application programs executed when the processing device 2 performs a predetermined process.

【0025】この実施の形態1においては、OS17も
しくはアプリケーションプログラム18においてソフト
ウェア的に行う割り込み処理方法について説明する。
In the first embodiment, an interrupt processing method performed by software in the OS 17 or the application program 18 will be described.

【0026】次に動作について説明する。図3はこの発
明の実施の形態1による割り込み処理方法の処理の流れ
を示すフローチャートである。以下の処理はOS17も
しくはアプリケーションプログラム18においてソフト
ウェア的に行うことができる。まず、ステップST1に
おいて、処理装置2は入力装置1において発生した割り
込み要因の入力を受け付ける。ステップST2において
は各割り込み要因の単位時間当たりの入力数を計数し、
その計数値を割り込み要因毎に予め設定された規定の許
容割り込み数と比較し(ステップST3)、計数値が規
定の許容割り込み数を超えていれば、その割り込み要因
を処理から切り離して(ステップST4)、ステップS
T1に処理を戻す。これにより、その割り込み要因に対
応した処理は行われなくなる。なお、割り込み要因の種
類を取得する方法としては、割り込み要因が格納されて
いる番地を参照して取得する方法や、プログラム言語に
よっては変数として取得するなどの方法を用いることが
できる。
Next, the operation will be described. FIG. 3 is a flowchart showing a flow of processing of the interrupt processing method according to the first embodiment of the present invention. The following processing can be performed by the OS 17 or the application program 18 as software. First, in step ST1, the processing device 2 receives an input of an interrupt factor generated in the input device 1. In step ST2, the number of inputs of each interrupt factor per unit time is counted,
The count value is compared with a prescribed allowable interrupt number preset for each interrupt factor (step ST3). If the count value exceeds the prescribed allowable interrupt number, the interrupt factor is separated from the processing (step ST4). ), Step S
The process returns to T1. As a result, processing corresponding to the interrupt factor is not performed. As a method of acquiring the type of the interrupt factor, a method of referring to an address where the interrupt factor is stored, or a method of acquiring as a variable depending on a programming language can be used.

【0027】一方、ステップST3において計数値が規
定の許容割り込み数以下であれば、ステップST5にお
いてその割り込み要因が切り離されているかを判定し、
切り離されている場合にはその割り込み要因を処理に接
続して(ステップST6)ステップST1に処理を戻
す。これにより、処理装置2のアプリケーションプログ
ラム18においてこの割り込み要因に対応した通常の割
り込み処理が行われるようになる。一方、ステップST
5においてその割り込み要因が切り離されていない場合
には、この割り込み要因を処理に接続したままステップ
ST1に処理を戻す。なお、上記の処理は、各割り込み
要因毎に行われる。
On the other hand, if the counted value is equal to or smaller than the specified allowable interrupt number in step ST3, it is determined in step ST5 whether the interrupt factor is separated.
If it has been disconnected, the interrupt factor is connected to the processing (step ST6), and the processing returns to step ST1. As a result, the application program 18 of the processing device 2 performs normal interrupt processing corresponding to the interrupt factor. On the other hand, step ST
If the interrupt factor is not separated in step 5, the process returns to step ST1 while the interrupt factor remains connected to the process. The above processing is performed for each interrupt factor.

【0028】以上のように、この実施の形態1によれ
ば、単位時間当たりに発生する割り込み要因の数を割り
込み要因毎に計数し、これが許容割り込み数を超えてい
る場合にその割り込み要因を処理から切り離して以降そ
の際の割り込み要因が処理装置2に入力されても対応す
る割り込み処理が行われないようにし、計数値が規定の
許容割り込み数以下になったときに、切り離された割り
込み要因を再び処理に接続するようにしたため、例えば
キーボード11の接点の故障によりキー入力が多発した
場合など、その多発した割り込み要因を一時切り離すこ
とができ、割り込み要因の多発により処理装置2が割り
込み要因に対応した割り込み処理の部分を動作させるこ
とができず見かけ上ハングしたような状態になるような
事態を防止して確実に割り込み要因に対応した処理を行
うことを可能とし、割り込み多発による処理遅れを低減
することができる。
As described above, according to the first embodiment, the number of interrupt factors generated per unit time is counted for each interrupt factor, and if this exceeds the allowable number of interrupts, the interrupt factor is processed. After that, even if the interrupt factor at that time is input to the processing device 2, the corresponding interrupt processing is not performed, and when the count value becomes equal to or less than a specified allowable interrupt number, the disconnected interrupt factor is determined. Since the connection to the processing is made again, for example, when a key input occurs frequently due to a failure of the contact point of the keyboard 11, the frequently occurring interrupt factor can be temporarily separated, and the processing device 2 responds to the interrupt factor due to the frequent occurrence of the interrupt factor. To prevent a situation in which the interrupt processing part that was It possible to perform the processing corresponding to the interrupt factor, it is possible to reduce the processing delay due to the interrupt frequently.

【0029】また、発生頻度が規定の許容割り込み数を
超える割り込み要因のみを処理から切り離し、他の割り
込み要因を切り離さないようにしており、特定の割り込
み要因が多発したような場合に、他の割り込み要因に対
する処理漏れを生じないようにしながら上記効果を得る
ことができる。
Further, only interrupt factors whose frequency of occurrence exceeds a prescribed allowable number of interrupts are separated from processing, and other interrupt factors are not separated. When a specific interrupt factor occurs frequently, another interrupt factor is set. The above-described effect can be obtained while preventing processing omissions due to factors.

【0030】なお、上記処理においては、割り込み要因
を処理から切り離す際の判定基準となる許容割り込み数
と、割り込み要因を処理に接続する際の判定基準となる
許容割り込み数とを同一としたが、処理に接続する際の
判定基準となる許容割り込み数を処理から切り離す際の
判定基準となる許容割り込み数より小さく設定した処理
も可能であることはいうまでもない。
In the above process, the allowable interrupt number as a criterion when disconnecting an interrupt factor from a process is the same as the allowable interrupt number as a criterion when connecting an interrupt factor to a process. It goes without saying that a process in which the number of allowable interrupts serving as a criterion for connection to processing is set smaller than the number of allowable interrupts serving as a criterion for disconnection from the process is also possible.

【0031】実施の形態2.なお、上記実施の形態1の
処理のステップST2において行った単位時間当たりの
割り込み要因の計数を、割り込み要因毎にではなく、処
理装置2に入力される全割り込み要因の合計に対して行
い、割り込み要因の合計発生頻度が規定の許容割り込み
数を超える場合に、入力される割り込み要因のいずれか
を処理から切り離すようにすることも可能である。
Embodiment 2 Note that the counting of the interrupt factors per unit time performed in step ST2 of the process of the first embodiment is performed not for each interrupt factor but for the total of all interrupt factors input to the processing device 2, and When the total occurrence frequency of the factors exceeds a prescribed allowable number of interrupts, any of the input interrupt factors can be separated from the processing.

【0032】次に動作について説明する。図4はこの発
明の実施の形態2による割り込み処理方法の処理の流れ
を示すフローチャートである。以下の処理はOS17も
しくはアプリケーションプログラム18においてソフト
ウェア的に行うことができる。まず、ステップST11
において、処理装置2は入力装置1において発生した割
り込み要因の入力を受け付ける。そしてステップST1
2において、処理装置2に入力される割り込み要因の単
位時間当たりの合計数を計数し、その計数値を規定の許
容割り込み数と比較し(ステップST13)、計数値が
規定の許容割り込み数を超えていれば、その際の割り込
み要因を処理から切り離して(ステップST14)、ス
テップST11に処理を戻す。これにより、切り離した
割り込み要因に対応した割り込み処理が行われなくな
る。
Next, the operation will be described. FIG. 4 is a flowchart showing a processing flow of an interrupt processing method according to the second embodiment of the present invention. The following processing can be performed by the OS 17 or the application program 18 as software. First, step ST11
, The processing device 2 receives an input of an interrupt factor generated in the input device 1. And step ST1
In step 2, the total number of interrupt factors input to the processing device 2 per unit time is counted, and the counted value is compared with a specified allowable interrupt number (step ST13), and the counted value exceeds the specified allowable interrupt number. If so, the interrupt factor at that time is separated from the process (step ST14), and the process returns to step ST11. As a result, interrupt processing corresponding to the separated interrupt factor is not performed.

【0033】一方、ステップST13において計数値が
規定の許容割り込み数以下であれば、ステップST15
においてその時点で切り離されている割り込み要因が有
るかを判定し、切り離されている割り込み要因がある場
合には、切り離されている割り込み要因を処理に接続し
て(ステップST16)、ステップST11に処理を戻
す。一方、ステップST15において切り離されている
割り込み要因がない場合には、そのままステップST1
1に処理を戻す。
On the other hand, if it is determined in step ST13 that the count value is equal to or smaller than the prescribed allowable number of interrupts, step ST15
It is determined whether there is an interrupt factor that has been disconnected at that time. If there is an interrupt factor that has been disconnected, the disconnected interrupt factor is connected to the process (step ST16), and the process proceeds to step ST11. Back. On the other hand, if there is no interrupt factor that has been separated in step ST15, the process proceeds directly to step ST1.
Return the processing to 1.

【0034】以上のように、この実施の形態2によれ
ば、単位時間当たりに発生する割り込み要因の合計数を
計数し、この計数値が許容割り込み数を超えている場合
にその際の割り込み要因を処理から切り離してその割り
込み要因が処理装置2に入力されても対応する割り込み
処理が行われないようにし、計数値が規定の許容割り込
み数以下になったときに、切り離された割り込み要因を
再び処理に接続するようにしたため、処理装置2の処理
の許容度に応じて設定された許容割り込み数を超える頻
度の割り込み要因の入力を抑制することができ、処理装
置2における見かけ上ハング状態の防止、処理遅れの低
減等を行うことができる。
As described above, according to the second embodiment, the total number of interrupt factors generated per unit time is counted, and if the counted value exceeds the allowable number of interrupts, the interrupt factor at that time is counted. Is separated from the processing so that the corresponding interrupt processing is not performed even if the interrupt factor is input to the processing device 2, and when the count value becomes equal to or less than the specified allowable interrupt number, the separated interrupt factor is re-determined. Since the connection is made to the processing, it is possible to suppress the input of an interrupt factor having a frequency exceeding the allowable number of interrupts set according to the processing allowance of the processing device 2, and to prevent an apparent hang state in the processing device 2. In addition, the processing delay can be reduced.

【0035】実施の形態3.図5はこの発明の実施の形
態3による割り込み処理装置の構成を示すブロック図で
あり、図において、21は単位時間を表す信号を発生さ
せる単位時間信号発生装置、22は単位時間内の割り込
み要因の発生を計数する割り込み数計数装置、23は割
り込み数計数装置22の計数値が許容割り込み数を超え
る場合、その際の割り込み要因を処理から切り離す割り
込み選別装置である。なお、図1に示した部分と同一ま
たは相当の部分については同一符号を付して重複説明を
省略する。
Embodiment 3 FIG. FIG. 5 is a block diagram showing a configuration of an interrupt processing apparatus according to Embodiment 3 of the present invention. In FIG. 5, reference numeral 21 denotes a unit time signal generation apparatus for generating a signal representing a unit time, and 22 denotes an interrupt factor within the unit time. The interrupt number counting device 23 counts the number of occurrences of interrupts. When the count value of the interrupt number counting device 22 exceeds the allowable interrupt number, the interrupt selection device 23 separates the interrupt factor at that time from the processing. Note that the same or corresponding portions as those shown in FIG. 1 are denoted by the same reference numerals, and redundant description will be omitted.

【0036】前記実施の形態1および2では、処理装置
2中のOS17もしくはアプリケーションプログラム1
8におけるソフトウェアによる対策について示したが、
この実施の形態3においては、処理装置2中のハードウ
ェアによる対策について示す。図5に示した単位時間信
号発生装置21、割り込み数計数装置22、割り込み選
別装置23は、例えば、図2に示したキーボードインタ
ーフェース14、マウスインターフェース15、I/O
ボード16とOS17との間に設けることができる。
In the first and second embodiments, the OS 17 or the application program 1
The countermeasures by software in 8 are shown
In the third embodiment, measures taken by hardware in the processing device 2 will be described. The unit time signal generating device 21, the interrupt number counting device 22, and the interrupt selecting device 23 illustrated in FIG. 5 are, for example, the keyboard interface 14, the mouse interface 15, the I / O illustrated in FIG.
It can be provided between the board 16 and the OS 17.

【0037】図6はこの発明の実施の形態3による割り
込み処理装置の単位時間信号発生装置21、割り込み数
計数装置22、割り込み選別装置23の実際のハードウ
ェア構成例を示すブロック図であり、図において、24
は所定周期でパルス信号を出力するパルス発振器(単位
時間信号発生装置)、25は前記所定周期内に発生する
割り込み要因の数を計数する所定のビット数のカウンタ
(割り込み数計数装置)、26は規定の許容割り込み数
を所定のビット数で保持する許容値レジスタ(割り込み
選別装置)、27は許容値レジスタが保持する許容割り
込み数とカウンタ25のカウント値を比較してカウンタ
25のカウント値が許容割り込み数以下であれば1を出
力し、カウンタ25のカウント値が許容割り込み数を超
えていれば0を出力するマグニチュードコンパレータ等
のコンパレータ(割り込み選別装置)、28はコンパレ
ータ27の出力が1の場合のみ入力装置1から入力され
る割り込み要因を通過させるANDゲート(割り込み選
別装置)である。
FIG. 6 is a block diagram showing an example of the actual hardware configuration of the unit time signal generating device 21, interrupt number counting device 22, and interrupt selecting device 23 of the interrupt processing device according to the third embodiment of the present invention. At 24
Is a pulse oscillator (a unit time signal generation device) that outputs a pulse signal at a predetermined cycle, 25 is a counter of a predetermined number of bits (interrupt number counting device) that counts the number of interrupt factors generated within the predetermined period, and 26 is A permissible value register (interrupt selection device) 27 that holds a prescribed permissible number of interrupts in a predetermined number of bits, 27 compares the permissible number of interrupts held in the permissible value register with the count value of the counter 25 and allows the count value of the counter 25 to be allowed. A comparator (interrupt selection device) such as a magnitude comparator that outputs 1 if the number of interrupts is equal to or less than the number of interrupts and outputs 0 if the count value of the counter 25 exceeds the allowable number of interrupts, and 28 indicates a case where the output of the comparator 27 is 1 Only an AND gate (interrupt selection device) that allows an interrupt factor input from the input device 1 to pass through.

【0038】次に動作について説明する。入力装置1に
おいて発生した割り込み要因はANDゲート28に入力
され、また、割り込み要因の発生毎にカウンタ25がイ
ンクリメントされる。このカウンタ25は所定周期でパ
ルス信号を出力するパルス発振器24により所定周期毎
にクリアされる間に、発生した割り込み要因の数を計数
する。許容値レジスタ26は規定の許容割り込み数を保
持しており、コンパレータ27においてこの許容割り込
み数とカウンタ25の計数値が比較される。この比較に
おいてカウンタ25の計数値が許容割り込み数以下であ
る間はコンパレータ27はANDゲート28に1を出力
し、これにより、ANDゲート28に入力された割り込
み要因が出力され、アプリケーションプログラム18に
おいてこの割り込み要因に対応した割り込み処理が行わ
れる。
Next, the operation will be described. The interrupt factor generated in the input device 1 is input to the AND gate 28, and the counter 25 is incremented every time the interrupt factor is generated. The counter 25 counts the number of interrupt factors that have occurred while being cleared at predetermined intervals by the pulse oscillator 24 that outputs pulse signals at predetermined intervals. The permissible value register 26 holds a prescribed permissible interrupt number, and the comparator 27 compares the permissible interrupt number with the count value of the counter 25. In this comparison, while the count value of the counter 25 is equal to or less than the allowable interrupt number, the comparator 27 outputs 1 to the AND gate 28, whereby the interrupt factor input to the AND gate 28 is output. Interrupt processing corresponding to the interrupt factor is performed.

【0039】また、前記比較においてカウンタ25の計
数値が許容割り込み数を超えている間はコンパレータ2
7は0を出力し、これにより、ANDゲート28に入力
された割り込み要因は出力されず、アプリケーションプ
ログラム18においてこの割り込み要因に対応した割り
込み処理は行われない。
In the comparison, while the count value of the counter 25 exceeds the allowable interrupt number, the comparator 2
7 outputs 0, whereby the interrupt factor input to the AND gate 28 is not output, and the application program 18 does not perform interrupt processing corresponding to this interrupt factor.

【0040】なお、上記のハードウェアによる割り込み
要因の処理への接続および切り離しにおいて、割り込み
数計数装置22と割り込み選別装置23とを図2におけ
るキーボードインターフェース14、マウスインターフ
ェース15、I/Oボード16に各々対応して設け、各
入力装置毎に割り込み要因の処理への接続および切り離
しを行うようにしてもよく、また、単位時間信号発生装
置21、割り込み数計数装置22、および割り込み選別
装置23を図2におけるOS17の直前に1組設けて全
入力装置分をまとめて割り込み要因の処理への接続およ
び切り離しを行うようにしてもよい。
In connection and disconnection of the interrupt factor processing by the hardware, the interrupt number counting device 22 and the interrupt selection device 23 are connected to the keyboard interface 14, the mouse interface 15, and the I / O board 16 in FIG. Each of the input devices may be provided so as to be connected to and disconnected from the processing of the interrupt factor. The unit time signal generating device 21, the interrupt number counting device 22, and the interrupt selecting device 23 are illustrated in FIG. A set may be provided immediately before the OS 17 in 2 to collectively connect and disconnect the interrupt factor processing for all input devices.

【0041】以上のように、この実施の形態3によれ
ば、単位時間内に発生する割り込み要因の数の計数、許
容割り込み数との比較、割り込み要因の処理への接続・
切り離しを、前記実施の形態1および実施の形態2にお
けるようにソフトウェアにより行わず、ハードウェアに
より行うようにしたため、処理装置2における処理に負
荷をかけることなく、割り込み要因の多発時に処理装置
2が見かけ上ハングしたような状態になることを防止し
て割り込み要因に対応した処理の実行を可能とし、割り
込み多発による処理遅れを低減することができる。
As described above, according to the third embodiment, the number of interrupt factors occurring within a unit time is counted, the number of interrupt factors is compared with the number of allowable interrupts, and connection to processing of interrupt factors is performed.
Since the disconnection is not performed by software as in the first and second embodiments, but performed by hardware, the processing device 2 does not impose a load on the processing in the processing device 2 and the processing device 2 can be used when interrupt factors frequently occur. It is possible to execute a process corresponding to an interrupt factor by preventing an apparently hung state, thereby reducing a process delay due to a large number of interrupts.

【0042】実施の形態4.前記実施の形態1において
は、各割り込み要因に対応して行う割り込み時の処理
を、切り離された割り込み要因が存在せず通常に割り込
み処理が行われている通常運転時であるか切り離された
割り込み要因が存在する縮退運転時であるかにかかわら
ず同様に行っていたが、この実施の形態4においては、
通常運転時であるか縮退運転時であるかにより、割り込
み要因に対応して行う処理を変える。
Embodiment 4 In the first embodiment, the processing at the time of the interrupt performed in response to each interrupt factor is performed during the normal operation in which no interrupt factor is present and interrupt processing is normally performed, or the interrupted interrupt is performed. Although the same operation was performed irrespective of the time of the degenerate operation in which the factor exists, in the fourth embodiment,
The processing performed in response to the interrupt factor is changed depending on whether the operation is the normal operation or the degenerate operation.

【0043】次に動作について説明する。図7はこの発
明の実施の形態4による割り込み処理方法の処理の流れ
を示すフローチャートである。まず、ステップST21
において、処理装置2は入力装置1において発生した割
り込み要因の入力を受け付ける。ステップST22にお
いて割り込み要因の単位時間当たりの数を割り込み要因
毎に計数し、ステップST23において各割り込み要因
毎に規定の許容割り込み数と比較し、計数値が規定の許
容割り込み数を超えていれば、その割り込み要因を処理
から切り離して(ステップST24)、ステップST2
7に処理を移行する。一方、ステップST23において
計数値が規定の許容割り込み数以下であれば、ステップ
ST25においてその割り込み要因が切り離されている
かを判定し、切り離されている場合にはその割り込み要
因を処理に接続し(ステップST26)、切り離されて
いない場合はそのままとし、ステップST27に処理を
移行する。
Next, the operation will be described. FIG. 7 is a flowchart showing a flow of processing of an interrupt processing method according to Embodiment 4 of the present invention. First, step ST21
, The processing device 2 receives an input of an interrupt factor generated in the input device 1. In step ST22, the number of interrupt factors per unit time is counted for each interrupt factor. In step ST23, the number of interrupt factors is compared with the specified allowable interrupt number for each interrupt factor. If the counted value exceeds the specified allowable interrupt number, The interrupt factor is separated from the processing (step ST24), and step ST2 is performed.
Then, the process proceeds to 7. On the other hand, if the counted value is equal to or smaller than the specified allowable interrupt number in step ST23, it is determined in step ST25 whether the interrupt factor is disconnected. If the interrupt factor is disconnected, the interrupt factor is connected to the process (step ST25). ST26) If not separated, the process is left as it is, and the process proceeds to step ST27.

【0044】ステップST27において、全割り込み要
因に対して上記のチェックが完了したかを判定し、まだ
完了していない場合はステップST23に処理を戻し、
完了していれば、次のステップST28において、現在
の運転状態が切り離された割り込み要因の存在する縮退
運転状態であるかを判定する。この縮退運転であるかの
判断は、例えば、ステップST24における割り込み要
因の切り離しとステップST26における割り込み要因
の接続による割り込み要因の接続状態を、処理装置2の
RAM等の記憶手段において記憶させておき、この記憶
手段を参照することにより行うことができる。
In step ST27, it is determined whether or not the above check has been completed for all interrupt factors. If not, the process returns to step ST23.
If completed, in the next step ST28, it is determined whether or not the current operation state is the degenerate operation state in which the separated interrupt factor exists. The determination as to whether or not the operation is the degenerate operation is performed by, for example, storing the connection state of the interrupt factor due to the disconnection of the interrupt factor in step ST24 and the connection of the interrupt factor in step ST26 in a storage unit such as a RAM of the processing device 2, This can be performed by referring to this storage means.

【0045】ステップST28の判定において縮退運転
状態であれば、ステップST29において、切り離され
ていない割り込み要因をアプリケーションプログラム1
8において縮退運転時用に設定された割り込み処理に接
続し、縮退運転時の設定に従った割り込み処理が行われ
るようにする。一方、ステップST28の判定において
縮退運転状態でなければ、切り離されていない割り込み
要因に対して、アプリケーションプログラム18におい
て通常の割り込み処理が行われる。
If it is determined in step ST28 that the operating state is the degenerate operation state, in step ST29, the interrupt factor which has not been disconnected is determined by the application program 1
In step 8, the process is connected to the interrupt process set for the degenerate operation so that the interrupt process according to the setting for the degenerate operation is performed. On the other hand, if it is not in the degenerate operation state in the determination in step ST28, the application program 18 performs a normal interrupt process for the interrupt factor that has not been disconnected.

【0046】以上のように、この実施の形態4によれ
ば、割り込み要因の多発により処理から切り離された割
り込み要因が存在する縮退運転時と、正常に割り込み要
因に対する処理が行われている通常運転時とで、異なる
割り込み処理を行わせることができ、処理装置2におけ
る割り込み処理に処理状況に応じた柔軟性を持たせるこ
とが可能となる。
As described above, according to the fourth embodiment, the degenerate operation in which the interrupt factor is disconnected from the process due to the frequent occurrence of the interrupt factor, and the normal operation in which the process for the interrupt factor is normally performed Different interrupt processing can be performed at different times, and the interrupt processing in the processing device 2 can be given flexibility depending on the processing status.

【0047】実施の形態5.前記実施の形態1において
は、切り離されていない割り込み要因に対する処理を割
り込み要因の発生順にすべて行っていたが、この実施の
形態5においては、切り離されていない割り込み要因に
対応した処理を、予め設定された割り込み要因の優先度
に従って行う。
Embodiment 5 In the first embodiment, the processes for the interrupt factors that have not been separated are all performed in the order in which the interrupt factors are generated. However, in the fifth embodiment, the processes corresponding to the interrupt factors that are not separated are set in advance. The interrupt is performed according to the priority of the interrupt factor.

【0048】次に動作について説明する。図8はこの発
明の実施の形態5による割り込み処理装置の処理の流れ
を示すフローチャートである。図において、ステップS
T21からステップST27における割り込み要因数と
許容割り込み数との比較による割り込み要因の切り離し
および接続の処理は、図7を用いて説明した実施の形態
4における処理と同様であり重複説明を省略する。以
降、ステップST27において全割り込み要因に対する
上記のチェックがまだ完了していない場合はステップS
T23に処理を戻し、完了していれば、次のステップS
T30において、切り離されていない割り込み要因に対
応した処理を予め設定された割り込み要因の優先度に従
って行う。ここで、処理を割り込み要因の優先度に従っ
て行うとは、例えば優先度の低い割り込み要因に対応し
た処理の実行中に優先度の高い割り込み要因が発生した
場合にはその時点で優先度の高い割り込み要因に対応す
る処理を割り込ませて実行し、優先度の高い割り込み要
因に対応した処理の実行中に優先度の低い割り込み要因
が発生した場合には優先度の低い割り込み要因に対応す
る処理を割り込ませずに優先度の高い割り込み要因に対
応した処理を継続することをいう。
Next, the operation will be described. FIG. 8 is a flowchart showing a flow of processing of the interrupt processing device according to the fifth embodiment of the present invention. In the figure, step S
The process of disconnecting and connecting the interrupt factor by comparing the number of interrupt factors and the number of allowable interrupts from T21 to step ST27 is the same as the process in the fourth embodiment described with reference to FIG. Thereafter, if it is determined in step ST27 that the above checks for all the interrupt factors have not been completed, step S27
The process returns to T23, and if completed, the next step S
At T30, a process corresponding to the interrupt factor that has not been disconnected is performed according to a preset priority of the interrupt factor. Here, the processing is performed according to the priority of the interrupt factor. For example, when a high-priority interrupt factor occurs during the execution of the process corresponding to the low-priority interrupt factor, the high-priority interrupt is performed at that time. Executes the process corresponding to the cause and interrupts the process corresponding to the low-priority interrupt factor if a low-priority interrupt occurs during the process corresponding to the high-priority interrupt factor This means that the process corresponding to the interrupt factor with a high priority is continued without performing the process.

【0049】この割り込み要因の優先度に従った処理の
実行は、例えば、処理装置2のROM等の記憶手段に予
め割り込み要因の優先度を格納しておき、この記憶手段
を参照することにより行うことができる。
The execution of the process according to the priority of the interrupt factor is performed by, for example, storing the priority of the interrupt factor in a storage unit such as a ROM of the processing device 2 in advance, and referring to the storage unit. be able to.

【0050】以上のように、この実施の形態5によれ
ば、優先度の低い割り込み処理の実行により優先度の高
い割り込み処理の実行に支障が生じることを防止し、切
り離されていない優先度の高い割り込み処理が確実に行
われるようにすることができる。
As described above, according to the fifth embodiment, the execution of the low-priority interrupt processing does not interfere with the execution of the high-priority interrupt processing. High interrupt processing can be ensured.

【0051】実施の形態6.前記実施の形態1では、前
記計数値が前記許容割り込み数より大となった割り込み
要因を切り離していたが、この実施の形態6において
は、予め設定された優先度の低い割り込み要因を切り離
す。
Embodiment 6 FIG. In the first embodiment, the interrupt factor whose count value is larger than the permissible interrupt count is separated, but in the sixth embodiment, a preset low-priority interrupt factor is separated.

【0052】次に動作について説明する。図9はこの発
明の実施の形態6による割り込み処理装置の処理の流れ
を示すフローチャートである。図において、ステップS
T1〜3およびステップST5,6の処理は、図3を用
いて説明した実施の形態1における処理と同様であり重
複説明を省略する。
Next, the operation will be described. FIG. 9 is a flowchart showing a flow of processing of the interrupt processing device according to the sixth embodiment of the present invention. In the figure, step S
The processes of T1 to T3 and steps ST5 and ST6 are the same as those of the first embodiment described with reference to FIG.

【0053】ステップST3において単位時間当たりの
割り込み要因の計数値が規定の許容割り込み数を超えて
いる場合、ステップST34においてその割り込み要因
の予め設定されている優先度が低優先度であるかを判定
する。この割り込み要因の優先度は、例えば、処理装置
2のROM等の記憶手段に予め格納されており、この記
憶手段を参照して得られた優先度が所定優先度以下であ
る場合に低優先度とされる。
When the count value of the interrupt factor per unit time exceeds the specified allowable interrupt number in step ST3, it is determined in step ST34 whether the preset priority of the interrupt factor is low. I do. The priority of the interrupt factor is stored in advance in, for example, a storage unit such as a ROM of the processing device 2. If the priority obtained by referring to the storage unit is equal to or lower than a predetermined priority, the lower priority is set. It is said.

【0054】ステップST34の判定においてその割り
込み要因が低優先度であった場合、ステップST35に
おいてその割り込み要因を処理から切り離してステップ
ST1に処理を戻す。一方、ステップST34の判定に
おいてその割り込み要因が低優先度でなかった場合、切
り離しを行わずにステップST1に処理を戻す。なお、
上記の処理は、各割り込み要因毎に行われる。
If it is determined in step ST34 that the interrupt factor is of low priority, the interrupt factor is separated from the process in step ST35, and the process returns to step ST1. On the other hand, if the interrupt factor is not low priority in the determination in step ST34, the process returns to step ST1 without disconnecting. In addition,
The above processing is performed for each interrupt factor.

【0055】以上のように、この実施の形態6によれ
ば、単位時間当たりの発生頻度が許容割り込み数を超え
ても優先度の高い割り込み要因は処理から切り離さない
ようにして、優先度の高い割り込み処理の処理漏れを防
止しつつ、割り込み要因の多発による処理装置2におけ
る処理遅れを低減することができる。
As described above, according to the sixth embodiment, even if the frequency of occurrence per unit time exceeds the permissible number of interrupts, interrupt factors having a high priority are not separated from the processing, so that a high priority interrupt factor is not separated. The processing delay in the processing device 2 due to the frequent occurrence of the interrupt factor can be reduced while preventing the omission of the interrupt processing.

【0056】実施の形態7.前記実施の形態5では、切
り離されていない割り込み要因に対応した処理を予め設
定された一つの優先度に従って行う場合を示したが、こ
の実施の形態7においては、通常運転時の割り込み要因
の優先度と縮退運転時の割り込み要因の優先度を設定し
ておき、通常運転時と縮退運転時とで別の優先度に従っ
て、切り離されていない割り込み要因に対応した処理を
行う。
Embodiment 7 FIG. In the fifth embodiment, the case where the processing corresponding to the interrupt factor which is not separated is performed according to one preset priority is described. However, in the seventh embodiment, the priority of the interrupt factor during the normal operation is determined. The priority of the interrupt factor during the degenerate operation is set in advance, and the processing corresponding to the interrupt factor that has not been separated is performed according to different priorities during the normal operation and during the degenerate operation.

【0057】次に動作について説明する。図10はこの
発明の実施の形態7による割り込み処理装置の処理の流
れを示すフローチャートである。図において、ステップ
ST21からステップST27までの処理は、図8を用
いて説明した実施の形態5における処理と同様であり重
複説明を省略する。以降、ステップST27において全
割り込み要因に対して上記のチェックがまだ完了してい
ない場合はステップST23に処理を戻し、完了してい
れば、次のステップST28において、現在の運転状態
が切り離された割り込み要因の存在する縮退運転状態で
あるかを判定する。
Next, the operation will be described. FIG. 10 is a flowchart showing a flow of processing of the interrupt processing device according to the seventh embodiment of the present invention. In the figure, the processing from step ST21 to step ST27 is the same as the processing in the fifth embodiment described with reference to FIG. Thereafter, if the above check has not been completed for all the interrupt factors in step ST27, the process returns to step ST23, and if completed, in the next step ST28, the interrupt in which the current operation state is disconnected is performed. It is determined whether there is a degenerate operation state in which a factor exists.

【0058】ステップST28の判定において縮退運転
状態であれば、ステップST40において、切り離され
ていない割り込み要因に対応した処理を予め設定された
縮退運転時の割り込み要因の優先度に従って行う。一
方、ステップST28の判定において縮退運転状態でな
ければ、ステップST41において、切り離されていな
い割り込み要因に対応した処理を予め設定された通常運
転時の割り込み要因の優先度に従って行う。
If it is determined in step ST28 that the operation is in the degenerate operation state, in step ST40, a process corresponding to the interrupt factor that has not been disconnected is performed according to a preset priority of the interrupt factor in the degeneration operation. On the other hand, if it is not the degeneration operation state in the determination in step ST28, in step ST41, the processing corresponding to the interrupt factor that has not been disconnected is performed according to the preset priority of the interrupt factor in normal operation.

【0059】以上のように、この実施の形態7によれ
ば、通常運転時と縮退運転時とで割り込み処理の優先度
に差異を設けて、処理装置2における割り込み処理に処
理状況に応じた柔軟性を持たせることができる。例え
ば、割り込み要因の一例としてキーボード11へのキー
入力を例に取ると、このキー入力の縮退運転時における
優先度を通常運転時における優先度より低く設定してお
けば、割り込み多発により処理装置2の応答速度が低下
している縮退運転時に人が「入力が受け付けられなかっ
たのではないか?」と考えて再度同じキー入力を繰り返
し行ったような場合に、このキー入力による割り込み処
理が行われないようにして、その割り込み処理によって
新たに生じる当該処理以外の処理に対する応答速度低下
をより少なくするなどのことが可能となる。
As described above, according to the seventh embodiment, the priority of the interrupt processing is provided between the normal operation and the degenerate operation, so that the interrupt processing in the processing device 2 can be flexibly performed according to the processing status. It can have sex. For example, taking an example of a key input to the keyboard 11 as an example of an interrupt factor, if the priority of the key input during the degenerate operation is set lower than the priority during the normal operation, the processing device 2 may generate many interrupts. The response speed of the key input is reduced. When a person thinks, "Is input not accepted?" In this way, it is possible to reduce a decrease in response speed to processing other than the processing newly generated by the interrupt processing.

【0060】実施の形態8.この実施の形態8において
は、縮退運転時に処理から切り離して対応する処理を行
わなかった割り込み要因を、一旦処理装置2のRAM等
の記憶手段に待避させておき、通常運転に復帰した際
に、記憶手段に待避させた割り込み要因を時系列に復帰
させて対応する処理を行う。
Embodiment 8 FIG. In the eighth embodiment, an interrupt factor that has not been separated from the process during the degenerate operation and has not been subjected to a corresponding process is temporarily saved in a storage unit such as a RAM of the processing device 2 and is returned to a normal operation. The interrupt factor saved in the storage means is restored in a time series, and a corresponding process is performed.

【0061】次に動作について説明する。図11はこの
発明の実施の形態8による割り込み処理装置の処理の流
れを示すフローチャートである。図において、ステップ
ST50およびステップST51以外の処理は、図4を
用いて説明した実施の形態2における処理と同様であり
重複説明を省略する。この実施の形態8においては、処
理装置2に入力される割り込み要因の単位時間当たりの
合計数の計数値が規定の許容割り込み数を超えている場
合、ステップST14においてその際の割り込み要因を
処理から切り離した後、ステップST50において、切
り離された割り込み要因を、一旦処理装置2のRAM等
の記憶手段に待避させる。
Next, the operation will be described. FIG. 11 is a flowchart showing a flow of processing of the interrupt processing device according to the eighth embodiment of the present invention. In the figure, processing other than step ST50 and step ST51 is the same as the processing in the second embodiment described with reference to FIG. 4, and redundant description will be omitted. In the eighth embodiment, when the count value of the total number of interrupt factors per unit time input to the processing device 2 exceeds the prescribed allowable interrupt count, in step ST14, the interrupt factor at that time is determined from processing. After the disconnection, in step ST50, the disconnected interrupt factor is temporarily saved in a storage unit such as a RAM of the processing device 2.

【0062】ステップST13において計数値が規定の
許容割り込み数以下であり、ステップST15において
切り離された割り込み要因がある場合は、ステップST
16において切り離していた割り込み要因を処理に接続
して縮退運転状態から通常運転状態に移行させた後、ス
テップST51において、記憶手段に待避させていた割
り込み要因を時系列に復帰させて、これらの割り込み要
因に対応する処理を行う。
If the count value is equal to or less than the prescribed allowable interrupt number in step ST13 and there is an interrupt factor which has been separated in step ST15, the process proceeds to step ST15.
In step ST51, the interrupt factors saved in the storage unit are restored in time series, and the interrupt factors disconnected in step 16 are connected to the processing to shift from the degenerate operation mode to the normal operation mode. Perform the process corresponding to the factor.

【0063】以上のように、この実施の形態8によれ
ば、縮退運転時に切り離した割り込み要因を一旦記憶手
段に待避させ、通常運転に復帰した際に、記憶手段に待
避させた割り込み要因を時系列に復帰させて対応する処
理を行うようにしたため、一部の割り込み要因を処理か
ら切り離して縮退運転を行うことによる割り込み処理の
処理漏れの発生を防止しながら、縮退運転の実行によ
り、割り込み要因の多発による処理装置2における処理
遅れの発生を低減することが可能となる。
As described above, according to the eighth embodiment, the interrupt factor separated during the degenerate operation is temporarily saved in the storage means, and when the normal operation is resumed, the interrupt factor saved in the storage means is saved. By executing the degenerate operation, it is possible to prevent the omission of the processing of the interrupt processing by performing the degenerate operation by separating some interrupt factors from the process because the corresponding process is performed by returning to the system. It is possible to reduce the occurrence of processing delay in the processing device 2 due to the occurrence of the above.

【0064】実施の形態9.上記実施の形態8において
は、切り離された割り込み要因をすべて待避させる場合
を示したが、この実施の形態9においては切り離された
割り込み要因のうち、優先度の高い割り込み要因のみを
待避させる。
Embodiment 9 In the eighth embodiment, the case where all the separated interrupt factors are saved is shown. However, in the ninth embodiment, only the interrupt factor having the higher priority among the separated interrupt factors is saved.

【0065】次に動作について説明する。図12はこの
発明の実施の形態9による割り込み処理装置の処理の流
れを示すフローチャートである。図において、ステップ
ST60以外の処理は、図11を用いて説明した実施の
形態8における処理と同様であり重複説明を省略する。
この実施の形態9においては、ステップST60におい
て、切り離された割り込み要因のうち、割り込み要因の
優先度の高いもののみを記憶手段に待避させ、ステップ
ST51において、待避した優先度の高い割り込み要因
を時系列に処理する。
Next, the operation will be described. FIG. 12 is a flowchart showing a flow of processing of the interrupt processing device according to the ninth embodiment of the present invention. In the figure, processing other than step ST60 is the same as the processing in the eighth embodiment described with reference to FIG.
In the ninth embodiment, in step ST60, only the interrupt factors having a higher priority among the separated interrupt factors are saved in the storage means, and in step ST51, the saved interrupt factors having a higher priority are stored. Process on series.

【0066】以上のように、この実施の形態9によれ
ば、高優先度の割り込み要因のみを待避するようにした
ため、通常運転に復帰した際の低優先度の割り込み処理
による高優先度の割り込み処理への影響を防止しなが
ら、実施の形態8記載の効果を得ることができる。
As described above, according to the ninth embodiment, only high-priority interrupt factors are saved, so that high-priority interrupts due to low-priority interrupt processing when returning to normal operation are performed. The effects described in Embodiment 8 can be obtained while preventing the influence on the processing.

【0067】実施の形態10.上記実施の形態8および
実施の形態9においては、記憶手段に待避させていた割
り込み要因を時系列に復帰させて対応する処理を行った
が、待避させていた割り込み要因を予め設定された割り
込み要因の優先度の高い順に復帰させるなどの方法によ
り割り込み要因の優先度の高い順に対応する処理を行う
ようにしてもよく、この実施の形態10によれば、低優
先度の割り込み処理による影響なく、待避させていた高
優先度の割り込み要因に対応した処理を早急に行うこと
が可能となる。
Embodiment 10 FIG. In the above-described eighth and ninth embodiments, the interrupt factor saved in the storage unit is restored in a time series and the corresponding processing is performed. However, the saved interrupt factor is replaced with a preset interrupt factor. According to the tenth embodiment, the processing corresponding to the higher priority of the interrupt factor may be performed by a method such as returning to the higher priority of the priority. The processing corresponding to the interrupted high-priority interrupt factor that has been saved can be performed immediately.

【0068】実施の形態11.上記実施の形態9では、
割り込みの優先度を固定したままで処理する場合を示し
たが、この実施の形態11においては割り込み要因の優
先度を変更可能とする。
Embodiment 11 FIG. In the ninth embodiment,
Although the case where the processing is performed with the priority of the interrupt fixed has been described, in the eleventh embodiment, the priority of the interrupt factor can be changed.

【0069】次に動作について説明する。図13はこの
発明の実施の形態11による割り込み処理装置の処理の
流れを示すフローチャートである。図において、ステッ
プST70以外の処理は、図12を用いて説明した実施
の形態9における処理と同様であり重複説明を省略す
る。この実施の形態11においては、ステップST70
において切り離されていた割り込み要因の優先度をそれ
までの優先度から変更した後に、処理への接続を行う
(ステップST16)。割り込み要因の優先度の変更
は、例えば、切り離された状態で発生数が所定回数以上
となった割り込み要因に対してその優先度を所定のポイ
ントだけ上げる(または下げる)などの方法により行う
ことができる。
Next, the operation will be described. FIG. 13 is a flowchart showing a flow of processing of the interrupt processing device according to the eleventh embodiment of the present invention. In the figure, processing other than step ST70 is similar to the processing in the ninth embodiment described with reference to FIG. 12, and redundant description will be omitted. In the eleventh embodiment, step ST70
After changing the priority of the interrupt factor that has been disconnected in the above from the prior priority, connection to the processing is performed (step ST16). The priority of the interrupt factor can be changed by, for example, increasing (or lowering) the priority by a predetermined point for the interrupt factor that has occurred more than a predetermined number of times in the disconnected state. it can.

【0070】以上のように、この実施の形態11によれ
ば、切り離された割り込み要因の優先度を変更可能とし
たことにより、次の縮退運転時の優先度に関する処理を
今回の縮退運転時の処理状況に応じて変更するなど、割
り込み要因の優先度に関する処理に柔軟性を持たせなが
ら、実施の形態9記載の効果を得ることが可能となる。
As described above, according to the eleventh embodiment, since the priority of the separated interrupt factor can be changed, the processing relating to the priority at the time of the next reduced operation can be performed at the time of the current reduced operation. The effects described in the ninth embodiment can be obtained while giving flexibility to the processing related to the priority of the interrupt factor, such as changing the processing according to the processing status.

【0071】なお、上記においては、割り込み要因を記
憶手段に待避させる際の基準となる優先度を変更可能と
したが、前記各実施の形態における他の処理の際に基準
となる優先度を変更可能とすることも可能であり、同様
に、割り込み要因の優先度に関する処理に柔軟性を持た
せながら、前記各実施の形態記載の効果を得ることが可
能となる。
In the above description, it is possible to change the priority used as a reference when saving the interrupt factor in the storage means. However, the priority used as a reference in other processing in each of the above embodiments can be changed. Similarly, it is possible to obtain the effects described in the above embodiments, while giving flexibility to the processing regarding the priority of the interrupt factor.

【0072】実施の形態12.上記実施の形態11で
は、任意の割り込み要因の優先度を変更可能とする場合
を示したが、この実施の形態12においては、優先度変
更の可否の判定を行うことにより、特定の割り込み要因
に対する優先度の変更を禁ずる。
Embodiment 12 FIG. In the eleventh embodiment, the case where the priority of an arbitrary interrupt factor can be changed has been described. However, in the twelfth embodiment, it is determined whether or not the priority can be changed, so that the specific interrupt factor can be changed. Forbid changing priority.

【0073】次に動作について説明する。図14はこの
発明の実施の形態12による割り込み処理装置の処理の
流れを示すフローチャートである。図において、ステッ
プST80およびステップST81以外の処理は、図1
3を用いて説明した実施の形態11における処理と同様
であり重複説明を省略する。この実施の形態12におい
ては、ステップST80において切り離されていた各割
り込み要因の優先度変更の可否を判定し、ステップST
81において優先度変更可の割り込み要因に対して優先
度の変更を行う。優先度変更の可否の判定は、例えば、
処理装置2のROM等の記憶手段に優先度変更を禁ずる
割り込み要因の種類を格納しておき、この記憶手段の記
憶内容と前記切り離されていた各割り込み要因とを対照
させるなどの方法により行うことができる。
Next, the operation will be described. FIG. 14 is a flowchart showing a flow of processing of the interrupt processing device according to the twelfth embodiment of the present invention. In the figure, processes other than steps ST80 and ST81 are the same as those in FIG.
3 is the same as the processing in the eleventh embodiment described with reference to FIG. In the twelfth embodiment, it is determined whether or not the priority of each interrupt factor disconnected in step ST80 can be changed.
At 81, the priority is changed for the interrupt cause for which the priority can be changed. The determination of whether the priority can be changed is, for example,
The type of the interrupt factor for which the priority change is prohibited is stored in a storage device such as a ROM of the processing device 2 and the stored content of the storage device is compared with each of the separated interrupt factors. Can be.

【0074】以上のように、この実施の形態12によれ
ば、特定の割り込み要因に対する優先度の変更を禁ずる
ようにしたため、例えば、優先度の高いある特定の割り
込み要因に対しては処理の状況にかかわらず優先度を高
いまま変更せずステップST60において必ず記憶手段
に待避するようにするなど、割り込み要因の優先度に関
する処理に優先度の変更により柔軟性を持たせる際に、
特定の割り込み要因に対しては処理状況にかかわらず一
定の優先度で処理を行うことが可能となる。
As described above, according to the twelfth embodiment, the change of the priority of a specific interrupt factor is prohibited. For example, the processing status of a specific interrupt factor with a high priority is controlled. Regardless of the priority, the process relating to the priority of the interrupt factor is made more flexible by changing the priority, for example, by always saving the priority to the storage unit in step ST60 without changing the priority.
Processing can be performed with a certain priority for a specific interrupt factor regardless of the processing status.

【0075】なお、割り込み要因の優先度の変更を可能
とする際に特定の割り込み要因に対して優先度の変更を
禁ずる上記の処理は、優先度に関する処理を行う他の前
記各実施の形態にも適用可能であり、同様な効果を得る
ことができることはいうまでもない。
The above-described processing of prohibiting the change of the priority for a specific interrupt factor when the priority of the interrupt factor can be changed is the same as that of the other embodiments that perform the process related to the priority. It is needless to say that the same effect can be obtained.

【0076】[0076]

【発明の効果】以上のように、請求項1記載の発明によ
れば、所定の手順に従って処理を行う処理装置に対して
処理の実行中に発生する割り込み要因の単位時間当たり
の数を計数し、これを予め設定された単位時間当たりの
許容割り込み数と比較し、前者が大である場合にはいず
れかの割り込み要因を処理から切り離して対応する処理
を行わないように構成したので、割り込み要因が処理装
置の処理速度を超える頻度で発生した場合でも、いずれ
かの割り込み要因を処理から切り離した縮退運転を行う
ことにより、処理装置が見かけ上ハングしたような状態
になることを防止して割り込み要因に対応した処理の実
行を可能とし、割り込み多発による処理遅れを低減する
ことができる効果がある。
As described above, according to the first aspect of the present invention, the number of interrupt factors per unit time generated during execution of a process is counted for a processing device that performs a process according to a predetermined procedure. This is compared with a preset allowable number of interrupts per unit time, and if the former is large, one of the interrupt factors is separated from the process so that the corresponding process is not performed. Even if the error occurs at a frequency exceeding the processing speed of the processing unit, the degenerate operation that separates any interrupt factor from the processing prevents the processing unit from appearing to hang and interrupts This makes it possible to execute a process corresponding to the factor, and to reduce a processing delay due to a large number of interrupts.

【0077】請求項2記載の発明によれば、割り込み要
因の単位時間当たりの数を割り込み要因毎に計数し、こ
れを割り込み要因毎に予め設定された単位時間当たりの
許容割り込み数と比較し、前者が大である場合にはその
割り込み要因を処理から切り離すように構成したので、
例えばキーボードの接点の故障によりキー入力が多発し
た場合などにおいてその多発した割り込み要因のみを切
り離すことができ、他の割り込み要因に対する処理漏れ
を生じないようにしながら、処理装置が見かけ上ハング
したような状態になることを防止して割り込み要因に対
応した処理の実行を可能とし、割り込み多発による処理
遅れを低減することができる効果がある。
According to the second aspect of the present invention, the number of interrupt factors per unit time is counted for each interrupt factor, and this is compared with a preset allowable number of interrupts per unit time for each interrupt factor. If the former is large, the interrupt factor is separated from the processing.
For example, when key input occurs frequently due to a failure of a keyboard contact, it is possible to isolate only the interrupt factor that frequently occurs, and to prevent processing leaks from occurring for other interrupt factors while the processing device appears to hang. The state can be prevented from being executed, and processing corresponding to the interrupt factor can be executed, so that there is an effect that a processing delay due to frequent occurrence of interrupts can be reduced.

【0078】請求項3記載の発明によれば、計数された
割り込み要因の単位時間当たりの数が予め設定された単
位時間当たりの許容割り込み数以下となった際に、切り
離されている割り込み要因を処理に接続するように構成
したので、割り込み要因の発生頻度が減少した際に切り
離していた割り込み要因を自動的に処理に再接続して処
理漏れを防止することができる効果がある。
According to the third aspect of the present invention, when the counted number of interrupt factors per unit time becomes equal to or less than a preset allowable number of interrupts per unit time, the interrupt factor that has been separated is determined. Since it is configured to be connected to the process, there is an effect that the interrupt factor that has been separated when the frequency of occurrence of the interrupt factor is reduced is automatically reconnected to the process, thereby preventing omission of the process.

【0079】請求項4記載の発明によれば、切り離され
た割り込み要因が存在する縮退運転状態であるか、切り
離された割り込み要因が存在しない通常運転状態である
かを判定し、縮退運転時には、切り離されていない割り
込み要因に対応して、縮退運転時用に設定された処理を
行うように構成したので、処理から切り離された割り込
み要因が存在する縮退運転時と、正常に割り込み要因に
対する処理が行われている通常運転時とで、異なる割り
込み処理を行わせることができ、処理装置における割り
込み処理に処理状況に応じた柔軟性を持たせることがで
きる効果がある。
According to the fourth aspect of the present invention, it is determined whether the operation is in the degenerate operation state in which the separated interrupt factor exists or in the normal operation state in which the separated interrupt factor does not exist. Because the processing set for the degenerate operation is performed in response to the interrupt factor that has not been separated, the processing for the degenerate operation in which the interrupt factor separated from the process exists and the process for the interrupt factor normally Different interrupt processing can be performed in the normal operation that is being performed, and there is an effect that the interrupt processing in the processing device can have flexibility according to the processing status.

【0080】請求項5記載の発明によれば、切り離され
ていない割り込み要因に対応する処理を、予め設定され
た割り込み要因の優先度に従って行うように構成したの
で、優先度の低い割り込み要因に対応した処理の実行に
より優先度の高い割り込み要因に対応した処理の実行に
支障が生じることを防止し、切り離されていない優先度
の高い割り込み要因に対応した処理が確実に行われるよ
うにすることができる効果がある。
According to the fifth aspect of the present invention, the processing corresponding to the interrupt factor which has not been disconnected is performed according to the preset priority of the interrupt factor. To prevent the execution of the processing that corresponds to the high-priority interrupt factor from being interrupted, and to ensure that the processing that corresponds to the high-priority interrupt factor that has not been separated is performed. There is an effect that can be done.

【0081】請求項6記載の発明によれば、切り離され
た割り込み要因が存在する縮退運転時には、割り込み要
因の優先度として、予め設定された縮退運転時用の割り
込み要因の優先度を用いるように構成したので、通常運
転時と縮退運転時とで割り込み処理の優先度に差異を設
けて、処理装置における割り込み処理に処理状況に応じ
た柔軟性を持たせることができる効果がある。
According to the sixth aspect of the present invention, in a degenerate operation in which an isolated interrupt factor exists, a preset priority of the interrupt factor for the degenerate operation is used as the priority of the interrupt factor. With this configuration, there is an effect that the priority of the interrupt processing is set to be different between the normal operation and the degenerate operation, so that the interrupt processing in the processing device can have flexibility depending on the processing state.

【0082】請求項7記載の発明によれば、計数された
割り込み要因の単位時間当たりの数が許容割り込み数よ
り大の場合、予め設定された割り込み要因の優先度の低
い割り込み要因を処理から切り離すように構成したの
で、優先度の高い割り込み処理の処理漏れを防止しつ
つ、割り込み要因の多発による処理装置における処理遅
れを低減することができる効果がある。
According to the seventh aspect of the present invention, when the counted number of interrupt factors per unit time is larger than the allowable number of interrupts, the interrupt factor having a lower priority set in advance is separated from the processing. With such a configuration, there is an effect that the processing delay in the processing device due to the frequent occurrence of the interrupt factor can be reduced while preventing the omission of the high-priority interrupt process.

【0083】請求項8記載の発明によれば、縮退運転時
に切り離された割り込み要因を記憶手段に待避させてお
き、縮退運転から通常運転に復帰した際に前記待避させ
た割り込み要因を前記記憶手段から復帰させて対応する
処理を行うように構成したので、一部の割り込み要因を
処理から切り離して縮退運転を行うことによる割り込み
処理の処理漏れの発生を防止しながら、縮退運転の実行
により、割り込み要因の多発による処理装置における処
理遅れを低減することができる効果がある。
According to the eighth aspect of the present invention, the interrupt factor disconnected at the time of the degenerate operation is saved in the storage means, and the interrupt factor saved at the time of returning from the degenerate operation to the normal operation is stored in the storage means. The system is configured to perform the corresponding processing by returning from the process, so that the execution of the degenerate operation prevents the occurrence of the omission of the processing of the interrupt processing by separating some interrupt factors from the processing and performing the degenerate operation. There is an effect that a processing delay in the processing device due to a large number of factors can be reduced.

【0084】請求項9記載の発明によれば、縮退運転時
に切り離された割り込み要因のうち、予め設定された割
り込み要因の優先度の高い割り込み要因のみを待避させ
るように構成したので、通常運転に復帰した際の低優先
度の割り込み要因に対応した処理による高優先度の割り
込み要因に対応した処理への影響を防止しながら、縮退
運転による高優先度の割り込み要因に対応した処理の処
理漏れの発生を防止することができる効果がある。
According to the ninth aspect of the invention, of the interrupt factors separated during the degenerate operation, only the interrupt factor having a higher priority of the preset interrupt factor is saved, so that the normal operation can be performed. While returning, the processing corresponding to the low-priority interrupt factor is prevented from affecting the processing corresponding to the high-priority interrupt factor. There is an effect that generation can be prevented.

【0085】請求項10記載の発明によれば、縮退運転
から通常運転に復帰した際に、待避させていた割り込み
要因に対応する処理を、予め設定された割り込み要因の
優先度の高い順に行うように構成したので、低優先度の
割り込み要因に対応した処理に影響されることなく、待
避させていた高優先度の割り込み要因に対応した処理を
早急に行うことができる効果がある。
According to the tenth aspect, when returning from the degenerate operation to the normal operation, the processing corresponding to the interrupted factor saved is performed in the descending order of the priority of the preset interrupt factor. Therefore, there is an effect that the process corresponding to the saved high-priority interrupt factor can be promptly performed without being affected by the process corresponding to the low-priority interrupt factor.

【0086】請求項11記載の発明によれば、予め設定
された割り込み要因の優先度を変更可能であるように構
成したので、割り込み要因の優先度に関する処理に柔軟
性を持たせながら請求項5,6,7,9,10のうちの
いずれか1項記載の発明の効果を得ることができる効果
がある。
According to the eleventh aspect of the present invention, the priority of the interrupt factor set in advance can be changed, so that the process relating to the priority of the interrupt factor is provided with flexibility. , 6, 7, 9, and 10, the effect of the invention described in any one of the above aspects can be obtained.

【0087】請求項12記載の発明によれば、特定の割
り込み要因に対して、優先度の変更を禁じるように構成
したので、割り込み要因の優先度に関する処理に優先度
の変更により柔軟性を持たせる際に、特定の割り込み要
因に対しては処理状況にかかわらず一定の優先度で処理
を行うことができる効果がある。
According to the twelfth aspect of the present invention, the change of the priority is prohibited for a specific interrupt factor, so that the process relating to the priority of the interrupt factor has more flexibility by changing the priority. In this case, there is an effect that processing can be performed with a certain priority for a specific interrupt factor regardless of the processing status.

【0088】請求項13記載の発明によれば、所定の手
順に従って処理を行う処理装置に割り込み要因の入力を
行う入力装置と前記処理装置との間に、単位時間を表す
信号を発生させる単位時間信号発生装置と、前記単位時
間を表す信号が示す単位時間内に発生する割り込み要因
の数を計数する割り込み数計数装置と、前記割り込み数
計数装置の計数値が予め設定された単位時間当たりの許
容割り込み数を超える場合にその際の割り込み要因を処
理から切り離す割り込み選別装置とを備えるように構成
したので、単位時間内に発生する割り込み要因の数の計
数、許容割り込み数との比較、割り込み要因の処理への
接続・切り離しを処理装置におけるソフトウェアにより
行わず上記各ハードウェアにより行うことにより、処理
装置における処理に負荷がかかることを防止しながら、
割り込み要因の多発時に処理装置が見かけ上ハングした
ような状態になることを防止して割り込み要因に対応し
た処理の実行を可能とし、割り込み多発による処理遅れ
を低減することができる効果がある。
According to the thirteenth aspect of the present invention, a unit time for generating a signal representing a unit time is provided between an input device for inputting an interrupt factor to a processing device for performing processing according to a predetermined procedure and the processing device. A signal generating device, an interrupt counting device that counts the number of interrupt factors occurring within a unit time indicated by the signal indicating the unit time, and a count value of the interrupt counting device which is set to a predetermined value per unit time. When the number of interrupts exceeds the number of interrupts, the system is equipped with an interrupt selection device that separates the cause of the interrupt from processing. The connection and disconnection to the processing are not performed by the software in the processing device but by the above hardware, so that the processing in the processing device can be performed. While preventing that the load is applied,
It is possible to prevent the processing device from appearing to be hung when an interrupt occurs frequently, to execute a process corresponding to the interrupt cause, and to reduce the processing delay caused by the interrupt occurring frequently.

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

【図1】 この発明の実施の形態1による割り込み処理
方法の説明用概略図である。
FIG. 1 is a schematic diagram for explaining an interrupt processing method according to a first embodiment of the present invention;

【図2】 この発明の実施の形態1による割り込み処理
方法を行う処理装置と入力装置の構成図である。
FIG. 2 is a configuration diagram of a processing device and an input device that perform an interrupt processing method according to the first embodiment of the present invention;

【図3】 この発明の実施の形態1による割り込み処理
方法の処理の流れを示すフローチャートである。
FIG. 3 is a flowchart showing a processing flow of an interrupt processing method according to the first embodiment of the present invention;

【図4】 この発明の実施の形態2による割り込み処理
方法の処理の流れを示すフローチャートである。
FIG. 4 is a flowchart showing a processing flow of an interrupt processing method according to a second embodiment of the present invention;

【図5】 この発明の実施の形態3による割り込み処理
装置の構成を示すブロック図である。
FIG. 5 is a block diagram showing a configuration of an interrupt processing device according to a third embodiment of the present invention.

【図6】 この発明の実施の形態3による割り込み処理
装置の単位時間信号発生装置、割り込み数計数装置、割
り込み選別装置のハードウェア構成例を示すブロック図
である。
FIG. 6 is a block diagram illustrating a hardware configuration example of a unit time signal generation device, an interrupt counting device, and an interrupt selection device of an interrupt processing device according to a third embodiment of the present invention.

【図7】 この発明の実施の形態4による割り込み処理
方法の処理の流れを示すフローチャートである。
FIG. 7 is a flowchart showing a processing flow of an interrupt processing method according to a fourth embodiment of the present invention.

【図8】 この発明の実施の形態5による割り込み処理
方法の処理の流れを示すフローチャートである。
FIG. 8 is a flowchart showing a processing flow of an interrupt processing method according to a fifth embodiment of the present invention.

【図9】 この発明の実施の形態6による割り込み処理
方法の処理の流れを示すフローチャートである。
FIG. 9 is a flowchart showing a processing flow of an interrupt processing method according to a sixth embodiment of the present invention.

【図10】 この発明の実施の形態7による割り込み処
理方法の処理の流れを示すフローチャートである。
FIG. 10 is a flowchart showing a processing flow of an interrupt processing method according to a seventh embodiment of the present invention.

【図11】 この発明の実施の形態8による割り込み処
理方法の処理の流れを示すフローチャートである。
FIG. 11 is a flowchart showing a processing flow of an interrupt processing method according to an eighth embodiment of the present invention.

【図12】 この発明の実施の形態9による割り込み処
理方法の処理の流れを示すフローチャートである。
FIG. 12 is a flowchart showing a processing flow of an interrupt processing method according to a ninth embodiment of the present invention;

【図13】 この発明の実施の形態11による割り込み
処理方法の処理の流れを示すフローチャートである。
FIG. 13 is a flowchart showing a process flow of an interrupt processing method according to an eleventh embodiment of the present invention.

【図14】 この発明の実施の形態12による割り込み
処理方法の処理の流れを示すフローチャートである。
FIG. 14 is a flowchart showing a process flow of an interrupt processing method according to a twelfth embodiment of the present invention.

【図15】 従来の割り込み処理方法の例を示す説明図
である。
FIG. 15 is an explanatory diagram showing an example of a conventional interrupt processing method.

【図16】 従来の割り込み処理方法の例を示す説明図
である。
FIG. 16 is an explanatory diagram showing an example of a conventional interrupt processing method.

【符号の説明】[Explanation of symbols]

1 入力装置、2 処理装置、11 キーボード(入力
装置)、12 マウス(入力装置)、13 センサ(入
力装置)、21 単位時間信号発生装置、22割り込み
数計数装置、23 割り込み選別装置、24 パルス発
振器(単位時間信号発生装置)、25 カウンタ(割り
込み数計数装置)、26 許容値レジスタ(割り込み選
別装置)、27 コンパレータ(割り込み選別装置)、
28ANDゲート(割り込み選別装置)。
Reference Signs List 1 input device, 2 processing device, 11 keyboard (input device), 12 mouse (input device), 13 sensor (input device), 21 unit time signal generating device, 22 interrupt counting device, 23 interrupt sorting device, 24 pulse oscillator (Unit time signal generation device), 25 counter (interrupt counting device), 26 allowable value register (interrupt selection device), 27 comparator (interrupt selection device),
28 AND gate (interrupt screening device).

Claims (13)

【特許請求の範囲】[Claims] 【請求項1】 所定の手順に従って処理を行う処理装置
に対して処理の実行中に発生する割り込み要因の単位時
間当たりの数を計数し、これを予め設定された単位時間
当たりの許容割り込み数と比較し、前者が大である場合
にはいずれかの割り込み要因を処理から切り離して対応
する処理を行わないことを特徴とする割り込み処理方
法。
1. A processing apparatus that performs processing in accordance with a predetermined procedure counts the number of interrupt factors per unit time generated during execution of the processing, and determines the number of interrupt factors per unit time as a preset allowable number of interrupts per unit time. In comparison, when the former is large, any interrupt factor is separated from the processing and the corresponding processing is not performed.
【請求項2】 割り込み要因の単位時間当たりの数を割
り込み要因毎に計数し、これを割り込み要因毎に予め設
定された単位時間当たりの許容割り込み数と比較し、前
者が大である場合にはその割り込み要因を処理から切り
離すことを特徴とする請求項1記載の割り込み処理方
法。
2. The number of interrupt factors per unit time is counted for each interrupt factor, and this is compared with the allowable number of interrupts per unit time preset for each interrupt factor. 2. The interrupt processing method according to claim 1, wherein the interrupt factor is separated from the processing.
【請求項3】 計数された割り込み要因の単位時間当た
りの数が予め設定された単位時間当たりの許容割り込み
数以下となった際に、切り離されている割り込み要因を
処理に接続することを特徴とする請求項1または請求項
2記載の割り込み処理方法。
3. When the counted number of interrupt factors per unit time becomes equal to or less than a preset allowable number of interrupts per unit time, the disconnected interrupt factor is connected to processing. 3. The interrupt processing method according to claim 1, wherein
【請求項4】 切り離された割り込み要因が存在する縮
退運転状態であるか、切り離された割り込み要因が存在
しない通常運転状態であるかを判定し、縮退運転時に
は、切り離されていない割り込み要因に対応して、縮退
運転時用に設定された処理を行うことを特徴とする請求
項1から請求項3のうちのいずれか1項記載の割り込み
処理方法。
4. Determine whether the operating state is a degenerate operation state in which an isolated interrupt factor exists or a normal operation state in which no isolated interrupt factor exists. 4. The interrupt processing method according to claim 1, wherein a process set for a degenerate operation is performed.
【請求項5】 切り離されていない割り込み要因に対応
する処理を、予め設定された割り込み要因の優先度に従
って行うことを特徴とする請求項1から請求項4のうち
のいずれか1項記載の割り込み処理方法。
5. The interrupt according to claim 1, wherein a process corresponding to the interrupt factor that has not been separated is performed in accordance with a preset priority of the interrupt factor. Processing method.
【請求項6】 切り離された割り込み要因が存在する縮
退運転時には、割り込み要因の優先度として、予め設定
された縮退運転時用の割り込み要因の優先度を用いるこ
とを特徴とする請求項5記載の割り込み処理方法。
6. The degraded operation in which an isolated interrupt factor is present, wherein a preset priority of the degenerate operation interrupt factor is used as the interrupt factor priority. Interrupt handling method.
【請求項7】 計数された割り込み要因の単位時間当た
りの数が許容割り込み数より大の場合、予め設定された
割り込み要因の優先度の低い割り込み要因を処理から切
り離すことを特徴とする請求項1から請求項4のうちの
いずれか1項記載の割り込み処理方法。
7. The method according to claim 1, wherein when the counted number of interrupt factors per unit time is larger than the allowable number of interrupts, interrupt factors having a lower priority of the preset interrupt factors are separated from the processing. The interrupt processing method according to any one of claims 1 to 4.
【請求項8】 縮退運転時に切り離された割り込み要因
を記憶手段に待避させておき、縮退運転から通常運転に
復帰した際に前記待避させた割り込み要因を前記記憶手
段から復帰させて対応する処理を行うことを特徴とする
請求項1から請求項7のうちのいずれか1項記載の割り
込み処理方法。
8. An interrupt factor disconnected during the degenerate operation is saved in the storage means, and when the normal operation is returned from the degenerate operation, the saved interrupt factor is restored from the storage means to perform a corresponding process. 8. The interrupt processing method according to claim 1, wherein the method is performed.
【請求項9】 縮退運転時に切り離された割り込み要因
のうち、予め設定された割り込み要因の優先度の高い割
り込み要因のみを待避させることを特徴とする請求項8
記載の割り込み処理方法。
9. The method according to claim 8, wherein, of the interrupt factors separated during the degraded operation, only interrupt factors having a higher priority among preset interrupt factors are saved.
The described interrupt handling method.
【請求項10】 縮退運転から通常運転に復帰した際
に、待避させていた割り込み要因に対応する処理を、予
め設定された割り込み要因の優先度の高い順に行うこと
を特徴とする請求項9記載の割り込み処理方法。
10. The method according to claim 9, wherein when returning from the degraded operation to the normal operation, the processing corresponding to the interrupted factor saved is performed in descending order of the priority of the preset interrupt factor. Interrupt handling method.
【請求項11】 予め設定された割り込み要因の優先度
を変更可能としたことを特徴とする請求項5、請求項
6、請求項7、請求項9、または請求項10のうちのい
ずれか1項記載の割り込み処理装置。
11. The method according to claim 5, wherein the priority of a preset interrupt factor can be changed. The interrupt processing device according to the item.
【請求項12】 特定の割り込み要因に対して、優先度
の変更を禁じることを特徴とする請求項11記載の割り
込み処理方法。
12. The interrupt processing method according to claim 11, wherein the change of the priority is prohibited for a specific interrupt factor.
【請求項13】 所定の手順に従って処理を行う処理装
置に割り込み要因の入力を行う入力装置と前記処理装置
との間に、単位時間を表す信号を発生させる単位時間信
号発生装置と、前記単位時間を表す信号が示す単位時間
内に発生する割り込み要因の数を計数する割り込み数計
数装置と、前記割り込み数計数装置の計数値が予め設定
された単位時間当たりの許容割り込み数を超える場合に
その際の割り込み要因を処理から切り離す割り込み選別
装置とを備えたことを特徴とする割り込み処理装置。
13. A unit time signal generation device for generating a signal representing a unit time between an input device for inputting an interrupt factor to a processing device for performing processing according to a predetermined procedure and said processing device, An interrupt number counting device that counts the number of interrupt factors that occur within a unit time indicated by a signal indicating the number of interrupts, and when the count value of the interrupt number counting device exceeds a preset allowable number of interrupts per unit time, And an interrupt selection device for separating the interrupt factor from the processing.
JP21154096A 1996-08-09 1996-08-09 Interruption processing method and interruption processor Pending JPH1055282A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21154096A JPH1055282A (en) 1996-08-09 1996-08-09 Interruption processing method and interruption processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21154096A JPH1055282A (en) 1996-08-09 1996-08-09 Interruption processing method and interruption processor

Publications (1)

Publication Number Publication Date
JPH1055282A true JPH1055282A (en) 1998-02-24

Family

ID=16607544

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21154096A Pending JPH1055282A (en) 1996-08-09 1996-08-09 Interruption processing method and interruption processor

Country Status (1)

Country Link
JP (1) JPH1055282A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9785586B2 (en) 2011-11-11 2017-10-10 Fujitsu Limited Electronic computer and interrupt control method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9785586B2 (en) 2011-11-11 2017-10-10 Fujitsu Limited Electronic computer and interrupt control method

Similar Documents

Publication Publication Date Title
US6662204B2 (en) Thread control system and method in a computer system
US6101627A (en) Information processing system and logic LSI, detecting a fault in the system or the LSI, by using internal data processed in each of them
US6697834B1 (en) Mutual exculsion system and method for restarting critical sections of code when preempted during a critical section
CN1326042C (en) Fault-tderant computer system and its resynchronization method and program
DE69930614T2 (en) METHOD AND DEVICE FOR HANDLING multiple flank and state induced interruptions
US7627782B2 (en) Multi-processing system and multi-processing method
US6820213B1 (en) Fault-tolerant computer system with voter delay buffer
JPH03131939A (en) High-reliability computer diagnostic system
CA2292991C (en) Watch dog timer system
US6629252B1 (en) Method for determining if a delay required before proceeding with the detected interrupt and exiting the interrupt without clearing the interrupt
US5638510A (en) Multiplexed system with watch dog timers
US6334194B1 (en) Fault tolerant computer employing double-redundant structure
JPH1055282A (en) Interruption processing method and interruption processor
CN113391910A (en) Task processing method and device, computer equipment and storage medium
US6463492B1 (en) Technique to automatically notify an operating system level application of a system management event
US6336193B1 (en) Input/output recovery method which is based upon an error rate and a current state of the computer environment
US5790872A (en) Interrupt control handler for a RISC-type microprocessor
US6557099B1 (en) Multiprocessor system for distributively determining the identity of a new control processor based upon the identity of the failing processor(s) stored therein
US6338145B1 (en) Input/output recovery system which is based upon an error rate and a current state of the computer environment
US20040181638A1 (en) Event queue system
JPH04123141A (en) Fault detecting/signal selecting system for sensor data
US5598578A (en) Data processing system having event word handling facility which can send event word of higher significance without failure
CA2498656A1 (en) Method for synchronizing events, particularly for processors of fault-tolerant systems
US20030023799A1 (en) Interrupt processing apparatus
JP3652232B2 (en) Microcomputer error detection method, error detection circuit, and microcomputer system