JPH07182181A - Interruption priority setting circuit - Google Patents

Interruption priority setting circuit

Info

Publication number
JPH07182181A
JPH07182181A JP32287593A JP32287593A JPH07182181A JP H07182181 A JPH07182181 A JP H07182181A JP 32287593 A JP32287593 A JP 32287593A JP 32287593 A JP32287593 A JP 32287593A JP H07182181 A JPH07182181 A JP H07182181A
Authority
JP
Japan
Prior art keywords
interrupt
value
priority
interrupt priority
increment
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
JP32287593A
Other languages
Japanese (ja)
Inventor
Takamasa Kondo
孝政 近藤
Shigeru Nakajima
中島  茂
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP32287593A priority Critical patent/JPH07182181A/en
Publication of JPH07182181A publication Critical patent/JPH07182181A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To reduce the burden of a CPU and to eliminate the need for preparing the memories in number equal to the interruption factors by calculating the interruption request frequency by a changing means and changing and resetting the interruption priority when the count value of the request frequency reaches the changing threshold value. CONSTITUTION:A down-counter 12 counts the interruption request frequency within a fixed period by applying -1 to the increment reference value set at an increment reference value setting register 11 for each input of an interruption request signal. Then the counter 12 outputs an increment signal when its count value is O. Meanwhile the interruption priority value is set at an interruption priority setting register 21, and +1 is applied to the set priority value for each input of the increment signal. Thus the interruption priority is increased. It is just required to write the interruption priority increment reference value in the register 11 since the interruption priority is increased by the interruption occurring frequency. As a result, the burden of a CPU is reduced.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、一定時間内に発生する
割込み要求の回数に応じて割込み優先順位を設定する割
込み優先順位設定回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an interrupt priority setting circuit for setting an interrupt priority according to the number of interrupt requests generated within a fixed time.

【0002】[0002]

【従来の技術】割込みの優先順位は、各割込み要因毎に
準備され、CPUがプログラムで割込み優先順位設定レ
ジスタにそれぞれの割込み優先順位を書き込むことで設
定できる。また同時に、割込み優先順位が同一の割込み
要求が発生した場合には、デフォルトプライオリティー
にしたがって処理が行なわれる。
2. Description of the Related Art Interrupt priorities are prepared for each interrupt factor, and can be set by the CPU writing each interrupt priority in an interrupt priority setting register by a program. At the same time, when interrupt requests with the same interrupt priority occur, processing is performed according to the default priority.

【0003】一方、割込み優先順位を割込みの発生頻度
によって変えるシステムがあり、従来の技術では、割込
み発生回数を割込み処理プログラムで計数しなければな
らない。割込みの発生回数は、CPUが使われる外部環
境、例えば自動車に搭載されているECU(エンジン制
御ユニット)を寒冷な地域と温暖な地域とで使用した場
合とで差が生じる。割込みの優先順位の設定は、ある外
部環境を想定して決められており、想定した外部環境以
外で使用した場合には、割込みの発生回数が減少する場
合があり、制御に影響を与えることがある。また、制御
に与える影響は大きいが、発生頻度が少ないと考えて、
優先順位を低く設定したある割込みの発生回数が突如多
くなって、制御に影響を与えることもある。
On the other hand, there is a system in which the priority of interrupts is changed depending on the frequency of occurrence of interrupts, and in the conventional technique, the number of times of interrupts must be counted by an interrupt processing program. The number of interruptions differs depending on the external environment in which the CPU is used, for example, when an ECU (engine control unit) mounted on an automobile is used in a cold region and a warm region. The priority of interrupts is set assuming a certain external environment, and when used in an environment other than the assumed external environment, the number of interrupts generated may decrease, which may affect control. is there. Also, although it has a great influence on control, it is thought that the frequency of occurrence is low,
The number of times a certain interrupt with a low priority is generated suddenly increases, which may affect the control.

【0004】これらのような場合に、最適な制御を行な
うためには、優先順位を高くして割込み処理の発生を増
やして制御しなければならない。割込み処理の発生を増
やすには、CPUがプログラムで割込み優先順位設定レ
ジスタを優先順位を上げるように書き換えればよいのだ
が、書き換えるための基準は、CPUがプログラムで割
込みの発生回数を数えなければならない。そして、発生
回数がある値以上になった時に割込み優先順位設定レジ
スタを書き換えるようにしていた。
In these cases, in order to perform optimum control, it is necessary to increase the priority and increase the occurrence of interrupt processing for control. In order to increase the occurrence of interrupt processing, the CPU may rewrite the interrupt priority setting register in the program so as to raise the priority, but the criterion for rewriting is that the CPU must count the number of interrupt occurrences in the program. . Then, when the number of occurrences exceeds a certain value, the interrupt priority setting register is rewritten.

【0005】[0005]

【発明が解決しようとする課題】上述のようにCPUが
プログラムで割込み発生回数を数え、その発生回数をあ
る設定値と比較するので、CPUの負担が重く、また割
込み発生回数をメモリへ格納しておく必要があり、割込
み要因数分だけのメモリを用意しなければならないとい
う欠点があった。
As described above, since the CPU counts the number of interrupt occurrences in the program and compares the number of occurrences with a certain set value, the load on the CPU is heavy and the number of interrupt occurrences is stored in the memory. However, there is a drawback that it is necessary to prepare memory for the number of interrupt factors.

【0006】そこで、この発明は、上記に鑑みてなされ
たものであり、その目的とするところは、割込み発生回
数を計数するのにCPUの負担を軽減して、割込み要因
数分だけのメモリを不要にした割込み優先順位設定回路
を提供することにある。
Therefore, the present invention has been made in view of the above, and an object of the present invention is to reduce the load on the CPU for counting the number of interrupt occurrences, and to provide the memory for the number of interrupt factors. It is to provide an interrupt priority setting circuit that is not needed.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
に、請求項1記載の発明は、一定周期毎又は変更信号が
出力される毎に割込み優先順位を変更するための変更し
きい値が外部から与えられて設定され、一定周期内に発
生する割込み要求の回数を計数して、計数値が変更しき
い値に達すると変更信号を出力する変更手段と、一定周
期毎に割込み優先順位の初期値が設定され、変更手段か
ら出力される変更信号にしたがって設定された優先順位
を変更して再設定する設定手段とから構成される。
In order to achieve the above object, the invention according to claim 1 has a change threshold value for changing the interrupt priority every fixed period or every time a change signal is output. Change means that is externally given and set, counts the number of interrupt requests that occur within a fixed period, and outputs a change signal when the count value reaches the change threshold, and an interrupt priority order for each fixed period. The initial value is set, and the setting unit changes the priority order set according to the change signal output from the changing unit and resets the priority.

【0008】[0008]

【作用】上記構成において、請求項1記載の発明は、変
更手段が割込み要求の回数を計数し、計数値が変更しき
い値に達した際に割込み優先順位を変更するようにして
いる。
In the above structure, the invention according to claim 1 is such that the changing means counts the number of interrupt requests and changes the interrupt priority when the counted value reaches the change threshold.

【0009】[0009]

【実施例】以下、図面を用いてこの発明の実施例を説明
する。
Embodiments of the present invention will be described below with reference to the drawings.

【0010】図1は請求項1記載の発明に係わる割込み
優先順位設定回路の構成を示す図である。
FIG. 1 is a diagram showing the configuration of an interrupt priority setting circuit according to the first aspect of the present invention.

【0011】図1において、割込み優先順位設定回路
は、一定周期信号が与えられる毎又は割込み優先順位を
高めるインクリメント信号が出力される毎に割込み優先
順位を高めるための変更しきい値となるインクリメント
基準値が外部のCPUから与えられて設定され、一定周
期信号で規定される一定周期内に発生する割込み要求の
回数を計数して、計数値がインクリメント基準値に達す
るとインクリメント信号を出力する割込み優先順位変更
ブロック1と、一定周期毎に初期値の割込み優先順位値
が設定され、割込み優先順位変更ブロック1から出力さ
れるインクリメント信号にしたがって割込み優先順位値
を高くして再設定する割込み優先順位設定ブロック2と
から構成される。
In FIG. 1, the interrupt priority level setting circuit uses an increment criterion as a change threshold value for increasing the interrupt priority level every time a constant period signal is given or an increment signal for increasing the interrupt priority level is output. A value is given by an external CPU and is set. The interrupt request that counts the number of interrupt requests that occur within a fixed cycle defined by the fixed cycle signal and outputs an increment signal when the count value reaches the increment reference value. An interrupt priority setting in which the priority change value of the priority change block 1 and the initial value of the interrupt priority value are set at regular intervals, and the interrupt priority value is increased and reset according to the increment signal output from the interrupt priority change block 1. And block 2.

【0012】割込み優先順位変更ブロック1は、インク
リメント基準値が外部のCPUから与えられて設定され
るインクリメント基準値設定レジスタ11と、インクリ
メント基準値設定レジスタ11に設定されたインクリメ
ント基準値がセットされ、割込み要求信号の入力毎にセ
ットされたインクリメント基準値を−1させることによ
り一定周期内に発生する割込み要求の回数を計数し、計
数値が0になるとインクリメント信号を出力するダウン
カウンタ12と、一定周期信号とインクリメント信号を
受けて、インクリメント基準値設定レジスタ11に設定
されたインクリメント基準値をダウンカウンタ12にセ
ットする論理和(OR)ゲート13から構成される。
In the interrupt priority changing block 1, an increment reference value setting register 11 in which an increment reference value is given and set by an external CPU and an increment reference value set in the increment reference value setting register 11 are set, By counting the number of interrupt requests generated within a fixed period by decrementing the increment reference value set for each input of the interrupt request signal by -1, the down counter 12 that outputs the increment signal when the count value becomes 0, and the fixed counter It comprises a logical sum (OR) gate 13 for receiving the periodic signal and the increment signal and setting the increment reference value set in the increment reference value setting register 11 in the down counter 12.

【0013】割込み優先順位設定ブロック2は、一定周
期毎に割込み優先順位の初期値が外部のCPUから与え
られて設定される割込み優先順位設定レジスタ21と、
割込み優先順位設定レジスタ21に設定された割込み優
先順位値がセットされ、インクリメント信号の入力毎に
セットされた割込み優先順位値を+1させることにより
割込み優先順位を高めるアップカウンタ22とから構成
される。このような割込み優先順位変更ブロック1と割
込み優先順位設定ブロック2は各割込み要因毎に設けら
れている。
The interrupt priority setting block 2 includes an interrupt priority setting register 21 in which an initial value of the interrupt priority is set by an external CPU at regular intervals, and is set.
The interrupt priority level value set in the interrupt priority level setting register 21 is set, and the up counter 22 is configured to increase the interrupt priority level by incrementing the interrupt priority level value set by +1 for each input of the increment signal. The interrupt priority level changing block 1 and the interrupt priority level setting block 2 are provided for each interrupt factor.

【0014】なお、インクリメント基準値は、割込み要
求が発生する処理が施される対象の外部環境、例えばイ
ンクリメント基準値や割込み優先順位値をセットするC
PUが自動車のエンジンを制御するエンジン制御ユニッ
トに用いられている場合には、CPUの制御対象となる
自動車の走行時における路面の状態等の外部環境に応じ
て、予め用意された複数のインクリメント基準値の中か
ら択一的に選択される。
Note that the increment reference value is an external environment to which processing for generating an interrupt request is applied, for example, C for setting an increment reference value or an interrupt priority value.
When the PU is used in an engine control unit that controls the engine of the automobile, a plurality of increment criteria prepared in advance according to the external environment such as the state of the road surface when the automobile controlled by the CPU is running. One of the values is selected.

【0015】次に、上記構成における動作を、図2に示
す動作タイミング図を参照して説明する。
Next, the operation of the above configuration will be described with reference to the operation timing chart shown in FIG.

【0016】まず、割込み優先順位設定レジスタ21に
割込みの優先順位を決めるための割込み優先順位値の初
期値を書き込む。インクリメント基準値レジスタ11に
割込み優先順位値をインクリメントするための割込み優
先順位インクリメント基準値を書き込む。そして、ダウ
ンカウンタ12に割込み優先順位のインクリメント基準
値(A1)を、アップカウンタ22に割込み優先順位値
の初期値をセットする(図2〈a〉)。
First, the initial value of the interrupt priority value for determining the priority of the interrupt is written in the interrupt priority setting register 21. The interrupt priority increment reference value for incrementing the interrupt priority value is written in the increment reference value register 11. Then, the increment reference value (A1) of the interrupt priority is set in the down counter 12, and the initial value of the interrupt priority value is set in the up counter 22 (FIG. 2A).

【0017】次に、割込み要求信号によりセットした割
込み優先順位インクリメント基準値をダウンカウントす
る。そして、ダウンカウンタ12が0になった時、アッ
プカウンタ22へ供給するインクリメント信号をアクテ
ィブにし、セットした割込み優先順位値をインクリメン
トして、割込み優先順位値の初期値を+1する(図2
〈b〉)。ただし、アップカウンタ22の値が最大値に
なった時には、インクリメントせず最大値のままとな
る。また、この時に、ダウンカウンタ12へ割込み優先
順位インクリメント基準値(A2)を再設定する(図2
〈b〉)。
Next, the interrupt priority increment reference value set by the interrupt request signal is down-counted. Then, when the down counter 12 becomes 0, the increment signal supplied to the up counter 22 is activated, the set interrupt priority value is incremented, and the initial value of the interrupt priority value is incremented by 1 (FIG. 2).
<B>). However, when the value of the up counter 22 reaches the maximum value, it does not increment and remains at the maximum value. At this time, the down-counter 12 is reset with the interrupt priority increment reference value (A2) (see FIG. 2).
<B>).

【0018】次に、割込み要求信号により、再設定した
割込み優先順位インクリメント基準値をダウンカウント
する。それから、一定周期信号がアクティブになった時
に、アップカウンタ22に割込み優先順位値を、ダウン
カウンタ12に割込み優先順位インクリメント基準値
(A1)を再設定する(図2〈c〉)。
Next, the interrupt request signal is used to down-count the reset interrupt priority increment reference value. Then, when the constant period signal becomes active, the up-counter 22 and the down-counter 12 are reset with the interrupt priority value and the interrupt priority increment reference value (A1), respectively (FIG. 2C).

【0019】このように、基本動作は図2〈a〉,
〈b〉,〈c〉の動作を繰り返す。
Thus, the basic operation is as shown in FIG.
The operations of <b> and <c> are repeated.

【0020】図2〈d〉の動作は、図2〈b〉の動作と
同じ動作で、ダウンカウンタ12が0になったので、割
込み優先順位値を+1する。また、ダウンカウンタ12
へ割込み優先順位インクリメント基準値(A2)を再設
定する。
The operation of FIG. 2D is the same as the operation of FIG. 2B, and since the down counter 12 has become 0, the interrupt priority value is incremented by one. In addition, the down counter 12
The interrupt priority increment reference value (A2) is reset.

【0021】図2〈e〉の動作は、図2〈b〉,〈d〉
の動作と同じ動作で、ダウンカウンタ12が0になった
ので、割込み優先順位値を+1する。この動作での+1
と合わせて、合計で割込み優先順位値は+2になる。ま
た、ダウンカウンタ12へ割込み優先順位インクリメン
ト基準値(A3)を再設定する。
The operation of FIG. 2 <e> is the same as that of FIG. 2 <b>, <d>.
Since the down counter 12 becomes 0 in the same operation as the operation of, the interrupt priority value is incremented by one. +1 in this action
In total, the interrupt priority value becomes +2. Also, the interrupt priority increment reference value (A3) is reset in the down counter 12.

【0022】図2〈f〉の動作は、図2〈c〉の動作と
同じ動作で、一定周期信号がアクティブになったので、
アップカウンタ22に割込み優先順位値を、ダウンカウ
ンタ12に割込み優先順位インクリメント基準値(A
1)を再設定する。
The operation shown in FIG. 2F is the same as the operation shown in FIG. 2C, and the constant period signal becomes active.
The up counter 22 has an interrupt priority value, and the down counter 12 has an interrupt priority increment reference value (A
Reset 1).

【0023】図3は請求項3記載の発明に係わる割込み
優先順位設定回路の構成を示す図である。
FIG. 3 is a diagram showing the configuration of an interrupt priority setting circuit according to the third aspect of the invention.

【0024】図3において、この実施例の特徴とすると
ころは、割込み優先順位変更ブロック1が、割込み要求
の回数の計数値とインクリメント基準値とを比較して両
者が等しくなったことにより割込み要求の回数がインク
リメント基準値に達したことを認識してなることにあ
り、割込み優先順位変更ブロック1は、図1に示したと
同様なインクリメント基準値設定レジスタ11と、イン
クリメント基準値設定レジスタ11に設定されたインク
リメント基準値がセットされるバッファ14と、割込み
要求の回数を計数するアップカウンタ15と、アップカ
ウンタ15の計数値とバッファ14にセットされたイン
クリメント基準値とを比較して両者が一致するとインク
リメント信号を出力するコンパレータ16と、一定周期
信号とインクリメント信号を受けて、インクリメント基
準値設定レジスタ11に設定されたインクリメント基準
値をバッファ14にセットするとともにアップカウンタ
15をクリアする論理和(OR)ゲート17を備えて構
成され、割込み優先順位設定ブロック2は、図1に示し
たと同様に構成されている。
In FIG. 3, the feature of this embodiment is that the interrupt priority change block 1 compares the count value of the number of interrupt requests with the increment reference value, and the two are equal. The interrupt priority changing block 1 sets the same in the increment reference value setting register 11 and the increment reference value setting register 11 as shown in FIG. The buffer 14 in which the increment reference value thus set is set, the up counter 15 for counting the number of interrupt requests, the count value of the up counter 15 and the increment reference value set in the buffer 14 are compared, and if the two match. A comparator 16 that outputs an increment signal, a constant cycle signal and an increment The interrupt priority setting block 2 is configured by including a logical sum (OR) gate 17 which receives a signal and sets the increment reference value set in the increment reference value setting register 11 in the buffer 14 and clears the up counter 15. Is configured similarly to that shown in FIG.

【0025】次に、上記構成における動作を、図4に示
す動作タイミング図を参照して説明する。
Next, the operation of the above configuration will be described with reference to the operation timing chart shown in FIG.

【0026】まず、割込み優先順位設定レジスタ21に
割込みの優先順位を決めるための割込み優先順位値の初
期値を書き込む。次に、インクリメント周期設定レジス
タ11に割込み優先順位値をインクリメントするための
割込み優先順位インクリメント基準値(B1)を書き込
む。そして、バッファ14に割込み優先順位インクリメ
ント基準値(B1)を、アップカウンタ22に割込み優
先順位値の初期値をセットし、アップカウンタ15をク
リアする(図4〈a〉)。
First, an initial value of an interrupt priority value for determining an interrupt priority is written in the interrupt priority setting register 21. Next, an interrupt priority increment reference value (B1) for incrementing the interrupt priority value is written in the increment cycle setting register 11. Then, the interrupt priority increment reference value (B1) is set in the buffer 14, the initial value of the interrupt priority value is set in the up counter 22, and the up counter 15 is cleared (FIG. 4A).

【0027】次に、アップカウンタ15の値とバッファ
14の値は、コンパレータ16で比較されている。割込
み要求信号によりアップカウンタ15をカウントアップ
する。そして、アップカウンタ15の値とセットした割
込み優先順位インクリメント基準値とが一致した時、ア
ップカウンタ22へ供給するインクリメント信号をアク
ティブにし、セットした割込み優先順位値をインクリメ
ントして、割込み優先順位値を+1する(図4
〈b〉)。ただし、アップカウンタ22の値が最大値に
なった時には、インクリメントせず最大値のままとな
る。また、この時に、バッファ14へ割込み優先順位イ
ンクリメント基準値(B2)を再設定し、アップカウン
タ15をクリアする(図4〈b〉)。
Next, the value of the up counter 15 and the value of the buffer 14 are compared by the comparator 16. The up counter 15 is incremented by the interrupt request signal. When the value of the up counter 15 and the set interrupt priority increment reference value match, the increment signal supplied to the up counter 22 is activated and the set interrupt priority value is incremented to set the interrupt priority value. +1 (Fig. 4
<B>). However, when the value of the up counter 22 reaches the maximum value, it does not increment and remains at the maximum value. At this time, the interrupt priority increment reference value (B2) is reset in the buffer 14 and the up counter 15 is cleared (<b> in FIG. 4).

【0028】次に、割込み要求信号によりアップカウン
タ15をカウントアップし、再設定した割込み優先順位
インクリメント基準値とアップカウンタ15の値をコン
パレータで比較する。それから、一定周期信号がアクテ
ィブになった時に、アップカウンタ22に割込み優先順
位値を、バッファ14に割込み優先順位インクリメント
基準値(B1)を再設定する(図4〈c〉)。
Next, the up counter 15 is counted up by the interrupt request signal, and the reset interrupt priority increment reference value and the value of the up counter 15 are compared by the comparator. Then, when the fixed period signal becomes active, the interrupt priority value is reset in the up counter 22 and the interrupt priority increment reference value (B1) is reset in the buffer 14 (FIG. 4C).

【0029】このように、基本動作は図4〈a〉,
〈b〉,〈c〉の動作を繰り返す。
As described above, the basic operation is as shown in FIG.
The operations of <b> and <c> are repeated.

【0030】図4〈d〉の動作は、図4〈b〉の動作と
同じ動作で、アップカウンタ15の値とセットした割込
み優先順位インクリメント基準値とが一致したので、割
込み優先順位値を+1する。また、バッファ14へ割込
み優先順位インクリメント基準値(B2)を再設定す
る。
The operation shown in FIG. 4D is the same as the operation shown in FIG. 4B. Since the value of the up counter 15 and the set interrupt priority increment reference value match, the interrupt priority value is set to +1. To do. Further, the interrupt priority increment reference value (B2) is reset in the buffer 14.

【0031】図4〈e〉の動作は、図4〈b〉,〈d〉
と同じ動作で、アップカウンタ15の値とセットした割
込み優先順位インクリメント基準値とが一致したので、
割込み優先順位値を+1する。図4〈d〉の動作での+
1と合わせて、合計で割込み優先順位値は+2になる。
また、バッファ14へ割込み優先順位インクリメント基
準値(B3)を再設定する。
The operation of FIG. 4E is the same as that of FIGS. 4B and 4D.
In the same operation as, the value of the up counter 15 and the set interrupt priority increment reference value match, so
Increment the interrupt priority value by 1. + In the operation of Fig. 4 <d>
Together with 1, the total interrupt priority value is +2.
Also, the interrupt priority increment reference value (B3) is reset in the buffer 14.

【0032】図4〈f〉の動作は、図4〈c〉の動作と
同じ動作で、一定周期信号がアクティブになったので、
アップカウンタ22に割込み優先順位値を、バッファ1
4に割込み優先順位インクリメント基準値(B1)を再
設定する。
The operation shown in FIG. 4F is the same as the operation shown in FIG. 4C, and the constant period signal becomes active.
The interrupt priority value is stored in the up counter 22 and the buffer 1
4 is reset to the interrupt priority increment reference value (B1).

【0033】上述のように、上記それぞれの実施例にあ
っては、割込み発生回数で割込み優先順位を上げるため
には、インクリメント周期設定レジスタ11に割込み優
先順位インクリメント基準値を書き込むだけでよいた
め、CPUの負担は軽くなる。また、各割込み要因毎に
用意しているので、割込み発生回数をメモリに格納する
必要がないため、メモリを節約できる。
As described above, in each of the above-described embodiments, in order to raise the interrupt priority by the number of interrupt occurrences, it is only necessary to write the interrupt priority increment reference value in the increment cycle setting register 11. The load on the CPU is lightened. Further, since it is prepared for each interrupt factor, it is not necessary to store the number of interrupt occurrences in the memory, so the memory can be saved.

【0034】[0034]

【発明の効果】以上説明したように、この発明によれ
ば、割込み発生回数を数えるのにCPUの負担を軽減
し、割込み要因数分だけのメモリを不要とすることが可
能となる。
As described above, according to the present invention, it is possible to reduce the load on the CPU for counting the number of interrupt occurrences and to eliminate the memory for the number of interrupt factors.

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

【図1】請求項1記載の発明の一実施例に係わる割込み
優先順位設定回路の構成を示す図である。
FIG. 1 is a diagram showing a configuration of an interrupt priority level setting circuit according to an embodiment of the present invention.

【図2】図1に示す回路の動作タイミングを示す図であ
る。
FIG. 2 is a diagram showing an operation timing of the circuit shown in FIG.

【図3】請求項3記載の発明の一実施例に係わる割込み
優先順位設定回路の構成を示す図である。
FIG. 3 is a diagram showing a configuration of an interrupt priority level setting circuit according to an embodiment of the invention as set forth in claim 3;

【図4】図3に示す回路の動作タイミングを示す図であ
る。
FIG. 4 is a diagram showing an operation timing of the circuit shown in FIG.

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

1 割込み優先順位変更ブロック 2 割込み優先順位設定ブロック 11 インクリメント基準値設定レジスタ 12 ダウンカウンタ 13,17 OR回路 14 バッファ 15,22 アップカウンタ 16 コンパレータ 21 割込み優先順位設定レジスタ 1 Interrupt priority change block 2 Interrupt priority setting block 11 Increment reference value setting register 12 Down counter 13, 17 OR circuit 14 Buffer 15, 22 Up counter 16 Comparator 21 Interrupt priority setting register

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 一定周期毎又は変更信号が出力される毎
に割込み優先順位を変更するための変更しきい値が外部
から与えられて設定され、一定周期内に発生する割込み
要求の回数を計数して、計数値が変更しきい値に達する
と変更信号を出力する変更手段と、 一定周期毎に割込み優先順位の初期値が設定され、変更
手段から出力される変更信号にしたがって設定された優
先順位を変更して再設定する設定手段とを有することを
特徴とする割込み優先順位設定回路。
1. A change threshold for changing the interrupt priority is set externally every fixed period or each time a change signal is output, and the number of interrupt requests generated within a fixed period is counted. Then, the changing means that outputs a change signal when the count value reaches the changing threshold, and the initial value of the interrupt priority order is set at regular intervals, and the priority set according to the changing signal output from the changing means. An interrupt priority setting circuit, comprising: setting means for changing and resetting the order.
【請求項2】 前記変更手段は、割込み要求信号の入力
毎に、設定された変更しきい値を減少させることにより
割込み要求の回数が変更しきい値に達したことを認識し
てなることを特徴とする請求項1記載の割込み優先順位
設定回路。
2. The changing means recognizes that the number of interrupt requests has reached the change threshold value by decreasing the set change threshold value each time an interrupt request signal is input. The interrupt priority setting circuit according to claim 1,
【請求項3】 前記変更手段は、割込み要求の回数の計
数値と変更しきい値とを比較して両者が等しくなったこ
とにより割込み要求の回数が変更しきい値に達したこと
を認識してなることを特徴とする請求項1記載の割込み
優先順位設定回路。
3. The changing means recognizes that the number of interrupt requests has reached the change threshold because the count value of the number of interrupt requests and the change threshold are compared and both are equal. The interrupt priority level setting circuit according to claim 1, wherein:
【請求項4】 前記変更しきい値は、割込み要求が発生
する処理が施される対象の外部環境に応じて、複数の変
更しきい値の中から択一的に選択されてなることを特徴
とする請求項1,2又は3記載の割込み優先順位設定回
路。
4. The change threshold is alternatively selected from a plurality of change thresholds according to an external environment of a target to which a process for generating an interrupt request is performed. The interrupt priority setting circuit according to claim 1, 2, or 3.
JP32287593A 1993-12-21 1993-12-21 Interruption priority setting circuit Pending JPH07182181A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32287593A JPH07182181A (en) 1993-12-21 1993-12-21 Interruption priority setting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32287593A JPH07182181A (en) 1993-12-21 1993-12-21 Interruption priority setting circuit

Publications (1)

Publication Number Publication Date
JPH07182181A true JPH07182181A (en) 1995-07-21

Family

ID=18148593

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32287593A Pending JPH07182181A (en) 1993-12-21 1993-12-21 Interruption priority setting circuit

Country Status (1)

Country Link
JP (1) JPH07182181A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8307139B1 (en) * 2003-03-14 2012-11-06 Marvell International Ltd. Method and apparatus for dynamically granting access of a shared resource among a plurality of requestors

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8307139B1 (en) * 2003-03-14 2012-11-06 Marvell International Ltd. Method and apparatus for dynamically granting access of a shared resource among a plurality of requestors
US9037767B1 (en) 2003-03-14 2015-05-19 Marvell International Ltd. Method and apparatus for dynamically granting access of a shared resource among a plurality of requestors

Similar Documents

Publication Publication Date Title
US5542076A (en) Method and apparatus for adaptive interrupt servicing in data processing system
US5682554A (en) Apparatus and method for handling data transfer between a general purpose computer and a cooperating processor
US6700582B2 (en) Method and system for buffer management
JPH02165721A (en) Pulse output device
US6976110B2 (en) Method and apparatus for reducing interrupt latency by dynamic buffer sizing
JPH07182181A (en) Interruption priority setting circuit
US9317096B2 (en) Performance aware idle power management
EP0594377B1 (en) Method and apparatus for unstacking registers in a data processing system
JP2001189935A (en) Mpeg decoder using common use memory
JP3105554B2 (en) Interrupt controller
JPH03147157A (en) Information processor
KR101014524B1 (en) Method of reading data coherently
KR100283146B1 (en) DS Interrupt Control Device
JPH0736820A (en) I/o controller
US7444447B2 (en) Arrangement, device and method for controlling bus request signal generation
JP3206013B2 (en) Direct memory access transfer controller
JPH05173923A (en) Input/output data transfer processing device
JP2020149597A (en) Control device and control method
JP3353368B2 (en) Bus relay device
KR20040063404A (en) Apparatus and Method for Controlling Refresh Operation of Data Processing System
JP2000207211A (en) Arithmetic unit
JPH03263145A (en) Magnetic disk controller
JPH08166887A (en) Method for recovering from interruption processing
JPH02304624A (en) Information processor
JPH03134732A (en) Buffer controller