JP3852340B2 - Optical transmission apparatus and optical data link control method - Google Patents

Optical transmission apparatus and optical data link control method Download PDF

Info

Publication number
JP3852340B2
JP3852340B2 JP2002012005A JP2002012005A JP3852340B2 JP 3852340 B2 JP3852340 B2 JP 3852340B2 JP 2002012005 A JP2002012005 A JP 2002012005A JP 2002012005 A JP2002012005 A JP 2002012005A JP 3852340 B2 JP3852340 B2 JP 3852340B2
Authority
JP
Japan
Prior art keywords
optical data
data link
signal
slave address
processing unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2002012005A
Other languages
Japanese (ja)
Other versions
JP2003218972A (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.)
Sumitomo Electric Industries Ltd
Original Assignee
Sumitomo Electric Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sumitomo Electric Industries Ltd filed Critical Sumitomo Electric Industries Ltd
Priority to JP2002012005A priority Critical patent/JP3852340B2/en
Publication of JP2003218972A publication Critical patent/JP2003218972A/en
Application granted granted Critical
Publication of JP3852340B2 publication Critical patent/JP3852340B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、単一の中央処理部と複数の光データリンクとを含んで構成された光伝送装置、及び当該光伝送装置において実行される光データリンク制御方法に関する。
【0002】
【従来の技術】
光伝送装置には光データリンクや中央処理部(CPU)等のデバイスが内蔵され、これらデバイスは、クロック信号を伝送するためのシリアルクロックライン(SCL)とデータ信号を伝送するためのシリアルデータライン(SDA)の2本のバスラインから成る通信バスで相互に接続されている。このとき光データリンクにはスレーブアドレスが割り当てられ、複数の光データリンクが同じ通信バスに接続される場合があり、CPUは当該通信バスを用いて各光データリンクの設定や状態監視等を行う。
【0003】
このような光伝送装置において、CPUから光データリンクに情報を書き込む場合は、最初にCPUからクロック信号とデータ信号のヘッダ部とが出力され、スレーブアドレスが一致した光データリンクがCPUから続いて出力されるデータ信号とそれに対応したクロック信号とを取り込む。
【0004】
また、この光伝送装置において、CPUが光データリンクから情報を読み出す場合は、最初にCPUからクロック信号とデータ信号のヘッダ部とが出力され、スレーブアドレスが一致した光データリンクがCPUからのクロック信号に応じてデータ信号を出力する。
【0005】
このように光データリンクは、データ信号のヘッダ部に格納されたスレーブアドレスと自己のスレーブアドレスとが一致した場合にのみ、データ信号の読書きに対応する。
【0006】
このため、同一の通信バスに複数の光データリンクが接続された場合、各光データリンクのスレーブアドレスは全て異なる必要があり、その実現方法としては、▲1▼光データリンクの内蔵不揮発性メモリに各々異なるスレーブアドレスを記憶しておく方法や、▲2▼外部ハードウェア設定ピンを設けて光データリンクを実装する基板上でスレーブアドレスを設定する方法が考えられる。
【0007】
【発明が解決しようとする課題】
しかしながら、▲1▼の方法では、予め工場製造時又はユーザが実装する際に各個体毎にスレーブアドレスを決める必要があり、メーカ側、ユーザ側ともに管理作業が煩雑となる。また、▲2▼の方法でも、外部ハードウェア設定ピンが設けられる光データリンクならばいいが、いわゆるSFPリンクのようにピン数が少なく新規にピンを設けられない場合がある。
【0008】
このため、光データリンクには同一のスレーブアドレスしか割り当てられない場合が存在し、かかる場合、全ての光データリンクがCPUからの読書き信号に対して同じように反応してしまうので、複数の光データリンクを同一通信バスに接続してのCPUからの通信を行うことができない、という不都合があった。
【0009】
本発明は、上記課題を解決するために成されたものであり、複数の光データリンクを同一通信バスに接続した構成でCPUから目的の光データリンクへの通信を行うことができる光伝送装置及び光データリンク制御方法を提供することを目的とする。
【0010】
【課題を解決するための手段】
上記目的を達成するために、本発明に係る光伝送装置は、データ送信先のデバイスのスレーブアドレスが宛先情報として格納されたデータ信号を出力する単一の中央処理部と、データバスを介して前記中央処理部と接続され、共通の一のスレーブアドレスが割り当てられた複数の光データリンクと、クロックバスを介して各光データリンク及び前記中央処理部と接続され、目的の光データリンクのみを選択するための選択手段と、を含んで構成され、前記中央処理部は、クロック信号と目的の光データリンクを選択するための選択信号とを前記選択手段に出力し、前記選択手段は、前記選択信号に基づいて当該目的の光データリンクにのみ、前記クロック信号を出力し、前記光データリンクは、前記クロック信号とともに、自己のスレーブアドレスと同一のスレーブアドレスが宛先情報として格納されたデータ信号を受信した場合に、当該データ信号の取り込みを行うことを特徴とする。
【0011】
この光伝送装置では、中央処理部が、クロック信号と目的の光データリンクを選択するための選択信号とを選択手段に出力すると、選択手段は、当該選択信号に対応する目的の光データリンクにのみクロック信号を出力する。なお、このとき、選択手段は、目的の光データリンク向けに個別のクロック信号を生成して出力してもよいし、中央処理部からのクロック信号を出力してもよい。
【0012】
これにより、目的の光データリンク以外の光データリンクはクロック信号を受信せず、目的の光データリンクのみがクロック信号を受信する。クロック信号を受信した目的の光データリンクは、クロック信号とともに、自己のスレーブアドレスと同一のスレーブアドレスが宛先情報として格納されたデータ信号を受信した場合、当該データ信号の取り込みを行う。そして、その後、例えば、中央処理部への応答・中央処理部とのデータのやりとりを行う。
【0013】
このように本発明の光伝送装置によれば、選択手段が、中央処理部からの選択信号に対応する目的の光データリンクにのみクロック信号を出力し、当該クロック信号を受信した目的の光データリンクが、クロック信号とともに、自己のスレーブアドレスと同一のスレーブアドレスが格納されたデータ信号を受信した場合に、当該データ信号の取り込みを行うため、複数の光データリンクを同一通信バスに接続した構成であっても、中央処理部から目的の光データリンクへの通信を確実に行うことができる。
【0014】
本発明の光伝送装置は、以下のように、光データリンク以外の他のデバイスをさらに含んだ構成であっても適用可能である。即ち、本発明に係る光伝送装置は、前記共通のスレーブアドレスとは異なるスレーブアドレスが割り当てられデータバス及びクロックバスの各々を介して前記中央処理部と接続された、前記光データリンク以外の他のデバイスをさらに含んで構成され、当該他のデバイスは、前記クロック信号及び自己のスレーブアドレスと同一のスレーブアドレスが宛先情報として格納されたデータ信号を前記中央処理部から受信した場合に、当該データ信号の取り込みを行うことを特徴とする。
【0015】
この光伝送装置では、他のデバイスには、複数の光データリンクに共通のスレーブアドレスとは異なるスレーブアドレスが割り当てられているため、目的の光データリンクあてのデータ信号が他のデバイスにより取り込まれることはなく、また、当該他のデバイスあてのデータ信号がいずれかの光データリンクにより取り込まれることもない。よって、光データリンク以外の他のデバイスをさらに含んだ構成であっても、中央処理部から目的の光データリンクへの通信、及び中央処理部から他のデバイスへの通信を確実に行うことができる。
【0016】
さて、上記の光伝送装置に係る発明は、以下のように光データリンク制御方法に係る発明として記述することもできる。
【0017】
即ち、本発明に係る光データリンク制御方法は、データ送信先のデバイスのスレーブアドレスが宛先情報として格納されたデータ信号を出力する単一の中央処理部と、データバスを介して前記中央処理部と接続され、共通の一のスレーブアドレスが割り当てられた複数の光データリンクと、クロックバスを介して各光データリンク及び前記中央処理部と接続され、目的の光データリンクのみを選択するための選択手段とを含んで構成された光伝送装置における光データリンク制御方法であって、前記中央処理部が、クロック信号と目的の光データリンクを選択するための選択信号とを前記選択手段に出力し、前記選択手段が、前記選択信号に基づいて当該目的の光データリンクにのみ、前記クロック信号を出力し、前記光データリンクが、前記クロック信号とともに、自己のスレーブアドレスと同一のスレーブアドレスが宛先情報として格納されたデータ信号を受信した場合に、当該データ信号の取り込みを行う、ことを特徴とする。
【0018】
この光データリンク制御方法では、中央処理部がクロック信号と目的の光データリンクを選択するための選択信号とを選択手段に出力すると、選択手段が、当該選択信号に基づいて当該目的の光データリンクにのみクロック信号を出力し、当該クロック信号を受信した目的の光データリンクのみが、クロック信号とともに、自己のスレーブアドレスと同一のスレーブアドレスが宛先情報として格納されたデータ信号を受信した場合に、当該データ信号の取り込みを行う。
【0019】
このように中央処理部からの選択信号に対応する目的の光データリンクにのみクロック信号が出力され、当該クロック信号を受信した目的の光データリンクが、クロック信号とともに、自己のスレーブアドレスと同一のスレーブアドレスが格納されたデータ信号を受信した場合に、当該データ信号の取り込みを行うため、複数の光データリンクを同一通信バスに接続した構成であっても、中央処理部から目的の光データリンクへの通信を確実に行うことができる。
【0020】
また、本発明に係る光データリンク制御方法は、前記光伝送装置が、前記共通のスレーブアドレスとは異なるスレーブアドレスが割り当てられデータバス及びクロックバスの各々を介して前記中央処理部と接続された、前記光データリンク以外の他のデバイスをさらに含んで構成されており、当該他のデバイスは、前記クロック信号及び自己のスレーブアドレスと同一のスレーブアドレスが宛先情報として格納されたデータ信号を前記中央処理部から受信した場合に、当該データ信号の取り込みを行う、ことを特徴とする。
【0021】
即ち、他のデバイスには、複数の光データリンクに共通のスレーブアドレスとは異なるスレーブアドレスが割り当てられているため、目的の光データリンクあてのデータ信号が他のデバイスにより取り込まれることはなく、また、当該他のデバイスあてのデータ信号がいずれかの光データリンクにより取り込まれることもない。よって、本発明の光データリンク制御方法が適用される光伝送装置が、光データリンク以外の他のデバイスをさらに含んだ構成であっても、中央処理部から目的の光データリンクへの通信、及び中央処理部から他のデバイスへの通信を確実に行うことができる。
【0022】
【発明の実施の形態】
以下、図面を参照しながら、本発明に係る光伝送装置及び光データリンク制御方法の一実施の形態について説明する。
【0023】
まず、図1を用いて光伝送装置10の構成を説明する。図1に示すように、光伝送装置10は、中央処理部(CPU)12と、複数(N個)の光データリンクD0、D1、…DN(以下、光データリンクDと総称する)と、温度センサ16と、メモリ18と、目的の光データリンクを選択する選択手段としてのセレクタ14とを含んで構成されている。このうちCPU12がマスターデバイスに相当し、光データリンクD、温度センサ16及びメモリ18がスレーブデバイスに相当する。CPU12は光データリンクD等の各スレーブデバイスの設定や状態監視等を行う。
【0024】
各スレーブデバイス(光データリンクD、温度センサ16及びメモリ18の各々)は、データ信号を伝送するためのシリアルデータライン(以下、SDAという。)28を介してCPU12と接続されている。このうち温度センサ16及びメモリ18の各々は、クロック信号を伝送するためのシリアルクロックライン(以下、SCLという。)24を介してCPU12と直接接続され、光データリンクDの各々はSCL26を介してセレクタ14と接続されており、セレクタ14はSCL20及び複数(例えば3本)の選択信号用ライン22を介してCPU12と接続されている。
【0025】
CPU12は、選択信号用ライン22を介してセレクタ14に送信する選択信号によって、目的とする一の光データリンクを選択する。具体的には、3本の選択信号用ライン22を介して送信する3つの選択信号の組合せによって3桁の2進数を表すことで、当該2進数に対応する一の光データリンクを選択することができる。例えば、図2に示す3本の選択信号用ライン22が左から順に、4の位のビット、2の位のビット、1の位のビットをそれぞれ表すものと規定しておき、図2において左端のラインと2番目のラインにはローレベル信号を、右端のラインにはハイレベル信号を、CPU12がセレクタ14へ送信することで、セレクタ14が上記3つの信号の組合せにより2進数の「001」を表す選択信号と認識し、目的とする光データリンクD1を選択することが可能とされている。
【0026】
また、各スレーブデバイスには、スレーブアドレスが割り当てられている。ここで、各光データリンクDには同一のスレーブアドレスA2h(16進数の「A2」を意味する。以下、同様)が割り当てられ、温度センサ16には、上記とは異なるスレーブアドレス96hが、メモリ18にはスレーブアドレスA0hが、それぞれ割り当てられている。
【0027】
次に、図2、図3を用いて、CPU12が目的の光データリンクD1と通信開始する際の処理を説明する。なお、図3は、説明をわかりやすくするため、光伝送装置10における処理内容を流れ図として表したものである。
【0028】
最初に、図3のステップS01にて、CPU12がクロック信号と選択信号をセレクタ14へ出力するとともに、データ信号を各デバイス(光データリンクD、温度センサ16、メモリ18)へ出力する。このとき、CPU12からのクロック信号は、SCL20から分岐したSCL24を介して温度センサ16及びメモリ18へも出力される。このとき、目的の光データリンクD1のスレーブアドレスがA2hであるため、図2に示すようにCPU12は、データ信号のヘッダ部に当該スレーブアドレスA2hの情報を格納して出力する。
【0029】
次のステップS02では、セレクタ14は、図2に示す3本の選択信号用ライン22を介して受信した選択信号が表す情報(即ち、選択信号が表す2進数「001」)を解析し、目的の光データリンクとして光データリンクD1を特定し、当該目的の光データリンクD1にのみクロック信号を出力する。これにより、クロック信号は、セレクタ14からSCL1を介して光データリンクD1へ出力され、他の光データリンクDへは出力されない。なお、図2において、各デバイスに送信されるクロック信号は、データ信号の上に表示されており、ここでは光データリンクD1、温度センサ16及びメモリ18にのみクロック信号は送信される。
【0030】
次のステップS03では、各デバイスがデータ信号のヘッダ部内のスレーブアドレス(ここではA2h)を自己のアドレスと照合する。これにより、温度センサ16及びメモリ18は、ヘッダ部内のスレーブアドレスが自己のアドレスと一致しないので、自己向けのデータ信号でないと判断し、当該データ信号に対し応答しない。
【0031】
次のステップS04では、クロック信号を受信し且つスレーブアドレスが一致した光データリンク、即ち、光データリンクDのうちクロック信号がセレクタ14から送信された光データリンクD1のみが、データ信号を取り込む。
【0032】
そして、次のステップS05では、目的の光データリンクD1とCPU12との通信が実行される。即ち、図2に示すように、光データリンクD1のみがCPU12に応答信号を返送し、CPU12との通信が実行開始される。
【0033】
以上のような処理により、光伝送装置10に新設したセレクタ14が、CPU12からの選択信号に対応する目的の光データリンクD1にのみクロック信号を出力し、当該クロック信号を受信した目的の光データリンクD1が、クロック信号とともに、自己のスレーブアドレスと同一のスレーブアドレス(A2h)が格納されたデータ信号を受信した場合に、当該データ信号の取り込みを行うため、複数の光データリンクDを同一通信バスに接続した構成であっても、CPUから目的の光データリンクD1への通信を確実に行うことができる。
【0034】
また、光伝送装置10が光データリンクD以外の他のデバイスを含んでいても、他のデバイスには、複数の光データリンクDに共通のスレーブアドレス(A2h)とは異なるスレーブアドレス(96h、A0h)が割り当てられているため、目的の光データリンクD1あてのデータ信号が他のデバイスにより取り込まれることはなく、また、当該他のデバイスあてのデータ信号がいずれかの光データリンクDにより取り込まれることもない。よって、CPUから目的の光データリンクへの通信、及びCPUから他のデバイスへの通信を確実に行うことができる。
【0035】
さらに、上記構成により、複数の光データリンクに対し同一のスレーブアドレスを割り当てても問題ないため、光データリンクの製造者は工場製造時に同一のスレーブアドレスを各光データリンクに設定可能となり、ユーザも基板実装時に光データリンクのスレーブアドレスを変更する必要がない、という利点がある。また、このような同一のスレーブアドレスを有する複数の光データリンクを対象として、単一のマスターデバイス(CPU)により設定及び状態監視を行うことが可能となる、という利点もある。
【0036】
なお、図1、図2には、一例として、3本の選択信号用ライン22を設けた例を示したが、内蔵される光データリンクDの個数に応じて選択信号用ライン22の本数を増減してもよい。また、選択信号用ライン22は1本とし、セレクタ14により目的の一の光データリンクを特定できるような選択信号(例えば、複数のパルス列のオンオフによって複数桁の2進数を表す信号)をCPU12から送信する構成としてもよい。
【0037】
【発明の効果】
以上説明したように、本発明によれば、中央処理部からの選択信号に対応する目的の光データリンクにのみクロック信号が出力され、当該クロック信号を受信した目的の光データリンクが、クロック信号とともに、自己のスレーブアドレスと同一のスレーブアドレスが格納されたデータ信号を受信した場合に、当該データ信号の取り込みを行うため、複数の光データリンクを同一通信バスに接続した構成であっても、中央処理部から目的の光データリンクへの通信を確実に行うことができる。
【図面の簡単な説明】
【図1】発明の実施形態に係る光伝送装置の構成図である。
【図2】CPUが目的の光データリンクD1と通信開始する際の信号の流れを説明するための図である。
【図3】光伝送装置におけるシリアルバス通信に関する処理を示す流れ図である。
【符号の説明】
10…光伝送装置、12…CPU(中央処理部)、14…セレクタ(選択手段)、16…温度センサ(他のデバイス)、18…メモリ(他のデバイス)、20、24、26…SCL、22…選択信号用ライン、28…SDA、D…光データリンク。
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an optical transmission apparatus configured to include a single central processing unit and a plurality of optical data links, and an optical data link control method executed in the optical transmission apparatus.
[0002]
[Prior art]
The optical transmission apparatus incorporates devices such as an optical data link and a central processing unit (CPU), and these devices include a serial clock line (SCL) for transmitting a clock signal and a serial data line for transmitting a data signal. They are connected to each other by a communication bus composed of two (SDA) bus lines. At this time, slave addresses are assigned to the optical data links, and a plurality of optical data links may be connected to the same communication bus, and the CPU performs setting and status monitoring of each optical data link using the communication bus. .
[0003]
In such an optical transmission apparatus, when information is written from the CPU to the optical data link, the clock signal and the header portion of the data signal are first output from the CPU, and the optical data link with the matching slave address follows from the CPU. An output data signal and a clock signal corresponding to the data signal are captured.
[0004]
Also, in this optical transmission apparatus, when the CPU reads information from the optical data link, the clock signal and the header of the data signal are first output from the CPU, and the optical data link whose slave address matches is the clock from the CPU. A data signal is output according to the signal.
[0005]
As described above, the optical data link supports reading / writing of the data signal only when the slave address stored in the header portion of the data signal matches the own slave address.
[0006]
For this reason, when a plurality of optical data links are connected to the same communication bus, the slave addresses of the optical data links must all be different. As a method for realizing the above, (1) a built-in nonvolatile memory of the optical data link is used. (2) A method of storing slave addresses on a board on which an optical data link is mounted by providing external hardware setting pins.
[0007]
[Problems to be solved by the invention]
However, in the method (1), it is necessary to determine the slave address for each individual at the time of factory manufacture or when the user implements, and the management work becomes complicated on both the manufacturer side and the user side. In the method (2), an optical data link provided with external hardware setting pins may be used. However, there are cases where the number of pins is small and a new pin cannot be provided as in a so-called SFP link.
[0008]
For this reason, there is a case where only the same slave address can be assigned to the optical data link. In such a case, all the optical data links react in the same way to read / write signals from the CPU, so that a plurality of There is a disadvantage that communication from the CPU cannot be performed by connecting the optical data link to the same communication bus.
[0009]
The present invention has been made to solve the above-described problems, and an optical transmission apparatus capable of performing communication from a CPU to a target optical data link in a configuration in which a plurality of optical data links are connected to the same communication bus. An object of the present invention is to provide an optical data link control method.
[0010]
[Means for Solving the Problems]
In order to achieve the above object, an optical transmission apparatus according to the present invention includes a single central processing unit that outputs a data signal in which a slave address of a data transmission destination device is stored as destination information, and a data bus. A plurality of optical data links that are connected to the central processing unit and assigned a common slave address, and are connected to each optical data link and the central processing unit via a clock bus. Selecting means for selecting, wherein the central processing unit outputs a clock signal and a selection signal for selecting a target optical data link to the selecting means, and the selecting means includes the selecting means The clock signal is output only to the target optical data link based on the selection signal, and the optical data link, along with the clock signal, has its own slave address. If the same slave address and less receives a stored data signal as the destination information, and performs capture of the data signal.
[0011]
In this optical transmission apparatus, when the central processing unit outputs a clock signal and a selection signal for selecting a target optical data link to the selection unit, the selection unit selects the target optical data link corresponding to the selection signal. Only output a clock signal. At this time, the selection unit may generate and output an individual clock signal for the target optical data link, or may output a clock signal from the central processing unit.
[0012]
Thereby, the optical data link other than the target optical data link does not receive the clock signal, and only the target optical data link receives the clock signal. When the target optical data link that has received the clock signal receives a data signal in which the same slave address as its own slave address is stored as destination information together with the clock signal, the target optical data link takes in the data signal. Then, for example, a response to the central processing unit and data exchange with the central processing unit are performed.
[0013]
As described above, according to the optical transmission apparatus of the present invention, the selecting means outputs the clock signal only to the target optical data link corresponding to the selection signal from the central processing unit, and receives the clock signal. When a link receives a data signal in which the same slave address as its own slave address is stored along with the clock signal, a configuration in which multiple optical data links are connected to the same communication bus in order to capture the data signal Even so, communication from the central processing unit to the target optical data link can be reliably performed.
[0014]
The optical transmission apparatus of the present invention can be applied to a configuration that further includes devices other than the optical data link as described below. In other words, the optical transmission apparatus according to the present invention is configured in a manner other than the optical data link, which is assigned a slave address different from the common slave address and is connected to the central processing unit via each of a data bus and a clock bus. And when the other device receives a data signal in which the same slave address as the clock signal and its own slave address is stored as destination information from the central processing unit, the data It is characterized by taking in a signal.
[0015]
In this optical transmission apparatus, since a slave address different from a common slave address is assigned to a plurality of optical data links, the data signal for the target optical data link is captured by the other device. In addition, the data signal addressed to the other device is not taken in by any of the optical data links. Therefore, even in a configuration further including devices other than the optical data link, communication from the central processing unit to the target optical data link and communication from the central processing unit to other devices can be reliably performed. it can.
[0016]
The invention relating to the above optical transmission apparatus can also be described as an invention relating to an optical data link control method as follows.
[0017]
That is, the optical data link control method according to the present invention includes a single central processing unit that outputs a data signal in which a slave address of a data transmission destination device is stored as destination information, and the central processing unit via a data bus. And a plurality of optical data links to which a common slave address is assigned, and each optical data link and the central processing unit via a clock bus to select only a target optical data link An optical data link control method in an optical transmission apparatus configured to include a selection unit, wherein the central processing unit outputs a clock signal and a selection signal for selecting a target optical data link to the selection unit The selection means outputs the clock signal only to the target optical data link based on the selection signal, and the optical data link Together with the clock signal, when the slave address identical to the slave address of the self receives the stored data signal as the destination information, the incorporation of the data signal, characterized in that.
[0018]
In this optical data link control method, when the central processing unit outputs a clock signal and a selection signal for selecting a target optical data link to the selection unit, the selection unit selects the target optical data based on the selection signal. When a clock signal is output only to the link, and only the target optical data link that received the clock signal receives a data signal in which the same slave address as its own slave address is stored as destination information along with the clock signal The data signal is taken in.
[0019]
In this way, the clock signal is output only to the target optical data link corresponding to the selection signal from the central processing unit, and the target optical data link that has received the clock signal has the same slave address as that of its own slave address. When a data signal in which a slave address is stored is received, the target optical data link is received from the central processing unit even in a configuration in which a plurality of optical data links are connected to the same communication bus in order to capture the data signal. Can be reliably communicated to.
[0020]
Also, in the optical data link control method according to the present invention, the optical transmission apparatus is assigned a slave address different from the common slave address and is connected to the central processing unit via each of a data bus and a clock bus. The device further includes a device other than the optical data link, and the other device includes a data signal in which the same slave address as the clock signal and its own slave address is stored as destination information. When the data is received from the processing unit, the data signal is fetched.
[0021]
That is, since a slave address different from a common slave address is assigned to a plurality of optical data links, the data signal to the target optical data link is not captured by the other devices, Further, the data signal addressed to the other device is not taken in by any optical data link. Therefore, even if the optical transmission apparatus to which the optical data link control method of the present invention is applied further includes a device other than the optical data link, communication from the central processing unit to the target optical data link, In addition, communication from the central processing unit to other devices can be reliably performed.
[0022]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, an embodiment of an optical transmission apparatus and an optical data link control method according to the present invention will be described with reference to the drawings.
[0023]
First, the configuration of the optical transmission apparatus 10 will be described with reference to FIG. As shown in FIG. 1, the optical transmission device 10 includes a central processing unit (CPU) 12 and a plurality (N) of optical data links D0, D1,... DN (hereinafter collectively referred to as an optical data link D), The temperature sensor 16, the memory 18, and the selector 14 as selection means for selecting a target optical data link are configured. Among these, the CPU 12 corresponds to a master device, and the optical data link D, the temperature sensor 16 and the memory 18 correspond to slave devices. The CPU 12 performs setting and status monitoring of each slave device such as the optical data link D.
[0024]
Each slave device (each of the optical data link D, the temperature sensor 16 and the memory 18) is connected to the CPU 12 via a serial data line (hereinafter referred to as SDA) 28 for transmitting data signals. Among these, each of the temperature sensor 16 and the memory 18 is directly connected to the CPU 12 via a serial clock line (hereinafter referred to as SCL) 24 for transmitting a clock signal, and each of the optical data links D is connected via the SCL 26. The selector 14 is connected to the CPU 12 via the SCL 20 and a plurality of (for example, three) selection signal lines 22.
[0025]
The CPU 12 selects one target optical data link by a selection signal transmitted to the selector 14 via the selection signal line 22. Specifically, by representing a three-digit binary number by a combination of three selection signals transmitted via the three selection signal lines 22, one optical data link corresponding to the binary number is selected. Can do. For example, it is defined that the three selection signal lines 22 shown in FIG. 2 represent the fourth place bit, the second place bit, and the first place bit in order from the left. The CPU 12 transmits a low level signal to the second line and the second line, a high level signal to the rightmost line, and the selector 12 sends a binary “001” by the combination of the above three signals. And a target optical data link D1 can be selected.
[0026]
Each slave device is assigned a slave address. Here, the same slave address A2h (meaning hexadecimal “A2”, hereinafter the same) is assigned to each optical data link D, and the slave address 96h different from the above is assigned to the temperature sensor 16. 18 is assigned a slave address A0h.
[0027]
Next, processing when the CPU 12 starts communication with the target optical data link D1 will be described with reference to FIGS. Note that FIG. 3 shows the processing contents in the optical transmission apparatus 10 as a flowchart for easy understanding.
[0028]
First, in step S01 of FIG. 3, the CPU 12 outputs a clock signal and a selection signal to the selector 14, and outputs a data signal to each device (optical data link D, temperature sensor 16, memory 18). At this time, the clock signal from the CPU 12 is also output to the temperature sensor 16 and the memory 18 via the SCL 24 branched from the SCL 20. At this time, since the slave address of the target optical data link D1 is A2h, the CPU 12 stores and outputs the information of the slave address A2h in the header portion of the data signal as shown in FIG.
[0029]
In the next step S02, the selector 14 analyzes the information represented by the selection signal received via the three selection signal lines 22 shown in FIG. 2 (that is, the binary number “001” represented by the selection signal), The optical data link D1 is specified as the optical data link, and a clock signal is output only to the target optical data link D1. As a result, the clock signal is output from the selector 14 to the optical data link D1 via the SCL1, and is not output to the other optical data links D. In FIG. 2, the clock signal transmitted to each device is displayed on the data signal. Here, the clock signal is transmitted only to the optical data link D1, the temperature sensor 16, and the memory 18.
[0030]
In the next step S03, each device checks the slave address (A2h in this case) in the header part of the data signal with its own address. As a result, the temperature sensor 16 and the memory 18 determine that the slave address in the header portion does not match its own address, and therefore do not respond to the data signal.
[0031]
In the next step S04, only the optical data link that has received the clock signal and has the same slave address, that is, the optical data link D1 in which the clock signal is transmitted from the selector 14 in the optical data link D, captures the data signal.
[0032]
In the next step S05, communication between the target optical data link D1 and the CPU 12 is executed. That is, as shown in FIG. 2, only the optical data link D1 returns a response signal to the CPU 12, and execution of communication with the CPU 12 is started.
[0033]
Through the processing as described above, the selector 14 newly provided in the optical transmission apparatus 10 outputs the clock signal only to the target optical data link D1 corresponding to the selection signal from the CPU 12, and the target optical data that has received the clock signal. When the link D1 receives a data signal storing the same slave address (A2h) as its own slave address together with the clock signal, the plurality of optical data links D communicate with each other in order to take in the data signal. Even with the configuration connected to the bus, communication from the CPU to the target optical data link D1 can be reliably performed.
[0034]
Even if the optical transmission apparatus 10 includes other devices other than the optical data link D, the other devices include a slave address (96h, different from the slave address (A2h) common to the plurality of optical data links D). A0h) is assigned, the data signal addressed to the target optical data link D1 is not captured by another device, and the data signal addressed to the other device is captured by any one of the optical data links D. It will never happen. Therefore, communication from the CPU to the target optical data link and communication from the CPU to another device can be reliably performed.
[0035]
Furthermore, with the above configuration, there is no problem even if the same slave address is assigned to a plurality of optical data links. Therefore, the manufacturer of the optical data link can set the same slave address to each optical data link at the time of factory manufacture, and the user can There is also an advantage that it is not necessary to change the slave address of the optical data link when the board is mounted. There is also an advantage that setting and status monitoring can be performed by a single master device (CPU) for a plurality of optical data links having the same slave address.
[0036]
1 and FIG. 2 show an example in which three selection signal lines 22 are provided as an example. However, the number of selection signal lines 22 is set according to the number of built-in optical data links D. It may be increased or decreased. Further, the number of selection signal lines 22 is one, and a selection signal (for example, a signal representing a binary number of a plurality of digits by turning on / off of a plurality of pulse trains) from the CPU 12 so that the selector 14 can identify one optical data link of interest. It is good also as a structure which transmits.
[0037]
【The invention's effect】
As described above, according to the present invention, the clock signal is output only to the target optical data link corresponding to the selection signal from the central processing unit, and the target optical data link receiving the clock signal is In addition, when a data signal storing the same slave address as its own slave address is received, in order to capture the data signal, even in a configuration in which a plurality of optical data links are connected to the same communication bus, Communication from the central processing unit to the target optical data link can be reliably performed.
[Brief description of the drawings]
FIG. 1 is a configuration diagram of an optical transmission apparatus according to an embodiment of the invention.
FIG. 2 is a diagram for explaining a signal flow when a CPU starts communication with a target optical data link D1.
FIG. 3 is a flowchart showing processing related to serial bus communication in the optical transmission apparatus.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 10 ... Optical transmission apparatus, 12 ... CPU (central processing part), 14 ... Selector (selection means), 16 ... Temperature sensor (other devices), 18 ... Memory (other devices), 20, 24, 26 ... SCL, 22 ... selection signal line, 28 ... SDA, D ... optical data link.

Claims (4)

データ送信先のデバイスのスレーブアドレスが宛先情報として格納されたデータ信号を出力する単一の中央処理部と、
データバスを介して前記中央処理部と接続され、共通の一のスレーブアドレスが割り当てられた複数の光データリンクと、
クロックバスを介して各光データリンク及び前記中央処理部と接続され、目的の光データリンクのみを選択するための選択手段と、
を含んで構成され、
前記中央処理部は、クロック信号と目的の光データリンクを選択するための選択信号とを前記選択手段に出力し、
前記選択手段は、前記選択信号に基づいて当該目的の光データリンクにのみ、前記クロック信号を出力し、
前記光データリンクは、前記クロック信号とともに、自己のスレーブアドレスと同一のスレーブアドレスが宛先情報として格納されたデータ信号を受信した場合に、当該データ信号の取り込みを行う、
ことを特徴とする光伝送装置。
A single central processing unit that outputs a data signal in which the slave address of the device of the data transmission destination is stored as destination information;
A plurality of optical data links connected to the central processing unit via a data bus and assigned a common slave address;
A selection means connected to each optical data link and the central processing unit via a clock bus to select only a target optical data link;
Comprising
The central processing unit outputs a clock signal and a selection signal for selecting a target optical data link to the selection unit,
The selection means outputs the clock signal only to the target optical data link based on the selection signal,
When the optical data link receives a data signal in which the same slave address as its own slave address is stored as destination information together with the clock signal, the optical data link takes in the data signal.
An optical transmission device characterized by that.
前記共通のスレーブアドレスとは異なるスレーブアドレスが割り当てられデータバス及びクロックバスの各々を介して前記中央処理部と接続された、前記光データリンク以外の他のデバイスをさらに含んで構成され、
当該他のデバイスは、前記クロック信号及び自己のスレーブアドレスと同一のスレーブアドレスが宛先情報として格納されたデータ信号を前記中央処理部から受信した場合に、当該データ信号の取り込みを行うことを特徴とする請求項1記載の光伝送装置。
The device further includes a device other than the optical data link, which is assigned a slave address different from the common slave address and is connected to the central processing unit via each of a data bus and a clock bus,
The other device fetches the data signal when receiving from the central processing unit a data signal in which the same slave address as the clock signal and its own slave address is stored as destination information. The optical transmission device according to claim 1.
データ送信先のデバイスのスレーブアドレスが宛先情報として格納されたデータ信号を出力する単一の中央処理部と、データバスを介して前記中央処理部と接続され、共通の一のスレーブアドレスが割り当てられた複数の光データリンクと、クロックバスを介して各光データリンク及び前記中央処理部と接続され、目的の光データリンクのみを選択するための選択手段とを含んで構成された光伝送装置における光データリンク制御方法であって、
前記中央処理部が、クロック信号と目的の光データリンクを選択するための選択信号とを前記選択手段に出力し、
前記選択手段が、前記選択信号に基づいて当該目的の光データリンクにのみ、前記クロック信号を出力し、
前記光データリンクが、前記クロック信号とともに、自己のスレーブアドレスと同一のスレーブアドレスが宛先情報として格納されたデータ信号を受信した場合に、当該データ信号の取り込みを行う、
ことを特徴とする光データリンク制御方法。
A single central processing unit that outputs a data signal in which a slave address of a data transmission destination device is stored as destination information, and is connected to the central processing unit via a data bus, and is assigned a common slave address. In an optical transmission apparatus comprising a plurality of optical data links and a selection means connected to each optical data link and the central processing unit via a clock bus for selecting only a target optical data link An optical data link control method comprising:
The central processing unit outputs a clock signal and a selection signal for selecting a target optical data link to the selection means;
The selection means outputs the clock signal only to the target optical data link based on the selection signal,
When the optical data link receives, together with the clock signal, a data signal in which the same slave address as its own slave address is stored as destination information, the data signal is captured.
An optical data link control method.
前記光伝送装置が、前記共通のスレーブアドレスとは異なるスレーブアドレスが割り当てられデータバス及びクロックバスの各々を介して前記中央処理部と接続された、前記光データリンク以外の他のデバイスをさらに含んで構成されており、
当該他のデバイスは、前記クロック信号及び自己のスレーブアドレスと同一のスレーブアドレスが宛先情報として格納されたデータ信号を前記中央処理部から受信した場合に、当該データ信号の取り込みを行う、
ことを特徴とする請求項3記載の光データリンク制御方法。
The optical transmission apparatus further includes a device other than the optical data link, which is assigned a slave address different from the common slave address and is connected to the central processing unit via each of a data bus and a clock bus. Consists of
The other device fetches the data signal when the data signal in which the same slave address as the clock signal and its own slave address is stored as destination information is received from the central processing unit.
4. The optical data link control method according to claim 3, wherein:
JP2002012005A 2002-01-21 2002-01-21 Optical transmission apparatus and optical data link control method Expired - Fee Related JP3852340B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002012005A JP3852340B2 (en) 2002-01-21 2002-01-21 Optical transmission apparatus and optical data link control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002012005A JP3852340B2 (en) 2002-01-21 2002-01-21 Optical transmission apparatus and optical data link control method

Publications (2)

Publication Number Publication Date
JP2003218972A JP2003218972A (en) 2003-07-31
JP3852340B2 true JP3852340B2 (en) 2006-11-29

Family

ID=27649342

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002012005A Expired - Fee Related JP3852340B2 (en) 2002-01-21 2002-01-21 Optical transmission apparatus and optical data link control method

Country Status (1)

Country Link
JP (1) JP3852340B2 (en)

Also Published As

Publication number Publication date
JP2003218972A (en) 2003-07-31

Similar Documents

Publication Publication Date Title
US7649795B2 (en) Memory with flexible serial interfaces and method for accessing memory thereof
US20080270654A1 (en) Bus System for Selectively Controlling a Plurality of Identical Slave Circuits Connected to the Bus and Method Therefore
US20210349843A1 (en) System component and use of a system component
JP3673015B2 (en) Peripheral device identification method in semiconductor device
KR20080080799A (en) Method and device for memory of serial interface
JP3852340B2 (en) Optical transmission apparatus and optical data link control method
WO2002021775A1 (en) Plural station memory data sharing system
JP2004252977A (en) System and method for mounting hidden address in communication module
US7136955B2 (en) Expansion adapter supporting both PCI and AGP device functions
KR100486244B1 (en) Semiconductor device for initializing interfacing card with serial EEPROM and method thereof
KR101816895B1 (en) Management serial bus for chassis type communication equipment
KR20080013973A (en) Method for communication between at least two subscribers of a communication system
US20080122485A1 (en) Semiconductor device
US7496093B2 (en) Slave circuit and method for initializing a slave circuit
KR20070102823A (en) Device for controlling address in a i2c protocol
US11609875B2 (en) Data communication device and data communication module
JP2007148622A (en) Interface setting method
JP4005950B2 (en) Microcontroller
CN100525259C (en) Method and apparatus to combine heterogeneous hardware interfaces for next generation packet voice module devices
KR100230375B1 (en) Serial data communication system
JP2002305438A (en) Fpga and method for changing fpga function, and communications equipment using the same
KR100460488B1 (en) Apparatus and method for management subscriber board in communication system
KR20050011822A (en) Apparatus for connecting plurality of device with same address to one bus controller and operation method thereof
KR100578666B1 (en) Device and method for matching multiplexing mode with demultiplexing
JP5472469B2 (en) Semiconductor integrated circuit device and electronic system equipped with semiconductor integrated circuit device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041021

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060623

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060815

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060828

R150 Certificate of patent or registration of utility model

Ref document number: 3852340

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20090915

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100915

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100915

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110915

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110915

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120915

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130915

Year of fee payment: 7

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees