JPH0749793A - Interrupt controller - Google Patents
Interrupt controllerInfo
- Publication number
- JPH0749793A JPH0749793A JP19649093A JP19649093A JPH0749793A JP H0749793 A JPH0749793 A JP H0749793A JP 19649093 A JP19649093 A JP 19649093A JP 19649093 A JP19649093 A JP 19649093A JP H0749793 A JPH0749793 A JP H0749793A
- Authority
- JP
- Japan
- Prior art keywords
- interrupt
- level
- input
- signal
- request signal
- 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
Links
- 102100030147 Integrator complex subunit 7 Human genes 0.000 description 5
- 101710092890 Integrator complex subunit 7 Proteins 0.000 description 5
- 230000002093 peripheral effect Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 102100024061 Integrator complex subunit 1 Human genes 0.000 description 2
- 101710092857 Integrator complex subunit 1 Proteins 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 101710092886 Integrator complex subunit 3 Proteins 0.000 description 1
- 102100039131 Integrator complex subunit 5 Human genes 0.000 description 1
- 101710092888 Integrator complex subunit 5 Proteins 0.000 description 1
- 102100025254 Neurogenic locus notch homolog protein 4 Human genes 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
Landscapes
- Bus Control (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、マイクロコンピュータ
等における割込みコントーラに関し、特に割込みレベル
をソフト的に変更可能な割込みコントローラに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an interrupt controller in a microcomputer or the like, and more particularly to an interrupt controller whose interrupt level can be changed by software.
【0002】[0002]
【従来の技術】従来より、中央制御装置(CPU)がプ
ログラムの実行中に、周辺ハードウェアから非同期に発
生する処理要求でプログラムの実行を一時中断し、その
処理要求に応じたプログラムの実行を起動させるための
割込み制御が行われており、その割込みを行うための装
置として割込みコントローラが知られている。2. Description of the Related Art Conventionally, during execution of a program, a central control unit (CPU) suspends the execution of the program by a processing request asynchronously generated from peripheral hardware, and executes the program in response to the processing request. Interrupt control for starting is performed, and an interrupt controller is known as a device for performing the interrupt.
【0003】そして、この従来の割込みコントローラに
おいては、割込み要因(割込み要求の発生源)に対し
て、割込みの優先度を決めるための割込みレベルを予め
一意的に決定し、その割込みレベルに応じてCPUに割
込み信号を送出していた。CPUは、この割込み信号の
順番に従って処理を行っていた。In this conventional interrupt controller, the interrupt level for determining the priority of the interrupt is uniquely determined beforehand for the interrupt factor (source of the interrupt request), and the interrupt level is determined according to the interrupt level. An interrupt signal was sent to the CPU. The CPU performs processing according to the order of the interrupt signals.
【0004】[0004]
【発明が解決しようとする課題】しかしながら、従来の
割込みコントローラでは割込みレベルを予めハードウェ
アにて決定しているため、CPUの処理内容によって
は、処理効率の向上が図れないという不都合が生じてし
まう。例えばプリンタについて考えてみると、シリアル
データの方がパラレルデータよりも割込み優先度が高く
なるように割込みレベルが設定されていると、どのよう
な場合であってもシリアルデータの方がパラレルデータ
よりも優先されて割込みされていくことになる。しかし
接続する周辺機器の違い等によって制御システムが変わ
ればパラレルデータの方を優先して割込みさせる方がC
PUの処理効率上は好ましい場合もある。そのような場
合にでも従来の装置では、常にパラレルデータの方が後
回しにされることとなり、この割込み優先順位はそのシ
ステムの目的に適さないこととなってしまう。However, in the conventional interrupt controller, since the interrupt level is determined in advance by hardware, there is a disadvantage that the processing efficiency cannot be improved depending on the processing contents of the CPU. . Considering a printer, for example, if the interrupt level is set so that serial data has a higher interrupt priority than parallel data, serial data will always have a higher priority than parallel data. Will also be prioritized and interrupted. However, if the control system changes due to differences in the connected peripherals, etc.
It may be preferable in terms of PU processing efficiency. Even in such a case, in the conventional device, the parallel data is always postponed, and this interrupt priority is not suitable for the purpose of the system.
【0005】つまり、割込み要因に対して優先順位が固
定されている従来の割込みコントローラでは、応用毎に
異なる各割込み要因の重要度に最適な割込み要求の優先
順位制御を行うことが不可能であった。そこで本発明
は、上記の課題を解決することを目的とし、割込みレベ
ルを容易に変更可能とすることで、中央制御装置の処理
効率の向上に寄与する割込みコントローラを提供するこ
とにある。That is, in the conventional interrupt controller in which the priority order is fixed with respect to the interrupt factor, it is impossible to perform the priority control of the interrupt request most suitable for the importance of each interrupt factor which is different for each application. It was SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide an interrupt controller that aims to solve the above-mentioned problems, by making it possible to easily change the interrupt level, thereby contributing to the improvement of the processing efficiency of the central controller.
【0006】[0006]
【課題を解決するための手段】かかる目的を達成するた
めになされた本請求項1に記載の割込みコントローラ
は、入力された割込み要求信号を、所定の割込みレベル
に基づく割込み優先順位に従って、中央制御装置に割込
みさせるための割込みコントローラであって、設定可能
な複数の割込レベルに対応して設けられ、所定の割込み
要求信号を一方の入力とすると共に出力側がプライオリ
ティエンコーダに接続された複数の2入力OR回路と、
各2入力OR回路への他方の入力となるレベル信号を出
力すると共に、上記中央制御装置から割込みレベル設定
信号を入力し、その割込みレベル設定信号に対応する上
記レベル信号のみをアクティブにするレベルデコーダと
を備えることによって、上記所定の割込み要求信号に対
する割込みレベルを上記中央制御装置からの割込みレベ
ル設定信号で可変にしたことを特徴とする。The interrupt controller according to the present invention, which has been made to achieve the above object, centrally controls an input interrupt request signal in accordance with an interrupt priority order based on a predetermined interrupt level. An interrupt controller for interrupting a device, which is provided corresponding to a plurality of interrupt levels that can be set, receives a predetermined interrupt request signal as one input, and outputs a plurality of 2 connected to a priority encoder. An input OR circuit,
A level decoder which outputs a level signal to be the other input to each 2-input OR circuit, inputs an interrupt level setting signal from the central control unit, and activates only the level signal corresponding to the interrupt level setting signal By including the above, the interrupt level for the predetermined interrupt request signal is made variable by the interrupt level setting signal from the central control unit.
【0007】また、請求項2に記載の割込みコントロー
ラは、上記請求項1に記載の2入力OR回路に加え、各
2入力OR回路への他方の入力となるレベル信号を出力
すると共に、そのレベル信号の内のどれをアクティブに
するかを任意に設定可能なディップスイッチを備えるこ
とによって、上記所定の割込み要求信号に対する割込み
レベルをディップスイッチの操作により可変にしたこと
を特徴とする。In addition to the 2-input OR circuit according to claim 1, the interrupt controller according to claim 2 outputs a level signal which is the other input to each 2-input OR circuit, and the level thereof. By providing a dip switch capable of arbitrarily setting which of the signals is activated, the interrupt level for the predetermined interrupt request signal is made variable by the operation of the dip switch.
【0008】なお、請求項1あるいは2記載の割込みコ
ントローラにおいては、割込みレベルを可変とする対象
である割込み要求信号の数は限定されない。一つだけで
もよいし、全ての割込み要求信号に対して割込みレベル
を可変としてもよい。請求項1記載のものであれば、そ
の対象となる割込み要求信号毎に、上記複数の2入力O
R回路とレベルデコーダを備えることとなり、請求項2
記載のものであれば、割込み要求信号毎に、上記複数の
2入力OR回路とディップスイッチを備えることとな
る。In the interrupt controller according to the first or second aspect, the number of interrupt request signals for which the interrupt level is variable is not limited. There may be only one, or the interrupt level may be variable for all interrupt request signals. According to the first aspect of the invention, the plurality of two-input O is provided for each target interrupt request signal.
An R circuit and a level decoder are provided, and the R circuit and the level decoder are provided.
In the case of the description, the plurality of 2-input OR circuits and the DIP switch are provided for each interrupt request signal.
【0009】また、2入力OR回路は設定可能な複数の
割込レベルに対応して設けられているが、この「設定可
能な複数の割込みレベル」とは2種類以上であればよ
く、例えば、割込みコントローラ自身の割込みレベルが
8種類あるものを考えると、その8種類の内の任意の2
種類から8種類全てまでが該当する。The two-input OR circuit is provided corresponding to a plurality of interrupt levels that can be set, but the "plurality of interrupt levels that can be set" may be two or more types. Considering that the interrupt controller itself has 8 interrupt levels, any 2 of the 8 interrupt levels
From type to all eight types are applicable.
【0010】[0010]
【作用】上記構成を有する請求項1記載の割込みコント
ーラによれば、中央制御装置からレベルデコーダに割込
みレベル設定信号を入力すると、レベルデコーダはその
割込みレベル設定信号に応じた割込みレベルに対応する
レベル信号のみをアクティブにする。2入力OR回路へ
の2つの入力は、レベルデコーダからのレベル信号と入
力される割込み要求信号であり、割込み要求信号は、ア
クティブにされたレベル信号の入力する2入力OR回路
のみを通過して、プライオリティエンコーダに入力す
る。According to the interrupt controller having the above structure, when the interrupt level setting signal is inputted from the central control unit to the level decoder, the level decoder causes the level corresponding to the interrupt level corresponding to the interrupt level setting signal. Activate only the signal. The two inputs to the 2-input OR circuit are an interrupt request signal input with the level signal from the level decoder, and the interrupt request signal passes through only the 2-input OR circuit to which the activated level signal is input. , Input to the priority encoder.
【0011】従って、その通過した2入力OR回路に対
応する割込みレベルに設定することができる。すなわ
ち、中央制御装置からの割込みレベル設定信号によっ
て、所定の割込み要求信号の割込みレベルを変更させる
ことができる。より明確にするために、具体例として例
えばプリンタについて考えてみる。初期設定ではシリア
ルデータの割込みレベルが「4」、パラレルデータの割
込みレベルが「3」と設定され、シリアルデータの方が
割込み優先度が高くなるように設定されているとする。
なお、割込みレベルが大きくなるほど優先度が高くなる
ようにされているものとする。Therefore, it is possible to set the interrupt level corresponding to the passed 2-input OR circuit. That is, the interrupt level of the predetermined interrupt request signal can be changed by the interrupt level setting signal from the central controller. For more clarity, consider a printer, for example. In the initial setting, the interrupt level of serial data is set to "4", the interrupt level of parallel data is set to "3", and the serial data is set to have a higher interrupt priority.
It is assumed that the higher the interrupt level, the higher the priority.
【0012】接続する周辺機器の違い等によって制御シ
ステムが変わればパラレルデータの方を優先して割込み
させる方が中央制御装置の処理効率上は好ましい場合も
あるので、中央制御装置はそのような場合に、割込み要
求信号の一つであるパラレルデータに対応して設けられ
ているレベルデコーダに対して、割込みレベルを「5」
とする割込みレベル設定信号を出力する。すると、割込
みレベル「5」に対応する2入力OR回路のみがアクテ
ィブとなって割込み要求信号はプライオリティエンコー
ダの割込みレベル「5」に対応する端子に入力する。If the control system changes due to differences in the connected peripheral devices, it may be preferable in terms of processing efficiency of the central control unit to interrupt the parallel data first. The interrupt level is set to "5" for the level decoder provided corresponding to the parallel data which is one of the interrupt request signals.
The interrupt level setting signal is output. Then, only the 2-input OR circuit corresponding to the interrupt level "5" becomes active, and the interrupt request signal is input to the terminal corresponding to the interrupt level "5" of the priority encoder.
【0013】このようにしてパラレルデータの割込みレ
ベルを「5」にすれば、シリアルデータよりも優先して
割込みされることとなる。つまり、中央制御装置が置か
れている状態等に応じて各割込み要因の重要度が異なる
場合にでも、最適な割込み要求の優先順位制御を行うこ
とが可能となり、中央制御装置の処理効率の向上に寄与
することができる。By setting the interrupt level of the parallel data to "5" in this way, the interrupt is given priority over the serial data. In other words, even if the importance of each interrupt factor differs depending on the state in which the central controller is placed, it becomes possible to perform optimal priority control of interrupt requests, and improve the processing efficiency of the central controller. Can contribute to.
【0014】一方、請求項2に記載の割込みコントロー
ラによれば、2入力OR回路へのレベル信号の内のどれ
をアクティブにするかを、ディップスイッチによって任
意に設定可能である。従って、所定の割込み要求信号に
対する割込みレベルをディップスイッチの操作により変
更することで、上記請求項1記載のものと同様に、中央
制御装置が置かれている状態等に応じて各割込み要因の
重要度が異なる場合にでも、最適な割込み要求の優先順
位制御を行うことが可能となり、処理効率の向上に寄与
することができる。On the other hand, according to the interrupt controller of the second aspect, which of the level signals to the 2-input OR circuit is activated can be arbitrarily set by the DIP switch. Therefore, by changing the interrupt level with respect to a predetermined interrupt request signal by operating the DIP switch, the importance of each interrupt factor depends on the state in which the central control unit is placed, etc., as in the case of the above-mentioned claim 1. Even if the degree is different, it is possible to perform the optimal priority control of the interrupt request, which can contribute to the improvement of the processing efficiency.
【0015】[0015]
【実施例】以下、本発明の実施例を図面と共に説明す
る。図2は本発明の一実施例である割込みコントローラ
1の概略構成を示すブロック図である。本割込みコント
ローラ1は、大きくは割込み制御回路10とプライオリ
ティエンコーダ20とから構成されており、プライオリ
ティエンコーダ20は中央制御装置(以下CPUと記
す)30と接続されている。そして、本割込みコントロ
ーラ1には割込み要求信号INTa〜INTnが入力
し、その割込み要求信号INTa〜INTnは後述する
割込み制御回路10を介して、プライオリティエンコー
ダ20の入力INT0〜INT7となる。Embodiments of the present invention will be described below with reference to the drawings. FIG. 2 is a block diagram showing a schematic configuration of the interrupt controller 1 which is an embodiment of the present invention. The interrupt controller 1 is mainly composed of an interrupt control circuit 10 and a priority encoder 20, and the priority encoder 20 is connected to a central control unit (hereinafter referred to as CPU) 30. Then, the interrupt request signals INTa to INTn are input to the interrupt controller 1, and the interrupt request signals INTa to INTn are input INT0 to INT7 of the priority encoder 20 via an interrupt control circuit 10 described later.
【0016】この入力INT0〜INT7の内、INT
0は割込みがないということなので、「H」に接続して
も「L」に接続しても割込み動作に変化はないが、IN
T0入力を「L」に接続することによりプライオリティ
エンコーダ20の出力はハイインピーダンス状態ではな
くイネーブル状態となる。またINT1〜INT7はそ
れぞれ割込みレベルが「1」〜「7」の入力であること
を示しており、優先度はレベル「1」が最も低く、レベ
ル「7」が最も高くなる。プライオリティエンコーダ2
0により、割込み要求が出されているレベル以下の割込
みは無視されることとなる。このように割込み要求信号
INTa〜INTnは、プライオリティエンコーダ20
のどの入力INT0〜INT7となるかによってその割
込みレベルが決定される。Of these inputs INT0 to INT7, INT
0 means that there is no interrupt, so there is no change in interrupt operation when connected to "H" or "L", but IN
By connecting the T0 input to "L", the output of the priority encoder 20 is in the enable state instead of the high impedance state. Further, INT1 to INT7 indicate that the interrupt levels are inputs of "1" to "7", respectively, and the priority level "1" is the lowest and the level "7" is the highest. Priority encoder 2
With 0, interrupts below the level at which the interrupt request is issued are ignored. In this way, the interrupt request signals INTa to INTn are transmitted to the priority encoder 20.
The interrupt level is determined by which of the inputs INT0 to INT7 of the input.
【0017】そして、本実施例の割込みコントローラ1
は、その割込みレベルを、CPU30からの割込みレベ
ル設定信号(図1)によって変更可能にしたものであ
る。以下、割込みレベルを変更可能にするための構成に
ついて説明するが、理解を容易にするために、割込み要
求信号INTaに対してのみ変更可能な場合を例に取っ
て説明を進める。従って、INTa以外の割込み要求信
号INTb〜INTnについては、割込み制御回路10
においては特別な回路等を介することなくスルーして、
従来と同様に所定の割込みレベルの入力INT0〜IN
T7に予め設定されているものとする。Then, the interrupt controller 1 of this embodiment
Indicates that the interrupt level can be changed by an interrupt level setting signal (FIG. 1) from the CPU 30. Hereinafter, a configuration for changing the interrupt level will be described. However, for ease of understanding, the description will be given taking as an example a case where only the interrupt request signal INTa can be changed. Therefore, for the interrupt request signals INTb to INTn other than INTa, the interrupt control circuit 10
In, through without passing through a special circuit,
Inputs INT0-IN of a predetermined interrupt level as in the past
It is assumed that it is preset to T7.
【0018】図1には、図2の割込み制御回路10にお
ける、割込み要求信号INTaに関連する構成のみを示
す。8つの2入力OR回路5−0〜5−7を備え、その
出力側はプライオリティエンコーダ20に接続されてい
る。2入力OR回路5−0の出力はプライオリティエン
コーダ20のレベル入力INT0となり、同様に2入力
OR回路5−1の出力はレベル入力INT1に、という
具合いに、8つのレベル入力INT0〜7にそれぞれ接
続されている。FIG. 1 shows only the configuration related to the interrupt request signal INTa in the interrupt control circuit 10 of FIG. Eight two-input OR circuits 5-0 to 5-7 are provided, and the output side thereof is connected to the priority encoder 20. The output of the 2-input OR circuit 5-0 becomes the level input INT0 of the priority encoder 20, and similarly, the output of the 2-input OR circuit 5-1 is connected to the level input INT1, and so on, to the eight level inputs INT0 to 7, respectively. Has been done.
【0019】一方、各2入力OR回路5−0〜5−7の
2つの入力の内の一つは割込み要求信号INTaであ
り、他方の入力はレベルデコーダ3からのものである。
レベルデコーダ3の出力ポートQ0〜Q7は8つあり、
出力ポートQ0からの出力信号は2入力OR回路5−0
に入力し、出力ポートQ1からの出力信号は2入力OR
回路5−1に入力するという具合いに、8つの出力ポー
トQ0〜Q7からの出力信号が8つの2入力OR回路5
−0〜5−7にそれぞれ入力する。On the other hand, one of the two inputs of each 2-input OR circuit 5-0 to 5-7 is the interrupt request signal INTa, and the other input is from the level decoder 3.
There are eight output ports Q0 to Q7 of the level decoder 3,
The output signal from the output port Q0 is a 2-input OR circuit 5-0.
Input to the output port and the output signal from the output port Q1 is a 2-input OR
The input signals to the circuit 5-1 are such that the output signals from the eight output ports Q0 to Q7 are eight 2-input OR circuits 5.
Input to -0 to 5-7 respectively.
【0020】また、レベルデコーダ3は内部レジスタ4
0からの信号を入力するようにされており、3つのセレ
クト入力S0〜S2となる。CPU30からの割込みレ
ベル設定信号が「1」であれば、(S2,S1,S0)
が(0,0,1)となり、出力ポートQ1がアクティブ
となる。割込みレベル設定信号が「7」であれば、(S
2,S1,S0)が(1,1,1)となり、出力ポート
Q7がアクティブとなる。このようにして、CPU30
からの割込みレベル設定信号に対応する出力ポートQ0
〜Q7ポートのみがアクティブとなるのである。The level decoder 3 has an internal register 4
The signal from 0 is input, and the three select inputs S0 to S2 are provided. If the interrupt level setting signal from the CPU 30 is "1" (S2, S1, S0)
Becomes (0, 0, 1), and the output port Q1 becomes active. If the interrupt level setting signal is "7", (S
2, S1, S0) becomes (1,1,1), and the output port Q7 becomes active. In this way, the CPU 30
Output port Q0 corresponding to the interrupt level setting signal from
Only the ~ Q7 port is active.
【0021】従って、CPU30から割込みレベルを
「3」に設定するための割込みレベル設定信号が送出さ
れると、内部レジスタ40からは(S2,S1,S0)
=(0,1,1)となる信号が出され、レベルデコーダ
3では、対応する出力ポートQ3のみがアクティブとな
る。そのため、割込み要求信号INTaは、アクティブ
にされたレベル信号の入力する2入力OR回路5−3の
みを通過して、プライオリティエンコーダ20のレベル
入力INT3となる。同様に、CPU30より割込みレ
ベル「5」の設定信号を送出すれば、割込み要求信号I
NTaはプライオリティエンコーダ20のレベル入力I
NT5となる。Therefore, when the interrupt level setting signal for setting the interrupt level to "3" is sent from the CPU 30, the internal register 40 outputs (S2, S1, S0).
= (0,1,1), the level decoder 3 activates only the corresponding output port Q3. Therefore, the interrupt request signal INTa passes through only the 2-input OR circuit 5-3 to which the activated level signal is input, and becomes the level input INT3 of the priority encoder 20. Similarly, if a setting signal of interrupt level "5" is sent from the CPU 30, the interrupt request signal I
NTa is the level input I of the priority encoder 20
It will be NT5.
【0022】このように、CPU30からの割込みレベ
ル設定信号により、割込み要求信号INTaの割込みレ
ベルを変更させることができる。割込みレベルを変更す
ることによる効果を明確にするために、具体例として例
えばプリンタについて考えてみる。初期設定ではシリア
ルデータの割込みレベルが「4」、パラレルデータの割
込みレベルが「3」と設定され、シリアルデータの方が
割込み優先度が高くなるように設定されているとする。
また、上述の割込み要求信号INTaがパラレルデータ
に関するものであるとする。Thus, the interrupt level of the interrupt request signal INTa can be changed by the interrupt level setting signal from the CPU 30. To clarify the effect of changing the interrupt level, consider a printer as a specific example. In the initial setting, the interrupt level of serial data is set to "4", the interrupt level of parallel data is set to "3", and the serial data is set to have a higher interrupt priority.
Further, it is assumed that the interrupt request signal INTa described above relates to parallel data.
【0023】接続する周辺機器の違い等によって制御シ
ステムが変わればパラレルデータの方を優先して割込み
させる方がCPU30の処理効率上は好ましい場合もあ
る。従って、CPU30はそのような場合に、割込み要
求信号INTaであるパラレルデータに対応して設けら
れているレベルデコーダ3に対して、割込みレベルを
「5」とする割込みレベル設定信号を出力する。する
と、割込みレベル「5」に対応する2入力OR回路5−
5のみがアクティブとなって割込み要求信号はプライオ
リティエンコーダ20の割込みレベル「5」に対応する
レベル入力INT5となる。If the control system changes due to the difference in the connected peripheral devices, it may be preferable in terms of the processing efficiency of the CPU 30 to preferentially interrupt the parallel data. Therefore, in such a case, the CPU 30 outputs the interrupt level setting signal for setting the interrupt level to "5" to the level decoder 3 provided corresponding to the parallel data which is the interrupt request signal INTa. Then, the 2-input OR circuit 5-corresponding to the interrupt level "5"
Only 5 becomes active and the interrupt request signal becomes the level input INT5 corresponding to the interrupt level "5" of the priority encoder 20.
【0024】このようにしてパラレルデータの割込みレ
ベルを「5」にすれば、割込みレベルが「4」のシリア
ルデータよりも優先して割込みされることとなる。つま
り、CPU30が置かれている状態等に応じて各割込み
要因の重要度が異なる場合にでも、最適な割込み要求の
優先順位制御を行うことが可能となり、CPU30の処
理効率の向上に寄与することができる。When the interrupt level of the parallel data is set to "5" in this way, the interrupt is preferentially interrupted over the serial data having the interrupt level of "4". That is, even when the importance of each interrupt factor differs depending on the state in which the CPU 30 is placed, it becomes possible to perform the optimum priority control of interrupt requests, and contribute to the improvement of the processing efficiency of the CPU 30. You can
【0025】上記実施例では、割込みレベルを可変とす
る対象である割込み要求信号はINTa(パラレルデー
タに対応するもの)の一つだけとしたが、その数は限定
されない。一つだけでもよいし、上述例で言えばパラレ
ルデータ及びシリアルデータに対応するものを両方とも
割込みレベル可変としてもよいし、全ての割込み要求信
号INTa〜INTnに対して割込みレベルを可変とし
てもよい。その場合、その対象となる割込み要求信号I
NTa〜INTn毎に、上記8つの2入力OR回路5−
0〜5−7とレベルデコーダ3を備えることとなる。In the above embodiment, only one interrupt request signal, INTa (corresponding to parallel data), whose interrupt level is variable is used, but the number is not limited. Only one, in the case of the above example, both the ones corresponding to parallel data and serial data may have variable interrupt levels, or the interrupt levels may be variable for all interrupt request signals INTa to INTn. . In that case, the target interrupt request signal I
For each of NTa to INTn, the above eight 2-input OR circuits 5-
0-5-7 and the level decoder 3 will be provided.
【0026】また、上記実施例では、8つの2入力OR
回路5−0〜5−7を備えて、プライオリティエンコー
ダ20の全てのレベル入力INT0〜INT7に接続し
たが、この接続は2種類以上であればよい。例えば、上
記実施例のようにプライオリティエンコーダ20の割込
みレベルが8種類あるものを考えると、その8種類の内
の任意の2種類でもよいし、上記実施例のように8種類
全てでもよい。In the above embodiment, eight 2-input ORs are used.
The circuits 5-0 to 5-7 are provided and connected to all the level inputs INT0 to INT7 of the priority encoder 20, but this connection may be two or more types. For example, considering that the priority encoder 20 has eight interrupt levels as in the above embodiment, any two of the eight interrupt levels may be used, or all eight kinds may be used as in the above embodiment.
【0027】以上本発明の実施例について説明したが、
本発明はこうした実施例に限定されるものではなく、本
発明の趣旨を逸脱しない範囲において種々なる態様で実
施しえることは勿論である。例えば、上記実施例では、
CPU30からのレベル設定信号によって2入力OR回
路5−0〜5−7へのレベル信号の内のどれをアクティ
ブにするかを制御したが、レベルデコーダ3の代わりに
ディップスイッチ等を用いて任意に設定するようにして
もよい。所定の割込み要求信号に対する割込みレベルを
ディップスイッチの操作により変更可能とすることで、
上記実施例と同様に、CPU置が置かれている状態等に
応じて各割込み要因の重要度が異なる場合にでも、最適
な割込み要求の優先順位制御を行うことが可能となり、
処理効率の向上に寄与することができるという効果を奏
する。The embodiment of the present invention has been described above.
The present invention is not limited to these examples, and it goes without saying that the present invention can be implemented in various modes without departing from the spirit of the present invention. For example, in the above embodiment,
The level setting signal from the CPU 30 controls which of the level signals to the 2-input OR circuits 5-0 to 5-7 is activated. However, instead of the level decoder 3, a dip switch or the like is used to arbitrarily set the level signal. It may be set. By changing the interrupt level for a predetermined interrupt request signal by operating the DIP switch,
Similar to the above embodiment, even when the importance of each interrupt factor is different depending on the state where the CPU is placed, it is possible to perform the optimum priority control of interrupt requests.
The effect that it can contribute to improvement of processing efficiency is produced.
【0028】[0028]
【発明の効果】以上詳述したように本発明の情報処理装
置によれば、割込みレベルを容易に変更することができ
るので、中央制御装置が置かれている状態等に応じて各
割込み要因の重要度が異なる場合にでも、最適な割込み
要求の優先順位制御を行うことが可能となり、中央制御
装置の処理効率の向上に寄与することができる。As described above in detail, according to the information processing apparatus of the present invention, the interrupt level can be easily changed, so that the interrupt factor of each interrupt factor can be changed according to the state in which the central control unit is placed. Even if the degrees of importance are different, it is possible to perform optimum priority control of interrupt requests, which can contribute to improvement of the processing efficiency of the central controller.
【0029】特に請求項1に記載の割込みコントーラに
よれば、中央制御装置からの割込みレベル設定信号によ
って、任意に変更することができる。また、請求項2に
記載の割込みコントローラによれば、ディップスイッチ
によって容易に変更可能である。Particularly, according to the interrupt controller of the first aspect, it can be arbitrarily changed by the interrupt level setting signal from the central control unit. Further, according to the interrupt controller of the second aspect, it can be easily changed by the DIP switch.
【図1】 割込み制御回路10における、割込み要求信
号INTaに関連する構成を示す回路図である。FIG. 1 is a circuit diagram showing a configuration related to an interrupt request signal INTa in an interrupt control circuit 10.
【図2】 一実施例である割込みコントローラの概略構
成を示すブロック図である。FIG. 2 is a block diagram showing a schematic configuration of an interrupt controller which is an embodiment.
1…割込みコントローラ、 3…レベルデコー
ダ 5−0〜5−7…2入力OR回路、 10…割込み制御
回路、20…プライオリティエンコーダ、 30…中央
制御装置(CPU)DESCRIPTION OF SYMBOLS 1 ... Interrupt controller, 3 ... Level decoder 5-0-5-7 ... 2-input OR circuit, 10 ... Interrupt control circuit, 20 ... Priority encoder, 30 ... Central control unit (CPU)
Claims (2)
込みレベルに基づく割込み優先順位に従って、中央制御
装置に割込みさせるための割込みコントローラであっ
て、 設定可能な複数の割込レベルに対応して設けられ、所定
の割込み要求信号を一方の入力とすると共に出力側がプ
ライオリティエンコーダに接続された複数の2入力OR
回路と、 各2入力OR回路への他方の入力となるレベル信号を出
力すると共に、上記中央制御装置から割込みレベル設定
信号を入力し、その割込みレベル設定信号に対応する上
記レベル信号のみをアクティブにするレベルデコーダ
と、 を備えることによって、上記所定の割込み要求信号に対
する割込みレベルを上記中央制御装置からの割込みレベ
ル設定信号で可変にしたことを特徴とする割込みコント
ローラ。1. An interrupt controller for interrupting an input interrupt request signal to a central control unit according to an interrupt priority order based on a predetermined interrupt level, which corresponds to a plurality of interrupt levels that can be set. A plurality of two-input ORs, each of which has a predetermined interrupt request signal as one input and whose output side is connected to the priority encoder
Circuit, and a level signal which is the other input to each 2-input OR circuit is output, an interrupt level setting signal is input from the central control unit, and only the level signal corresponding to the interrupt level setting signal is activated. An interrupt controller, wherein the interrupt level for the predetermined interrupt request signal is made variable by an interrupt level setting signal from the central control unit.
込みレベルに基づく割込み優先順位に従って、中央制御
装置に割込みさせるための割込みコントローラであっ
て、 設定可能な複数の割込レベルに対応して設けられ、所定
の割込み要求信号を一方の入力とすると共に出力側がプ
ライオリティエンコーダに接続された複数の2入力OR
回路と、 各2入力OR回路への他方の入力となるレベル信号を出
力すると共に、そのレベル信号の内のどれをアクティブ
にするかを任意に設定可能なディップスイッチと、 を備えることによって、上記所定の割込み要求信号に対
する割込みレベルを上記ディップスイッチの操作により
可変にしたことを特徴とする割込みコントローラ。2. An interrupt controller for causing an input interrupt request signal to be interrupted by a central control unit in accordance with an interrupt priority order based on a predetermined interrupt level, corresponding to a plurality of interrupt levels that can be set. A plurality of two-input ORs, each of which has a predetermined interrupt request signal as one input and whose output side is connected to the priority encoder
And a dip switch capable of arbitrarily setting which of the level signals is to be activated as well as outputting a level signal which is the other input to each two-input OR circuit, An interrupt controller characterized in that an interrupt level for a predetermined interrupt request signal is made variable by operating the dip switch.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP19649093A JPH0749793A (en) | 1993-08-06 | 1993-08-06 | Interrupt controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP19649093A JPH0749793A (en) | 1993-08-06 | 1993-08-06 | Interrupt controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0749793A true JPH0749793A (en) | 1995-02-21 |
Family
ID=16358647
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP19649093A Pending JPH0749793A (en) | 1993-08-06 | 1993-08-06 | Interrupt controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0749793A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH08314729A (en) * | 1995-05-23 | 1996-11-29 | Nec Niigata Ltd | Interruption controller control circuit |
-
1993
- 1993-08-06 JP JP19649093A patent/JPH0749793A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH08314729A (en) * | 1995-05-23 | 1996-11-29 | Nec Niigata Ltd | Interruption controller control circuit |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH04318654A (en) | Redirection system for interruption to microprocessor | |
| JPH02156334A (en) | Information processor | |
| JPH0749793A (en) | Interrupt controller | |
| JPH09179749A (en) | Emulation device | |
| JPH0758470B2 (en) | Virtual machine interrupt control method | |
| JPS61166631A (en) | Microprogram control processor | |
| JPH02176832A (en) | Microcomputer | |
| JP2734992B2 (en) | Information processing device | |
| JP2597729B2 (en) | Microcomputer | |
| SU1640701A1 (en) | Data input device into computer from peripheral group | |
| JPS63271642A (en) | Interruption priority control circuit | |
| JPS61151745A (en) | Interruption processing system | |
| JPH02309442A (en) | Microprocessor | |
| KR970002673A (en) | Programmable Interrupt Control Device | |
| KR950020194A (en) | Shared device of Inter Tripline | |
| JPH0749791A (en) | Interrupt controller | |
| JPH03263128A (en) | Microprocessor | |
| JPH04167043A (en) | portable electronics | |
| JPH05120031A (en) | Micro computer | |
| JPH04158485A (en) | Microprocessor | |
| JPH0374751A (en) | Input/output controller | |
| JPH02114354A (en) | Interruption control unit | |
| JPH01229332A (en) | Information processor | |
| JPH04141734A (en) | Internal register access circuit | |
| JPH0275030A (en) | Virtual machine input/output control method |