JP2567988B2 - Interrupt controller - Google Patents

Interrupt controller

Info

Publication number
JP2567988B2
JP2567988B2 JP2297475A JP29747590A JP2567988B2 JP 2567988 B2 JP2567988 B2 JP 2567988B2 JP 2297475 A JP2297475 A JP 2297475A JP 29747590 A JP29747590 A JP 29747590A JP 2567988 B2 JP2567988 B2 JP 2567988B2
Authority
JP
Japan
Prior art keywords
signal
interrupt request
priority
interrupt
output
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.)
Expired - Lifetime
Application number
JP2297475A
Other languages
Japanese (ja)
Other versions
JPH04174030A (en
Inventor
禎 渋谷
幸弘 西口
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.)
NIPPON DENKI AISHII MAIKON SHISUTEMU KK
Original Assignee
NIPPON DENKI AISHII MAIKON SHISUTEMU KK
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 NIPPON DENKI AISHII MAIKON SHISUTEMU KK filed Critical NIPPON DENKI AISHII MAIKON SHISUTEMU KK
Priority to JP2297475A priority Critical patent/JP2567988B2/en
Priority to KR1019910019547A priority patent/KR950014373B1/en
Priority to DE69118833T priority patent/DE69118833T2/en
Priority to EP91118767A priority patent/EP0489260B1/en
Publication of JPH04174030A publication Critical patent/JPH04174030A/en
Priority to US08/110,495 priority patent/US5481729A/en
Application granted granted Critical
Publication of JP2567988B2 publication Critical patent/JP2567988B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は割込みコントローラに関し、特にマイクロコ
ンピュータにおいて、割込み要求に対し優先順位を指定
できる割込みコントローラに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an interrupt controller, and more particularly to an interrupt controller capable of specifying a priority level for an interrupt request in a microcomputer.

〔従来の技術〕[Conventional technology]

一般にマイクロコンピュータは、第10図に示すような
構成となっている。
Generally, a microcomputer has a structure as shown in FIG.

第10図において、このマイクロコンピュータは、CPU
(中央演算装置)100,メモリ部200,割込みコントローラ
300及び周辺機能部400を備え、メモリ部200内のプログ
ラムメモリから読出した命令に基づき、CPU100が処理を
実行する。また、周辺機能部400は、CPU100と内部デー
タバス1を介してデータの書込みまたは読出し(以下
“アクセス”と称す)を行ない制御されるが、CPU100と
は独立して動作している。
In FIG. 10, this microcomputer is a CPU
(Central processing unit) 100, memory unit 200, interrupt controller
The CPU 100 executes processing based on an instruction read from the program memory in the memory unit 200, which includes the 300 and the peripheral function unit 400. The peripheral function section 400 is controlled by writing or reading data (hereinafter referred to as “access”) via the CPU 100 and the internal data bus 1, but operates independently of the CPU 100.

周辺機能部400としては、タイマやシリアルインタフ
ェース機能等をもち、例えばタイマがある値になったと
きや、シリアルデータの受信が完了したりしたとき等の
特別な状態を検出した場合に、CPU100にそのことを知ら
せる為に割込み要求信号INTを発生する。
The peripheral function unit 400 has a timer and a serial interface function, and when the CPU 100 detects a special state such as when the timer reaches a certain value or when serial data reception is completed, An interrupt request signal INT is generated to notify that.

割込み要求信号TNTは割込みコントローラ300に入力さ
れる。割込みコントローラ300は、割込み要求をCPU100
に送出してもよい状態(割込み許可状態)、他の割込み
要求の有無、割込み要求の優先順位の判別等を行ない、
条件が整っていると割込み要求としてCPU100に対し割込
み処理要求信号INTRQを送出する。
The interrupt request signal TNT is input to the interrupt controller 300. The interrupt controller 300 sends an interrupt request to the CPU100.
State (interrupt enable state), whether there is another interrupt request, the priority order of interrupt requests, etc. are determined.
If the conditions are met, an interrupt request signal INTRQ is sent to CPU 100 as an interrupt request.

CPU100は割込み処理要求信号INTRQを検出し受付ける
と、割込みコントローラ300に対し割込み要求を受付け
たことを示す信号等を含む種々の制御信号CNTを出力す
る。また、割込み要求を受付けたCPU100は対応する割込
み要求信号INT、つまり周辺機能に応じた割込み処理
を、これまで実行していたプログラムを中断して実行す
る。
When the CPU 100 detects and accepts the interrupt processing request signal INTRQ, it outputs to the interrupt controller 300 various control signals CNT including a signal indicating that the interrupt request has been accepted. Further, the CPU 100 that has received the interrupt request executes the interrupt request signal INT corresponding thereto, that is, the interrupt processing according to the peripheral function, by interrupting the program that has been executed so far.

ここで割込み要求信号INTの優先順位の説明を行な
う。割込み要求信号INTが複数有る場合は、割込み要求
信号INTの種類により緊急に割込み処理を実行すべき割
込み要求信号INT(以下緊急割込み要求と称す)と、遅
くてもよい割込み要求信号INT(以下一般割込み要求と
称す)とが存在する。緊急割込み要求は、一般割込み要
求の割込み処理実行中でもこの一般割込み要求の割込み
処理中に割込んで対応する緊急な割込み処理を実行する
必要がある。
Here, the priority of the interrupt request signal INT will be described. When there are multiple interrupt request signals INT, depending on the type of the interrupt request signal INT, the interrupt request signal INT (hereinafter referred to as an emergency interrupt request) that should execute interrupt processing urgently and the interrupt request signal INT that may be delayed (hereinafter general (Referred to as an interrupt request). It is necessary to interrupt the emergency interrupt request during the interrupt processing of the general interrupt request and to execute the corresponding emergency interrupt processing during the interrupt processing of the general interrupt request.

従って、割込み要求信号INTには各々に優先順位を設
定する必要がある。そして、優先順位が高く設定された
割込み要求信号INTに対する割込み処理は、優先順位が
低く設定された割込み要求信号INTに対する割込み処理
中でも割込んで実行するように制御する必要がある。以
上のような優先順位制御は割込みコントローラ300で行
なわれる。
Therefore, it is necessary to set a priority for each interrupt request signal INT. Then, it is necessary to control the interrupt processing for the interrupt request signal INT whose priority is set high so that it is interrupted and executed even during the interrupt processing for the interrupt request signal INT whose priority is set low. The above-described priority control is performed by the interrupt controller 300.

次に、この割込みコントローラ300について説明す
る。
Next, the interrupt controller 300 will be described.

第11図は従来のコントローラの一例を示すブロック図
であり、第12図はこの割込みコントローラの動作を説明
するための各部信号のタイミングチャートである。第11
図の例は、優先順位指定が4レベルの場合である。
FIG. 11 is a block diagram showing an example of a conventional controller, and FIG. 12 is a timing chart of signals of respective parts for explaining the operation of the interrupt controller. 11th
The example in the figure is for the case where the priority designation is 4 levels.

第11図において、INT0〜INT3は周辺機能400から出力
される割込み要求信号であり、それぞれ対応する割込み
要求信号制御部3I〜3Lに入力されている。割込み要求信
号制御部3I〜3Lはそれぞれ同一の構成となっているの
で、ここでは割込み要求信号制御部3Iについて説明す
る。
In FIG. 11, INT0 to INT3 are interrupt request signals output from the peripheral function 400, and are input to the corresponding interrupt request signal control units 3 I to 3 L. Since the interrupt request signal control units 3 I to 3 L have the same configuration, the interrupt request signal control unit 3 I will be described here.

割込み要求が発生し割込み要求信INT0が“1"になる
と、割込み要求フラグレジスタ31が“1"にセットされ
る。CPU100が内部アドレスADで割込み要求信号制御部3I
の番地を指し、データを内部データバス1にデータを出
力しライト信号WEを発生すると、ライト信号制御回路8
の出力WS1が“1"となり内部データバス1からマスクビ
ットレジスタ31及びプライオリティビットレジスタ33A,
33BにCPU100の出力したデータが書込まれる。
When an interrupt request is generated and the interrupt request signal INT0 becomes "1", the interrupt request flag register 31 is set to "1". CPU100 uses internal address AD for interrupt request signal controller 3 I
When the data is output to the internal data bus 1 and the write signal WE is generated, the write signal control circuit 8
Mask bit register 31 from the output WS1 becomes "1" internal data bus 1 and the priority bit register 33 A,
33 Output data of the CPU100 is written to B.

マスクビットレジスタ31の内容が“1"のときは、アン
ド回路AG11の出力は、インバータIV7により“0"に固定
されているが、マスクビットレジスタ31の内容が“0"の
ときは、アンド回路AG11の出力は割込み許可信号EIと割
込み要求フラグレジスタ32の内容により決定される。割
込み許可信号EIが“1"のときに割込み処理が許可され
る。
When the content of the mask bit register 31 is "1", the output of the AND circuit AG11 is fixed to "0" by the inverter IV7, but when the content of the mask bit register 31 is "0", the AND circuit is The output of AG11 is determined by the interrupt enable signal EI and the contents of the interrupt request flag register 32. Interrupt processing is enabled when the interrupt enable signal EI is "1".

プライオリティビットレジスタ33A,33Bは、割込み要
求信号INT0の優先順位を指定するビットで、2ビットの
プライオリティビットにより0,1,2,3の4個のレベル
(0が最も優先順位レベルが高く、3が最も低い)の指
定を行なう。またプライオリティビットレジスタ33A
上位、33Bが下位のビットである。
The priority bit registers 33 A and 33 B are bits that specify the priority of the interrupt request signal INT0, and four levels of 0, 1, 2, and 3 (0 is the highest priority level by the priority bit of 2 bits. (3 is the lowest). Further, the priority bit register 33 A is the upper bit and the 33 B is the lower bit.

比較器36はスキャンカウンタ10の出力とプライオリテ
ィビットレジスタ33A,33Bの内容との比較を行なってお
り、これらが一致すると出力を“1"にする。従って、マ
スクビットレジスタ31の内容が“0"、割込み許可信号EI
が“1"のとき割込み要求信号INT0が“1"になり、比較器
36の出力が“1"になると、アンド回路AG35の出力RAは
“1"となり第3回路OG1の出力も“1"となる。
The comparator 36 has made a comparison between the output and the contents of the priority bit register 33 A, 33 B of the scan counter 10, and outputs these matches to "1". Therefore, the contents of mask bit register 31 are "0", and interrupt enable signal EI
When is “1”, the interrupt request signal INT0 becomes “1” and the comparator
When the output of 36 becomes "1", the output RA of the AND circuit AG35 becomes "1" and the output of the third circuit OG1 also becomes "1".

CLKはタイミングクロックであり、ラッチ回路9Aはタ
イミングクロックCLKが“0"のタイミングで第3回路OG1
の出力を読込み、次にタイミングクロックが“1"になる
と出力する。
CLK is a timing clock, and the latch circuit 9 A uses the third circuit OG1 at the timing when the timing clock CLK is “0”.
The output of is read and then output when the timing clock becomes "1".

スキャンカウンタ10は優先順位をスキャンするカウン
タで、通常、「0→1→2→3→0…」というように優
先順位レベルをスキャンする為にスキャン信号SC1,SC2
を順次繰返し出力している。しかし、スキャンカウンタ
10の内容が、実行中優先順位レジスタ7Bの出力ISPROの
内容と一致した場合にクリアされてまた「0」からカウ
ントを始める。実行中優先順位レジスタ7Bの内容が
「2」の場合は「0→1→2→0→…」の様にカウント
する。また、スキャンカウンタ10は第3回路OG1の出力
が“1"のときカウント動作を中断し、内容を保持してい
る。
The scan counter 10 is a counter that scans the priority order. Normally, the scan signals SC1 and SC2 are used to scan the priority level such as "0 → 1 → 2 → 3 → 0 ...".
Are repeatedly output in sequence. But the scan counter
When the content of 10 matches the content of the output ISPRO of the running priority register 7 B , it is cleared and the counting is started from "0" again. If the contents of the running priority register 7 B is "2" is counted as "0 → 1 → 2 → 0 → ... ". Further, the scan counter 10 suspends the counting operation when the output of the third circuit OG1 is "1" and holds the contents.

実行中優先順位レジスタ7Bは、CPU100が割込み処理を
行なっている割込み要求の優先順位を記憶しておりCPU1
00の制御信号CNTのうちの1本であるOEVC信号が“1"の
ときスキャンカウンタ10の出力SC1,SC2を読込む。しか
し、以前に実行中優先順位レジスタ7Bに記憶されていた
内容はそのまま保持されるが、実行中優先順位レジスタ
7Bの出力ISPROには優先順位の高いレベルの方が出力さ
れる。またOEVC信号が出力されると割込み要求信号制御
3I〜3Lのアンド回路AG35の出力が“1"となった時の内容
に対応する。
The execution priority register 7 B stores the priority of the interrupt request that the CPU 100 is processing, and the CPU 1
When the OEVC signal, which is one of the 00 control signals CNT, is "1", the outputs SC1 and SC2 of the scan counter 10 are read. However, although the contents previously stored in the running priority register 7 B are retained, the contents of the running priority register 7 B are retained.
7 B output The higher priority level is output to ISPRO. Also, when the OEVC signal is output, interrupt request signal control
Corresponds to the contents when the output of AND circuit AG35 of 3 I to 3 L becomes "1".

割込みベクトアドレスが、ベクタアドレステーブル5
から出力バッファ6を介して内容データバス1に読出さ
れる。CPU100はこの割込みベクタアドレスにより割込み
要求信号の種類を判別する。
The interrupt vector address is the vector address table 5
To the content data bus 1 via the output buffer 6. The CPU 100 determines the type of interrupt request signal based on this interrupt vector address.

CPU100の制御信号CNTのうちの1本のCLRIF信号が“1"
となると、アンド回路AG34の出力が“1"となり割込み要
求フラグレジスタ32が“0"にリセットされる。なおリセ
ット信号RESETは割込みコントローラを初期化する信号
で、“1"になると、割込み要求フラグレジスタ32は
“0"、マスクビットレジスタ31は“1"、プライオリティ
ビットレジスタ33A,33Bは“1,1"に、実行中優先順位レ
ベル7Bは割込み処理が何も実行されていない状態に初期
化される。
One of the control signals CNT of CPU100 is CLRIF signal is "1"
Then, the output of the AND circuit AG34 becomes "1" and the interrupt request flag register 32 is reset to "0". Note the reset signal RESET is a signal for initializing the interrupt controller, becomes "1", the interrupt request flag register 32 is "0", the mask bit register 31 is "1", the priority bit register 33 A, 33 B is "1 , 1 ", executing priority level 7 B is initialized to a state in which interrupt processing is not executed at all.

今、割込み要求信号INT0,INT1,INT2,INT3に対し、マ
スクビットレジスタ31の内容がそれぞれ0,0,0,0、プラ
イオリティビットレジスタ33A,33Bの内容が1,0(優先順
位レベル2)、1,0(優先順位レベル2)、0,0(優先順
位レベル0)、0,1(優先順位レベル1)に設定されて
いる場合について、第12図のタイミングチャートを参照
して説明する。
For the interrupt request signals INT0, INT1, INT2, INT3, the contents of the mask bit register 31 are 0, 0, 0, 0 respectively, and the contents of the priority bit registers 33 A , 33 B are 1, 0 (priority level 2 ), 1,0 (priority level 2), 0,0 (priority level 0), 0,1 (priority level 1) are described with reference to the timing chart of FIG. To do.

第12図において、割込み要求信号INT0がT2のタイミン
グで発生すると、T4のタイミングでスキャンカウンタ10
の出力SC1,SC2が優先順位レベル2を示すので、比較器3
6で一致信号EQが発生し、アンド回路AG35の出力RAが
“1"になる。するとオア回路OG1の出力が“1"になるの
でスキャンカウンタ10の内容がレベル2で停止する。T5
のタイミングでは割込み処理要求信号INTRQが“1"とな
り、割込み要求信号INT0が受付けられCPU100に対し割込
み処理を要求する。割込み処理要求信号INTRQに対応し
てCPU100は、T6のタイミングでOEVC信号を“1"にする。
T7のタイミングでは、実行優先順位レベル7Bの出力ISPR
0が優先順位レベル2を示す。
In FIG. 12, when the interrupt request signal INT0 is generated at the timing of T2, the scan counter 10 is generated at the timing of T4.
Since the outputs SC1 and SC2 of 2 indicate the priority level 2, the comparator 3
At 6, the coincidence signal EQ is generated and the output RA of the AND circuit AG35 becomes "1". Then, the output of the OR circuit OG1 becomes "1", and the contents of the scan counter 10 stop at level 2. T5
At the timing of, the interrupt processing request signal INTRQ becomes "1", the interrupt request signal INT0 is accepted, and the CPU 100 is requested to perform interrupt processing. In response to the interrupt processing request signal INTRQ, the CPU 100 sets the OEVC signal to "1" at the timing of T6.
Output priority level 7 B output ISPR at T7 timing
0 indicates priority level 2.

ここでCPU100がCLRIF信号を“1"にしたとすると、割
込み要求フラグレジスタ32の内容が“0"にクリアされ
る。すると、アンド回路AG11,AG35の出力が“0"、オア
回路OG1の出力も“0"となる。するとT8のタイミングで
はスキャンカウンタ10の内容が実行中優先順位レジスタ
7Bの出力ISPROと一致する為、スキャンカウンタ10はク
リアされて優先順位レベル“0"からスキャンが始まる。
Here, if the CPU 100 sets the CLRIF signal to "1", the content of the interrupt request flag register 32 is cleared to "0". Then, the outputs of the AND circuits AG11 and AG35 become "0", and the output of the OR circuit OG1 also becomes "0". Then, at the timing of T8, the contents of the scan counter 10 are changed to the running priority register.
Since it matches the output ISPRO of 7 B , the scan counter 10 is cleared and the scan starts from the priority level “0”.

T10のタイミングで割込み要求信号INT2が発生する
と、T11のタイミングでスキャンカウンタ10の出力SC1,S
C2と割込み要求信号制御部3K内のプライオリティビット
レジスタ33A,33Bの内容とが一致する為、割込み処理要
求信号INTRQが“1"となり優先順位レベル0のINT2が受
付けられる。するとT11のタイミング以降、スキャンカ
ウンタ10の内容は“0"に固定されてしまう。
When the interrupt request signal INT2 is generated at the timing of T10, the output SC1, S of the scan counter 10 at the timing of T11.
Since C2 and the contents of the interrupt request signal controller 3 priority bits register 33 in the K A, 33 B are matched, an interrupt processing request signal INTRQ is "1" INT2 next priority level 0 is accepted. Then, after the timing of T11, the content of the scan counter 10 is fixed to "0".

次に、T14のタイミングで割込み要求信号INT3が発生
したとしても、スキャンカウンタ10の内容が“0"の為、
割込み要求信号制御部3L内の比較器36で、一致信号EQは
発生しないので、現在受付中の割込み要求信号INT2(優
先順位レベル0)より優先順位レベルが低い割込み要求
信号INT3(優先順位レベル1)は受付られない。
Next, even if the interrupt request signal INT3 is generated at the timing of T14, since the content of the scan counter 10 is "0",
The comparator 36 of the interrupt request signal controller 3 in L, the coincidence signal EQ is does not occur, the interrupt request signal INT2 currently accepted (priority level 0) than the priority level is low interrupt request signal INT3 (priority level 1) cannot be accepted.

割込み処理の終了時にCPU100がCLRIP信号を発生す
る。T15のタイミングでCPU100がCLRIP信号が“1"になる
と、実行中優先順位レベル7BはT16のタイミングで現在
出力中の優先順位レベル0をリセットし、1つ前の優先
順位レベル2を出力する。すると、スキャンカウンタ10
は再び「0→1→2…」の内容で順次スキャンを行な
う。
CPU100 generates CLRIP signal at the end of interrupt processing. When CPU100 at timing T15 is CLRIP signal becomes "1", the running priority level 7 B resets the priority level 0 of the current output at the timing T16, and outputs a previous priority level 2 . Then, the scan counter 10
Scans again sequentially with the contents of "0 → 1 → 2 ...".

以上の様に従来は、スキャンカウンタ10による優先順
位レベルの順位スキャンにより割込み優先順位制御を行
なっており、優先順位レベルの低い割込み処理中にも優
先順位の高い割込み処理が割込んで実行できる。また、
優先順位レベルの高い割込み処理中、優先順位レベルの
低い割込み処理要求は実行できない。
As described above, conventionally, the interrupt priority control is performed by the priority scan of the priority level by the scan counter 10, and the interrupt process with the high priority can be interrupted and executed even during the interrupt process with the low priority level. Also,
During the interrupt processing with the high priority level, the interrupt processing request with the low priority level cannot be executed.

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

しかし、この従来の割込みコントローラでは、優先順
位を順位スキャンして検索するため、優先順位レベルが
多くなればスキャン動作が1巡するのに時間が多くかか
ってしまう欠点がある。最近のマイクロコンピュータで
は、割込み要求信号の本数が多くなり、又きめ細かな制
御を行なう為、優先順位指定レベルの数が“8〜16"に
拡大している。もし、優先順位レベルが8レベルの場合
ではスキャンが1巡するのに8タイミング必要となる。
この場合、割込み要求信号が発生してから受付けられる
までの時間(以下、“応答時間”と称す)が最大16タイ
ミング必要となり遅くなる。このような従来の割込みコ
ントローラは、最近応用が広がっているリアルタイム制
御分野に対応したマイクロコンピュータには応答時間の
問題で適用できなくなるという欠点がある。
However, this conventional interrupt controller has a drawback that it takes a long time to complete one round of the scanning operation when the priority level increases as the priority order is searched for. In recent microcomputers, the number of interrupt request signals is increased and fine control is performed, so that the number of priority designation levels is expanded to "8 to 16". If the priority level is 8 levels, 8 timings are required for one scan.
In this case, the time from the generation of the interrupt request signal to the acceptance thereof (hereinafter referred to as "response time") requires a maximum of 16 timings and is delayed. Such a conventional interrupt controller has a drawback that it cannot be applied to a microcomputer corresponding to a real-time control field, which has been widely applied recently because of a problem of response time.

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

本発明の割込みコントローラは、複数の割込み要求信
号に対しそれぞれ2n個(nは2以上の整数、以下同じ)
の優先順位レベルを設定するための複数のnビットのプ
ライオリティビットレジスタと、前記各割込み要求信号
に対する優先順位レベルをスキャンする(n+1)個の
タイミング信号を順次繰り返し発生するステージカウン
タと、現在実行中の割込み処理に対応する割込み要求信
号の前記プライオリティビットレジスタの内容を記憶す
る実行中優先順位レジスタと、前記プライオリティビッ
トレジスタを含み発生した全ての割込み要求信号の前記
プライオリティビットレジスタの内容と前記実行中優先
順位レジスタの記憶内容とを前記n個のタイミング信号
に同期して最上位ビットから最下位ビットに向って順次
比較し前記各割込み要求信号のビット内容が他の割込み
要求信号のビット内容より優先する値を持つプライオリ
ティに対応する割込み要求を最も優先順位レベルが高い
ものを検出し、かつ複数個の割込み要求信号が最も優先
順位が高いと検出された場合はあらかじめ指定された順
序に従いその割込み要求信号を前記n個のタイミング信
号に続く次のタイミング信号に同期して検出する割込み
要求信号制御手段と、この割込み要求信号制御手段が最
も優先順位レジスタの高い割込み要求信号を検出した場
合に割込み処理要求信号を出力する手段とを有してい
る。
The interrupt controller according to the present invention has 2 n pieces for each of a plurality of interrupt request signals (n is an integer of 2 or more;
, A plurality of n-bit priority bit registers for setting priority levels, a stage counter for sequentially and repeatedly generating (n + 1) timing signals for scanning the priority level for each interrupt request signal, and a current execution A priority register during execution which stores the contents of the priority bit register of the interrupt request signal corresponding to the interrupt processing, and the contents of the priority bit register of all the interrupt request signals generated including the priority bit register and the execution The contents stored in the priority register are sequentially compared from the most significant bit to the least significant bit in synchronization with the n timing signals, and the bit contents of each interrupt request signal have priority over the bit contents of other interrupt request signals. Corresponding to the priority that has the value If only the highest priority level of the requests is detected, and a plurality of interrupt request signals are detected as having the highest priority level, the interrupt request signals are output in accordance with a pre-specified order. Interrupt request signal control means for detecting in synchronization with the next timing signal following, and means for outputting an interrupt processing request signal when this interrupt request signal control means detects an interrupt request signal with the highest priority register. Have

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して説明す
る。第1図は本発明の第1の実施例を示す回路図であ
る。なお、第10図〜第12図に示された従来の割込みコン
トローラと同一の部分の説明は省略し、異なる部分だけ
の説明を行なう。
Next, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a circuit diagram showing a first embodiment of the present invention. The description of the same parts as those of the conventional interrupt controller shown in FIGS. 10 to 12 will be omitted, and only different parts will be described.

第1図において、ステージカウンタ2は割込み要求の
優先順位レベルをスキャンするタイミング信号STG1,STG
2,STG3,STG0を発生しタイミング制御を行なう。
In FIG. 1, the stage counter 2 has timing signals STG1 and STG for scanning priority levels of interrupt requests.
Generates 2, STG3, STG0 and performs timing control.

実行中優先順位レベル7は、割込み要求信号制御部3A
〜3Dから出力される優先順位レベルをOEVC信号が“1"と
なるタイミングで読込み、次のタイミングクロックCLK
に同期して出力信号ISPR1,ISPR0として出力する。また
実行中優先順位レベル7は割込み要求信号が何も受付け
られていない時はENISPR信号を“0"にする。実行中優先
順位レベル7に優先順位レベルが記憶されている場合
は、ENISPR信号は“1"になる。実行中優先順位レベル7
は、CLRIP信号により現在の優先順位レベルをクリアし
て1つ前の優先順位レベルを出力する。ここで出力信号
ISPR1は「2」の重みでISPR0信号は「1」の重みをも
つ。
Execution priority level 7 is interrupt request signal control unit 3 A
Read at the timing when OEVC signal priority level output from to 3 D becomes "1", the next timing clock CLK
Output as output signals ISPR1 and ISPR0 in synchronism with. The priority level during execution 7 sets the ENISPR signal to "0" when no interrupt request signal is accepted. When the priority level is stored in the running priority level 7, the ENISPR signal becomes "1". Running priority level 7
The CLRIP signal clears the current priority level and outputs the previous priority level. Output signal here
ISPR1 has a weight of "2" and ISPR0 signal has a weight of "1".

ラッチ回路9は、タイミングSTG3が“1"のタイミング
のタイミングクロックCKLが“0"の時、オア回路OG1の出
力を読込み、次のタイミングクロックCLKで出力し、タ
イミング信号STG0が“1"のタイミングでアンド回路AG2
を介して割込み処理要求信号INTRQを出力する。また、
リセット信号RESETとCLRIF信号により“0"にリセットさ
れる。
The latch circuit 9 reads the output of the OR circuit OG1 when the timing clock CKL of the timing STG3 is “1” is “0” and outputs it with the next timing clock CLK, and the timing signal STG0 is the timing of “1”. And circuit AG2
The interrupt processing request signal INTRQ is output via. Also,
It is reset to "0" by the reset signal RESET and the CLRIF signal.

PチャネルのMOSトランジスタQ1〜Q3は、タイミング
クロックCLKが“1"のときインバータIV1の出力が“0"と
なることで導通し、信号SLPRH,CM1,CM2を電源電圧VDD
ベル、すなわち“1"にする。信号SLPRH,CM1,CM2の信号
線にはコンデンサが付加されて(図示省略)、CLKが
“1"の間に“1",“1",“1"に充電される(以下プリジャ
ージされるという)。割込み要求信号制御部3Dの出力信
号CMOTが割込み要求信号3Cの入力信号CMINになり、以下
同様に出力信号,入力信号となって割込み要求信号制御
部3Aの出力信号CMOTが受付中割込み要求信号部4の入力
信号CMINとなりその出力CMOTは接地される。
The P-channel MOS transistors Q1 to Q3 are turned on when the output of the inverter IV1 becomes "0" when the timing clock CLK is "1", and the signals SLPRH, CM1, and CM2 are set to the power supply voltage VDD level, that is, "1". "I will. A capacitor is added to the signal lines of the signals SLPRH, CM1, and CM2 (not shown), and the capacitors are charged to "1", "1", "1" while CLK is "1" (precharged below). That). The output signal CMOT interrupt request signal controller 3 D becomes the input signal CMIN interrupt request signal 3 C, hereinafter the same output signal, serves as an input signal the interrupt request signal controller 3 A output signal CMOT interrupt during reception of It becomes the input signal CMIN of the request signal section 4 and its output CMOT is grounded.

第2図はステージカウンタ2の具体例を示す回路図で
ある。
FIG. 2 is a circuit diagram showing a specific example of the stage counter 2.

初期状態においてリセット信号RESETが“1"になる
と、タイミングクロックCLKが“0"になるタイミングで
ラッチ回路L1は“1"、ラッチ回路L3,L5は“0"、RS型の
ラッチ回路L7は“0"に初期化される、すると次のタイミ
ングクロックCLKではラッチ回路L2が“1"、ラッチ回路L
4,L6は“0"となる。
When the reset signal RESET becomes "1" in the initial state, the latch circuit L1 is "1", the latch circuits L3 and L5 are "0", and the RS type latch circuit L7 is "0" at the timing when the timing clock CLK becomes "0". Initialized to 0 ", the latch circuit L2 is set to" 1 "and the latch circuit L
4, L6 becomes "0".

次にタイミングクロックCLKが“0"になるとアンド回
路AG8によりタイミング信号STG1が出力される。リセッ
ト信号RESETが“0"になると、ラッチ回路L2の出力の
“1"がアンド回路AG3を介してタイミングクロックCLKが
“0"のときラッチ回路L3に読込まれる。
Next, when the timing clock CLK becomes "0", the AND circuit AG8 outputs the timing signal STG1. When the reset signal RESET becomes "0", the output "1" of the latch circuit L2 is read into the latch circuit L3 via the AND circuit AG3 when the timing clock CLK is "0".

同様にしてタイミングクロックCLKが“1"のときラッ
チ回路L3の出力をラッチ回路L4で読込んで“1"となり、
アンド回路AG4を介してタイミングクロックCLKが“0"の
ときラッチ回路L5に読込まれる。
Similarly, when the timing clock CLK is "1", the output of the latch circuit L3 is read by the latch circuit L4 and becomes "1",
Read by the latch circuit L5 via the AND circuit AG4 when the timing clock CLK is "0".

今、CLRIF信号が“0"、SLPRH信号が“0"とするとイン
バータIV5の出力が“1"、インバータIV6の出力が“0"と
なるのでアンド回路AG5の出力が“0"となり、ラッチ回
路L7は“0"のままである。アンド回路AG6,AG7の出力は
“0"、オア回路OG5の出力は“0"の為タイミングクロッ
クCLKが“0"となるとオア回路OG3を介してラッチ回路L1
に“0"が読込まれる。
Now, if the CLRIF signal is "0" and the SLPRH signal is "0", the output of the inverter IV5 is "1" and the output of the inverter IV6 is "0", so the output of the AND circuit AG5 is "0" and the latch circuit L7 remains “0”. Since the outputs of the AND circuits AG6 and AG7 are "0" and the output of the OR circuit OG5 is "0", when the timing clock CLK becomes "0", the latch circuit L1 is passed through the OR circuit OG3.
“0” is read in.

次にタイミングクロックCLKが“1"になると、ラッチ
回路L2は“0"、ラッチ回路L4は“1"となりタイミングク
ロックCLKが“0"になるとタイミング信号STG2が“1"に
なる。
Next, when the timing clock CLK becomes "1", the latch circuit L2 becomes "0", the latch circuit L4 becomes "1", and when the timing clock CLK becomes "0", the timing signal STG2 becomes "1".

又、次のタイミングクロックCLKが“0"のときラッチ
回路L5は“1"になり、“1"になるとラッチ回路L5は
“0"、ラッチ回路L6は“1"となりタイミングクロックCL
Kが“0"のときタイミング信号STG3が“1"になる。
When the next timing clock CLK is "0", the latch circuit L5 becomes "1", and when it becomes "1", the latch circuit L5 becomes "0" and the latch circuit L6 becomes "1".
When K is "0", the timing signal STG3 becomes "1".

SLPRH信号が“0"の間はラッチ回路L7は“1"になる事
がなくラッチ回路L1,L2とラッチ回路L3,L4とラッチ回路
L5,L6との間で交互に“1"と“0"とが順次繰返すのでタ
イミング信号STG1,STG2,STG3が順番に出力される。
Latch circuit L7 never becomes "1" while SLPRH signal is "0". Latch circuit L1, L2 and latch circuit L3, L4 and latch circuit
Since "1" and "0" are alternately repeated between L5 and L6, timing signals STG1, STG2, STG3 are sequentially output.

SLPRH信号が“1"になると、インバータIV6の出力が
“1"となりラッチ回路L6の出力が“1"でタイミングクロ
ックCLKが“0"のときラッチ回路L7が“1"にセットされ
る。
When the SLPRH signal becomes "1", the output of the inverter IV6 becomes "1", and when the output of the latch circuit L6 is "1" and the timing clock CLK is "0", the latch circuit L7 is set to "1".

次にタイミングクロックCLKが“1"となるとラッチ回
路L8が“1"となりタイミング信号STG0が出力される。
Next, when the timing clock CLK becomes "1", the latch circuit L8 becomes "1" and the timing signal STG0 is output.

SLPRH信号が“1"となるとアンド回路AG6の出力が“0"
となるのでオア回路OG5の出力は“0"となり、CLRIF信号
が“1"になるまでタイミング信号STG1は出力されない。
When the SLPRH signal becomes "1", the output of AND circuit AG6 becomes "0".
Therefore, the output of the OR circuit OG5 becomes "0", and the timing signal STG1 is not output until the CLRIF signal becomes "1".

次にCLRIF信号が“1"になると、アンド回路AG7の出力
が“1"となるのでタイミングクロックCLKが“0"となる
とラッチ回路L1が“1"となる。CLRIF信号によりオア回
路OG4が“1"となる為、ラッチ回路L7が“0"にリセット
される。従ってタイミング信号STG0に続いてタイミング
信号STG1が出力される。第3図は割込み要求信号制御部
3A〜3D(3Aのみ図示)の具体例を示す回路図である。
Next, when the CLRIF signal becomes "1", the output of the AND circuit AG7 becomes "1", so that when the timing clock CLK becomes "0", the latch circuit L1 becomes "1". Since the OR circuit OG4 becomes "1" by the CLRIF signal, the latch circuit L7 is reset to "0". Therefore, the timing signal STG1 is output after the timing signal STG0. Figure 3 shows the interrupt request signal controller
FIG. 3 is a circuit diagram showing a specific example of 3 A to 3 D (only 3 A is shown).

割込み要求信号INT0が入力されてマスクビットレジス
タ31の内容が“0"、割込み許可信号EIが“1"のとき、ア
ンド回路AG11の出力が“1"となる。
When the interrupt request signal INT0 is input and the content of the mask bit register 31 is "0" and the interrupt enable signal EI is "1", the output of the AND circuit AG11 becomes "1".

プライオリティビットレジスタ33Aは「2」の重み、3
3Bは「1」の重みである。プライオリティビットレジス
タ33Aの内容が“0"のときインバータIV8の出力が“1"と
なる。
The priority bit register 33 A has a weight of “2”, 3
3 B is a weight of "1". When the content of the priority bit register 33 A is “0”, the output of the inverter IV8 becomes “1”.

タイミング信号STG1が“1"となるとタイミングクロッ
クCLKが“0"のタイミングでアンド回路AG12の出力が
“1"となりnチャネル型のMOSトランジスタQ4が導通しC
M1信号を“0"にする。
When the timing signal STG1 becomes "1", the output of the AND circuit AG12 becomes "1" at the timing when the timing clock CLK is "0", and the n-channel type MOS transistor Q4 becomes conductive.
Set the M1 signal to “0”.

CM1信号はタイミングクロックCLKが“1"のときプリチ
ャージされていて“1"となっているがアンド回路AG12の
出力が“1"となると“0"になる。同時にOR回路OG7,アン
ド回路AG13を介してRSラッチ回路34が“1"にセットされ
る。
The CM1 signal is precharged to "1" when the timing clock CLK is "1", but becomes "0" when the output of the AND circuit AG12 becomes "1". At the same time, the RS latch circuit 34 is set to "1" via the OR circuit OG7 and the AND circuit AG13.

次にタイミングクロックCLKが“1"になるとラッチ回
路35が“1"となり、タイミング信号STG3が“1"となると
きにアンド回路AG17の出力が“1"になる。インバータIV
14の出力が“0"になるとnチャネル型のMOSトランジス
タQ8が導通せず前のタイミングクロックCLKの“0"によ
り導通したPチャネル型のMOSトランジスタQ7でプリチ
ャージした入力信号CMINと受付割込み要求制御部4を介
して接地された出力信号CMOTが“0"のときのインバータ
IV15の出力が“1"になり、アンド回路AG18が“1"となっ
てRA信号を出力する。
Next, when the timing clock CLK becomes "1", the latch circuit 35 becomes "1", and when the timing signal STG3 becomes "1", the output of the AND circuit AG17 becomes "1". Inverter IV
When the output of 14 becomes "0", the n-channel type MOS transistor Q8 does not become conductive and the input signal CMIN and the acceptance interrupt request precharged by the P-channel type MOS transistor Q7 made conductive by "0" of the previous timing clock CLK. Inverter when output signal CMOT grounded via control unit 4 is "0"
The output of IV15 becomes "1" and the AND circuit AG18 becomes "1" to output the RA signal.

プライオリティビットレジスタ33Bが“0"でラッチ回
路35が“1"のときタイミング信号STG2が“1"となるとタ
イミングクロックCLKが“0"のタイミングでアンド回路A
G14の出力が“1"となりnチャネル型のMOSトランジスタ
Q5が導通しCM2信号を“0"にする。CM2信号はタイミング
クロックCLKが“1"のときプリチャージされていて“1"
となっているが、アンド回路AG14が“1"となると“0"と
なる。
AND circuit A at the timing of the priority bit register 33 B "0" timing clock CLK when the timing signal STG2 becomes "1" when the latch circuit 35 is "1" is "0"
The output of G14 becomes "1" and n-channel type MOS transistor
Q5 conducts and sets CM2 signal to "0". The CM2 signal is precharged when the timing clock CLK is "1" and is "1".
However, when the AND circuit AG14 becomes "1", it becomes "0".

アンド回路AG15はプライオリティビットレジスタ33B
が“1"、CM2信号が“0"でタイミング信号STG2が“1"の
とき出力が“1"となる。アンド回路AG15の出力が“1"、
又はリセット信号RESETが“1"、もしくはCLRIF信号が
“1"で、RA信号が“0"のときでタイミング信号STG3が
“1"のタイミングクロックCLKが“0"で、アンド回路AG1
6の出力が“1"のときオア回路OG8の出力が“1"になり、
次のタイミングクロックCLKが“0"になると、RSラッチ
回路34が“0"にリセットされる。
AND circuit AG15 is a priority bit register 33 B
Is "1", the CM2 signal is "0" and the timing signal STG2 is "1", the output is "1". The output of the AND circuit AG15 is "1",
Alternatively, when the reset signal RESET is “1” or the CLRIF signal is “1” and the RA signal is “0”, the timing signal STG3 is “1”, the timing clock CLK is “0”, and the AND circuit AG1
When the output of 6 is “1”, the output of the OR circuit OG8 becomes “1”,
When the next timing clock CLK becomes "0", the RS latch circuit 34 is reset to "0".

オア回路OG8の出力が“0"のときインバータIV11の出
力が“1"となりラッチ回路35の出力が“1"でタイミング
信号STG3が“1"のときナンド回路NAG1の出力が“0"とな
るので、nチャネル型のMOSトランジスタQ6が遮断さ
れ、SLPRH信号を“1"にする。ラッチ回路35の出力が
“1"でタイミング信号STG1,STG2,STG3が“0"のとき、つ
まりタイミング信号STG0が“1"のとき、アンド回路AG19
が“1"となりプライオリティビットレジスタ33A,33B
出力が出力バッファB1,B2を介してPR1,PR0として読出さ
れる。
When the output of the OR circuit OG8 is "0", the output of the inverter IV11 is "1", the output of the latch circuit 35 is "1", and when the timing signal STG3 is "1", the output of the NAND circuit NAG1 is "0". Therefore, the n-channel type MOS transistor Q6 is cut off and the SLPRH signal is set to "1". When the output of the latch circuit 35 is "1" and the timing signals STG1, STG2, STG3 are "0", that is, when the timing signal STG0 is "1", the AND circuit AG19
There "1" output of the next priority bits register 33 A, 33 B are read as PR1, PR0 through the output buffer B1, B2.

第4図は受付中割込み要求制御部4の具体例を示す回
路図である。
FIG. 4 is a circuit diagram showing a specific example of the accepting interrupt request control unit 4.

第4図において、第3図の回路と同様の回路部分は同
様の動作をする為説明は省略する。
In FIG. 4, a circuit portion similar to that of the circuit in FIG.

第3図の回路と第4図の回路との違いは、第3図のア
ンド回路AG11の出力がENISPR信号に置き換り、、プライ
オリティビットレジスタ33A,33Bの出力がISPR1,ISPR0信
号に置き換り、アンド回路AG20,AG19,AG17,AG18,AG16と
ナンド回路NAG1とnチャネル型のMOSトランジスタQ6,Q8
とpチャネル型のMOSトランジスタQ7とインバータIV11,
IV14,IV15,IV16,IV13とノア回路NOG1が削除されて、RA
信号が無いだけで他の回路は全く同一の構成である。
The difference between the circuit of FIG. 3 and the circuit of FIG. 4 is that the output of the AND circuit AG11 of FIG. 3 is replaced with the ENISPR signal, and the outputs of the priority bit registers 33 A and 33 B become the ISPR1 and ISPR0 signals. Replacement, AND circuits AG20, AG19, AG17, AG18, AG16, NAND circuit NAG1, and n-channel type MOS transistors Q6, Q8
And p-channel type MOS transistor Q7 and inverter IV11,
IV14, IV15, IV16, IV13 and NOR circuit NOG1 are deleted, RA
Other circuits have exactly the same configuration except that there is no signal.

次にこの実施例の動作について説明する。 Next, the operation of this embodiment will be described.

第5図はこの実施例の動作を説明するための各部信号
のタイミングチャートである。
FIG. 5 is a timing chart of signals of respective parts for explaining the operation of this embodiment.

今、割込み要求信号INT0,INT1,INT2,INT3に対する各
マスクビットレジスタ31の内容が全て“0"に、プライオ
リティビットレジスタ33A,33Bの内容がそれぞれ“1,0"
(レベル2)、“1,0"(レベル2)、“0,0"(レベル
0)、“0,1"(レベル1)に設定されている場合を考え
る(従来例と同じ)。またEI信号も“1"となっているも
のとする。
Now, the interrupt request signal INT0, INT1, INT2, the contents of each mask bit register 31 for INT3 are all "0", the priority bit register 33 A, 33 the contents of B are "0"
Consider the case where (level 2), "1,0" (level 2), "0,0" (level 0), and "0,1" (level 1) are set (the same as the conventional example). It is also assumed that the EI signal is "1".

タイミング信号STG1,STG2,STG3が順次“1"と“0"とを
交互に繰返し出力しており、T3のタイミングで割込み要
求信号INT1が“1"となると、割込み要求フラグレジスタ
32の内容が“1"となる。このとき割込み要求信号が全く
受付けられておらず、実行中優先順位レベル7の出力信
号ENISPRは“0"となっているので、受付中割込み要求制
御部4のアンド回路AG21の出力は“0"のままである、同
様に割込み要求信号制御部3A,3C,3Dのアンド回路AG12の
出力は“0",“0",“0"である為、CM信号1は“1"のまま
となる。
When the timing signals STG1, STG2, STG3 output "1" and "0" alternately and repeatedly, and when the interrupt request signal INT1 becomes "1" at the timing of T3, the interrupt request flag register
The contents of 32 become "1". At this time, the interrupt request signal is not accepted at all, and the output signal ENISPR of the execution priority level 7 is "0". Therefore, the output of the AND circuit AG21 of the accepting interrupt request control unit 4 is "0". Similarly, the output of the AND circuit AG12 of the interrupt request signal control units 3 A , 3 C , 3 D is “0”, “0”, “0”, so that the CM signal 1 is “1”. Will remain.

するとT4のタイミングではSラッチ回路34はタイミン
グクロックCLKが“0"のタイミングで“1"となる。
Then, at the timing of T4, the S latch circuit 34 becomes "1" when the timing clock CLK is "0".

T6のタイミングではラッチ回路35の出力が“1"となり
タイミング信号STG3が“1"になるタイミングでアンド回
路AG17の出力が“1"となり、前のタイミングクロックCL
Kが“1"でプリチャージされた入力信号CMINをMOSトラン
ジスタQ8で遮断し、受付中割込み要求制御部4,割込み要
求信号制御部3AのインバータIV21,IV14の出力が“1"の
ため接地されるインバータIV22,IV15の出力の“1"とプ
リチャージによって“1"となっているCMIN信号によりア
ンド回路AG18の出力、つまりRA信号が“1"となる。アン
ド回路AG14の出力はプライオリティビットレジスタ33B
が“1"の為“0"となるのでCM2信号は“1"となる。アン
ド回路AG15の出力はCM2信号が“1"とインバータIV12が
“0"の為RSラッチ回路34はリセットされない。割込み要
求信号INT1に対応するRA信号が“1"の為T6のタイミング
でタイミングクロックCLKが“0"になるとラッチ回路9
が“1"となる。又、タイミング信号STG3が“1"となるタ
イミングでナンド回路NAG1の出力は“0"となり、SLPRH
信号が“1"のままになる。
At the timing of T6, the output of the AND circuit AG17 becomes "1" at the timing when the output of the latch circuit 35 becomes "1" and the timing signal STG3 becomes "1", and the previous timing clock CL
K is cut off precharge input signal CMIN a MOS transistor Q8 is "1", accepted in the interrupt request control unit 4, the inverter of the interrupt request signal controller 3 A IV21, the output of IV14 is "1" for grounding The output of the AND circuit AG18, that is, the RA signal becomes "1" by the output "1" of the inverters IV22, IV15 and the CMIN signal which is "1" by the precharge. The output of the AND circuit AG14 is the priority bit register 33 B.
Since it is "1", it becomes "0", so the CM2 signal becomes "1". The output of the AND circuit AG15 is not reset because the CM2 signal is "1" and the inverter IV12 is "0". Since the RA signal corresponding to the interrupt request signal INT1 is "1", when the timing clock CLK becomes "0" at the timing of T6, the latch circuit 9
Becomes “1”. Also, the output of the NAND circuit NAG1 becomes "0" at the timing when the timing signal STG3 becomes "1", and SLPRH
The signal remains “1”.

するとT7のタイミングでタイミング信号STG0が発生す
る。信号STG0が“1"でありラッチ回路9の出力が“1"と
なるので割込み処理要求信号INTRQが“1"となり、CPU10
0に割込み処理を要求する。
Then, the timing signal STG0 is generated at the timing of T7. Since the signal STG0 is "1" and the output of the latch circuit 9 is "1", the interrupt processing request signal INTRQ becomes "1" and the CPU10
Request interrupt processing at 0.

次にT9のタイミングでCPU100よりOEVC信号が出力され
ると、割込み要求信号INT1に対応するベクタアドレスが
出力バッファ6を介して内部データバス1上に読出され
ると共に、割込み要求信号INT1のプライオリティビット
レジスタ33A,33Bの内容がPR1,PR0として実行中優先順位
レベル7に読込まれる。
Next, when the OEVC signal is output from the CPU 100 at the timing of T9, the vector address corresponding to the interrupt request signal INT1 is read onto the internal data bus 1 via the output buffer 6, and the priority bit of the interrupt request signal INT1 is read. The contents of registers 33 A and 33 B are read into PR1 and PR0 to the priority level 7 during execution.

T10のタイミングでは実行中優先順位レベル7の出力
が優先順位レベル2となり出力信号ISPR1が“1"、出力
信号ISPR0が“0"、新ENISPRが“1"になる。又、CPU100
からCLRIF信号が出力される。タイミングクロックCLKが
“0"となるとRSラッチ回路L7が“0"になり、またラッチ
回路L8が“0"となる。
At the timing of T10, the output of the running priority level 7 becomes the priority level 2 and the output signal ISPR1 becomes "1", the output signal ISPR0 becomes "0", and the new ENISPR becomes "1". Also, CPU100
Outputs the CLRIF signal. When the timing clock CLK becomes "0", the RS latch circuit L7 becomes "0" and the latch circuit L8 becomes "0".

次にT11のタイミングではタイミング信号STG1が発生
する。
Next, at the timing of T11, the timing signal STG1 is generated.

T13のタイミングで割込み要求信号INT2が発生した場
合は、T14のタイミングにおいて割込み要求信号制御部3
Cのアンド回路AG12の出力が“1"になり、タイミングク
ロックCLKが“0"のタイミングでRSラッチ回路34が“1"
となる。アンド回路AG21の出力は“0"であり、又アンド
回路AG22の出力は“0"であるのでRSラッチ回路41は“0"
のままである。以下割込み要求信号INT1の場合と同様に
タイミング信号STG2,STG3,STG0がT15,T16,T17のタイミ
ングで発生し、T16の次のタイミング(T17)で割込み処
理要求信号INTRQが“1"となる。
If the interrupt request signal INT2 is generated at the timing of T13, the interrupt request signal control unit 3 at the timing of T14
The output of the AND circuit AG12 of C becomes "1" and the RS latch circuit 34 becomes "1" when the timing clock CLK is "0".
Becomes Since the output of the AND circuit AG21 is "0" and the output of the AND circuit AG22 is "0", the RS latch circuit 41 is "0".
It remains. Similarly to the case of the interrupt request signal INT1, the timing signals STG2, STG3, STG0 are generated at the timing of T15, T16, T17, and the interrupt processing request signal INTRQ becomes "1" at the timing (T17) next to T16.

次に、CPU100がOEVC信号を“1"にすると、実行中優先
順位レベル7が優先順位レベル0を読込む。又、CLRIF
信号によりステージカウンタ2はタイミング信号STG1か
ら順次出力する。
Next, when the CPU 100 sets the OEVC signal to "1", the executing priority level 7 reads the priority level 0. Also, CLRIF
According to the signal, the stage counter 2 sequentially outputs the timing signal STG1.

次にT19のタイミングで割込み要求信号INT3が発生し
た場合は、20のタイミングにおいて割込み要求信号INT3
に対する優先順位のチェックが始まる。
Next, if the interrupt request signal INT3 is generated at the timing of T19, the interrupt request signal INT3 is generated at the timing of 20.
The check of the priority for is started.

T20のタイミングでは、実行中優先順位レベル7の出
力信号ISPR1,ISPR0はそれぞれ“0",“0"となっている
為、アンド回路AG21が“1"となり、CM1信号が“0"とな
る。すると割込み要求信号制御部3Dのアンド回路AG13の
出力が“0"のままであるためRSラッチ回路34は“0"のま
まであり、T22のタイミングになってもそのRA信号は
“0"のままである。又、T23のタイミングに割込み処理
要求信号INTRQも発生しない。従って優先順位レベル1
の割込み要求信号INT3は優先順位レベル0の割込み要求
信号INT1の割込み処理中に割込めない。
At the timing of T20, since the output signals ISPR1 and ISPR0 of the execution priority level 7 are "0" and "0", respectively, the AND circuit AG21 becomes "1" and the CM1 signal becomes "0". Then RS latch circuit 34 for the output of the interrupt request signal controller 3 D of the AND circuit AG13 remains "0" remains "0", the RA signal even when the timing of T22 is "0" It remains. Further, the interrupt processing request signal INTRQ is not generated at the timing of T23. Therefore priority level 1
Interrupt request signal INT3 cannot be interrupted during interrupt processing of interrupt request signal INT1 of priority level 0.

T23のタイミングでCLRIP信号が出力されると実行中優
先順位レベル7の内容が1つ前の優先順位レベル2とな
る。
When the CLRIP signal is output at the timing of T23, the contents of the executing priority level 7 become the priority level 2 immediately before.

次に、T26のタイミングで割込み要求信号INT0が発生
した場合は、T27のタイミングでは実行中優先順位レベ
ル27の出力信号はISPR1,ISPR0はそれぞれ“1",“0"とな
っている為、アンド回路AG21の出力が“0"となり、CM1
信号が“1"になる。アンド回路AG22の出力が“1"になり
RSラッチ回路41がセットされタイミングクロックCLKが
“1"になるタイミングでラッチ回路42の出力は“1"とな
る。信号ISPRQが“0"のためアンド回路AG23の出力は
“0"になり、CM2信号は“1"のままになる。
Next, when the interrupt request signal INT0 is generated at the timing of T26, the output signals of the execution priority level 27 at the timing of T27 are "1" and "0" for ISPR1 and ISPR0, respectively. The output of the circuit AG21 becomes "0", and CM1
The signal becomes “1”. The output of the AND circuit AG22 becomes "1".
When the RS latch circuit 41 is set and the timing clock CLK becomes “1”, the output of the latch circuit 42 becomes “1”. Since the signal ISPRQ is "0", the output of the AND circuit AG23 becomes "0" and the CM2 signal remains "1".

従ってアンド回路AG24の出力は“0"のままなのでオア
回路OG10の出力は“0"となりRSラッチ回路41はリセット
されない。
Therefore, since the output of the AND circuit AG24 remains "0", the output of the OR circuit OG10 becomes "0" and the RS latch circuit 41 is not reset.

割込み要求信号INT0の優先順位レベル(レベル2)が
前と同じであるので、プライオリティビットレジスタ33
A,33Bの内容は同一で割込み要求信号制御部3Aも同様に
動作し、ラッチ回路35の出力は“1"となる。
Since the priority level (level 2) of the interrupt request signal INT0 is the same as before, the priority bit register 33
A, 33 content of B operates similarly interrupt request signal controller 3 A at the same, the output of the latch circuit 35 becomes "1".

タイミング信号STG3が“1"となるタイミングで受付中
割込み要求制御部4のアンド回路AG25と割込み要求信号
制御部3Aのアンド回路AG17の出力が“1"とないインバー
タIV21,IV14の出力が“0"となってMOSトランジスタQ12,
Q8が遮断される。したがってタイミングクロックCLKが
“1"となるタイミングでプリチャージされた入力信号CM
IN,出力信号CMOTの接地されている受付中割込み要求制
御部4の出力信号CMOTだけが“0"となりその入力信号CM
INと割込み要求信号制御部3Aの入力信号CMIN,出力信号C
MOTは“1"のままとなる。
Inverter output is not "1" of the timing signal STG3 the AND circuit AG25 reception during interrupt request control unit 4 at the timing when the "1" and the interrupt request signal controller 3 A of the AND circuit AG17 IV21, the output of IV14 is " Becomes 0 "and MOS transistor Q12,
Q8 is shut off. Therefore, the input signal CM precharged at the timing when the timing clock CLK becomes "1"
IN, output signal CMOT being grounded, only the output signal CMOT of the accepting interrupt request control unit 4 becomes "0" and its input signal CM
IN and interrupt request signal Control unit 3 A input signal CMIN, output signal C
MOT remains "1".

受付中割込み要求制御部4のインバータIV22の出力が
“1"となり、アンド回路AG27の出力は“1"となってイン
バータIV23の出力は“0"、アンド回路AG26の出力も“0"
となってオア回路OG10の出力は“0"となる。また割込み
要求信号制御部3Aでは、インバータIV15の出力が“0"と
なり、アンド回路AG18の出力が“0"となるので、RA信号
は“0"のままである。同時にインバータIV13の出力が
“1"となり、アンド回路AG16の出力が“1"となってオア
回路OG8の出力を“1"にし、RSラッチ回路34をリセット
する。つまり割込み要求信号INT0の割込みは受付けられ
ず、割込み処理要求信号INTRQも出力されない。
The output of the inverter IV22 of the accepting interrupt request control unit 4 becomes "1", the output of the AND circuit AG27 becomes "1", the output of the inverter IV23 becomes "0", and the output of the AND circuit AG26 also becomes "0".
Then, the output of the OR circuit OG10 becomes "0". Further the interrupt request signal controller 3 A, the output becomes "0" of the inverter IV15, the output of the AND circuit AG18 becomes "0", RA signal remains "0". At the same time, the output of the inverter IV13 becomes "1", the output of the AND circuit AG16 becomes "1", the output of the OR circuit OG8 becomes "1", and the RS latch circuit 34 is reset. That is, the interrupt of the interrupt request signal INT0 is not accepted, and the interrupt processing request signal INTRQ is not output.

次に、タイミングチャートには示されていないが、現
在何も割込みを受付けていない時に優先順位レベル0、
プライオリティビットレジスタ33A,33Bの内容が“0",
“0"の割込み要求信号INT0,INT1が発生した場合、つま
り同一優先順位レベルの2つの割込み信号が発生した場
合は、同様にタイミング信号STG3が“1"のタイミングで
割込み要求信号制御部3A,3Bのアンド回路AG17の出力が
“1"となり、インバータIV14の出力が“0"となるのでMO
SトランジスタQ8が遮断される。
Next, although not shown in the timing chart, priority level 0, when no interrupt is currently accepted,
The contents of priority bit registers 33 A and 33 B are “0”,
If "0" interrupt request signal INT0, INT1 has occurred, i.e. the same priority when two interrupt signals ranking level occur, similarly interrupt request signal controller 3 at the timing of the timing signal STG3 is "1" A , 3 B AND circuit AG17 output is "1" and inverter IV14 output is "0".
The S transistor Q8 is turned off.

今、割込みを何も受付けていないので、受付中割込み
要求制御部4のラッチ回路42の出力は“0"となっており
アンド回路AG25の出力は“0"でインバータIV21の出力が
“1"となりMOSトランジスタQ12は導通している。従っ
て、割込み要求信号制御部3Aの出力信号CMOTは接地され
“0"となり、その入力信号CMINと割込み要求信号制御部
3Bの出力信号CMOT,入力信号CMINは“1"であるので、割
込み要求信号制御部3AのインバータIV15の出力だけが
“1"となり、アンド回路の出力、つまり割込み要求信号
INT0に対するRA信号は“1"となる。しかし、割込み要求
信号制御部3BのインバータIV15の出力は“0"になり、そ
のアンド回路AG18の出力、つまり割込み要求信号INT1に
対するRA信号は“0"となる。従って同一優先順位レベル
の割込み要求信号INT0,INT1が同時に発生してもINT0の
方が優先される。
Since no interrupt is accepted, the output of the latch circuit 42 of the accepting interrupt request control unit 4 is "0", the output of the AND circuit AG25 is "0", and the output of the inverter IV21 is "1". The adjacent MOS transistor Q12 is conducting. Therefore, the output signal CMOT of the interrupt request signal control unit 3 A is grounded to "0", and its input signal CMIN and the interrupt request signal control unit
3 B of the output signal CMOT, the input signal CMIN is "1", an interrupt request signal controller 3 A only the output of the inverter IV15 becomes "1", the AND circuit output, i.e. the interrupt request signal
RA signal for INT0 becomes "1". However, the output of the interrupt request signal controller 3 B of the inverter IV15 becomes "0", the output of the AND circuit AG 18, RA signal that is for the interrupt request signal INT1 is "0". Therefore, even if the interrupt request signals INT0 and INT1 having the same priority level are generated at the same time, INT0 has priority.

以上の様に、優先順位レベルの低い割込み要求の処理
中に優先順位の高い割込み要求の処理が割込める制御
を、プライオリティビットの重みの大きい方から重み別
で優先順位をスキャンする為、従来の割込みコントロー
ラにくらべて高速に応答することができ、さらに現在受
付中の割込み処理と同一と優先順位レベルの割込みが発
生した場合は割込みを受付けなかったり、同一優先順位
レベルの2つ以上の割込みが同時に発生した場合でも、
回路によって設定された優先順位(以下、ディフォルト
値という)が高い方の割込みを受付けて、ディフォルト
値の低い割込みを受付けない制御を行なう。
As described above, the control in which the interrupt request processing with a high priority level can be interrupted while the interrupt request with a low priority level is being processed is performed by scanning the priorities according to the weights from the one with the highest priority bit weight. It can respond faster than the interrupt controller. In addition, if an interrupt with the same priority level as the currently accepted interrupt process occurs, it will not be accepted or two or more interrupts with the same priority level will be accepted. Even if they occur at the same time,
Control is performed such that an interrupt having a higher priority (hereinafter, referred to as a default value) set by the circuit is accepted and an interrupt having a lower default value is not accepted.

従って、本発明は種々の割込み要求のさまざまな割込
み要求処理に対して高速に、かつ柔軟な対応ができる。
Therefore, the present invention can flexibly deal with various interrupt request processes of various interrupt requests at high speed.

第6図は本発明の第2の実施例を示す回路図である。 FIG. 6 is a circuit diagram showing a second embodiment of the present invention.

この第2の実施例が第1図〜第5図に示された第1の
実施例と相違する点は、優先順位レベルを8レベルにし
た点である。これに伴って、ステージカウンタ2Aは第7
図、割込み要求信号制御部3E〜3Hは第8図(3Eのみ図
示)、受付中割込み要求制御部4Aは第9図のように変更
されている。
The second embodiment differs from the first embodiment shown in FIGS. 1 to 5 in that the priority level is 8 levels. Along with this, the stage counter 2 A becomes
The interrupt request signal control units 3 E to 3 H are changed as shown in FIG. 8 (only 3 E is shown), and the accepting interrupt request control unit 4 A is changed as shown in FIG.

次に、この実施例について変更部分を中心に説明す
る。
Next, this embodiment will be described focusing on the changed portions.

第6図において、第1図との違いは、ステージカウン
タ2Aからタイミング信号STG4が出力され、割込み要求信
号制御部3E〜3Hに共通にCM3信号が入力されていること
ができる。CM3信号にはCM1信号,CM2信号と同様にプリチ
ャージするpチャネル型のMOSトランジスタQ13が接続さ
れている。また、割込み要求信号制御部3E〜3Hは共にPR
2信号を出力し実行中優先順位レジスタ7Aに入力され
る。実行中優先順位レベル7Aからは信号ISPR2が受付中
割込み要求制御部4Aに対し出力されている。PR2信号
は、プライオリティビットの「4」の重みを示す信号
で、又信号ISPR2は実行中優先順位レベル7Aにおける
「4」の重みを示す信号である。
In Figure 6, the difference between FIG. 1 is output timing signal STG4 from the stage counter 2 A, can be common to CM3 signal to the interrupt request signal controller 3 E to 3 H is input. A p-channel type MOS transistor Q13 for precharging is connected to the CM3 signal similarly to the CM1 and CM2 signals. The interrupt request signal controller 3 E to 3 H are both PR
2 signals are output and input to the running priority register 7 A. The signal ISPR2 is output from the executing priority level 7 A to the accepting interrupt request control unit 4 A. The PR2 signal is a signal indicating the weight of "4" of the priority bit, and the signal ISPR2 is a signal indicating the weight of "4" at the priority level 7 A during execution.

第7図においては、第2図に対し、アンド回路AG28と
ラッチL9,L10とアンド回路AG29とが追加され、出力とし
てタイミング信号STG4が追加される。このステージカウ
ンタ2Aは第2図の回路とほぼ同様に動作するが、タイミ
ング信号STG3の次はタイミング信号STG4が発生するた
め、通常、「STG1→STG2→STG3→STG4→STG1…」の様に
スキャン信号が発生する。
In FIG. 7, an AND circuit AG28, latches L9 and L10, and an AND circuit AG29 are added to FIG. 2, and a timing signal STG4 is added as an output. This stage counter 2 A operates almost in the same way as the circuit of FIG. 2, but since the timing signal STG4 is generated after the timing signal STG3, it is usually "STG1 → STG2 → STG3 → STG4 → STG1 ..." Scan signal is generated.

第8図においては、第3図に対し、CM3信号タイミン
グ信号STG4、インバータIV26,IV27、アンド回路AG30,AG
31、nチャネルのMOSトランジスタQ14、出力バッファB
3、プライオリティビットレジスタ33Cが追加され、オア
回路OG11が5入力され、ノア回路NOG2が4入力に変更さ
ている。また、ノア回路NOG2にタイミング信号STG4が入
力されている。インバータIV8,IV9にはそれぞれプライ
オリティビットレジスタ33C,33Aの出力がプライオリテ
ィビットレジスタ33A,33Bの出力の代わりに入力されて
いる。プライオリティビットレジスタ33Cは「4」の重
みを示し、プライオリティビットレジスタ33A〜33C
“0"〜“7"の8レベルの優先順位を表わす。従って、優
先順位レベルのスキャンは「4」の重みがタイミング信
号STG1、「2」の重みがタイミング信号STG2、「1」の
重みがタイミング信号STG3によりスキャンされる。
8, CM3 signal timing signal STG4, inverters IV26, IV27, AND circuits AG30, AG are shown in FIG.
31, n-channel MOS transistor Q14, output buffer B
3, the priority bit register 33 C is added, the OR circuit OG11 is changed to 5 inputs, and the NOR circuit NOG2 is changed to 4 inputs. Further, the timing signal STG4 is input to the NOR circuit NOG2. The outputs of the priority bit registers 33 C and 33 A are input to the inverters IV8 and IV9 instead of the outputs of the priority bit registers 33 A and 33 B , respectively. Priority bit register 33 C represents the weight of "4", representing the eight priority levels of the priority bit register 33 A ~33 C "0" ~ "7". Therefore, in the scanning of the priority level, the weight of "4" is scanned by the timing signal STG1, the weight of "2" is scanned by the timing signal STG2, and the weight of "1" is scanned by the timing signal STG3.

第8図の回路の動作は、プライオリティビットが1ビ
ット追加された以外は第3図の回路と同じタイミング信
号STG4が発生した時にRSラッチ回路34が“0"にリセット
されないとSLPRH信号が“1"となるので次のタイミング
信号STG0が発生し、割込み要求が受付けられたことにな
る。
The operation of the circuit of FIG. 8 is that the SLPRH signal is set to "1" unless the RS latch circuit 34 is reset to "0" when the same timing signal STG4 as that of the circuit of FIG. 3 is generated except that one priority bit is added. ", The next timing signal STG0 is generated, and the interrupt request is accepted.

第9図においては、第4図に対しCM3信号、タイミン
グ信号STG4、インバータIV28,IV29,IV30、アンド回路AG
32,AG33、nチャネルのMOSトランジスタQ15,Q16、ナン
ド回路NAG2が追加されている。又、ISPR2信号がインバ
ータIV17に、ISPR1信号がインバータIV18に、ISPRQ信号
がインバータIV28に入力されている。第8図の回路と同
様に第9図の回路では「4」の重みから優先順位レベル
のスキャンを行なう構成になっている。
In FIG. 9, CM3 signal, timing signal STG4, inverters IV28, IV29, IV30, and circuit AG are provided in comparison with FIG.
32, AG33, n-channel MOS transistors Q15, Q16, and a NAND circuit NAG2 are added. The ISPR2 signal is input to the inverter IV17, the ISPR1 signal is input to the inverter IV18, and the ISPRQ signal is input to the inverter IV28. Similar to the circuit of FIG. 8, the circuit of FIG. 9 is configured to scan the priority level from the weight of “4”.

以上の様に、第2の実施例では、「4」の重み→
「2」の重み→「1」の重みと3タイミングで8レベル
の優先順位を制御する場合でも、タイミング信号STG4が
出力するタイミングで実施例1と同様に受付中割込み要
求制御4Aの出力信号CMOTを接地して、割込み要求信号制
御部3E〜3Hの出力信号CMOTと入力信号CMINとをそれぞれ
接続することによって、同一優先順位レベルの2つ以上
の割込み要求に対し、ディフォルト値による優先順位の
制御を1タイミングでスキャンすることができる。
As described above, in the second embodiment, the weight of "4" →
"2" in weight → "1" weights and 3 even when controlling the eight priority levels at the timing, the timing in the same manner as in Example 1 acceptance in the output signal of the interrupt request control 4 A timing signal STG4 is output CMOT to ground, by connecting the output signal CMOT interrupt request signal controller 3 E to 3 H and the input signal CMIN respectively, for two or more interrupt requests of the same priority level, the priority by default values The control of the rank can be scanned at one timing.

以上の説明から、優先順位レベルが16レベル(24)と
なると5タイミングでスキャンできることが容易にわか
る。
From the above description, it is easily understood that scanning can be performed at 5 timings when the priority level becomes 16 levels (2 4 ).

従って2nレベルの優先順位レベルは(n+1)のタイ
ミングで割込み要求に対しての優先順位判別制御ができ
ることは明白である。
Therefore, it is obvious that the priority level of the 2 n level can control the priority level determination for the interrupt request at the timing of (n + 1).

〔発明の効果〕〔The invention's effect〕

以上、説明した様に本発明は、優先順位レベルのレベ
ル数が2n以内の場合に、優先順位レベルのスキャンを2n
→2n-1→…20の順序で順次行ない、次にディフォルト値
による優先順位を1タイミングでスキャンすることによ
りわずか(n+1)回のタイミングで、同一優先順位レ
ベルであってもディフォルト値によって、すべての割込
み要求信号のうち、最も高い優先順位をもつ割込み要求
信号を検出することができる。
As described above, according to the present invention, when the number of priority levels is within 2 n , the priority level scan is performed by 2 n.
→ sequentially performed in 2 n-1 → ... 2 0 order, the priority by default values only (n + 1) times of the timing by scanning at one time then by be the same priority level default values , Of all the interrupt request signals, the interrupt request signal having the highest priority can be detected.

従って本発明は、リアルタイム処理を行なうマイクロ
コンピュータに最適な種々の割込み要求のさまざまな割
込み要求処理に、高速にかつ柔軟な対応ができるという
効果を有する。
Therefore, the present invention has an effect that it is possible to quickly and flexibly deal with various interrupt request processes of various interrupt requests that are most suitable for a microcomputer that performs real-time processing.

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

第1図は本発明の第1の実施例を示す回路図、第2図は
第1図に示された実施例のステージカウンタの具体例を
示す回路図、第3図は第1図に示された実施例の割込み
要求信号制御部の具体例を示す回路図、第4図は第1図
に示された実施例の受付中割込み要求制御部の具体例を
示す回路図、第5図は第1図〜第4図に示された実施例
の動作を説明するためのタイミングチャート、第6図は
本発明の第2の実施例を示す回路図、第7図は第6図に
示された実施例のステージカウンタの具体例を示す回路
図、第8図は第6図に示された実施例の割込み要求信号
制御部の具体例を示す回路図、第9図は第6図に示され
た実施例の受付中割込み要求制御部の具体例を示す回路
図、第10図は従来のマイクロコンピュータの一例を示す
構成図、第11図は従来の割込みコントローラの一例を示
す回路図、第12図は第11図に示された割込みコントロー
ラの動作を説明するためのタイミングチャートである。 1……内部データバス、2,2A……ステージカウンタ、3A
〜3L……割込み要求信号制御部、4,4A……受付中割込み
要求制御部、5……ベクタアドレステーブルレジスタ、
6……出力バッファ、7,7A,7B……実行中優先順位レベ
ル、8……ライト制御回路、9,9A……ラッチ回路、10…
…スキャンカウンタ、31……マスクビットレジスタ、32
……割込み要求フラグレジスタ、33A〜33C……プライオ
リティビットレジスタ、34……RSラッチ回路、35……ラ
ッチ回路、41……RSラッチ回路、42……ラッチ回路、10
0……CPU、200……メモリ部、300……割込みコントロー
ラ、400……周辺機能部。
FIG. 1 is a circuit diagram showing a first embodiment of the present invention, FIG. 2 is a circuit diagram showing a concrete example of the stage counter of the embodiment shown in FIG. 1, and FIG. 3 is shown in FIG. FIG. 4 is a circuit diagram showing a concrete example of the interrupt request signal control unit of the embodiment shown in FIG. 4, FIG. 4 is a circuit diagram showing a concrete example of the accepting interrupt request control unit of the embodiment shown in FIG. 1, and FIG. Timing charts for explaining the operation of the embodiment shown in FIGS. 1 to 4, FIG. 6 is a circuit diagram showing a second embodiment of the present invention, and FIG. 7 is shown in FIG. FIG. 8 is a circuit diagram showing a concrete example of the stage counter of the embodiment, FIG. 8 is a circuit diagram showing a concrete example of the interrupt request signal controller of the embodiment shown in FIG. 6, and FIG. 9 is shown in FIG. FIG. 10 is a circuit diagram showing a concrete example of an on-accepting interrupt request control unit of the embodiment, FIG. 10 is a block diagram showing an example of a conventional microcomputer, and FIG. FIG. 12 is a circuit diagram showing an example of a conventional interrupt controller, and FIG. 12 is a timing chart for explaining the operation of the interrupt controller shown in FIG. 1 …… Internal data bus, 2,2 A …… Stage counter, 3 A
~ 3 L ... interrupt request signal control unit, 4, 4 A ... accepting interrupt request control unit, 5 ... vector address table register,
6 ... Output buffer, 7,7 A , 7 B ... Execution priority level, 8 ... Write control circuit, 9,9 A ... Latch circuit, 10 ...
… Scan counter, 31 …… Mask bit register, 32
...... Interrupt request flag register, 33 A to 33 C ...... Priority bit register, 34 …… RS latch circuit, 35 …… Latch circuit, 41 …… RS latch circuit, 42 …… Latch circuit, 10
0 …… CPU, 200 …… Memory section, 300 …… Interrupt controller, 400 …… Peripheral function section.

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】複数の割込み要求信号に対しそれぞれ2n
(nは2以上の整数、以下同じ)の優先順位レベルを設
定するための複数のnビットのプライオリティビットレ
ジスタと、前記各割込み要求信号に対する優先順位レベ
ルをスキャンする(n+1)個のタイミング信号を順次
繰り返し発生するステージカウンタと、現在実行中の割
込み処理に対応する割込み要求信号の前記プライオリテ
ィビットレジスタの内容を記憶する実行中優先順位レジ
スタと、前記プライオリティビットレジスタを含み発生
した全ての割込み要求信号の前記プライオリティビット
レジスタの内容と前記実行中優先順位レジスタの記憶内
容とを前記n個のタイミング信号に同期して最上位ビッ
トから最下位ビットに向って順次比較し前記各割込み要
求信号のビット内容が他の割込み要求信号のビット内容
より優先する値を持つプライオリティに対応する割込み
要求を最も優先順位レベルが高いものを検出し、かつ複
数個の割込み要求信号が最も優先順位が高いと検出され
た場合はあらかじめ指定された順序に従いその割込み要
求信号を前記n個のタイミング信号に続く次のタイミン
グ信号に同期して検出する割込み要求信号制御手段と、
この割込み要求信号制御手段が最も優先順位レジスタの
高い割込み要求信号を検出した場合に割込み処理要求信
号を出力する手段とを有することを特徴とする割込みコ
ントローラ。
1. A plurality of n-bit priority bit registers for setting 2 n (n is an integer of 2 or more, and the same below) priority levels for a plurality of interrupt request signals, and each interrupt request. A stage counter for sequentially and repeatedly generating (n + 1) timing signals for scanning the priority level of the signal, and an executing priority for storing the contents of the priority bit register of the interrupt request signal corresponding to the interrupt process currently being executed. The register, the contents of the priority bit register of all interrupt request signals generated including the priority bit register, and the contents stored in the execution priority register are synchronized with the n timing signals, from the most significant bit to the highest bit. Within the bits of each of the interrupt request signals by sequentially comparing toward the lower bit Detected the interrupt request with the highest priority level corresponding to the priority having a value that has priority over the bit contents of other interrupt request signals, and detected that multiple interrupt request signals had the highest priority level. In this case, an interrupt request signal control means for detecting the interrupt request signal in synchronization with the next timing signal subsequent to the n timing signals in a predetermined order,
An interrupt controller, characterized in that the interrupt request signal control means outputs an interrupt processing request signal when the interrupt request signal of the highest priority register is detected.
【請求項2】プライオリティビットレジスタの各ビット
がそれぞれ、2(N-1)(Nは1〜n)の重みをもつように
設定された請求項1記載の割込みコントローラ。
2. The interrupt controller according to claim 1, wherein each bit of the priority bit register is set to have a weight of 2 (N-1) (N is 1 to n).
【請求項3】プライオリティビットレジスタの内容が、
重み付けの重いビットから順次検出,比較されるように
構成された請求項2記載の割込みコントローラ。
3. The contents of the priority bit register are:
3. The interrupt controller according to claim 2, wherein the interrupt controller is configured to sequentially detect and compare the bits having the highest weight.
JP2297475A 1990-11-02 1990-11-02 Interrupt controller Expired - Lifetime JP2567988B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP2297475A JP2567988B2 (en) 1990-11-02 1990-11-02 Interrupt controller
KR1019910019547A KR950014373B1 (en) 1990-11-02 1991-11-02 Interrupt controller
DE69118833T DE69118833T2 (en) 1990-11-02 1991-11-04 Interrupt control
EP91118767A EP0489260B1 (en) 1990-11-02 1991-11-04 Interrupt controller
US08/110,495 US5481729A (en) 1990-11-02 1993-08-23 Interrupt controller that reduces the number of scans needed to identify priority

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2297475A JP2567988B2 (en) 1990-11-02 1990-11-02 Interrupt controller

Publications (2)

Publication Number Publication Date
JPH04174030A JPH04174030A (en) 1992-06-22
JP2567988B2 true JP2567988B2 (en) 1996-12-25

Family

ID=17846982

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2297475A Expired - Lifetime JP2567988B2 (en) 1990-11-02 1990-11-02 Interrupt controller

Country Status (1)

Country Link
JP (1) JP2567988B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04235635A (en) * 1991-01-09 1992-08-24 Nec Ic Microcomput Syst Ltd Interruption controller

Also Published As

Publication number Publication date
JPH04174030A (en) 1992-06-22

Similar Documents

Publication Publication Date Title
US4112490A (en) Data transfer control apparatus and method
US4034349A (en) Apparatus for processing interrupts in microprocessing systems
US4348722A (en) Bus error recognition for microprogrammed data processor
US4860195A (en) Microprocessor breakpoint apparatus
US5249278A (en) Microprocessor breakpoint apparatus
JP2661222B2 (en) Pulse output device
JPS59116850A (en) Processor system
JPS6217783B2 (en)
GB2216306A (en) Load and synchronize computer architecture and process
US8843681B2 (en) Techniques for accessing memory, system and bus arbitration
JP2567988B2 (en) Interrupt controller
US5481729A (en) Interrupt controller that reduces the number of scans needed to identify priority
US5274829A (en) Information processing apparatus having micro instructions stored both in on-chip ROM and off-chip memory
CN110221861B (en) CPU register system structure and interrupt processing method thereof
US5053944A (en) Microprocessor breakpoint apparatus
JP2702291B2 (en) Interrupt controller
JP2702290B2 (en) Interrupt controller
JPH04302035A (en) Interruption controller
US5151982A (en) Data processing system
JPH04235635A (en) Interruption controller
JPS6085691A (en) Digital picture signal processor
JPS6391756A (en) Partial write instruction processing system for storage device
JP2669195B2 (en) Interrupt control circuit
JPS6020261A (en) Output port of microprocessor
JPS63168752A (en) Address conversion buffer control system

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081003

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091003

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091003

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101003

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101003

Year of fee payment: 14

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101003

Year of fee payment: 14

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111003

Year of fee payment: 15

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111003

Year of fee payment: 15