JPH02132541A - Interruption controller - Google Patents

Interruption controller

Info

Publication number
JPH02132541A
JPH02132541A JP28633188A JP28633188A JPH02132541A JP H02132541 A JPH02132541 A JP H02132541A JP 28633188 A JP28633188 A JP 28633188A JP 28633188 A JP28633188 A JP 28633188A JP H02132541 A JPH02132541 A JP H02132541A
Authority
JP
Japan
Prior art keywords
interrupt
cpu
request
controller
peripheral devices
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP28633188A
Other languages
Japanese (ja)
Inventor
Hideji Nishida
西田 秀二
Shoko Tsuji
辻 勝公
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP28633188A priority Critical patent/JPH02132541A/en
Publication of JPH02132541A publication Critical patent/JPH02132541A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To reduce the chip size by transmitting the control signals outputted in response to the request signals given from a CPU to plural peripheral devices in a bus form. CONSTITUTION:The control signals CLEN outputted in response to the request signals given from a CPU 2 are transmitted to plural peripheral devices 22a - 22n in a bus form. When an interruption sequence of the CPU 2 carried out by an interruption request of a resource 22c, for example, is through, an interruption controller 20 outputs the control signal corresponding to a clear request to a decoder 23c as a resource number via lines 21b - 21f. At the same time, the controller 20 activates the signal CLEN and sends it to the decoder 23c. Thus the resource 22c is cleared based on the signal CLEN. In such a way, the control signals for cancel of the interruption are outputted to the resources 22a - 22n from the controller 20 in a bus form. As a result, many resources are treated with the small number of control lines. Then the number of control lines are extremely reduced and the chip size is reduced.

Description

【発明の詳細な説明】 [目次] 概要 産業上の利用分野 従来の技術       (第3、4図)発明が解決し
ようとする課題 課題を解決するための手段 作用 実施例 本発明の一実施例   (第1、2図)発明の効果 〔概要〕 割込みコントローラに関し、 少ない本数の制御線で多数の周辺装置に対応することが
でき、チップサイズの縮小化を図ることのできる割込み
コントローラを提供することを目的とし、 CPUの外部に配置された複数の周辺装置からの割込み
入力I R Q+ −I R QRを取り込み、1つの
周辺装置を選択してCPUに割込みを要求し、CPUの
割込み処理が終了するとCPUから要求信号を受け取り
、該要求信号に対応する制御信号CLENを周辺装置に
出力して周辺装置の制御を行なう割込みコントローラに
おいて、前記CPUからの要求信号に対応して出力する
制御信号CLENを、複数の周辺装置に対してバス形式
で伝達するように構成する. 〔産業上の利用分野〕 本発明は、割込みコントローラに係り、詳しくはCPt
Jに対して割込みを発生する周辺装置の割込みをコント
ロールする割込みコントローラに関する。
[Detailed Description of the Invention] [Table of Contents] Overview Industrial Field of Application Prior Art (Figures 3 and 4) Problems to be Solved by the Invention Examples of Means and Actions for Solving the Problems An Embodiment of the Invention ( Figures 1 and 2) Effects of the invention [Summary] Regarding an interrupt controller, it is an object of the present invention to provide an interrupt controller that can support a large number of peripheral devices with a small number of control lines and that can reduce the chip size. The purpose is to capture interrupt inputs IR Q+ -IR QR from multiple peripheral devices located outside the CPU, select one peripheral device, request an interrupt to the CPU, and when the CPU interrupt processing is completed. In an interrupt controller that receives a request signal from a CPU and outputs a control signal CLEN corresponding to the request signal to a peripheral device to control the peripheral device, the control signal CLEN output in response to the request signal from the CPU is provided. Configure it so that it communicates to multiple peripheral devices in bus format. [Industrial Application Field] The present invention relates to an interrupt controller, and more specifically, to a CPt controller.
The present invention relates to an interrupt controller that controls interrupts of peripheral devices that generate interrupts for J.

マイクロコンビエー夕の応用分野が広がるにつれて、そ
の機能に対する要求も必然的に増大し、その結果、新し
い高性能のCPUが次々と出現するとともに、一方では
CPUを補助して、ある特定の機能を実行するような専
用LSI、いわゆる周辺チップが各種開発されている。
As the field of application for micro combiators expands, the demands on their functionality will inevitably increase, and as a result, new high-performance CPUs will appear one after another, while at the same time assisting the CPU to perform certain functions. Various dedicated LSIs, so-called peripheral chips, have been developed.

これらのチップには、例えば、CPUの機能に直接関係
する割込みコントローラやバスコントローラから始まっ
て、通信用、周辺システム制御用などの多数のチップが
ある。
These chips include, for example, interrupt controllers and bus controllers directly related to the functionality of the CPU, as well as chips for communication, peripheral system control, and so on.

CPUサポート用のチップとしては、CPUの制御回路
に関係するものとして、(クロック発生器、タイマカウ
ンタ、DMAコントローラ、割込みコントローラなどが
あり、このうち特に割込みコントローラはCPU外部で
発生する複数個の出来事に対するCPUの対応を制御す
るための回路である。このコントローラは各種の出来事
に割り当てられるような2つ以上の入力ピンを持ち、そ
れらの人力間に優先順位が設定できるようになっている
CPU support chips related to the CPU control circuit include clock generators, timer counters, DMA controllers, and interrupt controllers. This is a circuit for controlling the CPU's response to various events.This controller has two or more input pins that can be assigned to various events, and it is possible to set priorities among these human inputs.

近時、割込みコントローラを実現しているワンチップマ
イクロコントローラは、多機能化、高速化に伴い、チン
プサイズの増大が生じている。しかし、コスト面からチ
ップサイズの縮小化が要求されており、このためチップ
内部の回路および配線等はできるかぎり簡略化する必要
がある。
In recent years, one-chip microcontrollers that implement interrupt controllers have become more multifunctional and faster, resulting in an increase in chimp size. However, there is a need to reduce the chip size from a cost perspective, and therefore it is necessary to simplify the circuits, wiring, etc. inside the chip as much as possible.

〔従来の技術〕[Conventional technology]

従来の割込みコントローラとしては、例えば第3、4図
に示すようなものがある。第3図は各種周辺装置に対す
る割込みコントローラの制御系統を示す図である。この
図において、1a〜1nは各種機能を有する周辺装置で
あり、例えばI/Oボート、タイマ、A/Dコンバータ
等である。周辺装置1a〜Inはデータ処理の過程等で
必要に応じてCPU2に対して割込みを発生するもので
、この割込み要求はライン3a〜3nを通して割込みコ
ントローラ(INTC)4に割込み入力として出力され
る。割込みコントローラ4は周辺装置1a〜1nからの
割込み入力に基づき要求先の判別や割込み許可の優先順
位等に応じて割込み要求INTをCPU2に出力する。
Examples of conventional interrupt controllers include those shown in FIGS. 3 and 4. FIG. 3 is a diagram showing a control system of an interrupt controller for various peripheral devices. In this figure, 1a to 1n are peripheral devices having various functions, such as an I/O boat, a timer, an A/D converter, and the like. The peripheral devices 1a-In generate interrupts to the CPU 2 as necessary during data processing, and these interrupt requests are output as interrupt inputs to an interrupt controller (INTC) 4 through lines 3a-3n. The interrupt controller 4 outputs an interrupt request INT to the CPU 2 based on the interrupt input from the peripheral devices 1a to 1n, in accordance with the determination of the request destination, the priority order of interrupt permission, and the like.

CPU2は割込み要求INTによってユーザが作成した
割込みシーケンスを起動して各種演算処理を行うもので
あり、割込みを受け入れるときには、割込み許可INT
Aを割込みコントローラ4に送り、また、割込み処理が
終了するとクリア要求を割込みコントローラ4に出力す
る。割込みコントローラ4は割込み許可INTAが送ら
れてくると、周辺装置13〜inに対応する割込みベク
タの番号等をバス5を通してCPtJ2に出力し、CP
U2と何れか1つの周辺装Rla〜Inとの間でバス5
を介してデータの授受等を行って割込み処理を実行する
。また、割込みコントローラ4は割込み処理終了後にC
PU2からクリア要求があると、ライン6a〜6nを介
して何れか1つの周辺装置1a〜1nにクリア要求に対
応する制御信号を出力して割込み状態を解除する。
The CPU 2 uses the interrupt request INT to start an interrupt sequence created by the user and performs various arithmetic processing, and when accepting an interrupt, interrupt permission INT is activated.
A is sent to the interrupt controller 4, and when the interrupt processing is completed, a clear request is output to the interrupt controller 4. When the interrupt controller 4 receives the interrupt permission INTA, it outputs the interrupt vector number etc. corresponding to the peripheral devices 13-in to the CPtJ2 through the bus 5, and
Bus 5 between U2 and any one of the peripherals Rla to In
Interrupt processing is executed by exchanging data, etc. via the . In addition, the interrupt controller 4
When a clear request is received from the PU 2, a control signal corresponding to the clear request is output to any one of the peripheral devices 1a-1n via lines 6a-6n to release the interrupt state.

次に、割込みコントローラ4の詳細な構成を第4図に基
づき説明する。同図において、割込みコントローラ4は
ラッチ11,マスク回路12、優先順位決定回路l3、
エンコーダ14、ベクタ回路15およびゲート16によ
り構成される。外部の周辺装置1a〜1nからの割込み
入力はn本のラインで割込みコントローラ4に入力され
、ラッチ11はこれらの割込み入力を一時ラッチし、マ
スク回路12は特定の割込み入力をマスクするものであ
る。優先順位決定回路13は複数の割込み入力があった
場合に最上位レベルの割込みを選択して優先順位を決定
し、割込み要求INTをCPU2に出力する。エンコー
ダ14は割込み入力をエンコードしてベクタ(割込みベ
クタの番号)を生成してベクタ回路15に送り、ベクタ
回路15は生成されたベクタをバス5に出力する。ゲー
ト16は一般的なゲートであり、CPU2からクリア要
求があると、周辺装置1a〜1nに対してクリア要求制
御信号を出力する。
Next, the detailed configuration of the interrupt controller 4 will be explained based on FIG. 4. In the figure, the interrupt controller 4 includes a latch 11, a mask circuit 12, a priority determination circuit 13,
It is composed of an encoder 14, a vector circuit 15, and a gate 16. Interrupt inputs from external peripheral devices 1a to 1n are input to the interrupt controller 4 through n lines, a latch 11 temporarily latches these interrupt inputs, and a mask circuit 12 masks specific interrupt inputs. . When there are a plurality of interrupt inputs, the priority determining circuit 13 selects the highest level interrupt, determines the priority, and outputs an interrupt request INT to the CPU 2. The encoder 14 encodes the interrupt input to generate a vector (interrupt vector number) and sends it to the vector circuit 15, and the vector circuit 15 outputs the generated vector to the bus 5. The gate 16 is a general gate, and when there is a clear request from the CPU 2, it outputs a clear request control signal to the peripheral devices 1a to 1n.

なお、CPU2からの割込み許可I NTAはラッチ1
1およびベクタ回路15に入力されており、ラッチ11
はこの割込み許可INTAの入力があると、外部からの
割込み入力をラッチし、ベクタ回路15は割込み許可I
 NTAがあると生成されたベクタを出力する。また、
図中、n,mは配線の本数を表し、nは周辺装置1a〜
1nからの割込み入力と同じ本数、mはエンコーダ14
およびベクタ回路15から出力される配線の本数である
。n>mとなる関係にあり、例えばn=8とするとm=
3に設定される。
Note that interrupt permission INTA from CPU2 is latch 1.
1 and the vector circuit 15, and the latch 11
When the interrupt enable INTA is input, the vector circuit 15 latches the external interrupt input, and the vector circuit 15 inputs the interrupt enable INTA.
If there is an NTA, the generated vector is output. Also,
In the figure, n and m represent the number of wires, and n is the peripheral device 1a~
The same number of interrupt inputs from 1n, m is encoder 14
and the number of wires output from the vector circuit 15. There is a relationship n>m, for example, if n=8, m=
Set to 3.

したがって、割込みコントローラ4に対し周辺装置1 
a−1 nからの割込み入力があると、マスク回路12
及び優先順位決定回路13によって割込みの優先順位が
調べられ最も順位の高いものが最終的な割込み入力とし
てエンコーダ14に送られるとともに、割込み要求IN
TがCPU2に送られる。
Therefore, for the interrupt controller 4, the peripheral device 1
When there is an interrupt input from a-1 n, the mask circuit 12
The priorities of the interrupts are checked by the priority determination circuit 13, and the one with the highest priority is sent to the encoder 14 as the final interrupt input, and the interrupt request IN
T is sent to CPU2.

その後、送られた値をもとにエンコーダ14でベクタが
生成され、その値はベクタ回路15を通ってバス5に出
力され、バス5からCPU2に送られて1つの周辺装置
が選択され割込み処理が実行される。なお、本例の場合
、第3図に示す回路は1つのチップにまとめられて、い
わゆるワンチップマイクロコイトローラとして集積化さ
れている。
After that, a vector is generated by the encoder 14 based on the sent value, and the value is outputted to the bus 5 through the vector circuit 15, and sent from the bus 5 to the CPU 2, where one peripheral device is selected and interrupt processing is performed. is executed. In the case of this example, the circuit shown in FIG. 3 is assembled into one chip and integrated as a so-called one-chip microcoit roller.

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

しかしながら、このような従来の割込みコントローラに
あっては、割込みを解除するときのクリア要求に対応す
る制御信号を個々の周辺装置ごとに出力する構成となっ
ていたため、割込みコントローラを含むワンチップ中に
内蔵する周辺装置の数が多い場合は、多数の制御信号を
出力することになり、その結果、チップ内部の簡略化が
できず、多数の制御線を引き回してチップサイズが大き
くなってしまうという問題点があった。
However, such conventional interrupt controllers have a configuration in which a control signal corresponding to a clear request when canceling an interrupt is output for each individual peripheral device. If there are a large number of built-in peripheral devices, a large number of control signals will be output, and as a result, the inside of the chip cannot be simplified, and the chip size will increase due to the large number of control lines. There was a point.

なお、上記従来例は周辺装置やCPUを割込みコントロ
ーラと共にワンチップ化した場合であるが、割込みコン
トローラのみを単体でIC化した場合も制御線に対応す
る出力ピンの数が多くなる等から同様の問題点がある。
Note that the above conventional example is a case in which the peripheral devices and CPU are integrated into one chip together with the interrupt controller, but even if only the interrupt controller is integrated into a single IC, the number of output pins corresponding to the control lines increases, so the same problem occurs. There is a problem.

そこで本発明は、少ない本数の制御線で多数の周辺装置
に対応することができ、チップサイズの縮小化を図るこ
とができる割込みコントローラを提供することを目的と
している。
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide an interrupt controller that can support a large number of peripheral devices with a small number of control lines and that can reduce the chip size.

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

本発明による割込みコントローラは上記目的達成のため
、CPUの外部に配置された複数の周辺装置からの割込
み人力IRQ,〜IRQ,を取り込み、1つの周辺装置
を選択してCPUに割込みを要求し、CPUの割込み処
理が終了するとCPUから要求信号を受け取り、該要求
信号に対応する制御信号CLENを周辺装置に出力して
周辺装置の制御を行なう割込みコントローラにおいて、
前記CPUからの要求信号に対応して出力する制御信号
CLENを、複数の周辺装置に対してバス形式で伝達す
るように構成している。
In order to achieve the above object, the interrupt controller according to the present invention takes in interrupt input IRQ, ~IRQ, from a plurality of peripheral devices arranged outside the CPU, selects one peripheral device, and requests an interrupt to the CPU, In an interrupt controller that receives a request signal from the CPU when the CPU interrupt processing is completed, and outputs a control signal CLEN corresponding to the request signal to the peripheral device to control the peripheral device,
The control signal CLEN output in response to a request signal from the CPU is configured to be transmitted to a plurality of peripheral devices in a bus format.

〔作用〕[Effect]

本発明では、CPUからの要求信号があると、複数の周
辺装置に対してバス形式で周辺装置の制御を行うための
制御信号が伝達される。
In the present invention, when there is a request signal from the CPU, a control signal for controlling the peripheral devices is transmitted to a plurality of peripheral devices in a bus format.

したがって、バス形式であれば、例えば個々の周辺装置
にそれぞれ番号を付してその番号で区別すること等がで
きるから、CPUから割込み要因等のクリア要求(要求
信号)があると割込み要因をクリア(周辺装置の制御)
して欲しい周辺装置の番号をバス形式で出力することが
可能となり、少ない制御線で多数の周辺装置を対象にす
ることができ、チップサイズの縮小化が図れる。
Therefore, in the bus format, for example, each peripheral device can be assigned a number and distinguished by that number, so when a request (request signal) to clear an interrupt cause is received from the CPU, the interrupt cause is cleared. (Control of peripheral devices)
It becomes possible to output the number of the desired peripheral device in a bus format, and it is possible to target a large number of peripheral devices with fewer control lines, thereby reducing the chip size.

[実施例] 第1、2図は本発明に係る割込みコントローラの一実施
例を示す図である。本実施例の説明に当たり従来例と同
一構成部分には同一番号を符してその説明を省略する。
[Embodiment] FIGS. 1 and 2 are diagrams showing an embodiment of an interrupt controller according to the present invention. In explaining this embodiment, the same components as those of the conventional example are designated by the same numbers, and the explanation thereof will be omitted.

第1図は一実施例の割込みコントローラを適用したマイ
クロコントローラの全体構成図であり、この場合のマイ
クロコントローラは、例えば各種演算処理や制御装置に
応用されるものである。
FIG. 1 is an overall configuration diagram of a microcontroller to which an interrupt controller of one embodiment is applied, and the microcontroller in this case is applied to, for example, various arithmetic processing and control devices.

第1図において、20は割込みコントローラであり、割
込みコントローラ20は内部構成の詳細は後述するが、
6本のライン21a〜21fからなるバスによってn個
の周辺装置(以下、単にリソースという)22a〜22
nと接続される。リソース22a〜22nからの割込み
要求は従来例と同様にライン3a〜3nを通して割込み
コントローラ20に送られ、割込みコントローラ20は
IRQ.〜I RQnという番号により上記割込み要求
がリソース22a〜22nのうちどれからであるかを識
別する。また、リソース22a〜22nには次表で示す
ように5ビ・冫トで構成される番号が付されており、番
号に対応する制御信号は割込みコントローラ20からラ
イン21a〜21fを通してデコーダ23a〜23n側
に送られる。
In FIG. 1, 20 is an interrupt controller, and the internal configuration of the interrupt controller 20 will be described in detail later.
A bus consisting of six lines 21a to 21f connects n peripheral devices (hereinafter simply referred to as resources) 22a to 22.
Connected to n. Interrupt requests from resources 22a to 22n are sent to interrupt controller 20 through lines 3a to 3n, as in the conventional example, and interrupt controller 20 receives IRQ. The number ~IRQn identifies which of the resources 22a to 22n the interrupt request is from. Further, the resources 22a to 22n are assigned numbers consisting of 5 bits as shown in the following table, and control signals corresponding to the numbers are sent from the interrupt controller 20 to the decoders 23a to 23n through lines 21a to 21f. Sent to the side.

表 なお、このリソース番号は下位ビット側からRSNOO
〜RSNO4というように区分される。
Note that this resource number is RSNOO from the lower bit side.
~RSNO4.

ライン21a〜21fの端末にはデコーダ23a〜23
nが各リソース22a〜22nに対応する分だけ設けら
れており、デコーダ23a〜23nはライン21a〜2
1rを通じて割込みコントローラ20から送られてくる
リソース番号を解析し、割込みをクリアする信号をリソ
ース22a〜22nのうち該当する1つのリソースに出
力するとともに、割込みコントローラ20から送られて
くる信号CLENを出力する。リソース22a〜22n
は該クリア信号に基づいて割込み要因のクリアにつき自
分が選択されていることを知り、信号CLENのアクテ
ィブ化により自分の要因をクリアする。
Decoders 23a to 23 are installed at the terminals of lines 21a to 21f.
n are provided corresponding to the respective resources 22a to 22n, and the decoders 23a to 23n are connected to the lines 21a to 22n.
Analyzes the resource number sent from the interrupt controller 20 through 1r, outputs a signal to clear the interrupt to the corresponding one of the resources 22a to 22n, and outputs the signal CLEN sent from the interrupt controller 20. do. Resources 22a to 22n
learns that it is selected for clearing the interrupt factor based on the clear signal, and clears its own factor by activating the signal CLEN.

次に、割込みコントローラ20の詳細な構成を第2図を
用いて説明する。第2図において、ラッチ11、マスク
回路12、優先順位決定回路13、エンコーダ14およ
びベクタ回路15の構成は従来例と同じであるが、ゲー
ト24に関連する構成が異なる。すなわち、エンコーダ
14により生成された割込みベクタはm本の信号線を通
してゲート24に入力されており、ゲート24は割込み
ベクタにより割込みが選択されているリソース22a〜
22nのうち1つを知り、CPU2からのクリア要求も
受け入れて割込みのクリアをすべきリソース番号および
信号CLENをライン21a〜21fを通してリソース
22a〜22nに出力する。この場合、ライン21a〜
21fの本数はm木となっている。信号CLENはアク
ティブになると、リソース22a〜22nをクリアする
ものである。なお、上記割込みベクタの番号はリソース
番号と同じものが用いられる。
Next, the detailed configuration of the interrupt controller 20 will be explained using FIG. 2. In FIG. 2, the configurations of the latch 11, mask circuit 12, priority determining circuit 13, encoder 14, and vector circuit 15 are the same as in the conventional example, but the configuration related to the gate 24 is different. That is, the interrupt vector generated by the encoder 14 is input to the gate 24 through m signal lines, and the gate 24 selects the resources 22a to 22a whose interrupt is selected by the interrupt vector.
22n, it also accepts a clearing request from the CPU 2, and outputs the resource number for which the interrupt should be cleared and a signal CLEN to the resources 22a-22n through lines 21a-21f. In this case, line 21a~
The number of 21f is m trees. When signal CLEN becomes active, it clears the resources 22a-22n. Note that the interrupt vector number used is the same as the resource number.

次に、作用を説明する。Next, the effect will be explained.

CPU2が演算処理を実行中に、外部のリソース22a
〜22nのうち1つ、例えばリソース22cに割込み要
因が発生したとすると、リソース22cからの割込み要
求がライン3Cを通して割込みコントローラ20に送ら
れ、割込みコントローラ20はこの割込み要求をライン
3Cに対応する識別番号■R Q zから判別する。次
いで、従来例と同様に割込みコントローラ20とCPU
2の間で割込み要求INTと割込み許可I NTAのや
り取りが行われてCPU2により割込みシーケンスが実
行される。
While the CPU 2 is executing arithmetic processing, the external resource 22a
When an interrupt factor occurs in one of the resources 22n, for example, the resource 22c, an interrupt request from the resource 22c is sent to the interrupt controller 20 through the line 3C, and the interrupt controller 20 identifies the interrupt request corresponding to the line 3C. Determine from the number ■R Q z. Next, as in the conventional example, the interrupt controller 20 and the CPU
An interrupt request INT and an interrupt permission INTA are exchanged between the CPU 2 and the CPU 2 to execute an interrupt sequence.

その後、CPU2における割込みシーケンスが終了する
と、CPU2からクリア要求が割込みコントローラ20
に出力され、割込みコントローラ20はクリア要求に対
応する制御信号をリソース番号(00010)としてラ
イン2lb〜21fからデコーダ23cに出力するとと
もに、信号CLENをアクティブ化してデコーダ23c
に出力する。これにより、デコーダ23cがリソース番
号1:00010)からリソース22cの選択を解析し
て割込み要因のクリアをリソース22cに要求し、リソ
ース22cはアクティブ化している信号OLEHに基づ
いて割込み要因をクリアする。
After that, when the interrupt sequence in the CPU 2 ends, a clear request is sent from the CPU 2 to the interrupt controller 20.
The interrupt controller 20 outputs a control signal corresponding to the clear request as a resource number (00010) to the decoder 23c from lines 2lb to 21f, and activates the signal CLEN to output the control signal to the decoder 23c.
Output to. As a result, the decoder 23c analyzes the selection of the resource 22c from resource number 1:00010) and requests the resource 22c to clear the interrupt factor, and the resource 22c clears the interrupt factor based on the activated signal OLEH.

このように、本実施例では割込みを解除するときのクリ
ア要求に対応する制御信号が割込みコントローラ20か
ら各リソース22a〜22nにバス形式で出力される。
As described above, in this embodiment, a control signal corresponding to a clear request for canceling an interrupt is output from the interrupt controller 20 to each of the resources 22a to 22n in the form of a bus.

具体的には、ライン21a〜21fが6本の場合、1本
は信号CLENに用い、残りの5本がRSNOO−RS
NO41.m対応tる5ビ7ト分であるから、25=3
2の計算によりn−32個、すなわちリソース22a〜
22nが32個まで6本の制御線(ライン21a〜21
f)で制御できることになる。因に、従来例ではn−3
2個の場合、32本の制御線が必要となる。
Specifically, when there are six lines 21a to 21f, one is used for the signal CLEN, and the remaining five are used for RSNOO-RS.
NO41. Since m corresponds to 5 bits and 7 bits, 25=3
2, n-32 resources, that is, resources 22a~
6 control lines (lines 21a to 21
f). Incidentally, in the conventional example, n-3
In the case of two, 32 control lines are required.

以上のことから、少ない本数の制御線で多数のリソース
を対象にすることができ、従来に比して制御線の本数を
大幅に削減できる。その結果、割込みコントローラ20
を含むチップサイズの縮小化を図ることができる。
From the above, a large number of resources can be targeted with a small number of control lines, and the number of control lines can be significantly reduced compared to the conventional method. As a result, the interrupt controller 20
It is possible to reduce the chip size, including the size of the chip.

なお、上記実施例は割込みコントローラ20やCPU2
およびリソース22a〜22nを全て同一チップ内に集
積化した例であるが、本発明は割込みコントローラ20
を単独のチップとした場合にも勿論適用可能であり、こ
の場合にはリソースへの制御線の出力ピン数が削減し、
同様にチップサイズ縮小化の効果が得られる。
Note that in the above embodiment, the interrupt controller 20 and the CPU 2
This is an example in which all the resources 22a to 22n are integrated in the same chip.
Of course, it can also be applied when it is made into a single chip, and in this case, the number of output pins of control lines to resources is reduced,
Similarly, the effect of reducing the chip size can be obtained.

また、上記実施例ではリソースに対する制御を割込み要
因のクリアにしているが、リソースの機能に反映した他
の制御を行ってもよく、例えば信号CLEN等は設けず
にリソース番号のアクティブ化によりリソースを制御す
るようにしてもよい。
Further, in the above embodiment, the resource is controlled by clearing the interrupt factor, but other controls that reflect the function of the resource may be performed. For example, the resource is activated by activating the resource number without providing the signal CLEN. It may also be controlled.

このようにした場合は上記実施例に比べてさらにチップ
サイズの縮小化が可能であり、例えばリソースの数が1
5個であれば従来15本必要な制御線が4本(2’=1
6より)になり、またリソースの数が60個であれば6
0本の制御線が6本(26=64より)で済むことにな
る。
In this case, the chip size can be further reduced compared to the above embodiment, for example, the number of resources can be reduced to 1.
If there are 5 control lines, 4 control lines (2'=1
6), and if the number of resources is 60, then 6
Instead of 0 control lines, only 6 (from 26=64) are required.

さらに、リソース番号の出力は専用のバスを設けて行っ
ているが、専用のバスでなく、データパスを通じて行う
ようにすれば、より一層制御線の本数を減らずことも可
能である。
Furthermore, although a dedicated bus is provided to output the resource number, the number of control lines can be further reduced by outputting the resource number through a data path instead of a dedicated bus.

〔効果〕〔effect〕

本発明によれば、少ない本数の制御線で多数の周辺装置
に要求信号に対する制御信号を送ることができ、割込み
コントローラを含むチップサイズの縮小化を図ることが
できる。
According to the present invention, control signals corresponding to request signals can be sent to a large number of peripheral devices with a small number of control lines, and the size of a chip including an interrupt controller can be reduced.

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

第1、2図は本発明に係る割込みコントローラの一実施
例を示す図であり、 第1図はその割込みコントローラを適用したマイク口コ
ントローラの全体構成図、 第2図はその割込みコントローラのブロック図、第3図
は従来の割込みコントローラを適用したマイクロコント
ローラの全体構成図、 第4図は従来の割込みコントローラのブロック図である
。 2・・・・・・cpu, 3a〜3n・・・・・・ライン、 5・・・・・・バス、 11・・・・・・ラッチ、 12・・・・・・マスク回路、 13・・・・・・優先順位決定回路、 14・・・・・・エンコーダ、 15・・・・・・ベクタ回路、 20・・・・・・割込みコントローラ、21a〜21f
・・・・・・ライン(制御線)、22a〜22n・・・
・・・リソース(周辺装置)、23a〜23n・・・・
・・デコーダ、24・・・・・・ゲート。
1 and 2 are diagrams showing one embodiment of the interrupt controller according to the present invention. FIG. 1 is an overall configuration diagram of a microphone port controller to which the interrupt controller is applied, and FIG. 2 is a block diagram of the interrupt controller. , FIG. 3 is an overall configuration diagram of a microcontroller to which a conventional interrupt controller is applied, and FIG. 4 is a block diagram of a conventional interrupt controller. 2...cpu, 3a-3n...line, 5...bus, 11...latch, 12...mask circuit, 13. ...Priority determining circuit, 14...Encoder, 15...Vector circuit, 20...Interrupt controller, 21a to 21f
... Line (control line), 22a to 22n...
...Resources (peripheral devices), 23a to 23n...
...Decoder, 24...Gate.

Claims (1)

【特許請求の範囲】  CPU(2)の外部に配置された複数の周辺装置(2
2a)〜(22n)からの割込み入力IRQ_1〜IR
Q_nを取り込み、1つの周辺装置を選択してCPU(
2)に割込みを要求し、 CPU(2)の割込み処理が終了するとCPU(2)か
ら要求信号を受け取り、該要求信号に対応する制御信号
CLENを周辺装置(22a)〜(22n)に出力して
周辺装置(22a)〜(22n)の制御を行なう割込み
コントローラ(20)において、 前記CPU(2)からの要求信号に対応して出力する制
御信号CLENを、複数の周辺装置(22a)〜(22
n)に対してバス(21a)〜(21f)形式で伝達す
るように構成したことを特徴とする割込みコントローラ
[Claims] A plurality of peripheral devices (2) disposed outside the CPU (2).
Interrupt inputs IRQ_1 to IR from 2a) to (22n)
Q_n, select one peripheral device, and execute CPU (
2), and when the interrupt processing of the CPU (2) is completed, receives a request signal from the CPU (2), and outputs a control signal CLEN corresponding to the request signal to the peripheral devices (22a) to (22n). In the interrupt controller (20), which controls the peripheral devices (22a) to (22n), a control signal CLEN outputted in response to a request signal from the CPU (2) is transmitted to the plurality of peripheral devices (22a) to (22n). 22
An interrupt controller characterized in that the interrupt controller is configured to transmit information to the interrupt controller (21a) to (21f) in the form of buses (21a) to (21f).
JP28633188A 1988-11-11 1988-11-11 Interruption controller Pending JPH02132541A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28633188A JPH02132541A (en) 1988-11-11 1988-11-11 Interruption controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28633188A JPH02132541A (en) 1988-11-11 1988-11-11 Interruption controller

Publications (1)

Publication Number Publication Date
JPH02132541A true JPH02132541A (en) 1990-05-22

Family

ID=17703004

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28633188A Pending JPH02132541A (en) 1988-11-11 1988-11-11 Interruption controller

Country Status (1)

Country Link
JP (1) JPH02132541A (en)

Similar Documents

Publication Publication Date Title
JPH02132541A (en) Interruption controller
JPH02500692A (en) Integration of computational elements in multiprocessor computers
KR100722706B1 (en) Micro controller
JPS588366A (en) Memory module system
JP3547012B2 (en) Microcomputer
JPH023217B2 (en)
JP2667285B2 (en) Interrupt control device
JPS63271537A (en) Interruption controller
JPS6252336B2 (en)
RU2024927C1 (en) Microprocessor
JPH02252044A (en) Coprocessor and data transfer control system
JPS61223968A (en) Data controller for multi-microprocessor
JPS59208666A (en) Multiprocessor system
JPS58114222A (en) Input/output device controlling system
JPH01300364A (en) Multi-processor system
JPH0465781A (en) Input/output port control circuit
JPS6266370A (en) Multiprocessor system
JPH05120031A (en) Micro computer
JPS5953902A (en) Control device
JP2000068461A (en) Semiconductor device
JPS6158074A (en) Microcomputer
JPS62231371A (en) Control system for start-up/stop of multiprocessor
JPH06223046A (en) Bus tracing execution method
JPS63181040A (en) High load state generating system
JPS6373353A (en) Bus acquisition system