JPH0543242U - Interrupt request circuit - Google Patents
Interrupt request circuitInfo
- Publication number
- JPH0543242U JPH0543242U JP9162891U JP9162891U JPH0543242U JP H0543242 U JPH0543242 U JP H0543242U JP 9162891 U JP9162891 U JP 9162891U JP 9162891 U JP9162891 U JP 9162891U JP H0543242 U JPH0543242 U JP H0543242U
- Authority
- JP
- Japan
- Prior art keywords
- interrupt
- signal
- flip
- flop
- factor
- 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
Links
Abstract
(57)【要約】
【目的】 メタステーブルの影響の無い高信頼度で簡単
な回路構成の割込要求回路を提供することを目的とす
る。
【構成】 割込要求入力数に対応して複数個用意された
割込要求を記憶する割込要求フリップフロップと、この
割込要求フリップフロップの出力信号をメインシステム
から指令される割込要因リード信号によりラッチする割
込要因フリップフロップ回路と、この出力信号を上記割
込要因リード信号により、上記メインシステムのデータ
バスへ出力する割込要因出力バッファと、さらに割込要
因フリップフロップ回路の出力信号と割込要因リセット
信号を入力とし対応する上記割込要求フリップフロップ
のリセットを行うANDゲート回路と、上記各割込要求
フリップフロップ出力信号の論理和をとるORゲート回
路と、このORゲート回路出力信号と割込要因リセット
信号とを入力とし上記メインシステムへの割込要求信号
を出力するAND回路とを備える。
(57) [Abstract] [Purpose] It is an object to provide an interrupt request circuit having a high reliability and a simple circuit configuration without the influence of metastable. [Structure] An interrupt request flip-flop for storing a plurality of interrupt requests prepared corresponding to the number of interrupt request inputs, and an interrupt factor read commanded by an output signal of the interrupt request flip-flop from the main system. An interrupt factor flip-flop circuit that is latched by a signal, an interrupt factor output buffer that outputs this output signal to the main system data bus by the interrupt factor read signal, and an output signal of the interrupt factor flip-flop circuit. And an interrupt factor reset signal as an input to reset the corresponding interrupt request flip-flop, an OR gate circuit for ORing the output signals of the interrupt request flip-flops, and the output of this OR gate circuit Signal and an interrupt factor reset signal are input, and an AND request that outputs an interrupt request signal to the above main system And a road.
Description
【0001】[0001]
この考案は、コンピュータ制御システムにおいて、メインシステムへの1個の 割込要求信号に対し複数個の割込要求入力を割り当てる割込要求回路に関するも のである。 The present invention relates to an interrupt request circuit for allocating a plurality of interrupt request inputs to one interrupt request signal to a main system in a computer control system.
【0002】[0002]
図3は例えば特公昭62-46017号に示された従来の割込要求回路を示す図である 。図において1a乃至1nはハイ信号(以下、“H”と略す。)が有意の割込入力信 号、2a乃至2nは割込要求フリップフロップで、この出力は入力端子D1乃至Dnに入 力しロー信号(以下、“L”と略す。)が有意の割込要因リード信号4によりラ ッチし、さらに出力端子Q1乃至Qnよりそのラッチ割込要因を出力する割込要因ト ランスパーレントラッチ回路3に入力されている。 割込要因トランスパーレントラッチ回路3の出力は、割込要因リード信号4を インバータ5によって反転した反転リード信号と共に各リセットNANDゲート 6a〜6nの入力となり、その出力はそれぞれの割込要求フリップフロップ2a〜2nの リセット端子へ入力されている。 7は各割込要求フリップフロップ2a〜2nの出力の論理和をとり、その出力は割 込要因リード信号4とともにANDゲート8に入力されその出力はメインシステ ム(図示せず)への“H”有意の割込要求信号9になっている。 10は割込要因リード信号4により制御され、割込要因トランスパーレントラッ チ回路3の出力を割込要因信号11としてデータバスへ出力する“H”有意の割込 要因出力バッファである。 FIG. 3 is a diagram showing a conventional interrupt request circuit shown in, for example, Japanese Patent Publication No. 62-46017. In the figure, 1a to 1n are interrupt input signals in which a high signal (hereinafter abbreviated as "H") is significant, and 2a to 2n are interrupt request flip-flops, which outputs are input to input terminals D1 to Dn. An interrupt factor transparent latch that latches a low signal (hereinafter abbreviated as "L") with a significant interrupt factor read signal 4 and also outputs the latch interrupt factor from output terminals Q1 to Qn. It is input to the circuit 3. The output of the interrupt factor transparent latch circuit 3 becomes the input of each reset NAND gate 6a to 6n together with the inverted read signal obtained by inverting the interrupt factor read signal 4 by the inverter 5, and its output is the interrupt request flip-flop. Input to the reset terminals of 2a to 2n. 7 takes the logical sum of the outputs of the interrupt request flip-flops 2a to 2n, the output of which is input to the AND gate 8 together with the interrupt factor read signal 4 and the output of which is "H" to the main system (not shown). “Significant interrupt request signal 9 is given. Reference numeral 10 is an "H" significant interrupt factor output buffer which is controlled by the interrupt factor read signal 4 and outputs the output of the interrupt factor transparent latch circuit 3 as an interrupt factor signal 11 to the data bus.
【0003】 次に動作について説明する。 全割込要求フリップフロップ2a〜2nは初期設定時リセットされているものとす る。 まず、割込入力信号1aが“H”状態で有意となると割込要求フリップフロップ 2aに記憶され、その出力Qが“H”状態となる。複数の割込要求フリップフロッ プ2a乃至2nのうち、少なくとも1個の割込要求フリップフロップ、例えば割込要 求フリップフロップ2aの出力Qが“H”状態となると、ORゲート回路7の出力 が“H”状態となる。 この時、割込要因リード信号4が“H”状態で無意であれば即時に、また、割 込要因リード信号4が“L”状態で有意ならば“H”状態の無意になるのを待っ て、図示しないメインシステムの中央処理装置(以下、CPUと略す。)に対す る割込要求信号9を“H”状態で有意とし、割込要因トランスパーレントラッチ 回路3の該当する出力Qを“H”状態で有意とする。このCPUが割込要求信号 9を受け付けて、割込処理を行うために、割込要因リード信号4を“L”状態で 有意にし、割込要因の読み込みを行うと、割込要求信号9は無意となり、割込要 因トランスパーレントラッチ回路3は、それまでに入力された割込要因をラッチ し、そのラッチされた“H”状態で有意の割込要因に対する割込要求フリップ2a 乃至2nをリセットする。 また、ラッチされた割込要因信号11は、割込要因出力バッファ10からデータバ スを介してCPUへ渡される。 そして、割込要因リード信号4が“L”状態で有意中に発生した割込入力信号 1a乃至1nに対応する割込要求信号9は割込要因リード信号4が無意となった時点 で“H”状態となり再び有意となる。一般にCPUの割込要求信号は有意レベル への変化エッジを検出しているのでこの動作によりCPUは割込を受け付ける。 この様にして、複数の割込入力を1本のメインシステムへの割込要求信号9だけ で処理するようにしていた。Next, the operation will be described. It is assumed that all interrupt request flip-flops 2a to 2n are reset at the time of initial setting. First, when the interrupt input signal 1a becomes significant in the "H" state, it is stored in the interrupt request flip-flop 2a, and its output Q becomes the "H" state. When the output Q of at least one interrupt request flip-flop, for example, the interrupt request flip-flop 2a, of the plurality of interrupt request flip-flops 2a to 2n becomes the "H" state, the output of the OR gate circuit 7 becomes " It becomes the H "state. At this time, if the interrupt factor read signal 4 is in the "H" state and is insignificant, wait immediately, and if the interrupt factor read signal 4 is in the "L" state and significant, wait for the "H" state to be insignificant. Then, the interrupt request signal 9 to the central processing unit (hereinafter abbreviated as CPU) of the main system (not shown) is made significant in the “H” state, and the corresponding output Q of the interrupt factor transparent latch circuit 3 is set. It is significant in the "H" state. When this CPU accepts the interrupt request signal 9 and makes the interrupt factor read signal 4 significant in the “L” state to read the interrupt factor, the interrupt request signal 9 is output. As a result, the interrupt factor transparent latch circuit 3 latches the interrupt factor that has been input so far, and interrupt request flips 2a to 2n for significant interrupt factors in the latched "H" state. To reset. Also, the latched interrupt factor signal 11 is passed from the interrupt factor output buffer 10 to the CPU via the data bus. Then, the interrupt request signal 9 corresponding to the interrupt input signals 1a to 1n generated while the interrupt factor read signal 4 is in the "L" state is "H" when the interrupt factor read signal 4 becomes insignificant. It becomes a state and becomes significant again. In general, the CPU's interrupt request signal detects a change edge to a significant level, so this operation causes the CPU to accept the interrupt. In this way, a plurality of interrupt inputs are processed only by the interrupt request signal 9 to one main system.
【0004】[0004]
従来の割込要求回路は以上のように構成されているので、例えば図4に示すよ うに割込入力信号1aが“H”状態で有意になったことによりCPUへの割込要求 信号9が有意になり、CPUが割込要因リード信号4を“L”状態にして割込要 因をリードしにきたタイミングとほぼ同時に別の割込入力信号1bが“H”状態で 有意になったとき割込要因トランスパーレントラッチ3のセットアップ時間が割 込要求フリップフロップ1b出力信号に対して満足されず割込要因トランスパーレ ントラッチ3の出力Q2がメタステーブル状態になる。 一般に、メタステーブル状態は、CPUの読込時間より短い時間で終わるため 、この状態になると出力Q2は短時間不定となり、割込要求フリップフロップ1bは リセットされるがCPUが読み込んだ割り込み要因には割込入力信号1bの要因は 含まれない現象となる。即ち、割込入力信号1bの要因はCPUで処理されないこ とになると言う問題があった。 Since the conventional interrupt request circuit is configured as described above, the interrupt request signal 9 to the CPU is generated because the interrupt input signal 1a becomes significant in the "H" state as shown in FIG. It becomes significant, and when another interrupt input signal 1b becomes significant in the "H" state almost at the same time when the CPU sets the interrupt factor read signal 4 to the "L" state to read the interrupt factor. The setup time of the interrupt factor transparent latch 3 is not satisfied with the output signal of the interrupt request flip-flop 1b, and the output Q2 of the interrupt factor transparent latch 3 becomes a metastable state. In general, the metastable state ends in a time shorter than the CPU read time. Therefore, in this state, the output Q2 becomes indefinite for a short time, and the interrupt request flip-flop 1b is reset, but the interrupt factor read by the CPU is not interrupted. This is a phenomenon that does not include the factor of the input signal 1b. That is, there is a problem that the factor of the interrupt input signal 1b is not processed by the CPU.
【0005】 この考案は上記のような問題を解決するためになされたものであり、従来と同 規模の回路構成で、メタステーブルが発生してもシステム動作には影響を与えな い高信頼度の割込要求回路を提供することを目的とする。The present invention has been made in order to solve the above problems, and has a circuit configuration of the same scale as the conventional one, and has a high reliability that does not affect the system operation even if metastable occurs. It is an object of the present invention to provide an interrupt request circuit.
【0006】[0006]
この考案に係る割込要求回路の一つは割込要求入力数に対応して複数個用意さ れた割込要求を記憶する割込要求フリップフロップの出力信号をメインシステム から指令される割込要因リード信号によりラッチする割込要因フリップフロップ 回路と、この割込要因フリップフロップ回路の出力信号を上記割込要因リード信 号により、上記メインシステムのデータバスへ出力する割込要因出力バッファと 、さらに上記割込要因フリップフロップ回路の出力信号と割込要因リセット信号 を入力とし対応する上記割込要求フリップフロップのリセットを行うANDゲー ト回路と、上記各割込要求フリップフロップ出力信号の論理和をとるORゲート 回路と、このORゲート回路出力信号と上記割込要因リセット信号とを入力とし 、上記メインシステムへの割込要求信号を出力するAND回路とを備えて、割込 要求フリップフロップのリセットをCPUからの割込要因リセット信号により一 括で行う手段を設けたものである。 この考案に係る割込要求回路のもう一つは割込要求入力数に対応して複数個用 意された割込要求を記憶する割込要求フリップフロップの出力信号をメインシス テムから指令される割込要因リード信号によりラッチする割込要因フリップフロ ップ回路と、この割込要因フリップフロップ回路の出力信号を上記割込要因リー ド信号により、上記メインシステムのデータバスへ出力する割込要因出力バッフ ァと、さらに各割込要因毎リセット信号を対応する上記割込要求フリップフロッ プのリセット信号とし、さらに、上記各割込要因フリップフロップ出力信号の論 理和をとるORゲート回路と、このORゲート回路出力信号と多重割込検出信号 とを入力とし上記メインシステムへの割込要求信号を出力するAND回路とを備 え、割込要求フリップフロップのリセットをCPUからの各割込要因毎のリセッ ト信号により個別に行う手段と多重割込を検出する手段を設けたものである。 One of the interrupt request circuits according to the present invention is an interrupt request command from the main system that outputs an output signal of an interrupt request flip-flop that stores a plurality of interrupt requests prepared corresponding to the number of interrupt request inputs. An interrupt factor flip-flop circuit that latches with a factor read signal, and an interrupt factor output buffer that outputs the output signal of this interrupt factor flip-flop circuit to the main system data bus by the interrupt factor read signal. Further, an AND gate circuit that inputs the output signal of the interrupt factor flip-flop circuit and the interrupt factor reset signal and resets the corresponding interrupt request flip-flop, and the logical sum of the interrupt request flip-flop output signals. Of the OR gate circuit, and the output signal of the OR gate circuit and the reset signal of the interrupt factor as input, An AND circuit for outputting an interrupt request signal to Temu, is provided with a means for performing in Bulk the interrupt factor reset signal to reset the interrupt request flip-flop from the CPU. Another of the interrupt request circuits according to the present invention is an interrupt request flip-flop that stores a plurality of interrupt requests corresponding to the number of interrupt request inputs, and outputs an output signal of an interrupt request flip-flop commanded from the main system. An interrupt factor flip-flop circuit that is latched by an interrupt factor read signal, and an interrupt factor output buffer that outputs the output signal of this interrupt factor flip-flop circuit to the main system data bus by the above interrupt factor read signal. And an OR gate circuit that takes the logical sum of each interrupt factor flip-flop output signal as a reset signal of the corresponding interrupt request flip-flop, and the OR gate circuit. An AND circuit that receives the circuit output signal and the multiple interrupt detection signal and outputs an interrupt request signal to the main system is provided. It is provided with a means for detecting a unit and multiple interrupts be made individually by reset signal for each interrupt factor of the reset flop from the CPU.
【0007】[0007]
この考案における割込要求回路は、割込要求フリップフロップのリセットを割 込要因リード信号とは独立の割込要因リセット信号により行われ、割込要因フリ ップフロップのメタステーブルが発生しても割込要因が消えること無く、次の割 込要求でメタステーブルの原因となった割込入力も確実にCPUに伝わる。 The interrupt request circuit according to the present invention resets the interrupt request flip-flop by an interrupt factor reset signal that is independent of the interrupt factor read signal, and even if the metastable of the interrupt factor flip-flop occurs. The factor does not disappear, and the interrupt input that caused the metastable at the next interrupt request is surely transmitted to the CPU.
【0008】[0008]
実施例1. 以下、この考案の実施例1を図1に基づいて説明する。なお、図1において、 図3と同一部分には同一符号を付してあり、20は割込要求フリップフロップ2a乃 至2nの各出力信号を入力端子D1乃至Dnに入力し割込要因リード信号4をインバー タ回路21で反転した信号でラッチし、さらに出力端子Q1乃至Qnよりそのラッチし た割込要因を出力する割込要因フリップフロップである。 22はORゲート回路7の出力と、“L”状態にて有意となる割込要因リセット 信号23を入力とし、割込要求信号9を出力する割込要求ANDゲートである。 24a乃至24nは、割込要因フリップフロップ20の出力Q1乃至Qnと、“L”状態 にて有意となる割込要因リセット信号23をインバータ回路25で反転した信号を入 力とし、その出力を割込要求フリップフロップ2a〜2nのリセット信号とするNA NDゲート回路である。 Example 1. A first embodiment of the present invention will be described below with reference to FIG. In FIG. 1, the same parts as those in FIG. 3 are designated by the same reference numerals, and reference numeral 20 designates the output signals of the interrupt request flip-flops 2a to 2n to the input terminals D1 to Dn and the interrupt factor read signal. 4 is an interrupt factor flip-flop that latches 4 with an inverted signal in the inverter circuit 21 and outputs the latched interrupt factor from the output terminals Q1 to Qn. Reference numeral 22 is an interrupt request AND gate which receives the output of the OR gate circuit 7 and the interrupt factor reset signal 23 which becomes significant in the "L" state and outputs the interrupt request signal 9. The outputs 24a to 24n receive the outputs Q1 to Qn of the interrupt factor flip-flop 20 and a signal obtained by inverting the interrupt factor reset signal 23 which is significant in the "L" state by the inverter circuit 25, and interrupt its output. It is a NAND gate circuit which is used as a reset signal for the input request flip-flops 2a to 2n.
【0009】 次に動作について説明する。 まず、全割込要求フリップフロップ2a〜2nは初期設定時リセットされているも のとする。 まず、割込入力信号1aが“H”状態で有意となると割込要求フリップフロップ 2aに記憶され、その出力Qが“H”状態となる。複数の割込要求フリップフロッ プ2a乃至2nのうち、少なくとも1個の割込要求フリップフロップ、例えば割込要 求フリップフロップ2aの出力Qが“H”状態となると、ORゲート回路7の出力 が“H”状態となる。 この時、割込要因リセット信号23が“H”状態で無意であれば即時に、また、 割込要因リセット信号23が“L”状態で有意ならば“H”状態の無意になるのを 待って、図示しないCPUに対する割込要求信号9を“H”状態で有意とする。 CPUがこの割込要求信号9を受け付けて、割込処理を行うために、割込要因リ ード信号4を“L”状態で有意にすると、割込要因リード信号4の立ち下がりで 、割込要因フリップフロップ回路20は割込要求フリップフロップ2a乃至2nの各出 力信号をラッチし該当する出力Qを“H”状態で有意とする。また、ラッチされ た割込要因信号11は、割込要因出力バッファ10からデータバスを介してCPUへ 渡される。 CPUは読み込んだ割込要因に対する処理を完了すると割込要因リセット信号 23を“L”状態の有意にし、CPUが読み込んだとき有意であった割込要因に対 応する割込要求フリップフロップ2a乃至2nのみがリセットされる。 そして、CPUが割込要因リード信号4を“L”状態で有意にし割込処理完了 により割込要因リセット信号23を“L”状態の有意にした間に新たに発生した割 込要因があれば割込要因リセット信号23が無意になった時点で割込要求信号9は 再び“H”状態となり有意となる(即ち、有意レベルへ変化するエッジが発生す る)。Next, the operation will be described. First, it is assumed that all the interrupt request flip-flops 2a to 2n are reset at the initial setting. First, when the interrupt input signal 1a becomes significant in the "H" state, it is stored in the interrupt request flip-flop 2a, and its output Q becomes the "H" state. When the output Q of at least one interrupt request flip-flop, for example, the interrupt request flip-flop 2a, of the plurality of interrupt request flip-flops 2a to 2n becomes the "H" state, the output of the OR gate circuit 7 becomes " It becomes the H "state. At this time, if the interrupt factor reset signal 23 is in the "H" state and it is insignificant, immediately, and if the interrupt factor reset signal 23 is in the "L" state and significant, wait for the "H" state to be insignificant. Then, the interrupt request signal 9 to the CPU (not shown) is made significant in the "H" state. When the CPU accepts the interrupt request signal 9 and makes the interrupt factor read signal 4 significant in the “L” state in order to perform the interrupt process, the interrupt factor read signal 4 falls, and the interrupt factor read signal 4 falls. The interrupt factor flip-flop circuit 20 latches each output signal of the interrupt request flip-flops 2a to 2n and makes the corresponding output Q significant in the "H" state. Further, the latched interrupt factor signal 11 is passed from the interrupt factor output buffer 10 to the CPU via the data bus. When the CPU completes the processing for the read interrupt factor, it makes the interrupt factor reset signal 23 significant in the "L" state, and the interrupt request flip-flops 2a to 2a corresponding to the significant interrupt factor when the CPU read. Only 2n are reset. If the CPU makes the interrupt factor read signal 4 significant in the “L” state and the interrupt factor reset signal 23 is made significant in the “L” state due to the completion of the interrupt processing, there is an interrupt factor newly generated. When the interrupt factor reset signal 23 becomes insignificant, the interrupt request signal 9 becomes "H" state again and becomes significant (that is, an edge changing to a significant level occurs).
【0010】 実施例2. なお、上記実施例1では、割込要因リセット信号23によりCPUが割込要因を 読み込んだとき有意であった割込要因に対応する割込要求フリップフロップ2a〜 2nを一括でリセットする場合について述べたが、図2に示すように、各割込要因 別の“L”状態で有意となる割込要因リセット信号26a〜26nにより、CPUは 割込処理した要因に対する割込要因リセット信号26a〜26nのみ“L”状態にし 割込要求フリップフロップ2a〜2nを個別にリセットし、さらに、“L”状態にて 有意となる多重割込検出信号27と各割込要求フリップフロップ2a〜2nのQ信号の 論理和をとるORゲート回路7の出力信号を入力とし、出力をCPUへの割込要 求信号9としたANDゲート回路28を備え、CPUが割込要求フリップフロップ 2a〜2nを個別にリセットした後、CPUが割込処理中に有意になった要因やその 割込処理で処理しなかった割込要因での割込要求をCPUに対し発生させるため 、多重割込検出信号27を“L”状態の有意とし、割込処理中に有意になった要因 やその割込処理で処理しなかった割込要因がある場合、割込要求信号9は一旦、 多重割込検出信号27の作用により“L”状態の無意になり多重割込検出信号27が “H”状態の無意に戻ることにより、再び“H”状態の有意に戻る。即ち、CP Uに対する割込要求にエッジが発生する。 なお、図2において図3と同一部分には同一符号を付している。 また、実施例2では割込要因をラッチする回路をフリップフロップで構成した が、トランスパーレントラッチで構成し、インバータ回路21を除いた回路にして も実施例2と同様な効果を奏する。Example 2. In the first embodiment described above, the interrupt request flip-flops 2a to 2n corresponding to the interrupt factors that were significant when the CPU read the interrupt factors by the interrupt factor reset signal 23 are collectively reset. However, as shown in FIG. 2, by the interrupt factor reset signals 26a to 26n which become significant in the "L" state for each interrupt factor, the CPU causes the interrupt factor reset signals 26a to 26n for the interrupt factor. Only in the "L" state, the interrupt request flip-flops 2a to 2n are individually reset, and the multiple interrupt detection signal 27 and the Q signal of each of the interrupt request flip-flops 2a to 2n are significant in the "L" state. The AND gate circuit 28 which receives the output signal of the OR gate circuit 7 which takes the logical sum of the above and uses the output as the interrupt request signal 9 to the CPU, and the CPU individually resets the interrupt request flip-flops 2a to 2n. Shi After that, the multiple interrupt detection signal 27 is set to "L" in order to generate an interrupt request to the CPU due to a factor that becomes significant during the interrupt process or an interrupt factor that has not been processed by the interrupt process. If the status is significant and there is a factor that has become significant during the interrupt process or an interrupt factor that has not been processed in the interrupt process, the interrupt request signal 9 is temporarily changed by the action of the multiple interrupt detection signal 27. When the "L" state becomes insignificant and the multiple interrupt detection signal 27 returns to the "H" state insignificantly, the "H" state becomes significant again. That is, an edge occurs in the interrupt request to the CPU. In FIG. 2, the same parts as those in FIG. 3 are designated by the same reference numerals. Further, in the second embodiment, the circuit for latching the interrupt factor is constituted by the flip-flop, but even if the circuit is constituted by the transparent latch and the inverter circuit 21 is removed, the same effect as in the second embodiment can be obtained.
【0011】[0011]
以上のように、この考案によれば、割込要因リードした後、メタステーブルが 収まった時間を十分経過した後、割込要因リセットを行うようにしたので、割込 要因リードの開始時に割込要因フリップフロップ回路でメタステーブルが発生し ても、CPUが認識しない割込要因に対して割込要求フリップフロップだけがリ セットされるようなことはなく、高信頼度の割込要求回路が得られる。 また、特許請求第2項の考案によれば、上記効果の他、割込要因リセットと多 重割込検出の手段を分けたので、割込要因リード時に有意になっていた割込要因 全てを1回の割込処理で行う必要はなく、1回の割込では1つの要因の処理のみ 行い、処理の最後に多重割込検出を行うことにより、全ての割込要因に対する処 理が終わるまで繰り返しCPUに対する割込が自動的に発生するようになるので 、割込処理プログラムの構成が簡単になる効果がある。 As described above, according to the present invention, after the interrupt factor read, the interrupt factor reset is performed after the metastable time has sufficiently set, so that the interrupt factor read is started. Even if a metastable occurs in the factor flip-flop circuit, only the interrupt request flip-flop is not reset for the interrupt factor that the CPU does not recognize, and a highly reliable interrupt request circuit can be obtained. Be done. According to the invention of claim 2, in addition to the above effect, the means for resetting the interrupt factor and the method for detecting multiple interrupts are separated, so that all the interrupt factors that are significant when the interrupt factor is read. There is no need to perform it in one interrupt process, only one cause is processed in one interrupt, and multiple interrupt detection is performed at the end of the process until the processing for all interrupt factors is completed. Since the interrupts to the CPU are automatically generated repeatedly, the structure of the interrupt processing program can be simplified.
【図1】この考案の実施例1の割込要求回路を示す回路
図。FIG. 1 is a circuit diagram showing an interrupt request circuit according to a first embodiment of the present invention.
【図2】この考案の実施例2の割込要求回路を示す回路
図。FIG. 2 is a circuit diagram showing an interrupt request circuit according to a second embodiment of the present invention.
【図3】従来の割込要求回路を示す回路図。FIG. 3 is a circuit diagram showing a conventional interrupt request circuit.
【図4】従来の割込要求回路の問題点を示すタイムチャ
ート。FIG. 4 is a time chart showing a problem of a conventional interrupt request circuit.
1a〜1n 割込要求入力信号 2a〜2n 割込要求フリップフロップ 4 割込要因リード信号 7 ORゲート回路 9 割込要求信号 10 割込要因出力バッファ 11 割込要因信号 20 割込要因フリップフロップ 24 リセットNANDゲート回路 26a〜26n 割込要因毎リセット信号 27 多重割込検出信号 28 多重割込検出用ANDゲート回路 1a to 1n Interrupt request input signal 2a to 2n Interrupt request flip-flop 4 Interrupt factor read signal 7 OR gate circuit 9 Interrupt request signal 10 Interrupt factor output buffer 11 Interrupt factor signal 20 Interrupt factor flip-flop 24 Reset NAND gate circuits 26a to 26n Reset signal for each interrupt factor 27 Multiple interrupt detection signal 28 AND gate circuit for multiple interrupt detection
Claims (2)
れた割込要求を記憶する割込要求フリップフロップと、
この割込要求フリップフロップの出力信号をメインシス
テムから指令される割込要因リード信号によりラッチす
る割込要因フリップフロップ回路と、この割込要因フリ
ップフロップ回路の出力信号を上記割込要因リード信号
により、上記メインシステムのデータバスへ出力する割
込要因出力バッファと、さらに上記割込要因フリップフ
ロップ回路の出力信号と割込要因リセット信号を入力と
し対応する上記割込要求フリップフロップのリセットを
行うANDゲート回路と、上記各割込要求フリップフロ
ップ出力信号の論理和をとるORゲート回路と、このO
Rゲート回路出力信号と上記割込要因リセット信号とを
入力とし、上記メインシステムへの割込要求信号を出力
するAND回路とを備えてなる割込要求回路。1. An interrupt request flip-flop for storing a plurality of interrupt requests prepared corresponding to the number of interrupt request inputs.
The interrupt factor flip-flop circuit that latches the output signal of this interrupt request flip-flop by the interrupt factor read signal instructed from the main system, and the output signal of this interrupt factor flip-flop circuit by the above interrupt factor read signal. An interrupt factor output buffer which outputs to the data bus of the main system, and an AND which inputs the output signal of the interrupt factor flip-flop circuit and the interrupt factor reset signal and resets the corresponding interrupt request flip-flop A gate circuit, an OR gate circuit for ORing the output signals of the interrupt request flip-flops, and
An interrupt request circuit comprising an AND circuit which receives an R gate circuit output signal and the interrupt factor reset signal and outputs an interrupt request signal to the main system.
れた割込要求を記憶する割込要求フリップフロップと、
この割込要求フリップフロップの出力信号をメインシス
テムから指令される割込要因リード信号によりラッチす
る割込要因フリップフロップ回路と、この割込要因フリ
ップフロップ回路の出力信号を上記割込要因リード信号
により、上記メインシステムのデータバスへ出力する割
込要因出力バッファと、さらに各割込要因毎リセット信
号を対応する上記割込要求フリップフロップのリセット
信号とし、さらに、上記各割込要因フリップフロップ出
力信号の論理和をとるORゲート回路と、このORゲー
ト回路出力信号と多重割込検出信号とを入力とし上記メ
インシステムへの割込要求信号を出力するAND回路と
を備えてなる割込要求回路。2. An interrupt request flip-flop for storing a plurality of interrupt requests prepared corresponding to the number of interrupt request inputs,
The interrupt factor flip-flop circuit that latches the output signal of this interrupt request flip-flop by the interrupt factor read signal instructed from the main system, and the output signal of this interrupt factor flip-flop circuit by the above interrupt factor read signal. , An interrupt factor output buffer for outputting to the data bus of the main system, and a reset signal for each interrupt factor as a reset signal of the corresponding interrupt request flip-flop, and further, each interrupt factor flip-flop output signal An interrupt request circuit comprising an OR gate circuit that takes the logical sum of the above and an AND circuit that receives the output signal of the OR gate circuit and the multiple interrupt detection signal and outputs an interrupt request signal to the main system.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9162891U JPH0543242U (en) | 1991-11-08 | 1991-11-08 | Interrupt request circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9162891U JPH0543242U (en) | 1991-11-08 | 1991-11-08 | Interrupt request circuit |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0543242U true JPH0543242U (en) | 1993-06-11 |
Family
ID=14031821
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP9162891U Pending JPH0543242U (en) | 1991-11-08 | 1991-11-08 | Interrupt request circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0543242U (en) |
-
1991
- 1991-11-08 JP JP9162891U patent/JPH0543242U/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4271466A (en) | Direct memory access control system with byte/word control of data bus | |
| EP0329776A1 (en) | Method and apparatus for interconnecting busses in a multibus computer system | |
| JPH05274259A (en) | Serial input interface circuit | |
| JPH07282576A (en) | FIFO module | |
| JPS6235949A (en) | memory device | |
| EP0282248B1 (en) | Block access system using cache memory | |
| EP0462622B1 (en) | Microprocessor capable of ensuring flexible recovery time for I/O device | |
| EP0417748A2 (en) | Interrupt control circuit for use in 1-chip microcomputer | |
| EP0376003A2 (en) | Multiprocessing system with interprocessor communications facility | |
| JPH06274462A (en) | Asynchronous writing system for shared memory | |
| JPS6246017B2 (en) | ||
| JPS6242301B2 (en) | ||
| JPH0743690B2 (en) | Access priority control system | |
| JPH0330899B2 (en) | ||
| JPS63228856A (en) | Communication controller | |
| JP2611087B2 (en) | Data transfer method | |
| KR920009450B1 (en) | Bus cycle controller of computer | |
| JP2581041B2 (en) | Data processing device | |
| JP2638014B2 (en) | Signal detection circuit | |
| JPS6162158A (en) | Data delivering and receiving system | |
| JPH0567035A (en) | Data alignment method in DMA transfer | |
| KR890002720B1 (en) | Interrupt Acknowledgment Circuit of VME Bus System | |
| US5123093A (en) | Operational processor for performing a memory access and an operational process in parallel | |
| JP3043786B2 (en) | Drawing circuit | |
| CN88100357A (en) | Operation processor |