JP2814704B2 - Interrupt control circuit - Google Patents

Interrupt control circuit

Info

Publication number
JP2814704B2
JP2814704B2 JP2169006A JP16900690A JP2814704B2 JP 2814704 B2 JP2814704 B2 JP 2814704B2 JP 2169006 A JP2169006 A JP 2169006A JP 16900690 A JP16900690 A JP 16900690A JP 2814704 B2 JP2814704 B2 JP 2814704B2
Authority
JP
Japan
Prior art keywords
interrupt
flip
flop circuit
reset
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.)
Expired - Fee Related
Application number
JP2169006A
Other languages
Japanese (ja)
Other versions
JPH04109397A (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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2169006A priority Critical patent/JP2814704B2/en
Publication of JPH04109397A publication Critical patent/JPH04109397A/en
Application granted granted Critical
Publication of JP2814704B2 publication Critical patent/JP2814704B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、回路の小型化、中央処理装置(以下、CPU
と記す)よりの命令の省略化等に使用する割り込みコン
トロール回路に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a miniaturized circuit, a central processing unit (hereinafter referred to as a CPU).
), And an interrupt control circuit used for omitting instructions.

従来の技術 第4図は、従来の割り込みコントロール回路の構成を
示している。同図において、1は、割り込み要因aを保
持しこれを出力するフリップフロップ回路であり、CPU
(図示せず)より発生される割り込みリセット命令bに
よって割り込み保持要因aをリセットする機能を持って
いる。
FIG. 4 shows the configuration of a conventional interrupt control circuit. In FIG. 1, reference numeral 1 denotes a flip-flop circuit which holds an interrupt factor a and outputs the same.
It has a function of resetting the interrupt holding factor a by an interrupt reset instruction b generated from a not shown (not shown).

2は、CPUより発生される割り込みマスク命令cを保
持しこれを出力するフリップフロップ回路、3は、フリ
ップフロップ回路1からの割り込み要因aと、フリップ
フロップ回路2からの割り込みマスク命令cとが入力さ
れるアンド回路であり、フリップフロップ回路1による
割り込み要因aの出力をコントロールする。
2 is a flip-flop circuit that holds and outputs an interrupt mask instruction c generated by the CPU, and 3 is an input of an interrupt factor a from the flip-flop circuit 1 and an interrupt mask instruction c from the flip-flop circuit 2. And controls the output of the interrupt factor a by the flip-flop circuit 1.

次に、上記従来例の動作について説明する。 Next, the operation of the above conventional example will be described.

割り込み要因が発生すると、フリップフロップ回路1
で割り込み要因aが保持され、アンド回路3に対する出
力がこの旨を示す信号「1」となる。このとき、CPUか
らフリップフロップ回路2に対する割り込みマスク命令
cの出力がない、即ち割り込み受付可の状態であるとき
には、フリップフロップ回路2からアンド回路3に対す
る出力が、この旨を示す信号「1」となる。
When an interrupt factor occurs, the flip-flop circuit 1
Holds the interrupt factor a, and the output to the AND circuit 3 becomes a signal "1" indicating this. At this time, when there is no output of the interrupt mask instruction c from the CPU to the flip-flop circuit 2, that is, when the interrupt is accepted, the output from the flip-flop circuit 2 to the AND circuit 3 becomes a signal “1” indicating this. Become.

するとアンド回路3の出力は、両フリップフロップ回
路1、2からの入力信号が共に「1」であることから
「1」となり、これにより割り込み要因aの割り込みが
発生する。
Then, the output of the AND circuit 3 becomes “1” because the input signals from both the flip-flop circuits 1 and 2 are both “1”, whereby an interrupt of the interrupt factor a occurs.

一方、フリップフロップ回路1に割り込み要因aが保
持されたときに、CPUからフリップフロップ回路2に対
する割り込みマスク命令cの出力がある、即ち割り込み
受付不可の状態であるときには、フリップフロップ回路
2からアンド回路3に対する出力が、この旨を示す信号
「0」となる。
On the other hand, when the interrupt mask instruction c is output from the CPU to the flip-flop circuit 2 when the interrupt factor a is held in the flip-flop circuit 1, that is, when the interrupt is not accepted, the AND circuit is output from the flip-flop circuit 2. The output for No. 3 is a signal “0” indicating this.

するとアンド回路3の出力は、フリップフロップ回路
1からの入力信号「1」であり、フリップフロップ回路
2からの入力信号が「0」であることから「0」とな
り、よってこのアンド回路3は、フリップフロップ回路
1に保持された割り込み要因aの出力をコントロール
し、割り込み要因aの割り込みが発生しないようにす
る。
Then, the output of the AND circuit 3 is “1” because the input signal from the flip-flop circuit 1 is “1” and the input signal from the flip-flop circuit 2 is “0”. The output of the interrupt factor a held in the flip-flop circuit 1 is controlled so that the interrupt of the interrupt factor a does not occur.

これと同時に、CPUはフリップフロップ回路1に対し
て、フリップフロップ回路1で保持されている割り込み
要因aをリセットするための割り込みリセット命令bを
出力し、これに基づいてフリップフロップ回路1は、こ
れに保持されている割り込み要因aをリセットする。
At the same time, the CPU outputs to the flip-flop circuit 1 an interrupt reset instruction b for resetting the interrupt factor a held in the flip-flop circuit 1, and the flip-flop circuit 1 Is reset.

このように、上記従来の割り込みコントロール回路で
も、CPUから割り込みリセット命令b及び割り込みマス
ク命令cを各々出力することにより、割り込み要因のコ
ントロールを行うことができる。
Thus, even in the above-described conventional interrupt control circuit, the interrupt factor can be controlled by outputting the interrupt reset instruction b and the interrupt mask instruction c from the CPU.

発明が解決しようとする課題 しかしながら、上記従来の割り込みコントロール回路
では、CPUから割り込みリセット命令b及び割り込みマ
スク命令cの2種の命令を独立に出力する必要(第5図
参照)があり、CPUによる制御が繁雑であるという問題
点があった。
However, in the above-described conventional interrupt control circuit, it is necessary to independently output two types of instructions from the CPU, an interrupt reset instruction b and an interrupt mask instruction c (see FIG. 5). There was a problem that control was complicated.

また、上記従来の割り込みコントロール回路において
は、2つのフリップフロップ回路1、2の他に、1つの
アンド回路3が必要であり、必要があり、回路構成が繁
雑であるという問題点があった。
Further, in the above-described conventional interrupt control circuit, one AND circuit 3 is required in addition to the two flip-flop circuits 1 and 2, and there is a problem that the circuit configuration is complicated.

本発明は上記問題点を解決するものであり、CPUから
の命令内容を省略化してこれによる制御を簡略なものと
することができる割り込みコントロール回路を提供する
ことを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problem, and has as its object to provide an interrupt control circuit capable of simplifying control by omitting instruction contents from a CPU.

課題を解決するための手段 本発明は上記目的を達成するために、CPUからの割り
込みリセット/マスク命令が入力されたときにこれを保
持して出力する第1のフリップフロップ回路と、この第
1のフリップフロップ回路からの割り込みリセット/マ
スク命令及び外部からの割り込み要因が入力され第1の
フリップフロップ回路からの割り込みリセット/マスク
命令の内容に基づいて入力された割り込み要因を出力、
リセット及びマスクする第2のフリップフロップ回路と
を備える構成にした。
Means for Solving the Problems In order to achieve the above object, the present invention provides a first flip-flop circuit which holds and outputs an interrupt reset / mask instruction from a CPU when the instruction is input, An interrupt reset / mask instruction from the flip-flop circuit and an external interrupt factor are input, and the interrupt factor input based on the contents of the interrupt reset / mask instruction from the first flip-flop circuit is output;
And a second flip-flop circuit for resetting and masking.

作用 本発明は上記構成により、CPUからの命令内容を省略
化してこれによる制御を簡略なものとすることができ、
且つ、回路構成を簡素化して回路の小型化を図ることが
できる。
Operation The present invention can simplify the control by omitting the instruction content from the CPU by the above configuration,
In addition, the circuit configuration can be simplified to reduce the size of the circuit.

実施例 以下、本発明の実施例を図面に基づいて説明する。第
1図は本発明の一実施例による割り込みコントロール回
路の構成を示す回路図である。
Embodiment Hereinafter, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a circuit diagram showing a configuration of an interrupt control circuit according to one embodiment of the present invention.

第1図において、21は、CPUからの割り込みリセット
/マスク命令Dが入力されたときに、これを保持して出
力する第1のフリップフロップ回路、22は、第1のフリ
ップフロップ回路21からの割り込みリセット/マスク命
令Dと、外部からの割り込み要因Aとが入力される第2
のフリップフロップ回路である。
In FIG. 1, reference numeral 21 denotes a first flip-flop circuit which holds and outputs an interrupt reset / mask instruction D from the CPU when it is input; The second in which an interrupt reset / mask instruction D and an external interrupt factor A are input
Flip-flop circuit.

上記第2のフリップフロップ回路22は、第1のフリッ
プフロップ回路21からの割り込みリセット/マスク命令
Dの内容が、割り込み要因Aをリセット及びマスクする
旨(第3図のb信号のH)を示すものであるときには、
このフリップフロップ回路22に入力される割り込み要因
Aをリセットして保持しないものである。
The second flip-flop circuit 22 indicates that the content of the interrupt reset / mask command D from the first flip-flop circuit 21 resets and masks the interrupt factor A (H of the signal b in FIG. 3). When things are
The interrupt factor A input to the flip-flop circuit 22 is not reset and held.

また、上記第1のフリップフロップ回路21からの割り
込みリセット/マスク命令Dの内容が、割り込み要因A
をリセット及びマスクしない旨(第3図のb信号のL)
を示すものであるときには、このフリップフロップ回路
22に入力される割り込み要因Aを保持して出力するもの
である。
The content of the interrupt reset / mask instruction D from the first flip-flop circuit 21 is determined by the interrupt factor A.
Not reset and mask (L of signal b in FIG. 3)
When the flip-flop circuit
The interrupt factor A input to 22 is held and output.

次に、上記実施例の動作について説明する。 Next, the operation of the above embodiment will be described.

第1のフリップフロップ回路21から第2のフリップフ
ロップ回路22に対しては、第2のフリップフロップ回路
22に入力される割り込み要因Aをリセット及びマスクし
ない旨(第3図のb信号のL)か、あるいは、第2のフ
リップフロップ回路22に入力される割り込み要因Aをリ
セット及びマスクする旨(第3図のb信号のH)かの、
どちらかを示す内容の割り込みリセット/マスク命令D
が出力されている。
From the first flip-flop circuit 21 to the second flip-flop circuit 22, the second flip-flop circuit
That the interrupt factor A input to the second flip-flop circuit 22 is not reset and masked (L of the signal b in FIG. 3) or that the interrupt factor A input to the second flip-flop circuit 22 is reset and masked (No. H) of the signal b in FIG.
Interrupt reset / mask instruction D indicating either
Is output.

ここで、上記割り込みリセット/マスク命令Dの内容
が、割り込み要因Aをリセット及びマスクしない旨(第
3図のb信号のL)を示すものであるときには、第2の
フリップフロップ回路22に入力される割り込み要因A
は、この第2のフリップフロップ回路22によって保持さ
れ、この保持に伴って割り込みが発生する。
Here, when the content of the interrupt reset / mask instruction D indicates that the interrupt factor A is not reset and masked (L of the signal b in FIG. 3), it is input to the second flip-flop circuit 22. Interrupt factor A
Is held by the second flip-flop circuit 22, and an interrupt is generated with this holding.

これに対して、上記割り込みリセット/マスク命令D
の内容が、割り込み要因Aをリセット及びマスクする旨
(第3図のb信号のH)を示すものであるときには、第
2のフリップフロップ回路22が、これに入力される割り
込み要因Aをリセットして保持せず、結果的に割り込み
要因Aにマスクがかけられた状態となる。よってこの場
合、割り込みは発生しない。
On the other hand, the interrupt reset / mask instruction D
Indicates that the interrupt factor A is reset and masked (H of the signal b in FIG. 3), the second flip-flop circuit 22 resets the interrupt factor A input thereto. As a result, the interrupt factor A is masked. Therefore, in this case, no interrupt occurs.

次に、既に第2のフリップフロップ回路22に割り込み
要因Aが保持されて割り込みが発生している状態につい
て説明する。
Next, a state in which the interrupt factor A is already held in the second flip-flop circuit 22 and an interrupt has occurred will be described.

同状態において、第2のフリップフロップ回路22に入
力される割り込みリセット/マスク命令Dの内容が、CP
U側の制御により、割り込み要因Aをリセット及びマス
クしない旨(第3図のb信号のL)を示すものから、割
り込み要因Aをリセット及びマスクする旨(第3図のb
信号のH)を示すものに変わった場合は、これに伴っ
て、第2のフリップフロップ回路22に保持されている割
り込み要因Aがリセットされ、割り込みの発生が停止す
る。
In the same state, the content of the interrupt reset / mask instruction D input to the second flip-flop circuit 22 is CP
Under the control of the U side, the interrupt factor A is reset and masked from the signal indicating that the interrupt factor A is not reset and masked (L of the signal b in FIG. 3) (b in FIG. 3).
When the signal changes to a signal indicating H), the interrupt factor A held in the second flip-flop circuit 22 is reset, and the generation of the interrupt stops.

尚、上記割り込みリセット/マスク命令Dの内容変更
を、割り込み要因Aをリセット及びマスクしない→する
→しないと瞬時的に行えば、所謂リセット動作を達成す
ることができ、また、リセット/マスク命令Dの内容が
割り込み要因Aをリセット及びマスクする旨を示すもの
に変わった後、CPU側の制御によりこの状態を継続させ
れば、結果的に所謂マスク動作を達成することができ
る。
If the contents of the interrupt reset / mask instruction D are instantaneously changed such that the interrupt factor A is not reset and masked → not → not performed, a so-called reset operation can be achieved. Is changed to indicate that the interrupt factor A is to be reset and masked, and if this state is continued under the control of the CPU, a so-called masking operation can be achieved as a result.

上述の如く本実施例の割り込みコントロール回路によ
れば、第1のフリップフロップ回路21にCPUからの割り
込みリセット/マスク信号を保持させることにより、CP
Uからの命令を一本化することができ、且つ、この命令
を一度に行うことができる。
As described above, according to the interrupt control circuit of the present embodiment, the first flip-flop circuit 21 holds the interrupt reset / mask signal from the CPU, thereby
The instruction from U can be unified, and this instruction can be performed at once.

尚、本実施例では第1のフリップフロップ回路21に割
り込みリセット/マスク信号を入力するようにしたが、
第2図に示すように、第1のフリップフロップ回路21に
CPUからの停電検出信号Eを入力するようにすれば、こ
の割り込みコントロール回路を用いた装置の停電時及び
停電回復時に、無用の割り込みが発生しないようにする
ことができる。
In this embodiment, the interrupt reset / mask signal is input to the first flip-flop circuit 21.
As shown in FIG. 2, the first flip-flop circuit 21
By inputting the power failure detection signal E from the CPU, unnecessary interruption can be prevented from occurring at the time of power failure and recovery from the power failure of the device using this interrupt control circuit.

発明の効果 上述の如く本発明によれば、CPUからの割り込みリセ
ット/マスク命令が入力されたときにこれを保持して出
力する第1のフリップフロップ回路と、この第1のフリ
ップフロップ回路からの割り込みリセット/マスク命令
及び外部からの割り込み要因が入力され第1のフリップ
フロップ回路からの割り込みリセット/マスク命令の内
容に基づいて入力された割り込み要因を出力、リセット
及びマスクする第2のフリップフロップ回路とを備える
構成にしたので、CPUからの命令内容を一本化すること
で、構成を簡易化することができるという効果を有す
る。
Effects of the Invention As described above, according to the present invention, when an interrupt reset / mask command is input from a CPU, the first flip-flop circuit that holds and outputs the command, A second flip-flop circuit which receives an interrupt reset / mask instruction and an external interrupt factor and outputs, resets and masks the interrupt factor input based on the contents of the interrupt reset / mask instruction from the first flip-flop circuit Thus, there is an effect that the configuration can be simplified by unifying the contents of instructions from the CPU.

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

第1図は本発明の一実施例による割り込みコントロール
回路の回路構成を示す回路図、第2図は本発明の他の実
施例による割り込みコントロール回路の回路構成を示す
回路図、第3図は本発明の一実施例による割り込みコン
トロール回路の信号波形図、第4図は従来の割り込みコ
ントロール回路の回路構成を示す回路図、第5図は従来
の割り込みコントロール回路の信号波形図である。 21……第1のフリップフロップ回路、22……第2のフリ
ップフロップ回路、A……割り込み要因、D……割り込
みリセット/マスク命令。
FIG. 1 is a circuit diagram showing a circuit configuration of an interrupt control circuit according to one embodiment of the present invention, FIG. 2 is a circuit diagram showing a circuit configuration of an interrupt control circuit according to another embodiment of the present invention, and FIG. FIG. 4 is a circuit diagram showing a circuit configuration of a conventional interrupt control circuit, and FIG. 5 is a signal waveform diagram of a conventional interrupt control circuit according to one embodiment of the present invention. 21: first flip-flop circuit, 22: second flip-flop circuit, A: interrupt cause, D: interrupt reset / mask instruction.

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.6,DB名) G06F 9/46 G06F 13/24──────────────────────────────────────────────────続 き Continued on front page (58) Field surveyed (Int.Cl. 6 , DB name) G06F 9/46 G06F 13/24

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】中央処理装置からの割り込みリセット/マ
スク命令が入力されたときにこれを保持して出力する第
1のフリップフロップ回路と、 入力される割り込み要因に対して、 上記第1のフリップフロップ回路からの信号が、リセッ
ト、マスクしない旨を示す信号であると入力される上記
割り込み要因を保持し、 上記第1のフリップフロップ回路からの信号が、リセッ
ト、マスクする旨に示す信号であると入力される上記割
り込み要因をリセットし、 上記第1のフリップフロップ回路からの信号が、リセッ
ト、マスクしない旨を示す信号から、リセット、マスク
する旨に示す信号に変化すると保持していた上記割り込
み要因をリセットする第2のフリップフロップ回路とを
備えた割り込みコントロール回路。
A first flip-flop circuit for holding and outputting an interrupt reset / mask instruction from a central processing unit when the interrupt reset / mask instruction is input; The signal from the flip-flop circuit holds the interrupt factor, which is input as a signal indicating that resetting and masking are not performed, and the signal from the first flip-flop circuit is a signal indicating resetting and masking. And resetting the interrupt factor which is input when the signal from the first flip-flop circuit changes from a signal indicating not resetting or masking to a signal indicating resetting or masking. An interrupt control circuit comprising: a second flip-flop circuit for resetting a factor.
JP2169006A 1990-06-27 1990-06-27 Interrupt control circuit Expired - Fee Related JP2814704B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2169006A JP2814704B2 (en) 1990-06-27 1990-06-27 Interrupt control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2169006A JP2814704B2 (en) 1990-06-27 1990-06-27 Interrupt control circuit

Publications (2)

Publication Number Publication Date
JPH04109397A JPH04109397A (en) 1992-04-10
JP2814704B2 true JP2814704B2 (en) 1998-10-27

Family

ID=15878597

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2169006A Expired - Fee Related JP2814704B2 (en) 1990-06-27 1990-06-27 Interrupt control circuit

Country Status (1)

Country Link
JP (1) JP2814704B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6724432B2 (en) 2000-02-04 2004-04-20 Pelco Apparatus and method for transmitting audio over a dedicated video line

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5460537A (en) * 1977-10-24 1979-05-16 Nec Corp Interruption control unit
JPS6041139A (en) * 1983-08-17 1985-03-04 Nec Corp Interruption control circuit
JPS61255439A (en) * 1985-05-08 1986-11-13 Nec Corp Interruption control circuit

Also Published As

Publication number Publication date
JPH04109397A (en) 1992-04-10

Similar Documents

Publication Publication Date Title
JP2814704B2 (en) Interrupt control circuit
JPH0496188A (en) Single chip microcomputer
JP2580673B2 (en) Power control device
JPS607540A (en) Interruption control circuit
JPH0644209B2 (en) Bus converter
JP2871749B2 (en) Coprocessor bus switching circuit
JPH04338835A (en) Interruption control circuit
JPH03201137A (en) Non-maskable interruption instructing signal control circuit
JP2924234B2 (en) Sequence controller
JP2614931B2 (en) Interrupt control circuit
JP2847741B2 (en) Microcomputer
JPS5827219A (en) Feeding device
JP2664109B2 (en) Real-time port
JPH01137355A (en) Output circuit for one-chip microprocessor
JPH01223521A (en) Large scale integrated circuit
JP2000283750A (en) Method for correcting detected-angle data
JPS63298458A (en) Data transfer circuit
JPS59109944A (en) Terminal echo controlling system
JPS62241041A (en) Information processor
JPS63129426A (en) Timer module for data flow type computer
JP2000040015A (en) In-circuit emulator
JPS6158074A (en) Microcomputer
JPH03225484A (en) Microcomputer
JPH01128112A (en) Microprocessor
JPS62296243A (en) Microcomputer

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070814

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080814

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080814

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090814

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees