JP2536622B2 - Interrupt control method - Google Patents
Interrupt control methodInfo
- Publication number
- JP2536622B2 JP2536622B2 JP1163900A JP16390089A JP2536622B2 JP 2536622 B2 JP2536622 B2 JP 2536622B2 JP 1163900 A JP1163900 A JP 1163900A JP 16390089 A JP16390089 A JP 16390089A JP 2536622 B2 JP2536622 B2 JP 2536622B2
- Authority
- JP
- Japan
- Prior art keywords
- interrupt
- signal
- cpu
- interrupt request
- cycle
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims description 18
- 238000010586 diagram Methods 0.000 description 4
- 239000013256 coordination polymer Substances 0.000 description 1
Landscapes
- Bus Control (AREA)
Description
【発明の詳細な説明】 [産業上の利用分野] 本発明は、複数のI/Oからの割込要求に対し、CPUの割
込サイクルを各I/Oへ通知する割込制御方法に関する。The present invention relates to an interrupt control method for notifying each I / O of an interrupt cycle of a CPU in response to an interrupt request from a plurality of I / Os.
[従来の技術] 複数のI/Oからの割込要求に対してCPUの割込サイクル
を通知するには、従来より2つの方法が知られている。[Prior Art] Two methods are conventionally known to notify the interrupt cycle of the CPU in response to interrupt requests from a plurality of I / Os.
第1の方法は、各I/Oで独立に割込要求信号を出力
し、CPU側で各割込要求信号に対応して各I/Oへアクノリ
ッジ信号を出力する方法である。この第1の方法を第3
図に示す。The first method is a method in which each I / O independently outputs an interrupt request signal and the CPU side outputs an acknowledge signal to each I / O in response to each interrupt request signal. This first method is the third
Shown in the figure.
第3図に示すI/O−1、I/O−2およびI/O−nからの
割込要求信号1、2、3に対して、CPUから割込アクノ
リッジ信号4、5、6がそれぞれ対応する各I/Oへ出力
される。In response to interrupt request signals 1, 2, and 3 from I / O-1, I / O-2, and I / O-n shown in FIG. 3, interrupt acknowledge signals 4, 5, and 6 are output from the CPU, respectively. Output to each corresponding I / O.
また、複数のI/Oからの割込要求に対してCPUの割込サ
イクルを通知する第2の方法は、各I/Oで共通の割込要
求信号を使用し、CPU側から1本の割込アクノリッジ信
号を出力する方法であり、各I/Oはデイジーチェーンで
接続されている。この第2の方法を第4図に示す。In addition, the second method of notifying the interrupt cycle of the CPU to interrupt requests from multiple I / Os is to use a common interrupt request signal for each I / O, This is a method of outputting an interrupt acknowledge signal, and each I / O is connected in a daisy chain. This second method is shown in FIG.
I/O−1、I/O−2およびI/O−nからの割込要求信号
7に対して、CPUから最初のI/O(ここではI/O−1)へ
の割込アクノリッジ信号8を出力する。I/O−1は、自
己が割込要求信号を送出していなければ、下位のI/O−
2へ割込アクノリッジ信号中継出力9を出力する。I/O
−2が割込要求信号を出力していれば、I/O−2は、下
位のI/O−nへの割込アクノリッジ信号中継出力10を出
力せずに、CPUの割込サイクルを獲得する。For the interrupt request signal 7 from I / O-1, I / O-2 and I / O-n, an interrupt acknowledge signal from the CPU to the first I / O (here I / O-1) 8 is output. If the I / O-1 itself does not send an interrupt request signal, the lower I / O-
An interrupt acknowledge signal relay output 9 is output to 2. I / O
-2 outputs the interrupt request signal, the I / O-2 acquires the CPU interrupt cycle without outputting the interrupt acknowledge signal relay output 10 to the lower I / O-n. To do.
第4図に示す第2の方法では、例えばI/O−1が取り
外されると、CPUからの割込アクノリッジ信号8はI/O−
1で中断されることになるので、割込アクノリッジ信号
8を割込アクノリッジ信号中継出力9へ中継する手段が
必要となる。In the second method shown in FIG. 4, for example, when I / O-1 is removed, the interrupt acknowledge signal 8 from the CPU causes I / O-
Since it will be interrupted at 1, means for relaying the interrupt acknowledge signal 8 to the interrupt acknowledge signal relay output 9 is required.
[発明が解決しようとする課題] 上述した第1の方法では、各I/OとCPU側との接続が個
別に必要となり、配線が複雑となる欠点がある。[Problems to be Solved by the Invention] The above-mentioned first method has a drawback that wiring is complicated because each I / O needs to be individually connected to the CPU side.
また、第2の方法では、各I/Oの間の割込アクノリッ
ジ信号がデイジーチェーンで接続されるため、途中のI/
Oを取り外した場合に割込アクノリッジ信号を中継する
手段が必要となる欠点がある。In the second method, since the interrupt acknowledge signals between I / Os are connected in a daisy chain, I / Os in the middle
There is a drawback that a means for relaying an interrupt acknowledge signal is required when O is removed.
[課題を解決するための手段] 本発明は、上記の問題点に鑑みてなされたもので、各
I/O間を共通信号で接続し、かつ途中のI/Oを取り外して
も特別な信号の中継手段が不要となるようにすることを
目的とする。[Means for Solving the Problems] The present invention has been made in view of the above problems.
The purpose is to connect I / Os with a common signal, and to eliminate the need for special signal relaying means even if I / Os on the way are removed.
この目的を達成するために、本発明による割込制御方
法は、複数のI/Oの少なくとも一つから割込要求があっ
たときに割込要求信号をアクティブとしてCPUに伝送
し、CPUから出力される、CPUの割込サイクルを示す割込
アクノリッジ信号をアクティブとすると共に、この割込
アクノリッジ信号に同期してタイミング信号を出力し、
各I/Oは、アドレス順に自己のアドレスに対応した前記
タイミング信号のタイムスロットで割込要求の有無をチ
ェックし、自己が割込要求の出力をしており、かつ、CP
Uの割込サイクルが使用されていることを示すビジー信
号がインアクティブあることを確認したときに割込サイ
クルを獲得するように構成されている。In order to achieve this object, the interrupt control method according to the present invention transmits an interrupt request signal to the CPU as active when there is an interrupt request from at least one of a plurality of I / Os, and outputs from the CPU. It activates the interrupt acknowledge signal that indicates the CPU interrupt cycle, and outputs the timing signal in synchronization with this interrupt acknowledge signal.
Each I / O checks the presence or absence of an interrupt request in the time slot of the timing signal corresponding to its own address in the order of address, and outputs the interrupt request by itself, and the CP
It is configured to acquire an interrupt cycle when it sees that the busy signal indicating that U's interrupt cycle is being used is inactive.
[実施例] 以下、本発明を図面に基づいて説明する。EXAMPLES The present invention will be described below with reference to the drawings.
第1図は、本発明による割込制御方法の一実施例を示
すブロック回路図であり、第2図は、第1図に示す回路
の動作を説明するタイミングチャートである。なお、実
施例の説明としては、I/O−2が割込要求を出した場合
を例示する。FIG. 1 is a block circuit diagram showing an embodiment of an interrupt control method according to the present invention, and FIG. 2 is a timing chart explaining the operation of the circuit shown in FIG. In addition, as a description of the embodiment, a case where the I / O-2 issues an interrupt request is illustrated.
I/O−2及びI/O−nが割込要求することにより、割込
要求信号11がアクティブとなり、CPUへ伝送される。CPU
は、割込要求を受け付けると、割込アクノリッジ信号12
をアクティブとすると共に、割込アクノリッジ信号12に
同期してI/O−1,I/O−2,・・・,I/O−nに対応したタイ
ミング信号13を出力する。When the I / O-2 and I / O-n make an interrupt request, the interrupt request signal 11 becomes active and is transmitted to the CPU. CPU
When the interrupt request is accepted, the interrupt acknowledge signal 12
, And outputs timing signals 13 corresponding to I / O-1, I / O-2, ..., I / O-n in synchronization with the interrupt acknowledge signal 12.
ここで、I/O−1,I/O−2,・・・,I/O−nは、それぞれ
アドレス「1」,「2」,・・・,「n」を示し、タイ
ミング信号13のパルス数と一致する位置をタイムスロッ
トt1,t2,・・・,tnとしている。Here, I / O-1, I / O-2, ..., I / O-n indicate addresses “1”, “2”, ... Positions corresponding to the number of pulses are time slots t 1 , t 2 , ..., T n .
I/O−1は、自己のアドレス「1」に対応したタイミ
ング信号13のタイムスロットt1で割込要求の有無をチェ
ックする。このときI/O−1は、自己が割込要求を出力
していなければ割込サイクルを獲得する必要が無く、ビ
ジー信号14をインアクティブに保つ。I / O-1 checks whether the interrupt request in the time slot t 1 of the timing signal 13 corresponding to the own address "1". At this time, the I / O-1 does not need to acquire the interrupt cycle unless it outputs the interrupt request, and keeps the busy signal 14 inactive.
I/O−2は、自己のアドレス「2」に対応したタイミ
ング信号13のタイムスロットt2で割込要求の有無をチェ
ックする。このとき、ビジー信号14がインアクティブで
あることを確認し、自己が割込サイクルを獲得できるこ
とを検出してから、ビジー信号14をアクティブとする。
その後、割込アクノリッジ信号12がアクティブの間、ビ
ジー信号14をアクティブに保持する。The I / O-2 checks whether or not there is an interrupt request at the time slot t 2 of the timing signal 13 corresponding to its own address “2”. At this time, after confirming that the busy signal 14 is inactive and detecting that the self can acquire an interrupt cycle, the busy signal 14 is activated.
After that, the busy signal 14 is held active while the interrupt acknowledge signal 12 is active.
I/O−nは、自己のアドレス「n」に対応したタイミ
ング信号13のタイムスロットtnで割込要求の有無をチェ
ックするが、このとき既にビジー信号14がアクティブと
なっているので、自己割込要求を出力していても、割込
サイクルを獲得できないことを検出する。The I / O-n checks whether or not there is an interrupt request at the time slot t n of the timing signal 13 corresponding to its own address “n”. At this time, the busy signal 14 is already active. Even if an interrupt request is output, it is detected that the interrupt cycle cannot be acquired.
このようにして、各I/O間を共通信号で接続するよう
にし、各I/Oのアドレスに対応するタイムスロットで割
込サイクルを獲得するようにしたことで、途中のI/Oを
取り外しても特別な信号の中継手段を用いることは不要
となるようにしている。In this way, by connecting each I / O with a common signal and acquiring the interrupt cycle in the time slot corresponding to the address of each I / O, I / O in the middle can be removed. However, it is not necessary to use a special signal relay means.
また、一度の割込サイクルにおいて、アドレス順の優
先順位にて一つのI/Oを選択し処理できるので、アドレ
ス順を緊急度の高い順にしておけば緊急度の高いI/Oを
優先して処理できる。Also, in one interrupt cycle, one I / O can be selected and processed according to the priority order of the address order, so if the address order is set to the highest priority, the I / O with the highest priority will be given priority. Can be processed.
[発明の効果] 以上で説明したように、本発明は、複数のI/Oから出
力される共通の割込要求信号と、CPUの割込サイクルを
示す割込アクノリッジ信号と、割込アクノリッジ信号に
同期し、かつ複数のI/Oのアドレスに割り当てられたタ
イムスロットを有するタイミング信号と、CPUの割込サ
イクルが使用されていることを示すビジー信号を用いる
ことにより、複数のI/Oのアドレスに割り当てられたタ
イミング信号のタイムスロットにおいて、ビジー信号の
判断を行うことで割込サイクルを獲得するように構成し
たことにより、各I/O間を共通信号で接続することが可
能となり、途中のI/Oを取り外しても特別な信号の中継
手段が不要となる効果がある。[Effects of the Invention] As described above, according to the present invention, a common interrupt request signal output from a plurality of I / Os, an interrupt acknowledge signal indicating an interrupt cycle of a CPU, and an interrupt acknowledge signal. By using a timing signal that has a time slot assigned to the addresses of multiple I / Os and a busy signal that indicates that the interrupt cycle of the CPU is being used, In the time slot of the timing signal assigned to the address, it is possible to connect each I / O with a common signal by configuring to acquire the interrupt cycle by judging the busy signal. Even if I / O is removed, there is an effect that no special signal relay means is required.
第1図は、本発明による割込制御方法の一実施例を示す
ブロック回路図、 第2図は、第1図に示す回路の動作を説明するタイミン
グチャート、 第3図は、従来の割込制御方法の一例を示すブロック回
路図、 第4図は、従来の割込制御方法の他の例を示すブロック
回路図である。 11……割込要求信号 12……割込アクノリッジ信号 13……タイミング信号 14……ビジー信号FIG. 1 is a block circuit diagram showing an embodiment of an interrupt control method according to the present invention, FIG. 2 is a timing chart explaining the operation of the circuit shown in FIG. 1, and FIG. 3 is a conventional interrupt. FIG. 4 is a block circuit diagram showing an example of the control method, and FIG. 4 is a block circuit diagram showing another example of the conventional interrupt control method. 11 …… Interrupt request signal 12 …… Interrupt acknowledge signal 13 …… Timing signal 14 …… Busy signal
Claims (1)
があったときに割込要求信号をアクティブとして、 CPUから出力される、CPUの割込サイクルを示す割込アク
ノリッジ信号をアクティブとすると共に、この割込アク
ノリッジ信号に同期してタイミング信号を出力し、 各I/Oは、アドレス順に自己のアドレスに対応した前記
タイミング信号のタイムスロットで割込要求の有無をチ
ェックし、 自己が割込要求の出力をしており、かつ、CPUの割込サ
イクルが使用されていることを示すビジー信号がインア
クティブあることを確認したときに割込サイクルを獲得
する ことを特徴とした割込制御方法。1. An interrupt request signal that is active when there is an interrupt element from at least one of a plurality of I / Os and that activates an interrupt acknowledge signal that is output from the CPU and that indicates the interrupt cycle of the CPU. In addition, the timing signal is output in synchronization with this interrupt acknowledge signal, and each I / O checks the presence or absence of an interrupt request in the time slot of the timing signal corresponding to its own address in the address order. Is outputting an interrupt request, and acquires an interrupt cycle when it confirms that the busy signal indicating that the CPU interrupt cycle is being used is inactive. Embedded control method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1163900A JP2536622B2 (en) | 1989-06-28 | 1989-06-28 | Interrupt control method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1163900A JP2536622B2 (en) | 1989-06-28 | 1989-06-28 | Interrupt control method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0330044A JPH0330044A (en) | 1991-02-08 |
| JP2536622B2 true JP2536622B2 (en) | 1996-09-18 |
Family
ID=15782956
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1163900A Expired - Fee Related JP2536622B2 (en) | 1989-06-28 | 1989-06-28 | Interrupt control method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2536622B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4561364B2 (en) * | 2005-01-05 | 2010-10-13 | 日本電気株式会社 | Dual polarization receiver |
| JP2007089043A (en) * | 2005-09-26 | 2007-04-05 | Sharp Corp | Control method and control system |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS50156335A (en) * | 1974-06-05 | 1975-12-17 |
-
1989
- 1989-06-28 JP JP1163900A patent/JP2536622B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0330044A (en) | 1991-02-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2533192B2 (en) | Power-on reset circuit in multiprocessor system | |
| JP2536622B2 (en) | Interrupt control method | |
| JPH0426914Y2 (en) | ||
| EP0288191B1 (en) | Method and apparatus for data transfer handshake pipelining | |
| JPH0114616B2 (en) | ||
| JPH038617B2 (en) | ||
| JPH06161938A (en) | Input/output device control system | |
| JPS5844426Y2 (en) | Inter-processor information transfer device | |
| JPH04654A (en) | Bus control system | |
| JP2939666B2 (en) | Bus failure judgment method | |
| JPS60230254A (en) | Use bus informing system in distributed processing system | |
| JPH02126356A (en) | Bus control system | |
| JPS62182960A (en) | Detecting device for connection of input/output control device | |
| JPS6116108B2 (en) | ||
| JPS61107455A (en) | Polling control system | |
| JPS62172441A (en) | Runaway detection device for multi cpu system | |
| JPH03117244A (en) | Transmission system | |
| JPH04363742A (en) | Data processor | |
| JPH0828720B2 (en) | Bus type transmission line system | |
| JPS5953950A (en) | Fault relieving method of inter-processor communication equipment | |
| JPH11316743A (en) | Common memory control method/controller | |
| JPS61204757A (en) | Inter-processor communication system | |
| JPS63271512A (en) | Resetting circuit for plural central arithmetic processor | |
| JPH0436419B2 (en) | ||
| JPS6022374B2 (en) | Fault detection/avoidance circuit |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |