JPH07219784A - Interruption control system - Google Patents

Interruption control system

Info

Publication number
JPH07219784A
JPH07219784A JP795694A JP795694A JPH07219784A JP H07219784 A JPH07219784 A JP H07219784A JP 795694 A JP795694 A JP 795694A JP 795694 A JP795694 A JP 795694A JP H07219784 A JPH07219784 A JP H07219784A
Authority
JP
Japan
Prior art keywords
interrupt
signal
processor
interval timer
circuit
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
JP795694A
Other languages
Japanese (ja)
Inventor
Yuuichi Ikumichi
裕一 生路
Toshizane Kamiya
敏実 神谷
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.)
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Corp
Meidensha Electric Manufacturing Co 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 Meidensha Corp, Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Corp
Priority to JP795694A priority Critical patent/JPH07219784A/en
Publication of JPH07219784A publication Critical patent/JPH07219784A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the loss of interval timer interruption. CONSTITUTION:In this interruption control system, an interruption control part 303 receives an interruption signal generated at specified periods from a timer circuit 301 and a general interruption signal, a processor 307 interrupt-processes from an interruption request from the interruption control part and vector data, and at the time of generating another interruption while this processing, the interruption control part holds the interruption state for one time for each interruption signal. In the interruption control system, an interruption state holding circuit 304 stores and holds the generation of an interval timer interruption signal and an NMI information circuit 305 NMI-informs the processor with a second interval timer interruption signal so as to execute an interval timer interruption processing. A vector decoder circuit 306 releases the states of the interruption state holding circuit and the NMI information circuit when the interval timer interruption processing is finished.

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 system for a microprocessor system, and more particularly to an interrupt recognition system using an interval timer.

【0002】[0002]

【従来の技術】割り込み制御は、割り込みコントロール
部から要求を受けたプロセッサが承認(許可)信号を返
し、ベクタ・データを受け取って、その割り込みの内容
を判別・処理している。
2. Description of the Related Art In interrupt control, a processor receiving a request from an interrupt control unit returns an approval (permission) signal, receives vector data, and determines and processes the contents of the interrupt.

【0003】その処理の間に他の割り込み信号が発生す
ると、割り込みコントロール部が各ライン毎に1回分だ
け信号を保持し、現在行っている割り込みの処理が終了
しだい保持した信号をプロセッサに送り、処理を行う。
When another interrupt signal is generated during the processing, the interrupt control unit holds the signal only once for each line, and sends the held signal to the processor as soon as the current interrupt processing is completed, Perform processing.

【0004】図7は一般的に用いられている割り込み制
御に関する回路を示す。101は割り込み制御を司るイ
ンタラプタ・コントロール・ユニット(割り込みコント
ロール部)、102はプロセッサである。
FIG. 7 shows a circuit for interrupt control which is generally used. Reference numeral 101 is an interrupter control unit (interruption control unit) that controls interrupt control, and 102 is a processor.

【0005】101a0は標準インターバル・タイマ割
り込み信号、101a1〜101a7は各種の割り込み
信号、102aはプロセッサに対して割り込みを要求す
る信号(INT信号)、101bは割り込み承認信号、
102b0〜102b7は1バイトの割り込みベクタタ
イミングをデータ・バスを通してプロセッサへ送る信号
である。
101a0 is a standard interval timer interrupt signal, 101a1 to 101a7 are various interrupt signals, 102a is a signal for requesting an interrupt to a processor (INT signal), 101b is an interrupt acknowledge signal,
102b0 to 102b7 are signals for sending 1-byte interrupt vector timing to the processor through the data bus.

【0006】この動作例を図8を参照して以下に詳細に
説明する。
An example of this operation will be described in detail below with reference to FIG.

【0007】インターバル・タイマ回路100から発生
されるインターバル・タイマ割り込み信号101a0
は、タイム・チャートのエッジタイミング1、2、3で
示すように、一定周期でエッジを発生する。
Interval timer interrupt signal 101a0 generated from the interval timer circuit 100
Generates an edge in a constant cycle, as indicated by edge timings 1, 2, and 3 in the time chart.

【0008】このとき、割り込みコントロール部101
は、割り込み要求信号102aをプロセッサ102に送
る(タイミング8)。そして、プロセッサ102は割り
込み承認信号101bを数回(2、3回が一般的で図示
は2回の例である)のロウ・レベル・パルス(タイミン
グ11、12)で返す。
At this time, the interrupt control unit 101
Sends an interrupt request signal 102a to the processor 102 (timing 8). Then, the processor 102 returns the interrupt acknowledge signal 101b as low level pulses (timings 11 and 12) several times (generally two or three times, and the example shown is two times).

【0009】それに伴い、割り込みコントロール部10
1は8ビットのデータ・バスによって割り込みベクタ・
データ102b0〜102b7をプロセッサ102へ転
送する(タイミング17)。プロセッサ102は転送さ
れたベクタ・データによって割り込みの種類を判別し、
処理する。
Accordingly, the interrupt control unit 10
1 is an interrupt vector by an 8-bit data bus
The data 102b0 to 102b7 are transferred to the processor 102 (timing 17). The processor 102 determines the type of interrupt based on the transferred vector data,
To process.

【0010】また、インターバル・タイマ回路100以
外の割り込みが発生したときも同様の動作を行う。例と
して、割り込み信号101a1の信号を発生したとす
る。エッジタイミング4の立ち上がりに反応して、割り
込みコントロール部101は割り込み要求信号102a
をプロセッサ102に対して送る(タイミング9)。
The same operation is performed when an interrupt other than the interval timer circuit 100 occurs. As an example, assume that the interrupt signal 101a1 is generated. In response to the rise of the edge timing 4, the interrupt control unit 101 causes the interrupt request signal 102a
To the processor 102 (timing 9).

【0011】そして、プロセッサ102は、割り込み承
認信号101bを2回のロウ・レベル・パルス(タイミ
ング13、14)で返す。それに伴い、割り込みコント
ロール部101は8ビットのデータ・バスによって割り
込みベクタ・データ102b0〜102b7をプロセッ
サ102へ転送する(タイミング18)。プロセッサ1
02は転送されたベクタ・データによって割り込みの種
類を判別し、処理する。
Then, the processor 102 returns the interrupt acknowledge signal 101b with two low level pulses (timings 13 and 14). Along with this, the interrupt control unit 101 transfers the interrupt vector data 102b0 to 102b7 to the processor 102 through the 8-bit data bus (timing 18). Processor 1
02 determines and processes the type of interrupt based on the transferred vector data.

【0012】次に、割り込み信号101a1(エッジタ
イミング6−7)の信号を発生したとする。そのとき、
割り込みコントロール部101は、割り込み要求信号1
02a(タイミング10)をプロセッサ102に対して
送る。
Next, assume that an interrupt signal 101a1 (edge timing 6-7) is generated. then,
The interrupt control unit 101 uses the interrupt request signal 1
02a (timing 10) is sent to the processor 102.

【0013】そして、プロセッサ102は割り込み承認
信号101bを2回のロウ・レベル・パルス(タイミン
グ15、16)で返す。それに伴い、割り込みコントロ
ール部101は8ビットのデータ・バスによって割り込
みベクタ・データ101b0〜101b7(タイミング
19)をプロセッサ102へ転送する。
Then, the processor 102 returns the interrupt acknowledge signal 101b with two low level pulses (timings 15 and 16). Along with this, the interrupt control unit 101 transfers the interrupt vector data 101b0 to 101b7 (timing 19) to the processor 102 through the 8-bit data bus.

【0014】プロセッサ102は転送されたベクタ・デ
ータによって割り込みの種類を判別し、処理する。
The processor 102 determines the type of interrupt based on the transferred vector data and processes it.

【0015】このような一連の動作処理中にインターバ
ル・タイマ割り込み信号101a0(エッジタイミング
3)が発生したとき、割り込みコントロール部101は
割り込み信号を受け付けて保持し、プロセッサ102へ
の割り込み要求信号102a(タイミング20)をアサ
ートし続ける。
When the interval timer interrupt signal 101a0 (edge timing 3) occurs during such a series of operation processing, the interrupt control unit 101 receives and holds the interrupt signal, and the interrupt request signal 102a ( Continue to assert timing 20).

【0016】プロセッサ102は、前の割り込み信号1
01a1(エッジタイミング6−7)の処理を終了しだ
い、割り込み要求信号102a(タイミング20)を受
け付けて、割り込み承認信号101bを2回のロウ・レ
ベル・パルス(タイミング21、22)で返す。そし
て、割り込みコントロール部101は、8ビットのデー
タ・バスによって割り込みベクタ・データ101b0−
101b7(タイミング23)をプロセッサ102へ転
送する。
The processor 102 uses the previous interrupt signal 1
As soon as the processing of 01a1 (edge timing 6-7) is completed, the interrupt request signal 102a (timing 20) is accepted, and the interrupt acknowledge signal 101b is returned by two low level pulses (timing 21, 22). Then, the interrupt control unit 101 uses the 8-bit data bus to generate the interrupt vector data 101b0-
101b7 (timing 23) is transferred to the processor 102.

【0017】プロセッサ102は転送されたベクタ・デ
ータによって割り込みの種類を判別し、処理する。
The processor 102 determines the type of interrupt based on the transferred vector data and processes it.

【0018】このように、一定周期で割り込まれるイン
ターバル・タイマ割り込みがプロセッサ102で認識さ
れないと、正確さを必要とするタイマ処理などを行うと
きに問題が生じてくることになる。
As described above, if the interval timer interrupt interrupted at a constant cycle is not recognized by the processor 102, a problem will occur when performing timer processing that requires accuracy.

【0019】[0019]

【発明が解決しようとする課題】従来の割り込み処理に
おいて、割り込み信号101a0−101a7が発生
し、その処理に時間を要したとき、すなわち他の割り込
み処理を禁止している時間が長いとき、プロセッサ10
2が一時的に割り込み禁止状態となっている期間が長引
き、一定時間で割り込んでくるインターバル・タイマ回
路100からの割り込みを受け付けられない問題があ
る。
In the conventional interrupt processing, when the interrupt signals 101a0 to 101a7 are generated and the processing takes time, that is, when other interrupt processing is prohibited for a long time, the processor 10
There is a problem that the period in which 2 is temporarily in the interrupt disabled state is prolonged and an interrupt from the interval timer circuit 100 interrupting at a fixed time cannot be accepted.

【0020】一般の割り込み処理中に、インターバル・
タイマ割り込みが発生すると、1回分は割り込みコント
ロール部101が信号を保持し、現在処理中の割り込み
が終了次第、プロセッサ102が保持していた信号を受
け、割り込み処理を行う。
During general interrupt processing, the interval
When a timer interrupt occurs, the interrupt control unit 101 holds the signal once, and upon completion of the interrupt currently being processed, the signal held by the processor 102 is received and interrupt processing is performed.

【0021】ところが、同一の割り込みラインについて
は割り込みコントロール部も1回分の信号は保持する
が、2回分以降は保持できないため、1回目のタイマ割
り込み処理が完了する前に、更にインターバル・タイマ
割り込みが発生した場合には2番目のインターバル・タ
イマ割り込みが無視されてしまう結果となる。
However, for the same interrupt line, the interrupt controller holds the signal for one time, but cannot hold the signal for the second time and thereafter, so that the interval timer interrupt is further interrupted before the completion of the first timer interrupt process. If it occurs, the result is that the second interval timer interrupt is ignored.

【0022】このインターバル・タイマ割り込みが正確
なタイムカウントなどに使われているときなどに時間の
ずれを起こしてしまう。この動作例を図9を参照して以
下に詳細に説明する。
A time lag occurs when the interval timer interrupt is used for accurate time counting or the like. An example of this operation will be described in detail below with reference to FIG.

【0023】いま、一般割り込み信号101a1(タイ
ムチャートのエッジタイミング3−4)の信号を発生し
たとする。そのとき、割り込みコントロール部101
は、割り込み要求信号102a(タイミング5)をプロ
セッサ102に対して送る。そして、プロセッサ102
は、割り込み承認信号101bを2回のロウ・レベル・
パルス(タイミング7、8)で返す。
It is assumed that the general interrupt signal 101a1 (edge timing 3-4 in the time chart) is generated. At that time, the interrupt control unit 101
Sends an interrupt request signal 102a (timing 5) to the processor 102. Then, the processor 102
Sets the interrupt acknowledge signal 101b to low level twice.
Return with pulse (timing 7, 8).

【0024】それに伴い、割り込みコントロール部10
1は、8ビットのデータ・バスによって割り込みベクタ
・データ101b0−101b7(タイミング11)を
プロセッサ102へ転送する。
Accordingly, the interrupt controller 10
1 transfers the interrupt vector data 101b0-101b7 (timing 11) to the processor 102 through the 8-bit data bus.

【0025】このような一連の動作処理中にインターバ
ル・タイマ割り込み信号101a0(エッジタイミング
1)が発生したとき、先の一般割り込みの処理によって
割り込み禁止期間中のため、割り込みコントロール部1
01は割り込み信号を受け付け保持し、プロセッサ10
2への割り込み要求信号102a(タイミング6)をア
サートし続ける。このとき更に、インターバル・タイマ
割り込み信号102a(エッジタイミング2)が発生す
ると、割り込みコントロール部101はすでに割り込み
要求信号102aをアサートしているため、この割り込
み処理は無視されてしまうことになる。
When the interval timer interrupt signal 101a0 (edge timing 1) is generated during such a series of operation processing, the interrupt control unit 1 is in the interrupt disabled period because of the processing of the general interrupt.
01 receives and holds an interrupt signal, and the processor 10
The interrupt request signal 102a for 2 (timing 6) is continuously asserted. At this time, when the interval timer interrupt signal 102a (edge timing 2) is further generated, the interrupt control unit 101 has already asserted the interrupt request signal 102a, so this interrupt processing is ignored.

【0026】プロセッサ102は、前の割り込み信号1
01a1(タイミング3−4)の処理を終了しだい、割
り込み要求信号102a(タイミング6)を受け付け、
割り込み承認信号101bを2回のロウ・レベル・パル
ス(タイミング9、10)で返す。
The processor 102 uses the previous interrupt signal 1
As soon as the processing of 01a1 (timing 3-4) is completed, the interrupt request signal 102a (timing 6) is accepted,
The interrupt acknowledge signal 101b is returned by two low level pulses (timing 9, 10).

【0027】そして、割り込みコントロール部101
は、8ビットのデータ・バスによって割り込みベクタ・
データ101b0−101b7(タイミング12)をプ
ロセッサ102へ転送する。
The interrupt control unit 101
Is an interrupt vector
The data 101b0 to 101b7 (timing 12) are transferred to the processor 102.

【0028】プロセッサ102は転送されたベクタ・デ
ータによって割り込みの種類を判別し、処理する。
The processor 102 determines the type of interrupt based on the transferred vector data and processes it.

【0029】このように、割り込み処理中に2回以上の
インターバル・タイマ割り込みの信号を保持することが
できないため、割り込みを無視することになる。一定周
期で割り込まれるインターバル・タイマ割り込みがプロ
セッサ102で認識されないと、正確さを必要とするタ
イマ処理などを行うときに問題が生じてくることにな
る。
As described above, since the signal of the interval timer interrupt more than twice cannot be held during the interrupt processing, the interrupt is ignored. Unless the interval timer interrupt interrupted at a constant cycle is recognized by the processor 102, a problem may occur when performing timer processing that requires accuracy.

【0030】本発明の目的は、インターバル・タイマ割
り込みの欠損を防止した割り込み制御方式を提供するこ
とにある。
An object of the present invention is to provide an interrupt control system which prevents loss of interval timer interrupts.

【0031】[0031]

【課題を解決するための手段】本発明は、前記課題の解
決を図るため、一定周期で発生するインターバル・タイ
マ割り込み信号と一般の割り込み信号を割り込みコント
ロール部で受付け、該割り込みコントロール部はプロセ
ッサに対する割り込み要求を行い、該プロセッサは割り
込み要求に対する割り込み許可信号を割り込みコントロ
ール部に返して割り込みコントロール部から受け取るベ
クタ・データに応じた処理を行い、この処理の間に他の
割り込みが発生したときに該割り込みコントロール部は
各割り込み信号毎に1回分だけ割り込み状態を保持して
現在の割り込み処理が終了したときにプロセッサへの割
り込み要求を行う割り込み制御方式において、前記イン
ターバル・タイマ割り込み信号が発生したときにその状
態を保持する割り込み状態保持回路と、前記割り込み状
態保持回路がインターバル・タイマ割り込み信号の保持
状態で次のインターバル・タイマ割り込み信号が発生し
たときに前記プロセッサにマスク不可能な割り込み発生
を通知するNMI通知回路と、前記ベクタ・データがイ
ンターバル・タイマ割り込みのベクタであり、かつ前記
プロセッサから割り込み処理終了の信号を受け、かつ該
プロセッサが割り込み許可信号を発生したときに前記割
り込み状態保持回路及びNMI通知回路の状態解除を行
うインターバル・タイマ・ベクタ・デコーダ回路とを備
えたことを特徴とする。
According to the present invention, in order to solve the above problems, an interrupt control unit receives an interval timer interrupt signal and a general interrupt signal which are generated at a constant period, and the interrupt control unit is directed to a processor. The processor makes an interrupt request, returns an interrupt enable signal for the interrupt request to the interrupt control unit, performs processing according to the vector data received from the interrupt control unit, and when another interrupt occurs during this processing, In the interrupt control method, in which the interrupt control unit holds the interrupt state only once for each interrupt signal and issues an interrupt request to the processor when the current interrupt processing is completed, when the interval timer interrupt signal is generated. To keep that state A state holding circuit, and an NMI notifying circuit for notifying the processor of the occurrence of a non-maskable interrupt when the next interval timer interrupt signal is generated while the interrupt state holding circuit is holding the interval timer interrupt signal. When the vector data is an interval timer interrupt vector, an interrupt processing end signal is received from the processor, and the interrupt state holding circuit and the NMI notification circuit are released when the processor generates an interrupt enable signal. And an interval timer vector decoder circuit for performing.

【0032】また、本発明は、一定周期で発生するイン
ターバル・タイマ割り込み信号と一般の割り込み信号を
割り込みコントロール部で受付け、該割り込みコントロ
ール部はプロセッサに対する割り込み要求を行い、該プ
ロセッサは割り込み要求に対する割り込み処理を行う割
り込み制御方式において、前記インターバル・タイマ割
り込み信号の発生をカウントしておくカウンタ回路と、
前記インターバル・タイマ割り込み信号の発生を記憶し
て前記割り込みコントロール部にインターバル・タイマ
割り込み信号を発生し続ける割り込み要求回路とを備
え、前記プロセッサは、インターバル・タイマ割り込み
の処理を実行するときに前記カウンタ回路のカウント値
をデータ・バスから読み込み、このカウント値と前回の
該カウント値との差分だけインターバル・タイマ割り込
み処理を実行し、かつ前記割り込み要求回路の要求を解
除することを特徴とする。
Further, according to the present invention, an interval timer interrupt signal and a general interrupt signal generated at a constant period are accepted by an interrupt control unit, the interrupt control unit issues an interrupt request to a processor, and the processor interrupts the interrupt request. In an interrupt control system for performing processing, a counter circuit for counting the occurrence of the interval timer interrupt signal,
An interrupt request circuit for storing the generation of the interval timer interrupt signal and continuing to generate the interval timer interrupt signal in the interrupt control unit, wherein the processor is the counter when executing the processing of the interval timer interrupt. It is characterized in that the count value of the circuit is read from the data bus, the interval timer interrupt processing is executed by the difference between this count value and the previous count value, and the request of the interrupt request circuit is released.

【0033】[0033]

【作用】プロセッサが一般割り込み処理を実行中の割り
込み禁止期間中にインターバル・タイマ割り込みが2回
発生したときは、1回目は割り込みコントロール部によ
り正規の割り込み信号として保持し、2回目はNMI通
知でプロセッサに通知することでインターバル・タイマ
割り込みの欠損を防止する。
When the interval timer interrupt is generated twice during the interrupt disable period during which the processor is executing general interrupt processing, the interrupt control unit holds the interrupt signal as a regular interrupt signal at the first time and the NMI notification at the second time. Notifying the processor prevents loss of interval timer interrupts.

【0034】インターバル・タイマ割り込み処理を行っ
たときはインターバル・タイマ・ベクタ・デコーダ回路
によって割り込み状態保持回路とNMI通知回路をクリ
アして次のインターバル・タイマ割り込みに待機する。
When the interval timer interrupt processing is performed, the interval timer vector decoder circuit clears the interrupt state holding circuit and the NMI notification circuit and waits for the next interval timer interrupt.

【0035】また、プロセッサが一般の割り込み処理を
実行中に発生したインターバル・タイマ割り込み回数を
カウンタ回路に記憶すると共に割り込み要求回路で割り
込み要求をしておき、プロセッサは一般の割り込み処理
が終了してインターバル・タイマ割り込み処理を実行す
るときに、前回と今回のインターバル・タイマ割り込み
処理の間に発生したインターバル・タイマ割り込み回数
の差分だけインターバル・タイマ割り込みを実行するこ
とによりインターバル・タイマ割り込み処理の欠損を防
止する。
Further, the number of interval timer interrupts generated during execution of general interrupt processing by the processor is stored in the counter circuit and an interrupt request is issued by the interrupt request circuit, and the processor completes general interrupt processing. When executing the interval timer interrupt processing, the interval timer interrupt processing can be eliminated by executing the interval timer interrupt by the difference in the number of interval timer interrupts that occurred between the previous and current interval timer interrupt processing. To prevent.

【0036】[0036]

【実施例】図1は、本発明の一実施例を示す回路図であ
る。同図中、301はインターバル・タイマ回路、30
3は割り込みコントローラ、304はフリップ・フロッ
プ構成のインターバル・タイマ割り込み状態保持回路、
305はフリップ・フロップ構成になり、プロセッサ1
02に対してNMI(一般のプロセッサに設けられ、通
常の割り込み入力の他に設けられているマスク不可能な
割り込み)が発生したことを通知するNMI通知回路、
306はインターバル・タイマ割り込みベクタのデコー
ダ回路、307はプロセッサ及びその周辺回路である。
FIG. 1 is a circuit diagram showing an embodiment of the present invention. In the figure, 301 is an interval timer circuit, 30
3 is an interrupt controller, 304 is an interval timer interrupt state holding circuit having a flip-flop configuration,
305 is a flip-flop configuration, and the processor 1
NMI notification circuit for notifying 02 that an NMI (non-maskable interrupt provided in a general processor and provided in addition to a normal interrupt input) has occurred,
Reference numeral 306 is a decoder circuit for an interval timer interrupt vector, and 307 is a processor and its peripheral circuits.

【0037】301aはインターバル・タイマ回路30
1からの割り込み要求信号、303aは一般の割り込み
要求信号、303bはプロセッサに対する割り込み要求
信号、303cはベクタ・データ・バス、304aは割
り込み状態を保持する信号、305aはプロセッサに対
するNMI要求信号、306aはインターバル・タイマ
割り込み許可信号(クリア)、307aはプロセッサか
らの割り込み許可信号、307bはプロセッサの割り込
み処理を示す信号である。
301a is an interval timer circuit 30
1 is an interrupt request signal, 303a is a general interrupt request signal, 303b is an interrupt request signal for the processor, 303c is a vector data bus, 304a is a signal for holding an interrupt state, 305a is an NMI request signal for the processor, and 306a is An interval timer interrupt enable signal (clear), 307a is an interrupt enable signal from the processor, and 307b is a signal indicating an interrupt process of the processor.

【0038】割り込み状態保持回路304は、データ入
力をプルアップとし、インターバル・タイマ割り込み信
号をクロック入力とするフリップ・フロップによってイ
ンターバル・タイマ割り込み信号が発生したときにその
状態を保持する。
The interrupt state holding circuit 304 holds the state when an interval timer interrupt signal is generated by a flip-flop having a data input as a pull-up and an interval timer interrupt signal as a clock input.

【0039】NMI通知回路305は、インターバル・
タイマ割り込み信号の保持状態の信号304aをデータ
入力とし、インターバル・タイマ割り込み信号をクロッ
ク入力とするフリップ・フロップによって2回目のイン
ターバル・タイマ割り込み信号が発生したときにプロセ
ッサにマスク不可能な割り込み発生を通知する。
The NMI notification circuit 305 uses the interval
When the second interval timer interrupt signal is generated by the flip-flop which receives the signal 304a of the holding state of the timer interrupt signal as the data input and the interval timer interrupt signal as the clock input, the non-maskable interrupt is generated in the processor. Notice.

【0040】インターバル・タイマ・ベクタ・デコーダ
回路306は、ベクタ・データ303cがインターバル
・タイマ割り込みのベクタであり、かつプロセッサ30
7から割り込み処理終了の信号307bを受け、かつ該
プロセッサが割り込み許可信号307aを発生したとき
に割り込み状態保持回路304及びNMI通知回路30
5の状態解除(クリア)を行う。
In the interval timer vector decoder circuit 306, the vector data 303c is an interval timer interrupt vector, and the processor 30
7 to receive the interrupt processing end signal 307b, and when the processor generates the interrupt enable signal 307a, the interrupt state holding circuit 304 and the NMI notification circuit 30
Clear (clear) the state of 5.

【0041】図2にインターバル・タイマ割り込みベク
タ・デコーダ回路306を展開した例を示す。
FIG. 2 shows an expanded example of the interval timer interrupt vector decoder circuit 306.

【0042】先ず、プロセッサ307が割り込みコント
ローラ303とインターバル・タイマ回路301に対し
て初期化を行い、プロセッサ自身の割り込みをイネーブ
ルにし、割り込みコントローラ303に対してインター
バル・タイマ回路301が割り込み要求信号301aを
アサートすると、割り込みコントローラ303は割り込
み要求信号303bをアサートする。
First, the processor 307 initializes the interrupt controller 303 and the interval timer circuit 301, enables the interrupt of the processor itself, and the interval timer circuit 301 sends an interrupt request signal 301a to the interrupt controller 303. When asserted, the interrupt controller 303 asserts the interrupt request signal 303b.

【0043】これと同時に、割り込み状態保持回路30
4がセットされ、割り込み状態保持信号304aをアサ
ートする。
At the same time, the interrupt state holding circuit 30
4 is set, and the interrupt state holding signal 304a is asserted.

【0044】この割り込みをプロセッサ307が受け付
け、プロセッサ自身の割り込みをディセーブルにし、割
り込み処理終了信号307bをアサートし、割り込み許
可信号307aを2回アサートする。
The processor 307 accepts this interrupt, disables the interrupt of the processor itself, asserts the interrupt processing end signal 307b, and asserts the interrupt permission signal 307a twice.

【0045】プロセッサ307は、2回目の割り込み許
可信号307aの立ち上がりによって、割り込みコント
ローラ303のベクタ・コード・データ・バス303c
からベクタ・コードを受け取る。
The processor 307 causes the vector code data bus 303c of the interrupt controller 303 by the second rise of the interrupt enable signal 307a.
Receives the vector code from

【0046】インターバル・タイマのベクタ・デコーダ
回路306は、このベクタ・コードがインターバル・タ
イマ割り込みのベクタであり、割り込み処理信号307
bがアサートされているとき、プロセッサ307の割り
込み許可信号307aの2回目のパルス・タイミングで
割り込み状態保持回路304とNMI通知回路305を
クリアする信号306aをアサートする。
In the vector decoder circuit 306 of the interval timer, this vector code is the vector of the interval timer interrupt, and the interrupt processing signal 307
When b is asserted, the signal 306a for clearing the interrupt state holding circuit 304 and the NMI notification circuit 305 is asserted at the second pulse timing of the interrupt permission signal 307a of the processor 307.

【0047】ベクタ・コードを受け取ったプロセッサ3
07は、インターバル・タイマ割り込み処理を開始し、
その処理を終了する際に、割り込み処理信号307bを
ネゲートし、プロセッサ自身の割り込みをイネーブルに
する。
Processor 3 that received the vector code
07 starts the interval timer interrupt process,
When the processing is completed, the interrupt processing signal 307b is negated and the interrupt of the processor itself is enabled.

【0048】次に、一般の割り込み信号303aがアサ
ートされると、割り込みコントローラ303はプロセッ
サに対する割り込み信号303bをアサートする。しか
し、インターバル・タイマ割り込みではないため割り込
み状態保持回路304はセットされない。
Next, when the general interrupt signal 303a is asserted, the interrupt controller 303 asserts the interrupt signal 303b for the processor. However, the interrupt state holding circuit 304 is not set because it is not an interval timer interrupt.

【0049】プロセッサ307は、この割り込みを受け
付け、プロセッサ自身の割り込みをディセーブルにし、
割り込み処理信号307bをアサートし、割り込み許可
信号307aを2回アサートする。プロセッサ307は
2回目の割り込み許可信号307aの立ち上がりによっ
て割り込みコントローラ303のベクタ・コード・デー
タ・バス303cからベクタ・コードを受け取る。
The processor 307 accepts this interrupt, disables its own interrupt,
The interrupt processing signal 307b is asserted, and the interrupt permission signal 307a is asserted twice. The processor 307 receives the vector code from the vector code data bus 303c of the interrupt controller 303 at the second rise of the interrupt enable signal 307a.

【0050】ベクタ・コードを受け取ったプロセッサ3
07は予め決められた割り込み処理を開始する。
Processor 3 that received the vector code
07 starts a predetermined interrupt process.

【0051】この処理の最中に、インターバル・タイマ
割り込み信号301aがアサートされると、割り込みコ
ントローラ303は、プロセッサ307に対して、割り
込み要求信号303bをアサートする。しかし、プロセ
ッサ307は割り込み処理中であるため、割り込み許可
信号307aをアサートしない。このため、インターバ
ル・タイマ割り込み処理は、その処理を待つことにな
る。このとき、割り込み状態保持回路304は、この割
り込みを受けてセットされる。
When the interval timer interrupt signal 301a is asserted during this process, the interrupt controller 303 asserts the interrupt request signal 303b to the processor 307. However, since the processor 307 is in the process of interrupting, it does not assert the interrupt permission signal 307a. Therefore, the interval timer interrupt processing waits for the processing. At this time, the interrupt state holding circuit 304 receives the interrupt and is set.

【0052】さらに、インターバル・タイマ割り込み信
号301aがアサートされると、割り込みコントローラ
303は、前回のインターバル・タイマ割り込みを受け
付けた状態にあるため、今回の割り込みは受け付けな
い。
Further, when the interval timer interrupt signal 301a is asserted, the interrupt controller 303 is in a state of accepting the previous interval timer interrupt, and therefore does not accept the interrupt of this time.

【0053】このため、割り込みコントローラ303か
らベクタ・コードが出力されず、またプロセッサ307
の割り込み許可信号307aが出力されないため、割り
込み処理信号307bがアサートされているにも拘わら
ず、304及び305をクリアする信号306aはアサ
ートされない。
Therefore, no vector code is output from the interrupt controller 303, and the processor 307
Since the interrupt permission signal 307a of 1 is not output, the signal 306a for clearing 304 and 305 is not asserted even though the interrupt processing signal 307b is asserted.

【0054】したがって、既に割り込み状態保持回路3
04がセットされているため、NMI通知回路305が
セットされ、プロセッサ307に対してNMIを通知
し、現在の割り込み処理の最中にインターバル・タイマ
割り込み要求が2回発生したことを知らせる。
Therefore, the interrupt state holding circuit 3 has already been
Since 04 is set, the NMI notification circuit 305 is set to notify the processor 307 of the NMI and notify that the interval timer interrupt request has been generated twice during the current interrupt processing.

【0055】この動作が本発明の基本動作であり、この
回路構成によって「プロセッサが別の割り込み処理を実
行している間に、例えばインターバル・タイマ割り込み
が2回入ったとしても、1回目は割り込み信号を割り込
みコントローラが保持し、現在行われている割り込み処
理が終了しだい、プロセッサが処理を行う。また、2回
目はNMIによってこれを通知することができる。」と
いうルールが成立する。
This operation is the basic operation of the present invention. With this circuit configuration, "while the processor is executing another interrupt process, for example, even if an interval timer interrupt occurs twice, the first interrupt The signal is held by the interrupt controller, and the processor performs the process as soon as the interrupt process that is currently being performed is completed. In addition, the NMI can notify this by the second time. "

【0056】このため、本回路構成を採った割り込み認
識方式のプロセッサ・システムにおいては、プロセッサ
が処理時間の長い割り込みを実行している間に、インタ
ーバル・タイマ割り込み要求が2回入力されるも、割り
込みコントローラは1つの割り込みしか受け付けること
ができないため、2回目の割り込み要求が捨てられるこ
とがないように、NMIによって2回目の割り込み要求
を通知する。
For this reason, in the interrupt recognition type processor system adopting this circuit configuration, although the interval timer interrupt request is input twice while the processor is executing an interrupt having a long processing time, Since the interrupt controller can accept only one interrupt, the NMI notifies the second interrupt request so that the second interrupt request is not discarded.

【0057】図9に示した従来の割り込み方式における
割り込みが捨てられる様子に対比して本回路構成による
場合の割り込みの方式の様子を示したのが図3である。
FIG. 3 shows the state of the interrupt system in the case of the present circuit configuration, as compared with the state in which the interrupt is discarded in the conventional interrupt system shown in FIG.

【0058】図3のタイムチャート中に付記されている
タイミング順に動作を以下に詳細に説明する。
The operation will be described in detail below in the order of the timings additionally shown in the time chart of FIG.

【0059】(タイミング1)インターバル・タイマ回
路301が割り込みを要求し、割り込み要求信号301
aをアサートする。
(Timing 1) Interval timer circuit 301 requests an interrupt and interrupt request signal 301
Assert a.

【0060】(タイミング2)割り込みコントローラ3
03が割り込みを要求し、割り込み要求信号303bを
アサートする。
(Timing 2) Interrupt controller 3
03 requests an interrupt and asserts an interrupt request signal 303b.

【0061】(タイミング3)割り込み状態保持回路3
04がセットされ、割り込み状態保持信号304aがア
サートされる。
(Timing 3) Interrupt state holding circuit 3
04 is set, and the interrupt state holding signal 304a is asserted.

【0062】(タイミング4)プロセッサ307が割り
込み処理を開始し、割り込み処理を実行していることを
示す信号307bをアサートにする。
(Timing 4) The processor 307 starts interrupt processing and asserts a signal 307b indicating that interrupt processing is being executed.

【0063】(タイミング5)プロセッサ307は割り
込み処理を開始し、割り込み許可信号307aを2回ア
サートする。
(Timing 5) The processor 307 starts interrupt processing and asserts the interrupt permission signal 307a twice.

【0064】(タイミング6)割り込みコントローラ3
03は、ベクタ・コード・データ・バス303cをアク
ティブにする。
(Timing 6) Interrupt controller 3
03 activates the vector code data bus 303c.

【0065】(タイミング7)割り込みコントローラ3
03は、プロセッサ307が割り込みを受け付けたこと
を知った後、割り込み要求信号303bをネゲートす
る。
(Timing 7) Interrupt controller 3
03, after knowing that the processor 307 has accepted the interrupt, negates the interrupt request signal 303b.

【0066】(タイミング8)インターバル・タイマ割
り込みが出力されたことによって、割り込み状態保持回
路304とNMI通知回路305をクリアする信号30
6aをアサートする。
(Timing 8) A signal 30 for clearing the interrupt state holding circuit 304 and the NMI notification circuit 305 due to the output of the interval timer interrupt.
Assert 6a.

【0067】(タイミング9)割り込み状態保持回路3
04はクリアされ、割り込み状態保持信号304aをネ
ゲートする。
(Timing 9) Interrupt state holding circuit 3
04 is cleared and the interrupt state holding signal 304a is negated.

【0068】(タイミング10)プロセッサ307は、
割り込み処理を実行していることを示す信号307bを
ネゲートする。
(Timing 10) The processor 307
The signal 307b indicating that the interrupt processing is being executed is negated.

【0069】以上までは、インターバル・タイマ割り込
みの通常の動作である。
The above is the normal operation of the interval timer interrupt.

【0070】(タイミング11)一般の割り込み回路が
割り込みを要求し、割り込み要求信号303aをアサー
トにする。
(Timing 11) A general interrupt circuit requests an interrupt and asserts the interrupt request signal 303a.

【0071】(タイミング12)割り込みコントローラ
303が割り込みを要求し、割り込み要求信号303b
をアサートする。
(Timing 12) The interrupt controller 303 requests an interrupt, and the interrupt request signal 303b
Assert.

【0072】(タイミング13)プロセッサ307が割
り込み処理を開始し、割り込み処理を実行していること
を示す信号307bをアサートする。
(Timing 13) The processor 307 starts interrupt processing and asserts a signal 307b indicating that interrupt processing is being executed.

【0073】(タイミング14)プロセッサ307は割
り込み処理を開始し、割り込み許可信号307aを2回
アサートする。
(Timing 14) The processor 307 starts interrupt processing and asserts the interrupt permission signal 307a twice.

【0074】(タイミング15)割り込みコントローラ
303は、ベクタ・コード・データ・バス303cをア
クティブにする。
(Timing 15) The interrupt controller 303 activates the vector code data bus 303c.

【0075】(タイミング16)割り込みコントローラ
303は、プロセッサ307が割り込みを受け付けたこ
とを知った後、割り込み要求信号303bをネゲートす
る。
(Timing 16) After knowing that the processor 307 has accepted the interrupt, the interrupt controller 303 negates the interrupt request signal 303b.

【0076】(タイミング17)インターバル・タイマ
回路301が割り込みを要求し、割り込み要求信号30
1aをアサートする。
(Timing 17) The interval timer circuit 301 requests an interrupt, and the interrupt request signal 30
Assert 1a.

【0077】(タイミング18)割り込みコントローラ
303が割り込みを要求し、割り込み要求信号303b
をアサートする。
(Timing 18) The interrupt controller 303 requests an interrupt, and the interrupt request signal 303b
Assert.

【0078】(タイミング19)割り込み状態保持回路
304は、割り込み要求信号303bの立ち上がりでセ
ットされる。
(Timing 19) The interrupt state holding circuit 304 is set at the rising edge of the interrupt request signal 303b.

【0079】(タイミング20)インターバル・タイマ
301が割り込みを要求し、割り込み要求信号301a
をアサートする。
(Timing 20) The interval timer 301 requests an interrupt, and the interrupt request signal 301a
Assert.

【0080】(タイミング21)NMI通知回路305
は、(タイミング17)でインターバル・タイマ割り込
みによる割り込みは禁止されていて受け付けられないた
め、割り込みコントローラ303から割り込みベクタは
出力されない。
(Timing 21) NMI notification circuit 305
At (timing 17), the interrupt by the interval timer interrupt is prohibited and cannot be accepted, so the interrupt vector is not output from the interrupt controller 303.

【0081】したがって、インターバル・タイマ割り込
みベクタ・デコーダ回路から出力されず、割り込み状態
保持信号304aがアサートされたままになっており、
NMI要求信号305aをアサートする。これにより、
プロセッサ307はNMIがかけられる。
Therefore, the interval timer interrupt vector decoder circuit does not output, and the interrupt state holding signal 304a remains asserted,
Assert the NMI request signal 305a. This allows
The processor 307 is subjected to NMI.

【0082】ここで、NMI処理において、インターバ
ル・タイマ割り込み処理を行わせれば、インターバル・
タイマ割り込みが欠損することが無くなる。
Here, in the NMI processing, if the interval timer interrupt processing is performed, the interval
The timer interrupt will not be lost.

【0083】以上のように、本実施例は、インターバル
・タイマ回路の割り込み状態保持回路304とNMI通
知回路305及び正常動作時にこれら回路をクリアする
ためのタイマ・ベクタ・デコーダ回路306を設けるこ
とにより、一般処理による割り込み禁止期間に2回のイ
ンターバル・タイマ割り込み信号が発生した場合にも1
回目は正規の割り込み処理がなされ、2回目はNMI通
知によってプロセッサ307に通知でき、インターバル
・タイマによる割り込み信号の欠損を防止できる。
As described above, in this embodiment, the interrupt state holding circuit 304 of the interval timer circuit, the NMI notification circuit 305, and the timer vector decoder circuit 306 for clearing these circuits at the time of normal operation are provided. , 1 even if the interval timer interrupt signal is generated twice during the interrupt disable period by general processing
Regular interrupt processing is performed the second time, and the second time can be notified to the processor 307 by NMI notification, and loss of the interrupt signal due to the interval timer can be prevented.

【0084】図4は、本発明の他の実施例を示す回路図
である。同図中、401はインターバル・タイマ回路、
402はタイマ割り込み要求回路、403は割り込みコ
ントローラ、404はプロセッサ及びその周辺回路であ
る。
FIG. 4 is a circuit diagram showing another embodiment of the present invention. In the figure, 401 is an interval timer circuit,
Reference numeral 402 is a timer interrupt request circuit, 403 is an interrupt controller, and 404 is a processor and its peripheral circuits.

【0085】401aはインターバル・タイマ回路40
1からの割り込み要求信号、402aはタイマ割り込み
要求回路402からの割り込み要求信号、403aは一
般の割り込み要求信号、403bはプロセッサに対する
割り込み要求信号、403cはベクタ・データ・バス、
404aはプロセッサの割り込み許可信号である。
401a is an interval timer circuit 40
1 is an interrupt request signal, 402a is an interrupt request signal from the timer interrupt request circuit 402, 403a is a general interrupt request signal, 403b is an interrupt request signal for a processor, 403c is a vector data bus,
Reference numeral 404a is an interrupt enable signal for the processor.

【0086】タイマ割り込み要求回路402を展開した
例を図5に示す。502はインターバル・タイマ割り込
み要求信号401aの発生回数をカウントするためのパ
ルスカウンタ、503はインターバル・タイマ割り込み
の発生を記憶しておきプロセッサ404に対して割り込
みを要求する回路である。
An example in which the timer interrupt request circuit 402 is expanded is shown in FIG. 502 is a pulse counter for counting the number of occurrences of the interval timer interrupt request signal 401a, and 503 is a circuit for storing the occurrence of the interval timer interrupt and requesting the processor 404 for the interrupt.

【0087】この構成において、インターバル・タイマ
401が割り込み要求信号をアサートすると、タイマ割
り込み要求回路402内の割り込み要求回路503は割
り込み要求信号402aをアサートし続ける。
In this configuration, when the interval timer 401 asserts the interrupt request signal, the interrupt request circuit 503 in the timer interrupt request circuit 402 continues to assert the interrupt request signal 402a.

【0088】これによって、割り込みコントローラ40
3はプロセッサ404に対する割り込み要求信号403
bをアサートする。
As a result, the interrupt controller 40
3 is an interrupt request signal 403 to the processor 404
Assert b.

【0089】この割り込み要求を受け付けたプロセッサ
404が割り込み許可信号404aを2回アサートす
る。プロセッサ404は2回目の割り込み許可信号40
4aの立ち上がりによってデータ・バス403cからベ
クタ・データを受け取る。
The processor 404 accepting this interrupt request asserts the interrupt enable signal 404a twice. The processor 404 uses the second interrupt enable signal 40
Vector data is received from the data bus 403c at the rising edge of 4a.

【0090】ベクタ・データを受け取ったプロセッサ4
04は、インターバル・タイマ割り込み処理を開始す
る。まず、プロセッサ404は、パルスカウンタ502
の値をデータ・バス403cより読み込んで割り込み要
求回路503をリセットし、前回から今回のインターバ
ル・タイマ割り込みまでの割り込み回数差分だけインタ
ーバル・タイマ割り込み処理を行い、その処理を終了す
る。
Processor 4 receiving vector data
04 starts the interval timer interrupt processing. First, the processor 404 uses the pulse counter 502.
Value is read from the data bus 403c, the interrupt request circuit 503 is reset, the interval timer interrupt process is performed for the difference in the number of interrupts from the previous interval timer interrupt to the current interval timer interrupt, and the process ends.

【0091】次に、一般の割り込み信号403aがアサ
ートされると、割り込みコントローラ403はプロセッ
サ404に対する割り込み信号403bをアサートす
る。
Next, when the general interrupt signal 403a is asserted, the interrupt controller 403 asserts the interrupt signal 403b to the processor 404.

【0092】プロセッサ404は、この割り込みを受け
付けて、割り込み許可信号404aを2回アサートす
る。プロセッサ404は、2回目の割り込み許可信号4
04aの立ち上がりによって割り込みコントローラ40
3からデータ・バス403cよりベクタ・データを受け
取る。
The processor 404 accepts this interrupt and asserts the interrupt permission signal 404a twice. The processor 404 uses the second interrupt enable signal 4
Interrupt controller 40 by the rising edge of 04a
3 receives vector data from the data bus 403c.

【0093】ベクタ・データを受け取ったプロセッサ4
04は予め決められた割り込み処理を開始する。
Processor 4 receiving vector data
04 starts a predetermined interrupt process.

【0094】この処理の最中に、インターバル・タイマ
割り込み信号401aがアサートされると、タイマ割り
込み要求回路402は、割り込み要求信号402aをア
サートし、さらに割り込みコントローラ403はプロセ
ッサ404に対して割り込み要求信号403bをアサー
トする。
When the interval timer interrupt signal 401a is asserted during this processing, the timer interrupt request circuit 402 asserts the interrupt request signal 402a, and the interrupt controller 403 sends the interrupt request signal to the processor 404. Assert 403b.

【0095】しかし、プロセッサ404は、割り込み処
理中であるため、割り込み許可信号404aをアサート
しない。このため、インターバル・タイマ割り込み要求
は、その処理を待たされる。
However, since the processor 404 is in the process of interrupting, it does not assert the interrupt enable signal 404a. Therefore, the interval timer interrupt request has to wait for its processing.

【0096】この状態において、タイマ割り込み要求回
路402内のパルスカウンタ502がインターバル・タ
イマ割り込み信号401aがアサートされた回数をカウ
ントしている。
In this state, the pulse counter 502 in the timer interrupt request circuit 402 counts the number of times the interval timer interrupt signal 401a is asserted.

【0097】プロセッサ404が現在実行中の処理を終
了後、割り込み信号403bを受け付けると、割り込み
許可信号404aを2回アサートする。プロセッサ40
4は、2回目の割り込み許可信号404aの立ち上がり
によって、データ・バス403cからベクタ・データを
受け取る。
When the processor 404 receives the interrupt signal 403b after finishing the processing currently being executed, the interrupt enable signal 404a is asserted twice. Processor 40
4 receives the vector data from the data bus 403c at the second rise of the interrupt enable signal 404a.

【0098】ベクタ・データを受け取ったプロセッサ4
04は、インターバル・タイマ割り込み処理を開始す
る。まず、プロセッサ404は、パルスカウンタ502
の値をデータ・バス403cより読み込んで割り込み要
求回路503をリセットし、割り込み回数分だけインタ
ーバル・タイマ割り込み処理を行い、その処理を終了す
る。
Processor 4 receiving vector data
04 starts the interval timer interrupt processing. First, the processor 404 uses the pulse counter 502.
Value is read from the data bus 403c, the interrupt request circuit 503 is reset, interval timer interrupt processing is performed for the number of interrupts, and the processing ends.

【0099】このような動作が本実施例の基本処理であ
り、これによって「プロセッサが一般の割り込み処理を
実行している間に、例えインターバル・タイマ割り込み
が2回以上発生したとしても、この割り込み回数をカウ
ントし、現在行われている割り込み処理が終了しだい、
プロセッサが割り込み回数分だけインターバル・タイマ
処理を行う」というルールが成立する。
Such an operation is the basic processing of the present embodiment, and by this, "even if an interval timer interrupt occurs twice or more while the processor is executing general interrupt processing, this interrupt Count the number of times, and as soon as the interrupt processing currently being performed is completed,
The processor executes the interval timer processing for the number of interrupts ".

【0100】このため、本実施例においては、プロセッ
サが処理時間の長い割り込みを実行している間にインタ
ーバル・タイマ割り込み要求が複数回発生した場合も割
り込み要求が捨てられることのないようにカウントする
ことによって、プロセッサが入力された割り込み回数分
だけ処理を行うことができる。
Therefore, in the present embodiment, even if the interval timer interrupt request is generated a plurality of times while the processor is executing an interrupt having a long processing time, the interrupt request is counted so as not to be discarded. As a result, the processor can process as many times as the number of input interrupts.

【0101】本実施例の割り込み処理のタイムチャート
を図6に示す。以下、同図に付記されるタイミング順に
動作を詳細に説明する。
FIG. 6 shows a time chart of the interrupt processing of this embodiment. The operation will be described in detail below in the order of the timings shown in FIG.

【0102】(タイミング1)一般の割り込み回路が割
り込みを要求し、割り込み要求信号403aをアサート
する。
(Timing 1) A general interrupt circuit requests an interrupt and asserts an interrupt request signal 403a.

【0103】(タイミング2)割り込みコントローラ4
03が割り込みを要求信号403bをアサートする。
(Timing 2) Interrupt controller 4
03 asserts the interrupt request signal 403b.

【0104】(タイミング3)プロセッサ404は割り
込み処理を開始し、割り込み許可信号404aを2回ア
サートする。
(Timing 3) The processor 404 starts interrupt processing and asserts the interrupt enable signal 404a twice.

【0105】(タイミング4)割り込みコントローラ4
03は、データ・バス403cをアクティブにする。
(Timing 4) Interrupt controller 4
03 activates the data bus 403c.

【0106】(タイミング5)インターバル・タイマ4
01が割り込みを要求し、割り込み信号401aをアサ
ートする。
(Timing 5) Interval timer 4
01 requests an interrupt and asserts an interrupt signal 401a.

【0107】(タイミング6)タイマ割り込み要求回路
402内のパルスカウンタ502が割り込み信号401
aをカウントし、カウント・アップする。
(Timing 6) The pulse counter 502 in the timer interrupt request circuit 402 causes the interrupt signal 401
Count a and count up.

【0108】(タイミング7)タイマ割り込み要求回路
402内の割り込み要求回路503が割り込みを要求
し、割り込み要求信号402aをアサートする。
(Timing 7) The interrupt request circuit 503 in the timer interrupt request circuit 402 requests an interrupt and asserts the interrupt request signal 402a.

【0109】(タイミング8)割り込みコントローラ4
03が割り込みを要求し、割り込み要求信号403bを
アサートする。
(Timing 8) Interrupt controller 4
03 requests an interrupt and asserts an interrupt request signal 403b.

【0110】(タイミング9)インターバル・タイマ4
01が割り込みを要求し、割り込み要求信号401aを
アサートする。
(Timing 9) Interval timer 4
01 requests an interrupt and asserts an interrupt request signal 401a.

【0111】(タイミング10)タイマ割り込み要求回
路402内のパルスカウンタ502が割り込み信号40
1aをカウントし、カウント・アップする。
(Timing 10) The pulse counter 502 in the timer interrupt request circuit 402 causes the interrupt signal 40
Count 1a and count up.

【0112】(タイミング11)プロセッサ404が割
り込み処理内で割り込み発生源を制御することにより、
割り込み要求信号403aをクリアし、割り込み処理を
終了する。
(Timing 11) By the processor 404 controlling the interrupt source in the interrupt processing,
The interrupt request signal 403a is cleared, and the interrupt process ends.

【0113】(タイミング12)プロセッサ404は割
り込み処理を開始し、割り込み許可信号404aを2回
アサートする。
(Timing 12) The processor 404 starts the interrupt processing and asserts the interrupt permission signal 404a twice.

【0114】(タイミング13)割り込みコントローラ
403は、データ・バス403cをアクティブにする。
(Timing 13) The interrupt controller 403 activates the data bus 403c.

【0115】(タイミング14)タイマ割り込み要求回
路402内のパルスカウンタ502がデータ・バス40
3cをアクティブにする。
(Timing 14) The pulse counter 502 in the timer interrupt request circuit 402 is connected to the data bus 40.
Activate 3c.

【0116】ここで、プロセッサ404は、パルスカウ
ンタ502の値を読み込み、これを以前の値と比較し、
前回の割り込みから今回の割り込みまでに何回のインタ
ーバル・タイマ割り込みが発生したかを判別し、割り込
んだ回数分処理を行う。同時に、読み込んだパルスカウ
ント値はメモリ等の記憶手段に記憶しておく。
The processor 404 now reads the value of the pulse counter 502 and compares it with the previous value,
Determine how many interval timer interrupts have occurred from the previous interrupt to this interrupt, and process the interrupted number of times. At the same time, the read pulse count value is stored in a storage means such as a memory.

【0117】(タイミング15)プロセッサ404は、
タイマ割り込み要求回路402内の割り込み要求回路5
03をリセットする。
(Timing 15) The processor 404
Interrupt request circuit 5 in timer interrupt request circuit 402
03 is reset.

【0118】以上のように、本実施例では、インターバ
ル・タイマ割り込み要求回数をカウントしておき、これ
をインターバル・タイマ割り込みの度に読み出して以前
の値と比較することにより割り込み回数を判別し、割り
込み回数分だけインターバル・タイマ割り込み処理を実
行するようにしたため、インターバル・タイマ割り込み
の欠損を防止できる。
As described above, in the present embodiment, the number of interval timer interrupt requests is counted, and this is read at each interval timer interrupt and compared with the previous value to determine the number of interrupts. Since the interval timer interrupt processing is executed for the number of interrupts, it is possible to prevent loss of the interval timer interrupt.

【0119】[0119]

【発明の効果】以上のとおり、本発明によれば、プロセ
ッサが一般割り込み処理を実行中の割り込み禁止期間中
にインターバル・タイマ割り込みが2回発生したとき
は、1回目は割り込みコントロール部により正規の割り
込み信号として保持し、2回目はNMI通知でプロセッ
サに通知するようにしたため、インターバル・タイマ割
り込みの欠損を防止できる効果がある。
As described above, according to the present invention, when the interval timer interrupt is generated twice during the interrupt disable period during which the processor is executing the general interrupt process, the interrupt control unit first causes the interrupt to occur normally. Since it is held as an interrupt signal and notified to the processor by NMI notification for the second time, it is possible to prevent the loss of the interval timer interrupt.

【0120】また、本発明は、プロセッサが一般の割り
込み処理を実行中に発生したインターバル・タイマ割り
込み回数を記憶すると共に割り込み要求をしておき、プ
ロセッサは一般の割り込み処理が終了してインターバル
・タイマ割り込み処理を実行するときに、前回と今回の
インターバル・タイマ割り込み処理の間に発生したイン
ターバル・タイマ割り込み回数の差分だけインターバル
・タイマ割り込みを実行するようにしたため、インター
バル・タイマ割り込み処理の欠損を防止できる効果があ
る。
Further, according to the present invention, the interval timer interrupt count generated during execution of general interrupt processing by the processor is stored and an interrupt request is made, and the processor completes the general interrupt processing and the interval timer When interrupt processing is executed, interval timer interrupts are executed by the difference in the number of interval timer interrupts that occurred between the previous and current interval timer interrupt processing, preventing loss of interval timer interrupt processing. There is an effect that can be done.

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

【図1】本発明の一実施例を示すブロック図。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】インターバル・タイマ・ベクタ・デコーダ回路
の展開例。
FIG. 2 is an example of development of an interval timer vector decoder circuit.

【図3】実施例の割り込み処理例。FIG. 3 is an example of interrupt processing according to the embodiment.

【図4】他の実施例のブロック図。FIG. 4 is a block diagram of another embodiment.

【図5】他の実施例のタイマ割り込み要求回路例。FIG. 5 shows an example of a timer interrupt request circuit according to another embodiment.

【図6】他の実施例の割り込み処理例。FIG. 6 shows an example of interrupt processing according to another embodiment.

【図7】従来の割り込み制御例。FIG. 7 shows an example of conventional interrupt control.

【図8】プロセッサの割り込み処理によって他の割り込
みが禁止されている期間例。
FIG. 8 shows an example of a period during which another interrupt is prohibited by the interrupt processing of the processor.

【図9】プロセッサの割り込み処理によって他の割り込
みが禁止されている期間例。
FIG. 9 is an example of a period in which another interrupt is prohibited by the interrupt processing of the processor.

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

301、401…インターバル・タイマ回路 303、403…割り込みコントロール部 304…割り込み状態保持回路 305…NMI通知回路 306…インターバル・タイマ・ベクタ・デコーダ回路 307、404…プロセッサ 402…タイマ割り込み要求回路 301, 401 ... Interval timer circuit 303, 403 ... Interrupt control section 304 ... Interrupt state holding circuit 305 ... NMI notification circuit 306 ... Interval timer vector decoder circuit 307, 404 ... Processor 402 ... Timer interrupt request circuit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 一定周期で発生するインターバル・タイ
マ割り込み信号と一般の割り込み信号を割り込みコント
ロール部で受付け、該割り込みコントロール部はプロセ
ッサに対する割り込み要求を行い、該プロセッサは割り
込み要求に対する割り込み許可信号を割り込みコントロ
ール部に返して割り込みコントロール部から受け取るベ
クタ・データに応じた処理を行い、この処理の間に他の
割り込みが発生したときに該割り込みコントロール部は
各割り込み信号毎に1回分だけ割り込み状態を保持して
現在の割り込み処理が終了したときにプロセッサへの割
り込み要求を行う割り込み制御方式において、 前記インターバル・タイマ割り込み信号が発生したとき
にその状態を保持する割り込み状態保持回路と、 前記割り込み状態保持回路がインターバル・タイマ割り
込み信号の保持状態で次のインターバル・タイマ割り込
み信号が発生したときに前記プロセッサにマスク不可能
な割り込み発生を通知するNMI通知回路と、 前記ベクタ・データがインターバル・タイマ割り込みの
ベクタであり、かつ前記プロセッサから割り込み処理終
了の信号を受け、かつ該プロセッサが割り込み許可信号
を発生したときに前記割り込み状態保持回路及びNMI
通知回路の状態解除を行うインターバル・タイマ・ベク
タ・デコーダ回路と、を備えたことを特徴とする割り込
み制御方式。
1. An interrupt control unit receives an interval timer interrupt signal and a general interrupt signal that are generated at regular intervals, the interrupt control unit issues an interrupt request to a processor, and the processor interrupts an interrupt enable signal for the interrupt request. Performs processing according to the vector data returned to the control section and received from the interrupt control section, and when another interrupt occurs during this processing, the interrupt control section holds the interrupt state only once for each interrupt signal. In the interrupt control method for issuing an interrupt request to the processor when the current interrupt processing is completed, an interrupt state holding circuit that holds the state when the interval timer interrupt signal is generated, and the interrupt state holding circuit Is in An NMI notification circuit for notifying the processor of the occurrence of a non-maskable interrupt when the next interval timer interrupt signal is generated while holding the global timer interrupt signal, and the vector data is a vector of the interval timer interrupt. Yes, and when the interrupt processing end signal is received from the processor and the processor generates an interrupt enable signal, the interrupt state holding circuit and the NMI
An interrupt control method comprising: an interval timer vector decoder circuit for releasing the state of the notification circuit.
【請求項2】 一定周期で発生するインターバル・タイ
マ割り込み信号と一般の割り込み信号を割り込みコント
ロール部で受付け、該割り込みコントロール部はプロセ
ッサに対する割り込み要求を行い、該プロセッサは割り
込み要求に対する割り込み処理を行う割り込み制御方式
において、 前記インターバル・タイマ割り込み信号の発生をカウン
トしておくカウンタ回路と、 前記インターバル・タイマ割り込み信号の発生を記憶し
て前記割り込みコントロール部にインターバル・タイマ
割り込み信号を発生し続ける割り込み要求回路とを備
え、 前記プロセッサは、インターバル・タイマ割り込みの処
理を実行するときに前記カウンタ回路のカウント値をデ
ータ・バスから読み込み、このカウント値と前回の該カ
ウント値との差分だけインターバル・タイマ割り込み処
理を実行し、かつ前記割り込み要求回路の要求を解除す
ることを特徴とする割り込み制御方式。
2. An interrupt which accepts an interval timer interrupt signal and a general interrupt signal which are generated at a constant cycle in an interrupt control unit, the interrupt control unit issues an interrupt request to a processor, and the processor performs interrupt processing in response to the interrupt request. In the control method, a counter circuit that counts the occurrence of the interval timer interrupt signal, and an interrupt request circuit that stores the occurrence of the interval timer interrupt signal and continues to generate the interval timer interrupt signal in the interrupt control unit The processor reads the count value of the counter circuit from the data bus when executing the processing of the interval timer interrupt, and the interface reads only the difference between the count value and the previous count value. 1. An interrupt control method, wherein a timer interrupt process is executed and a request from the interrupt request circuit is canceled.
JP795694A 1994-01-28 1994-01-28 Interruption control system Pending JPH07219784A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP795694A JPH07219784A (en) 1994-01-28 1994-01-28 Interruption control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP795694A JPH07219784A (en) 1994-01-28 1994-01-28 Interruption control system

Publications (1)

Publication Number Publication Date
JPH07219784A true JPH07219784A (en) 1995-08-18

Family

ID=11679949

Family Applications (1)

Application Number Title Priority Date Filing Date
JP795694A Pending JPH07219784A (en) 1994-01-28 1994-01-28 Interruption control system

Country Status (1)

Country Link
JP (1) JPH07219784A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100327980B1 (en) * 1997-06-28 2002-08-14 주식회사 하이닉스반도체 Device and method compensating interrupt loss

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100327980B1 (en) * 1997-06-28 2002-08-14 주식회사 하이닉스반도체 Device and method compensating interrupt loss

Similar Documents

Publication Publication Date Title
US5708814A (en) Method and apparatus for reducing the rate of interrupts by generating a single interrupt for a group of events
EP0166272B1 (en) Processor bus access
US5551044A (en) Method and apparatus for interrupt/SMI# ordering
US5274785A (en) Round robin arbiter circuit apparatus
JPH11219302A (en) Method and device affecting subsequent instruction processing in data processor
JPH0743653B2 (en) Interrupt controller
JPH0454255B2 (en)
JP2661222B2 (en) Pulse output device
US5544333A (en) System for assigning and identifying devices on bus within predetermined period of time without requiring host to do the assignment
US6115767A (en) Apparatus and method of partially transferring data through bus and bus master control device
JPH07219784A (en) Interruption control system
JP3655648B2 (en) Process switch control device and process control method
JPH10320349A (en) Processor and data transfer system using the processor
JP3093374B2 (en) Interrupt controller
JPS5916054A (en) Microprocessor
JPH03252886A (en) Single chip microcomputer
JP2716055B2 (en) Vector processor control method
JPH0683640A (en) Interruption response processing system
JPH05204832A (en) Dma bus arbitration system
JPH0991247A (en) Bus arbiter
JPH04215152A (en) Memory write protect controller
JPH05127921A (en) Semiconductor integrated circuit
JPH0317137B2 (en)
JPH01154234A (en) Interruption controller
JPH0724044B2 (en) Computer system with DMA access