JPH04118734A - Interruption controller - Google Patents

Interruption controller

Info

Publication number
JPH04118734A
JPH04118734A JP23712090A JP23712090A JPH04118734A JP H04118734 A JPH04118734 A JP H04118734A JP 23712090 A JP23712090 A JP 23712090A JP 23712090 A JP23712090 A JP 23712090A JP H04118734 A JPH04118734 A JP H04118734A
Authority
JP
Japan
Prior art keywords
interrupt
vector
interrupt vector
erroneous
sent
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
JP23712090A
Other languages
Japanese (ja)
Inventor
Shinichi Yoshioka
晋一 吉岡
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP23712090A priority Critical patent/JPH04118734A/en
Publication of JPH04118734A publication Critical patent/JPH04118734A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To inform the generation of abnormality to a CPU by sending out an error interruption vector, in the case an input channel corresponding to an interruption vector to be sent out does not exist, and the interruption vector comes to indefinite even if there is an interruption request. CONSTITUTION:The controller is provided with an arbitrating means 3 for determining an input channel for sending out an interruption vector, a selecting means 11 for selecting and sending out the interruption vector corresponding to the input channel determined by the arbitrating means 3, and an error interruption vector storage means 13 for storing an error interruption vector sent out instead of the interruption vector in the case the input channel for sending out the interruption vector is not determined at the time of interrupting receiving cycle. In such a state, at the time of interruption receiving cycle, in the case the channel corresponding to the interruption vector to be sent out does not exist, and the interruption vector becomes indefinite, the error interruption vector stored in the erroneous interruption vector storage means 13 is sent out to a CPU. In such a way, it can be informed to the CPU that the abnormality is generated.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) この発明は、複数の割り込み信号を入力し、中央演算処
理装置の要求に応じて割り込みベクタの送出を行う割り
込み制御装置に関する。
[Detailed Description of the Invention] [Object of the Invention] (Industrial Application Field) The present invention relates to an interrupt control device that receives a plurality of interrupt signals and sends an interrupt vector in response to a request from a central processing unit. .

(従来の技術) 周辺機器からの複数の割り込み信号を入力、調停して中
央演算処理装置(以下、CPUと呼ぶ)に処理要求を通
知する割り込み制御装置は、機器の制御装置用に使用さ
れている。特に、割り込み入力チャネルごとに、優先順
位や割り込みベクタをCPUから細かく設定できる割り
込み制御装置は、プログラマブル割り込み制御装置(以
下、PICと略す)と呼ばれている。
(Prior Art) An interrupt control device that inputs and arbitrates multiple interrupt signals from peripheral devices and notifies a central processing unit (hereinafter referred to as CPU) of a processing request is used for a device control device. There is. In particular, an interrupt control device that allows the CPU to set the priority order and interrupt vector in detail for each interrupt input channel is called a programmable interrupt control device (hereinafter abbreviated as PIC).

従来の割り込み制御装置の構成を第6図に示す。FIG. 6 shows the configuration of a conventional interrupt control device.

割り込み要求入力信号INTO〜INTn−1が割り込
み入力部1に入力されると、割り込み有無の信号が割り
込み優先順位調停回路(以下、調停回路と略す。)3へ
出力される。調停回路3では、マスクレベル、および他
の割り込み要求を行なっているチャネルとの間で優先順
位の調停を行なう。
When the interrupt request input signals INTO to INTn-1 are input to the interrupt input section 1, a signal indicating the presence or absence of an interrupt is output to the interrupt priority arbitration circuit (hereinafter abbreviated as arbitration circuit) 3. The arbitration circuit 3 arbitrates priorities between the mask level and channels making other interrupt requests.

割り込みを要求したチャネルのうち、一つでもその優先
順位がマスクレベルよりも高い場合、調停回路3は割り
込みがあることを認識し、CPUに対して割り込み要求
信号103を送出する。
If even one of the channels requesting an interrupt has a priority higher than the mask level, the arbitration circuit 3 recognizes that there is an interrupt and sends an interrupt request signal 103 to the CPU.

CPUは割り込み要求信号103を受けて、割り込みを
受は付けられる状態になると、「割り込み受け付けサイ
クル」を起動する。
When the CPU receives the interrupt request signal 103 and becomes ready to accept an interrupt, it starts an "interrupt acceptance cycle."

「割り込み受け付けサイクル」では、ベクタ選択部11
によって選択された最も高い優先順位をもつチャネルに
対応する割り込みベクタが、データバス105を介して
CPUに送出される。
In the "interrupt acceptance cycle", the vector selection unit 11
The interrupt vector corresponding to the channel with the highest priority selected by is sent to the CPU via data bus 105.

一方、割り込み要求入力信号のタイプには、レベルタイ
プとエツジタイプがある。レベルタイプでは、信号の“
High−あるいは“Low”が割り込み入力の有無を
示す。エツジタイプでは、“High”から“Low”
への立ち下がり変化、あるいは“LOW”から“Hig
h”への立ち上がり変化が割り込み入力の有無を示す。
On the other hand, the types of interrupt request input signals include level types and edge types. For level type, the signal “
High- or "Low" indicates the presence or absence of an interrupt input. For edge type, from “High” to “Low”
A falling change from “LOW” to “HIGH”
A rising edge change to "h" indicates the presence or absence of an interrupt input.

割り込み要求入力信号がエツジタイプの場合には、立ち
上がり変化によって割り込み要求が認識されるため、割
り込み受け付けサイクル前に立ち下がったとしても割り
込みベクタを送出することができる。
If the interrupt request input signal is an edge type, an interrupt request is recognized by a rising edge change, so an interrupt vector can be sent even if it falls before an interrupt acceptance cycle.

しかしながら、レベルタイプの場合には、割り込み受け
付けサイクル前に全ての割り込み要求入力信号が取り消
されると、PICは割り込み要求があったことは認識で
きても、割り込みベクタを出力すべきチャネルを決定で
きず、送出されるベクタが不定となる。すなわち、割り
込み受け付けサイクル時に、調停回路3から出力される
ベクタ選択信号101が割り込み要求入力が存在しない
こと示すため、ベクタ選択部11は割り込みベクタを送
出することか出来ない。これは、割り込みソースの故障
や、プログラムの誤り(例えば、割り込みソース機器は
エツジタイプであるのに対し、レベルタイプとして′プ
ログラムした場合)などによって起こる。
However, in the case of the level type, if all interrupt request input signals are canceled before the interrupt acceptance cycle, even if the PIC can recognize that an interrupt request has been made, it cannot determine the channel to which the interrupt vector should be output. , the transmitted vector becomes undefined. That is, during the interrupt acceptance cycle, the vector selection signal 101 output from the arbitration circuit 3 indicates that there is no interrupt request input, so the vector selection unit 11 can only send an interrupt vector. This can occur due to a failure of the interrupt source or a programming error (for example, if the interrupt source device is an edge type but is programmed as a level type).

(発明が解決しようとする課題) このように、割り込み要求入力信号がレベルタイプの場
合、割り込み受け付けサイクル前に全ての割り込み要求
入力信号が取り消されると、送出されるべき割り込みベ
クタが不定となる。この結果、割り込み制御装置による
周辺機器の制御が不能となるという問題があった。
(Problem to be Solved by the Invention) As described above, when the interrupt request input signal is of the level type, if all the interrupt request input signals are canceled before the interrupt acceptance cycle, the interrupt vector to be sent becomes undefined. As a result, there is a problem in that the interrupt control device cannot control the peripheral devices.

そこでこの発明は、このような従来の事情を鑑みてなさ
れたものであり、その目的とするところは、送出される
べき割り込みベクタが不定となった場合、これを割り込
み制御装置が認識し、割り込みベクタの代わりに誤割り
込みベクタを送出し、CPUに対して異常が発生したこ
とを通知することができる割り込み制御装置を提供する
ことにある。
Therefore, the present invention was made in view of the conventional circumstances, and its purpose is that when the interrupt vector to be sent becomes undefined, the interrupt control device recognizes this and interrupts the interrupt vector. An object of the present invention is to provide an interrupt control device that can send an erroneous interrupt vector instead of a vector and notify a CPU of the occurrence of an abnormality.

[発明の構成] (課題を解決するための手段) 上記目的を達成させるため、この発明は、複数の入力チ
ャネルからの割り込み入力信号を入力し、この割り込み
入力信号に基づいて入力チャネルごとの割り込み優先順
位を調停し、割り込みベクタを送出すべき入力チャネル
を決定する調停手段と、割り込み受け付けサイクル時に
、前記調停手段によって決定された入力チャネルに対応
する割り込みベクタを選択して送出する選択手段と、前
記割り込み受け付けサイクル時に割り込みベクタを送出
すべき入力チャネルが決定されていない場合、割り込み
ベクタの代わりに送出される誤割り込みベクタを格納す
る誤割り込みベクタ記憶手段とから構成されている。
[Structure of the Invention] (Means for Solving the Problems) In order to achieve the above object, the present invention inputs interrupt input signals from a plurality of input channels, and generates interrupts for each input channel based on the interrupt input signals. arbitration means for arbitrating priorities and determining an input channel to which an interrupt vector should be sent; selection means for selecting and sending an interrupt vector corresponding to the input channel determined by the arbitration means during an interrupt acceptance cycle; and an erroneous interrupt vector storage means for storing an erroneous interrupt vector that is sent instead of the interrupt vector when the input channel to which the interrupt vector is to be sent has not been determined during the interrupt acceptance cycle.

また、この発明は、以上の構成に誤割り込みベクタの送
出回数をカウントし、カウント値が予め設定された値に
なった場合、異常発生の通知信号を送出する異常発生通
知手段を追加して構成されている。
Furthermore, the present invention is configured by adding an abnormality occurrence notification means to the above configuration, which counts the number of times an erroneous interrupt vector is sent, and when the count value reaches a preset value, sends a notification signal of an abnormality occurrence. has been done.

(作用) 上記構成により、この発明は、割り込み受け付けサイク
ル時に、送出すべき割り込みベクタに対応するチャネル
が存在せず、割り込みベクタが不定となった場合、誤割
り込みベクタ記憶手段に格納されている誤割り込みベク
タをCPUへ送出する。
(Function) With the above configuration, the present invention is capable of storing an error stored in the error interrupt vector storage means when there is no channel corresponding to the interrupt vector to be sent during an interrupt acceptance cycle and the interrupt vector becomes undefined. Sends the interrupt vector to the CPU.

また、この発明は、誤割り込みベクタが送出されるごと
に送出回数をカウントし、予め設定した回数になると、
異常発生を通知するNMI(ノンマスカブル割り込み)
要求信号をCPUへ送出するようにしている。
In addition, this invention counts the number of times an erroneous interrupt vector is sent each time it is sent, and when a preset number of times is reached,
NMI (non-maskable interrupt) that notifies abnormality occurrence
A request signal is sent to the CPU.

(実施例) 以下、図面を参照してこの発明の詳細な説明する。(Example) Hereinafter, the present invention will be described in detail with reference to the drawings.

第1図は、この発明の割り込み制御装置に係わる一実施
例の構成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of an embodiment of an interrupt control device of the present invention.

同図に示す割り込み制御装置は、第6図で示した従来の
割り込み制御装置に、誤割り込みベクタ記憶部13が追
加された構成となっている。
The interrupt control device shown in the figure has a configuration in which an erroneous interrupt vector storage section 13 is added to the conventional interrupt control device shown in FIG.

割り込み入力部1は、割り込み要求入力信号INTO〜
INTn−1を受は取り、これらの入力信号のノイズ除
去を行なった後、割り込み優先順位調停回路(以下、調
停回路と略す。)3に割り込みがあることを表す信号を
出力するものである。
The interrupt input section 1 receives an interrupt request input signal INTO~
After receiving INTn-1 and removing noise from these input signals, it outputs a signal to the interrupt priority arbitration circuit (hereinafter abbreviated as arbitration circuit) 3 indicating that there is an interrupt.

調停回路3は、割り込み入力部1より、どのチャネルが
割り込み要求を行っているかを認識する。
The arbitration circuit 3 recognizes from the interrupt input section 1 which channel is issuing the interrupt request.

そして、マスクレベル記憶部5を参照し、マスクレベル
を調べ、かつ割り込み要求を行っているチャネルの持つ
各々の優先順位を優先順位記憶部7を参照して調べる。
Then, the mask level storage section 5 is referred to to check the mask level, and the priority storage section 7 is checked to check the respective priorities of the channels making the interrupt request.

これらの各チャネルの持つ優先順位とマスクレベルとの
間で調停を行う。
Arbitration is performed between the priority and mask level of each of these channels.

すなわち、調停回路3は、割り込みを要求しているチャ
ネルのうち一つでもその優先順位がマスクレベルよりも
高い場合、そのチャネルを表すベクタ選択信号101を
ベクタ選択部11へ送出すると共に、CPU (セント
ラル プロセッシングユニット)への割り込み要求信号
103をアクティブにする役目を有している。
That is, if even one of the channels requesting an interrupt has a priority higher than the mask level, the arbitration circuit 3 sends the vector selection signal 101 representing that channel to the vector selection unit 11, and also sends the vector selection signal 101 representing that channel to the vector selection unit 11. It has the role of activating an interrupt request signal 103 to the central processing unit.

マスクレベル記憶部5は、割り込み要求入力信号に対し
て割り込み要求をマスクする特定のレベルを格納するも
のである。このマスクレベル記憶部5は、後述するマス
クレジスタ5aによって構成されている。
The mask level storage section 5 stores a specific level for masking an interrupt request with respect to the interrupt request input signal. This mask level storage section 5 is constituted by a mask register 5a, which will be described later.

優先順位記憶部7は、割り込み原因によって定められて
いる割り込み優先順位が格納されいるところである。こ
の優先順位記憶部7は、後述する複数のモードレジスタ
7aによって構成されている。
The priority storage unit 7 stores interrupt priorities determined depending on the cause of the interrupt. This priority storage section 7 is composed of a plurality of mode registers 7a, which will be described later.

割り込みベクタ記憶部9は、CPUが割り込み処理ルー
チンヘジャンプする際に、ジャンプすべきアドレスを示
す情報である割り込みベクタを格納するところである。
The interrupt vector storage unit 9 stores an interrupt vector, which is information indicating an address to which the CPU should jump when jumping to an interrupt processing routine.

この割り込みベクタ記憶部9は、後述する複数のベクタ
レジスタ9aによって構成されている。
This interrupt vector storage section 9 is composed of a plurality of vector registers 9a, which will be described later.

ベクタ選択部11は、調停回路3から送出されたベクタ
選択信号101を入力し、割り込みベクタをCPUへ出
力するところである。すなわち、ベクタ選択部11は、
CPUが割り込み受け付けサイクルになると、ベクタ選
択信号101に従って割り込みベクタを送出すべきチャ
ネルに対応した割り込みベクタを割り込みベクタ記憶部
9から読み出し、データバス105を介してCPUへ送
出するものである。さらに、ベクタ選択部11は、ベク
タを送出すべきチャネルが存在しないとき、誤割り込み
ベクタを誤割り込みベクタ記憶部13から読み出し、C
PUへ送出する機能を有している。
The vector selection section 11 receives the vector selection signal 101 sent from the arbitration circuit 3 and outputs an interrupt vector to the CPU. That is, the vector selection unit 11
When the CPU enters an interrupt acceptance cycle, the interrupt vector corresponding to the channel to which the interrupt vector is to be sent is read out from the interrupt vector storage section 9 in accordance with the vector selection signal 101, and sent to the CPU via the data bus 105. Furthermore, when there is no channel to which the vector should be sent, the vector selection unit 11 reads the erroneous interrupt vector from the erroneous interrupt vector storage unit 13, and selects a
It has a function to send to PU.

誤割り込みベクタ記憶部13は、ベクタ選択部11から
送出すべき割り込みベクタが不定の場合に、割り込みベ
クタの代わりにCPUへ送出される誤割り込み用のベク
タを格納するものである。
The erroneous interrupt vector storage section 13 stores an erroneous interrupt vector that is sent to the CPU instead of the interrupt vector when the interrupt vector to be sent from the vector selection section 11 is undefined.

この誤割り込みベクタ記憶部13は、後述する誤割り込
みベクタレジスタ13aによって構成されている。
This erroneous interrupt vector storage section 13 is constituted by an erroneous interrupt vector register 13a, which will be described later.

第2図は、マスクレベル記憶部5、優先順位記憶部7、
割り込みベクタ記憶部9、および誤割り込みベクタ記憶
部13を構成する各レジスタの配置図である。
FIG. 2 shows a mask level storage section 5, a priority order storage section 7,
2 is a layout diagram of each register that constitutes an interrupt vector storage section 9 and an erroneous interrupt vector storage section 13. FIG.

各入力チャネルに対応した複数のモードレジスタ7aと
、ベクタレジスタ9aとが配置されている。ベクタレジ
スタ9aは、モードレジスタ7aの隣のアドレスに配置
されている。また、誤割り込みベクタレジスタ13aも
同様に、マスクレジスタ5aの隣のアドレスに配置され
ている。
A plurality of mode registers 7a and vector registers 9a are arranged corresponding to each input channel. Vector register 9a is placed at an address next to mode register 7a. Similarly, the erroneous interrupt vector register 13a is placed at an address adjacent to the mask register 5a.

モードレジスタ7aには、割り込み要求入力信号INT
O〜INTn−1がレベルタイプかエツジタイプかを表
す割り込み入力タイプと、割り込み原因によって定めら
れている割り込み優先順位とが設定されている。
The mode register 7a contains an interrupt request input signal INT.
An interrupt input type indicating whether O to INTn-1 is a level type or an edge type, and an interrupt priority determined by the cause of the interrupt are set.

ベクタレジスタ9aには、CPU力く割り込み処理ルー
チンヘジャンプすべきアドレスを示す情報が設定される
Information indicating the address at which the CPU should jump to the interrupt processing routine is set in the vector register 9a.

なお、割り込みベクタ、割り込み入力タイプ、誤割り込
みベクタ、優先順位、およびマスクレベルは、CPUに
よって設定可能となって0る。
Note that the interrupt vector, interrupt input type, false interrupt vector, priority, and mask level can be set to 0 by the CPU.

このように、この発明の割り込み制御装置番虚構成され
ており、次に、この発明の詳細な説明する。
As described above, the interrupt control device of the present invention has a general structure.Next, the present invention will be explained in detail.

第3図(A)は、通常の割り込みベクタをCPUへ送出
する場合のタイミング波形図である。ここでは、第0チ
ヤネル、第1チャネル、第2チヤネルからの割り込み要
求入力信号INTO〜INT2が入力された場合を示し
ている。
FIG. 3(A) is a timing waveform diagram when a normal interrupt vector is sent to the CPU. Here, a case is shown in which interrupt request input signals INTO to INT2 are input from the 0th channel, the 1st channel, and the 2nd channel.

割り込み入力部1に割り込み要求入力信号INTo−I
NT2が入力されると、割り込みがあることを表す信号
が調停回路3へ出力される。
Interrupt request input signal INTo-I is input to interrupt input section 1.
When NT2 is input, a signal indicating that there is an interrupt is output to the arbitration circuit 3.

調停回路3では、マスクレベルと割り込みベクタとを送
出するチャネルの優先順位の調停が毎クロックごとに行
われる。ここで、各チャネルの優先順位はマスクレベル
よりも高く、かつ第0チヤネルが最も高く、第1、第2
チヤネルの順に下がるとする。すなわち、第0〉第1〉
第2〉マスクレベルである。なお、全てのチャネルの割
り込み入力タイプは、レベルタイプに設定されている。
In the arbitration circuit 3, arbitration of priorities of channels for transmitting mask levels and interrupt vectors is performed every clock. Here, the priority of each channel is higher than the mask level, and the 0th channel is the highest, the first and second
Let's go down in order of channels. That is, 0th>1st>
2nd> mask level. Note that the interrupt input type of all channels is set to level type.

割り込み要求を行なっているチャネルが、マスクレベル
よりも全て高い優先順位であるため、調停回路3からは
調停結果のベクタ選択信号101が、ベクタ選択部11
へ送出される。
Since the channels making interrupt requests all have a higher priority than the mask level, the vector selection signal 101 as the arbitration result is sent from the arbitration circuit 3 to the vector selection unit 11.
sent to.

さらに、割り込み要求信号103がアクティブとなり、
CPUへ割り込み要求が行なわれる。
Furthermore, the interrupt request signal 103 becomes active,
An interrupt request is made to the CPU.

CPUの現在実行中の処理が終了すると、CPUによっ
てCPUステータス信号は“割り込み受け付けサイクル
″となる。
When the process currently being executed by the CPU ends, the CPU status signal becomes an "interrupt acceptance cycle" by the CPU.

割り込み受け付けサイクルとなった直後の調停結果は、
第1チヤネルが最も優先順位の高いチャネルとされてい
る。この結果、図中“X°明期間第1チヤネルに対応す
る割り込みベクタが、ベクタ選択部11からデータバス
105を介してCPUへ送出される。ここで、CPUへ
割り込み要求信号103が出力された時点(図中“Y”
期間)では、調停結果は第0チヤネルが最も優先順位が
高かった。しかし、割り込み受け付けサイクルに入る前
にこの調停結果は取り消されているため、“X”期間の
調停結果に基づいた第1チヤネルに対応する割り込みベ
クタが送出される。
The arbitration result immediately after the interrupt acceptance cycle is
The first channel is considered to be the channel with the highest priority. As a result, the interrupt vector corresponding to the first channel of the "X° bright period" in the figure is sent from the vector selection unit 11 to the CPU via the data bus 105. Here, the interrupt request signal 103 is output to the CPU. Time point (“Y” in the figure)
period), the 0th channel had the highest priority in terms of arbitration results. However, since this arbitration result is canceled before entering the interrupt acceptance cycle, the interrupt vector corresponding to the first channel is sent based on the arbitration result of the "X" period.

次に、誤割り込みベクタが送出される場合を、第3図C
B)のタイミング波形図を参照に説明する。
Next, the case where an erroneous interrupt vector is sent is shown in Figure 3C.
This will be explained with reference to the timing waveform diagram of B).

この場合には、割り込み要求入力信号INTO〜INT
2が、割り込み受け付けサイクルに入る前に全て取り消
されている。また、これに影響されて割り込み要求信号
103も、割り込み受け付けサイクルになった後立ち下
がっている。
In this case, the interrupt request input signals INTO to INT
2 are all canceled before entering the interrupt acceptance cycle. Also, influenced by this, the interrupt request signal 103 also falls after the interrupt acceptance cycle.

この結果、“X°明期間の調停結果は、割り込みベクタ
を送出すべきチャネルが存在していない。
As a result, the arbitration result for the "X° light period is that there is no channel to which an interrupt vector should be sent."

ベクタ選択部11によってこれが認識され、誤割り込み
ベクタ記憶部13に予め格納されている誤割り込みベク
タが、データバス105を介してCPUへ送出される。
This is recognized by the vector selection unit 11, and the erroneous interrupt vector previously stored in the erroneous interrupt vector storage unit 13 is sent to the CPU via the data bus 105.

なお、従来の割り込み制御装置では、データバス105
上の誤割り込みベク夕で示されるところには不定が出力
されていた。
Note that in the conventional interrupt control device, the data bus 105
Indeterminate was output where indicated by the error interrupt vector above.

このように、送出すべき割り込みベクタが存在しない場
合、割り込みベクタの代わりに誤割り込みベクタを送出
するようにしたため、CPUの誤動作を防ぐことができ
る。
In this way, when there is no interrupt vector to be sent, an erroneous interrupt vector is sent instead of an interrupt vector, so that malfunctions of the CPU can be prevented.

(応用例) 誤割り込みベクタ記憶部13を設けたことで、割り込み
ベクタが存在しない場合、誤割り込みベクタを送出して
CPUの誤動作を防ぐことはできた。しかしながら、誤
割り込みベクタの設定ミスや誤割り込み処理ルーチンの
異常などにより、誤割り込みベクタが何度も送出される
ことが考えられる。これを防ぐため、誤割り込みベクタ
の送出が予め設定された回数になると、NMI(ノンマ
スカブル割り込み)要求をCPUへ出力し、異常事態の
発生をCPUへ通知させることができる。
(Application Example) By providing the erroneous interrupt vector storage section 13, when an interrupt vector does not exist, it is possible to send out an erroneous interrupt vector and prevent malfunction of the CPU. However, it is conceivable that the erroneous interrupt vector is sent out many times due to an error in setting the erroneous interrupt vector or an abnormality in the erroneous interrupt processing routine. To prevent this, when an erroneous interrupt vector is sent a preset number of times, an NMI (non-maskable interrupt) request can be output to the CPU to notify the CPU of the occurrence of an abnormal situation.

第4図は、これを実現させた割り込み制御装置の構成を
示すブロック図である。
FIG. 4 is a block diagram showing the configuration of an interrupt control device that realizes this.

同図に示す割り込み制御装置は、第1図で示した割り込
み制御装置に、カウンタ15およびゼロ検出回路17を
追加した構成となっている。
The interrupt control device shown in the figure has a configuration in which a counter 15 and a zero detection circuit 17 are added to the interrupt control device shown in FIG.

カウンタ15は、ベクタ選択部11から誤割り込みベク
タが送出されるごとに予め設定されている回数をデクリ
メントし、カウント値が“0”になるとこれをゼロ検出
回路17へ知らせるものである。このカウンタ15は、
パラレルロード機能付のダウンカウンタてあり、予め任
意の回数がCPUによって設定されている。
The counter 15 decrements a preset number of times each time an erroneous interrupt vector is sent from the vector selection section 11, and when the count value reaches "0", notifies the zero detection circuit 17 of this. This counter 15 is
There is a down counter with a parallel load function, and an arbitrary number of times is set in advance by the CPU.

ゼロ検出回路17は、カウンタ15のカウント値が“0
”になったことを検出すると、NMI要求をCPUへ出
力する機能を有している。
The zero detection circuit 17 detects that the count value of the counter 15 is “0”.
”, it has a function to output an NMI request to the CPU.

第5図で示すように、ベクタ選択部11から誤割り込み
ベクタが何度も送出されると、その度ごとにベクタ選択
部11からカウンタ15へ出力される信号107がアク
ティブになる。これにより、カウンタ15によってカウ
ント値がデクリメントされる。
As shown in FIG. 5, when the vector selection section 11 sends out an erroneous interrupt vector many times, the signal 107 output from the vector selection section 11 to the counter 15 becomes active each time. As a result, the count value is decremented by the counter 15.

カウント値が“0”になると、ゼロ検出回路17の出力
がアクティブになり、NMI要求信号109がCPUへ
送出される。CPUは、このNM■要求信号109を受
は取り、処理のやり直しを行なう。
When the count value reaches "0", the output of the zero detection circuit 17 becomes active and the NMI request signal 109 is sent to the CPU. The CPU receives this NM* request signal 109 and restarts the process.

このように、カウンタ15とゼロ検出回路17のみを追
加するだけで、異常事態の発生をCPUに確実に通知す
ることが可能となる。
In this way, by simply adding the counter 15 and the zero detection circuit 17, it is possible to reliably notify the CPU of the occurrence of an abnormal situation.

[発明の効果] 以上述べてきたように、この発明の割り込み制御装置に
よれば、割り込み要求があったにもかかわらず、送出す
べき割り込みベクタに対応する入力チャネルが存在せず
、割り込みベクタが不定となった場合、割り込みベクタ
の代わりに誤割り込みベクタを送出するようにした。こ
れにより、CPUに対して異常が発生したことを通知で
き、周辺機器の制御を正常に行うことができる。
[Effects of the Invention] As described above, according to the interrupt control device of the present invention, even though there is an interrupt request, there is no input channel corresponding to the interrupt vector to be sent, and the interrupt vector is When it becomes undefined, a false interrupt vector is now sent instead of the interrupt vector. Thereby, it is possible to notify the CPU that an abnormality has occurred, and the peripheral devices can be controlled normally.

また、誤割り込みベクタの送出回数が特定の回数になる
と、割り込み制御装置に異常が発生したことを通知する
NMI要求信号をCPUへ出力するようにした。これに
より、CPUは異常の発生を確実に検出し、正常な動作
を維持することができる。
Furthermore, when the number of times that an erroneous interrupt vector is sent reaches a specific number, an NMI request signal is output to the CPU to notify that an abnormality has occurred in the interrupt control device. Thereby, the CPU can reliably detect the occurrence of an abnormality and maintain normal operation.

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

第1図はこの発明の割り込み制御装置の構成を示すブロ
ック図、第2図は第1図で示した各記憶部を構成するレ
ジスタの配置を示す配置図、第3図(A)は通常の割り
込みベクタを送出するタイミングを示す波形図、第3図
(B)は誤割り込みベクタを送出するタイミングを示す
波形図、第4図はNMI要求信号を出力する機能を追加
した応用例の構成を示すブロック図、第5図はNMI要
求信号が出力されるタイミングを示す波形図、第6図は
従来の割り込み制御装置の構成を示すブロック図である
。 1・・・割り込み入力部 3・・・割り込み優先順位調停回路 5・・・マスクレベル記憶部 5a・・・レベルレジスタ 7・・・優先順位記憶部 7a・・・モードレジスタ 9・・・割り込みベクタ記憶部 9a・・・ベクタレジスタ 11−・・ベクタ選択部 13・・・誤割り込みベクタ2己憶部 13a・・・誤割り込みベクタレジスタ15・・・カウ
ンタ 17・・・ゼロ検出回路
FIG. 1 is a block diagram showing the configuration of the interrupt control device of the present invention, FIG. 2 is a layout diagram showing the arrangement of registers constituting each storage section shown in FIG. 1, and FIG. A waveform diagram showing the timing to send an interrupt vector. Figure 3 (B) is a waveform diagram showing the timing to send an erroneous interrupt vector. Figure 4 shows the configuration of an application example with an added function to output an NMI request signal. FIG. 5 is a waveform diagram showing the timing at which the NMI request signal is output, and FIG. 6 is a block diagram showing the configuration of a conventional interrupt control device. 1... Interrupt input section 3... Interrupt priority arbitration circuit 5... Mask level storage section 5a... Level register 7... Priority storage section 7a... Mode register 9... Interrupt vector Storage unit 9a...Vector register 11--Vector selection unit 13...False interrupt vector 2 Self-storage unit 13a...False interrupt vector register 15...Counter 17...Zero detection circuit

Claims (2)

【特許請求の範囲】[Claims] (1)複数の入力チャネルからの割り込み入力信号を入
力し、この割り込み入力信号に基づいて入力チャネルご
との割り込み優先順位を調停し、割り込みベクタを送出
すべき入力チャネルを決定する調停手段と、 割り込み受け付けサイクル時に、前記調停手段によって
決定された入力チャネルに対応する割り込みベクタを選
択して送出する選択手段と、前記割り込み受け付けサイ
クル時に、割り込みベクタを送出すべき入力チャネルが
決定されていない場合、割り込みベクタの代わりに送出
される誤割り込みベクタを格納する誤割り込みベクタ記
憶手段と を備えたことを特徴とする割り込み制御装置。
(1) Arbitration means that inputs interrupt input signals from a plurality of input channels, arbitrates the interrupt priority for each input channel based on the interrupt input signals, and determines the input channel to which the interrupt vector should be sent; a selection means for selecting and transmitting an interrupt vector corresponding to the input channel determined by the arbitration means during an acceptance cycle; and a selection means for selecting and transmitting an interrupt vector corresponding to the input channel determined by the arbitration means; An interrupt control device comprising: an erroneous interrupt vector storage means for storing an erroneous interrupt vector sent instead of a vector.
(2)複数の入力チャネルからの割り込み入力信号を入
力し、この割り込み入力信号に基づいて入力チャネルご
との割り込み優先順位を調停し、割り込みベクタを送出
すべき入力チャネルを決定する調停手段と、 割り込み受け付けサイクル時に、前記調停手段によって
決定された入力チャネルに対応する割り込みベクタを選
択して送出する選択手段と、前記割り込み受け付けサイ
クル時に割り込みベクタを送出すべき入力チャネルが決
定されていない場合、割り込みベクタの代わりに送出さ
れる誤割り込みベクタを格納する誤割り込みベクタ記憶
手段と、 誤割り込みベクタの送出回数をカウントし、カウント値
が予め設定された値になった場合、異常発生の通知信号
を送出する異常発生通知手段とを備えたことを特徴とす
る割り込み制御装置。
(2) arbitration means for inputting interrupt input signals from a plurality of input channels, arbitrating the interrupt priority for each input channel based on the interrupt input signals, and determining the input channel to which the interrupt vector should be sent; selection means for selecting and transmitting an interrupt vector corresponding to the input channel determined by the arbitration means during an acceptance cycle, and an interrupt vector for selecting and transmitting an interrupt vector corresponding to the input channel determined by the arbitration means; an erroneous interrupt vector storage means for storing an erroneous interrupt vector sent in place of the erroneous interrupt vector; and a erroneous interrupt vector storage means that counts the number of times the erroneous interrupt vector is sent, and when the count value reaches a preset value, sends an abnormality notification signal. An interrupt control device comprising: abnormality occurrence notification means.
JP23712090A 1990-09-10 1990-09-10 Interruption controller Pending JPH04118734A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23712090A JPH04118734A (en) 1990-09-10 1990-09-10 Interruption controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23712090A JPH04118734A (en) 1990-09-10 1990-09-10 Interruption controller

Publications (1)

Publication Number Publication Date
JPH04118734A true JPH04118734A (en) 1992-04-20

Family

ID=17010710

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23712090A Pending JPH04118734A (en) 1990-09-10 1990-09-10 Interruption controller

Country Status (1)

Country Link
JP (1) JPH04118734A (en)

Similar Documents

Publication Publication Date Title
JP2009238001A (en) Computer system
US6212134B1 (en) Watch dog timer system
JPH0454255B2 (en)
EP0423773A2 (en) Emergency resumption processing apparatus for an information processing system
JP2006201948A (en) Interrupt signal accepting device and method
JPH04118734A (en) Interruption controller
JP6049961B1 (en) CPU monitoring device
EP3428799B1 (en) Data access device and access error notification method
JP2870250B2 (en) Microprocessor runaway monitor
JPH1115800A (en) Multiprocessor load uniformizing device
JP4983806B2 (en) System monitoring apparatus and monitoring method using dual timer
JP3105554B2 (en) Interrupt controller
JP7295780B2 (en) Semiconductor device and method of operation thereof
JP2000311155A (en) Multiprocessor system and electronic equipment
JPH05204867A (en) Timer interruption control system in symmetric multiprocessor system
JPH03204739A (en) Microcomputer
JP2560098B2 (en) Clock stop control method by machine check
JP3308670B2 (en) Event-driven processing equipment failure detection device
JPS59135557A (en) Information processor
JP2014119944A (en) Microcomputer
JP2010033475A (en) Electronic controller
JPH0830560A (en) Load control system for computer system
JPH0713879A (en) Bus connecting device
JPH10161887A (en) Method and device for interruption signal synchronization
JPH01196635A (en) Processor circuit