JPH06187167A - Interruption control circuit and interruption control system - Google Patents

Interruption control circuit and interruption control system

Info

Publication number
JPH06187167A
JPH06187167A JP34012192A JP34012192A JPH06187167A JP H06187167 A JPH06187167 A JP H06187167A JP 34012192 A JP34012192 A JP 34012192A JP 34012192 A JP34012192 A JP 34012192A JP H06187167 A JPH06187167 A JP H06187167A
Authority
JP
Japan
Prior art keywords
interrupt
interrupt request
external circuit
request
external
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
JP34012192A
Other languages
Japanese (ja)
Inventor
Takeo Nakabayashi
竹雄 中林
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 JP34012192A priority Critical patent/JPH06187167A/en
Publication of JPH06187167A publication Critical patent/JPH06187167A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide an interruption control circuit and an interruption control system made possible of suppressing the number of input terminals for interruption use to the minimum required and coping with more interruption requests. CONSTITUTION:The interruption request signals 4a-4f of external circuits 3a-3f are connected so as to be imparted to the registers 5a-5f of a register circuit 50 and also connected so as to be imparted to an OR circuit 6. The register circuit 50 is readably and writably connected with a CPU 1 and the OR circuit 6 outputs the OR signals 7 of the interruption request signals 4a-4f to the input terminal 2a for the interruption use. Since interruption processings for the plural external circuits can be executed by providing just one input terminal for the interruption use, a lot of the interruption requests can be coped with while the number of the input terminals for the interruption is suppressed to the minimum required.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、外部回路からの割り
込み要求に対する割り込み処理を制御する割り込み制御
回路及び割り込み制御方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an interrupt control circuit and an interrupt control method for controlling interrupt processing in response to an interrupt request from an external circuit.

【0002】[0002]

【従来の技術】図11は、従来の割り込み制御回路の構
成を示す回路図である。同図に示すように、複数の外部
回路3a〜3cそれぞれからの割り込み要求信号4a〜
4cが、CPU1の割り込み用入力端子2a〜2cに付
与されるように構成されている。なお、図示しないが、
CPU1は、外部回路3a〜3cに対する割り込み処理
が実行可能となるように、外部回路3a〜3cと接続さ
れている。
2. Description of the Related Art FIG. 11 is a circuit diagram showing a configuration of a conventional interrupt control circuit. As shown in the figure, the interrupt request signals 4a to 4c from the plurality of external circuits 3a to 3c, respectively.
4c is provided to the interrupt input terminals 2a to 2c of the CPU 1. Although not shown,
The CPU 1 is connected to the external circuits 3a to 3c so that the interrupt processing for the external circuits 3a to 3c can be executed.

【0003】外部回路3a〜3cの割り込み要求信号4
a〜4cが、割り込み用入力端子2a〜2cを介してC
PU1に付与されると、CPU1は割り込み要求信号4
を受けた外部回路3に対し割り込み処理を行う。
Interrupt request signal 4 of external circuits 3a-3c
a to 4c are connected to C via the interrupt input terminals 2a to 2c.
When assigned to PU1, the CPU1 causes the interrupt request signal 4
The interrupt processing is performed on the external circuit 3 that has received the signal.

【0004】[0004]

【発明が解決しようとする課題】従来の割り込み制御回
路は以上のように構成されており、1つの割り込み要求
に対し、1つの割り込み用入力端子2が割り当てられる
構成であったため、CPU1の割り込み用入力端子2の
数以上の割り込みを処理することができなかった。
The conventional interrupt control circuit is configured as described above, and one interrupt input terminal 2 is assigned to one interrupt request. More interrupts than the number of input terminals 2 could not be processed.

【0005】一方、CPU1は、LSIのチップサイ
ズ、パッケージサイズ、また価格の面から、一般に端子
数の制約を受けるため、端子数を増加させることは困難
である。したがって、多数の割り込み処理に対応すべく
割り込み用入力端子数を増加させることは現実的ではな
い。
On the other hand, the CPU 1 is generally restricted in the number of terminals in terms of the chip size, package size, and price of the LSI, and it is difficult to increase the number of terminals. Therefore, it is not realistic to increase the number of interrupt input terminals in order to handle a large number of interrupt processes.

【0006】この発明は上記問題点を解決するためにな
されたもので、割り込み用入力端子数を必要最小限に抑
え、かつより多くの割り込み要求に対応できる割り込み
制御回路及び割り込み制御方式を得ることを目的とす
る。
The present invention has been made in order to solve the above problems, and provides an interrupt control circuit and an interrupt control system in which the number of interrupt input terminals is kept to a necessary minimum and more interrupt requests can be handled. With the goal.

【0007】[0007]

【課題を解決するための手段】この発明にかかる請求項
1記載の割り込み制御回路は、CPU入力割り込み要求
信号を取り込む割り込み用入力端子を有し、複数の外部
回路それぞれに対する割り込み処理が実行可能なCPU
と、前記複数の外部回路に対応して設けられ、前記複数
の外部回路からの複数の割り込み要求信号を格納データ
として格納する複数のレジスタからなる記憶手段と、前
記複数の割り込み要求信号を受け、前記複数の割り込み
要求信号の少なくとも1つが割り込み要求を指示すると
き、割り込み要求を指示する前記CPU入力割り込み要
求信号を前記割り込み用入力端子に出力する割り込み要
求制御手段を備え、前記CPUは、前記記憶手段の前記
複数のレジスタそれぞれに対し、前記格納データの読み
書き可能に接続される。
An interrupt control circuit according to a first aspect of the present invention has an interrupt input terminal for fetching a CPU input interrupt request signal and is capable of executing interrupt processing for each of a plurality of external circuits. CPU
A storage unit provided corresponding to the plurality of external circuits and configured to store a plurality of interrupt request signals from the plurality of external circuits as stored data; and a plurality of the interrupt request signals, When at least one of the plurality of interrupt request signals indicates an interrupt request, the CPU input interrupt request signal indicating the interrupt request is output to the interrupt input terminal, the interrupt request control means is provided, and the CPU stores the memory. The stored data is readable and writable to each of the plurality of registers of the means.

【0008】この発明にかかる請求項2記載の割り込み
制御方式は、請求項1記載の割り込み制御回路を用い、
前記CPU入力割り込み要求信号が割り込み要求を指示
する時の制御方式であって、(a) 前記記憶手段の前記複
数のレジスタの格納データを読み出して、前記複数の外
部回路のうち、割り込み要求を行った外部回路を割り込
み要求外部回路として特定するステップと、(b) 前記割
り込み要求外部回路に対して割り込み処理を行うステッ
プと、(c) 前記割り込み要求外部回路の前記割り込み要
求信号の割り込み要求指示をクリアするとともに、前記
複数のレジスタのうち、前記割り込み要求外部回路に対
応するレジスタの前記格納データの割り込み要求指示を
クリアするステップとを備えて構成される。
An interrupt control system according to a second aspect of the present invention uses the interrupt control circuit according to the first aspect,
A control method when the CPU input interrupt request signal indicates an interrupt request, wherein: (a) data stored in the plurality of registers of the storage unit is read and an interrupt request is made among the plurality of external circuits. Specifying an external circuit as an interrupt request external circuit, (b) performing an interrupt process for the interrupt request external circuit, and (c) an interrupt request instruction of the interrupt request signal of the interrupt request external circuit. And clearing the interrupt request instruction of the stored data of the register corresponding to the interrupt request external circuit among the plurality of registers.

【0009】望ましくは、請求項3記載の割り込み制御
方式のように、前記複数の外部回路に対する割り込み処
理は予め優先順位が設定されており、前記ステップ(a)
は、前記優先順位に基づく順序で、前記割り込み要求外
部回路の特定処理を行う。
Preferably, as in the interrupt control method according to claim 3, priorities are set in advance for interrupt processing for the plurality of external circuits, and the step (a) is performed.
Performs the specifying process of the interrupt request external circuit in the order based on the priority order.

【0010】望ましくは、請求項4記載の割り込み制御
方式のように、前記ステップ(a) は、所定の特定処理順
序に基づき、前回特定した割り込み要求外部回路の次に
順序設定された外部回路から、割り込み要求外部回路の
特定処理を行う。
Preferably, in the interrupt control method according to the fourth aspect, the step (a) is performed based on a predetermined specific processing order from an external circuit next to the interrupt request external circuit specified last time. , Interrupt request Performs specific processing of the external circuit.

【0011】この発明にかかる請求項5記載の割り込み
制御方式は、請求項1記載の割り込み制御回路を用い、
前記CPU入力割り込み要求信号が割り込み要求を指示
する時、前記複数の外部回路それぞれに対する実際の割
り込み処理を行う複数の割り込み処理タスクと、前記割
り込み処理タスクの実行を制御する割り込みハンドラと
を独立に実行する方式であって、前記割り込みハンドラ
は、(a) 前記記憶手段の前記複数のレジスタの格納デー
タを読み出して、前記複数の外部回路のうち、割り込み
要求を行った外部回路を割り込み要求外部回路として特
定するステップと、(b) 前記複数の割り込み処理タスク
のうち、前記割り込み要求外部回路用の割り込み処理タ
スクを実行可能状態にするステップと、(c) 前記割り込
み要求外部回路の前記割り込み要求信号の割り込み要求
指示をクリアするとともに、前記複数のレジスタのう
ち、前記割り込み要求外部回路に対応するレジスタの前
記格納データの割り込み要求指示をクリアするステップ
とを備え、前記割り込み要求外部回路用の前記割り込み
処理タスクは、実行可能状態になると、前記割り込み要
求外部回路に対する割り込み処理を実行する。
An interrupt control system according to a fifth aspect of the present invention uses the interrupt control circuit according to the first aspect,
When the CPU input interrupt request signal indicates an interrupt request, a plurality of interrupt processing tasks that perform actual interrupt processing for each of the plurality of external circuits and an interrupt handler that controls the execution of the interrupt processing tasks are independently executed. In the method, the interrupt handler reads (a) the data stored in the plurality of registers of the storage unit, and of the plurality of external circuits, an external circuit that has made an interrupt request is used as an interrupt request external circuit. A step of specifying, (b) of the plurality of interrupt processing tasks, a step of enabling an interrupt processing task for the interrupt request external circuit, and (c) the interrupt request signal of the interrupt request external circuit. Clears the interrupt request instruction, and selects the above-mentioned interrupt request among the plurality of registers. A step of clearing an interrupt request instruction of the stored data of the register corresponding to the circuit, and the interrupt processing task for the interrupt request external circuit executes an interrupt process for the interrupt request external circuit when the task becomes executable. To do.

【0012】望ましくは、請求項6記載の割り込み制御
方式のように、外部回路に対する割り込み処理は予め優
先順位が設定されており、前記ステップ(a) は、前記優
先順位に基づく順序で、前記割り込み要求外部回路の特
定処理を行う。
Preferably, as in the interrupt control method according to claim 6, priorities are set in advance for interrupt processing for external circuits, and in the step (a), the interrupt processing is performed in an order based on the priority. Performs specified processing of the requested external circuit.

【0013】望ましくは、請求項7記載の割り込み制御
方式のように、前記複数の割り込み処理タスクは予め優
先順位が設定されており、2つ以上の割り込み処理タス
クが同時に実行可能状態になった場合、前記優先順位に
基づく順序で割り込み処理タスクを実行する。
Preferably, as in the interrupt control method according to claim 7, when the plurality of interrupt processing tasks have priorities set in advance, and two or more interrupt processing tasks are simultaneously ready for execution. , Execute interrupt processing tasks in the order based on the priority.

【0014】この発明にかかる請求項8記載の割り込み
制御回路は、CPU入力割り込み要求信号を取り込む割
り込み用入力端子と、汎用の入出力回路と入出力データ
の授受を行うとともに、複数の外部回路からの複数の割
り込み要求信号が付与される複数の汎用入出力ポートと
を有し、前記複数の外部回路それぞれに対する割り込み
処理が実行可能なCPUと、前記複数の割り込み要求信
号を受け、前記複数の割り込み要求信号の少なくとも1
つが割り込み要求を指示するとき、割り込み要求を指示
する前記CPU入力割り込み要求信号を前記割り込み用
入力端子に出力する割り込み要求制御手段とを備えて構
成される。
According to another aspect of the present invention, there is provided an interrupt control circuit for transmitting / receiving input / output data to / from a general-purpose input / output circuit and an interrupt input terminal for fetching a CPU input interrupt request signal. A plurality of general-purpose input / output ports to which a plurality of interrupt request signals are given, capable of executing interrupt processing for each of the plurality of external circuits, and a plurality of interrupts that receive the plurality of interrupt request signals. At least one of the request signals
And an interrupt request control means for outputting the CPU input interrupt request signal instructing an interrupt request to the interrupt input terminal.

【0015】この発明にかかる請求項9記載の割り込み
制御方式は、請求項8記載の割り込み制御回路を用い、
前記CPU入力割り込み要求信号が割り込み要求を指示
する時の制御方式であって、(a) 前記複数の汎用入出力
ポートに付与される前記複数の割り込み要求信号の信号
レベルを読み出して、前記複数の外部回路のうち、割り
込み要求を行った外部回路を割り込み要求外部回路とし
て特定するステップと、(b) 前記割り込み要求外部回路
に対して割り込み処理を行うステップと、(c)前記割り
込み要求外部回路の前記割り込み要求信号の割り込み要
求指示をクリアするステップとを備える。
An interrupt control system according to a ninth aspect of the present invention uses the interrupt control circuit according to the eighth aspect.
A control method when the CPU input interrupt request signal indicates an interrupt request, comprising: (a) reading the signal levels of the plurality of interrupt request signals provided to the plurality of general-purpose input / output ports, Among the external circuits, a step of specifying the external circuit that has made an interrupt request as an interrupt request external circuit; (b) a step of performing an interrupt process for the interrupt request external circuit; and (c) the interrupt request external circuit. Clearing the interrupt request instruction of the interrupt request signal.

【0016】望ましくは、請求項10記載の割り込み制
御方式のように、前記複数の外部回路に対する割り込み
処理は予め優先順位が設定されており、前記ステップ
(a) は、前記優先順位に基づく順序で、前記割り込み要
求外部回路の特定処理を行う。
Preferably, as in the interrupt control method according to claim 10, priorities are set in advance for interrupt processing for the plurality of external circuits, and the step
(a) performs the process of identifying the interrupt request external circuit in the order based on the priority.

【0017】望ましくは、請求項11記載の割り込み制
御方式のように、前記ステップ(a)は、所定の特定処理
順序に基づき、前回特定した割り込み要求外部回路の次
に順序設定された外部回路から、割り込み要求外部回路
の特定処理を行う。
Preferably, in the interrupt control method according to the eleventh aspect, the step (a) is performed from an external circuit arranged next to the interrupt request external circuit specified last time based on a predetermined specific processing order. , Interrupt request Performs specific processing of the external circuit.

【0018】この発明にかかる請求項12記載の割り込
み制御方式は、請求項8記載の割り込み制御回路を用
い、前記CPU入力割り込み要求信号が割り込み要求を
指示する時、前記複数の外部回路それぞれに対する実際
の割り込み処理を行う複数の割り込み処理タスクと、前
記割り込み処理タスクの実行を制御する割り込みハンド
ラとを独立に実行する方式であって、前記割り込みハン
ドラは、(a) 前記複数の汎用入出力ポートに付与される
前記複数の割り込み要求信号の信号レベルを読み出し
て、前記複数の外部回路のうち、割り込み要求を行った
外部回路を割り込み要求外部回路として特定するステッ
プと、(b) 前記複数の割り込み処理タスクのうち、前記
割り込み要求外部回路用の割り込み処理タスクを実行可
能状態にするステップと、(c) 前記割り込み要求外部回
路の前記割り込み要求信号の割り込み要求指示をクリア
するステップとを備え、前記割り込み要求外部回路用の
前記割り込み処理タスクは、実行可能状態になると、前
記割り込み要求外部回路に対する割り込み処理を実行す
る。
An interrupt control system according to a twelfth aspect of the present invention uses the interrupt control circuit according to the eighth aspect, and when the CPU input interrupt request signal indicates an interrupt request, an actual operation for each of the plurality of external circuits is performed. A method of independently executing a plurality of interrupt processing tasks for performing the interrupt processing and an interrupt handler for controlling the execution of the interrupt processing tasks, wherein the interrupt handler is (a) Reading the signal levels of the plurality of interrupt request signals that are given, and specifying the external circuit that has made an interrupt request among the plurality of external circuits as an interrupt request external circuit; and (b) the plurality of interrupt processes. Among the tasks, a step of enabling the interrupt processing task for the interrupt request external circuit, (c) clearing an interrupt request instruction of the interrupt request signal of the interrupt request external circuit, the interrupt processing task for the interrupt request external circuit, to the interrupt request external circuit when the ready state Execute interrupt processing.

【0019】望ましくは、請求項13記載の割り込み制
御方式のように、外部回路に対する割り込み処理は予め
優先順位が設定されており、前記ステップ(a) は、前記
優先順位に基づく順序で、前記割り込み要求外部回路の
特定処理を行う。
Preferably, as in the interrupt control method according to the thirteenth aspect, priorities are set in advance for interrupt processing for external circuits, and in the step (a), the interrupt processing is performed in an order based on the priority order. Performs specified processing of the requested external circuit.

【0020】望ましくは、請求項14記載の割り込み制
御方式のように、前記複数の割り込み処理タスクは予め
優先順位が設定されており、2つ以上の割り込み処理タ
スクが同時に実行可能状態になった場合、前記優先順位
に基づく順序で割り込み処理タスクを実行する。
Preferably, as in the interrupt control method according to claim 14, when the plurality of interrupt processing tasks have priorities set in advance, and two or more interrupt processing tasks are simultaneously ready for execution. , Execute interrupt processing tasks in the order based on the priority.

【0021】[0021]

【作用】この発明における請求項1記載の割り込み制御
回路のCPUは、記憶手段の複数のレジスタそれぞれに
対し、格納データの読み書き可能に接続されているた
め、記憶手段を介して複数の外部回路の割り込み要求信
号が割り込み要求を指示するか否かを検出することがで
きる。
Since the CPU of the interrupt control circuit according to the first aspect of the present invention is connected to each of the plurality of registers of the storage means so that the stored data can be read and written, the CPU of the plurality of external circuits is connected via the storage means. It is possible to detect whether the interrupt request signal indicates an interrupt request.

【0022】したがって、請求項2記載の割り込み制御
方式のように、CPU入力割り込み要求信号が割り込み
要求を指示する時、記憶手段の複数のレジスタの格納デ
ータを読み出して、複数の外部回路のうち、割り込み要
求を行った外部回路を割り込み要求外部回路として特定
することができる。
Therefore, when the CPU input interrupt request signal indicates an interrupt request as in the interrupt control method according to the second aspect of the present invention, the data stored in the plurality of registers of the storage means are read out to select one of the plurality of external circuits. The external circuit that has issued the interrupt request can be specified as the interrupt request external circuit.

【0023】なお、記憶手段と読み書き可能に接続する
のに必要とする入出力端子は、本来接続されるべき外部
記憶装置用の入出力端子を共用することができるため、
新たに設ける必要はない。
It should be noted that the input / output terminals required for connecting to the storage means in a readable and writable manner can share the input / output terminals for the external storage device which should be originally connected.
There is no need to newly install it.

【0024】また、請求項5記載の割り込み制御方式の
ように、複数の外部回路それぞれに対する実際の割り込
み処理を行う複数の割り込み処理タスクと、割り込み処
理タスクの実行を制御する割り込みハンドラとを独立に
実行することもできる。
Further, as in the interrupt control method according to the fifth aspect, a plurality of interrupt processing tasks that perform actual interrupt processing for each of the plurality of external circuits and an interrupt handler that controls the execution of the interrupt processing tasks are independently provided. You can also do it.

【0025】この発明における請求項8記載の割り込み
制御回路のCPUは、複数の汎用入出力ポートに複数の
外部回路からの複数の割り込み要求信号が付与されるた
め、複数の汎用入出力ポートを介して複数の外部回路の
割り込み要求信号が割り込み要求を指示するか否かを検
出することができる。
In the CPU of the interrupt control circuit according to claim 8 of the present invention, since a plurality of interrupt request signals from a plurality of external circuits are given to the plurality of general-purpose input / output ports, a plurality of general-purpose input / output ports are used. It is possible to detect whether or not the interrupt request signals of the plurality of external circuits indicate the interrupt request.

【0026】したがって、請求項9記載の割り込み制御
方式のように、CPU入力割り込み要求信号が割り込み
要求を指示する時、複数の汎用入出力ポートに付与され
る前記複数の割り込み要求信号の信号レベルを読み出し
て、複数の外部回路のうち、割り込み要求を行った外部
回路を割り込み要求外部回路として特定することができ
る。
Therefore, when the CPU input interrupt request signal indicates an interrupt request as in the interrupt control system according to the ninth aspect, the signal levels of the plurality of interrupt request signals given to the plurality of general-purpose input / output ports are set. Of the plurality of external circuits that have been read, the external circuit that has made the interrupt request can be specified as the interrupt request external circuit.

【0027】なお、汎用入出力ポートは、本来接続され
るべき入出力回路のポートを共用しているため、新たに
設ける必要はない。
Since the general-purpose input / output port shares the port of the input / output circuit to be originally connected, it is not necessary to newly provide it.

【0028】また、請求項12記載の割り込み制御方式
のように、複数の外部回路それぞれに対する実際の割り
込み処理を行う複数の割り込み処理タスクと、割り込み
処理タスクの実行を制御する割り込みハンドラとを独立
に実行することもできる。
Further, as in the interrupt control method according to the twelfth aspect, a plurality of interrupt processing tasks that perform actual interrupt processing for each of the plurality of external circuits and an interrupt handler that controls the execution of the interrupt processing tasks are independently provided. You can also do it.

【0029】[0029]

【実施例】【Example】

<第1の実施例>図1はこの発明の第1の実施例である
割り込み制御回路の構成を示す回路図である。同図に示
すように、外部回路3g,3hはそれぞれ割り込み用入
力端子2b,2cに接続され、割り込み要求信号4g,
4hが、CPU1に直接付与されるように構成されてい
る。
<First Embodiment> FIG. 1 is a circuit diagram showing a configuration of an interrupt control circuit according to a first embodiment of the present invention. As shown in the figure, the external circuits 3g and 3h are connected to the interrupt input terminals 2b and 2c, respectively, and the interrupt request signal 4g and
4h is configured to be directly given to the CPU 1.

【0030】一方、外部回路3a〜3fの割り込み要求
信号4a〜4fは、レジスタ回路50のレジスタ5a〜
5fに付与されるように接続されるとともに、論理和回
路6に付与されるように接続される。なお、外部回路3
a〜3fの割り込み要求信号4a〜4fは、割り込み要
求を指示する場合にHレベル(論理“1”)となり、割
り込み要求を指示しない場合にLレベル(論理“0”)
となる信号である。なお、図1では図示しないが、CP
U1は、外部回路3a〜3cに対する割り込み処理が実
行可能となるように、外部回路3a〜3cと接続されて
いる。
On the other hand, the interrupt request signals 4a to 4f of the external circuits 3a to 3f are transferred to the registers 5a to 5f of the register circuit 50.
It is connected so as to be given to 5f and is also connected so as to be given to the logical sum circuit 6. The external circuit 3
The interrupt request signals 4a to 4f of a to 3f are at the H level (logic "1") when the interrupt request is instructed, and are at the L level (logic "0") when the interrupt request is not instructed.
Is the signal. Although not shown in FIG. 1, CP
U1 is connected to the external circuits 3a to 3c so that interrupt processing for the external circuits 3a to 3c can be executed.

【0031】レジスタ回路50は、CPU1の読み出し
制御端子11及び書き込み制御端子12を介して、読み
出し制御信号RD及び書き込み制御信号WRが入力可能
に接続され、レジスタ回路50の各レジスタ5a〜5f
は、CPU1のデータ入出力端子13a〜13fを介し
て、データの書き込み及び読み出し可能に接続される。
The register circuit 50 is connected via the read control terminal 11 and the write control terminal 12 of the CPU 1 so that the read control signal RD and the write control signal WR can be input, and the registers 5a to 5f of the register circuit 50 are connected.
Are connected via the data input / output terminals 13a to 13f of the CPU 1 so that data can be written and read.

【0032】論理和回路6は、割り込み要求信号4a〜
4fの論理和信号7を割り込み用入力端子2aに出力す
る。
The OR circuit 6 includes the interrupt request signals 4a to 4a.
The logical sum signal 7 of 4f is output to the interrupt input terminal 2a.

【0033】なお、読み出し制御端子11、書き込み制
御端子12及びデータ入出力端子13a〜13fは、R
AM,ROM等の通常の外部メモリとの接続に用いられ
る端子を、レジスタ回路50にも用いたにすぎず、レジ
スタ回路50との接続用に新たに設けたものではない。
The read control terminal 11, the write control terminal 12, and the data input / output terminals 13a to 13f are R.
The terminals used for connection with ordinary external memories such as AM and ROM are only used for the register circuit 50, and are not newly provided for connection with the register circuit 50.

【0034】このような構成において、外部回路3a〜
3fのいずれかの割り込み要求信号4a〜4fが、割り
込み要求を指示するHレベルになると、論理和回路6か
ら、Hレベルの論理和信号7が割り込み用入力端子2a
に付与されることにより、CPU1に対して割り込み要
求がなされる。
In such a configuration, the external circuits 3a ...
When any of the interrupt request signals 4a to 4f of 3f becomes the H level that instructs the interrupt request, the logical sum circuit 6 outputs the logical sum signal 7 of the H level to the interrupt input terminal 2a.
The interrupt request is issued to the CPU 1 by being assigned to the CPU 1.

【0035】図2は、第1の実施例の割り込み制御回路
において、割り込み用入力端子2aを介してCPU1に
割り込み要求が生じた場合の割り込み処理ルーチンを示
すフローチャートである。
FIG. 2 is a flow chart showing an interrupt processing routine when an interrupt request is issued to the CPU 1 through the interrupt input terminal 2a in the interrupt control circuit of the first embodiment.

【0036】なお、割り込み用入力端子2aは、入力さ
れる信号の信号レベルを検出するレベルセンスに設定し
てある。
The interrupt input terminal 2a is set to level sense for detecting the signal level of the input signal.

【0037】図2を参照して、まず、ステップS1で、
読み出しを指示する読み出し制御信号RDをレジスタ回
路50に付与した後、レジスタ回路50内の各レジスタ
5a〜5fの格納データをデータ入出力端子13a〜1
3fを介して読み出す。
Referring to FIG. 2, first, in step S1,
After the read control signal RD for instructing the read is given to the register circuit 50, the data stored in the registers 5a to 5f in the register circuit 50 are transferred to the data input / output terminals 13a to 1a.
Read out via 3f.

【0038】そして、ステップS2で、各レジスタ5a
〜5fの格納データの値を検出し、1つでも“H”を検
出すると、「割り込み(要求)有り」と判断し、ステッ
プS3に移行し、すべてが“L”の場合、「割り込み
(要求)無し」と判断し、割り込み処理ルーチンから復
帰する。
Then, in step S2, each register 5a
If the value of the stored data of ~ 5f is detected and even one "H" is detected, it is determined that "interrupt (request) is present", the process proceeds to step S3, and if all are "L", "interrupt (request)" is issued. ) None ”, and returns from the interrupt processing routine.

【0039】ステップS3で、レジスタ5a〜5fのう
ち、格納データが“H”であるレジスタ5に対応する外
部回路3a〜3fの一つを、割り込み要求を行った割り
込み発生源である割り込み要求外部回路として特定す
る。続いて、ステップS4で、ステップS3で特定した
割り込み要求外部回路に対する割り込み処理を行う。
In step S3, one of the external circuits 3a to 3f corresponding to the register 5 of which the stored data is "H" among the registers 5a to 5f is set to the interrupt request external source which is the interrupt generation source of the interrupt request. Specify as a circuit. Subsequently, in step S4, interrupt processing is performed on the interrupt request external circuit specified in step S3.

【0040】割り込み処理が終了すると、ステップS5
で、割り込み要求外部回路から出力される割り込み要求
信号を“L”にクリアするととともに、書き込みを指示
する書き込み制御信号WRをレジスタ回路50に付与し
た後、割り込み要求外部回路に対応するレジスタ5a〜
5fに“L”を書き込み、割り込み要求をクリアする。
When the interrupt processing is completed, step S5
Then, after clearing the interrupt request signal output from the interrupt request external circuit to "L" and applying the write control signal WR for instructing writing to the register circuit 50, the registers 5a to 5a corresponding to the interrupt request external circuit are provided.
Write "L" in 5f to clear the interrupt request.

【0041】ステップS5が終了すると、ステップS2
に戻り、以降、ステップS2で「割り込み(要求)無
し」と判断されるまで、ステップS2〜S5を繰り返
す。
When step S5 ends, step S2
Returning to step S2, steps S2 to S5 are repeated until it is determined that there is no interrupt (request) in step S2.

【0042】なお、外部回路3g,3hから割り込み要
求があった場合は、従来同様に割り込み処理が行われ
る。
When there is an interrupt request from the external circuits 3g and 3h, the interrupt processing is performed as in the conventional case.

【0043】このように構成することにより、1つの割
り込み用入力端子2aで、複数の割り込み要求に対応す
ることができるため、割り込み用入力端子数を必要最小
限に抑えて、より多くの割り込み要求に対応できる。 <第2の実施例>図3はこの発明の第2の実施例である
割り込み制御回路の構成を示す回路図である。同図に示
すように、外部回路3g,3hはそれぞれ割り込み用入
力端子2b,2cに接続され、割り込み要求信号4g,
4hがCPU1に直接付与されるように構成されてい
る。
With this configuration, one interrupt input terminal 2a can handle a plurality of interrupt requests. Therefore, the number of interrupt input terminals can be minimized to increase the number of interrupt requests. Can handle. <Second Embodiment> FIG. 3 is a circuit diagram showing the structure of an interrupt control circuit according to a second embodiment of the present invention. As shown in the figure, the external circuits 3g and 3h are connected to the interrupt input terminals 2b and 2c, respectively, and the interrupt request signal 4g and
4h is directly applied to the CPU 1.

【0044】一方、外部回路3a〜3fの割り込み要求
信号4a〜4fは、CPU1の汎用入出力ポート10a
〜10fに接続され、割り込み要求信号4a〜4fが、
CPU1に直接付与されるように構成される。また、割
り込み要求信号4a〜4fは、論理和回路6にも付与さ
れる。なお、外部回路3a〜3fの割り込み要求信号4
a〜4fは、割り込み要求を指示する場合にHレベルと
なる信号である。なお、図3では図示しないが、CPU
1は、外部回路3a〜3cに対する割り込み処理が実行
可能となるように、外部回路3a〜3cと接続されてい
る。
On the other hand, the interrupt request signals 4a to 4f of the external circuits 3a to 3f are sent to the general-purpose input / output port 10a of the CPU 1.
10f, interrupt request signals 4a-4f,
It is configured to be directly applied to the CPU 1. The interrupt request signals 4a to 4f are also given to the logical sum circuit 6. The interrupt request signal 4 of the external circuits 3a to 3f
Signals a to 4f are H level signals when an interrupt request is instructed. Although not shown in FIG. 3, the CPU
1 is connected to the external circuits 3a to 3c so that the interrupt processing for the external circuits 3a to 3c can be executed.

【0045】論理和回路6は、割り込み要求信号4a〜
4fの論理和信号7を割り込み用入力端子2aに出力す
る。
The OR circuit 6 includes the interrupt request signals 4a to 4a.
The logical sum signal 7 of 4f is output to the interrupt input terminal 2a.

【0046】なお、汎用入出力ポート10a〜10f
は、外部の入出力回路で共用される端子であり、外部回
路3a〜3fの割り込み要求信号4a〜4f入力用に新
たに設けたものではない。
General purpose input / output ports 10a to 10f
Is a terminal shared by external input / output circuits, and is not newly provided for inputting the interrupt request signals 4a-4f of the external circuits 3a-3f.

【0047】このような構成において、外部回路3a〜
3fのいずれかの割り込み要求信号4a〜4fが、割り
込み要求を指示するHレベルになると、論理和回路6か
ら、Hレベルの論理和信号7が割り込み用入力端子2a
に付与されることにより、CPU1に対して割り込み要
求がなされる。
In such a configuration, the external circuits 3a ...
When any of the interrupt request signals 4a to 4f of 3f becomes the H level that instructs the interrupt request, the logical sum circuit 6 outputs the logical sum signal 7 of the H level to the interrupt input terminal 2a.
The interrupt request is issued to the CPU 1 by being assigned to the CPU 1.

【0048】図4は、第1の実施例の割り込み制御回路
において、割り込み用入力端子2aを介してCPU1に
割り込み要求が生じた場合の割り込み処理ルーチンを示
すフローチャートである。
FIG. 4 is a flow chart showing an interrupt processing routine when an interrupt request is issued to the CPU 1 via the interrupt input terminal 2a in the interrupt control circuit of the first embodiment.

【0049】なお、割り込み用入力端子2aは、入力さ
れる信号の信号レベルを検出するレベルセンスに設定し
てある。
The interrupt input terminal 2a is set to level sense for detecting the signal level of an input signal.

【0050】図4を参照して、まず、ステップS11
で、割り込み要求信号4a〜4が付与される汎用入出力
ポート10a〜10fそれぞれの信号レベルをチェック
する。
Referring to FIG. 4, first, step S11.
Then, the signal levels of the general-purpose input / output ports 10a to 10f to which the interrupt request signals 4a to 4 are given are checked.

【0051】そして、ステップS12で、汎用入出力ポ
ート10a〜10fの少なくとも1つの信号レベルか
ら、“H”検出すると「割り込み(要求)有り」と判断
し、ステップS13に移行し、すべてが“L”の場合、
「割り込み(要求)無し」と判断し、割り込み処理ルー
チンから復帰する。
Then, in step S12, if "H" is detected from at least one signal level of the general-purpose input / output ports 10a to 10f, it is determined that "interrupt (request) is present", the process proceeds to step S13, and all are "L". "in the case of,
It judges that there is no interrupt (request) and returns from the interrupt processing routine.

【0052】ステップS13で、汎用入出力ポート10
a〜10fより得られる信号の信号レベルに基づき、外
部回路3a〜3fのうち、信号レベルが“H”の汎用入
出力ポート10a〜10fに対応する外部回路の一つ
を、割り込み発生源である割り込み要求外部回路として
特定する。続いて、ステップS14で、ステップS13
で特定した割り込み要求外部回路に対する割り込み処理
を行う。
In step S13, the general purpose input / output port 10
Based on the signal levels of the signals obtained from a to 10f, one of the external circuits 3a to 3f corresponding to the general-purpose input / output ports 10a to 10f whose signal level is "H" is an interrupt source. Specify as an interrupt request external circuit. Then, in step S14, step S13
Performs interrupt processing for the interrupt request external circuit specified in.

【0053】割り込み処理が終了すると、ステップS1
5で、ステップS13で割り込み要求外部回路の割り込
み要求信号を“L”にして、割り込み要求をクリアす
る。
When the interrupt processing is completed, step S1
In step S13, the interrupt request signal of the interrupt request external circuit is set to "L" in step S13 to clear the interrupt request.

【0054】ステップS15が終了すると、ステップS
12に戻り、以降、ステップS12で「割り込み(要
求)無し」と判断されるまで、ステップS12〜S15
を繰り返す。
When step S15 ends, step S15
12, and thereafter, steps S12 to S15 are performed until it is determined in step S12 that "no interrupt (request)".
repeat.

【0055】なお、外部回路3g,3hから割り込み要
求があった場合は、従来同様に割り込み処理が行われ
る。
When there is an interrupt request from the external circuits 3g and 3h, the interrupt processing is performed as in the conventional case.

【0056】このように構成することにより、1つの割
り込み用入力端子2aで、複数の割り込み要求に対応す
ることができるため、割り込み用入力端子数を必要最小
限に抑えて、より多くの割り込み要求に対応できる。
With this configuration, one interrupt input terminal 2a can handle a plurality of interrupt requests. Therefore, the number of interrupt input terminals can be minimized to increase the number of interrupt requests. Can handle.

【0057】図5は、図2及び図4でそれぞれ示した第
1及び第2の実施例の割り込み処理ルーチン実行時にお
ける多重割り込み処理の様子を示したタイミング図であ
る。
FIG. 5 is a timing chart showing a state of multiple interrupt processing at the time of executing the interrupt processing routines of the first and second embodiments shown in FIGS. 2 and 4, respectively.

【0058】同図に示すように、時刻T1に、外部回路
3aから割り込み要求を指示する“H”の割り込み要求
信号4aが発生し、時刻T2に、外部回路3bから割り
込み要求を指示する“H”の割り込み要求信号4bが発
生している。
As shown in the figure, at time T1, the external circuit 3a generates an "H" interrupt request signal 4a for instructing an interrupt request, and at time T2, the external circuit 3b issues an interrupt request "H". The interrupt request signal 4b of "" has been generated.

【0059】この場合、先に割り込み要求があった外部
回路3aに対する割り込み処理が、行われる。そして、
時刻T3に、外部回路3aに対する割り込み処理が終了
すると同時に割り込み要求信号4aが“L”に立ち下げ
される。
In this case, the interrupt processing is performed for the external circuit 3a that has previously received the interrupt request. And
At time T3, the interrupt request signal 4a falls to "L" at the same time when the interrupt processing for the external circuit 3a ends.

【0060】時刻T3の時点で、割り込み要求信号4b
が“H”で、論理和信号7が“H”を維持しているた
め、割り込み処理ルーチンが続行され、時刻T3から、
外部回路3bに対する割り込み処理が行われる。
At time T3, the interrupt request signal 4b
Is "H" and the logical sum signal 7 maintains "H", the interrupt processing routine is continued, and from time T3,
An interrupt process for the external circuit 3b is performed.

【0061】そして、時刻T4に、外部回路3bに対す
る割り込み処理が終了すると同時に割り込み要求信号4
bが“L”に立ち下げられる。その結果、論理和信号7
も“L”に立ち下がるため、割り込み処理ルーチンは終
了し、時刻T4から、CPU1は通常処理を行う。 <第3の実施例>図6は、この発明の第3の実施例であ
る割り込み制御方式による割り込み処理ルーチンを示す
フローチャートである。割り込み制御回路としては、図
1で示した第1の実施例の構成でも、図3で示した第2
の実施例の構成でもよい。なお、この割り込み処理ルー
チンは、割り込み用入力端子2aに割り込み要求があっ
た場合の割り込み処理ルーチンである。
Then, at time T4, at the same time as the interrupt processing for the external circuit 3b ends, the interrupt request signal 4
b is lowered to "L". As a result, the logical sum signal 7
Also falls to “L”, the interrupt processing routine ends, and the CPU 1 performs normal processing from time T4. <Third Embodiment> FIG. 6 is a flow chart showing an interrupt processing routine according to an interrupt control system according to a third embodiment of the present invention. As the interrupt control circuit, even in the configuration of the first embodiment shown in FIG. 1, the interrupt control circuit of the second embodiment shown in FIG.
The configuration of the embodiment may be used. Note that this interrupt processing routine is an interrupt processing routine when an interrupt request is made to the interrupt input terminal 2a.

【0062】まず、ステップS21で、割り込み発生源
のチェックを行う。この動作は、第1の実施例の割り込
み制御回路に対しては、レジスタ回路50内のレジスタ
5a〜5fの格納データの内容検証(図2のステップS
1)に相当し、第2の実施例の割り込み制御回路に対し
ては、汎用入出力ポート10a〜10fより得られる信
号の信号レベルの検証動作(図4のステップS11)に
相当する。
First, in step S21, the interrupt source is checked. This operation is performed for the interrupt control circuit of the first embodiment by verifying the contents of the data stored in the registers 5a to 5f in the register circuit 50 (step S in FIG. 2).
1), which corresponds to the operation of verifying the signal level of the signals obtained from the general-purpose input / output ports 10a to 10f (step S11 in FIG. 4) for the interrupt control circuit of the second embodiment.

【0063】そして、ステップS22で、割り込み要求
信号4aが割り込み要求を指示している“H”であるか
を検証し、“H”であれば、ステップS23に移行し、
“H”でなければステップS25以降の外部回路3bに
対する割り込み処理ルーチンに移行する。
Then, in step S22, it is verified whether or not the interrupt request signal 4a is "H" indicating the interrupt request, and if it is "H", the process proceeds to step S23.
If not "H", the process proceeds to the interrupt processing routine for the external circuit 3b after step S25.

【0064】ステップS22で、YESと判定されると
ステップS23に移行する。ステップS23では、外部
回路3aに対する割り込み処理を行い、ステップS24
で割り込み要求信号4aを“L”にし、第1の実施例の
割り込み制御回路の場合は、さらに、レジスタ5aの格
納データを“L”にして、割り込み要求をクリアする。
If YES is determined in step S22, the process proceeds to step S23. In step S23, an interrupt process for the external circuit 3a is performed, and step S24
Then, the interrupt request signal 4a is set to "L", and in the case of the interrupt control circuit of the first embodiment, the data stored in the register 5a is further set to "L" to clear the interrupt request.

【0065】以上、ステップS22〜S24が外部回路
3aに対する割り込み処理ルーチンである。
As described above, steps S22 to S24 are an interrupt processing routine for the external circuit 3a.

【0066】以降、同様に、外部回路3bに対する割り
込み処理ルーチン(ステップS25〜S27)、外部回
路3cに対する割り込み処理ルーチン(ステップS28
〜S30)、外部回路3dに対する割り込み処理ルーチ
ン(ステップS31〜S33)、外部回路3eに対する
割り込み処理ルーチン(ステップS34〜S36)、外
部回路3fに対する割り込み処理ルーチン(ステップS
37〜S39)を順次実行した後、割り込み処理から復
帰する。
Thereafter, similarly, an interrupt processing routine for the external circuit 3b (steps S25 to S27) and an interrupt processing routine for the external circuit 3c (step S28).
To S30), an interrupt processing routine for the external circuit 3d (steps S31 to S33), an interrupt processing routine for the external circuit 3e (steps S34 to S36), an interrupt processing routine for the external circuit 3f (step S).
After sequentially executing steps 37 to S39), the process returns from the interrupt process.

【0067】このように、割り込み処理を実行すること
により、外部回路3a、3b、3c、3d、3e及び3
fの順に、優先順位をつけた割り込み処理を行うことが
できた。 <第4の実施例>図7は、この発明の第4の実施例であ
る割り込み制御方式による割り込み処理ルーチンを示す
フローチャートである。割り込み制御回路としては、図
1で示した第1の実施例の構成でも、図3で示した第2
の実施例の構成でもよい。ただし、どちらの構成におい
ても、前回の割り込み処理実行外部回路を記憶する割り
込み実行記憶手段が新たに設けられる。加えて、割り込
み要求外部回路の特定順位として、外部回路3a、3
b、3c、3d、3e、3fの順序が予め設定される。
By executing the interrupt processing in this way, the external circuits 3a, 3b, 3c, 3d, 3e and 3 are generated.
The interrupt processing with priorities could be performed in the order of f. <Fourth Embodiment> FIG. 7 is a flow chart showing an interrupt processing routine according to an interrupt control system according to a fourth embodiment of the present invention. As the interrupt control circuit, even in the configuration of the first embodiment shown in FIG. 1, the interrupt control circuit of the second embodiment shown in FIG.
The configuration of the embodiment may be used. However, in either configuration, an interrupt execution storage means for storing the previous external circuit for executing interrupt processing is newly provided. In addition, as the specific order of the interrupt request external circuits, the external circuits 3a, 3
The order of b, 3c, 3d, 3e, 3f is preset.

【0068】また、図7で示した割り込み処理ルーチン
は、割り込み用入力端子2aに割り込み要求があった場
合の割り込み処理ルーチンである。
The interrupt processing routine shown in FIG. 7 is an interrupt processing routine when there is an interrupt request at the interrupt input terminal 2a.

【0069】まず、ステップS41で、割り込み発生源
のチェックを行う。この動作は、第1の実施例の割り込
み制御回路に対しては、レジスタ回路50のレジスタ5
a〜5fの格納データの内容検証(図2のステップS
1)に相当し、第2の実施例の割り込み制御回路に対し
ては、汎用入出力ポート10a〜10fより得られる信
号の信号レベルの検証動作(図4のステップS11)に
相当する。
First, in step S41, the interrupt source is checked. This operation is similar to the register 5 of the register circuit 50 in the interrupt control circuit of the first embodiment.
Content verification of the stored data of a to 5f (step S of FIG. 2)
1), which corresponds to the operation of verifying the signal level of the signals obtained from the general-purpose input / output ports 10a to 10f (step S11 in FIG. 4) for the interrupt control circuit of the second embodiment.

【0070】そして、ステップS42で、ステップS4
1の割り込み発生源のチェックに基づき、割り込み要求
信号4a〜4fの少なくとも1つが“H”であると検出
すると、「割り込み(要求)有り」と判断し、ステップ
S43に移行し、すべてが“L”(論理“0”)の場
合、「割り込み(要求)無し」と判断し、割り込み処理
ルーチンから復帰する。
Then, in step S42, step S4
When it is detected that at least one of the interrupt request signals 4a to 4f is "H" based on the check of the interrupt generation source of No. 1, it is determined that "interrupt (request) is present", the process proceeds to step S43, and all are "L". In the case of "(logic" 0 "), it is determined that there is no interrupt (request), and the process returns from the interrupt processing routine.

【0071】ステップS43で、割り込み実行記憶手段
から、前回割り込み処理を行った外部回路をチェックす
る。
In step S43, the external circuit which previously performed the interrupt process is checked from the interrupt execution storage means.

【0072】そして、ステップS44で、前回割り込み
処理を行った外部回路の次に順序設定がなされた、外部
回路の割り込み要求をチェックする。例えば、前回割り
込み処理を行った外部回路が外部回路3cであった場
合、外部回路3dの割り込み要求がチェックされ、以
降、このステップでは、外部回路3e、3f,3a、3
b、3cの順でチェックされる。
Then, in step S44, the interrupt request of the external circuit whose order is set next to the external circuit which previously performed the interrupt process is checked. For example, when the external circuit that performed the interrupt process last time is the external circuit 3c, the interrupt request of the external circuit 3d is checked, and thereafter, in this step, the external circuits 3e, 3f, 3a, 3
Checked in the order of b and 3c.

【0073】次に、ステップS45で、チェック対象の
外部回路から、割り込み要求を指示する割り込み要求信
号が出力されているか否かが検証される。割り込み要求
を指示した判定すると、チェック対象の外部回路を割り
込み要求外部回路と認識し、ステップS46に移行し、
割り込み要求を指示していないと判定すると、ステップ
S44に戻る。
Next, in step S45, it is verified whether or not an interrupt request signal for instructing an interrupt request is output from the external circuit to be checked. When it is determined that the interrupt request is instructed, the external circuit to be checked is recognized as the interrupt request external circuit, and the process proceeds to step S46.
If it is determined that the interrupt request is not instructed, the process returns to step S44.

【0074】ステップS46で、ステップS45で認識
された割り込み要求外部回路に対する割り込み処理を実
行する。
In step S46, the interrupt process for the interrupt request external circuit recognized in step S45 is executed.

【0075】そして、ステップS47で割り込み要求外
部回路の割り込み要求信号を“L”にし、第1の実施例
の割り込み制御回路の場合は、さらに、割り込み要求外
部回路に対応するレジスタ5の格納データを“L”にし
て、割り込み要求をクリアする。
Then, in step S47, the interrupt request signal of the interrupt request external circuit is set to "L", and in the case of the interrupt control circuit of the first embodiment, the data stored in the register 5 corresponding to the interrupt request external circuit is further changed. Set to "L" to clear the interrupt request.

【0076】その後、割り込み要求外部回路を、前回割
り込み処理を行った外部回路として、割り込み実行記憶
手段に登録して、データの更新を行う。 <第5の実施例>図8及び図9は、この発明の第5の実
施例である割り込み制御方式による割り込み処理ルーチ
ンを示すフローチャートである。割り込み制御回路とし
ては、図1で示した第1の実施例の構成でも、図3で示
した第2の実施例の構成でもよい。なお、この割り込み
処理ルーチンは、割り込み用入力端子2aに割り込み要
求があった場合の割り込み処理ルーチンである。
After that, the interrupt request external circuit is registered in the interrupt execution storage means as the external circuit that has previously performed the interrupt process, and the data is updated. <Fifth Embodiment> FIGS. 8 and 9 are flow charts showing an interrupt processing routine according to an interrupt control system according to a fifth embodiment of the present invention. The interrupt control circuit may have the configuration of the first embodiment shown in FIG. 1 or the configuration of the second embodiment shown in FIG. Note that this interrupt processing routine is an interrupt processing routine when an interrupt request is made to the interrupt input terminal 2a.

【0077】図8は割り込みハンドラの動作を示してお
り、図9は割り込み処理タスクの動作を示しおり、これ
らの動作は互いに独立して行うことができる。
FIG. 8 shows the operation of the interrupt handler, and FIG. 9 shows the operation of the interrupt processing task. These operations can be performed independently of each other.

【0078】以下、図8を参照して割り込みハンドラの
動作を説明する。
The operation of the interrupt handler will be described below with reference to FIG.

【0079】まず、ステップS51で、割り込み発生源
のチェックを行う。この動作は、第1の実施例の割り込
み制御回路に対しては、レジスタ回路50のレジスタ5
a〜5fの格納データの内容検証(図2のステップS
1)に相当し、第2の実施例の割り込み制御回路に対し
ては、汎用入出力ポート10a〜10fより得られる信
号の信号レベルの検証動作(図4のステップS11)に
相当する。
First, in step S51, the interrupt source is checked. This operation is similar to the register 5 of the register circuit 50 in the interrupt control circuit of the first embodiment.
Content verification of the stored data of a to 5f (step S of FIG. 2)
1), which corresponds to the operation of verifying the signal level of the signals obtained from the general-purpose input / output ports 10a to 10f (step S11 in FIG. 4) for the interrupt control circuit of the second embodiment.

【0080】そして、ステップS52で、割り込み要求
を指示している割り込み要求信号4aに基づき、該当す
る外部回路3に対して割り込み処理を行う割り込み処理
タスクをレディ状態(実行可能状態)にする。
Then, in step S52, the interrupt processing task for performing the interrupt processing on the corresponding external circuit 3 is set to the ready state (executable state) based on the interrupt request signal 4a instructing the interrupt request.

【0081】次に、ステップS53で、割り込み要求外
部回路の割り込み要求信号を“L”にし、第1の実施例
の割り込み制御回路の場合は、さらに、割り込み要求外
部回路に対応するレジスタ5の格納データを“L”にし
て、割り込み要求をクリアした後、割り込みハンドラを
終了する。
Next, in step S53, the interrupt request signal of the interrupt request external circuit is set to "L", and in the case of the interrupt control circuit of the first embodiment, the register 5 corresponding to the interrupt request external circuit is further stored. After setting the data to "L" to clear the interrupt request, the interrupt handler is terminated.

【0082】以下、図9を参照して割り込みタスク処理
の動作を説明する。
The operation of interrupt task processing will be described below with reference to FIG.

【0083】ステップS61は待機状態であり、割り込
みハンドラの指示によりレディ状態にされ、モニタプラ
グラムと呼ばれる割り込み処理タスク制御プログラムに
実行指示が与えらると、はじめてステップS62に移行
する。そして、ステップS62で、該当する外部回路3
に対する割り込み処理を実行する。
Step S61 is a waiting state, and is made ready by an instruction of the interrupt handler. When an execution instruction is given to an interrupt processing task control program called a monitor program, the process proceeds to step S62 for the first time. Then, in step S62, the corresponding external circuit 3
Execute interrupt processing for.

【0084】なお、割り込みタスク処理は、1つの外部
回路3の割り込み処理に対し1つ設けられる処理であ
る。
The interrupt task process is a process provided for each interrupt process of one external circuit 3.

【0085】このように、第5の実施例では、割り込み
処理を、割り込みハンドラ処理と割り込み処理タスクと
に分けて独立して実行することができる。その結果、割
り込みハンドラは実際の割り込み処理を割り込み処理タ
スクに任せることができるため、多数の割り込み発生源
が存在し、個々の割り込発生源に対応した処理が複雑な
場合等の複雑な割り込み制御を、比較的簡単に行うこと
ができる。 <第6の実施例>図10は、この発明の第6の実施例で
ある割り込み制御方式による割り込み処理ルーチンを示
すフローチャートである。割り込み制御回路としては、
図1で示した第1の実施例の構成でも、図3で示した第
2の実施例の構成でもよい。なお、この割り込み処理ル
ーチンは、割り込み用入力端子2aに割り込み要求があ
った場合の割り込み処理ルーチンである。また、図10
の割り込み処理ルーチンは、図8で示した第5の実施例
の割り込みハンドラの処理に相当し、実際の割り込み処
理は、図9で示した第5の実施例の割り込み処理タスク
が行う。
As described above, in the fifth embodiment, the interrupt processing can be divided into the interrupt handler processing and the interrupt processing task and independently executed. As a result, the interrupt handler can entrust the actual interrupt processing to the interrupt processing task, so there are many interrupt sources and complicated interrupt control such as when the processing corresponding to each interrupt source is complicated. Can be performed relatively easily. <Sixth Embodiment> FIG. 10 is a flow chart showing an interrupt processing routine by an interrupt control system according to a sixth embodiment of the present invention. As an interrupt control circuit,
The configuration of the first embodiment shown in FIG. 1 or the configuration of the second embodiment shown in FIG. 3 may be used. Note that this interrupt processing routine is an interrupt processing routine when an interrupt request is made to the interrupt input terminal 2a. In addition, FIG.
8 corresponds to the processing of the interrupt handler of the fifth embodiment shown in FIG. 8, and the actual interrupt processing is performed by the interrupt processing task of the fifth embodiment shown in FIG.

【0086】まず、ステップS101で、割り込み発生
源のチェックを行う。この動作は、第1の実施例の割り
込み制御回路に対しては、レジスタ回路50のレジスタ
5a〜5fの格納データの内容検証(図2のステップS
1)に相当し、第2の実施例の割り込み制御回路に対し
ては、汎用入出力ポート10a〜10fより得られるの
信号レベルの検証動作(図4のステップS11)に相当
する。
First, in step S101, the interrupt source is checked. This operation is performed for the interrupt control circuit of the first embodiment by verifying the contents of the data stored in the registers 5a to 5f of the register circuit 50 (step S in FIG. 2).
This corresponds to 1) and to the interrupt control circuit of the second embodiment, it corresponds to the verification operation of the signal level obtained from the general-purpose input / output ports 10a to 10f (step S11 in FIG. 4).

【0087】そして、ステップS102で、割り込み要
求信号4fが割り込み要求を指示している“H”である
かを検証し、“H”であれば、ステップS103に移行
し、“H”でなければステップS105以降の外部回路
3eに対する割り込み処理ルーチンに移行する。
Then, in step S102, it is verified whether the interrupt request signal 4f is "H" indicating an interrupt request. If "H", the process proceeds to step S103, and if not "H". The process proceeds to the interrupt processing routine for the external circuit 3e after step S105.

【0088】ステップS102で、YESと判定される
とステップS103に移行する。ステップS103で
は、外部回路3f用の割り込み処理タスクをレディ状態
にする。そしてステップS104で割り込み要求信号4
fを“L”にして、第1の実施例の割り込み制御回路の
場合は、さらに、レジスタ5fの格納データを“L”に
して、割り込み要求をクリアする。
If YES is determined in step S102, the process proceeds to step S103. In step S103, the interrupt processing task for the external circuit 3f is set to the ready state. Then, in step S104, the interrupt request signal 4
In the case of the interrupt control circuit of the first embodiment, f is set to "L", and further, the data stored in the register 5f is set to "L" to clear the interrupt request.

【0089】以上、ステップS102〜S104が外部
回路3fに対する割り込み処理ルーチンである。
Above, steps S102 to S104 are the interrupt processing routine for the external circuit 3f.

【0090】以降、同様に、外部回路3eに対する割り
込み処理ルーチン(ステップS105〜S107)、外
部回路3dに対する割り込み処理ルーチン(ステップS
108〜S110)、外部回路3cに対する割り込み処
理ルーチン(ステップS111〜S113)、外部回路
3bに対する割り込み処理ルーチン(ステップS114
〜S116)、外部回路3aに対する割り込み処理ルー
チン(ステップS117〜S119)を順次実行したた
後、割り込みハンドラから復帰する。
Thereafter, similarly, an interrupt processing routine for the external circuit 3e (steps S105 to S107) and an interrupt processing routine for the external circuit 3d (step S).
108 to S110), an interrupt processing routine for the external circuit 3c (steps S111 to S113), an interrupt processing routine for the external circuit 3b (step S114).
To S116) and the interrupt processing routine for the external circuit 3a (steps S117 to S119) are sequentially executed, and then the interrupt handler returns.

【0091】このように、割り込みハンドラ割り込み処
理を実行することにより、モニタプラグラムによる外部
回路3a〜3f用の割り込み処理タスクそれぞれへの実
行指示の優先順位が同一である場合、外部回路3f、3
e、3d、3c、3b及び3aの順に、優先順位をつけ
た割り込み処理を行うことができる。 <第7の実施例>第6の実施例では、モニタプログラム
による割り込み処理タスクの優先順位を同一に設定した
が、割り込みハンドラによるレディ状態設定順序に関係
なく、任意に割り込み処理タスクへの実行指示の優先順
位を決定することができる。
By executing the interrupt handler interrupt processing in this way, when the execution instructions to the interrupt processing tasks for the external circuits 3a to 3f by the monitor program have the same priority, the external circuits 3f and 3f are processed.
It is possible to perform interrupt processing with priorities in the order of e, 3d, 3c, 3b and 3a. <Seventh Embodiment> In the sixth embodiment, the priority order of the interrupt processing tasks by the monitor program is set to be the same, but an execution instruction to the interrupt processing task is arbitrarily issued regardless of the ready state setting order by the interrupt handler. Priorities can be determined.

【0092】例えば、モニタプログラムによる割り込み
処理タスクへの実行指示の優先順位を外部回路3a、3
b、3c、3d、3e、3fの順に設定すれば、図10
で示した第6の実施例の動作のように、外部回路3f、
3e、3d、3c、3b、3aの順に、割り込み処理タ
スクのレデイ状態を設定しても、モニタプログラムは、
外部回路3a、3b、3c、3d、3e、3fの順に割
り込み処理が優先的に行われるように制御する。
For example, the priority order of execution instructions to the interrupt processing task by the monitor program is set to the external circuits 3a, 3
If the settings are made in the order of b, 3c, 3d, 3e, 3f, FIG.
As in the operation of the sixth embodiment shown in FIG.
Even if the ready state of the interrupt processing task is set in the order of 3e, 3d, 3c, 3b, 3a, the monitor program
The external circuits 3a, 3b, 3c, 3d, 3e, and 3f are controlled so that interrupt processing is preferentially performed in this order.

【0093】このように、モニタプラグラムによる割り
込み処理タスクへの実行指示の優先順位を設定すれば、
割り込みハンドラによる割り込み処理タスクのレディ状
態設定順序に関係なく、優先順位の高い割り込み要求か
ら優先適に割り込み処理を実行することができる。
In this way, by setting the priority of execution instructions to the interrupt processing task by the monitor program,
It is possible to execute the interrupt processing with priority from the interrupt request having the higher priority regardless of the ready state setting order of the interrupt processing tasks by the interrupt handler.

【0094】[0094]

【発明の効果】以上説明したように、この発明における
請求項1記載の割り込み制御回路のCPUは、記憶手段
の複数のレジスタそれぞれに対し、格納データの読み書
き可能に接続されているため、記憶手段を介して複数の
外部回路の割り込み要求信号が割り込み要求を指示する
か否かを検出することができる。
As described above, the CPU of the interrupt control circuit according to the first aspect of the present invention is connected to each of the plurality of registers of the storage means so that the stored data can be read and written. It is possible to detect whether or not the interrupt request signals of the plurality of external circuits indicate the interrupt request via the.

【0095】したがって、請求項2記載の割り込み制御
方式のように、CPU入力割り込み要求信号が割り込み
要求を指示する時、記憶手段の複数のレジスタの格納デ
ータを読み出して、複数の外部回路のうち、割り込み要
求を行った外部回路を割り込み要求外部回路として特定
することができる。
Therefore, when the CPU input interrupt request signal indicates an interrupt request as in the interrupt control method according to the second aspect of the present invention, the data stored in the plurality of registers of the storage means are read out to select one of the plurality of external circuits. The external circuit that has issued the interrupt request can be specified as the interrupt request external circuit.

【0096】なお、記憶手段と読み書き可能に接続する
のに必要とする入出力端子は、本来接続されるべき外部
記憶装置用の入出力端子を共用することができるため、
新たに設ける必要はない。
Since the input / output terminals required for connecting to the storage means in a readable / writable manner can share the input / output terminals for the external storage device which should be connected originally,
There is no need to newly install it.

【0097】その結果、一つの割り込み用入力端子を設
けるだけで、複数の外部回路に対する割り込み処理を実
行することができるため、割り込み用入力端子数を必要
最小限に抑えながら多くの割り込み要求に対応できる。
As a result, since it is possible to execute interrupt processing for a plurality of external circuits by providing only one interrupt input terminal, it is possible to handle many interrupt requests while keeping the number of interrupt input terminals to a necessary minimum. it can.

【0098】この発明の請求項5記載の割り込み制御方
式は、複数の外部回路それぞれに対する実際の割り込み
処理を行う複数の割り込み処理タスクと、割り込み処理
タスクの実行を制御する割り込みハンドラとを独立に実
行するため、実際の割り込み処理を行う必要のない割り
込みハンドラにより、複雑な割り込み制御も比較的容易
に行うことができる。
According to a fifth aspect of the present invention, an interrupt control system independently executes a plurality of interrupt processing tasks that perform actual interrupt processing for each of a plurality of external circuits and an interrupt handler that controls execution of the interrupt processing tasks. Therefore, complicated interrupt control can be performed relatively easily by the interrupt handler that does not need to perform the actual interrupt processing.

【0099】この発明における請求項8記載の割り込み
制御回路のCPUは、複数の汎用入出力ポートに複数の
外部回路からの複数の割り込み要求信号が付与されるた
め、複数の汎用入出力ポートを介して複数の外部回路の
割り込み要求信号が割り込み要求を指示するか否かを検
出することができる。
In the CPU of the interrupt control circuit according to the eighth aspect of the present invention, since a plurality of interrupt request signals from a plurality of external circuits are given to the plurality of general-purpose input / output ports, a plurality of general-purpose input / output ports are used. It is possible to detect whether or not the interrupt request signals of the plurality of external circuits indicate the interrupt request.

【0100】したがって、請求項9記載の割り込み制御
方式のように、CPU入力割り込み要求信号が割り込み
要求を指示する時、複数の汎用入出力ポートに付与され
る前記複数の割り込み要求信号の信号レベルを読み出し
て、複数の外部回路のうち、割り込み要求を行った外部
回路を割り込み要求外部回路として特定することができ
る。
Therefore, when the CPU input interrupt request signal indicates an interrupt request as in the interrupt control method according to the ninth aspect, the signal levels of the plurality of interrupt request signals given to the plurality of general-purpose input / output ports are set. Of the plurality of external circuits that have been read, the external circuit that has made the interrupt request can be specified as the interrupt request external circuit.

【0101】なお、汎用入出力ポートは、本来接続され
るべき入出力回路のポートを共用しているため、新たに
設ける必要はない。
Since the general-purpose input / output port shares the port of the input / output circuit to be originally connected, it is not necessary to newly provide it.

【0102】その結果、一つの割り込み用入力端子を設
けるだけで、複数の外部回路に対する割り込み処理を実
行することができるため、割り込み用入力端子数を必要
最小限に抑えながら多くの割り込み要求に対応できる。
As a result, since it is possible to execute interrupt processing for a plurality of external circuits by providing only one interrupt input terminal, it is possible to handle many interrupt requests while keeping the number of interrupt input terminals to a necessary minimum. it can.

【0103】この発明における請求項12記載の割り込
み制御方式は、複数の外部回路それぞれに対する実際の
割り込み処理を行う複数の割り込み処理タスクと、割り
込み処理タスクの実行を制御する割り込みハンドラとを
独立に実行することができるため、実際の割り込み処理
を行う必要のない割り込みハンドラにより、複雑な割り
込み制御も比較的容易に行うことができる。
In the interrupt control system according to the twelfth aspect of the present invention, a plurality of interrupt processing tasks that perform actual interrupt processing for each of a plurality of external circuits and an interrupt handler that controls the execution of the interrupt processing tasks are independently executed. Therefore, complicated interrupt control can be performed relatively easily by an interrupt handler that does not need to actually perform interrupt processing.

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

【図1】この発明の第1の実施例である割り込み制御回
路の構成を示す回路図である。
FIG. 1 is a circuit diagram showing a configuration of an interrupt control circuit according to a first embodiment of the present invention.

【図2】第1の実施例の割り込み制御方式を示すフロー
チャートである。
FIG. 2 is a flowchart showing an interrupt control system of the first embodiment.

【図3】この発明の第2の実施例である割り込み制御回
路の構成を示す回路図である。
FIG. 3 is a circuit diagram showing a configuration of an interrupt control circuit according to a second embodiment of the present invention.

【図4】第2の実施例の割り込み制御方式を示すフロー
チャートである。
FIG. 4 is a flowchart showing an interrupt control system of a second embodiment.

【図5】第1及び第2の実施例の割り込み制御回路の割
り込み処理状況を示すタイミング図である。
FIG. 5 is a timing chart showing an interrupt processing situation of the interrupt control circuits of the first and second embodiments.

【図6】この発明の第3の実施例である割り込み制御方
式を示すフローチャートである。
FIG. 6 is a flowchart showing an interrupt control method according to a third embodiment of the present invention.

【図7】この発明の第4の実施例である割り込み制御方
式を示すフローチャートである。
FIG. 7 is a flowchart showing an interrupt control system according to a fourth embodiment of the present invention.

【図8】この発明の第5の実施例である割り込み制御方
式を示すフローチャートである。
FIG. 8 is a flowchart showing an interrupt control method according to a fifth embodiment of the present invention.

【図9】この発明の第5の実施例である割り込み制御方
式を示すフローチャートである。
FIG. 9 is a flowchart showing an interrupt control system according to a fifth embodiment of the present invention.

【図10】この発明の第6の実施例である割り込み制御
方式を示すフローチャートである。
FIG. 10 is a flowchart showing an interrupt control system according to a sixth embodiment of the present invention.

【図11】従来の割り込み制御回路の構成を示す回路図
である。
FIG. 11 is a circuit diagram showing a configuration of a conventional interrupt control circuit.

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

1 CPU 2a〜2c 割り込み用入力端子 3a〜3h 外部回路 5a〜5f レジスタ 6 論理和回路 50 レジスタ回路 1 CPU 2a to 2c Interrupt input terminal 3a to 3h External circuit 5a to 5f Register 6 Logical sum circuit 50 Register circuit

─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成5年4月20日[Submission date] April 20, 1993

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】請求項1[Name of item to be corrected] Claim 1

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【手続補正2】[Procedure Amendment 2]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】請求項2[Name of item to be corrected] Claim 2

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【手続補正3】[Procedure 3]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】請求項5[Name of item to be corrected] Claim 5

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【手続補正4】[Procedure amendment 4]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】請求項8[Name of item to be corrected] Claim 8

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【手続補正5】[Procedure Amendment 5]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】請求項9[Name of item to be corrected] Claim 9

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【手続補正6】[Procedure correction 6]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】請求項12[Name of item to be corrected] Claim 12

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【手続補正7】[Procedure Amendment 7]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】請求項14[Name of item to be corrected] Claim 14

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【手続補正8】[Procedure Amendment 8]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0002[Name of item to be corrected] 0002

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0002】[0002]

【従来の技術】図11は、従来の割り込み制御回路の構
成を示す回路図である。同図に示すように、複数の外部
回路3a〜3cそれぞれからの割り込み要求信号4a〜
4cが、CPU1の割り込み用入力端子2a〜2cに付
与されるように構成されている。なお、図示しないが、
当然のことながら、CPU1は、外部回路3a〜3cに
対する割り込み処理が実行可能となるように、外部回路
3a〜3cと接続されている。
2. Description of the Related Art FIG. 11 is a circuit diagram showing a configuration of a conventional interrupt control circuit. As shown in the figure, the interrupt request signals 4a to 4c from the plurality of external circuits 3a to 3c, respectively.
4c is provided to the interrupt input terminals 2a to 2c of the CPU 1. Although not shown,
As a matter of course, the CPU 1 is connected to the external circuits 3a to 3c so that the interrupt processing for the external circuits 3a to 3c can be executed.

【手続補正9】[Procedure Amendment 9]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0007[Correction target item name] 0007

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0007】[0007]

【課題を解決するための手段】この発明にかかる請求項
1記載の割り込み制御回路は、CPU入力割り込み要求
信号を取り込むレベルセンスに設定された割り込み用入
力端子を有し、複数の外部回路それぞれに対する割り込
み処理が実行可能なCPUと、前記複数の外部回路に対
応して設けられ、前記複数の外部回路からの複数の割り
込み要求信号を格納データとして格納する複数の記憶手
段と、前記複数の割り込み要求信号を受け、前記複数の
割り込み要求信号の少なくとも1つが割り込み要求を指
示するとき、割り込み要求を指示する前記CPU入力割
り込み要求信号を前記割り込み用入力端子に出力する割
り込み要求制御手段を備え、前記CPUは、前記複数の
記憶手段のそれぞれに対し、前記格納データの読み書き
可能に接続される。
An interrupt control circuit according to a first aspect of the present invention has an interrupt input terminal set to level sense for taking in a CPU input interrupt request signal, and is provided for each of a plurality of external circuits. a CPU interrupt processing can be executed, provided corresponding to said plurality of external circuits, and a plurality of memorize means for storing a plurality of interrupt request signals from the plurality of external circuits as the storage data, said plurality of interrupt Interrupt request control means for outputting the CPU input interrupt request signal for instructing an interrupt request to the interrupt input terminal when at least one of the plurality of interrupt request signals indicates an interrupt request, the CPU, the the plurality of <br/> storage means Noso respectively, read and write connected of the storage data That.

【手続補正10】[Procedure Amendment 10]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0008[Correction target item name] 0008

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0008】この発明にかかる請求項2記載の割り込み
制御方式は、請求項1記載の割り込み制御回路を用い、
前記CPUが割り込み要求された時の制御方式であっ
て、(a) 前記複数の記憶手段の格納データを読み出し
て、前記複数の外部回路のうち、割り込み要求を行った
外部回路を割り込み要求外部回路として特定するステッ
プと、(b) 前記割り込み要求外部回路に対して割り込み
処理を行うステップと、(c) 前記割り込み要求外部回路
の前記割り込み要求信号の割り込み要求指示をクリアす
るとともに、前記複数の記憶手段のうち、前記割り込み
要求外部回路に対応する記憶手段の前記格納データの割
り込み要求指示をクリアするステップとを備えて構成さ
れる。
An interrupt control system according to a second aspect of the present invention uses the interrupt control circuit according to the first aspect,
A control method when the CP U is requested an interrupt, (a) reads the store data of the plurality of storage means, the plurality of external circuits, interrupt an external circuit performing an interrupt request Specifying as a request external circuit, (b) performing an interrupt process for the interrupt request external circuit, (c) clearing the interrupt request instruction of the interrupt request signal of the interrupt request external circuit, and And a step of clearing an interrupt request instruction of the stored data of the storage means corresponding to the interrupt request external circuit among the plurality of storage means .

【手続補正11】[Procedure Amendment 11]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0011[Correction target item name] 0011

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0011】この発明にかかる請求項5記載の割り込み
制御方式は、請求項1記載の割り込み制御回路を用い、
前記CPUが割り込み要求された時、前記複数の外部
回路それぞれに対する実際の割り込み処理を行う複数の
割り込み処理タスクと、前記割り込み処理タスクの実行
を制御する割り込みハンドラとを独立に実行する方式で
あって、前記割り込みハンドラは、(a) 前記複数の記憶
手段の格納データを読み出して、前記複数の外部回路の
うち、割り込み要求を行った外部回路を割り込み要求外
部回路として特定するステップと、(b) 前記複数の割り
込み処理タスクのうち、前記割り込み要求外部回路に対
する割り込み処理タスクを実行可能状態にするステップ
と、(c) 前記割り込み要求外部回路の前記割り込み要求
信号の割り込み要求指示をクリアするとともに、前記複
数の記憶手段のうち、前記割り込み要求外部回路に対応
する記憶手段の前記格納データの割り込み要求指示をク
リアするステップとを備え、前記割り込み要求外部回路
に対する前記割り込み処理タスクは、実行可能状態にな
ると、前記割り込み要求外部回路に対する割り込み処理
を実行する。
An interrupt control system according to a fifth aspect of the present invention uses the interrupt control circuit according to the first aspect,
In the case where CP U is an interrupt request, a method of executing a plurality of interrupt processing tasks to actual interrupt processing for each of the plurality of external circuits, and the interrupt handler for controlling the execution of the interrupt processing task independently there are, the interrupt handler, identifying as (a) reads the store data of the plurality of storage means, the plurality of external circuits, interrupt request external circuit external circuit performing an interrupt request, (b) among the plurality of interrupt processing tasks, versus the interrupt request external circuit
A step of the interrupt processing task to executable state, as well as clear the interrupt request instruction of the interrupt request signal (c) said interrupt request external circuit, among the plurality of storage means, corresponding to said interrupt request external circuit And a step of clearing an interrupt request instruction of the stored data of the storage means ,
The interrupt processing task for (1) executes the interrupt processing for the interrupt request external circuit when the task becomes ready to execute.

【手続補正12】[Procedure Amendment 12]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0014[Correction target item name] 0014

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0014】この発明にかかる請求項8記載の割り込み
制御回路は、CPU入力割り込み要求信号を取り込む
ベルセンスに設定された割り込み用入力端子と、入力に
設定され、複数の外部回路からの複数の割り込み要求信
を受ける複数の汎用入出力ポートとを有し、外部回
対する割り込み処理が実行可能なCPUと、前記複数
の割り込み要求信号を受け、複数の割り込み要求信号の
少なくとも1つが割り込み要求を指示するとき、割り込
み要求を指示する前記CPU入力割り込み要求信号を前
記割り込み用入力端子に出力する割り込み要求制御手段
とを備えて構成される。
[0014] The interrupt control circuit according to claim 8, wherein according to the present invention is to incorporate CPU input interrupt request signal
The interrupt input pin set to Bellsense and the input
It is set, and a plurality of general purpose input and output ports for receiving a plurality of interrupt request signals from a plurality of external circuits, external circuitry
Wherein the interrupt processing can be executed CPU against, the receiving a plurality of interrupt request signals, when at least one of the multiple interrupt request signal instructing the interrupt request, the CPU input interrupt request signal indicating an interrupt request And an interrupt request control means for outputting to an interrupt input terminal.

【手続補正13】[Procedure Amendment 13]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0015[Name of item to be corrected] 0015

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0015】この発明にかかる請求項9記載の割り込み
制御方式は、請求項8記載の割り込み制御回路を用い、
前記CPUが割り込み要求された時の制御方式であっ
て、(a) 前記複数の汎用入出力ポートに付与される前記
複数の割り込み要求信号の信号レベルを読み出して、前
記複数の外部回路のうち、割り込み要求を行った外部回
路を割り込み要求外部回路として特定するステップと、
(b) 前記割り込み要求外部回路に対して割り込み処理を
行うステップと、(c) 前記割り込み要求外部回路の前記
割り込み要求信号の割り込み要求指示をクリアするステ
ップとを備える。
An interrupt control system according to a ninth aspect of the present invention uses the interrupt control circuit according to the eighth aspect.
A control method when the CP U is requested an interrupt, (a) reads the signal levels of the plurality of interrupt request signals applied to the plurality of general purpose input and output ports, said plurality of external circuits Of these, a step of identifying the external circuit that has made an interrupt request as an interrupt request external circuit,
(b) a step of performing an interrupt process on the interrupt request external circuit; and (c) a step of clearing an interrupt request instruction of the interrupt request signal of the interrupt request external circuit.

【手続補正14】[Procedure Amendment 14]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0018[Correction target item name] 0018

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0018】この発明にかかる請求項12記載の割り込
み制御方式は、請求項8記載の割り込み制御回路を用
い、前記CPUが割り込み要求された時、前記複数の
外部回路それぞれに対する実際の割り込み処理を行う複
数の割り込み処理タスクと、前記割り込み処理タスクの
実行を制御する割り込みハンドラとを独立に実行する方
式であって、前記割り込みハンドラは、(a) 前記複数の
汎用入出力ポートに付与される前記複数の割り込み要求
信号の信号レベルを読み出して、前記複数の外部回路の
うち、割り込み要求を行った外部回路を割り込み要求外
部回路として特定するステップと、(b) 前記複数の割り
込み処理タスクのうち、前記割り込み要求外部回路に対
する割り込み処理タスクを実行可能状態にするステップ
と、(c) 前記割り込み要求外部回路の前記割り込み要求
信号の割り込み要求指示をクリアするステップとを備
え、前記割り込み要求外部回路に対する前記割り込み処
理タスクは、実行可能状態になると、前記割り込み要求
外部回路に対する割り込み処理を実行する。
The interrupt control method according claim 12 wherein in the present invention, using an interrupt control circuit according to claim 8, wherein when the CP U is an interrupt request, actual interrupt processing for each of the plurality of external circuits A method of independently executing a plurality of interrupt processing tasks that perform the above and an interrupt handler that controls the execution of the interrupt processing tasks, wherein the interrupt handler is (a) assigned to the plurality of general-purpose input / output ports. Reading the signal levels of the plurality of interrupt request signals and, of the plurality of external circuits, identifying an external circuit that has made an interrupt request as an interrupt request external circuit; and (b) out of the plurality of interrupt processing tasks. , versus the interrupt request external circuit
And a step of (c) clearing an interrupt request instruction of the interrupt request signal of the interrupt request external circuit , the interrupt processing task for the interrupt request external circuit, When the ready state is reached, the interrupt process for the interrupt request external circuit is executed.

【手続補正15】[Procedure Amendment 15]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0021[Correction target item name] 0021

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0021】[0021]

【作用】この発明における請求項1記載の割り込み制御
回路のCPUは、複数の記憶手段それぞれに対し、格納
データの読み書き可能に接続されているため、記憶手段
を介して複数の外部回路の割り込み要求信号が割り込み
要求を指示するか否かを検出することができる。
[Action] CPU interrupt control circuit according to claim 1, wherein in the present invention, the plurality of memory hand stage their respective, because it is writable connected stored data, a plurality of outside via a storage means It is possible to detect whether the interrupt request signal of the circuit indicates an interrupt request.

【手続補正16】[Procedure Amendment 16]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0022[Name of item to be corrected] 0022

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0022】したがって、請求項2記載の割り込み制御
方式のように、CPUが割り込み要求された時、複数
記憶手段の格納データを読み出して、複数の外部回路
のうち、割り込み要求を行った外部回路を割り込み要求
外部回路として特定することができる。
Therefore, as in the interrupt control system according to the second aspect, when the CPU is requested for an interrupt, a plurality of interrupts are issued.
It reads the store data in the storage means, among the plurality of external circuits, it is possible to specify the external circuit of performing an interrupt request as an interrupt request external circuit.

【手続補正17】[Procedure Amendment 17]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0026[Correction target item name] 0026

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0026】したがって、請求項9記載の割り込み制御
方式のように、CPUが割り込み要求された時、複数
の汎用入出力ポートに付与される前記複数の割り込み要
求信号の信号レベルを読み出して、複数の外部回路のう
ち、割り込み要求を行った外部回路を割り込み要求外部
回路として特定することができる。
[0026] Thus, as in the interrupt control method according to claim 9, when the CP U is requested an interrupt, reads the signal levels of the plurality of interrupt request signals applied to the plurality of general purpose input and output ports, Among the plurality of external circuits, the external circuit that has made the interrupt request can be specified as the interrupt request external circuit.

【手続補正18】[Procedure 18]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0027[Name of item to be corrected] 0027

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0027】なお、汎用入出力ポートは、本来CPUに
装備されている入出力回路のポートを使用しているた
め、新たに設ける必要はない。
The general-purpose I / O port is originally a CPU
Since the port of the equipped input / output circuit is used , there is no need to newly install it.

【手続補正19】[Procedure Amendment 19]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0030[Name of item to be corrected] 0030

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0030】一方、外部回路3a〜3fの割り込み要求
信号4a〜4fは、レジスタ回路50のレジスタ5a〜
5fに付与されるように接続されるとともに、論理和回
路6に付与されるように接続される。なお、外部回路3
a〜3fの割り込み要求信号4a〜4fは、割り込み要
求を指示する場合にHレベル(論理“1”)となり、割
り込み要求を指示しない場合にLレベル(論理“0”)
となる信号である。なお、図1では図示しないが、当然
のことながら、CPU1は、外部回路3a〜3cに対す
る割り込み処理が実行可能となるように、外部回路3a
〜3cと接続されている。
On the other hand, the interrupt request signals 4a to 4f of the external circuits 3a to 3f are transferred to the registers 5a to 5f of the register circuit 50.
It is connected so as to be given to 5f and is also connected so as to be given to the logical sum circuit 6. The external circuit 3
The interrupt request signals 4a to 4f of a to 3f are at the H level (logic "1") when the interrupt request is instructed, and are at the L level (logic "0") when the interrupt request is not instructed.
Is the signal. Although not shown in FIG. 1, naturally
However , the CPU 1 executes the interrupt processing on the external circuits 3a to 3c so that the external circuits 3a to 3c can execute interrupt processing.
~ 3c is connected.

【手続補正20】[Procedure amendment 20]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0031[Correction target item name] 0031

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0031】レジスタ回路50は、CPU1の読み出し
制御端子11及び書き込み制御端子12を介して、読み
出し制御信号及び書き込み制御信号9が接続され、レ
ジスタ回路50の各レジスタ5a〜5fは、CPU1の
データ入出力端子13a〜13fを介して、データの書
き込み及び読み出し可能に接続される。
The register circuit 50 via the read control terminal 11 and the write control terminal 12 of CPU1, the read control signal 8 and the write control signal 9 is connected, each register 5a~5f register circuit 50, the CPU1 The data input / output terminals 13a to 13f are connected so that data can be written and read.

【手続補正21】[Procedure correction 21]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0037[Name of item to be corrected] 0037

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0037】図2を参照して、まず、ステップS1で、
読み出しを指示する読み出し制御信号をレジスタ回路
50に付与した後、レジスタ回路50内の各レジスタ5
a〜5fの格納データをデータ入出力端子13a〜13
fを介して読み出す。
Referring to FIG. 2, first, in step S1,
After applying the read control signal 8 for instructing the read to the register circuit 50, each register 5 in the register circuit 50
Data stored in a to 5f are transferred to the data input / output terminals 13a to 13
Read out via f.

【手続補正22】[Procedure correction 22]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0040[Correction target item name] 0040

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0040】割り込み処理が終了すると、ステップS5
で、割り込み要求外部回路から出力される割り込み要求
信号を“L”にクリアするととともに、書き込みを指示
する書き込み制御信号をレジスタ回路50に付与した
後、割り込み要求外部回路に対応するレジスタ5a〜5
fに“L”を書き込み、割り込み要求をクリアする。
When the interrupt processing is completed, step S5
Then, after clearing the interrupt request signal output from the interrupt request external circuit to "L" and applying the write control signal 9 for instructing the write to the register circuit 50, the registers 5a to 5 corresponding to the interrupt request external circuit are provided.
Write "L" in f to clear the interrupt request.

【手続補正23】[Procedure amendment 23]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0044[Correction target item name] 0044

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0044】一方、外部回路3a〜3fの割り込み要求
信号4a〜4fは、CPU1の汎用入出力ポート10a
〜10fに接続され、割り込み要求信号4a〜4fが、
CPU1に直接付与されるように構成される。また、割
り込み要求信号4a〜4fは、論理和回路6にも付与さ
れる。なお、外部回路3a〜3fの割り込み要求信号4
a〜4fは、割り込み要求を指示する場合にHレベルと
なる信号である。なお、図3では図示しないが、当然の
ことながら、CPU1は、外部回路3a〜3cに対する
割り込み処理が実行可能となるように、外部回路3a〜
3cと接続されている。
On the other hand, the interrupt request signals 4a to 4f of the external circuits 3a to 3f are sent to the general-purpose input / output port 10a of the CPU 1.
10f, interrupt request signals 4a-4f,
It is configured to be directly applied to the CPU 1. The interrupt request signals 4a to 4f are also given to the logical sum circuit 6. The interrupt request signal 4 of the external circuits 3a to 3f
Signals a to 4f are H level signals when an interrupt request is instructed. Incidentally, not shown in FIG. 3, but of course
In this regard, the CPU 1 executes the external circuits 3a to 3c so that the interrupt processing for the external circuits 3a to 3c can be executed.
3c is connected.

【手続補正24】[Procedure correction 24]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0046[Correction target item name] 0046

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0046】なお、汎用入出力ポート10a〜10f
は、外部の入出力回路で共用され子であり、外部回路3
a〜3fの割り込み要求信号4a〜4f入力用に新たに
設けたものではない。また、割り込み要求信号4a〜4
fの値が読み込めるように、入力に設定してある。
General purpose input / output ports 10a to 10f
Is a child shared by an external input / output circuit, and the external circuit 3
It is not newly provided for inputting the interrupt request signals 4a to 4f of a to 3f. Also, the interrupt request signals 4a-4
The input is set so that the value of f can be read.

【手続補正25】[Procedure correction 25]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0060[Correction target item name] 0060

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0060】時刻T3の時点で、割り込み要求信号4b
が“H”で、論理和信号7が“H”を維持しており、か
つCPU1の割り込みがレベルセンスに設定してある
め、割り込み処理ルーチンが続行され、時刻T3から、
外部回路3bに対する割り込み処理が行われる。
At time T3, the interrupt request signal 4b
Is "H", the logical sum signal 7 maintains "H" ,
Since the interrupt of the CPU 1 is set to level sense , the interrupt processing routine is continued, and from time T3,
An interrupt process for the external circuit 3b is performed.

【手続補正26】[Procedure Amendment 26]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0070[Name of item to be corrected] 0070

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0070】そして、ステップS42で、ステップS4
1の割り込み発生源のチェックに基づき、割り込み要求
信号4a〜4fの少なくとも1つが“H”であると検出
すると、「割り込み(要求)有り」と判断しステップ
S43に移行し、すべてが“L”(論理“0”)の場
合、「割り込み(要求)無し」と判断し割り込み処理
ルーチンから復帰する。
Then, in step S42, step S4
When it is detected that at least one of the interrupt request signals 4a to 4f is "H" based on the check of the interrupt generation source of No. 1, it is determined that "interrupt (request) is present", the process proceeds to step S43, and all are "L" In the case of "(logic" 0 "), it is judged that there is no interrupt (request), and the process returns from the interrupt processing routine.

【手続補正27】[Procedure Amendment 27]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0080[Correction target item name] 0080

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0080】そして、ステップS52で、ステップS5
1で検証した値をもとに、該当する外部回路3に対して
割り込み処理を行う割り込み処理タスクをレディ状態
(実行可能状態)にする。
Then, in step S52, step S5
Based on the value verified in 1, the interrupt processing task that performs interrupt processing for the corresponding external circuit 3 is set to the ready state (executable state).

【手続補正28】[Procedure correction 28]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0082[Correction target item name] 0082

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0082】以下、図9を参照して割り込み処理タス
動作を説明する。
[0082] Hereinafter, the interrupt processing tasks with reference to FIG. 9
The operation of will be described.

【手続補正29】[Procedure correction 29]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0083[Name of item to be corrected] 0083

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0083】ステップS61は待機状態であり、割り込
みハンドラの指示によりレディ状態にされ、モニタプラ
グラムと呼ばれるタスク制御プログラムにより実行指示
が与えらると、はじめてステップS62に移行する。そ
して、ステップS62で、該当する外部回路3に対する
割り込み処理を実行する。割り込み処理が、終了した時
点で待機状態S61に移行し、新たな割り込み処理に備
える。
[0083] Step S61 is a standby state, is in the ready state by the instruction of the interrupt handler, Ralt given more execution instruction to the filter disk control program called a monitor plug ram, the first time proceeds to step S62. Then, in step S62, interrupt processing for the corresponding external circuit 3 is executed. When interrupt processing is completed
At this point, it shifts to the standby state S61 and prepares for new interrupt processing.
Get

【手続補正30】[Procedure amendment 30]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0084[Correction target item name] 0084

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0084】なお、割り込み処理タスクは、1つの外部
回路3の割り込み処理に対し1つ設けられる処理であ
る。
It should be noted that one interrupt processing task is provided for each interrupt processing of one external circuit 3.

【手続補正31】[Procedure correction 31]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0085[Correction target item name] 0085

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0085】このように、第5の実施例では、割り込み
処理を、割り込みハンドラ処理と割り込み処理タスクと
に分けて独立して実行することができる。その結果、割
り込みハンドラは実際の割り込み処理を割り込み処理タ
スクに任せることができるため、多数の割り込み発生源
が存在し、個々の割り込発生源に対応した処理が複雑な
場合等の複雑な割り込み制御を、比較的簡単に行うこと
ができる。 <第6の実施例>図10は、この発明の第6の実施例で
ある割り込み制御方式による割り込みハンドラの処理ル
ーチンを示すフローチャートである。割り込み制御回路
としては、図1で示した第1の実施例の構成でも、図3
で示した第2の実施例の構成でもよい。なお、この割り
込みハンドラは、割り込み用入力端子2aに割り込み要
求があった場合の割り込みハンドラである。また、図1
0の割り込みハンドラは、図8で示した第5の実施例の
割り込みハンドラの処理に相当し、実際の割り込み処理
は、図9で示した第5の実施例の割り込み処理タスクが
行う。
As described above, in the fifth embodiment, the interrupt processing can be divided into the interrupt handler processing and the interrupt processing task and independently executed. As a result, the interrupt handler can entrust the actual interrupt processing to the interrupt processing task, so there are many interrupt sources and complicated interrupt control such as when the processing corresponding to each interrupt source is complicated. Can be performed relatively easily. <Sixth Embodiment> FIG. 10 is a flow chart showing a processing routine of an interrupt handler according to the sixth embodiment of the present invention. As the interrupt control circuit, even in the configuration of the first embodiment shown in FIG.
The configuration of the second embodiment shown in FIG. It should be noted that this interrupt handler is an interrupt handler when there is an interrupt request to the interrupt input terminal 2a. Also, FIG.
The interrupt handler of 0 corresponds to the processing of the interrupt handler of the fifth embodiment shown in FIG. 8, and the actual interrupt processing is performed by the interrupt processing task of the fifth embodiment shown in FIG.

【手続補正32】[Procedure correction 32]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0092[Correction target item name] 0092

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0092】例えば、モニタプログラムによる割り込み
処理タスクへの実行指示の優先順位を外部回路3a、3
b、3c、3d、3e、3fの順に設定すれば、図10
で示した第6の実施例の動作のように、外部回路3f、
3e、3d、3c、3b、3aの順に、割り込み処理タ
スクのレデイ状態を設定しても、モニタプログラムは
先順位に従って、外部回路3a、3b、3c、3d、3
e、3fの順に割り込み処理タスクを実行させる。
For example, the priority order of execution instructions to the interrupt processing task by the monitor program is set to the external circuits 3a, 3
If the settings are made in the order of b, 3c, 3d, 3e, 3f, FIG.
As in the operation of the sixth embodiment shown in FIG.
3e, 3d, 3c, 3b, in the order of 3a, be set the ready state of the interrupt processing task, monitor program Yu
According to the order of precedence , the external circuits 3a, 3b, 3c, 3d, 3
The interrupt processing task is executed in the order of e and 3f .

【手続補正33】[Procedure amendment 33]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0094[Correction target item name] 0094

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0094】[0094]

【発明の効果】以上説明したように、この発明における
請求項1記載の割り込み制御回路のCPUは、複数の
憶手段それぞれに対し、格納データの読み書き可能に接
続されているため、記憶手段を介して複数の外部回路の
割り込み要求信号が割り込み要求を指示するか否かを検
出することができる。
As described above, according to the present invention, CPU interrupt control circuit according to claim 1, wherein in the present invention, the multiple serial
Since the storage data is connected to each storage device so that the storage data can be read and written, it is possible to detect whether or not the interrupt request signals of the plurality of external circuits indicate the interrupt request via the storage device.

【手続補正34】[Procedure amendment 34]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0095[Correction target item name] 0095

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0095】したがって、請求項2記載の割り込み制御
方式のように、CPUが割り込み要求された、複
記憶手段の格納データを読み出して、複数の外部回路
のうち、割り込み要求を行った外部回路を割り込み要求
外部回路として特定することができる。
[0095] Thus, as in the interrupt control method according to claim 2, when the CP U is requested an interrupt, reads the data stored in the multiple storage means among a plurality of external circuits, performing an interrupt request It is possible to specify the external circuit as an interrupt request external circuit.

【手続補正35】[Procedure amendment 35]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0100[Correction target item name] 0100

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0100】したがって、請求項9記載の割り込み制御
方式のように、CPUが割り込み要求された時、複数
の汎用入出力ポートに付与される前記複数の割り込み要
求信号の信号レベルを読み出して、複数の外部回路のう
ち、割り込み要求を行った外部回路を割り込み要求外部
回路として特定することができる。
[0101] Thus, as in the interrupt control method according to claim 9, when the CP U is requested an interrupt, reads the signal levels of the plurality of interrupt request signals applied to the plurality of general purpose input and output ports, Among the plurality of external circuits, the external circuit that has made the interrupt request can be specified as the interrupt request external circuit.

【手続補正36】[Procedure correction 36]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0101[Correction target item name] 0101

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0101】なお、汎用入出力ポートは、本来接続され
るべき入出力回路のポートを使用しているため、新たに
設ける必要はない。
[0102] Incidentally, the general-purpose input-output ports, because it uses the port of the input and output circuits to be originally connected is not necessary to newly provide.

【手続補正37】[Procedure amendment 37]

【補正対象書類名】図面[Document name to be corrected] Drawing

【補正対象項目名】図9[Correction target item name] Figure 9

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【図9】 [Figure 9]

Claims (14)

【特許請求の範囲】[Claims] 【請求項1】 CPU入力割り込み要求信号を取り込む
割り込み用入力端子を有し、複数の外部回路それぞれに
対する割り込み処理が実行可能なCPUと、 前記複数の外部回路に対応して設けられ、前記複数の外
部回路からの複数の割り込み要求信号を格納データとし
て格納する複数のレジスタからなる記憶手段と、 前記複数の割り込み要求信号を受け、前記複数の割り込
み要求信号の少なくとも1つが割り込み要求を指示する
とき、割り込み要求を指示する前記CPU入力割り込み
要求信号を前記割り込み用入力端子に出力する割り込み
要求制御手段を備え、 前記CPUは、前記記憶手段の前記複数のレジスタそれ
ぞれに対し、前記格納データの読み書き可能に接続され
た割り込み制御回路。
1. A CPU having an interrupt input terminal for fetching a CPU input interrupt request signal and capable of executing interrupt processing for each of a plurality of external circuits; and a CPU provided corresponding to the plurality of external circuits. Storage means comprising a plurality of registers for storing a plurality of interrupt request signals from an external circuit as stored data; and receiving at least one of the plurality of interrupt request signals and at least one of the plurality of interrupt request signals indicates an interrupt request. An interrupt request control means for outputting the CPU input interrupt request signal for instructing an interrupt request to the interrupt input terminal is provided, and the CPU can read and write the stored data with respect to each of the plurality of registers of the storage means. Connected interrupt control circuit.
【請求項2】 請求項1記載の割り込み制御回路を用
い、前記CPU入力割り込み要求信号が割り込み要求を
指示する時の割り込み制御方式であって、 (a) 前記記憶手段の前記複数のレジスタの格納データを
読み出して、前記複数の外部回路のうち、割り込み要求
を行った外部回路を割り込み要求外部回路として特定す
るステップと、 (b) 前記割り込み要求外部回路に対して割り込み処理を
行うステップと、 (c) 前記割り込み要求外部回路の前記割り込み要求信号
の割り込み要求指示をクリアするとともに、前記複数の
レジスタのうち、前記割り込み要求外部回路に対応する
レジスタの前記格納データの割り込み要求指示をクリア
するステップとを備えた割り込み制御方式。
2. An interrupt control method using the interrupt control circuit according to claim 1, wherein the CPU input interrupt request signal indicates an interrupt request, and (a) storing the plurality of registers in the storage means. A step of reading the data and, of the plurality of external circuits, specifying an external circuit that has made an interrupt request as an interrupt request external circuit; and (b) performing an interrupt process for the interrupt request external circuit, c) clearing the interrupt request instruction of the interrupt request signal of the interrupt request external circuit, and clearing the interrupt request instruction of the stored data of the register corresponding to the interrupt request external circuit among the plurality of registers; Interrupt control system with.
【請求項3】 前記複数の外部回路に対する割り込み処
理は予め優先順位が設定されており、 前記ステップ(a) は、前記優先順位に基づく順序で、前
記割り込み要求外部回路の特定処理を行う請求項2記載
の割り込み制御方式。
3. The interrupt processing for the plurality of external circuits has priorities set in advance, and in the step (a), the interrupt request external circuits are specified in an order based on the priority. The interrupt control method described in 2.
【請求項4】 前記ステップ(a) は、所定の特定処理順
序に基づき、前回特定した割り込み要求外部回路の次に
順序設定された外部回路から、割り込み要求外部回路の
特定処理を行う請求項2記載の割り込み制御方式。
4. The step (a) performs the specifying process of the interrupt request external circuit from the external circuit that is set next to the previously specified interrupt request external circuit based on a predetermined specifying process order. The described interrupt control method.
【請求項5】 請求項1記載の割り込み制御回路を用
い、前記CPU入力割り込み要求信号が割り込み要求を
指示する時、前記複数の外部回路それぞれに対する実際
の割り込み処理を行う複数の割り込み処理タスクと、前
記割り込み処理タスクの実行を制御する割り込みハンド
ラとを独立に実行する割り込み制御方式であって、 前記割り込みハンドラは、 (a) 前記記憶手段の前記複数のレジスタの格納データを
読み出して、前記複数の外部回路のうち、割り込み要求
を行った外部回路を割り込み要求外部回路として特定す
るステップと、 (b) 前記複数の割り込み処理タスクのうち、前記割り込
み要求外部回路用の割り込み処理タスクを実行可能状態
にするステップと、 (c) 前記割り込み要求外部回路の前記割り込み要求信号
の割り込み要求指示をクリアするとともに、前記複数の
レジスタのうち、前記割り込み要求外部回路に対応する
レジスタの前記格納データの割り込み要求指示をクリア
するステップとを備え、 前記割り込み要求外部回路用の前記割り込み処理タスク
は、実行可能状態になると、前記割り込み要求外部回路
に対する割り込み処理を実行する、割り込み制御方式。
5. The interrupt control circuit according to claim 1, wherein when the CPU input interrupt request signal indicates an interrupt request, a plurality of interrupt processing tasks that perform actual interrupt processing for each of the plurality of external circuits, An interrupt control method for independently executing an interrupt handler for controlling execution of the interrupt processing task, wherein the interrupt handler is: (a) reading data stored in the plurality of registers of the storage means, Among the external circuits, a step of identifying the external circuit that has made an interrupt request as an interrupt request external circuit, and (b) making the interrupt processing task for the interrupt request external circuit ready to be executed among the plurality of interrupt processing tasks. And (c) an interrupt request instruction of the interrupt request signal of the interrupt request external circuit. Clearing, and clearing the interrupt request instruction of the stored data of the register corresponding to the interrupt request external circuit among the plurality of registers, the interrupt processing task for the interrupt request external circuit executes An interrupt control method in which, when enabled, an interrupt process for the interrupt request external circuit is executed.
【請求項6】 外部回路に対する割り込み処理は予め優
先順位が設定されており、 前記ステップ(a) は、前記優先順位に基づく順序で、前
記割り込み要求外部回路の特定処理を行う請求項5記載
の割り込み制御方式。
6. The interrupt processing for an external circuit has priorities set in advance, and in the step (a), the interrupt request external circuit is specified in an order based on the priority. Interrupt control method.
【請求項7】 前記複数の割り込み処理タスクは予め優
先順位が設定されており、 2つ以上の割り込み処理タスクが同時に実行可能状態に
なった場合、前記優先順位に基づく順序で割り込み処理
タスクを実行する請求項5記載の割り込み制御方式。
7. The priorities of the plurality of interrupt processing tasks are set in advance, and when two or more interrupt processing tasks are simultaneously ready to be executed, the interrupt processing tasks are executed in the order based on the priority order. The interrupt control system according to claim 5, wherein
【請求項8】 CPU入力割り込み要求信号を取り込む
割り込み用入力端子と、汎用の入出力回路と入出力デー
タの授受を行うとともに、複数の外部回路からの複数の
割り込み要求信号が付与される複数の汎用入出力ポート
とを有し、前記複数の外部回路それぞれに対する割り込
み処理が実行可能なCPUと、 前記複数の割り込み要求信号を受け、前記複数の割り込
み要求信号の少なくとも1つが割り込み要求を指示する
とき、割り込み要求を指示する前記CPU入力割り込み
要求信号を前記割り込み用入力端子に出力する割り込み
要求制御手段とを備えた割り込み制御回路。
8. An interrupt input terminal for fetching a CPU input interrupt request signal, a plurality of general-purpose input / output circuits for exchanging input / output data, and a plurality of interrupt request signals from a plurality of external circuits. A CPU having a general-purpose input / output port and capable of executing interrupt processing for each of the plurality of external circuits; and a case in which at least one of the plurality of interrupt request signals receives an interrupt request. An interrupt request control means for outputting the CPU input interrupt request signal for instructing an interrupt request to the interrupt input terminal.
【請求項9】 請求項8記載の割り込み制御回路を用
い、前記CPU入力割り込み要求信号が割り込み要求を
指示する時の割り込み制御方式であって、 (a) 前記複数の汎用入出力ポートに付与される前記複数
の割り込み要求信号の信号レベルを読み出して、前記複
数の外部回路のうち、割り込み要求を行った外部回路を
割り込み要求外部回路として特定するステップと、 (b) 前記割り込み要求外部回路に対して割り込み処理を
行うステップと、 (c) 前記割り込み要求外部回路の前記割り込み要求信号
の割り込み要求指示をクリアするステップとを備えた割
り込み制御方式。
9. An interrupt control method using the interrupt control circuit according to claim 8, wherein the CPU input interrupt request signal indicates an interrupt request, and (a) is assigned to the plurality of general-purpose input / output ports. Reading the signal levels of the plurality of interrupt request signals, and specifying the external circuit that has made an interrupt request among the plurality of external circuits as an interrupt request external circuit, (b) for the interrupt request external circuit An interrupt control method comprising: (c) clearing an interrupt request instruction of the interrupt request signal of the interrupt request external circuit.
【請求項10】 前記複数の外部回路に対する割り込み
処理は予め優先順位が設定されており、 前記ステップ(a) は、前記優先順位に基づく順序で、前
記割り込み要求外部回路の特定処理を行う請求項9記載
の割り込み制御方式。
10. The interrupt processing for the plurality of external circuits has priorities set in advance, and in the step (a), the interrupt request external circuits are specified in an order based on the priority. 9. The interrupt control method described in 9.
【請求項11】 前記ステップ(a) は、所定の特定処理
順序に基づき、前回特定した割り込み要求外部回路の次
に順序設定された外部回路から、割り込み要求外部回路
の特定処理を行う請求項9記載の割り込み制御方式。
11. The step (a) performs the specifying process of the interrupt request external circuit from the external circuit which is set next to the interrupt request external circuit specified last time based on a predetermined specifying process order. The described interrupt control method.
【請求項12】 請求項8記載の割り込み制御回路を用
い、前記CPU入力割り込み要求信号が割り込み要求を
指示する時、前記複数の外部回路それぞれに対する実際
の割り込み処理を行う複数の割り込み処理タスクと、前
記割り込み処理タスクの実行を制御する割り込みハンド
ラとを独立に実行する割り込み制御方式であって、 前記割り込みハンドラは、 (a) 前記複数の汎用入出力ポートに付与される前記複数
の割り込み要求信号の信号レベルを読み出して、前記複
数の外部回路のうち、割り込み要求を行った外部回路を
割り込み要求外部回路として特定するステップと、 (b) 前記複数の割り込み処理タスクのうち、前記割り込
み要求外部回路用の割り込み処理タスクを実行可能状態
にするステップと、 (c) 前記割り込み要求外部回路の前記割り込み要求信号
の割り込み要求指示をクリアするステップとを備え、 前記割り込み要求外部回路用の前記割り込み処理タスク
は、実行可能状態になると、前記割り込み要求外部回路
に対する割り込み処理を実行する、割り込み制御方式。
12. The interrupt control circuit according to claim 8, wherein when the CPU input interrupt request signal indicates an interrupt request, a plurality of interrupt processing tasks that perform actual interrupt processing for each of the plurality of external circuits, An interrupt control method for independently executing an interrupt handler for controlling execution of the interrupt processing task, wherein the interrupt handler includes: (a) a plurality of interrupt request signals assigned to the plurality of general-purpose input / output ports. Of the plurality of external circuits, the step of identifying the external circuit that has made an interrupt request as an interrupt request external circuit, and reading the signal level, (b) selecting the interrupt request external circuit from among the plurality of interrupt processing tasks. (C) the interrupt request external circuit of the interrupt request external circuit A step of clearing an interrupt request instruction of the interrupt request signal, wherein the interrupt processing task for the interrupt request external circuit executes an interrupt process for the interrupt request external circuit when the ready state is reached. .
【請求項13】 外部回路に対する割り込み処理は予め
優先順位が設定されており、 前記ステップ(a) は、前記優先順位に基づく順序で、前
記割り込み要求外部回路の特定処理を行う請求項12記
載の割り込み制御方式。
13. The interrupt processing for an external circuit has a priority set in advance, and in the step (a), the interrupt request external circuit is specified in an order based on the priority. Interrupt control method.
【請求項14】 前記複数の割り込み処理タスクは予め
優先順位が設定されており、 2つ以上の割り込み処理タスクが同時に実行可能状態に
なった場合、前記優先順位に基づく順序で割り込み処理
タスクを実行する請求項13記載の割り込み制御方式。
14. The plurality of interrupt processing tasks have priorities set in advance, and when two or more interrupt processing tasks are simultaneously ready to be executed, the interrupt processing tasks are executed in an order based on the priority order. 14. The interrupt control system according to claim 13.
JP34012192A 1992-12-21 1992-12-21 Interruption control circuit and interruption control system Pending JPH06187167A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34012192A JPH06187167A (en) 1992-12-21 1992-12-21 Interruption control circuit and interruption control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34012192A JPH06187167A (en) 1992-12-21 1992-12-21 Interruption control circuit and interruption control system

Publications (1)

Publication Number Publication Date
JPH06187167A true JPH06187167A (en) 1994-07-08

Family

ID=18333926

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34012192A Pending JPH06187167A (en) 1992-12-21 1992-12-21 Interruption control circuit and interruption control system

Country Status (1)

Country Link
JP (1) JPH06187167A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100381403B1 (en) * 1995-06-23 2003-07-18 칼소닉 칸세이 가부시끼가이샤 Microcomputer wake-up device
JP2007241994A (en) * 2006-01-05 2007-09-20 Telechips Inc Audio system, and usb/uart common communication system for the same

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100381403B1 (en) * 1995-06-23 2003-07-18 칼소닉 칸세이 가부시끼가이샤 Microcomputer wake-up device
JP2007241994A (en) * 2006-01-05 2007-09-20 Telechips Inc Audio system, and usb/uart common communication system for the same

Similar Documents

Publication Publication Date Title
JPH0283601A (en) Programmable-controller
US20060155960A1 (en) Programmable controller
EP2054800A2 (en) Flash memory access circuit
US20070255876A1 (en) Interrupt control circuit and method
US5600807A (en) Programmable controller capable of updating a user program during operation by switching between user program memories
JPH03109644A (en) Microcomputer
CN101116065A (en) Dma chain
US20080082802A1 (en) Microcomputer debugging system
JPH06187167A (en) Interruption control circuit and interruption control system
JP4731126B2 (en) Interrupt control circuit
JP2001256044A (en) Data processor
JP2718690B2 (en) Communication control system
JP3349940B2 (en) Link unit for programmable controller
JPH06131294A (en) Data transfer device
JP3139310B2 (en) Digital signal processor
US5768554A (en) Central processing unit
JP5045168B2 (en) Peripheral device control apparatus and method
JP3350699B2 (en) Programmable controller
JP4527419B2 (en) Program trace method and trace processing system
JPH0518138B2 (en)
JPS59170943A (en) Loading method of program correction
JPH01111250A (en) Data processing system
JPS6238746B2 (en)
JPS6382536A (en) Channel device
JPH01236309A (en) Display device for numerical controller