JPH1027107A - Information processor - Google Patents

Information processor

Info

Publication number
JPH1027107A
JPH1027107A JP8180903A JP18090396A JPH1027107A JP H1027107 A JPH1027107 A JP H1027107A JP 8180903 A JP8180903 A JP 8180903A JP 18090396 A JP18090396 A JP 18090396A JP H1027107 A JPH1027107 A JP H1027107A
Authority
JP
Japan
Prior art keywords
interrupt
request signal
interruption
interrupt request
specifying
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
JP8180903A
Other languages
Japanese (ja)
Inventor
Michihiro Horiuchi
通博 堀内
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.)
Hitachi Ltd
Renesas Semiconductor Package and Test Solutions Co Ltd
Original Assignee
Hitachi Hokkai Semiconductor Ltd
Hitachi 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 Hitachi Hokkai Semiconductor Ltd, Hitachi Ltd filed Critical Hitachi Hokkai Semiconductor Ltd
Priority to JP8180903A priority Critical patent/JPH1027107A/en
Publication of JPH1027107A publication Critical patent/JPH1027107A/en
Pending legal-status Critical Current

Links

Landscapes

  • Microcomputers (AREA)

Abstract

PROBLEM TO BE SOLVED: To start an interruption without increasing the load on software when one specific event reaches a specific frequency by providing hardware which can automatically count the frequency of interruption occurrence in the information processor. SOLUTION: An interruption detecting circuit monitors signals inputted to and outputted from an I/O port part and signals on an internal bus to detect abnormality and generates interruption request signals IRQ1-1RQn corresponding to the abnormality. A counter counts the interruption request signals corresponding to interruptions set by an interruption setting register 72 and a comparator 76 compares its counted value with a value set in a frequency register 75. When it is decided that interruption requests reach the specific frequency, the comparator 76 outputs an interruption request signal IRQc to a priority decision and vector generating circuit 71. Consequently, even if the same interruption is continuouslly generated, a memory can be prevented from overflowing.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、情報処理装置にお
ける割込み制御技術に関し、例えば半導体集積回路化さ
れたシングルチップマイクロコンピュータ(以下、シン
グルチップマイコンと称する)に利用して有効な技術に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an interrupt control technique in an information processing apparatus, and more particularly to a technique effective for use in a single-chip microcomputer (hereinafter, referred to as a single-chip microcomputer) integrated into a semiconductor integrated circuit.

【0002】[0002]

【従来の技術】従来よりシングルチップマイコンには、
プログラム実行中に特定の事象が発生したときに実行中
のプログラムを中断する割込み機能が設けられている。
ところで、従来のシングルチップマイコンにおける割込
み機能はある特定の事象が発生したときに直ちにプログ
ラムの実行を中断するものであった。
2. Description of the Related Art Conventionally, single-chip microcomputers include:
An interrupt function is provided for interrupting the program being executed when a specific event occurs during the execution of the program.
By the way, the interrupt function in the conventional single-chip microcomputer interrupts the execution of the program immediately when a certain specific event occurs.

【0003】[0003]

【発明が解決しようとする課題】マイクロコンピュータ
を用いたシステムでは、ある特定の事象が発生したとき
に直ちにプログラムの実行を中断するのではなく、ある
特定の事象が所定回数だけ発生したときにプログラムの
実行を中断したい場合がある。具体的には、例えばシス
テム暴走による割込みが連続して発生した場合の保護お
よび割込み処理でスタックエリア等として使用するメモ
リ(RAM)のオーバーフローの防止等を自動的に行な
いたいような場合である。
In a system using a microcomputer, the execution of a program is not interrupted immediately when a certain event occurs, but the program is executed when a certain event occurs a predetermined number of times. You may want to interrupt the execution of. More specifically, for example, there is a case where it is desired to automatically perform protection for a case where interrupts due to system runaway occur consecutively and prevent overflow of a memory (RAM) used as a stack area or the like in interrupt processing.

【0004】しかしながら、従来のシングルチップマイ
コンは、割込み発生回数を自動的にカウントするハード
ウェアを備えていないため、ある特定の事象が所定回数
発生したときに割込みをかけるようにしたい場合には、
ソフトウェアで対応せざるを得なかった。すなわち、シ
ングルチップマイコン内の特定の汎用レジスタをカウン
タとして利用し、特定の割込みが発生したときにそのレ
ジスタをカウントアップしてカウンタが所定値に達した
ときにメインプログラムの実行を中断して、サブルーチ
ンへ分岐したり、予め用意された割込み処理ルーチンを
実行するようなプログラムが必要であった。
However, conventional single-chip microcomputers do not have hardware for automatically counting the number of times an interrupt has occurred. Therefore, if it is desired to generate an interrupt when a certain event occurs a predetermined number of times,
I had to deal with software. That is, a specific general-purpose register in the single-chip microcomputer is used as a counter, and when a specific interrupt occurs, the register is counted up, and when the counter reaches a predetermined value, the execution of the main program is interrupted. A program that branches to a subroutine or executes an interrupt processing routine prepared in advance has been required.

【0005】本発明の目的は、ソフトウェアの負担を増
加させることなく、ある特定の事象が所定回数発生した
ときに割込みをかけることができるような割込み制御技
術を提供することにある。この発明の前記ならびにその
ほかの目的と新規な特徴については、本明細書の記述お
よび添附図面から明らかになるであろう。
An object of the present invention is to provide an interrupt control technique capable of interrupting when a specific event occurs a predetermined number of times without increasing the load on software. The above and other objects and novel features of the present invention will become apparent from the description of the present specification and the accompanying drawings.

【0006】[0006]

【課題を解決するための手段】本願において開示される
発明のうち代表的なものの概要を説明すれば、下記のと
おりである。すなわち、情報処理装置内部に割込み発生
回数を自動的に計数可能なハードウェアを設けることに
より、ソフトウェアの負担を増加させることなく、ある
特定の事象が所定回数発生したときに割込みをかけるこ
とができるようにしたものである。
The outline of a typical invention among the inventions disclosed in the present application is as follows. In other words, by providing hardware capable of automatically counting the number of interrupt occurrences inside the information processing apparatus, an interrupt can be generated when a specific event occurs a predetermined number of times without increasing the load on software. It is like that.

【0007】より具体的には、シングルチップマイコン
内部に、発生回数を監視すべき割込み要求信号を指定す
る割込み指定手段と、この割込み指定手段により指定さ
れた割込み要求信号を計数する割込み計数手段と、割込
み要求信号が何回発生したときに割込みをかけるか指定
するための割込み回数設定手段と、上記割込み計数手段
の計数値が上記割込み回数設定手段に設定された値に達
したか否か判定する比較手段とを設け、予めメインプロ
グラムで割込み指定手段に発生回数を監視すべき割込み
の種類もしくは優先順位その他割込み要求を特定可能な
コードを設定し、また割込み回数設定手段には割込みを
かけたい発生回数を設定することにより、ある特定の事
象が所定回数発生したときに割込みをかけることができ
るようにする。
More specifically, an interrupt designating means for designating an interrupt request signal whose number of occurrences is to be monitored, and an interrupt counting means for counting the interrupt request signal designated by the interrupt designating means are provided inside the single-chip microcomputer. Interrupt number setting means for designating how many times an interrupt request signal is to be generated, and determining whether or not the count value of the interrupt counting means has reached the value set in the interrupt number setting means And a code that can specify the type of interrupt whose occurrence is to be monitored or the priority order and other interrupt requests can be specified in the interrupt designating means in advance in the main program. By setting the number of occurrences, an interruption can be made when a specific event occurs a predetermined number of times.

【0008】[0008]

【発明の実施の形態】図1は本発明を適用したシングル
チップマイコンの一実施例を示す。同図において、1は
プログラムに従った処理を実行しチップ全体の制御を司
るCPU(中央処理装置)、2はCPU1の動作プログ
ラムや固定データを記憶するROM(リード・オンリ・
メモリ)、3はCPU1の作業エリアを提供するRAM
(ランダム・アクセス・メモリ)、4は外部の装置との
間で信号の入出力を行なうI/Oポート部、5は時間を
計数したりタイマ割込みを発生したりするタイマ回路、
6は送信すべきデータをシリアルデータに変換したり受
信したデータをパラレルデータに変換するシリアル通信
用インタフェース回路、7は割込み要求信号に基づいて
上記CPU1に対して割込みの発生を知らせる割込み制
御回路である。上記CPU1、ROM2、RAM3、I
/Oポート部4、タイマ回路5、シリアル通信用インタ
フェース回路6および割込み制御回路7は、内部バス8
によって互いにデータ送受信可能に接続されている。
FIG. 1 shows an embodiment of a single-chip microcomputer to which the present invention is applied. In FIG. 1, reference numeral 1 denotes a CPU (central processing unit) that executes processing according to a program and controls the entire chip, and 2 denotes a ROM (read-only) that stores an operation program of the CPU 1 and fixed data.
3) RAM for providing a work area for CPU 1
(Random access memory), 4 an I / O port for inputting and outputting signals to and from an external device, 5 a timer circuit for counting time and generating a timer interrupt,
6 is a serial communication interface circuit for converting data to be transmitted into serial data or converting received data into parallel data, and 7 is an interrupt control circuit for notifying the CPU 1 of the occurrence of an interrupt based on an interrupt request signal. is there. CPU1, ROM2, RAM3, I
The / O port unit 4, timer circuit 5, serial communication interface circuit 6, and interrupt control circuit 7 are connected to an internal bus 8
Are connected to each other so that data can be transmitted and received.

【0009】また、この実施例のシングルチップマイコ
ンには、上記I/Oポート部4より入出力される信号や
内部バス8上の信号を監視して異常を検出してその異常
に対応した割込み要求信号IRQ1〜IRQnを発生す
る割込み検出回路9が設けられている。この割込み検出
回路9で形成された割込み要求信号IRQ1〜IRQn
が割込み制御回路7に供給され、割込み制御回路7で割
込みの順位を判定してCPU1に対して割込みの発生を
知らせるとともにその割込みに対応するベクタアドレス
VADを生成して出力する。また、特に制限されない
が、この実施例のシングルチップマイコンには、外部の
装置からの割込み要求信号を受け付ける割込み入力端子
IR1,IR2が設けられている。割込み入力端子IR
1,IR2のうち一方はマスクをかけることができない
割込み要求信号NMIの入力用とされている。
The single-chip microcomputer of this embodiment monitors a signal input and output from the I / O port unit 4 and a signal on the internal bus 8 to detect an abnormality and to execute an interrupt corresponding to the abnormality. An interrupt detection circuit 9 for generating request signals IRQ1 to IRQn is provided. Interrupt request signals IRQ1 to IRQn formed by the interrupt detection circuit 9
Is supplied to the interrupt control circuit 7, the interrupt control circuit 7 determines the order of the interrupts, notifies the CPU 1 of the occurrence of the interrupt, and generates and outputs a vector address VAD corresponding to the interrupt. Although not particularly limited, the single-chip microcomputer of this embodiment is provided with interrupt input terminals IR1 and IR2 for receiving an interrupt request signal from an external device. Interrupt input terminal IR
One of IR1 and IR2 is used to input an interrupt request signal NMI that cannot be masked.

【0010】CPU1は、割込み制御回路7から割込み
の発生を知らせる信号を受けると、実行中のプログラム
を中断してベクタアドレスVADに基づいてサブルーチ
ンへ分岐したり、その割込みに対応する割込み処理ルー
チンへジャンプしてそのルーチンを実行する。また、割
込み処理では、まずそれ迄実行していたプログラムを中
断し、そのとき汎用レジスタが保持しているデータを内
部のRAM3あるいはI/Oポート部4を介して外部記
憶装置に退避させてから処理を実行する。割込み処理終
了後は、退避していた上記データを元のレジスタに復帰
して中断した命令から元のプログラムの実行を再開した
りする。
When CPU 1 receives a signal notifying the occurrence of an interrupt from interrupt control circuit 7, CPU 1 interrupts the program being executed and branches to a subroutine based on vector address VAD, or enters an interrupt processing routine corresponding to the interrupt. Jump and execute the routine. In the interrupt processing, the program that has been executed is interrupted, and the data held in the general-purpose register is saved to an external storage device via the internal RAM 3 or the I / O port unit 4 at that time. Execute the process. After the end of the interrupt processing, the saved data is returned to the original register, and the execution of the original program is resumed from the interrupted instruction.

【0011】図2には、上記割込み制御回路7の一実施
例が示されている。この実施例の割込み制御回路7は、
上記割込み検出回路9からの割込み要求信号IRQ1〜
IRQnおよび割込み入力端子IR1,IR2からの割
込み要求信号IRQ0,NMIを受けて優先順位を判定
して優先度の高いものからCPU1に対して割込みの発
生を知らせる信号RQを出力して割込みをかけたり、C
PU1内のコントロールレジスタのマスクビット等の状
態に応じて割込みにマスクをかけたり、割込み要求信号
の種類もしくは優先順位に応じたベクタアドレスVAD
を発生する優先判定&ベクタ発生回路71と、発生回数
を監視すべき割込み要求信号を指定するためのコード等
を設定する割込み設定レジスタ72と、この割込み設定
レジスタ72により設定された割込みに対応した割込み
要求信号を計数するカウンタ73と、上記割込み要求信
号NMI,IRQ0〜IRQnのうち上記割込み設定レ
ジスタ72の例えば「1」の立っているビットに対応し
た割込み要求信号を上記カウンタ73に選択的に供給す
るセレクタ74と、割込み要求信号が何回発生したとき
に割込みをかけるか指定するための割込み回数レジスタ
75と、上記カウンタ73の計数値と上記割込み回数レ
ジスタ75に設定された値とを比較して割込み要求が所
定回数に達したか否か判定するコンパレータ76とを備
えている。
FIG. 2 shows an embodiment of the interrupt control circuit 7. The interrupt control circuit 7 of this embodiment is
Interrupt request signals IRQ1 to IRQ1 from the interrupt detection circuit 9
In response to the interrupt request signals IRQ0 and NMI from the interrupt input terminals IR1 and IR2 and the interrupt request signals IRQ0 and NMI, the priority is determined, and a signal RQ for notifying the CPU 1 of the occurrence of an interrupt is output from the highest priority and an interrupt is generated. , C
Masking of an interrupt is performed in accordance with the state of a mask bit or the like of a control register in the PU1, and a vector address VAD corresponding to the type or priority of an interrupt request signal is provided.
And an interrupt setting register 72 for setting a code or the like for designating an interrupt request signal whose number of occurrences is to be monitored, and an interrupt set by the interrupt setting register 72. A counter 73 for counting an interrupt request signal, and an interrupt request signal corresponding to, for example, a "1" bit of the interrupt setting register 72 among the interrupt request signals NMI and IRQ0 to IRQn are selectively sent to the counter 73. A selector 74 to be supplied, an interrupt count register 75 for specifying how many times the interrupt request signal is generated, and an interrupt count register 75 for comparing the count value of the counter 73 with the value set in the interrupt count register 75 And a comparator 76 for determining whether or not the number of interrupt requests has reached a predetermined number.

【0012】上記コンパレータ76で割込み要求が所定
回数に達したと判定されると、コンパレータ76は上記
優先判定&ベクタ発生回路71に対して割込み要求信号
IRQcを出力する。また、特に制限されないが、この
実施例の割込み制御回路7には、上記割込み要求信号N
MI,IRQ0〜IRQnのうち上記割込み検出回路9
からの割込み要求信号IRQ1〜IRQnについては、
上記割込み設定レジスタ72に設定された割込み要求信
号を上記優先判定&ベクタ発生回路71に伝えないよう
にするゲート回路G1〜Gnが設けられている。上記割
込み設定レジスタ72と上記割込み回数レジスタ75に
は、CPU1が内部バス8を介して割込み要求信号を特
定するコードと割込み回数をそれぞれ設定できるように
構成されている。
When the comparator 76 determines that the number of interrupt requests has reached a predetermined number, the comparator 76 outputs an interrupt request signal IRQc to the priority determination & vector generation circuit 71. Further, although not particularly limited, the interrupt request signal N
MI, IRQ0 to IRQn;
Interrupt request signals IRQ1 to IRQn from
Gate circuits G1 to Gn are provided to prevent the interrupt request signal set in the interrupt setting register 72 from being transmitted to the priority determination & vector generation circuit 71. The interrupt setting register 72 and the interrupt count register 75 are configured so that the CPU 1 can set a code specifying an interrupt request signal and the interrupt count via the internal bus 8 respectively.

【0013】上記実施例においては、内部割込み要求信
号については所定回数発生したときにのみ割込みがかか
るようになる。これによって、同一割込みが連続して発
生しても割込み処理で使用するメモリがオーバーフロー
するのを防止することができる。一方、外部からの割込
み要求信号NMI,IRQ0に関してはゲート回路を介
さずに優先判定&ベクタ発生回路71に入力されている
ため、その割込み要求信号が入ったときにも割込みがか
かるとともに、所定回数発生したときにも割込みがかか
るようになる。従って、所定回数同一割込みが発生した
ときはそれまでとは別の割込み処理を実行するようなこ
とができる。これによって、例えばシステムの暴走によ
り外部から割込み要求信号NMIが連続して入った場合
に所定回数に達したらシステムを強制停止する等の処理
を実行することによりシステムの保護を図ることができ
る。
In the above embodiment, the internal interrupt request signal is interrupted only when it is generated a predetermined number of times. As a result, even if the same interrupt occurs continuously, it is possible to prevent the memory used in the interrupt processing from overflowing. On the other hand, the external interrupt request signals NMI and IRQ0 are input to the priority determination & vector generation circuit 71 without passing through the gate circuit. An interrupt will also occur when it occurs. Therefore, when the same interrupt occurs a predetermined number of times, it is possible to execute another interrupt process different from the one before. Thus, for example, when the interrupt request signal NMI is continuously input from the outside due to runaway of the system, the system can be protected by executing processing such as forcibly stopping the system when the predetermined number of times is reached.

【0014】なお、上記実施例では割込み検出回路9で
検出された割込み要求信号IRQ1〜IRQnに関して
のみ、その割込み発生回数が所定数に達したときにCP
U1に対して割込みがかけられるように構成している
が、割込み入力端子IR1,IR2からの割込み要求信
号IRQ0,NMIに関しても、その割込み発生回数が
所定数に達したときにCPU1に対して割込みがかけら
れるように構成することができる。また、割込み要求信
号を優先判定&ベクタ発生回路71に伝達したり遮断し
たりするゲート回路を割込み要求信号IRQ1〜IRQ
nの一部に対してのみ設けたり、上記ゲート回路G1〜
Gnの制御用レジスタを別個に設けて、所定回数発生し
たときに割込みをかけるのか、毎回割込みをかけかつ所
定回数発生したときにも割込みをかけるのか、を任意に
設定できるように構成してもよい。
In the above embodiment, only the interrupt request signals IRQ1 to IRQn detected by the interrupt detection circuit 9 are set when the number of interrupt occurrences reaches a predetermined number.
Although an interrupt can be issued to U1, the interrupt request signals IRQ0 and NMI from the interrupt input terminals IR1 and IR2 are also interrupted to the CPU 1 when the number of interrupt occurrences reaches a predetermined number. Can be configured to be applied. Further, a gate circuit for transmitting or interrupting the interrupt request signal to the priority determination & vector generation circuit 71 is connected to the interrupt request signals IRQ1 to IRQ.
n, or the gate circuits G1 to G1.
A separate Gn control register may be provided so that it is possible to arbitrarily set whether an interrupt is generated when a predetermined number of occurrences occur, or whether an interruption is performed each time and an interruption occurs when a predetermined number of occurrences occur. Good.

【0015】以上説明したように上記実施例は、シング
ルチップマイコン内部に、発生回数を監視すべき割込み
要求信号を指定する割込み指定手段(レジスタ72およ
びセレクタ74)と、この割込み指定手段により指定さ
れた割込み要求信号を計数する割込み計数手段(カウン
タ73)と、割込み要求信号が何回発生したときに割込
みをかけるか指定するための割込み回数設定手段(レジ
スタ75)と、上記割込み計数手段の計数値が上記割込
み回数設定手段に設定された値に達したか否か判定する
比較手段(コンパレータ76)とを設け、予めメインプ
ログラムで割込み指定手段に発生回数を監視すべき割込
み要求信号を特定可能なコードを、また割込み回数設定
手段には割込みをかけたい発生回数をそれぞれ設定する
ことにより、ソフトウェアの負担を増加させることな
く、ある特定の事象が所定回数発生したときに割込みを
かけることができるようになるという効果がある。
As described above, in the above-described embodiment, the interrupt designating means (register 72 and selector 74) for designating the interrupt request signal whose number of occurrences is to be monitored is specified in the single-chip microcomputer. Interrupt counting means (counter 73) for counting the number of interrupt request signals generated, interrupt number setting means (register 75) for specifying how many times the interrupt request signal is generated, and a total of the interrupt counting means. A comparison means (comparator 76) for determining whether or not the numerical value has reached the value set in the interrupt number setting means is provided, and an interrupt request signal whose occurrence number should be monitored by the interrupt designating means can be specified in advance by the main program. Code and the number of occurrences to be interrupted are set in the interrupt count setting means. Without increasing the wear of the load, there is an effect that a particular event will be able to interrupt when a predetermined number of occurrences.

【0016】以上本発明者によってなされた発明を実施
例に基づき具体的に説明したが、本発明は上記実施例に
限定されるものではなく、その要旨を逸脱しない範囲で
種々変更可能であることはいうまでもない。例えば上記
実施例では、上記割込み設定レジスタ72に設定された
コードにより直接上記セレクタ74およびゲート回路G
1〜Gnを制御するようにしているが、上記割込み設定
レジスタ72にデコーダを設け、設定された値をデコー
ドした信号によって上記セレクタ74およびゲート回路
G1〜Gnを制御するように構成しても良い。また、ゲ
ート回路G1〜Gnを設ける代わりに優先判定&ベクタ
発生回路71内に同等の機能を有する回路を設けるよう
にしてもよい。
Although the invention made by the inventor has been specifically described based on the embodiments, the present invention is not limited to the above-described embodiments, and can be variously modified without departing from the gist thereof. Needless to say. For example, in the above embodiment, the selector 74 and the gate circuit G are directly controlled by the code set in the interrupt setting register 72.
1 to Gn are controlled, but a decoder may be provided in the interrupt setting register 72 so that the selector 74 and the gate circuits G1 to Gn are controlled by a signal obtained by decoding a set value. . Instead of providing the gate circuits G1 to Gn, a circuit having an equivalent function may be provided in the priority determination & vector generation circuit 71.

【0017】以上の説明では主として本発明者によって
なされた発明をその背景となった利用分野であるシング
ルチップマイコンにおける割込み制御に適用した場合に
ついて説明したが、この発明はそれに限定されるもので
なく、割込み機能を有するマイクロコンピュータシステ
ム一般に広く利用することができる。
In the above description, the case where the invention made by the present inventor is mainly applied to interrupt control in a single-chip microcomputer, which is the background of application, has been described. However, the present invention is not limited to this. It can be widely used in microcomputer systems generally having an interrupt function.

【0018】[0018]

【発明の効果】本願において開示される発明のうち代表
的なものによって得られる効果を簡単に説明すれば下記
のとおりである。すなわち、割込み機能を有する情報処
理装置において、ソフトウェアの負担を増加させること
なく、ある特定の事象が所定回数発生したときに割込み
をかけることができる。
The effects obtained by typical ones of the inventions disclosed in the present application will be briefly described as follows. That is, in an information processing apparatus having an interrupt function, an interrupt can be generated when a specific event occurs a predetermined number of times without increasing the load on software.

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

【図1】本発明を適用したシングルチップマイコンの一
実施例を示すブロック図、
FIG. 1 is a block diagram showing an embodiment of a single-chip microcomputer to which the present invention is applied;

【図2】割込み制御回路の一実施例を示すブロック図で
ある。
FIG. 2 is a block diagram showing one embodiment of an interrupt control circuit.

【符号の説明】[Explanation of symbols]

1 CPU(中央処理装置) 2 ROM(リード・オンリ・メモリ) 3 RAM(ランダム・アクセス・メモリ) 4 I/Oポート部 5 タイマ回路 6 シリアル通信用インタフェース回路 7 割込み制御回路 8 内部バス 9 割込み検出回路 71 優先判定&ベクタ発生回路 72 割込み設定レジスタ 73 カウンタ 74 セレクタ 75 割込み回数レジスタ 76 コンパレータ IRQ 割込み要求信号 VAD ベクタアドレス Reference Signs List 1 CPU (central processing unit) 2 ROM (read only memory) 3 RAM (random access memory) 4 I / O port section 5 timer circuit 6 serial communication interface circuit 7 interrupt control circuit 8 internal bus 9 interrupt detection Circuit 71 Priority judgment & vector generation circuit 72 Interrupt setting register 73 Counter 74 Selector 75 Interrupt count register 76 Comparator IRQ Interrupt request signal VAD Vector address

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 監視すべき割込み要求信号を指定する割
込み指定手段と、この割込み指定手段により指定された
割込み要求信号を計数する割込み計数手段と、割込み要
求信号が何回発生したときに割込みをかけるか指定する
ための割込み回数設定手段と、上記割込み計数手段の計
数値が上記割込み回数設定手段に設定された値に達した
か否か判定する比較手段とを備え、該比較手段が一致を
判定したときに当該割込み要求に対応する処理を実行す
るように構成されてなることを特徴とする情報処理装
置。
An interrupt designating means for designating an interrupt request signal to be monitored, an interrupt counting means for counting the interrupt request signal designated by the interrupt designating means, and an interrupt request signal when the interrupt request signal is generated. Interrupt number setting means for specifying whether to apply or not, and comparing means for determining whether or not the count value of the interrupt counting means has reached the value set in the interrupt number setting means, wherein the comparing means An information processing apparatus configured to execute a process corresponding to the interrupt request when the determination is made.
【請求項2】 上記割込み指定手段は、発生回数を監視
すべき割込み要求信号を特定可能なコードを設定する割
込み設定レジスタと、この割込み設定レジスタの設定値
に基づいて対応した割込み要求信号を、上記割込み計数
手段に選択的に供給するセレクタとからなることを特徴
とする請求項1記載の情報処理装置。
2. The method according to claim 1, wherein the interrupt specifying means sets an interrupt setting register for setting a code capable of specifying an interrupt request signal whose occurrence count is to be monitored, and an interrupt request signal corresponding to the interrupt setting signal based on the set value of the interrupt setting register. 2. The information processing apparatus according to claim 1, further comprising a selector for selectively supplying the interrupt counting means.
【請求項3】 上記割込み指定手段により指定される割
込み要求信号を伝達/遮断可能なゲート手段を備えてい
ることを特徴とする請求項1または請求項2に記載の情
報処理装置。
3. The information processing apparatus according to claim 1, further comprising gate means capable of transmitting / interrupting an interrupt request signal specified by said interrupt specifying means.
【請求項4】 プログラムに従った処理を実行する中央
処理装置と、プログラムなどが格納される内部メモリ
と、割込み要求信号に基づいて上記中央処理装置に対し
て割込みの発生を知らせる割込み制御回路とを有し、1
つの半導体チップ上に形成されたシングルチップマイク
ロコンピュータであって、 上記割込み制御回路は、監視すべき割込み要求信号を指
定する割込み指定手段と、この割込み指定手段により指
定された割込み要求信号を計数する割込み計数手段と、
割込み要求信号が何回発生したときに割込みをかけるか
指定するための割込み回数設定手段と、上記割込み計数
手段の計数値が上記割込み回数設定手段に設定された値
に達したか否か判定する比較手段とを備え、該比較手段
が一致を判定したときに上記中央処理装置に対して割込
みの発生を知らせるように構成されていることを特徴と
するシングルチップマイクロコンピュータ。
4. A central processing unit for executing processing according to a program, an internal memory storing a program and the like, and an interrupt control circuit for notifying the central processing unit of the occurrence of an interrupt based on an interrupt request signal. And 1
A single-chip microcomputer formed on one semiconductor chip, wherein the interrupt control circuit counts an interrupt request signal specified by the interrupt specifying means for specifying an interrupt request signal to be monitored; Interrupt counting means;
Interrupt count setting means for designating how many times an interrupt request signal is to be generated when an interrupt is requested, and determining whether the count value of the interrupt counting means has reached the value set in the interrupt count setting means A single-chip microcomputer comprising: comparing means; and, when the comparing means determines a match, notifying the central processing unit of the occurrence of an interrupt.
JP8180903A 1996-07-10 1996-07-10 Information processor Pending JPH1027107A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8180903A JPH1027107A (en) 1996-07-10 1996-07-10 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8180903A JPH1027107A (en) 1996-07-10 1996-07-10 Information processor

Publications (1)

Publication Number Publication Date
JPH1027107A true JPH1027107A (en) 1998-01-27

Family

ID=16091329

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8180903A Pending JPH1027107A (en) 1996-07-10 1996-07-10 Information processor

Country Status (1)

Country Link
JP (1) JPH1027107A (en)

Similar Documents

Publication Publication Date Title
US5555414A (en) Multiprocessing system including gating of host I/O and external enablement to guest enablement at polling intervals
US6631472B2 (en) Kernel mode protection
CA1216949A (en) Data processing system including a main processor and a co-processor and co-processor error handling logic
JPH11219302A (en) Method and device affecting subsequent instruction processing in data processor
US5530597A (en) Apparatus and method for disabling interrupt masks in processors or the like
KR950001417B1 (en) Computer system
JPH03174632A (en) Method and apparatus for operating computer system in real time
US6842812B1 (en) Event handling
JPH1027107A (en) Information processor
US5671424A (en) Immediate system management interrupt source with associated reason register
US20210004306A1 (en) Processor with non-intrusive self-testing
JPH08171504A (en) Emulation device
JPH07311685A (en) Computer system and system management interrupt source for computer system
KR100209595B1 (en) Device and method of interrupt generation
JP2653412B2 (en) How to set breakpoints
JPH0675819A (en) Microprocessor
JP2000089971A (en) Method and device for controlling interruption order
KR200326854Y1 (en) Interrupt processor between processors
JPH09167117A (en) Microcomputer and real time system using the microcomputer
JPH10161887A (en) Method and device for interruption signal synchronization
JPH01319834A (en) Data processor
JPH0212531A (en) Interruption control system for virtual computer
JP3308670B2 (en) Event-driven processing equipment failure detection device
JPH06250864A (en) Method for preventing generation of error output from programmable controller
JPH0540666A (en) Interruption monitoring device for integrated circuit microprocessor