JPH0619719B2 - Interrupt circuit - Google Patents

Interrupt circuit

Info

Publication number
JPH0619719B2
JPH0619719B2 JP62009255A JP925587A JPH0619719B2 JP H0619719 B2 JPH0619719 B2 JP H0619719B2 JP 62009255 A JP62009255 A JP 62009255A JP 925587 A JP925587 A JP 925587A JP H0619719 B2 JPH0619719 B2 JP H0619719B2
Authority
JP
Japan
Prior art keywords
flip
interrupt
encoder
reference clock
latch
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.)
Expired - Lifetime
Application number
JP62009255A
Other languages
Japanese (ja)
Other versions
JPS63177224A (en
Inventor
正己 ▲榊▼原
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP62009255A priority Critical patent/JPH0619719B2/en
Publication of JPS63177224A publication Critical patent/JPS63177224A/en
Publication of JPH0619719B2 publication Critical patent/JPH0619719B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/24Handling requests for interconnection or transfer for access to input/output bus using interrupt

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、マイクロプロセッサなどに割込信号を供給
する割込回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an interrupt circuit for supplying an interrupt signal to a microprocessor or the like.

〔従来の技術〕[Conventional technology]

第3図は従来の割込回路の一例を示し、図において、(1
0)〜(14)及び(31)はフリップフロップ(以下、F/Fと称
す)、(20)はプライオリティー付エンコーダ、(30)はラ
ッチ素子、(I0)〜(I4)は割込要因、(40)は基準クロック
CKを示し、該構成を備える割込回路は次のようにして動
作する。
FIG. 3 shows an example of a conventional interrupt circuit.
0) to (14) and (31) are flip-flops (hereinafter referred to as F / F), (20) is an encoder with priority, (30) is a latch element, and (I 0 ) to (I 4 ) are Factor, (40) is the reference clock
CK is shown, and the interrupt circuit having the configuration operates as follows.

図示構成の動作について第4図を参照して説明する。割
込要因(I0)〜(I4)のなかで、例えば割込要因(I0)がアク
ティブとなると、F/F(10)が動作し、Lowアクティブの信
号が、上記F/F(10)より出力され、プライオリティー付
エンコーダ(20)に入力される。
The operation of the illustrated configuration will be described with reference to FIG. Of the interrupt factors (I 0 ) to (I 4 ), for example, when the interrupt factor (I 0 ) becomes active, the F / F (10) operates and the Low active signal changes to the above F / F ( It is output from 10) and input to the encoder with priority (20).

上記プライオリティー付エンコーダ(20)は、割込が発生
したことを示す信号を出力すると同時にどの割込要因か
を示すエンコード結果を、F/F(31)とラッチ素子(30)に
出力する。しかして、上記F/F(31)と上記ラッチ素子(3
0)は、基準クロック(40)に基いて割込発生信号とエンコ
ード結果をラッチし、システム内の例えばマイクロプロ
セッサ(図示省略)などへの情報提供を可能にする。
The encoder with priority (20) outputs a signal indicating that an interrupt has occurred and, at the same time, outputs an encoding result indicating which interrupt factor to the F / F (31) and the latch element (30). Therefore, the F / F (31) and the latch element (3
0) latches the interrupt generation signal and the encoding result based on the reference clock (40), and enables information to be provided to, for example, a microprocessor (not shown) in the system.

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

従来の割込回路は、以上のように構成されているので、
割込要因(I0)〜(I4)が基準クロック(40)に非同期の場
合、例えば第4図に示すように基準クロック(40)が立上
がる寸前に割込要因(I0)が発生した場合には過渡状態の
エンコード結果をラッチ素子(30)がラッチすることによ
り、誤動作の要因となっていた。すなわち、割込要因(I
0)によりエンコード結果(CBA)=(001) をF/F(30)にラッ
チするのに、結果としては(CBA)=(001) をラッチし割込
要因(I2)が発生したと見做すことがあり、不具合とな
る。
Since the conventional interrupt circuit is configured as above,
When the interrupt factors (I 0 ) to (I 4 ) are asynchronous with the reference clock (40), the interrupt factor (I 0 ) occurs just before the reference clock (40) rises, as shown in FIG. 4, for example. In that case, the latch element (30) latches the encoding result in the transient state, which causes a malfunction. That is, the interrupt factor (I
( 0 ) latches the encoding result (CBA) = (001) in F / F (30), but as a result, latches (CBA) = (001) and it is considered that the interrupt factor (I 2 ) occurred. This may cause a malfunction.

この発明は、上記のような問題点を解消するためになさ
れたもので、割込要因が基準クロックと非同期で入力さ
れたとしても過渡状態を割込情報として誤出力すること
のない割込回路を提供することを目的とする。
The present invention has been made to solve the above problems, and an interrupt circuit that does not erroneously output a transient state as interrupt information even if an interrupt factor is input asynchronously with a reference clock. The purpose is to provide.

〔問題点を解決するための手段〕[Means for solving problems]

この発明に係る割込回路は、第1のフリップフロップと
エンコーダとの間に、基準クロックを反転するノット素
子と、その反転信号に基いて第1のフリップフロップの
ラッチ出力をそれぞれラッチして上記エンコーダに出力
する第2のフリップフロップとでなり、上記エンコーダ
の出力とラッチ素子のラッチ動作とを同期化する同期化
手段を設けたものである。
In the interrupt circuit according to the present invention, between the first flip-flop and the encoder, a knot element that inverts the reference clock and the latch output of the first flip-flop based on the inverted signal are latched, and The second flip-flop outputs to the encoder, and the synchronization means for synchronizing the output of the encoder and the latch operation of the latch element is provided.

〔作用〕[Action]

この発明における同期化手段によって、基準クロックを
ノット素子で反転した信号が第2のフリップフロップに
入力され、第1のフリップフロップからの割込要因は基
準クロックの立ち下がりでラッチされて、基準クロック
に同期したタイミングでエンコーダに入力される。
By the synchronizing means according to the present invention, the signal obtained by inverting the reference clock by the knot element is input to the second flip-flop, the interrupt factor from the first flip-flop is latched at the falling edge of the reference clock, and the reference clock is dropped. Input to the encoder at the timing synchronized with.

〔実施例〕〔Example〕

第1図は従来例に対応して示すこの発明の一実施例によ
る回路図で、この第1図において、第2図と同じ符号が
付してあるものは同一あるいは同様な機能を有している
ものであり、しかして(50)〜(54)は第2の複数のフリッ
プフロップ、(60)はノット表示を示し、基準クロックCK
(40)をノット素子(60)を介して反転した信号をフリップ
フロップ(50)〜(54)のクロックとして与える構成とし、
その結果、プライオリティー付エンコーダ(20)とラッチ
素子(30)とを同期化する同期化手段を形成するようにな
されている。
FIG. 1 is a circuit diagram according to an embodiment of the present invention shown corresponding to a conventional example. In FIG. 1, the components designated by the same reference numerals as those in FIG. 2 have the same or similar functions. Therefore, (50) to (54) indicate the second plurality of flip-flops, (60) indicates the knot display, and the reference clock CK
(40) is a configuration obtained by inverting the signal via the knot element (60) as the clock of the flip-flops (50) to (54),
As a result, a synchronization means for synchronizing the encoder with priority (20) and the latch element (30) is formed.

次に動作について第2図のタイミングチャートを参照し
て説明する。割込要因(I0)〜(I4)のなかで、例えば割込
要因(I0)がアクティブとなると、F/F(10)が動作し、Low
アクティブの信号が出力され、次段のF/F(50)のデータ
入力端に入力される。
Next, the operation will be described with reference to the timing chart of FIG. Of the interrupt factors (I 0 ) to (I 4 ), for example, when the interrupt factor (I 0 ) becomes active, the F / F (10) operates and goes low.
An active signal is output and input to the data input terminal of the F / F (50) at the next stage.

しかして、上記F/F(50)には、基準クロック(40)をノッ
ト素子(60)で反転した信号がCK端子に入力されているた
め、上記割込要因(I0)は基準クロック(40)の立下がりで
ラッチされることになり、そのラッチ出力はプライオリ
ティー付エンコーダ(20)に入力される。
However, since a signal obtained by inverting the reference clock (40) with the knot element (60) is input to the CK terminal of the F / F (50), the interrupt factor (I 0 ) is the reference clock ( It will be latched at the falling edge of 40), and the latch output is input to the encoder with priority (20).

上記プライオリティー付エンコーダ(20)は割込が発生し
たことを示す信号を出力すると同時に、どの割込要因か
を示すエンコード結果を出力し、各々F/F(31)とラッチ
素子(30)に入力する。上記F/F(31)とラッチ素子(30)
は、基準クロック(40)で割込発生信号とエンコード結果
をラッチし、システム内の例えばマイクロプロセッサな
ど(図示省略)への情報提供を可能とする。すなわち、
エンコーダ(20)の出力が変化してからF/F(30)がそのデ
ータをラッチするのに充分時間がかるため従来例のよう
な不具合は生じない。ここで上記基準クロック(40)は50
%duty の信号を仮定しており、1/2×(基準クロックサ
イクル)の時間内で上記エンコード結果が充分に安定す
るように設定されている。また、その時間 Tは、エンコ
ーダ(20)の遅延時間Td、F/F(30)のセットアップ時間Ts
に対して T>Td+Tsを満たせば、F/F(50)〜(54)へのクロ
ック信号は基準クロックCK(40)の反転信号でなくともよ
い。
The encoder with priority (20) outputs a signal indicating that an interrupt has occurred, and at the same time outputs an encoding result indicating which interrupt factor has occurred, and outputs it to the F / F (31) and the latch element (30) respectively. input. Above F / F (31) and latch element (30)
Latches the interrupt generation signal and the encoding result at the reference clock (40), and makes it possible to provide information to, for example, a microprocessor (not shown) in the system. That is,
Since there is sufficient time for the F / F (30) to latch the data after the output of the encoder (20) changes, the problem as in the conventional example does not occur. Where the reference clock (40) is 50
The signal of% duty is assumed, and the encoding result is set to be sufficiently stable within the time of 1/2 × (reference clock cycle). Also, the time T is the delay time Td of the encoder (20) and the setup time Ts of the F / F (30).
On the other hand, if T> Td + Ts is satisfied, the clock signal to the F / Fs (50) to (54) does not have to be the inverted signal of the reference clock CK (40).

なお、この実施例では、F/F(50)〜(54)を個別のF/F で
構成して説明したが、複数個内蔵の記憶素子で構成して
も同様の効果があるのは言うまでもない。また、上記F/
F(50)〜(54)のCK入力を基準クロック(40)の反転信号と
して説明したが、F/F(50)〜(54)のCK入力が立上がって
からラッチ素子(30)のCK入力(基準クロック)の立上が
りまでの時間内で、エンコード結果が充分に安定するな
ら基準クロックの立下がり以外の任意のクロックとして
も同様の効果があるのは言うまでもない。また、この発
明は割込要因を5種類として説明したがその以上あるい
はそれ以下(2個以上)でも同様の効果があるのは言う
までもない。
In this embodiment, the F / Fs (50) to (54) are described as being configured by individual F / Fs, but it goes without saying that the same effect can be obtained by configuring a plurality of built-in storage elements. Yes. Also, above F /
The CK input of F (50) to (54) was explained as the inverted signal of the reference clock (40), but the CK input of F / F (50) to (54) rises after the CK input of F / F (50) to (54) rises. Needless to say, the same effect can be obtained by using any clock other than the fall of the reference clock as long as the encoding result is sufficiently stable within the time until the rise of the input (reference clock). Further, although the present invention has been described with five types of interrupt factors, it is needless to say that the same effect can be obtained with more or less (two or more) factors.

〔発明の効果〕〔The invention's effect〕

以上のようにこの発明によれば、第1のフリップフロッ
プとエンコーダとの間に、基準クロックを反転するノッ
ト素子と、その反転信号に基いて第1のフリップフロッ
プのラッチ出力をそれぞれラッチして上記エンコーダに
出力する第2のフリップフロップとでなる同期化手段を
設けて、第1のフリップフロップからの割込要因を基準
クロックの立ち下がりでラッチして、基準クロックに同
期したタイミングでエンコーダに入力しているため、遅
延手段等を設けることなく基準クロックに同期したタイ
ミングで割込要因をエンコーダに出力でき、従って、第
2のフリップフロップのクロック入力が立ち上がってか
らラッチ素子のクロック入力の立ち上がりまでの時間内
にエンコード結果を安定させることができ、安価で精度
の高い割込回路が得られるという効果を奏する。
As described above, according to the present invention, the knot element that inverts the reference clock and the latch output of the first flip-flop based on the inverted signal are latched between the first flip-flop and the encoder. A synchronizing means including a second flip-flop for outputting to the encoder is provided, and an interrupt factor from the first flip-flop is latched at the falling edge of the reference clock, and the encoder is synchronized with the reference clock at a timing. Since the input is made, the interrupt factor can be output to the encoder at the timing synchronized with the reference clock without providing delay means or the like. Therefore, after the clock input of the second flip-flop rises, the clock input of the latch element rises. It is possible to stabilize the encoding result within the time until An effect that is.

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

第1図はこの発明の一実施例による構成図、第2図は第
1図の各部タイムチャート、第3図は従来例の構成図、
第4図は第3図の各部タイムチャートである。 図において、 (10)〜(14)はフリップフロップ、 (20)はプライオリティー付エンコーダ、 (30)はラッチ素子、 (31)はフリップフロップ、 (40)は基準クロック、 (50)〜(51)はフリップフロップ、 (I0)〜(I4)は割込要因、 (60)はノット素子である。 なお、各図中、同一符号は同一又は相当部分を示す。
FIG. 1 is a configuration diagram according to an embodiment of the present invention, FIG. 2 is a time chart of each part of FIG. 1, FIG. 3 is a configuration diagram of a conventional example,
FIG. 4 is a time chart of each part of FIG. In the figure, (10) to (14) are flip-flops, (20) is an encoder with priority, (30) is a latch element, (31) is a flip-flop, (40) is a reference clock, and (50) to (51 ) Is a flip-flop, (I 0 ) to (I 4 ) are interrupt factors, and (60) is a knot element. In each figure, the same reference numerals indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】複数の割込要因をそれぞれラッチする第1
のフリップフロップと、これらフリップフロップのラッ
チ出力に基いて割込発生信号と上記複数の割込要因のう
ちのいずれかの割込要因かを示すエンコード結果を出力
するプライオリティー付エンコーダと、基準クロックに
基いて上記割込発生信号と上記エンコード結果をラッチ
して出力するラッチ素子とを備えた割込回路において、
上記第1のフリップフロップと上記エンコーダとの間
に、上記基準クロックを反転するノット素子と、その反
転信号に基いて第1のフリップフロップのラッチ出力を
それぞれラッチして上記エンコーダに出力する第2のフ
リップフロップとでなり、上記エンコーダの出力とラッ
チ素子のラッチ動作とを同期化する同期化手段を設けた
ことを特徴とする割込回路。
1. A first latch for each of a plurality of interrupt factors.
Flip-flops, an encoder with priority that outputs an interrupt generation signal based on the latch outputs of these flip-flops, and an encoding result that indicates one of the above-mentioned interrupt factors, and a reference clock. In the interrupt circuit provided with a latch element that latches and outputs the interrupt generation signal and the encoding result based on
A knot element that inverts the reference clock between the first flip-flop and the encoder, and a second flip-flop that latches the latch output of the first flip-flop based on the inverted signal and outputs the latched output to the encoder. An interrupt circuit comprising: a flip-flop and a synchronization means for synchronizing the output of the encoder and the latch operation of the latch element.
JP62009255A 1987-01-19 1987-01-19 Interrupt circuit Expired - Lifetime JPH0619719B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62009255A JPH0619719B2 (en) 1987-01-19 1987-01-19 Interrupt circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62009255A JPH0619719B2 (en) 1987-01-19 1987-01-19 Interrupt circuit

Publications (2)

Publication Number Publication Date
JPS63177224A JPS63177224A (en) 1988-07-21
JPH0619719B2 true JPH0619719B2 (en) 1994-03-16

Family

ID=11715309

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62009255A Expired - Lifetime JPH0619719B2 (en) 1987-01-19 1987-01-19 Interrupt circuit

Country Status (1)

Country Link
JP (1) JPH0619719B2 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5217708B2 (en) * 1971-04-14 1977-05-17
JPS52104831A (en) * 1976-02-28 1977-09-02 Shimadzu Corp Offering multiplex device with preferential level
JPS6046749B2 (en) * 1977-04-22 1985-10-17 株式会社日立製作所 Interrupt circuit to computer
JPS5672744A (en) * 1979-11-19 1981-06-17 Nec Corp Interruption control circuit
JPS5831429A (en) * 1981-08-19 1983-02-24 Fujitsu Ltd Clock pulse extracting circuit
JPS6027059A (en) * 1983-07-22 1985-02-12 Matsushita Electric Ind Co Ltd Port circuit

Also Published As

Publication number Publication date
JPS63177224A (en) 1988-07-21

Similar Documents

Publication Publication Date Title
KR900014970A (en) Synchronous circuit
US6535048B1 (en) Secure asynchronous clock multiplexer
JPH0255970B2 (en)
JPH0619719B2 (en) Interrupt circuit
KR100223026B1 (en) Synchronizing circuit
JPS6316711A (en) Timing device
JP2000163155A (en) Data processing circuit
JP2528965B2 (en) Clock phase control circuit
JP2693798B2 (en) Control signal generation circuit
JPH02256321A (en) Asynchronous counter
JPH02203611A (en) Flip-flop circuit
JPH06101673B2 (en) Flip-flop circuit
JP2548784B2 (en) Periodic signal generator
JP2903548B2 (en) Logic circuit diagnostic system
KR940003771Y1 (en) Glitch protect circuit
JPH0690657B2 (en) Clock switching circuit
JPS6359212A (en) Latch circuit
JP2543108B2 (en) Synchronous pulse generator
KR880000912Y1 (en) A synchronous pulse signal selecting circuit
JP2620170B2 (en) Signal loss detection circuit
JP2708061B2 (en) Synchronous circuit device
JPH04135309A (en) Monostable multivibrator circuit
JPH04177936A (en) Synchronizing signal circuit and magnetic disk device provided with the circuit
JPS61110253A (en) Synchronising circuit
JPS6022542B2 (en) synchronization circuit