Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2979778B2 - Signal line sharing method - Google Patents
[go: Go Back, main page]

JP2979778B2 - Signal line sharing method - Google Patents

Signal line sharing method

Info

Publication number
JP2979778B2
JP2979778B2 JP3259121A JP25912191A JP2979778B2 JP 2979778 B2 JP2979778 B2 JP 2979778B2 JP 3259121 A JP3259121 A JP 3259121A JP 25912191 A JP25912191 A JP 25912191A JP 2979778 B2 JP2979778 B2 JP 2979778B2
Authority
JP
Japan
Prior art keywords
signal
processing unit
signal line
interrupt
master
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 - Lifetime
Application number
JP3259121A
Other languages
Japanese (ja)
Other versions
JPH05100993A (en
Inventor
啓行 能登
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP3259121A priority Critical patent/JP2979778B2/en
Publication of JPH05100993A publication Critical patent/JPH05100993A/en
Application granted granted Critical
Publication of JP2979778B2 publication Critical patent/JP2979778B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】この発明は、割り込み信号線等の
信号線共有化方式に関し、たとえば、マイクロコンピュ
ータシステムのバスアーキテクチャに係わる割り込み処
理に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of sharing a signal line such as an interrupt signal line, for example, to an interrupt process relating to a bus architecture of a microcomputer system.

【0002】[0002]

【従来の技術】図9は例えば従来のマイクロコンピュー
タシステムを示す機能分割図面であり、図において、1
は分割された機能モジュール間のデータ通信を行うシス
テムバス、2は必要な数だけ用意され、各々の機能を担
当するバススレーブモジュール(あるいは、単にバスス
レーブともいう)、3は各々のバススレーブモジュール
2に対しサービスを行うバスマスタである。
2. Description of the Related Art FIG. 9 is a functional division drawing showing, for example, a conventional microcomputer system.
Is a system bus for performing data communication between the divided functional modules, 2 is provided in a required number, and a bus slave module (or simply referred to as a bus slave) in charge of each function, and 3 is each bus slave module. 2 is a bus master that provides a service to the server 2.

【0003】次に動作について説明する。システムバス
1上にある2のバススレーブモジュール(1)が何らか
の要因によりバスマスタ3のサービスを受ける必要があ
る場合、バススレーブモジュール(2)は自身に割り当
てられた割り込み信号線1cを駆動する。バスマスタ3
は、割り込み信号線1cが駆動されたことで、バススレ
ーブモジュール(1)より割り込みサービスの要求があ
ることを検知し、バススレーブモジュール(1)に対し
てデータ転送等のサービスをシステムバス1の他の信号
線群1dを用いて開始する。図10はバススレーブ2、
およびバスマスタ3の内部ブロック図であり、バススレ
ーブ2がバスマスタ3のサービスを受ける必要がある場
合、割り込み要因(1)の信号線5を有意にし、バスド
ライバ6が、システムバス1上の割り込み信号線1cを
駆動する。バスマスタでは、システムバス上の全割り込
み信号線がバスレシーバ7を介して割り込みコントロー
ル回路8に接続されており、割り込みコントロール回路
8によって、割り込み線号線1cが駆動されたこと、す
なわち、システムバス1上のバススレーブ(1)が割り
込みサービスの要求があるということを、バスマスタ3
内のCPUが解釈できる様、翻訳し伝達することで、バ
スマスタ3はバススレーブ2に対して割り込みサービス
を開始することができる。
Next, the operation will be described. When the two bus slave modules (1) on the system bus 1 need to receive the service of the bus master 3 for some reason, the bus slave module (2) drives the interrupt signal line 1c assigned to itself. Bus master 3
Detects that there is an interrupt service request from the bus slave module (1) because the interrupt signal line 1c is driven, and provides services such as data transfer to the bus slave module (1). The process starts using another signal line group 1d. FIG. 10 shows bus slave 2,
FIG. 4 is an internal block diagram of the bus master 3. When the bus slave 2 needs to receive the service of the bus master 3, the signal line 5 of the interrupt factor (1) is made significant, and the bus driver 6 transmits the interrupt signal on the system bus 1. Drive line 1c. In the bus master, all the interrupt signal lines on the system bus are connected to the interrupt control circuit 8 via the bus receiver 7, and the interrupt control circuit 8 drives the interrupt line 1c. That the bus slave (1) has an interrupt service request.
The bus master 3 can start an interrupt service to the bus slave 2 by translating and transmitting the interpreted data so that the CPU can interpret it.

【0004】[0004]

【発明が解決しようとする課題】従来の割り込み方式で
は、以上のように構成されているので、割り込みサービ
スを要求するバススレーブモジュールの数だけ割り込み
信号線が必要で、また、互換性等を考慮してシステムバ
スの物理的仕様を変更しない場合において、システム機
能上必要となる割り込み信号線数が得られない問題点が
あった。
In the conventional interrupt system, the above configuration is adopted, so that the number of interrupt signal lines is required as many as the number of bus slave modules requesting an interrupt service, and compatibility is taken into consideration. When the physical specifications of the system bus are not changed, the number of interrupt signal lines required for the system function cannot be obtained.

【0005】この発明は上記のような問題点を解消する
ためになされたもので、複数のバススレーブモジュール
に接続される信号線を共有化できるとともに、その共有
化された信号線に接続されるバススレーブモジュールの
数に制限がない信号線共有化方式を得ることを目的とし
ている。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problems, and a signal line connected to a plurality of bus slave modules can be shared and connected to the shared signal line. The purpose of the present invention is to obtain a signal line sharing system in which the number of bus slave modules is not limited.

【0006】[0006]

【課題を解決するための手段】第1の発明に係る信号線
共有化方式は、システムバス上に割り込み信号送出タイ
ミング信号線(タイミング信号線の一例)を設け、タイ
ミング信号発生手段により、周期の異なるタイミング信
号成分を合成することにより割り込み信号送出タイミン
グ信号を発生させ、バススレーブモジュール(スレーブ
処理部の一例)上で割り込み信号送出タイミング信号
(タイミング信号の一例)に同期した割り込み信号(駆
動信号の一例)を発生させる割り込み信号線駆動回路
(駆動手段の一例)により、割り込み信号線(共有化信
号線の一例)を時分割多重使用することとし、バスマス
タ(マスタ処理部の一例)にて、時分割多重使用されて
いる割り込み信号を所定の方法で復調する復調回路(受
信手段の一例)を持つことで、割り込み信号線の共有化
を図るものである。
Means for Solving the Problems] signal lines sharing system according to the first invention, provided on the system bus an interrupt signal transmission timing signal line (an example of a timing signal line), Thailand
Timing signals with different periods by the
Interrupt signal by combining signal components
Signal line drive circuit (drive) that generates an interrupt signal (an example of a drive signal) synchronized with an interrupt signal transmission timing signal (an example of a timing signal) on a bus slave module (an example of a slave processing unit) In this case, an interrupt signal line (an example of a shared signal line) is time-division multiplexed, and an interrupt signal used by the bus master (an example of a master processing unit) is time-division multiplexed. By having a demodulation circuit (an example of a receiving means) for demodulating in (1), sharing of an interrupt signal line is achieved.

【0007】また、第2の発明に係る信号線共有化方式
は、システムバス上にバスクロック線(クロック信号線
の一例)を設け、バススレーブモジュール(スレーブ処
理部の一例)上でそのバスクロック信号に同期した割り
込み信号(駆動信号の一例)を発生させる割り込み信号
線駆動回路(駆動手段の一例)と、この割り込み信号線
駆動回路の動作を禁止する割り込みマスクレジスタ(禁
止手段の一例)により、割り込み信号線(共有化信号線
の一例)を時分割使用することとし、バスマスタ(マス
タ処理部の一例)にて、時分割使用されている割り込み
信号により起動される割り込み処理プログラム(処理手
段の一例)で、バススレーブモジュールに問い合わせを
行い、割り込み信号を出したバススレーブモジュールを
特定することで、割り込み信号線の共有化を図るもので
ある。
In the signal line sharing system according to the second invention, a bus clock line (an example of a clock signal line) is provided on a system bus, and the bus clock line is provided on a bus slave module (an example of a slave processing unit). An interrupt signal line driving circuit (an example of a driving unit) that generates an interrupt signal (an example of a driving signal) synchronized with a signal, and an interrupt mask register (an example of a prohibiting unit) that prohibits the operation of the interrupt signal line driving circuit. An interrupt signal line (an example of a shared signal line) is time-divisionally used, and an interrupt processing program (an example of a processing unit) activated by a time-divisionally used interrupt signal in a bus master (an example of a master processing unit) ) To query the bus slave module
Performed, by identifying the bus slave module that issued the interrupt signal is intended to reduce the share of the interrupt signal line.

【0008】[0008]

【作用】第1の発明において割り込み信号線駆動回路
(駆動手段)は、バススレーブモジュールで発生する非
同期な割り込み発生要因を周期の異なるタイミング信号
成分を有する割り込み信号送出タイミング信号に合わせ
て同期化させ、割り込み信号線を時分割使用可能とさせ
る。また、バスマスタ上の復調回路(受信手段)は、割
り込み信号送出タイミング信号に合わせて、共有化され
た割り込み信号を復調し、割り込みサービスを要求した
バススレーブモジュールを特定する。
According to the first aspect, the interrupt signal line drive circuit (drive means) detects an asynchronous interrupt occurrence factor generated in the bus slave module by a timing signal having a different cycle.
Synchronization is performed in accordance with an interrupt signal transmission timing signal having a component, so that an interrupt signal line can be used in a time division manner. Further, the demodulation circuit (receiving means) on the bus master demodulates the shared interrupt signal in accordance with the interrupt signal transmission timing signal, and specifies the bus slave module which has requested the interrupt service.

【0009】第2の発明において割り込み信号線駆動回
路(信号駆動手段)は、バススレーブモジュールで発生
する非同期な割り込み発生要因を、バスクロック信号線
に合わせて同期させて出力するとともに、割り込みマス
クレジスタ(禁止手段)は他のバススレーブモジュール
が共有化された割り込み信号線を使用していることを検
出して自己の割り込み信号線駆動回路(信号駆動手段)
の動作を禁止するので、複数のバススレーブモジュール
からひとつの割り込み信号線に対する二重駆動が防止で
きる。また、バスマスタ上の割り込み処理プログラム
(処理手段)はバススレーブモジュールに問い合わせを
行い、割り込みサービスを要求したバススレーブモジュ
ールを特定する。
In the second invention, the interrupt signal line drive circuit ( signal drive means) outputs an asynchronous interrupt generation factor generated in the bus slave module in synchronization with the bus clock signal line and outputs the interrupt mask register. The (prohibiting means) detects that another bus slave module uses the shared interrupt signal line, and detects its own interrupt signal line driving circuit ( signal driving means).
, The double driving of one interrupt signal line from a plurality of bus slave modules can be prevented. The interrupt processing program (processing means) on the bus master sends an inquiry to the bus slave module.
Then, the bus slave module that has requested the interrupt service is specified.

【0010】[0010]

【実施例】【Example】

実施例1.以下、この発明の一実施例を図について説明
する。図1において1〜3は前述しているので省略す
る。1fは割り込み送出タイミング信号線であり、1e
は共有化された割り込み信号線である。1e、1fのい
ずれもシステムバス1上の信号線であり、割り込みサー
ビスを必要とするバススレーブモジュール2全部とバス
マスタ3に接続される。
Embodiment 1 FIG. An embodiment of the present invention will be described below with reference to the drawings. In FIG. 1, steps 1 to 3 have been described above, and will not be described. 1f is an interrupt transmission timing signal line, and 1e
Is a shared interrupt signal line. Each of 1e and 1f is a signal line on the system bus 1, and is connected to all the bus slave modules 2 requiring an interrupt service and the bus master 3.

【0011】図2は、バススレーブ2および、バスマス
タ3の内部ブロックである。バススレーブ(1)におい
て発生した割り込みサービス要求は割り込み要因(1)
信号線5を有意にすることで、割り込み信号線駆動回路
9が、ラインレシーバ10を介して接続されている割り
込み送出タイミング信号1fに所定のタイミングに同期
させた割り込み信号をラインドライバ11を介して共有
化された割り込み信号線1eに出力する。
FIG. 2 is an internal block diagram of the bus slave 2 and the bus master 3. The interrupt service request generated in the bus slave (1) is generated by the interrupt source (1).
By making the signal line 5 significant, the interrupt signal line drive circuit 9 sends, via the line driver 11, an interrupt signal synchronized with a predetermined timing to the interrupt sending timing signal 1f connected via the line receiver 10. Output to the shared interrupt signal line 1e.

【0012】ラインドライバ11は、1本の割り込み信
号線を複数のドライバが駆動するので、オープンコレク
タ、又は、それに相当する機能をもつラインドライバを
使用する。
Since a plurality of drivers drive one interrupt signal line, the line driver 11 uses an open collector or a line driver having a function equivalent thereto.

【0013】バスマスタ3では、共有化された割り込み
信号線1eがラインレシーバ12を介して復調回路14
に入力される。プルアップ抵抗13は、どのバススレー
ブも割り込み信号線を駆動していないときにその信号線
の電位を安定させる為にある。割り込み送出タイミング
発生回路15は、復調回路14が、時分割多重使用され
ている割り込み信号を割り込みサービス要求元が判別で
きるような特定の信号パターンであって、さらに、バス
スレーブ2上の割り込み信号線駆動回路9自身が、共有
化された割り込み信号線の使用可能である時間を判別で
きるような特定の信号パターンを発生する。
In the bus master 3, the shared interrupt signal line 1e is connected to the demodulation circuit 14 via the line receiver 12.
Is input to The pull-up resistor 13 stabilizes the potential of the signal line when no bus slave drives the interrupt signal line. The interrupt transmission timing generation circuit 15 has a specific signal pattern that enables the demodulation circuit 14 to identify the interrupt service request source of the interrupt signal used in time division multiplexing. The drive circuit 9 itself generates a specific signal pattern that can determine the usable time of the shared interrupt signal line.

【0014】図3は、割り込み信号線駆動回路の一例で
ある。ラインレシーバ10を介した割り込み送出タイミ
ング信号16はワンショットマルチバイブレータ17と
カウンタ18に入力される。カウンタ18はそのCLK
入力の立上がりエッジにて、その出力0、1、2、3、
〜、nが順次有意となる様に動作し、また、そのRST
入力が有意であって、かつ、そのCLK入力の立上がり
エッジにおいて、出力0が有意になる様リセットされる
ものである。ワンショットマルチバイブレータ17はそ
の入力信号の立上がりエッジより、一定の期間その出力
19が有意になる様動作するものである。カウンタ18
およびワンショットマルチバイブレータ17の動作タイ
ミングを図5に示す。ラインレシーバ10を介した割り
込み送出タイミング信号16は図5の様に、立上がりエ
ッジから次の立上がりエッジまでが短い期間20とそれ
が長い期間21(立上がりエッジにても同様である)を
有する信号を用い、かつワンショットマルチバイブレー
タ17の出力19が有意に接続される期間を期間20と
期間21の中間に設定することにより、期間20におい
て、カウンタ18はリセットされ、期間21にて、カウ
ンタ18は割り込み送出タイミング信号に同期してカウ
ントできる。つまり、システムバス上の全バススレーブ
モジュール2内のカウンタ18は、全て同じ計数値を示
すことができる。従って、個々のバススレーブモジュー
ル2に独立した番号を割り当て、その番号とカウンタ1
8の計数値が一致した時において、割り込み信号線を駆
動可能とすれば、全バススレーブモジュールにて1本の
割り込み信号線を共有して使用できる。図3において
は、カウンタ18の計数値が”1”の時、信号線22が
有意となり、5の割り込み要因(1)が有意であれば2
3のANDゲートの出力24が有意になり、ラインドラ
イバ11を介して共有化された割り込み信号線1eが駆
動される。
FIG. 3 shows an example of an interrupt signal line drive circuit. The interrupt transmission timing signal 16 via the line receiver 10 is input to a one-shot multivibrator 17 and a counter 18. The counter 18 has its CLK
At the rising edge of the input, its outputs 0, 1, 2, 3,
, N operate in order to become significant, and the RST
The input is significant and at the rising edge of its CLK input, the output 0 is reset to be significant. The one-shot multivibrator 17 operates so that its output 19 becomes significant for a certain period from the rising edge of its input signal. Counter 18
FIG. 5 shows the operation timing of the one-shot multivibrator 17. As shown in FIG. 5, the interrupt transmission timing signal 16 via the line receiver 10 is a signal having a short period 20 from the rising edge to the next rising edge and a long period 21 (the same applies to the rising edge). The counter 18 is reset in the period 20 by using and setting the period in which the output 19 of the one-shot multivibrator 17 is significantly connected to between the periods 20 and 21, and the counter 18 is reset in the period 21. It can be counted in synchronization with the interrupt transmission timing signal. That is, all the counters 18 in all the bus slave modules 2 on the system bus can indicate the same count value. Therefore, an independent number is assigned to each bus slave module 2, and the number and the counter 1 are assigned.
If the interrupt signal lines can be driven when the count values of 8 match, one interrupt signal line can be shared and used by all bus slave modules. In FIG. 3, when the count value of the counter 18 is “1”, the signal line 22 becomes significant, and when the interrupt factor (1) of 5 is significant, 2
3, the output 24 of the AND gate becomes significant, and the shared interrupt signal line 1e is driven via the line driver 11.

【0015】図4は、バスマスタ3の復調回路14の一
例である。割り込み送出タイミング信号1fより現在ど
のバススレーブモジュールが共有化された割り込み信号
線1eを使用しているかを判断する方法については、割
り込み信号線駆動回路と同様である。割り込み信号線駆
動回路との相異点は2つあり、1つは割り込み送出タイ
ミング信号の立上がりエッジにて送出された割り込み信
号が安定してから、復調回路14によってサンプリング
される様、インバータ25によって、割り込み信号駆動
タイミングとサンプリングタイミングを図5の26の様
にずらしている。2つめは、共有化された割り込み信号
線1eは一定期間のみしか1つのバススレーブモジュー
ルの割り込み要求状態を示さないので、その状態を記憶
するためにDフリップフロップ27を用いている。図5
においては、28の期間、バススレーブモジュール
(1)にて、割り込み要求を共有化された割り込み信号
線1eに対して出力しており、その要求出力はラインレ
シーバ12を介した信号21としてDフリップフロップ
27へ入力される。割り込み送出タイミング信号1fは
バスマスタ3内で信号線20を介して、インバータ25
へ入力されており、その立下がりエッジにて、D−フリ
ップフロップ27に、期間28の割り込み信号線の状態
が26の様に記憶される。図4の場合、バススレーブモ
ジュール(1)に対しては信号線29が対応する。
FIG. 4 shows an example of the demodulation circuit 14 of the bus master 3. How interrupts transmission timing signal 1f from which bus slave module now determines whether the use the shared by interrupt signal line 1e are similar to the interrupt signal line driver circuit. There are two different points from the interrupt signal line drive circuit. One is that the interrupt signal is output from the inverter 25 so that it is sampled by the demodulation circuit 14 after the interrupt signal transmitted at the rising edge of the interrupt transmission timing signal is stabilized. 5, the interrupt signal drive timing and the sampling timing are shifted as shown in FIG. Second, since the shared interrupt signal line 1e indicates the interrupt request state of one bus slave module only for a certain period, the D flip-flop 27 is used to store the state. FIG.
During the period 28, the bus slave module (1) outputs an interrupt request to the shared interrupt signal line 1e, and the request output is output as a signal 21 via the line receiver 12 as a D flip-flop. Is input to step 27. The interrupt transmission timing signal 1f is sent to the inverter 25 via the signal line 20 in the bus master 3.
At the falling edge, the state of the interrupt signal line during the period 28 is stored in the D-flip-flop 27 as shown at 26. In the case of FIG. 4, the signal line 29 corresponds to the bus slave module (1).

【0016】信号線29を含む信号線群30は割り込み
コントロール回路8へ出力される。この信号線群30
は、図10における信号群31と同様の効果を持つこと
になる。
The signal line group 30 including the signal lines 29 is output to the interrupt control circuit 8. This signal line group 30
Has the same effect as the signal group 31 in FIG.

【0017】実施例2.次に、割り込み送出タイミング
信号に周期一定の信号を用い、復調回路の代わりにバス
マスタ側の割り込み処理プログラムとバススレーブ側で
の割り込みマスクレジスタを追加した割り込み信号線駆
動回路により、実施例1と同様の効果を得る一実施例を
説明する。
Embodiment 2 FIG. Next, an interrupt signal line driving circuit in which a fixed cycle signal is used as an interrupt transmission timing signal and an interrupt processing program on the bus master side and an interrupt mask register on the bus slave side are added instead of the demodulation circuit is used. A description will be given of an embodiment for obtaining the effect described above.

【0018】図6はこの実施例の構成図である。割り込
み送出タイミング信号発生回路に代わり、バスクロック
発生回路32が、一定周期のクロック信号33を出力
し、ラインドライバ34にてバスクロック信号線1gが
駆動される。その他は、図10のバスマスタの構成と同
じである。共有化された割り込み信号線1eはラインレ
シーバ12を介して割り込みコントロール回路8に入力
され、その信号の立ち上がりエッジにて割り込み発生と
する。
FIG. 6 is a block diagram of this embodiment. Instead of the interrupt transmission timing signal generation circuit, the bus clock generation circuit 32 outputs a clock signal 33 having a fixed period, and the line clock 34 drives the bus clock signal line 1g. The rest is the same as the configuration of the bus master in FIG. The shared interrupt signal line 1e is input to the interrupt control circuit 8 via the line receiver 12, and an interrupt is generated at the rising edge of the signal.

【0019】バススレーブモジュール2の割り込み信号
線駆動回路35は、割り込みマスクレジスタ36の割り
込み禁止出力37が有意でなく、かつ5の割り込み要因
(1)が有意である時のみ、バスクロック信号1gの立
上がりエッジにて出力24が有意となり、ラインドライ
バ11を介して共有化された割り込み信号線1eを、1
バスクロック期間、論理”0”に駆動させる。共有化さ
れた割り込み信号線1eは、ラインレシーバ38に入力
され、その出力39は割り込みマスクレジスタ36へ入
力される。割り込みマスクレジスタ36は、他のバスス
レーブモジュールによって一度でも、共有化された割り
込み信号線1eが駆動されたならば、その出力37は有
意となり自バススレーブモジュールが共有化された割り
込み信号線1eを不正なタイミングで駆動するのを防
ぎ、多重割り込み状態が発生しない様にするためのもの
である。バススレーブモジュール2は、バスマスタ3に
よって、5の割り込み要因の有/無、割り込みマスクレ
ジスタの状態を確認でき、かつ、割り込みマスクレジス
タ36をリセット可能としておくことが必要である。
The interrupt signal line drive circuit 35 of the bus slave module 2 outputs the bus clock signal 1g only when the interrupt disable output 37 of the interrupt mask register 36 is not significant and the interrupt factor (1) of 5 is significant. At the rising edge, the output 24 becomes significant, and the interrupt signal line 1e shared via the line driver 11 is set to 1
It is driven to logic "0" during the bus clock period. The shared interrupt signal line 1e is input to a line receiver 38, and its output 39 is input to an interrupt mask register 36. If the shared interrupt signal line 1e is driven even once by another bus slave module, its output 37 becomes significant, and the interrupt mask register 36 sets the interrupt signal line 1e shared by its own bus slave module. This is to prevent driving at an improper timing and prevent a multiple interrupt state from occurring. The bus slave module 2 needs to be able to confirm the presence / absence of the five interrupt factors, the state of the interrupt mask register, and reset the interrupt mask register 36 by the bus master 3.

【0020】図7は割り込み信号線駆動回路35および
割り込みマスクレジスタ36の一例である。D−フリッ
プフロップ40、41により、バスクロック信号16の
1周期分の割り込み信号を発生させることができ、その
発生条件は、5の割り込み要因が有意であり、かつ、3
7の割り込みマスク信号が有意でないとき、ANDゲー
ト42によってD−フリップフロップ40、41のリセ
ット信号43が解除されることである。割り込みマスク
レジスタ36もD−フリップフロップで構成されてお
り、共有化された割り込み信号線1eの”H”→”L”
の立下がりエッジにおいて、割り込み禁止信号37が有
意となる。また、割り込みマスクレジスタ36は、自バ
ススレーブモジュールにてデコードされたバスマスタ3
からの割り込みマスクレジスタ信号44によりリセット
可能である。NORゲート45は、自バススレーブモジ
ュールが、共有化された割り込み信号線1eを駆動する
時、割り込みマスクレジスタがセットされない様にする
ためである。
FIG. 7 shows an example of the interrupt signal line drive circuit 35 and the interrupt mask register 36. The D-flip-flops 40 and 41 can generate an interrupt signal for one cycle of the bus clock signal 16, and the generation condition is that five interrupt factors are significant and 3
When the interrupt mask signal of No. 7 is not significant, the reset signal 43 of the D-flip-flops 40 and 41 is released by the AND gate 42. The interrupt mask register 36 is also formed of a D-flip-flop, and the “H” → “L” of the shared interrupt signal line 1e is used.
At the falling edge of, the interrupt inhibition signal 37 becomes significant. The interrupt mask register 36 stores the bus master 3 decoded by the own bus slave module.
Can be reset by an interrupt mask register signal 44 from the CPU. The NOR gate 45 prevents the interrupt mask register from being set when the own bus slave module drives the shared interrupt signal line 1e.

【0021】図8は、バスマスタ3の割り込み処理プロ
グラム50のフローチャートである。この割り込み処理
プログラム50は割り込みコントロール回路8から割り
込みサービスの要求がCPUへ伝えられたときに起動さ
れるプログラムであり、起動されると、S1で全バスス
レーブモジュールの割り込み要求有/無、及び、割り込
みマスクレジスタの状態を確認する。そして、S2で割
り込み要求有のバススレーブモジュールに対し、割り込
みサービスを行う。さらに、S3で割り込み禁止信号3
7が有意となっているバススレーブモジュールに対して
割り込みマスクレジスタリセット信号44を有意して、
その割り込みマスクレジスタ36をリセットする。
FIG. 8 is a flowchart of the interrupt processing program 50 of the bus master 3. The interrupt processing program 50 is a program that is started when an interrupt service request is transmitted from the interrupt control circuit 8 to the CPU. Check the status of the interrupt mask register. Then, in S2, an interrupt service is performed to the bus slave module having the interrupt request. Further, at S3, the interrupt disable signal 3
The interrupt mask register reset signal 44 is made significant for the bus slave module in which 7 is significant,
The interrupt mask register 36 is reset.

【0022】実施例3.上記実施例では、バスマスタ3
とバススレーブモジュール2は、システムバス1を介し
て物理的に離れた構成となっているが、同一配線基板上
に存在していても良く、バスマスタ3およびバススレー
ブモジュール2の物理的な実装形態には特にこだわる必
要がなく、上記実施例と同様の効果が得られる。
Embodiment 3 FIG. In the above embodiment, the bus master 3
Although the bus slave module 2 and the bus slave module 2 are physically separated from each other via the system bus 1, they may be present on the same wiring board. Does not need to be particularly adhered to, and the same effects as in the above embodiment can be obtained.

【0023】実施例4.上記実施例では、割り込み信号
線を共有化する場合を示したが、その他の信号線を共有
化する場合でもかまわない。
Embodiment 4 FIG. In the above embodiment, the case where the interrupt signal line is shared is described. However, the case where another signal line is shared may be used.

【0024】[0024]

【発明の効果】以上のように、第1及び第2の発明によ
れば多数必要となる信号線を1本の共有化された信号線
で済むように構成したので、システムバス全体の信号線
数を減少でき、将来のシステム全体の機能拡張におい
て、使用可能な割り込み信号線の信号線数によって生ず
る機能拡張制限から逃れることができる効果がある。
As described above, according to the first and second aspects of the present invention, a large number of necessary signal lines can be replaced by a single shared signal line. The number can be reduced, and in the future expansion of the function of the entire system, there is an effect that the expansion of the function caused by the number of usable interrupt signal lines can be avoided.

【0025】また、本方式は、従来のシステムの延長上
にあって、機能を追加する形態であるので、使用目的、
用途に合わせて、既存のシステムバスの物理的仕様を変
更することなく、信号仕様を若干変更するだけで上述の
効果を得ることができる。
The present system is an extension of the conventional system and is a form in which functions are added.
The above-described effects can be obtained by slightly changing the signal specifications without changing the physical specifications of the existing system bus according to the application.

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

【図1】この発明の一実施例を示す割り込み信号線共有
化方法を用いたシステム図である。
FIG. 1 is a system diagram using an interrupt signal line sharing method according to an embodiment of the present invention.

【図2】この発明の一実施例を示すバスマスタ、バスス
レーブの内部ブロック図である。
FIG. 2 is an internal block diagram of a bus master and a bus slave showing one embodiment of the present invention.

【図3】この発明の一実施例を示す割り込み信号線駆動
回路の図である。
FIG. 3 is a diagram of an interrupt signal line driving circuit showing one embodiment of the present invention.

【図4】この発明の一実施例を示す復調回路の図であ
る。
FIG. 4 is a diagram of a demodulation circuit showing one embodiment of the present invention.

【図5】この発明の一実施例を示す動作タイミング図で
ある。
FIG. 5 is an operation timing chart showing one embodiment of the present invention.

【図6】この発明の一実施例を示すバスマスタ、バスス
レーブの内部ブロック図である。
FIG. 6 is an internal block diagram of a bus master and a bus slave showing one embodiment of the present invention.

【図7】この発明の一実施例を示す割り込み信号線駆動
回路、割り込みマスクレジスタ回路の図である。
FIG. 7 is a diagram showing an interrupt signal line drive circuit and an interrupt mask register circuit showing one embodiment of the present invention.

【図8】この発明の一実施例を示す割り込み処理プログ
ラムのフローチャート図である。
FIG. 8 is a flowchart of an interrupt processing program according to an embodiment of the present invention.

【図9】従来のマイクロコンピュータシステムのシステ
ム図である。
FIG. 9 is a system diagram of a conventional microcomputer system.

【図10】従来のマイクロコンピュータシステムのバス
マスタ、バススレーブの内部ブロック図である。
FIG. 10 is an internal block diagram of a bus master and a bus slave of a conventional microcomputer system.

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

1 システムバス 1e 共有化された割り込み信号線 1f 割り込み送出タイミング信号線 2 バスマスタ 3 バススレーブ Reference Signs List 1 system bus 1e shared interrupt signal line 1f interrupt transmission timing signal line 2 bus master 3 bus slave

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 以下の要素を有し、マスタ処理部と少な
くともひとつ以上のスレーブ処理部の間の信号線を共有
する信号線共有化方式 (a)マスタ処理部とスレーブ処理部を接続するタイミ
ング信号線、 (b)マスタ処理部とスレーブ処理部を接続する共有化
信号線、 (c)以下の要素を有するマスタ処理部、 (c1)周期の異なるタイミング信号成分を合成するこ
とにより、スレーブ処理部が共有化信号線を駆動してよ
いタイミングを示すタイミング信号を発生させてタイミ
ング信号線に出力するタイミング信号発生手段、 (c2)スレーブ処理部により駆動された共有化信号線
の駆動信号を受信して上記タイミング信号に基づいてい
ずれのスレーブ処理部からの駆動信号かを特定する受信
手段、 (d)上記タイミング信号発生手段が出力するタイミン
グ信号に基づいて、共有化信号線に駆動信号を出力する
駆動手段を有するスレーブ処理部。
1. A master processing unit having the following elements :
Sharing signal lines between at least one slave processing unit
Timing for connecting the signal line sharing scheme (a) the master processor and the slave processor to
Ring signal line, sharing that connects the slave processing unit (b) master processing unit
Signal line, the master processor having the following elements (c), child synthesized (c1) different timing signals periodic components
With this, the slave processing unit drives the shared signal line.
To generate a timing signal
Timing signal generating means for outputting to the bridging signal line, sharing the signal lines driven by (c2) the slave processor
The drive signal is received based on the above timing signal.
Receiving to identify whether it is a drive signal from the slave processing unit of the deviation
Means, (d) a timing output by the timing signal generating means
Output a drive signal to the sharing signal line based on the switching signal
A slave processing unit having a driving unit.
【請求項2】 以下の要素を有し、マスタ処理部と複数
のスレーブ処理部の間の信号線を共有する信号線共有化
方式 (a)マスタ処理部とスレーブ処理部を接続するクロッ
ク信号線、 (b)マスタ処理部とスレーブ処理部を接続する共有化
信号線、 (c)マスタ処理部とスレーブ処理部を接続するシステ
ムバス、 (d)以下の要素を有するマスタ処理部、 (d1)クロック信号をクロック信号線に出力するクロ
ック発生手段、 (d2)上記複数のスレーブ処理部のいずれかにより駆
動された共有化信号線の駆動信号により起動され、上記
複数のスレーブ処理部に対して割込み要求の有無を問い
合わせることにより、いずれのスレーブ処理部からの駆
動信号かを特定する処理手段、 (e)以下の要素を有するスレーブ処理部、 (e1)マスタ処理部からのクロック信号に基づいて、
共有化信号線に駆動信号を出力する信号駆動手段、 (e2)上記信号駆動手段による駆動信号の出力の有無
を上記システムバスに 出力する出力手段、 (e3)他のスレーブ処理部の信号駆動手段による共有
化信号線の駆動を検出し、自己の信号駆動手段の実行を
禁止する禁止手段。
2. A master processing unit comprising:
Line sharing to share signal lines between slave processing units
Method (a) The clock connecting the master processing unit and the slave processing unit
Click signal line, sharing that connects the slave processing unit (b) master processing unit
Signal lines, system for connecting the slave processing unit (c) master processing unit
Mubasu outputs a master unit having (d) is the following elements, the (d1) clock signal to the clock signal line Black
Click generating means, drive by either (d2) said plurality of slave processing unit
Activated by the driven drive signal of the shared signal line
Queries multiple slave processing units for interrupt requests.
By matching, the drive from any slave
Processing means for identifying whether dynamic signal, the slave processor having the following elements (e), based on the clock signal from the (e1) master processing unit,
Signal driving means for outputting a driving signal to the sharing signal line; (e2) presence or absence of output of a driving signal by the signal driving means
Output means for outputting to the system bus, shared by (e3) the other slave processing unit of the signal driving means
Of the drive signal line, and execute its own signal drive means.
Prohibition means to prohibit.
JP3259121A 1991-10-07 1991-10-07 Signal line sharing method Expired - Lifetime JP2979778B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3259121A JP2979778B2 (en) 1991-10-07 1991-10-07 Signal line sharing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3259121A JP2979778B2 (en) 1991-10-07 1991-10-07 Signal line sharing method

Publications (2)

Publication Number Publication Date
JPH05100993A JPH05100993A (en) 1993-04-23
JP2979778B2 true JP2979778B2 (en) 1999-11-15

Family

ID=17329610

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3259121A Expired - Lifetime JP2979778B2 (en) 1991-10-07 1991-10-07 Signal line sharing method

Country Status (1)

Country Link
JP (1) JP2979778B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008021040A (en) * 2006-07-11 2008-01-31 Canon Inc Bus master circuit, bus control method, and computer program
KR100812710B1 (en) * 2006-11-14 2008-03-12 엠텍비젼 주식회사 Communication method and apparatus using a control bus
JP5274858B2 (en) * 2008-02-28 2013-08-28 京セラ株式会社 Electronics

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2640451B2 (en) * 1986-05-06 1997-08-13 パイオニア株式会社 Auto loading disk player

Also Published As

Publication number Publication date
JPH05100993A (en) 1993-04-23

Similar Documents

Publication Publication Date Title
CA1278872C (en) Serial data bus for sci, spi and buffered spi modes of operation
US4363094A (en) Communications processor
US5047921A (en) Asynchronous microprocessor random access memory arbitration controller
CN102088386A (en) Universal serial bus (USB) for master-slave interconnection module of circuit system
US11853772B2 (en) Independent operation of an ethernet switch integrated on a system on a chip
US9678917B2 (en) Communications assembly having logic multichannel communication via a physical transmission path for serial interchip data transmission
JP2979778B2 (en) Signal line sharing method
US5319678A (en) Clocking system for asynchronous operations
US4827471A (en) Method for bus access for data transmission through a multiprocessor bus
JPS589461B2 (en) multiprocessor system
SU1274634A3 (en) Device for priority connection of information source to common main line
JP4236729B2 (en) Data processing device
US5590130A (en) Bus protocol using separate clocks for arbitration and data transfer
US5872937A (en) System for optimizing bus arbitration latency and method therefor
JPS6217779B2 (en)
KR100311519B1 (en) Rotating arbitration system using system clock
JPH03201054A (en) Common bus control method, its control device, master device and computer system
JPS6019819B2 (en) Bus right control method
JP2804611B2 (en) Parallel competition control circuit
US6948018B2 (en) Method and system for exchanging data
JP2002007321A (en) Bus transfer system
KR100419426B1 (en) Dual bus arbitration circuit and method
KR100560565B1 (en) Apparatus and method for controlling bus occupancy and data transmission in the ICP block of an electronic switch
SU1619287A1 (en) Multichannel device for distributing tasks among processors
JP2996089B2 (en) Logic simulation equipment

Legal Events

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

Free format text: PAYMENT UNTIL: 20080917

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20080917

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20090917

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20090917

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20100917

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20110917

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20110917

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20120917

Year of fee payment: 13

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120917

Year of fee payment: 13