JPH02278341A - Interruption control circuit - Google Patents

Interruption control circuit

Info

Publication number
JPH02278341A
JPH02278341A JP10041389A JP10041389A JPH02278341A JP H02278341 A JPH02278341 A JP H02278341A JP 10041389 A JP10041389 A JP 10041389A JP 10041389 A JP10041389 A JP 10041389A JP H02278341 A JPH02278341 A JP H02278341A
Authority
JP
Japan
Prior art keywords
interruption request
interrupt
counter
register
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.)
Granted
Application number
JP10041389A
Other languages
Japanese (ja)
Other versions
JP2844656B2 (en
Inventor
Tadaaki Shiiba
椎葉 忠明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP1100413A priority Critical patent/JP2844656B2/en
Publication of JPH02278341A publication Critical patent/JPH02278341A/en
Application granted granted Critical
Publication of JP2844656B2 publication Critical patent/JP2844656B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To attain restoration in such a way that the interruption request of low priority is automatically processed and a processing is executed from the interruption request of high priority by installing the counter of an interruption request signal pulse and a comparator or the like outputting the coincidence signal of a content with a register to which data can be written from an internal bus, and monitoring the number of pulses of an interruption request signal. CONSTITUTION:The counter 1 counts the signal pulses inputted to an interruption request signal line iRn. The contents of the counter 1 and the register 2 are inputted to the comparator 4 and compared. When both contents agree, a logic '1' is outputted to a coincidence line 5, the data is held in a latch 6. Then, a control signal line 7 zero-clears the counter 1 and a control signal line 7' masks all the outputs of the interruption request register 10 of iR0 to iRn-1. Consequently, highest priority is given to iRn at that time, and the interruption processing starts. Then, a system is restored to normal priority when the interruption processing routine terminates. Thus, the interruption request of low priority can automatically processed even if the interruption request of high priority is always and continuously inputted.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は割込制御回路割込制御回路に関する。[Detailed description of the invention] [Industrial application field] The present invention relates to an interrupt control circuit.

〔従来の技術〕[Conventional technology]

従来の割込制御回路について図面を参照して詳細に説明
する。
A conventional interrupt control circuit will be described in detail with reference to the drawings.

第3図は従来の割込制御回路の一例を示すブロック図で
ある。
FIG. 3 is a block diagram showing an example of a conventional interrupt control circuit.

割込要求信号11は通常複数本存在し、各々に装置等が
接続されており、各装置からの割込要求は割込要求レジ
スタ10に記憶される。
There are usually a plurality of interrupt request signals 11, each of which is connected to a device, etc., and the interrupt request from each device is stored in the interrupt request register 10.

複数の割込要求が発生した場合、優先決定ロジック9が
イニシャライズ時に各々のビットに与えられた優先度を
判断し、かつ割込マスクレジスタ14に記憶されている
マスクビット情報にもとづいて、どのビットを最優先に
処理するかを決定する。
When multiple interrupt requests occur, the priority determination logic 9 determines the priority given to each bit at the time of initialization, and selects which bit based on the mask bit information stored in the interrupt mask register 14. Decide whether to process with top priority.

マイクロプロセッサ101に対する割込要求は、コント
ロールロジック104を経由して、割込信号109によ
って通知される。
An interrupt request to the microprocessor 101 is notified by an interrupt signal 109 via the control logic 104.

マイクロプロセッサ101は、割込を受は付けて良いと
判断すると、割込アクノリッジ信号108を割込制御回
路100に出力する。
When the microprocessor 101 determines that the interrupt can be accepted, it outputs an interrupt acknowledge signal 108 to the interrupt control circuit 100.

割込アクノリッジ信号108を受は取ると、割込制御回
路100はデータバスバッファ103よりデータバス1
12を経由して、その時点で最も優先度の高い割込ルー
チンアドレスを出力し、マイクロプロセッサ101に通
知する。
Upon receiving the interrupt acknowledge signal 108, the interrupt control circuit 100 transfers the data bus 1 from the data bus buffer 103.
12, the interrupt routine address with the highest priority at that time is output and notified to the microprocessor 101.

第4図は第3図に示す割込要求レジスタの1ビット分を
示す回路図である。
FIG. 4 is a circuit diagram showing one bit of the interrupt request register shown in FIG. 3.

割込要求入力部の1ビット分で割込要求信号】1は、そ
の立上りをエツジ検出回路118で検出し、割込要求レ
ジスタ10にラッチされ、コントロールロジック104
に通知される。
The edge detection circuit 118 detects the rising edge of the interrupt request signal [1] for 1 bit of the interrupt request input section, latches it in the interrupt request register 10, and sends it to the control logic 104.
will be notified.

第5図は第3図に示す割込制御回路の動作を説明するた
めのタイムチャートである。
FIG. 5 is a time chart for explaining the operation of the interrupt control circuit shown in FIG. 3.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来の割込制御回路は、優先順位の高い割込要
求から処理するようになっているので、もし優先順位の
高い割込要求が常に連続して入力されると、それよりも
優先順位の低い割込要求はいつまでも処理されないとい
う欠点があった。
The conventional interrupt control circuit described above is designed to process interrupt requests starting from the highest priority, so if interrupt requests with high priority are input continuously, This has the disadvantage that interrupt requests with a low value will not be processed forever.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の割込制御回路は、割込要求信号パルスをカウン
トするカウンタと、内部バスから書込み可能なレジスタ
と、前記カウンタと前記レジスタの内容を比較して一致
している場合に一致信号を出力するコンパレータと、前
記一致信号を保持するラッチとを含んで構成される。
The interrupt control circuit of the present invention includes a counter that counts interrupt request signal pulses, a register that can be written from an internal bus, and a match signal that is output when the contents of the counter and the register are compared. and a latch that holds the coincidence signal.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して説明する
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の第1の実施例を示すブロック図である
FIG. 1 is a block diagram showing a first embodiment of the present invention.

カウンタ1は、割込要求信号11をカウントし、ゼロク
リア可能である。
The counter 1 counts the interrupt request signal 11 and can be cleared to zero.

レジスタ2は、内部バス3から書込み可能となっている
The register 2 is writable from the internal bus 3.

コンパレータ4は、カウンタ1とレジスタ2の内容を比
較し、両者が一致した場合論理“1°′を出力し、i 
NTAに制御されたトランスファ12を経由してラッチ
6に入力される。
Comparator 4 compares the contents of counter 1 and register 2, and if they match, outputs logic "1°'" and i
The signal is input to the latch 6 via the transfer 12 controlled by the NTA.

制御信号線7はカウンタ1のゼロクリア信号と論理積が
とられ、制御信号線7′ は割込要求レジスタ10の出
力線8と論理積がとられており(iRnを除く)、優先
決定ロジック9に入力される。
The control signal line 7 is ANDed with the zero clear signal of the counter 1, and the control signal line 7' is ANDed with the output line 8 of the interrupt request register 10 (excluding iRn), and the priority determination logic 9 is input.

次に、動作について説明する。Next, the operation will be explained.

割込要求信号11のうち、iROが最高優先度、iRl
 、iR2と順次低次の優先度が割当てられ、iRnを
最低優先度を有するものとする。
Among the interrupt request signals 11, iRO has the highest priority, iRl
, iR2 and are assigned successively lower priorities, with iRn having the lowest priority.

イニシャライズ時に内部バス3よりレジスタ2に値”m
” (m≠0)が設定され、カウンタ1はゼロクリアさ
れる。
At initialization, the value “m” is sent to register 2 from internal bus 3.
” (m≠0) is set, and counter 1 is cleared to zero.

カウンタ1は、割込要求信号線iRnに接続されており
、割込要求信号線iRnに入力される信号パルスをカウ
ントする。
Counter 1 is connected to interrupt request signal line iRn and counts signal pulses input to interrupt request signal line iRn.

カウンタ1とレジスタ2の内容は、コンパレータ4に入
力され、比較され、両者の内容が一致すると一致信号線
5に論理” 1 ”を出力する。
The contents of the counter 1 and the register 2 are input to the comparator 4 and compared, and if the contents of the two match, a logic "1" is outputted to the match signal line 5.

すると1回目のi NTAが、論理″0″の時間にその
データはラッチ6に保持され、かつ制御信号線7はカウ
ンタ1をゼロクリア、かつ制御信号線7′ はiROか
ら1R0−1の割込要求レジスタ10の出力を、すべて
マスクしてしまう。
Then, when the first iNTA is at logic "0", the data is held in the latch 6, and the control signal line 7 clears the counter 1 to zero, and the control signal line 7' receives an interrupt from iRO to 1R0-1. All outputs of the request register 10 are masked.

したがって、その時点でiRnは最高優先度となり、割
込処理は始まる。
Therefore, at that point, iRn has the highest priority and interrupt processing begins.

2回目のi RTAが入力されたときは、すでにコンパ
レータ4は不一致を検出し、一致信号線5に論理“0″
が出力されており、iRoから1Ra−1の割込要求マ
スクは解除されており、iRnの割込処理ルーチンが終
了時点で通常の優先順位に復帰している。
When the second i RTA is input, the comparator 4 has already detected a mismatch and the logic “0” is sent to the match signal line 5.
is output, the interrupt request mask from iRo to 1Ra-1 is released, and the normal priority order is restored at the end of the iRn interrupt processing routine.

以上の動作を繰返すことにより、割込処理要求を制御す
る。
By repeating the above operations, interrupt processing requests are controlled.

第2図は本発明の第2の実施例を示すブロック図である
FIG. 2 is a block diagram showing a second embodiment of the invention.

コンパレータ4.一致信号線5,1NTAに制御された
トランスファ12.ラッチ6、制御信号線7,7 まで
は第1の実施例と同様である。
Comparator 4. Coincidence signal line 5,1 Transfer controlled by NTA 12. The latch 6 and control signal lines 7, 7 are the same as in the first embodiment.

割込マスクレジスタ14は、従来例で説明したもので1
割込マスクレジスタ13を追加し、割込マスクレジスタ
13.14の制御情報を制御信号線7.7 によってマ
ルチプレクサ15で切換える。
The interrupt mask register 14 is the one explained in the conventional example.
An interrupt mask register 13 is added, and control information of the interrupt mask register 13.14 is switched by a multiplexer 15 using a control signal line 7.7.

この実施例では、割込マスクレジスタ13を追加するこ
とによって、ソフトウェアで自由に優先度を変更できる
In this embodiment, by adding an interrupt mask register 13, the priority can be freely changed by software.

〔発明の効果〕〔Effect of the invention〕

本発明の割込制御回路は、割込要求信号のパルス数をモ
ニタリングすることにより、自動的に優先度の低い割込
要求を処理し、再度優先順位の高いものから処理するよ
う復帰できるという効果がある。
The interrupt control circuit of the present invention has the advantage that by monitoring the number of pulses of the interrupt request signal, it can automatically process interrupt requests with a low priority, and then return to processing the interrupt requests with a high priority again. There is.

・・・割込要求信号。...Interrupt request signal.

Claims (1)

【特許請求の範囲】[Claims] 割込要求信号パルスをカウントするカウンタと、内部バ
スから書込み可能なレジスタと、前記カウンタと前記レ
ジスタの内容を比較して一致している場合に一致信号を
出力するコンパレータと、前記一致信号を保持するラッ
チとを含むことを特徴とする割込制御回路。
A counter that counts interrupt request signal pulses, a register that can be written to from an internal bus, a comparator that compares the contents of the counter and the register and outputs a match signal if they match, and holds the match signal. An interrupt control circuit comprising: a latch for controlling an interrupt;
JP1100413A 1989-04-19 1989-04-19 Interrupt control circuit Expired - Lifetime JP2844656B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1100413A JP2844656B2 (en) 1989-04-19 1989-04-19 Interrupt control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1100413A JP2844656B2 (en) 1989-04-19 1989-04-19 Interrupt control circuit

Publications (2)

Publication Number Publication Date
JPH02278341A true JPH02278341A (en) 1990-11-14
JP2844656B2 JP2844656B2 (en) 1999-01-06

Family

ID=14273297

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1100413A Expired - Lifetime JP2844656B2 (en) 1989-04-19 1989-04-19 Interrupt control circuit

Country Status (1)

Country Link
JP (1) JP2844656B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55103657A (en) * 1979-02-05 1980-08-08 Hitachi Ltd Priority circuit
JPS5739441A (en) * 1980-08-19 1982-03-04 Nec Corp Interruption priority deciding system
JPS6073747A (en) * 1983-09-29 1985-04-25 Fujitsu Ltd Information processor
JPS633341A (en) * 1986-06-23 1988-01-08 Matsushita Electric Ind Co Ltd Preference control processing method
JPS63211438A (en) * 1987-02-27 1988-09-02 Nec Corp Interruption control circuit

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55103657A (en) * 1979-02-05 1980-08-08 Hitachi Ltd Priority circuit
JPS5739441A (en) * 1980-08-19 1982-03-04 Nec Corp Interruption priority deciding system
JPS6073747A (en) * 1983-09-29 1985-04-25 Fujitsu Ltd Information processor
JPS633341A (en) * 1986-06-23 1988-01-08 Matsushita Electric Ind Co Ltd Preference control processing method
JPS63211438A (en) * 1987-02-27 1988-09-02 Nec Corp Interruption control circuit

Also Published As

Publication number Publication date
JP2844656B2 (en) 1999-01-06

Similar Documents

Publication Publication Date Title
US4271466A (en) Direct memory access control system with byte/word control of data bus
US4482954A (en) Signal processor device with conditional interrupt module and multiprocessor system employing such devices
US6356963B1 (en) Long latency interrupt handling and input/output write posting
CA2468797A1 (en) Supercharge message exchanger
US5475846A (en) Apparatus for processing PCMCIA interrupt requests
US5201051A (en) Apparatus for interrupt detection and arbitration
US7181559B2 (en) Message based transport mechanism for level sensitive interrupts
US5640570A (en) Information handling system for transmitting contents of line register from asynchronous controller to shadow register in another asynchronous controller determined by shadow register address buffer
US7237216B2 (en) Clock gating approach to accommodate infrequent additional processing latencies
JPH02278341A (en) Interruption control circuit
JP2990800B2 (en) Interrupt processing device
JPH06274462A (en) Asynchronous writing system for shared memory
US7073007B1 (en) Interrupt efficiency across expansion busses
KR100190856B1 (en) Inner clock signal dividing control method
JP2988139B2 (en) Interrupt control device
JP2667285B2 (en) Interrupt control device
SU1084795A1 (en) Interruption device
JPH02110785A (en) Mask data processing system
JP3597744B2 (en) Interrupt factor signal flag register device
SU1341636A1 (en) Program interruption device
JPH04107659A (en) Preventing circuit for miswrite of data to memory
JPH05274245A (en) Microcontroller unit
JPH05324535A (en) Data transfer device
JPS63187943A (en) Communication control equipment
JPS63280368A (en) Multi-port memory controller