JPH05289888A - Interruption processing circuit - Google Patents

Interruption processing circuit

Info

Publication number
JPH05289888A
JPH05289888A JP11668292A JP11668292A JPH05289888A JP H05289888 A JPH05289888 A JP H05289888A JP 11668292 A JP11668292 A JP 11668292A JP 11668292 A JP11668292 A JP 11668292A JP H05289888 A JPH05289888 A JP H05289888A
Authority
JP
Japan
Prior art keywords
output
signal
flop
flip
parallel
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.)
Withdrawn
Application number
JP11668292A
Other languages
Japanese (ja)
Inventor
Kaoru Kotoda
薫 古藤田
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.)
Olympus Corp
Original Assignee
Olympus Optical 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 Olympus Optical Co Ltd filed Critical Olympus Optical Co Ltd
Priority to JP11668292A priority Critical patent/JPH05289888A/en
Publication of JPH05289888A publication Critical patent/JPH05289888A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To provide the interruption processing circuit which can output at a high speed a response signal from an input of an interrupting signal irrespective of a state of a CPU. CONSTITUTION:The interruption processing circuit is constituted of a microcomputer 1 for executing an interruption processing, a parallel output port 2 whose output is set by the microcomputer concerned, a flip-flop 3 set by an interruption input signal 3a, a counter 4 to which a counter set value 2b is set by a set value of the parallel output port 2, and which executes a count operation at the time when an output of the flip-flop 3 is '1', and outputs a reset signal 4a to the flip-flop 3 at the time when the count is finished, and a parallel-serial converting circuit 5 for loading the pattern set value 2a from the parallel output port 2 at the time of the output of the flip-flop 3 is '0', and outputting successively a loaded value as output signals 5a1-5an at the time when the output of the flip-flop 3 is '1'.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、割り込み処理回路に
関し、特に割り込み入力から短時間で応答信号出力が得
られるようにした割り込み処理回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an interrupt processing circuit, and more particularly to an interrupt processing circuit which can obtain a response signal output from an interrupt input in a short time.

【0002】[0002]

【従来の技術】従来、マイクロコンピュータへの外部か
らの信号入力による割り込みに対する処理として、外部
に所定のパターンで信号を出力する場合、一般に用いら
れる割り込み処理回路としては、図6に示すような構成
のものがある。すなわち、割り込みコントローラ101
と、パラレルI/Oポート102 と、CPU103 とで割り
込み処理回路を構成している。このように構成されてい
る割り込み処理回路においては、図7の割り込み入力時
の処理のフローチャートに示すように、CPU103は割
り込み信号入力時、割り込み処理ルーチンを実施し、所
定の信号パターン(データ)を、メモリ上のバッファか
ら読み出し、パラレルI/Oポート102 から外部へ所定
の信号パターンとして出力する。なお、図8に、割り込
み信号,CPU動作,出力信号のタイミングチャートを
示す。
2. Description of the Related Art Conventionally, as a process for an interrupt due to an external signal input to a microcomputer, when a signal is output in a predetermined pattern to the outside, a generally used interrupt processing circuit has a structure as shown in FIG. There is one. That is, the interrupt controller 101
The parallel I / O port 102 and the CPU 103 form an interrupt processing circuit. In the interrupt processing circuit configured as described above, as shown in the flowchart of processing at the time of interrupt input in FIG. 7, the CPU 103 executes an interrupt processing routine at the time of input of an interrupt signal, and outputs a predetermined signal pattern (data). , Is read from the buffer on the memory, and is output as a predetermined signal pattern from the parallel I / O port 102 to the outside. Note that FIG. 8 shows a timing chart of the interrupt signal, the CPU operation, and the output signal.

【0003】[0003]

【発明が解決しようとする課題】ところで、従来の割り
込み処理回路においては、図8のタイミングチャートに
示すように、割り込み信号入力時に、CPUにおいて割
り込み受付処理に入り、また割り込み処理時の信号出力
がソフトの制御により行われるため、割り込み信号入力
から応答信号(パターン)の出力までの時間は、割り込
み信号入力時のCPUの状態により変化し、且つ長いた
め、応答信号を受け取る外部回路側で、タイミングの調
整をする必要があった。
By the way, in the conventional interrupt processing circuit, as shown in the timing chart of FIG. 8, when the interrupt signal is input, the CPU accepts the interrupt acceptance processing, and the signal output during the interrupt processing is output. Since it is performed by software control, the time from the input of the interrupt signal to the output of the response signal (pattern) changes depending on the state of the CPU when the interrupt signal is input, and since it is long, the timing on the external circuit side that receives the response signal Had to be adjusted.

【0004】本発明は、従来の割り込み処理回路におけ
る上記問題点を解消するためになされたもので、割り込
み信号入力から応答信号出力までが、短時間の割り込み
処理回路を提供することを目的とする。
The present invention has been made in order to solve the above problems in the conventional interrupt processing circuit, and an object thereof is to provide an interrupt processing circuit in which the interrupt signal input to the response signal output is short. ..

【0005】[0005]

【課題を解決するための手段及び作用】上記問題点を解
決するため、本発明は、割り込み処理を行うマイクロコ
ンピュータと、該マイクロコンピュータにより出力を設
定するパラレル出力ポートと、割り込み入力信号により
セットされるフリップフロップと、前記パラレル出力ポ
ートの設定値によりカウント値がセットされ、前記フリ
ップフロップの出力がアクティブのときにカウント動作
を行い、カウント終了で前記フリップフロップへのリセ
ット信号を出力するカウンタと、前記フリップフロップ
の出力がインアクティブのとき、パラレル出力ポートか
ら値をロードし、フリップフロップの出力がアクティブ
のときにロードした値を順次出力するパラレルシリアル
変換回路とで割り込み処理回路を構成するものである。
In order to solve the above problems, the present invention is directed to a microcomputer for performing interrupt processing, a parallel output port for setting an output by the microcomputer, and an interrupt input signal. A flip-flop, and a counter that sets a count value by the set value of the parallel output port, performs a counting operation when the output of the flip-flop is active, and outputs a reset signal to the flip-flop at the end of counting; When the output of the flip-flop is inactive, a value is loaded from a parallel output port, and when the output of the flip-flop is active, a parallel-serial conversion circuit that sequentially outputs the loaded value constitutes an interrupt processing circuit. is there.

【0006】このように構成された割り込み処理回路に
おいては、割り込み処理時に出力する所定の信号パター
ン及びその長さを、パラレル出力ポートに予め設定する
ことができ、割り込み信号の入力に同期して、パラレル
出力ポートに設定された信号パターンがカウンタに設定
した長さ分出力される。したがって割り込み信号入力か
ら応答信号出力までを、マイクロコンピュータの状態に
関係なく短時間とすることができる。
In the interrupt processing circuit thus constructed, the predetermined signal pattern and its length to be output at the time of interrupt processing can be preset in the parallel output port, and in synchronization with the input of the interrupt signal, The signal pattern set in the parallel output port is output by the length set in the counter. Therefore, the time from the input of the interrupt signal to the output of the response signal can be shortened regardless of the state of the microcomputer.

【0007】[0007]

【実施例】次に実施例について説明する。図1は、本発
明に係る割り込み処理回路の基本的な実施例を示すブロ
ック構成図である。図において、1は割り込み処理を行
うマイクロコンピュータ(CPU)で、2は該マイクロ
コンピュータ1により出力が設定されるパラレル出力ポ
ートである。3は割り込み信号3aの入力によりセット
され、後述のカウンタ出力(キャリー)であるリセット
信号4aによりリセットされるフリップフロップであ
り、4はカウンタで、前記パラレル出力ポート2の設定
値により、カウンタ設定値2bがセットされ、前記フリ
ップフロップ3の出力が1のときにカウント動作を行
い、カウント終了で前記フリップフロップ3へのリセッ
ト信号4aを出力するようになっている。5はパラレル
シリアル変換回路で、前記フリップフロップ3の出力が
0のとき、パラレル出力ポート2からのパターン設定値
2aをロードし、フリップフロップ3の出力が1のとき
に、ロードしたパターン設定値2aを順次出力信号5a
1 ,5a2 ,・・・ 5an として出力するものである。
EXAMPLES Next, examples will be described. FIG. 1 is a block diagram showing a basic embodiment of an interrupt processing circuit according to the present invention. In FIG. 1, reference numeral 1 is a microcomputer (CPU) that performs interrupt processing, and 2 is a parallel output port to which an output is set by the microcomputer 1. Reference numeral 3 is a flip-flop that is set by the input of the interrupt signal 3a and is reset by a reset signal 4a which is a counter output (carry) described later. Reference numeral 4 is a counter, which is a counter set value depending on the set value of the parallel output port 2. When 2b is set and the output of the flip-flop 3 is 1, the counting operation is performed, and the reset signal 4a is output to the flip-flop 3 when the counting is completed. Reference numeral 5 denotes a parallel-serial conversion circuit, which loads the pattern setting value 2a from the parallel output port 2 when the output of the flip-flop 3 is 0, and loads the pattern setting value 2a when the output of the flip-flop 3 is 1. Output signal 5a
It is output as 1 , 5a 2 , ..., 5a n .

【0008】次に、このように構成された割り込み処理
回路の動作を、図2に示したフローチャート及び図3に
示したタイミングチャートを参照しながら説明する。C
PU1は、割り込み処理時に出力する所定の信号パター
ン及びその長さを、予めパラレル出力ポート2に設定し
ておく。そして、その長さの設定値に基づいてカウンタ
4にはカウンタ設定値2bがセットされ、またパラレル
シリアル変換回路5には、パラレル出力ポート2に設定
された信号パターンに基づくパターン設定値2aがロー
ドされている。
Next, the operation of the interrupt processing circuit thus constructed will be described with reference to the flow chart shown in FIG. 2 and the timing chart shown in FIG. C
The PU 1 sets a predetermined signal pattern to be output at the time of interrupt processing and its length in the parallel output port 2 in advance. Then, the counter set value 2b is set in the counter 4 based on the set value of the length, and the pattern set value 2a based on the signal pattern set in the parallel output port 2 is loaded in the parallel-serial conversion circuit 5. Has been done.

【0009】この状態において、割り込み信号3aがフ
リップフロップ3に入力されると、パラレルシリアル変
換回路5にロードされたパターン設定値2aは、カウン
タ4に設定されたカウンタ設定値分、出力信号5a1
5a2 ,・・・ 5an として出力される。そしてソフトに
よる割り込み処理ルーチンでは、次回に出力する信号パ
ターン及びその長さを、パラレル出力ポート2に設定す
る。このように、CPUにより予め設定された信号パタ
ーンを、割り込み入力信号に同期して、CPUの状態に
関係なく短時間で出力させることができる。
In this state, when the interrupt signal 3a is input to the flip-flop 3, the pattern set value 2a loaded into the parallel-serial conversion circuit 5 is the output signal 5a 1 corresponding to the counter set value set in the counter 4. ,
5a 2 , ..., 5a n are output. Then, in the software interrupt processing routine, the signal pattern to be output next time and its length are set in the parallel output port 2. In this way, the signal pattern preset by the CPU can be output in a short time in synchronization with the interrupt input signal regardless of the state of the CPU.

【0010】次に、具体的な実施例を図4に基づいて説
明する。この実施例は、外部タイミング信号に同期し
て、外部回路に対しデータのライト信号及びラッチ信号
を出力するものである。図4において、11は割り込み処
理を行うCPU、12はCPU11から出力されるアドレス
信号11bを入力するデコーダ、13はCPU11から出力さ
れるデータ11cを入力し出力データ13aを出力する8ビ
ットラッチ、14は同じくCPU11から出力されるデータ
11cを入力しCSパターン14a及びWEパターン14bを
出力する8ビットラッチ、15は同じくCPU11から出力
されるデータ11cを入力しカウント設定値15aを出力す
る8ビットラッチである。
Next, a specific embodiment will be described with reference to FIG. In this embodiment, a data write signal and a latch signal are output to an external circuit in synchronization with an external timing signal. In FIG. 4, 11 is a CPU that performs interrupt processing, 12 is a decoder that inputs the address signal 11b output from the CPU 11, 13 is an 8-bit latch that inputs data 11c output from the CPU 11 and outputs output data 13a, 14 Is also the data output from CPU11
An 8-bit latch that inputs 11c and outputs a CS pattern 14a and a WE pattern 14b, and 15 is an 8-bit latch that inputs the data 11c output from the CPU 11 and outputs a count set value 15a.

【0011】16は前記ラッチ14からのWEパターン14b
を入力しWE出力信号16aを出力するシフトレジスタ
で、17は同じく前記ラッチ14からのCSパターン14aを
入力しCS出力信号17aを出力するシフトレジスタであ
る。18は前記ラッチ15からのカウント設定値15aを入力
しキャリ出力18bを出力する4ビットカウンタ、19は割
り込み信号19aを入力し割り込みラッチ信号19bを出力
するDフリップフロップ、20は前記Dフリップフロップ
19の割り込みラッチ信号19bを入力し、前記シフトレジ
スタ16,17及びカウンタ18へロード信号20aを出力する
Dフリップフロップであり、21は前記カウンタ18のキャ
リ出力18bを入力し、RCO同期信号21aを前記Dフリ
ップフロップ19へ出力するDフリップフロップである。
なお図4において、11aはCPUライト信号、18aはシ
ステムクロック、18cはカウント値を示す。
Reference numeral 16 is a WE pattern 14b from the latch 14.
Is a shift register for inputting the WE output signal 16a, and 17 is a shift register for inputting the CS pattern 14a from the latch 14 and outputting the CS output signal 17a. 18 is a 4-bit counter which inputs the count set value 15a from the latch 15 and outputs a carry output 18b, 19 is a D flip-flop which inputs an interrupt signal 19a and outputs an interrupt latch signal 19b, and 20 is the D flip-flop
A D flip-flop 21 receives an interrupt latch signal 19b of 19 and outputs a load signal 20a to the shift registers 16 and 17 and a counter 18, and 21 receives a carry output 18b of the counter 18 and outputs an RCO synchronization signal 21a. It is a D flip-flop that outputs to the D flip-flop 19.
In FIG. 4, 11a indicates a CPU write signal, 18a indicates a system clock, and 18c indicates a count value.

【0012】次に、このように構成された割り込み処理
回路における動作を、図5に示すタイミングチャートを
参照しながら説明する。この実施例における割り込み処
理では、タイミングチャートに示すように、ラッチ13に
転送する出力データ13aを、ラッチ14にWEパターン14
b及びCSパターン14aを、ラッチ15にパターンの長さ
(カウンタ設定値15a)を設定する。図5に示したタイ
ミングチャートは、2回割り込み信号が入力した場合の
動作を説明するものであるが、まずはじめは、ラッチ13
に転送データ08H(16進数)、ラッチ14にパターン66
H(CS=0110,WE=0110)、ラッチ15にパ
ターン長0EHが書き込まれている状態で、割り込み信
号(転送イネーブル)19aが入力する。これにより各部
の信号が出力し、且つCPU11の割り込み処理により、
ラッチ13に転送データ0AH、ラッチ14にパターン72H
(CS=0111,WE=0010)、ラッチ15にパタ
ーン長0EHが書き込まれる。更に、これらの値がセッ
トされた状態で、2度目の割り込みが入力される態様を
示している。
Next, the operation of the interrupt processing circuit thus constructed will be described with reference to the timing chart shown in FIG. In the interrupt processing in this embodiment, as shown in the timing chart, the output data 13a to be transferred to the latch 13 is transferred to the latch 14 by the WE pattern 14.
b and the CS pattern 14a, the pattern length (counter set value 15a) is set in the latch 15. The timing chart shown in FIG. 5 explains the operation when the interrupt signal is input twice. First, the latch 13
Transfer data 08H (hexadecimal number) to latch 14, pattern 66 to latch 14
H (CS = 0110, WE = 0110) and the interrupt signal (transfer enable) 19a is input while the pattern length 0EH is written in the latch 15. As a result, the signals of the respective parts are output, and by the interrupt processing of the CPU 11,
Transfer data 0AH in latch 13, pattern 72H in latch 14
(CS = 0111, WE = 0010), the pattern length 0EH is written in the latch 15. Furthermore, a mode in which a second interrupt is input with these values set is shown.

【0013】割り込み信号19aが入力されると、カウン
タ18,シフトレジスタ16,17がそれぞれイネーブルにな
り、カウンタ18はカウントを開始し、シフトレジスタ1
6,17は、設定したパターンを、システムクロックに同
期してCS出力信号17a及びWE出力信号16aとして出
力する。このように、CPUにより、設定された任意の
パターンのライト信号及びデータを、割り込み入力信号
に同期して送出することが可能となる。
When the interrupt signal 19a is input, the counter 18 and the shift registers 16 and 17 are enabled, the counter 18 starts counting, and the shift register 1
6 and 17 output the set pattern as a CS output signal 17a and a WE output signal 16a in synchronization with the system clock. As described above, the CPU can send the write signal and the data of the set arbitrary pattern in synchronization with the interrupt input signal.

【0014】[0014]

【発明の効果】以上実施例に基づいて説明したように、
本発明によれば、割り込み信号の入力から応答信号を、
CPUの状態に関係なく高速で出力させることができ
る。
As described above on the basis of the embodiments,
According to the present invention, the response signal from the input of the interrupt signal,
It is possible to output at high speed regardless of the state of the CPU.

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

【図1】本発明に係る割り込み処理回路の基本的な実施
例を示すブロック構成図である。
FIG. 1 is a block configuration diagram showing a basic embodiment of an interrupt processing circuit according to the present invention.

【図2】図1に示した実施例の動作を説明するためのフ
ローチャートである。
FIG. 2 is a flowchart for explaining the operation of the embodiment shown in FIG.

【図3】図1に示した実施例の動作を説明するためのタ
イミングチャートである。
FIG. 3 is a timing chart for explaining the operation of the embodiment shown in FIG.

【図4】本発明の具体的な実施例を示す回路構成図であ
る。
FIG. 4 is a circuit configuration diagram showing a specific embodiment of the present invention.

【図5】図4に示した実施例の動作を説明するためのタ
イミングチャートである。
5 is a timing chart for explaining the operation of the embodiment shown in FIG.

【図6】従来の割り込み処理回路の構成例を示すブロッ
ク構成図である。
FIG. 6 is a block configuration diagram showing a configuration example of a conventional interrupt processing circuit.

【図7】図6に示した割り込み処理回路の動作を説明す
るためのフローチャートである。
FIG. 7 is a flowchart for explaining the operation of the interrupt processing circuit shown in FIG.

【図8】図6に示した割り込み処理回路の動作を説明す
るためのタイミングチャートである。
FIG. 8 is a timing chart for explaining the operation of the interrupt processing circuit shown in FIG.

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

1 マイクロコンピュータ 2 パラレル出力ポート 3 フリップフロップ 4 カウンタ 5 パラレルシリアル変換回路 1 Microcomputer 2 Parallel output port 3 Flip-flop 4 Counter 5 Parallel-serial conversion circuit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 割り込み処理を行うマイクロコンピュー
タと、該マイクロコンピュータにより出力を設定するパ
ラレル出力ポートと、割り込み入力信号によりセットさ
れるフリップフロップと、前記パラレル出力ポートの設
定値によりカウント値がセットされ、前記フリップフロ
ップの出力がアクティブのときにカウント動作を行い、
カウント終了で前記フリップフロップへのリセット信号
を出力するカウンタと、前記フリップフロップの出力が
インアクティブのとき、パラレル出力ポートから値をロ
ードし、フリップフロップの出力がアクティブのときに
ロードした値を順次出力するパラレルシリアル変換回路
とを備えていることを特徴とする割り込み処理回路。
1. A microcomputer for performing interrupt processing, a parallel output port for setting an output by the microcomputer, a flip-flop set by an interrupt input signal, and a count value set by a set value of the parallel output port. , Counting operation is performed when the output of the flip-flop is active,
A counter that outputs a reset signal to the flip-flop at the end of counting and a value is loaded from the parallel output port when the output of the flip-flop is inactive, and the loaded value is sequentially when the output of the flip-flop is active. An interrupt processing circuit comprising a parallel-serial conversion circuit for outputting.
JP11668292A 1992-04-10 1992-04-10 Interruption processing circuit Withdrawn JPH05289888A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11668292A JPH05289888A (en) 1992-04-10 1992-04-10 Interruption processing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11668292A JPH05289888A (en) 1992-04-10 1992-04-10 Interruption processing circuit

Publications (1)

Publication Number Publication Date
JPH05289888A true JPH05289888A (en) 1993-11-05

Family

ID=14693268

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11668292A Withdrawn JPH05289888A (en) 1992-04-10 1992-04-10 Interruption processing circuit

Country Status (1)

Country Link
JP (1) JPH05289888A (en)

Similar Documents

Publication Publication Date Title
JPH1083303A (en) Electronic circuit and method for using coprocessor
JPH05289888A (en) Interruption processing circuit
JPH04242322A (en) A/d converter
JPH10171654A (en) Fast data arithmetic processor
JPH04323755A (en) Dma device
JP2521535B2 (en) Data transfer circuit
JPS59123957A (en) Digital signal arithmetic device
JPH0573296A (en) Microcomputer
JPS6242301B2 (en)
JPH0363863A (en) Microcomputer
JP3221003B2 (en) I / O port
JP2635863B2 (en) Central processing unit
JPH0628151A (en) Parallel latch circuit for serial data
JPH11143819A (en) Bus size circuit
JPH04101263A (en) Clock equipment
JPH02252047A (en) Microprocessor
JPS6152738A (en) Arithmetic unit
JPS6369326A (en) Data converter
JPH04255056A (en) Dma controller
JPH0850567A (en) Data transfer device
JPH06301641A (en) Electronic computer
JPH05314059A (en) Memory access control circuit
JPH0285951A (en) Input/output bus cycle control system
JPH02208727A (en) Information processor
JPH06197010A (en) Counter with output latch function

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990706