JP2003067197A - Interrupt control circuit - Google Patents
Interrupt control circuitInfo
- Publication number
- JP2003067197A JP2003067197A JP2001253281A JP2001253281A JP2003067197A JP 2003067197 A JP2003067197 A JP 2003067197A JP 2001253281 A JP2001253281 A JP 2001253281A JP 2001253281 A JP2001253281 A JP 2001253281A JP 2003067197 A JP2003067197 A JP 2003067197A
- Authority
- JP
- Japan
- Prior art keywords
- interrupt
- signal
- signals
- circuit
- selection
- 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.)
- Granted
Links
Landscapes
- Bus Control (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、マイクロコンピュ
ータにおける割り込み制御回路に関し、特に、複数の割
り込み信号を2つの割り込み要求信号に割り振る機能を
有する割り込み制御回路に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an interrupt control circuit in a microcomputer, and more particularly to an interrupt control circuit having a function of allocating a plurality of interrupt signals to two interrupt request signals.
【0002】[0002]
【従来の技術】近年、マイクロコンピュータは汎用性を
高めるため複数のタイマー回路や外部との通信を行うた
めのインターフェース回路や電源電圧の例えば瞬停など
を検出する減電圧検出回路等を内蔵するようになった。
このような周辺回路を内蔵するマイクロコンピュータに
おいては、夫々の周辺回路がCPUに対してその夫々に
対応した処理を要求し、その夫々の要求信号を調停する
ための割り込み制御回路を内蔵している。2. Description of the Related Art In recent years, microcomputers are equipped with a plurality of timer circuits, an interface circuit for communicating with the outside, a low voltage detection circuit for detecting a power supply voltage interruption, for example, in order to increase versatility. Became.
In a microcomputer having such a peripheral circuit built therein, each peripheral circuit requests the CPU to perform a process corresponding to the respective peripheral circuit, and has a built-in interrupt control circuit for arbitrating the respective request signals. .
【0003】従来の一般的な割り込み制御回路におい
て、例えば、複数の割り込み信号を優先順位の高い高速
処理用割り込み要求信号と優先順位の低い通常処理用割
り込み要求信号に割り振っている。そして、一般的に
は、その優先順位の割り振りはハード的に固定されてお
り、ユーザーによって割り振りを変更するには、マイク
ロコンピュータの製品製造時に設定を変更していた。こ
れに対し、それぞれの割り込み信号に対する割り込み要
求信号の優先順位を容易に変更できるように、それぞれ
の割り込み信号を例えば高速処理用割り込み要求信号又
は通常処理用割り込み要求信号に割り振るための選択レ
ジスタを設け、プログラムによってその選択レジスタの
設定を行い、マイクロコンピュータのアプリケーション
等に応じて同じ割り込み信号入力に対する処理優先順位
の変更を可能とし、マイクロコンピュータの汎用性を高
めている。In a conventional general interrupt control circuit, for example, a plurality of interrupt signals are allocated to a high-speed interrupt request signal having a high priority and a normal process interrupt request signal having a low priority. In general, the allocation of the priority order is fixed by hardware, and the setting is changed at the time of manufacturing the microcomputer product in order to change the allocation by the user. On the other hand, in order to easily change the priority of the interrupt request signal for each interrupt signal, a selection register for allocating each interrupt signal to, for example, a high-speed processing interrupt request signal or a normal processing interrupt request signal is provided. , The selection register is set by a program, the processing priority order for the same interrupt signal input can be changed according to the application of the microcomputer, etc., and the versatility of the microcomputer is improved.
【0004】図2は、従来の割り込み制御回路を示す図
である。FIG. 2 is a diagram showing a conventional interrupt control circuit.
【0005】図2において、1は割り込み許可レジスタ
回路であって、第1及び第2割り込み信号10及び11
のそれぞれに対応する許可データを格納する2つのレジ
スタで構成され、CPU(図示せず)からバスBUSを
介して第1及び第2許可信号EN1及びEN2が設定さ
れる。In FIG. 2, reference numeral 1 denotes an interrupt enable register circuit, which is a first and second interrupt signal 10 and 11.
It is composed of two registers for storing the permission data corresponding to each of the above, and the first and second permission signals EN1 and EN2 are set from the CPU (not shown) via the bus BUS.
【0006】4は第2ゲート回路であって、第1及び第
2許可信号EN1及びEN2に応じて第1及び第2割り
込み信号10及び11を通過又は遮断するものである。A second gate circuit 4 passes or blocks the first and second interrupt signals 10 and 11 according to the first and second permission signals EN1 and EN2.
【0007】5は選択レジスタ回路であって、CPUか
らバスBUSを介して第1及び第2選択信号SL1及び
SL2が設定される。第1及び第2選択信号SL1及び
SL2は、第1及び第2割り込み信号10及び11を第
1及び第2割り込み要求信号12及び13の何れかに割
り振るかを決定する信号である。Reference numeral 5 denotes a selection register circuit, which sets first and second selection signals SL1 and SL2 from the CPU via the bus BUS. The first and second selection signals SL1 and SL2 are signals that determine whether to allocate the first and second interrupt signals 10 and 11 to the first and second interrupt request signals 12 and 13.
【0008】6は第3ゲート回路であって、第2ゲート
回路4を介して入力される第1及び第2割り込み信号1
0及び11を第1及び第2選択信号SL1及びSL2に
応じて通過又は遮断する。Reference numeral 6 denotes a third gate circuit, which is a first and second interrupt signal 1 input through the second gate circuit 4.
0 and 11 are passed or blocked according to the first and second selection signals SL1 and SL2.
【0009】7は第4ゲートであって、第2及び第3ゲ
ート回路4及び6を通過した第1及び第2割り込み信号
10及び11をゲートし、第1割り込み要求信号12と
してCPUへ出力する。A fourth gate 7 gates the first and second interrupt signals 10 and 11 which have passed through the second and third gate circuits 4 and 6, and outputs them as a first interrupt request signal 12 to the CPU. .
【0010】8は第5ゲート回路であって、第2ゲート
回路4を介して入力される第1及び第2割り込み信号1
0及び11を第1及び第2選択信号SL1及びSL2に
応じて通過又は遮断する。尚、第3ゲート回路6と第5
ゲート回路8とは、第2ゲート回路4を介して入力され
る第1及び第2割り込み信号10及び11を相補的に通
過又は遮断する。Reference numeral 8 is a fifth gate circuit, which is a first and second interrupt signal 1 input through the second gate circuit 4.
0 and 11 are passed or blocked according to the first and second selection signals SL1 and SL2. The third gate circuit 6 and the fifth
The gate circuit 8 complementarily passes or blocks the first and second interrupt signals 10 and 11 input via the second gate circuit 4.
【0011】9は第6ゲートであって、第2及び第5ゲ
ート回路4及び8を通過した第1及び第2割り込み信号
10及び11をゲートし第2割り込み要求信号13とし
てCPUへ出力する。A sixth gate 9 gates the first and second interrupt signals 10 and 11 which have passed through the second and fifth gate circuits 4 and 8, and outputs the second interrupt request signal 13 to the CPU.
【0012】尚、第3ゲート回路6と第4ゲート7とは
第1セレクタ回路を構成し、第5ゲート回路8と第6ゲ
ートとは第2セレクタ回路を構成するものである。The third gate circuit 6 and the fourth gate 7 form a first selector circuit, and the fifth gate circuit 8 and the sixth gate form a second selector circuit.
【0013】次に、図2の従来の割り込み制御回路の動
作を説明する。Next, the operation of the conventional interrupt control circuit of FIG. 2 will be described.
【0014】まず、図2の第1及び第2許可信号EN1
及びEN2や第1及び第2選択信号SL1及びSL2の
設定状態を説明する。第1及び第2許可信号EN1及び
EN2がHレベル、第1選択信号SL1がHレベル、第
2選択信号SL2がLレベルに設定されているとする。
このような状態で、第1割り込み信号10が入力される
と、第1割り込み信号10は、第2ゲート回路4のAN
Dゲート4a及び第3ゲート回路6のANDゲート6a
を通過し、第4ゲート7を介して、第1割り込み要求信
号12としてCPUへ転送される。一方、第5ゲート回
路8のANDゲート8aは遮断状態になっているので、
第1割り込み信号10はANDゲート8aで遮断される
ことになる。よって、第1割り込み信号10が第1割り
込み要求信号12に振り分けられたことになる。First, the first and second permission signals EN1 shown in FIG.
And the setting state of EN2 and the first and second selection signals SL1 and SL2 will be described. It is assumed that the first and second permission signals EN1 and EN2 are set to H level, the first selection signal SL1 is set to H level, and the second selection signal SL2 is set to L level.
In such a state, when the first interrupt signal 10 is input, the first interrupt signal 10 is the AN of the second gate circuit 4.
AND gate 6a of D gate 4a and third gate circuit 6
And is transferred to the CPU as the first interrupt request signal 12 via the fourth gate 7. On the other hand, since the AND gate 8a of the fifth gate circuit 8 is in the cutoff state,
The first interrupt signal 10 is cut off by the AND gate 8a. Therefore, the first interrupt signal 10 is distributed to the first interrupt request signal 12.
【0015】また、第2割り込み信号11が入力される
場合は、第2割り込み信号11は、第2ゲート回路4の
ANDゲート4b及び第5ゲート8のANDゲート8b
を通過し、第6ゲート9を介して、第2割り込み要求信
号13としてCPUへ転送される。一方、第3ゲート回
路6のANDゲート6bは遮断状態になっているので、
第2割り込み信号11はANDゲート6bで遮断される
ことになる。よって、第2割り込み信号11が第2割り
込み要求信号13に振り分けられたことになる。When the second interrupt signal 11 is input, the second interrupt signal 11 is supplied to the AND gate 4b of the second gate circuit 4 and the AND gate 8b of the fifth gate 8.
And is transferred to the CPU as the second interrupt request signal 13 via the sixth gate 9. On the other hand, since the AND gate 6b of the third gate circuit 6 is in the cutoff state,
The second interrupt signal 11 is cut off by the AND gate 6b. Therefore, the second interrupt signal 11 is distributed to the second interrupt request signal 13.
【0016】尚、第1選択信号SLがHレベル、第2選
択信号SL2がLレベルである場合を説明したが、例え
ば、第1及び第2許可信号EN1及びEN2がHレベ
ル、第1及び第2選択信号SL1及びSL2がHレベル
の場合、第1及び第2割り込み信号10及び11は、共
に第1割り込み要求信号12として振り分けられ、CP
Uへ転送される。Although the case where the first selection signal SL is at the H level and the second selection signal SL2 is at the L level has been described, for example, the first and second permission signals EN1 and EN2 are at the H level, and the first and the second permission signals are. When the 2 selection signals SL1 and SL2 are at the H level, both the first and second interrupt signals 10 and 11 are distributed as the first interrupt request signal 12, and CP
Transferred to U.
【0017】[0017]
【発明が解決しようとする課題】上述した従来の割り込
み制御回路において、選択レジスタ回路5の設定は、特
に制限なく設定の変更が可能であった。このため、選択
レジスタ回路5の第1選択信号SL1を設定変更する
際、例えば第1割り込み信号10が割り込みを要求する
Hレベルであると、第1割り込み信号10のHレベルが
第1及び第2割り込み要求信号12及び13の何れにH
レベルが出力されるかが保証されず、当業者の意思に反
して誤った割り込み要求信号が発生するという問題があ
った。In the conventional interrupt control circuit described above, the setting of the selection register circuit 5 can be changed without any particular limitation. Therefore, when the setting of the first selection signal SL1 of the selection register circuit 5 is changed, for example, if the first interrupt signal 10 is at the H level that requests an interrupt, the H level of the first interrupt signal 10 becomes the first and second levels. H for any of the interrupt request signals 12 and 13
There is a problem in that whether or not the level is output is not guaranteed, and an erroneous interrupt request signal is generated against the intention of those skilled in the art.
【0018】そして、一般的には、CPUは、第1及び
第2割り込み要求信号12及び13のそれぞれに応じた
処理プログラムを有しているので、本来処理すべきプロ
グラムとは異なるプログラムを実行し、マイクロコンピ
ュータが誤動作を起すという問題が発生する。Since the CPU generally has a processing program corresponding to each of the first and second interrupt request signals 12 and 13, it executes a program different from the program to be originally processed. However, there is a problem that the microcomputer malfunctions.
【0019】このため、本発明では、複数の割り込み信
号を第1割り込み要求信号又は第2割り込み要求信号へ
割り振る選択信号データを格納する選択レジスタ回路へ
の設定動作を安定して行える割り込み制御回路を提供す
ることを目的とする。For this reason, the present invention provides an interrupt control circuit capable of stably performing the setting operation to the selection register circuit which stores the selection signal data for allocating a plurality of interrupt signals to the first interrupt request signal or the second interrupt request signal. The purpose is to provide.
【0020】[0020]
【課題を解決するための手段】本発明は、上述した点に
鑑みて、創作されたものであり、その特徴とするところ
は、選択信号に応じて、割り込み信号を2以上の割り込
み要求信号に振り分けるセレクタと、禁止信号を格納す
る制御レジスタとを備え、前記セレクタは、前記禁止信
号によって、前記割り込み信号を入力禁止すると共に、
前記選択信号の設定許可状態となることを特徴とする。The present invention has been made in view of the above points, and is characterized in that an interrupt signal is converted into two or more interrupt request signals in accordance with a selection signal. A selector for allocating and a control register for storing a prohibition signal, wherein the selector prohibits input of the interrupt signal by the prohibition signal,
It is characterized in that the setting permission state of the selection signal is set.
【0021】また、前記セレクタは、前記禁止信号が入
力された場合前記選択信号を格納する選択レジスタと、
前記選択レジスタの選択信号に応じて、通過または遮断
状態となる複数のゲートとから構成されることを特徴と
する。Further, the selector includes a selection register which stores the selection signal when the prohibition signal is input,
It is characterized by comprising a plurality of gates which are turned on or off according to a selection signal of the selection register.
【0022】さらに、前記セレクタは、前記割り込み信
号の入力を許可する許可信号を格納する割り込み許可レ
ジスタと、前記許可信号に応じて前記割り込み信号を許
可するゲート回路とを有し、前記ゲート回路は前記禁止
信号に応じて強制的に前記割り込み信号を遮断すること
を特徴とする。Further, the selector has an interrupt permission register for storing a permission signal for permitting the input of the interrupt signal, and a gate circuit for permitting the interrupt signal according to the permission signal. The interrupt signal is forcibly cut off in accordance with the prohibition signal.
【0023】本発明によれば、割り込み制御回路におい
て、複数の割り込み信号を第1割り込み要求信号又は第
2割り込み要求信号へ割り振る選択信号データを格納す
る選択レジスタ回路への設定を割り込み制御回路の動作
を安定して行えることが可能となる。According to the present invention, in the interrupt control circuit, the setting of the selection register circuit for storing the selection signal data for allocating a plurality of interrupt signals to the first interrupt request signal or the second interrupt request signal is performed by the operation of the interrupt control circuit. Can be stably performed.
【0024】[0024]
【発明の実施の形態】本発明の詳細を図面に従って具体
的に説明する。図1は本発明の実施の形態の構成を説明
するための図である。BEST MODE FOR CARRYING OUT THE INVENTION The details of the present invention will be specifically described with reference to the drawings. FIG. 1 is a diagram for explaining the configuration of the embodiment of the present invention.
【0025】本実施形態の特徴とするところは、制御レ
ジスタ2と、第1ゲート回路3とを更に備える点にあ
る。制御レジスタ2ではCPU(図示せず)からバスB
USを介して禁止信号INHXが設定され、第1ゲート
回路3では禁止信号INHXに応じて第1及び第2許可
信号EN1及びEN2を通過又は遮断する。そして、選
択レジスタ回路5では、禁止信号INHXに応じて第1
及び第2選択信号SL1及びSL2の設定が許可又は禁
止される。The feature of this embodiment is that the control register 2 and the first gate circuit 3 are further provided. In the control register 2, the CPU B (not shown) to the bus B
The prohibition signal INHX is set via US, and the first gate circuit 3 passes or blocks the first and second permission signals EN1 and EN2 according to the prohibition signal INHX. Then, in the selection register circuit 5, in response to the inhibition signal INHX, the first register
The setting of the second selection signals SL1 and SL2 is permitted or prohibited.
【0026】尚、図1において、図2と同一の回路につ
いては同一符号を記すと共にその説明を省略するものと
する。また、割り込み許可レジスタ回路1、選択レジス
タ回路5による、割り振り動作については従来と同一の
ため省略する。In FIG. 1, the same circuits as those in FIG. 2 are designated by the same reference numerals and the description thereof will be omitted. Further, the allocation operation by the interrupt permission register circuit 1 and the selection register circuit 5 is the same as the conventional one, and therefore will be omitted.
【0027】次に、図1の割り込み制御回路の割り込み
信号に対する割り込み要求信号の割り振り設定動作を説
明する。第1割り込み信号10を第1割り込み要求信号
12から第2割り込み要求信号13として切り換えて出
力、また、第2割り込み信号11を第2割り込み信号1
3から第1割り込み要求信号12として切り換えて出力
しようとする場合、先ず、制御レジスタ2において、第
1及び第2許可信号EN1及びEN2を一括して禁止を
示すLレベルが設定され、設定と同時に禁止信号INH
XがLレベルとして出力される。Next, the allocation setting operation of the interrupt request signal with respect to the interrupt signal of the interrupt control circuit of FIG. 1 will be described. The first interrupt signal 10 is switched from the first interrupt request signal 12 to the second interrupt request signal 13 and output, and the second interrupt signal 11 is switched to the second interrupt signal 1
When switching from 3 to 1 as the first interrupt request signal 12 is to be output, first, in the control register 2, the L level indicating the prohibition of the first and second permission signals EN1 and EN2 is set at the same time. Prohibition signal INH
X is output as L level.
【0028】そして、禁止信号INHXがLレベルであ
ると、選択レジスタ回路5では、第1及び第2選択信号
SL1及びSL2の設定が許可され、CPUからバスB
USを介して第1選択信号SL1がLレベル、第2選択
信号SL2がHレベルに設定される。When the inhibit signal INHX is at the L level, the selection register circuit 5 permits the setting of the first and second selection signals SL1 and SL2, and the CPU causes the bus B
The first selection signal SL1 is set to L level and the second selection signal SL2 is set to H level via US.
【0029】また、禁止信号INHXがLレベルである
ので、第1及び第2許可信号EN1及びEN2は第1ゲ
ート回路3で遮断される。その結果、第1ゲート回路3
から、全ての出力信号がLレベルとして出力される。Since the inhibition signal INHX is at L level, the first and second permission signals EN1 and EN2 are cut off by the first gate circuit 3. As a result, the first gate circuit 3
Therefore, all output signals are output as L level.
【0030】そして、第1ゲート回路3から出力される
全信号のLレベルに応じて第1及び第2割り込み信号1
0及び11は第2ゲート回路4で遮断される。よって、
第1及び第2割り込み要求信号12及び13は発生せ
ず、割り込み処理の要求を示すことはないので、CPU
は割り込み処理を行うことはない。Then, according to the L level of all signals output from the first gate circuit 3, the first and second interrupt signals 1
0 and 11 are cut off by the second gate circuit 4. Therefore,
Since the first and second interrupt request signals 12 and 13 are not generated and do not indicate an interrupt processing request, the CPU
Does not handle interrupts.
【0031】次に、選択レジスタ回路5の設定が終了す
ると、CPUからバスBUSを介して禁止信号INHX
はHレベルに設定され、第1及び第2許可信号EN1及
びEN2の遮断が解除される。これにより、第1及び第
2許可信号EN1及びEN2は第1ゲート回路3を通過
する。Next, when the setting of the selection register circuit 5 is completed, the inhibit signal INHX is sent from the CPU via the bus BUS.
Is set to H level, and the interruption of the first and second permission signals EN1 and EN2 is released. As a result, the first and second permission signals EN1 and EN2 pass through the first gate circuit 3.
【0032】その為、第1及び第2割り込み信号10及
び11は、第1及び第2許可信号EN1及びEN2に応
じて、第2ゲート回路4で通過又は遮断されるようにな
る。Therefore, the first and second interrupt signals 10 and 11 are passed or blocked by the second gate circuit 4 according to the first and second permission signals EN1 and EN2.
【0033】また、禁止信号INHXがHレベルになる
と、選択レジスタ回路5は、選択データの設定が禁止さ
れる。When the inhibition signal INHX goes high, the selection register circuit 5 is inhibited from setting the selection data.
【0034】そして、第1選択信号SL1はLレベルで
あるので、第1割り込み信号10は第2ゲート回路4及
び第5ゲート回路8を通過し、第7ゲートを介して第2
割り込み要求信号13としてCPUへ転送される。ま
た、第2選択信号SL2はHレベルであるので、第2割
り込み信号11は、第2ゲート回路4及び第3ゲート回
路6を通過し、第4ゲートを介して第1割り込み要求信
号12としてCPUへ転送される。Since the first selection signal SL1 is at the L level, the first interrupt signal 10 passes through the second gate circuit 4 and the fifth gate circuit 8 and the second gate circuit 7 through the seventh gate.
It is transferred to the CPU as the interrupt request signal 13. Further, since the second selection signal SL2 is at the H level, the second interrupt signal 11 passes through the second gate circuit 4 and the third gate circuit 6 and the CPU as the first interrupt request signal 12 via the fourth gate. Transferred to.
【0035】よって、第1選択信号SL1がLレベルで
あるので第1割り込み信号10は第2割り込み要求信号
13に振り分けられ、また、第2選択信号SL2がHレ
ベルであるので第2割り込み信号11は第1割り込み要
求信号13に振り分けられることになる。Therefore, since the first selection signal SL1 is at the L level, the first interrupt signal 10 is distributed to the second interrupt request signal 13, and since the second selection signal SL2 is at the H level, the second interrupt signal 11 is generated. Will be distributed to the first interrupt request signal 13.
【0036】これで、選択レジスタ回路5の設定が終了
する。This completes the setting of the selection register circuit 5.
【0037】上述の如く、選択レジスタ回路5の選択信
号SL1及びSL2を設定変更する際、第2ゲート回路
4において、入力される第1及び第2割り込み信号10
及び11は遮断されているので、第1及び第2割り込み
要求信号12及び13は発生せず、CPUが誤った割り
込み処理を行うことを確実に防止できる。As described above, when the setting of the selection signals SL1 and SL2 of the selection register circuit 5 is changed, the first and second interrupt signals 10 input in the second gate circuit 4 are input.
Since 11 and 11 are cut off, the first and second interrupt request signals 12 and 13 are not generated, and it is possible to reliably prevent the CPU from performing erroneous interrupt processing.
【0038】尚、本実施例では、2つの割り込み信号入
力の場合で説明したが、その割り込み信号の入力数は制
限されることなく任意の複数を入力することが可能であ
る。任意の複数の割り込み信号を入力する場合に、第
1、第2、第3及び第5ゲート回路3、4、6及び8を
構成するANDゲートの数は、その任意の複数個を備え
るとよい。In this embodiment, the case of inputting two interrupt signals has been described, but the number of interrupt signals to be input is not limited, and any desired number can be input. When inputting a plurality of arbitrary interrupt signals, the number of AND gates forming the first, second, third and fifth gate circuits 3, 4, 6 and 8 may include the arbitrary plural number. .
【0039】また、一つの割り込み信号から3以上の割
り込み要求信号に振り分ける回路にも本発明を適用でき
る。The present invention can also be applied to a circuit that distributes one interrupt signal to three or more interrupt request signals.
【0040】また、割り込み許可レジスタ回路1から出
力される許可信号は、その任意の複数個を備える。尚、
割り込み許可レジスタ回路1から出力される許可信号の
数は、割り込み信号の数より少ない数の許可信号を備
え、一つの許可信号に対して複数の割り込み信号の許可
又は禁止するようにしても良い。The enable signal output from the interrupt enable register circuit 1 includes an arbitrary plurality of enable signals. still,
The number of enable signals output from the interrupt enable register circuit 1 may be smaller than the number of interrupt signals, and a plurality of interrupt signals may be enabled or disabled for one enable signal.
【0041】尚、実施例の説明では、第1ゲート回路3
と第2ゲート回路4とを備えた場合を説明したが、第2
ゲート回路4を構成する2入力のANDゲートを3入力
のANDゲートで構成して、その一つの3入力ANDゲ
ートに割り込み信号、許可信号及び禁止信号INHXを
入力してもよい。In the description of the embodiment, the first gate circuit 3
The case where the second gate circuit 4 and the second gate circuit 4 are provided has been described.
The 2-input AND gate forming the gate circuit 4 may be formed by a 3-input AND gate, and the interrupt signal, the enable signal, and the inhibit signal INHX may be input to one of the 3-input AND gates.
【0042】また、制御レジスタ2を備える代わりに、
割り込み許可レジスタ回路1から出力される全ての許可
信号を禁止として、その全ての許可信号が禁止を示す値
であることを検出する検出手段を設けて、その検出手段
の出力に応じて選択レジスタ回路5の設定を許可しても
良い。Further, instead of providing the control register 2,
A detection unit is provided which prohibits all the permission signals output from the interrupt permission register circuit 1 and detects that all the permission signals have a value indicating prohibition, and the selection register circuit is provided according to the output of the detection unit. The setting of 5 may be permitted.
【0043】[0043]
【発明の効果】上述の如く、本発明によれば、複数の割
り込み信号を第1及び第2割り込み要求信号に割り振る
際に、CPUが誤った割り込み処理を防止しながら選択
レジスタ回路の設定を実行できるという効果を奏する。As described above, according to the present invention, when assigning a plurality of interrupt signals to the first and second interrupt request signals, the CPU executes setting of the selection register circuit while preventing erroneous interrupt processing. It has the effect of being able to.
【0044】また、制御レジスタの禁止信号INHXを
割り込み信号入力禁止するLレベルに設定するという手
順を経て選択レジスタ回路の設定を行うようにしたた
め、例えば、プログラムのバグ等による選択レジスタへ
の誤設定を防止できるという効果を奏する。Further, since the selection register circuit is set through the procedure of setting the inhibition signal INHX of the control register to the L level which inhibits the input of the interrupt signal, for example, the selection register is erroneously set due to a program bug or the like. There is an effect that can prevent.
【図1】本発明の実施の形態を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.
【図2】従来例を示すブロック図である。FIG. 2 is a block diagram showing a conventional example.
1 割り込み許可レジスタ回路 2 制御レジスタ 3 第1ゲート回路 4 第2ゲート回路 5 選択レジスタ回路 6 第3ゲート回路 7 第4ゲート 8 第5ゲート回路 9 第6ゲート 10 第1割り込み信号 11 第2割り込み信号 12 第1割り込み要求信号 13 第2割り込み要求信号 1 Interrupt enable register circuit 2 control register 3 First gate circuit 4 Second gate circuit 5 Selection register circuit 6 Third gate circuit 7 Fourth Gate 8 Fifth gate circuit 9th gate 10 First interrupt signal 11 Second interrupt signal 12 First interrupt request signal 13 Second interrupt request signal
───────────────────────────────────────────────────── フロントページの続き (72)発明者 新井 好将 大阪府守口市京阪本通2丁目5番5号 三 洋電機株式会社内 (72)発明者 市川 敬 大阪府守口市京阪本通2丁目5番5号 三 洋電機株式会社内 (72)発明者 田中 茂雄 大阪府守口市京阪本通2丁目5番5号 三 洋電機株式会社内 (72)発明者 藤原 亮二 大阪府守口市京阪本通2丁目5番5号 三 洋電機株式会社内 (72)発明者 加藤 英和 大阪府守口市京阪本通2丁目5番5号 三 洋電機株式会社内 (72)発明者 小山田 義利 大阪府守口市京阪本通2丁目5番5号 三 洋電機株式会社内 Fターム(参考) 5B061 BA02 CC08 CC10 RR02 5B098 BA12 BB06 BB18 CC01 CC08 ─────────────────────────────────────────────────── ─── Continued front page (72) Inventor Yoshimasa Arai 2-5-3 Keihan Hondori, Moriguchi City, Osaka Prefecture Within Yo Denki Co., Ltd. (72) Inventor Kei Ichikawa 2-5-3 Keihan Hondori, Moriguchi City, Osaka Prefecture Within Yo Denki Co., Ltd. (72) Inventor Shigeo Tanaka 2-5-3 Keihan Hondori, Moriguchi City, Osaka Prefecture Within Yo Denki Co., Ltd. (72) Inventor Ryoji Fujiwara 2-5-3 Keihan Hondori, Moriguchi City, Osaka Prefecture Within Yo Denki Co., Ltd. (72) Inventor Hidekazu Kato 2-5-3 Keihan Hondori, Moriguchi City, Osaka Prefecture Within Yo Denki Co., Ltd. (72) Inventor Yoshitoshi Oyamada 2-5-3 Keihan Hondori, Moriguchi City, Osaka Prefecture Within Yo Denki Co., Ltd. F-term (reference) 5B061 BA02 CC08 CC10 RR02 5B098 BA12 BB06 BB18 CC01 CC08
Claims (3)
上の割り込み要求信号に振り分けるセレクタと、 禁止信号を格納する制御レジスタとを備え、 前記セレクタは、前記禁止信号によって、前記割り込み
信号を入力禁止すると共に、前記選択信号の設定許可状
態となることを特徴とする割り込み制御回路。1. A selector, which divides an interrupt signal into two or more interrupt request signals according to a selection signal, and a control register which stores an inhibit signal, wherein the selector inputs the interrupt signal by the inhibit signal. An interrupt control circuit which is prohibited and enters a setting permission state of the selection signal.
選択レジスタと、 前記選択レジスタの選択信号に応じて、通過または遮断
状態となる複数のゲートとから構成されることを特徴と
する請求項1記載の割り込み制御回路。2. The selector comprises a selection register that stores the selection signal when the prohibition signal is input, and a plurality of gates that are in a passing or blocking state according to the selection signal of the selection register. The interrupt control circuit according to claim 1, wherein:
割り込み許可レジスタと、前記許可信号に応じて前記割
り込み信号を許可するゲート回路とを有し、前記ゲート
回路は前記禁止信号に応じて強制的に前記割り込み信号
を遮断することを特徴とする請求項2記載の割り込み制
御回路。3. The selector further includes an interrupt permission register for storing a permission signal for permitting the input of the interrupt signal, and a gate circuit for permitting the interrupt signal according to the permission signal. 3. The interrupt control circuit according to claim 2, wherein the circuit forcibly interrupts the interrupt signal according to the prohibition signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2001253281A JP4911842B2 (en) | 2001-08-23 | 2001-08-23 | Interrupt control circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2001253281A JP4911842B2 (en) | 2001-08-23 | 2001-08-23 | Interrupt control circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2003067197A true JP2003067197A (en) | 2003-03-07 |
JP4911842B2 JP4911842B2 (en) | 2012-04-04 |
Family
ID=19081633
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2001253281A Expired - Fee Related JP4911842B2 (en) | 2001-08-23 | 2001-08-23 | Interrupt control circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4911842B2 (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01290040A (en) * | 1988-05-18 | 1989-11-21 | Fuji Electric Co Ltd | Digital signal switching circuit |
JPH10116201A (en) * | 1997-09-05 | 1998-05-06 | Nec Niigata Ltd | Interrupt request signal control circuit, and interrupt mask circuit used for the same |
JPH1173332A (en) * | 1997-08-27 | 1999-03-16 | Sony Corp | Method and mechanism for controlling interruption |
-
2001
- 2001-08-23 JP JP2001253281A patent/JP4911842B2/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01290040A (en) * | 1988-05-18 | 1989-11-21 | Fuji Electric Co Ltd | Digital signal switching circuit |
JPH1173332A (en) * | 1997-08-27 | 1999-03-16 | Sony Corp | Method and mechanism for controlling interruption |
JPH10116201A (en) * | 1997-09-05 | 1998-05-06 | Nec Niigata Ltd | Interrupt request signal control circuit, and interrupt mask circuit used for the same |
Also Published As
Publication number | Publication date |
---|---|
JP4911842B2 (en) | 2012-04-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102204501B1 (en) | A method and apparatus for interrupt handling | |
US5555414A (en) | Multiprocessing system including gating of host I/O and external enablement to guest enablement at polling intervals | |
JPH02267634A (en) | Interrupt system | |
US11366940B2 (en) | Secure-aware bus system | |
KR20110097447A (en) | System on chip having interrupt proxy and processing method thereof | |
JP2005182752A (en) | Data processor and method | |
JP2004199698A (en) | Interruption controller and interruption control method for determining priority of interruption request generated from multiple interruption generation sources | |
JP2007058716A (en) | Data transfer bus system | |
US20180039544A1 (en) | Resource access management component and method therefor | |
WO2010120676A1 (en) | Processor with assignable general purpose register set | |
JP6427575B2 (en) | Handling of time-consuming instructions | |
JP2007334432A (en) | Information processor, and access control method therefor | |
JP2003067197A (en) | Interrupt control circuit | |
WO2011114394A1 (en) | Virtual multi-processor system | |
US20050165990A1 (en) | Interrupt control device | |
JP5561294B2 (en) | Microcomputer | |
JP2009134400A (en) | Data processor, and method for protecting peripheral device in data processor | |
WO2004066150A1 (en) | Interrupt control method and interrupt control device | |
JP5087884B2 (en) | Data processing unit and data processing apparatus using the same | |
JP2003044293A (en) | Interruption processor | |
JPS6074059A (en) | Access control system for storage device | |
JP5561295B2 (en) | Microcomputer | |
JP2008225710A (en) | Computer system and process-switching method used in the system | |
JP2023032307A (en) | Virtualization control device and interrupt control method | |
GB2624384A (en) | Exception signalling |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20051227 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080729 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20091215 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20091222 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100129 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100608 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100803 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20100824 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20101020 |
|
A911 | Transfer of reconsideration by examiner before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20101101 |
|
A912 | Removal of reconsideration by examiner before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A912 Effective date: 20110107 |
|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A711 Effective date: 20110623 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A821 Effective date: 20110623 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20111205 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20120117 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150127 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150127 Year of fee payment: 3 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313113 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150127 Year of fee payment: 3 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
LAPS | Cancellation because of no payment of annual fees |