JPH01123329A - Interrupting circuit - Google Patents

Interrupting circuit

Info

Publication number
JPH01123329A
JPH01123329A JP62281305A JP28130587A JPH01123329A JP H01123329 A JPH01123329 A JP H01123329A JP 62281305 A JP62281305 A JP 62281305A JP 28130587 A JP28130587 A JP 28130587A JP H01123329 A JPH01123329 A JP H01123329A
Authority
JP
Japan
Prior art keywords
signal
terminal
input
interrupt
exclusive
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
JP62281305A
Other languages
Japanese (ja)
Inventor
Hiroaki Andou
安藤 洋章
Sayuri Saitou
斎藤 さゆり
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP62281305A priority Critical patent/JPH01123329A/en
Publication of JPH01123329A publication Critical patent/JPH01123329A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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)
  • Bus Control (AREA)

Abstract

PURPOSE:To detect the changes of all the terminal states even when two or more input terminal states change at the same time by providing a means with a latch circuit to execute the latch of an input signal and an output from the latch circuit with a clock control, and generate an interrupting signal by the exclusive OR of the latch output. CONSTITUTION:When a clock signal 141 is generated in the timing of ct4, a latch circuit 140 latches the input state of a terminal D, and a latch output 142 changes from a low level to a high level. An exclusive OR signal 301 becomes the low level by the exclusive OR of latch outputs 112, 122, 132, and 142, and an edge detecting circuit 320 detects the fall edge of the exclusive OR signal 301, outputs a setting signal 302, and sets an interrupting flag 330. A central processing unit outputs a strobe signal 341, makes an internal bus 350 output the input state of each terminal through an input buffer 340, and judges a interrupting factor. Thus, all the terminal states can be detected.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、多入力の割込み回路に関し、特に複数の割込
み入力端子のうち2つ以上の入力端子状態が同時に変化
しても、入力端子状態の変化を検出できる割込み回路に
関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a multi-input interrupt circuit, and in particular, even if the states of two or more of a plurality of interrupt input terminals change simultaneously, the input terminal state remains unchanged. The present invention relates to an interrupt circuit that can detect changes in .

〔従来の技術〕[Conventional technology]

従来の多入力割込み回路は、排他的論理和手段を用いる
ことにより、入力端子の初期状態にかかわらず、少なく
とも1つの入力端子状態が変化したことを検出していた
Conventional multi-input interrupt circuits use exclusive OR means to detect a change in the state of at least one input terminal, regardless of the initial state of the input terminal.

第5図は従来の多入力の割込み回路を示すブロック図で
ある。
FIG. 5 is a block diagram showing a conventional multi-input interrupt circuit.

本回路は端子A、B、C,Dと、排他的論理和回路31
0と、エツジ検出回路320と、割込みフラグ330と
、入力バッファ340と、内部バス350により構成さ
れる。
This circuit has terminals A, B, C, D, and an exclusive OR circuit 31.
0, an edge detection circuit 320, an interrupt flag 330, an input buffer 340, and an internal bus 350.

第5図において、端子A、B、C,Dは割込み信号の入
力端子である。
In FIG. 5, terminals A, B, C, and D are input terminals for interrupt signals.

排他的論理和回路310は、端子A、B、C。The exclusive OR circuit 310 has terminals A, B, and C.

Dの入力信号を入力とし、排他的論理和を取り、排他的
論理和信号3−01を出力する4人力の排他的論理和回
路である。
This is a four-person exclusive OR circuit which takes the input signal of D as an input, performs an exclusive OR, and outputs an exclusive OR signal 3-01.

エツジ検出回路320は、排他的論理和信号301の立
上がり、立下がりの両方のエツジ変化を検出し、セット
信号302を出力する両エツジ検出回路である。
The edge detection circuit 320 is a double edge detection circuit that detects both rising and falling edge changes of the exclusive OR signal 301 and outputs a set signal 302.

割込みプラグ330は、セット信号302によって、 
“1”にセットされる1ビツトの割込みフラグで、中央
処理部(図示しない)に割込み要求発生を知らせる。割
込みプラグ330は中央処理部が割込み処理を開始する
と同時にクリアされる。
The interrupt plug 330 is activated by the set signal 302.
A 1-bit interrupt flag set to "1" notifies the central processing unit (not shown) of the occurrence of an interrupt request. Interrupt plug 330 is cleared as soon as the central processing unit starts interrupt processing.

入力バッファ340は、中央処理部が出力する入力スト
ローブ信号341により、端子A、B。
The input buffer 340 has terminals A and B in response to an input strobe signal 341 output from the central processing section.

C,Dの状態を内部バス350に出力する。The states of C and D are output to the internal bus 350.

次に従来の動作について、説明する。Next, the conventional operation will be explained.

第6図は、従来例における動作を示すタイムチャートで
、端子Aはハイレベル、端子Bはロウレベ/べ端子Cは
ハイレベル、端子りはロウレベルを保っている時に、タ
イミングtlで端子Cがハイレベルからロウレベルに、
次にタイミングt2で端子Bがロウレベルからハイレベ
ルに、更にタイミングt3で端子Aがハイレベルからロ
ウレベルに、端子りがロウレベルからハイレベルに同時
に変化した場合を示す。
FIG. 6 is a time chart showing the operation of the conventional example. When terminal A is at high level, terminal B is at low level, terminal C is at high level, and terminal C is at low level, terminal C goes high at timing tl. From level to low level,
Next, a case will be shown in which the terminal B changes from a low level to a high level at timing t2, and further, the terminal A changes from a high level to a low level at a timing t3, and the terminal B changes from a low level to a high level at the same time.

タイミングt1で端子Cがハイレベルからロウレベルに
変化した場合、排他的論理和信号301はハイレベルに
なり、エツジ検出回路320は排他的論理和信号301
の立上がりエツジを検出し、セット信号302を出力し
、割込みフラグ330をセットする。中央処理部は割込
み処理を起動し、割込み処理において、ストローブ信号
341を出力し、入力バッフ7340を介して各端子の
入力状態を内部バス350に出力させて、割込み要因を
判断する。中央処理部は、内部バス350に出力された
各端子の入力状態を読み取ることにより、状態変化した
端子Cを特定でき、端子Cの入力変化に対応した処理を
実行する。
When the terminal C changes from high level to low level at timing t1, the exclusive OR signal 301 becomes high level, and the edge detection circuit 320 outputs the exclusive OR signal 301.
The rising edge of is detected, a set signal 302 is output, and an interrupt flag 330 is set. The central processing unit starts interrupt processing, outputs a strobe signal 341 in the interrupt processing, outputs the input state of each terminal to the internal bus 350 via the input buffer 7340, and determines the cause of the interrupt. The central processing unit can identify the terminal C whose state has changed by reading the input state of each terminal output to the internal bus 350, and executes processing corresponding to the change in the input of the terminal C.

次に、タイミングt2で端子Bがロウレベルからハオレ
ベルに変化した場合、排他的論理和信号301はロウレ
ベルになり、エツジ検出回路320は排他的論理和信号
301の立下がりエツジを検出し、セット信号302を
出力し、割込みフラグ330をセットする。中央処理部
は割込み処理を起動し、割込み処理において、ストロー
ブ信号341を出力し、入力バッファ340を介して各
端子の入力状態を内部バス350に出力させて、割込み
要因を判断する。中央処理部は、内部バス350に出力
された各端子の入力状態を読み取ることにより、状態変
化した端子Bを特定でき、端子Bの入力変化に対応した
処理を実行する。
Next, when the terminal B changes from low level to high level at timing t2, the exclusive OR signal 301 becomes low level, the edge detection circuit 320 detects the falling edge of the exclusive OR signal 301, and the set signal 302 is output and the interrupt flag 330 is set. The central processing unit starts interrupt processing, outputs a strobe signal 341 in the interrupt processing, outputs the input state of each terminal to the internal bus 350 via the input buffer 340, and determines the cause of the interrupt. By reading the input status of each terminal output to the internal bus 350, the central processing unit can identify the terminal B whose status has changed, and executes processing corresponding to the input change of the terminal B.

ところが、タイミングt3で端子Aがハイレベルからロ
ウレベルに、端子りがロウレベルからパイレベルに同時
に変化した場合には、排他的論理和信号301はロウレ
ベルのままであるので、エツジ検出ができず、割込みフ
ラグがセットされていないため、中央処理装置は割込み
処理を起動しない。
However, if terminal A changes from high level to low level and terminal A changes from low level to pi level at timing t3, the exclusive OR signal 301 remains at low level, so edge detection cannot be performed and the interrupt flag is is not set, the central processing unit does not start interrupt processing.

つまり、タイミングt3で端子A、Dの端子状態が同時
に変化した場合、いずれの端子の状態変化も検出するこ
とができなかった。
In other words, when the terminal states of terminals A and D changed simultaneously at timing t3, it was not possible to detect the state change of either terminal.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来の多入力割込み回路は、排他的論理和回路
手段によるため、2つ以上の入力端子が同時に変化した
場合、いずれの端子状態の変化も検出できないという問
題点を有している。
Since the conventional multi-input interrupt circuit described above uses exclusive OR circuit means, it has the problem that when two or more input terminals change simultaneously, it is impossible to detect a change in the state of any of the terminals.

〔発明の従来技術に対する相違点の内容〕上述した従来
の多入力回路に対し、本発明は、複数の割込み入力端子
の入力信号をクロック信号で制御された複数のラッチ回
路によりラッチし、ラッチ回路の出力の排他的論理和を
取る手段を備えることにより、同時に2つ以上の入力端
子の端子状態が変化した場合でも、すべての入力端子状
態変化を検出するという相違点を有する。
[Contents of differences between the invention and the prior art] In contrast to the conventional multi-input circuit described above, the present invention latches input signals of a plurality of interrupt input terminals by a plurality of latch circuits controlled by a clock signal. The difference is that even if the terminal states of two or more input terminals change at the same time, changes in the states of all input terminals can be detected by providing means for calculating the exclusive OR of the outputs of the input terminals.

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

本発明の多入力割込み回路は、クロック制御回路が出力
するクロックにより制御される複数のラッチ回路で複数
の入力端子の入力信号をラッチし、複数のラッチ回路の
出力の排他的論理和を取り、割込み信号を発生する排他
的論理和手段を有する。
The multi-input interrupt circuit of the present invention latches input signals of a plurality of input terminals with a plurality of latch circuits controlled by a clock output from a clock control circuit, takes an exclusive OR of the outputs of the plurality of latch circuits, and It has exclusive OR means for generating an interrupt signal.

〔第1の実施例〕 次に本発明について、図面を参照して説明する。[First example] Next, the present invention will be explained with reference to the drawings.

第1図は、本発明の第1の実施例の多入力割込み回路の
ブロック図である。
FIG. 1 is a block diagram of a multi-input interrupt circuit according to a first embodiment of the present invention.

本回路は、端子A、B、C,Dと、ラッチ回路110.
120,130,140と、クロック制御回路150と
、排他的論理和回路160と、エツジ検出回路320と
、割込みフラグ330と、入力バッファ340と、内部
バス350により構成される。
This circuit includes terminals A, B, C, and D, and a latch circuit 110.
120, 130, and 140, a clock control circuit 150, an exclusive OR circuit 160, an edge detection circuit 320, an interrupt flag 330, an input buffer 340, and an internal bus 350.

第1図において、端子A、B、C,D、エツジ検出回路
320、割込みフラグ330、入力バッファ340、内
部バス350は従来例に示すものと同一であるので、説
明は省略する。
In FIG. 1, terminals A, B, C, and D, an edge detection circuit 320, an interrupt flag 330, an input buffer 340, and an internal bus 350 are the same as those shown in the conventional example, so their explanation will be omitted.

ラッチ回路110,120,130,140は、端子A
、B、C,Dの入力信号を入力とし、クロック信号11
1,121,131,141をラッチクロックとし、ラ
ッチ出力112゜122.132,142を出力するラ
ッチ回路である。
The latch circuits 110, 120, 130, 140 have terminals A
, B, C, and D are input, and the clock signal 11
This is a latch circuit that uses 1, 121, 131, and 141 as latch clocks and outputs latch outputs of 112° 122, 132, and 142.

クロック制御回路150は、ラッチ回路110.120
,130,140が端子A、B。
The clock control circuit 150 includes latch circuits 110 and 120.
, 130, 140 are terminals A and B.

C,Dの端子状態をラッチするタイミングを決めるクロ
ック信号111,121,131,141を順次出力す
るクロック制御回路である。
This is a clock control circuit that sequentially outputs clock signals 111, 121, 131, and 141 that determine the timing of latching the C and D terminal states.

排他的論理和回路160は、ラッチ出力112.122
,132,142を入力とし、排他的論理和を取り、排
他的論理和信号301を出力する4人力の排他的論理和
回路である。
The exclusive OR circuit 160 has latch outputs 112 and 122.
, 132, 142 as inputs, performs an exclusive OR, and outputs an exclusive OR signal 301.

次に、本実施例の動作について説明する。Next, the operation of this embodiment will be explained.

第2図は、本実施例の動作を示すタイムチャートで、端
子Aはハイレベル、端子Bはロウレベル、端子Cはハイ
レベル、端子りはロウレベルヲ保っている時に、タイミ
ングt1で端子Cがハイレベルからロウレベルに、次に
タイミングt2で端子Bがロウレベルに、更にタイミン
グt3で端子Aがハイレベルからロウレベルに、端子り
がロウレベルからハイレベルに同時に変化した場合を示
す。
FIG. 2 is a time chart showing the operation of this embodiment. Terminal A is at a high level, terminal B is at a low level, terminal C is at a high level, and when the terminals are kept at a low level, at timing t1, the terminal C becomes a high level. Then, at timing t2, terminal B changes from high level to low level, and furthermore, at timing t3, terminal A changes from high level to low level, and terminal B changes from low level to high level at the same time.

初期状態では排他的論理和信号301はロウレベルであ
る。タイミグt1で端子Cがハイレベルからロウレベル
に変化した場合、クロック信号131がctlのタイミ
ングで発生すると、ラッチ回路130は、端子Cの入力
信号をラッチし、ラッチ出力132はハイレベルからロ
ウレベレルとなる。排他的論理和信号301は、ラッチ
出力112.122,132,142の排他的論理和に
よりハイレベルになり、エツジ検出回路320は排他的
論理和信号301の立上がりエツジを検出し、セット信
号302を出力し、割込みフラグ330をセットする。
In the initial state, exclusive OR signal 301 is at low level. When the terminal C changes from high level to low level at timing t1, when the clock signal 131 is generated at the timing of ctl, the latch circuit 130 latches the input signal of the terminal C, and the latch output 132 changes from high level to low level. . The exclusive OR signal 301 becomes high level by the exclusive OR of the latch outputs 112, 122, 132, and 142, and the edge detection circuit 320 detects the rising edge of the exclusive OR signal 301 and outputs the set signal 302. output and set the interrupt flag 330.

中央処理部は割込み処理を起動し、割込み処理において
、ストローブ信号341を出力し、入力バッファ340
を介して各端子の入力状態を内部バス350に出力させ
て、割込み要因を判断する。中央処理部は、内部バス3
50に出力された各端子の入力状態を読み取ることによ
り、状態変化した端子Cを特定でき、端子Cの入力変化
に対応した処理を実行する。
The central processing unit starts interrupt processing, outputs a strobe signal 341 in the interrupt processing, and outputs a strobe signal 341 to the input buffer 340.
The input state of each terminal is output to the internal bus 350 via the internal bus 350 to determine the cause of the interrupt. The central processing unit uses internal bus 3
By reading the input state of each terminal outputted to 50, the terminal C whose state has changed can be identified, and processing corresponding to the change in the input of terminal C can be executed.

次に、タイミングt2で端子Bがロウレベルからハイレ
ベルに変化した場合、クロック信号1217′JSct
2のタイミングで発生すると、ラッチ回路120は、端
子Bの入力信号をラッチし、ラッチ出力122はロウレ
ベルからハイレベルとなる。排他的論理和信号301は
、ラッチ出力112.122,132,142の排他的
論理和によりロウレベルになり、エツジ検出回路320
は排他的論理和信号301の立下がりエツジを検出し、
セット信号302を出力し、割込みフラグ330をセッ
トする。中央処理部は割込み処理を起動し、割込み処理
において、ストローブ信号341を出力し、入力バッフ
ァ340を介して各端子の入力状態を内部バス350に
出力させて、割込み要因を判断する。中央処理部は、内
部バス350に出力された各端子の入力状態を読み取る
ことにより、状態変化した端子Bを特定でき、端子Bの
入力変化に対応した処理を実行する。
Next, when the terminal B changes from low level to high level at timing t2, the clock signal 1217'JSct
When this occurs at timing 2, the latch circuit 120 latches the input signal at terminal B, and the latch output 122 changes from low level to high level. The exclusive OR signal 301 becomes low level by the exclusive OR of the latch outputs 112, 122, 132, and 142, and the edge detection circuit 320
detects the falling edge of the exclusive OR signal 301,
A set signal 302 is output and an interrupt flag 330 is set. The central processing unit starts interrupt processing, outputs a strobe signal 341 in the interrupt processing, outputs the input state of each terminal to the internal bus 350 via the input buffer 340, and determines the cause of the interrupt. By reading the input status of each terminal output to the internal bus 350, the central processing unit can identify the terminal B whose status has changed, and executes processing corresponding to the input change of the terminal B.

更に、タイミングt3で端子Aがハイレベルからロウレ
ベルに、端子りがロウレベルからハイレベルに同時に変
化した場合、クロック信号111がct3のタイミング
で発生すると、ラッチ回路110は、端子Aの入力信号
をラッチし、ラッチ出力112はハイレベルからロウレ
ベルとなる。
Furthermore, if the terminal A changes from high level to low level and the terminal RI simultaneously changes from low level to high level at timing t3, when the clock signal 111 is generated at timing ct3, the latch circuit 110 latches the input signal of terminal A. However, the latch output 112 changes from high level to low level.

排他的論理和信号301は、ラッチ出力112゜122
.132,142の排他的論理和によりハイレベルにな
り、エツジ検出回路320は排他的論理和信号301の
立上がりエツジを検出し、セット信号302を出力し、
割込みフラグ330をセットする。中央処理部は割込み
処理を起動し、割込み処理において、ストローブ信号3
41を出力し、入力バッファ340を介して各端子の入
力状態を内部バス350に出力させて、割込み要因を判
断する。中央処理部は、内部バス350に出力された各
端子の入力状態を読み取ることにより、状態変化した端
子Aを特定でき、端子Aの入力変化に対応した処理を実
行する。
The exclusive OR signal 301 is the latch output 112°122
.. The edge detection circuit 320 detects the rising edge of the exclusive OR signal 301 and outputs a set signal 302.
Set interrupt flag 330. The central processing unit starts interrupt processing, and in the interrupt processing, strobe signal 3
41, the input state of each terminal is output to the internal bus 350 via the input buffer 340, and the cause of the interrupt is determined. By reading the input status of each terminal output to the internal bus 350, the central processing unit can identify the terminal A whose status has changed, and executes processing corresponding to the input change of the terminal A.

次に、クロック信号141がct4のタイミングで発生
すると、ラッチ回路140は、端子りの入力状態をラッ
チし、ラッチ出力142はロウレベルからハイレベルと
なる。排他的論理和信号301は、ラッチ出力112,
122,132゜142の排他的論理和によりロウレベ
ルになり、エツジ検出回路320は排他的論理和信号3
01の立下がりエツジを検出し、セット信号302を出
力し、割込みフラグ330をセットする。中央処理部は
割込み処理を起動し、割込み処理において、ストローブ
信号341を出力し、入力バッファ340を介して各端
子の入力状態を内部バス350に出力させて、割込み要
因を判断する。中央処理部は、内部バス350に出力さ
れた各端子の入力状態を読み取ることにより、状態変化
した端子りを特定でき、端子りの入力変化に対応した処
理を実行する。
Next, when the clock signal 141 is generated at timing ct4, the latch circuit 140 latches the input state of the terminal, and the latch output 142 changes from low level to high level. The exclusive OR signal 301 is the latch output 112,
122, 132°142 becomes low level, and the edge detection circuit 320 receives the exclusive OR signal 3.
01 is detected, a set signal 302 is output, and an interrupt flag 330 is set. The central processing unit starts interrupt processing, outputs a strobe signal 341 in the interrupt processing, outputs the input state of each terminal to the internal bus 350 via the input buffer 340, and determines the cause of the interrupt. By reading the input state of each terminal output to the internal bus 350, the central processing unit can identify the terminal whose state has changed, and executes processing corresponding to the input change of the terminal.

以上のように、クロックにより、各端子状態をラッチす
るタイミングを制御することにより、複数の入力端子の
うち、2つ以上の端子状態が同時に変化した場合でも、
すべての端子状態を検出できる。
As described above, by controlling the timing of latching each terminal state using the clock, even if the states of two or more of the multiple input terminals change simultaneously,
All pin states can be detected.

〔第2の実施例〕 第3図は、本発明の第2の実施例のブロック図である。[Second example] FIG. 3 is a block diagram of a second embodiment of the invention.

本回路は、入力端子A、B、C,Dと、ラッチ回路11
0,120,130,140と、クーロツク制御回路2
30と、排他的論理和回路160と、エツジ検出回路3
20と、割込みフラグ220と、割込みアドレス発生部
210により構成される。
This circuit consists of input terminals A, B, C, and D, and a latch circuit 11.
0, 120, 130, 140 and clock control circuit 2
30, exclusive OR circuit 160, and edge detection circuit 3
20, an interrupt flag 220, and an interrupt address generator 210.

第3図において、入力端子A、B、C,D、及びラッチ
回路110,120,130,140、排他的論理゛和
回路160)t、第1の実施例に示すものと同一であり
、又、エツジ検出回路320は、従来例に示すものと同
一であるため説明は省略する。
In FIG. 3, input terminals A, B, C, D, latch circuits 110, 120, 130, 140, exclusive OR circuit 160)t are the same as those shown in the first embodiment, and , the edge detection circuit 320 is the same as that shown in the conventional example, so a description thereof will be omitted.

割込みフラグ220は、セット信号302によって、 
1′にセットされる1ビツトの割込みフラグで、制御信
号201を出力する。
The interrupt flag 220 is set by the set signal 302.
A control signal 201 is output with a 1-bit interrupt flag set to 1'.

割込みフラグ220は、中央処理部が割込み処理を開始
するのと同時にクリアされる。
The interrupt flag 220 is cleared at the same time as the central processing unit starts interrupt processing.

クロック制御回路230は、制御信号201が0°の場
合、クロック信号111,121゜131.141を順
次出力し、制御信号201が“1°の場合、クロック信
号111,121゜131.141の出力を停止する、
クロック制御回路である。
The clock control circuit 230 sequentially outputs the clock signals 111, 121° 131.141 when the control signal 201 is 0°, and outputs the clock signals 111, 121° 131.141 when the control signal 201 is 1°. stop,
This is a clock control circuit.

割込みアドレス発生部210は、ラッチ出力112.1
22,132,142を入力とし、各々のラッチ出力1
12,122,132゜142の内容に対応した割込み
ベクターアドレス信号211を出力する割込みアドレス
発生部である。
The interrupt address generation section 210 outputs a latch output 112.1.
22, 132, 142 as input, each latch output 1
This is an interrupt address generation section that outputs an interrupt vector address signal 211 corresponding to the contents of 12, 122, 132, and 142.

次に、本発明の第2の実施例の動作について説明する。Next, the operation of the second embodiment of the present invention will be explained.

第4図は、本実施例の動作を示すタイムチャートで、端
子Aはハイレベル、端子Bはロウレベル、端子Cはハイ
レベル、端子りはロウレベルを保っている時に、タイミ
ングtloで端子Aがハイレベルからロウレベルに、端
子りはロウレベルからハイレベルに、同時に変化した場
合を示す。
FIG. 4 is a time chart showing the operation of this embodiment. When terminal A is at high level, terminal B is at low level, terminal C is at high level, and terminal RI is at low level, terminal A goes high at timing tlo. This shows the case where the level changes from low level to high level, and the terminal changes from low level to high level at the same time.

初期状態では、排他的論理和信号301はロウレベルで
ある。タイミングtloで端子Aがハイレベルからロウ
レベルに、端子りがロウレベルからハイレベルに同時に
変化した場合、クロック信号111がタイミングctl
Oで発生すると、ラッチ回路110は、端子Aの入力信
号をラッチし、ラッチ出力112はハイレベルからロウ
レベルとなる。又、排他的論理和信号301はラーチ出
力112,122,132,142の排他的論理和によ
りハイレベルとなり、土ツジ検出回路320は排他的論
理和信号301の立上がりエツジを検出し、セット信号
302を出力し、割込みフラグ220をセットする。割
込みフラグ220のセットにより、制御信号201は“
1′となり、クロック制御回路230は、次のクロック
信号121の出力を停止する。いずれのラッチ回路11
0.120,130,140の状態も、クロック信号1
11,121,131,141出力が停止しているため
、変化しない(図中stlと示した区間)。割込みアド
レス発生部210は、状態変化した端子Aの入力に対応
した割込みベクターアドレス信号211を出力する。中
央処理部は、割込みベクタアドレス信号211に基づい
た割込み処理を開始し、割込みフラグ220はクリアさ
れるので、制御信号201は、 “Olとなり、クロッ
ク制御回路230は、再びクロック信号121から順に
出力し、端子状態変化の検出が可能となる。
In the initial state, exclusive OR signal 301 is at low level. When terminal A changes from high level to low level and terminal A changes from low level to high level at timing tlo, the clock signal 111 changes at timing ctl.
When the signal is generated at O, the latch circuit 110 latches the input signal at the terminal A, and the latch output 112 changes from high level to low level. Further, the exclusive OR signal 301 becomes high level by the exclusive OR of the latch outputs 112, 122, 132, and 142, and the earth edge detection circuit 320 detects the rising edge of the exclusive OR signal 301 and outputs the set signal 302. is output and the interrupt flag 220 is set. By setting the interrupt flag 220, the control signal 201 becomes “
1', and the clock control circuit 230 stops outputting the next clock signal 121. Which latch circuit 11
The states of 0.120, 130, and 140 are also clock signal 1.
Since the outputs 11, 121, 131, and 141 are stopped, they do not change (section indicated as stl in the figure). The interrupt address generation unit 210 outputs an interrupt vector address signal 211 corresponding to the input of the terminal A whose state has changed. The central processing unit starts interrupt processing based on the interrupt vector address signal 211, and the interrupt flag 220 is cleared, so the control signal 201 becomes "Ol" and the clock control circuit 230 outputs the clock signal 121 again in order. However, it becomes possible to detect changes in terminal status.

次に、クロック信号141がタイミングct20で発生
すると、ラッチ回路140は、端子りの入力信号をラッ
チし、ラッチ出力142はロウレベルからハイレベルと
なる。又、排他的論理和信号301はラッチ出力112
,122,132゜142の排他的論理和によりロウレ
ベルとなり、エツジ検出回路320は排他的論理和信号
301の立下がりエツジを検出し、セット信号302を
出力し、割込みフラグ220をセットする。割込みフラ
グ2200セツトにより、制御信号201は1′となり
、クロック制御回路230は、次のクロック信号111
の出力を停止する。いずれのラッチ回路110,120
,130,140の状態も、クロック信号111,12
1,131゜141出力が停止しているため、変化しな
い(図中ct2と示した区間)。割込みアドレス発生部
210は、状態変化した端子りの入力に対応した割込み
ベクターアドレス信号211を出カスる。
Next, when the clock signal 141 is generated at timing ct20, the latch circuit 140 latches the input signal at the terminal, and the latch output 142 changes from low level to high level. Furthermore, the exclusive OR signal 301 is output from the latch output 112.
, 122, 132, and 142, the edge detection circuit 320 detects the falling edge of the exclusive OR signal 301, outputs a set signal 302, and sets the interrupt flag 220. By setting the interrupt flag 2200, the control signal 201 becomes 1', and the clock control circuit 230 outputs the next clock signal 111.
Stop outputting. Which latch circuit 110, 120
, 130, 140 also correspond to the clock signals 111, 12
1,131°141 Since the output is stopped, there is no change (section indicated as ct2 in the figure). The interrupt address generating section 210 outputs an interrupt vector address signal 211 corresponding to the input of the terminal whose state has changed.

中央処理部は、割込みベクターアドレス信号211に基
づいた割込み処理を開始し、割込みフラグ220はクリ
アされるので、制御信号201は、 “0′となり、ク
ロック制御回路230は、再びクロック信号111から
順に出力し、端子状態変化の検出が可能となる。
The central processing unit starts interrupt processing based on the interrupt vector address signal 211, and the interrupt flag 220 is cleared, so the control signal 201 becomes "0" and the clock control circuit 230 starts processing the clock signal 111 again. output, allowing detection of changes in terminal status.

第2の実施例に示すように、割込みフラグの出力信号を
クロック制御回路の制御信号として帰還させているので
、ラッチクロック周期が、割込み処理の起動時間に比べ
て短い場合でも、割込み処理を起動するまでの期間に、
次のラッチ出力変化による割込み要求の発生を抑止する
ことができる。
As shown in the second embodiment, since the output signal of the interrupt flag is fed back as a control signal to the clock control circuit, the interrupt processing is started even if the latch clock cycle is shorter than the startup time of the interrupt processing. During the period until
It is possible to suppress generation of an interrupt request due to the next latch output change.

つまり、複数の入力端子のうち、同時に2端子以上が変
化した場合でも、1つの端子の変化により、1回の割込
み要求が発生して、対応した割込み処理を起動でき、い
ずれの端子変化も検出することができる。
In other words, even if two or more of multiple input pins change at the same time, a change in one pin will generate one interrupt request and the corresponding interrupt processing can be activated, and any change in any pin will be detected. can do.

更に、個々の端子入力に対応した割込みアドレス信号を
出力する割込みアドレス発生部を備えることにより、割
込み処理において、どの端子状態が変化したのかを判別
する処理が不要となり、割込み処理時間を短縮できる。
Furthermore, by providing an interrupt address generation section that outputs an interrupt address signal corresponding to each terminal input, it becomes unnecessary to determine which terminal state has changed in the interrupt processing, and the interrupt processing time can be shortened.

〔発明の効果〕〔Effect of the invention〕

以上説明したとおり、本発明は多入力の割込み回路にお
いて、ラッチ回路を備え、クロック制御により入力信号
のラッチ及びラッチ回路からの出力を行い、ラッチ出力
の排他的論理和により割込み信号を発生する手段により
、2つ以上の入力端子状態が同時に変化した場合にも、
すべての端子状態の変化を検出できる効果がある。
As explained above, the present invention provides a multi-input interrupt circuit that includes a latch circuit, latches an input signal and outputs from the latch circuit under clock control, and generates an interrupt signal by exclusive OR of the latch outputs. Therefore, even if the states of two or more input terminals change simultaneously,
This has the effect of detecting changes in all terminal states.

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

第1図は、本発明の第1の実施例のブロック図、第2図
は、第1の実施例の動作を示すタイムチャート、第3図
は、本発明の第2の実施例のブロック図、第4図は、第
2の実施例の動作を示すタイ云チャート、第5図は、従
来の多大カ割込み回路のブロック図、第6図は、従来例
の動作を示すタイムチャートである。 110.120,130,140”−・ラッチ回路、1
11,121,131,141・・・・・・クロック信
号、112,122,132,142・・・・・・ラッ
チ出力信号、150,230・・・・・・クロック制御
回路、160,310・・・・・・排他的論理和回路、
320・・・・・・エツジ検出回路、220,330・
・・・・・割込みフラグ、340・・・・・・入力バッ
ファ、350・・・・・・内部バス、201・・・・・
・クロック制御信号、211・・・・・・割込みベクタ
ーアドレス信号、301・・・・・・排他的論理和信号
、302・・・・・・セット信号、341・・・・・・
入力ストローブ信号。 代理人 弁理士  内 原   音 茅 2 図 <    o    (,3Q $411!I
FIG. 1 is a block diagram of a first embodiment of the present invention, FIG. 2 is a time chart showing the operation of the first embodiment, and FIG. 3 is a block diagram of a second embodiment of the present invention. , FIG. 4 is a tie chart showing the operation of the second embodiment, FIG. 5 is a block diagram of a conventional large power interrupt circuit, and FIG. 6 is a time chart showing the operation of the conventional example. 110.120,130,140”-・Latch circuit, 1
11,121,131,141...Clock signal, 112,122,132,142...Latch output signal, 150,230...Clock control circuit, 160,310... ...exclusive OR circuit,
320... Edge detection circuit, 220, 330.
...Interrupt flag, 340...Input buffer, 350...Internal bus, 201...
- Clock control signal, 211... Interrupt vector address signal, 301... Exclusive OR signal, 302... Set signal, 341...
Input strobe signal. Agent Patent Attorney Otohara Uchihara 2 Figure < o (,3Q $411!I

Claims (1)

【特許請求の範囲】[Claims] 多入力の割込み回路において、複数の割込み入力端子と
、前記複数の割込み入力端子に1対1で対応する複数の
ラッチ回路と、クロック制御回路を有し、前記クロック
制御回路が出力するクロックで制御される前記ラッチ回
路により前記複数の割込み入力端子の入力信号をラッチ
し、前記複数のラッチ回路の出力の排他的論理和により
割込み信号を発生する排他的論理和手段を備えることを
特徴とする多入力の割込み回路。
The multi-input interrupt circuit includes a plurality of interrupt input terminals, a plurality of latch circuits corresponding to the plurality of interrupt input terminals on a one-to-one basis, and a clock control circuit, and is controlled by a clock output from the clock control circuit. latching the input signals of the plurality of interrupt input terminals by the latch circuit, and generating an interrupt signal by the exclusive OR of the outputs of the plurality of latch circuits. Input interrupt circuit.
JP62281305A 1987-11-06 1987-11-06 Interrupting circuit Pending JPH01123329A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62281305A JPH01123329A (en) 1987-11-06 1987-11-06 Interrupting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62281305A JPH01123329A (en) 1987-11-06 1987-11-06 Interrupting circuit

Publications (1)

Publication Number Publication Date
JPH01123329A true JPH01123329A (en) 1989-05-16

Family

ID=17637226

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62281305A Pending JPH01123329A (en) 1987-11-06 1987-11-06 Interrupting circuit

Country Status (1)

Country Link
JP (1) JPH01123329A (en)

Similar Documents

Publication Publication Date Title
US4636656A (en) Circuit for selectively extending a cycle of a clock signal
JP2550837B2 (en) Scan path test control circuit
US6202185B1 (en) Methods and apparatus for facilitating scan testing of circuitry
JPH01123329A (en) Interrupting circuit
JPH07283727A (en) Phase lock detector
JPH0641968B2 (en) Digital circuit test equipment
JPH04306013A (en) Latch circuit device
JP3260483B2 (en) External control signal input circuit
JP2000353939A (en) Clock signal synchronous flip flop circuit
JPH08102658A (en) Counter circuit with loading function
JP2619957B2 (en) Clock control circuit for delay test
JP2847741B2 (en) Microcomputer
JPS6235143B2 (en)
JPS5827246A (en) Logical device
JPH0535501A (en) Interruption signal control circuit
JPH0746123B2 (en) Integrated circuit test method
JPH01223521A (en) Large scale integrated circuit
JPH0748192B2 (en) Storage device
JPS63310211A (en) Clock fault detecting circuit
JPH0390873A (en) Timing generating device
JPH0668015A (en) Assign information holding circuit
JPS62113245A (en) Operation monitoring device for signal processor
JPH11144468A (en) Address transition detection circuit
JPH0254318A (en) Clock signal stop detecting circuit
JPH03114313A (en) Clock synchronization system for logic circuit