JP5601090B2 - Communication device - Google Patents

Communication device Download PDF

Info

Publication number
JP5601090B2
JP5601090B2 JP2010189815A JP2010189815A JP5601090B2 JP 5601090 B2 JP5601090 B2 JP 5601090B2 JP 2010189815 A JP2010189815 A JP 2010189815A JP 2010189815 A JP2010189815 A JP 2010189815A JP 5601090 B2 JP5601090 B2 JP 5601090B2
Authority
JP
Japan
Prior art keywords
data
communication
address
communication protocol
control device
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.)
Active
Application number
JP2010189815A
Other languages
Japanese (ja)
Other versions
JP2012049812A (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 JP2010189815A priority Critical patent/JP5601090B2/en
Publication of JP2012049812A publication Critical patent/JP2012049812A/en
Application granted granted Critical
Publication of JP5601090B2 publication Critical patent/JP5601090B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、通信装置に関する。   The present invention relates to a communication device.

特許文献1には、ホストデバイスからのレジスタアクセスに対して一元化したレジスタアクセス環境を実現することを目的とした通信モジュールが記載されている。この通信モジュールのマイコンは、XAUIリタイマ(XAUI:10 Gigabit attachment unit interface)によって値が更新されるIEEEレジスタのコピーを所定のタイミングでIEEE/XENPAK仮想レジスタに格納する。そして、マイコンは、MACレイヤからの要求に応じて、MDIOインタフェース(MDIO:MediumDependent Input/Output)を介してIEEE/XENPAK仮想レジスタに格納されたIEEEレジスタのコピーをMACレイヤへ出力する。このようなマイコンは、レジスタの内容を一元管理し、MACレイヤからの要求に対してレジスタの値を高速に送信する。   Japanese Patent Application Laid-Open No. 2005-228561 describes a communication module for the purpose of realizing a register access environment that is unified with respect to register access from a host device. The microcomputer of this communication module stores a copy of the IEEE register whose value is updated by an XAUI retimer (XAUI: 10 Gigabit attachment unit interface) in the IEEE / XENPAK virtual register at a predetermined timing. Then, in response to a request from the MAC layer, the microcomputer outputs a copy of the IEEE register stored in the IEEE / XENPAK virtual register to the MAC layer via an MDIO interface (MDIO: Medium Dependent Input / Output). Such a microcomputer centrally manages the contents of the register and transmits the register value at a high speed in response to a request from the MAC layer.

特許文献2には、DCU(デバイス制御ユニット)でPHYIC(トランシーバIC)のレジスタをエミュレーションするにあたり、PHYICでのみ検出される高速系のエラーとDCUでのみ検出される低速系のエラーの発生に伴うレジスタ内容の不整合を解消することを目的としたトランシーバモジュールが記載されている。このトランシーバモジュールは、PHY_LASI_Statusレジスタ(LASIレジスタ)(LASI:Link Alarm Status Interrupt)、PHYIC、及び、DCUを備える。PHYICは、LASI信号の生成可否がエラー要因に応じて設定されるPHY_LASI_Controlレジスタとを有する。DCUは、PHY_LASI_Controlレジスタ(エラー要因により当該エラーの発生を外部に通知すべきか否かを設定するアラームコントロールレジスタ)をエミュレーションしたレジスタを有する。そして、PHYICが、エラー要因によらず発生したエラーを特定するUnmask信号を生成してDCUに出力し、DCUが、Unmask信号に基づいて当該エラーをホストに通知すると共に、PHY_LASI_Statusレジスタの内容をDCU_LASI_Statusレジスタに書き込む。   In Patent Document 2, when a PHYIC (transceiver IC) register is emulated by a DCU (device control unit), a high-speed error detected only by the PHYIC and a low-speed error detected only by the DCU are accompanied. A transceiver module is described that aims to eliminate register content mismatch. This transceiver module includes a PHY_LASI_Status register (LASI register) (LASI: Link Alarm Status Interrupt), PHYIC, and DCU. The PHYIC includes a PHY_LASI_Control register in which whether or not a LASI signal can be generated is set according to an error factor. The DCU has a register that emulates a PHY_LASI_Control register (an alarm control register that sets whether or not the occurrence of the error should be notified to the outside due to an error factor). Then, the PHYIC generates a Unmask signal that identifies the error that occurred regardless of the error cause, and outputs it to the DCU. The DCU notifies the host of the error based on the Unmask signal, and the contents of the PHY_LASI_Status register are stored in the DCU_LASI_Status register. Write to register.

特許第4020815号公報Japanese Patent No. 4020815 特許第4335108号公報Japanese Patent No. 4335108

しかし、単にレジスタの管理を行うだけでは、通信方式の異なる複数のデバイスが混在する場合に対応することは困難である。通信方式に応じてデータの送信先の特定やデータの構成が異なるためである。通信方式の異なる複数のデバイスが混在する場合の対応として、データを予めメモリに保持し、このデータをそれぞれの通信方式に応じて、データの構成を変換し送信先の特定を行うこと等が考えられるが、このためには比較的大きなメモリが必要となる。また、対応可能なデバイスの数はメモリの大きさに依存して制限されることとなる。そこで、本発明の目的は、上記の事項を鑑みてなされたものであり、通信方式の異なる複数のデバイスが通信装置内に混在する場合であっても、通信装置のメモリの大きさを調整することなく、デバイスの数の増減が容易に行える通信装置を提供することである。   However, it is difficult to deal with a case where a plurality of devices having different communication methods coexist simply by managing registers. This is because the data transmission destination and the data configuration differ depending on the communication method. As a countermeasure when multiple devices with different communication methods coexist, it is possible to store data in memory in advance, convert the data configuration according to each communication method, and specify the transmission destination, etc. However, this requires a relatively large memory. Further, the number of devices that can be handled is limited depending on the size of the memory. Therefore, an object of the present invention has been made in view of the above matters, and adjusts the size of a memory of a communication device even when a plurality of devices having different communication methods coexist in the communication device. It is an object of the present invention to provide a communication apparatus that can easily increase or decrease the number of devices.

本発明の一側面に係る通信装置は、外部機器と通信を行う通信装置であって、(1)MDIO通信プロトコル(Medium Dependent Input/Output)及びSPI通信プロトコル(System Packet Interface)に基づく通信が可能であり、上記外部機器と当該通信装置との通信を制御する制御装置と、(2)上記制御装置に接続されており、MDIO通信プロトコル、SPI通信プロトコル、のうち何れか一に対応する第1の通信プロトコルに基づいて上記制御装置と通信を行う第1のデバイスと、(3)上記制御装置に接続されており、MDIO通信プロトコル、SPI通信プロトコル、のうち何れか一に対応する第2の通信プロトコルに基づいて上記制御装置と通信を行う第2のデバイスと、を備える。上記制御装置は、上記外部機器に接続されている場合に上記外部機器からMDIO通信プロトコルに基づく通信データを受けると上記通信データに含まれており上記通信データの送信先を示すアドレスデータを参照し、上記アドレスデータが上記第1のデバイスを示している場合には上記第1の通信プロトコルを用いて上記通信データに対応するデータを上記第1のデバイスに送信し、上記アドレスデータが上記第2のデバイスを示している場合には上記第2の通信プロトコルを用いて上記通信データに対応するデータを上記第2のデバイスに送信し、上記アドレスデータは、上記第1のデバイス及び上記第2のデバイスのうち何れか一に対応するレジスタアドレスを含む。   A communication apparatus according to an aspect of the present invention is a communication apparatus that communicates with an external device, and (1) communication based on MDIO communication protocol (Medium Dependent Input / Output) and SPI communication protocol (System Packet Interface) is possible. A control device for controlling communication between the external device and the communication device; and (2) a first device connected to the control device and corresponding to any one of the MDIO communication protocol and the SPI communication protocol. A first device that communicates with the control device based on the communication protocol; and (3) a second device connected to the control device and corresponding to any one of the MDIO communication protocol and the SPI communication protocol. A second device that communicates with the control device based on a communication protocol. When the control device receives communication data based on the MDIO communication protocol from the external device when connected to the external device, the control device refers to address data indicating the transmission destination of the communication data included in the communication data. When the address data indicates the first device, data corresponding to the communication data is transmitted to the first device using the first communication protocol, and the address data is the second device. The second communication protocol is used to transmit data corresponding to the communication data to the second device, and the address data includes the first device and the second device. A register address corresponding to one of the devices is included.

この通信装置によれば、MDIO通信プロトコル及びSPI通信プロトコルに基づいて通信が行えるので、通信装置が有する複数のデバイスのそれぞれが、MDIO通信プロトコル及びSPI通信プロトコルの何れのプロトコルに基づいて通信を行う場合であっても、通信データに含まれるアドレスデータを参照すれば、外部装置からの通信データに応じて各デバイスにデータを送信できる。また、MDIO通信プロトコルに基づく通信データに含まれるアドレスデータを参照して各デバイスにデータが送信されるので、通信装置のメモリの大きさを調整しなくても通信装置の有するデバイスの数を増減させることが可能となる。   According to this communication apparatus, since communication can be performed based on the MDIO communication protocol and the SPI communication protocol, each of the plurality of devices included in the communication apparatus performs communication based on any of the MDIO communication protocol and the SPI communication protocol. Even in this case, referring to the address data included in the communication data, the data can be transmitted to each device according to the communication data from the external device. In addition, since data is transmitted to each device with reference to address data included in communication data based on the MDIO communication protocol, the number of devices included in the communication device can be increased or decreased without adjusting the memory size of the communication device. It becomes possible to make it.

この制御装置は、上記第1の通信プロトコルがMDIO通信プロトコルであって上記アドレスデータが上記第1のデバイスを示している場合、上記通信データに含まれる内容を有しており上記第1のデバイスに対応するポートアドレスを有するデータを、上記第1のデバイスに送信する。このように、ポートアドレスを用いるので、デバイスごとに新たなアドレスを設けることなく、デバイスの選択が行える。   When the first communication protocol is the MDIO communication protocol and the address data indicates the first device, the control device has contents included in the communication data, and the first device Data having a port address corresponding to is transmitted to the first device. Thus, since the port address is used, the device can be selected without providing a new address for each device.

この上記制御装置は、上記第1のデバイスに対応するレジスタアドレスと、当該通信装置において割り当てられており上記第1のデバイスに対応するデバイスアドレス及びポートアドレスとを関連付け、且つ、上記第2のデバイスに対応するレジスタアドレスと、当該通信装置において割り当てられており上記第2のデバイスに対応するデバイスアドレス及びポートアドレスとを関連付けるテーブルデータを格納する記憶装置を有しており、上記アドレスデータと上記テーブルデータとを参照して上記第1のデバイスに対応するポートアドレスを特定する。このように、テーブルデータを用いて、送信先のデバイスを特定できるので、デバイスの数に増減があってもテーブルデータの変更で対応可能となり、また、メモリの大きさの調整も不要となる。   The control device associates a register address corresponding to the first device with a device address and port address assigned in the communication device and corresponding to the first device, and the second device. And a storage device that stores table data that associates a register address that is assigned in the communication device and a device address and a port address that correspond to the second device, the address data and the table The port address corresponding to the first device is specified with reference to the data. As described above, since the transmission destination device can be specified using the table data, it is possible to cope with the change in the table data even if the number of devices is increased or decreased, and it is not necessary to adjust the size of the memory.

この制御装置は、上記第2の通信プロトコルがMDIO通信プロトコルであって上記通信データに含まれているMDIO通信プロトコルのオペレーションコード(operation code)が書き込み指示を示している場合に、上記通信データに含まれる内容を有しており当該通信装置において未使用のポートアドレスを有するデータを、上記第2のデバイスに送信する。従って、書き込み指示の対象となっていないデバイスに対しては、未使用のポートアドレスが用いられるので書き込み指示がこのデバイスで実行されるのを確実に回避できる。   When the second communication protocol is the MDIO communication protocol and the operation code of the MDIO communication protocol included in the communication data indicates a write instruction, the control device Data having an included content and having an unused port address in the communication apparatus is transmitted to the second device. Accordingly, since an unused port address is used for a device that is not the target of the write instruction, it is possible to reliably avoid the write instruction being executed by this device.

この制御装置は、上記第1の通信プロトコルがSPI通信プロトコルであって上記アドレスデータが上記第1のデバイスに対応している場合に、上記通信データをSPI通信プロトコルに基づくデータに変換し、この変換後のデータを上記第1のデバイスに送信する。従って、SPI通信プロトコルに基づく通信を行うデバイスであっても、外部装置からの通信データに応じて、データの送信が可能となる。   The control device converts the communication data into data based on the SPI communication protocol when the first communication protocol is an SPI communication protocol and the address data corresponds to the first device, The converted data is transmitted to the first device. Therefore, even a device that performs communication based on the SPI communication protocol can transmit data according to communication data from an external device.

この制御装置によって上記通信データから変換された上記SPI通信プロトコルに基づくデータは、MDIO通信プロトコルのオペレーションコードに対応するコマンドデータを含み、上記コマンドデータは、12ビット以下のデータであって、少なくとも、アドレス設定、書き込み指示、読み出し指示、の何れかを示す。従って、制御装置によって作成されるSPI通信プロトコルに基づくデータは、MDIO通信プロトコルのオペレーションコードに対応するコマンドデータを含むので、制御装置は、MDIO通信プロトコルに基づく外部装置からの通信データに含まれる命令をSPI通信プロトコルに基づくデータに変換可能となる。また、制御装置によって作成されるSPI通信プロトコルに基づくデータは、12bit以下のデータなので、作成及び送受信に要する時間を短くできる。   Data based on the SPI communication protocol converted from the communication data by the control device includes command data corresponding to an operation code of the MDIO communication protocol, and the command data is data of 12 bits or less, and at least Indicates one of address setting, write instruction, and read instruction. Therefore, since the data based on the SPI communication protocol created by the control device includes command data corresponding to the operation code of the MDIO communication protocol, the control device can include a command included in the communication data from the external device based on the MDIO communication protocol. Can be converted into data based on the SPI communication protocol. Moreover, since the data based on the SPI communication protocol created by the control device is data of 12 bits or less, the time required for creation and transmission / reception can be shortened.

本発明によれば、通信方式の異なる複数のデバイスが通信装置内に混在する場合であっても、通信装置のメモリの大きさを調整することなく、デバイスの数の増減が容易に行える通信装置を提供することができる。   According to the present invention, even when a plurality of devices having different communication methods coexist in the communication apparatus, the communication apparatus can easily increase or decrease the number of devices without adjusting the memory size of the communication apparatus. Can be provided.

図1は、実施形態に係る通信装置の構成を示す図である。FIG. 1 is a diagram illustrating a configuration of a communication apparatus according to the embodiment. 図2は、実施形態に係る通信装置の制御装置によって送受信されるデータの内容を例示する図である。FIG. 2 is a diagram illustrating the contents of data transmitted and received by the control device of the communication device according to the embodiment. 図3は、実施形態にかかる通信装置の制御装置によって送受信されるデータの内容を用いて、通信装置の動作を説明するための図である。FIG. 3 is a diagram for explaining the operation of the communication device using the content of data transmitted and received by the control device of the communication device according to the embodiment. 図4は、実施形態にかかる通信装置の制御装置によって送受信されるデータの内容を用いて、通信装置の動作を説明するための図である。FIG. 4 is a diagram for explaining the operation of the communication device using the content of data transmitted and received by the control device of the communication device according to the embodiment. 図5は、実施形態にかかる通信装置の制御装置によって送受信されるデータの内容を用いて、通信装置の動作を説明するための図である。FIG. 5 is a diagram for explaining the operation of the communication device using the content of data transmitted and received by the control device of the communication device according to the embodiment. 図6は、実施形態にかかる通信装置の制御装置によって送受信されるデータの内容を用いて、通信装置の動作を説明するための図である。FIG. 6 is a diagram for explaining the operation of the communication device using the content of data transmitted and received by the control device of the communication device according to the embodiment.

以下、図面を参照して、本発明に係る好適な実施形態について詳細に説明する。なお、図面の説明において、可能な場合には、同一要素には同一符号を付し、重複する説明を省略する。図1は、実施形態に係る通信装置1の構成を説明するための図である。通信装置1は、制御装置11、デバイス13,15,17を備える。   Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the drawings. In the description of the drawings, if possible, the same elements are denoted by the same reference numerals, and redundant description is omitted. FIG. 1 is a diagram for explaining a configuration of a communication device 1 according to the embodiment. The communication device 1 includes a control device 11 and devices 13, 15, and 17.

制御装置11は、CPU、送受信装置、及び、記憶装置11a(ROMやRAM等)を有する。CPUは、記憶装置11aに格納されているプログラムを実行することによって、制御装置11(特に、送受信装置及び記憶装置11a)を統括的に制御し、送受信装置は、MDIO通信プロトコル(Medium Dependent Input/Output)及びSPI通信プロトコル(System Packet Interface)に基づく通信が可能である。MDIO通信プロトコルは、数MHzのクロックで駆動されるシリアル通信規格である。MDIO通信プロトコルに基づく通信データを、以下、MDIO通信データといい、SPI通信プロトコルに基づく通信データを、以下、SPI通信データという。記憶装置11aは、テーブルデータTDを格納する。このテーブルデータTDは、デバイス13に対応するレジスタアドレスと、デバイス13に対応しており通信装置1において割り当てられているデバイスアドレス及びポートアドレスとを関連付け、且つ、デバイス15に対応するレジスタアドレスと、デバイス15に対応しており通信装置1において割り当てられているデバイスアドレス及びポートアドレスとを関連付ける(図2(B)を参照)。通信装置1において割り当てられているポートアドレスを内部ポートアドレスといい、通信装置1において割り当てられているレジスタアドレスを内部レジスタアドレスという。   The control device 11 includes a CPU, a transmission / reception device, and a storage device 11a (ROM, RAM, etc.). The CPU comprehensively controls the control device 11 (particularly, the transmission / reception device and the storage device 11a) by executing a program stored in the storage device 11a. The transmission / reception device transmits the MDIO communication protocol (Medium Dependent Input / Output) and communication based on the SPI communication protocol (System Packet Interface) are possible. The MDIO communication protocol is a serial communication standard driven by a clock of several MHz. Communication data based on the MDIO communication protocol is hereinafter referred to as MDIO communication data, and communication data based on the SPI communication protocol is hereinafter referred to as SPI communication data. The storage device 11a stores table data TD. The table data TD associates a register address corresponding to the device 13 with a device address and port address corresponding to the device 13 and assigned in the communication apparatus 1, and a register address corresponding to the device 15; A device address and a port address corresponding to the device 15 and assigned in the communication apparatus 1 are associated (see FIG. 2B). The port address assigned in the communication device 1 is called an internal port address, and the register address assigned in the communication device 1 is called an internal register address.

制御装置11は、通信装置1の外部に設けられている外部装置3に接続されている。制御装置11は、MDIO通信プロトコルに基づいて外部装置3と通信する。制御装置11には、通信装置1が有する一又は複数のデバイスに接続されており、MDIO通信プロトコル、又は、SPI通信プロトコルに基づいて、この一又は複数のデバイスと通信する。本実施形態において、このデバイスは、デバイス13,15,17である。制御装置11は、MDIO通信プロトコルに基づいてデバイス13及びデバイス15と通信する。制御装置11は、SPI通信プロトコルに基づいてデバイス17と通信する。   The control device 11 is connected to an external device 3 provided outside the communication device 1. The control device 11 communicates with the external device 3 based on the MDIO communication protocol. The control device 11 is connected to one or more devices included in the communication device 1, and communicates with the one or more devices based on the MDIO communication protocol or the SPI communication protocol. In the present embodiment, these devices are devices 13, 15, and 17. The control device 11 communicates with the device 13 and the device 15 based on the MDIO communication protocol. The control device 11 communicates with the device 17 based on the SPI communication protocol.

制御装置11は、外部装置3からMDIO通信データを受けると、このMDIO通信データに含まれておりこのMDIO通信データの送信先を示すアドレスデータを参照する。そして、制御装置11は、アドレスデータがデバイス13,15に対応している場合にはMDIO通信プロトコルを用いてこのMDIO通信データに対応するデータをデバイス13,15に送信し、アドレスデータがデバイス17に対応している場合にはSPI通信プロトコルを用いてこのMDIO通信データに対応するデータをデバイス17に送信する。ここで、アドレスデータは、デバイス13,15,17のうち何れか一に対応するレジスタアドレスを含む。   When the control device 11 receives the MDIO communication data from the external device 3, the control device 11 refers to address data included in the MDIO communication data and indicating the transmission destination of the MDIO communication data. When the address data corresponds to the devices 13 and 15, the control device 11 transmits data corresponding to the MDIO communication data to the devices 13 and 15 using the MDIO communication protocol, and the address data is the device 17. If it is compatible with this, data corresponding to the MDIO communication data is transmitted to the device 17 using the SPI communication protocol. Here, the address data includes a register address corresponding to any one of the devices 13, 15, and 17.

デバイス13及びデバイス15は、それぞれ、一例として、MDIO通信プロトコルに基づいて通信が行える光受信モジュール及び光送信モジュールであることができる。デバイス17は、一例として、SPI通信プロトコルに基づいて通信が行え通信装置1内の温度をモニタする温度モニタ回路であることができる。   For example, the device 13 and the device 15 may be an optical reception module and an optical transmission module that can perform communication based on the MDIO communication protocol. As an example, the device 17 can be a temperature monitor circuit that performs communication based on the SPI communication protocol and monitors the temperature in the communication device 1.

なお、デバイス13,15は、光受信モジュール及び光送信モジュールに限らず、他のデバイスであってもよいし、デバイス17は、温度モニタ回路に限らず、他のデバイスであってもよい。通信装置1は、MDIO通信プロトコルに基づいて通信を行うデバイスを一台のみ有していてもよいし、3台以上有していてもよい。通信装置1は、SPI通信プロトコルに基づいて通信を行うデバイスを2台以上有していてもよい。通信装置1は、MDIO通信プロトコルに基づいて通信を行うデバイスのみを有していてもよいし、又は、SPI通信プロトコルに基づいて通信を行うデバイスのみを有していてもよい。   The devices 13 and 15 are not limited to the optical reception module and the optical transmission module, and may be other devices. The device 17 is not limited to the temperature monitoring circuit, and may be other devices. The communication apparatus 1 may have only one device that performs communication based on the MDIO communication protocol, or may have three or more devices. The communication apparatus 1 may have two or more devices that perform communication based on the SPI communication protocol. The communication apparatus 1 may include only a device that performs communication based on the MDIO communication protocol, or may include only a device that performs communication based on the SPI communication protocol.

外部装置3から制御装置11に送信されるMDIO通信データに含まれるポートアドレス、デバイスアドレス及びレジスタアドレスの具体例を、図2(A)に示す。外部装置3から制御装置11に送信されるMDIO通信データに含まれるポートアドレスは、外部ピン(通信装置1等の通信装置ごとに割り当てられている)に応じて任意に設定可能である。本実施形態では、一例として、通信装置1のポートアドレスに“0”が割り当てられている。外部装置3から制御装置11に送信されるMDIO通信データに含まれるデバイスアドレスは、一般には、“1”、“3”、“4”などが割り当てられている。本実施形態では、一例として、通信装置1のデバイスアドレスに“1”が割り当てられている。外部装置3から制御装置11に送信されるMDIO通信データに含まれるレジスタアドレスは、デバイス13,15,17の何れか一を特定するためのアドレスであり、例えば、“0000h-02FFh”、“C000h-C3FFh”及び“8000h-87FFh”の範囲内の何れか一の値が指定される。本実施形態では、一例として、デバイス13には“0000h-02FFh”の範囲内の何れか一の値が割り当てられており、デバイス15には“C000h-C3FFh”の範囲内の何れか一の値が割り当てられており、デバイス17には“8000h-87FFh”の範囲内の何れか一の値が割り当てられている。   A specific example of the port address, device address, and register address included in the MDIO communication data transmitted from the external device 3 to the control device 11 is shown in FIG. The port address included in the MDIO communication data transmitted from the external device 3 to the control device 11 can be arbitrarily set according to an external pin (assigned to each communication device such as the communication device 1). In the present embodiment, as an example, “0” is assigned to the port address of the communication device 1. In general, “1”, “3”, “4”, and the like are assigned as device addresses included in the MDIO communication data transmitted from the external device 3 to the control device 11. In the present embodiment, as an example, “1” is assigned to the device address of the communication apparatus 1. The register address included in the MDIO communication data transmitted from the external device 3 to the control device 11 is an address for specifying one of the devices 13, 15, and 17, for example, “0000h-02FFh”, “C000h” One value in the range of “-C3FFh” and “8000h-87FFh” is specified. In the present embodiment, as an example, any one value in the range of “0000h-02FFh” is assigned to the device 13, and any one value in the range of “C000h-C3FFh” is assigned to the device 15. Is assigned, and the device 17 is assigned any one value within the range of “8000h-87FFh”.

外部装置3からのMDIO通信データに応じて制御装置11からデバイス13,15,17に送信するMDIO通信データに含まれる内部ポートアドレス、内部デバイスアドレス及びレジスタアドレスの具体例を図2(B)に示す。制御装置11からデバイス13,15に送信するMDIO通信データに含まれる内部ポートアドレスは、MDIO通信プロトコルに基づく通信を行うデバイス13,15ごとに割り当てられている。SPI通信プロトコルに基づく通信を行うデバイス17に対しては、内部ポートアドレスは不要であり、よって、デバイス17に内部ポートアドレスは割り当てられていない。本実施形態では、一例として、デバイス13の内部ポートアドレスに“3”が割り当てられており、デバイス15の内部ポートアドレスに“5”が割り当てられている。   A specific example of the internal port address, internal device address, and register address included in the MDIO communication data transmitted from the control device 11 to the devices 13, 15, and 17 in accordance with the MDIO communication data from the external device 3 is shown in FIG. Show. The internal port address included in the MDIO communication data transmitted from the control device 11 to the devices 13 and 15 is assigned to each device 13 and 15 that performs communication based on the MDIO communication protocol. An internal port address is not required for the device 17 that performs communication based on the SPI communication protocol, and therefore no internal port address is assigned to the device 17. In the present embodiment, as an example, “3” is assigned to the internal port address of the device 13, and “5” is assigned to the internal port address of the device 15.

また、制御装置11からデバイス13,15に送信するMDIO通信データに含まれる内部デバイスアドレスは、MDIO通信プロトコルに基づく通信を行うデバイス13,15ごとに割り当てられている。SPI通信プロトコルに基づく通信を行うデバイス17に対しては、デバイスアドレスは不要であり、よって、デバイス17に内部デバイスアドレスは割り当てられていない。本実施形態では、一例として、デバイス13の内部デバイスアドレスに“1”が割り当てられており、デバイス15の内部デバイスアドレスに“4”が割り当てられている。また、制御装置11からデバイス13,15に送信するMDIO通信データに含まれるレジスタアドレスは、外部装置3から制御装置11に送信されるMDIO通信データに含まれるレジスタアドレスと同一である。   Also, the internal device address included in the MDIO communication data transmitted from the control device 11 to the devices 13 and 15 is assigned to each device 13 and 15 that performs communication based on the MDIO communication protocol. A device address is not required for the device 17 that performs communication based on the SPI communication protocol. Therefore, no internal device address is assigned to the device 17. In the present embodiment, as an example, “1” is assigned to the internal device address of the device 13, and “4” is assigned to the internal device address of the device 15. The register address included in the MDIO communication data transmitted from the control device 11 to the devices 13 and 15 is the same as the register address included in the MDIO communication data transmitted from the external device 3 to the control device 11.

以下、図3〜図6を参照して、制御装置11の動作を説明する。図3〜図6は、制御装置11が受信及び送信する通信データを示す図である。まず、図3〜図6に示すMDIO通信データの内容について説明する。“PRE”は、MDIO通信プロトコルの“preamble”を表すデータであり、32bitの全てに“1”が設定されている。“ST”は、MDIO通信プロトコルの“start”を表すデータであり、2bitの全てに“1”が設定されている。“OP”は、MDIO通信プロトコルの“operationcode”を表す2bitのデータである。“OP”の2bitのデータは、命令を表すデータ(以下、コマンドデータという場合がある)であり、アドレス指定の命令を表すデータの場合“00”であり、書き込み指示の命令を表すデータの場合“01”であり、読み出し指示の命令を表すデータの場合“11”又は“10”である。   Hereinafter, the operation of the control device 11 will be described with reference to FIGS. 3-6 is a figure which shows the communication data which the control apparatus 11 receives and transmits. First, the contents of the MDIO communication data shown in FIGS. 3 to 6 will be described. “PRE” is data representing “preamble” of the MDIO communication protocol, and “1” is set in all 32 bits. “ST” is data representing “start” of the MDIO communication protocol, and “1” is set in all 2 bits. “OP” is 2-bit data representing “operationcode” of the MDIO communication protocol. The 2-bit data of “OP” is data representing an instruction (hereinafter sometimes referred to as command data), “00” in the case of data representing an address designation instruction, and in the case of data representing a write instruction instruction. In the case of data representing “01” and a read instruction command, it is “11” or “10”.

“PRTAD”は、MDIO通信プロトコルの“port address”を表す5bitのデータである。図2に示すように、外部装置3が制御装置11に送信するMDIO通信データに含まれている“PRTAD”には“0”(ポートアドレス)が設定されており、制御装置11がデバイス13に送信するMDIO通信データに含まれる“PRTAD”には“3”(内部ポートアドレス)が設定されており、制御装置11がデバイス15に送信するMDIO通信データに含まれる“PRTAD”には“5”(内部ポートアドレス)が設定されている。   “PRTAD” is 5-bit data representing “port address” of the MDIO communication protocol. As shown in FIG. 2, “0” (port address) is set in “PRTAD” included in the MDIO communication data transmitted from the external device 3 to the control device 11. “3” (internal port address) is set in “PRTAD” included in the MDIO communication data to be transmitted, and “5” is set in “PRTAD” included in the MDIO communication data transmitted from the control device 11 to the device 15. (Internal port address) is set.

“DEVAD”は、MDIO通信プロトコルの“device address”を表す5bitのデータである。図2に示すように、外部装置3が制御装置11に送信するMDIO通信データに含まれている“DEVAD”には“1”(デバイスアドレス)が設定されており、制御装置11がデバイス13に送信するMDIO通信データに含まれる“DEVAD”には“1”(内部デバイスアドレス)が設定されており、制御装置11がデバイス15に送信するMDIO通信データに含まれる“DEVAD”には“4”(内部デバイスアドレス)が設定されている。   “DEVAD” is 5-bit data representing “device address” of the MDIO communication protocol. As shown in FIG. 2, “DEVAD” included in the MDIO communication data transmitted from the external device 3 to the control device 11 is set to “1” (device address). “1” (internal device address) is set in “DEVAD” included in the MDIO communication data to be transmitted, and “4” is stored in “DEVAD” included in the MDIO communication data transmitted from the control device 11 to the device 15. (Internal device address) is set.

“TA”は、MDIO通信プロトコルの“turnround”を表すデータであり、信号方向の切り替え(送信から受信への切り替え、又は、受信から送信への切り替え)に要するタイミングギャップ(時間間隔)を表している。このタイミングギャップは、1bitを単位として規定されている。“ADDRESS”は、レジスタアドレスを表すデータである。図2に示すように、外部装置3が制御装置11に送信するMDIO通信データに含まれる“ADDRESS”には、デバイス13が指定されている場合には“0000h-02FFh”の範囲内の何れか一の値が設定され、デバイス15が指定されている場合には“C000h-C3FFh”の範囲内の何れか一の値が設定され、デバイス17が指定されている場合には“8000h-87FFh”の範囲内の何れか一の値が設定されている。   “TA” is data representing “turnround” of the MDIO communication protocol, and represents a timing gap (time interval) required for switching the signal direction (switching from transmission to reception or switching from reception to transmission). Yes. This timing gap is defined in units of 1 bit. “ADDRESS” is data representing a register address. As shown in FIG. 2, “ADDRESS” included in the MDIO communication data transmitted from the external device 3 to the control device 11 is one in the range of “0000h-02FFh” when the device 13 is designated. When one value is set and the device 15 is designated, any one value within the range of “C000h-C3FFh” is set, and when the device 17 is designated, “8000h-87FFh” Any one value within the range is set.

“DATA”は、デバイス13、デバイス15に書き込むデータ、又は、デバイス13、デバイス15から読み出されたデータ、が設定される。“DATA”に設定されるデータは、“OP”が書き込み指示の命令を表すデータの場合、デバイス13、デバイス15に書き込むデータであり、“OP”が読み出し指示の命令を表すデータの場合、デバイス13、デバイス15から読み出されたデータである。   In “DATA”, data to be written to the device 13 and the device 15 or data read from the device 13 and the device 15 is set. The data set to “DATA” is data to be written to the device 13 and device 15 when “OP” is data indicating a write instruction, and when “OP” is data indicating a read instruction. 13 is data read from the device 15.

次に、図5及び図6に示すSPI通信データの内容について説明する。SPI通信データは、“SETAD”、“WRITE”及び“READ”等、MDIO通信プロトコルの“OP”に対応するコマンドデータを含む。SPI通信データに含まれるコマンドデータは12bit以下のデータである。“SETAD”は、SPI通信プロトコルの命令を表すデータであり、アドレス指定の命令を表すデータである。“WRITE”は、SPI通信プロトコルの命令を表すデータであり、書き込み指示の命令を表すデータである。“READ”は、SPI通信プロトコルの命令を表すデータであり、読み出し指示の命令を表すデータである。SPI通信データの“DATA”は、デバイス17に書き込むデータ、又は、デバイス17から読み出されたデータ、が設定される。SPI通信データの“DATA”に設定されるデータは、SPI通信データに含まれているSPI通信プロトコルの命令を表すデータが“WRITE”の場合、デバイス17に書き込むデータであり、SPI通信データに含まれているSPI通信プロトコルの命令を表すデータが“READ”の場合、デバイス17から読み出されたデータである。   Next, the contents of the SPI communication data shown in FIGS. 5 and 6 will be described. The SPI communication data includes command data corresponding to “OP” of the MDIO communication protocol such as “SETAD”, “WRITE”, and “READ”. Command data included in the SPI communication data is data of 12 bits or less. “SETAD” is data representing an instruction of the SPI communication protocol, and is data representing an instruction for addressing. “WRITE” is data representing an instruction of the SPI communication protocol, and is data representing an instruction of a write instruction. “READ” is data representing an instruction of the SPI communication protocol, and is data representing an instruction of a read instruction. In the “DATA” of the SPI communication data, data to be written to the device 17 or data read from the device 17 is set. The data set to “DATA” of the SPI communication data is data to be written to the device 17 when the data indicating the SPI communication protocol command included in the SPI communication data is “WRITE”, and is included in the SPI communication data. If the data representing the SPI communication protocol command is “READ”, the data is read from the device 17.

ここで、制御装置11が行う送受信処理の概要を説明する。まず、制御装置11がデバイス13,15にデータを送信する場合について説明する。制御装置11は、外部装置3からMDIO通信データの1bit(データd1という)を受信すると、この受信と同時に、デバイス13及びデバイス15のそれぞれに対しては、この受信したデータd1に対応する1bitのデータを送信する。そして、この後、制御装置11は、データd1に続くMDIO通信データの次の1bit(データd2という)を外部装置3から受信すると、この受信と同時に、デバイス13及びデバイス15のそれぞれに対しては、この受信したデータd2に対応する1bitのデータを送信する。デバイス13に対して送信される1bitのデータと、デバイス15に対して送信される1bitのデータとは、同一であるか、又は相違する。   Here, an outline of transmission / reception processing performed by the control device 11 will be described. First, a case where the control device 11 transmits data to the devices 13 and 15 will be described. When the control device 11 receives 1 bit of MDIO communication data (referred to as data d1) from the external device 3, simultaneously with this reception, each of the device 13 and the device 15 receives 1 bit corresponding to the received data d1. Send data. After that, when the control device 11 receives the next 1 bit (referred to as data d2) of the MDIO communication data following the data d1 from the external device 3, simultaneously with the reception, the control device 11 does not respond to each of the device 13 and the device 15. Then, 1-bit data corresponding to the received data d2 is transmitted. The 1-bit data transmitted to the device 13 and the 1-bit data transmitted to the device 15 are the same or different.

具体的には、制御装置11は、例えば、外部装置3から送信されるMDIO通信データに含まれる第1番目の1bitのデータd1を受信すると、この受信と同時に、デバイス13及びデバイス15のそれぞれに対し、この受信したデータd1に対応する1bitのデータを送信する。データd1に対応しておりデバイス13に対して送信される1bitのデータと、データd1に対応しておりデバイス15に対して送信される1bitのデータとは、同一であるか、又は相違する。この後、制御装置11は、外部装置3から送信されるMDIO通信データに含まれる第2番目の1bitのデータd2を受信すると、この受信と同時に、デバイス13及びデバイス15のそれぞれに対し、この受信したデータd2に対応する1bitのデータを送信する。データd2に対応しておりデバイス13に対して送信される1bitのデータと、データd2に対応しておりデバイス15に対して送信される1bitのデータとは、同一であるか、又は相違する。   Specifically, for example, when the control device 11 receives the first 1-bit data d1 included in the MDIO communication data transmitted from the external device 3, for example, each of the devices 13 and 15 is simultaneously received. On the other hand, 1-bit data corresponding to the received data d1 is transmitted. The 1-bit data corresponding to the data d1 and transmitted to the device 13 is the same as or different from the 1-bit data corresponding to the data d1 and transmitted to the device 15. Thereafter, when the control device 11 receives the second 1-bit data d2 included in the MDIO communication data transmitted from the external device 3, simultaneously with the reception, the control device 11 receives this reception for each of the device 13 and the device 15. 1-bit data corresponding to the data d2 is transmitted. The 1-bit data corresponding to the data d2 and transmitted to the device 13 is the same as or different from the 1-bit data corresponding to the data d2 and transmitted to the device 15.

制御装置11は、デバイス13及びデバイス15等、MDIO通信プロトコルに基づく通信を行うデバイスに対しては、このようなデータの受信及び送信を行う。すなわち、制御装置11は、デバイス13及びデバイス15に対しては、外部装置3からのMDIO通信データの受信と、デバイス13及びデバイス15に対するMDIO通信データ(外部装置3から受信したMDIO通信データに対応するデータ)の送信とを、並行して行う(並行して行う、とは、1bitのデータを受信すると、この受信と同時に、この受信したデータに対応する1bitのデータを送信する意であり、以下同様。)。   The control device 11 receives and transmits such data to devices that perform communication based on the MDIO communication protocol, such as the device 13 and the device 15. In other words, the control device 11 receives MDIO communication data from the external device 3 for the device 13 and the device 15, and corresponds to MDIO communication data for the device 13 and the device 15 (MDIO communication data received from the external device 3). Transmission in parallel means that when 1 bit data is received, simultaneously with this reception, 1 bit data corresponding to the received data is transmitted. The same applies hereinafter.)

次に、制御装置11がデバイス17にデータを送信する場合について説明する。制御装置11は、外部装置3から受信したMDIO通信データに含まれる“PRE”、“ST”及び“OP”の受信が完了するまで、SPI通信プロトコルに基づく通信を行うデバイス17にデータ送信を行わない。そして、制御装置11は、このMDIO通信データに含まれる“OP”の受信が完了した後に、この“OP”に続くMDIO通信データの“PRTAD”、“DEVAD”、“TA”、“ADDRESS”、及び、“DATA”の内容に基づいて、SPI通信データ(“SETAD”、“WRITE”、“READ”等)を作成し、この作成したSPI通信データをデバイス17に送信する。制御装置11は、デバイス17等、SPI通信プロトコルに基づく通信を行うデバイスに対しては、このようなデータの受信及び送信を行う。   Next, a case where the control apparatus 11 transmits data to the device 17 will be described. The control device 11 transmits data to the device 17 that performs communication based on the SPI communication protocol until reception of “PRE”, “ST”, and “OP” included in the MDIO communication data received from the external device 3 is completed. Absent. Then, after the reception of “OP” included in the MDIO communication data is completed, the control device 11 performs “PRTAD”, “DEVAD”, “TA”, “ADDRESS” of MDIO communication data subsequent to “OP”, Based on the contents of “DATA”, SPI communication data (“SETAD”, “WRITE”, “READ”, etc.) is created, and the created SPI communication data is transmitted to the device 17. The control device 11 receives and transmits such data to a device that performs communication based on the SPI communication protocol, such as the device 17.

図3を参照して制御装置11の動作を詳細に説明する。図3には、デバイス15にデータを書き込むために用いられる通信データが示されている。   The operation of the control device 11 will be described in detail with reference to FIG. FIG. 3 shows communication data used for writing data to the device 15.

データD11a及びデータD11bは、制御装置11が外部装置3から受信するMDIO通信データである。データD11は、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”を含み、データD11bは、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“DATA”を含む。制御装置11は、データD11aを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”の順に受信し、データD11bを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“DATA”の順に受信する。   Data D11a and data D11b are MDIO communication data received by the control device 11 from the external device 3. The data D11 includes “PRE”, “ST”, “OP”, “PRTAD”, “DEVAD”, “TA”, “ADDRESS”, and the data D11b includes “PRE”, “ST”, “OP”, Includes “PRTAD”, “DEVAD”, “TA”, “DATA”. The control device 11 receives the data D11a in the order of “PRE”, “ST”, “OP”, “PRTAD”, “DEVAD”, “TA”, “ADDRESS”, and receives the data D11b as “PRE”, “ Reception is performed in the order of “ST”, “OP”, “PRTAD”, “DEVAD”, “TA”, and “DATA”.

データD11aの“OP”にはアドレス指定の命令を表す2bitのデータ“00”が設定され、データD11bの“OP”には書き込み指示の命令を表す2bitのデータ“01”が設定されている。データD11a及びデータD11bの“DEVAD”にはデバイス15のデバイスアドレスが設定され、データD11a及びデータD11bの“ADDRESS”にはデバイス15のレジスタアドレスが設定されている。データD11bの“DATA”にはデバイス15(データD11aの“ADDRESS”に設定されているレジスタアドレスに対応するデバイス)に書き込むデータが設定されている。   2-bit data “00” representing an address designation instruction is set in “OP” of data D11a, and 2-bit data “01” representing a write instruction instruction is set in “OP” of data D11b. The device address of the device 15 is set in “DEVAD” of the data D11a and the data D11b, and the register address of the device 15 is set in “ADDRESS” of the data D11a and the data D11b. Data to be written to the device 15 (device corresponding to the register address set to “ADDRESS” of the data D11a) is set in “DATA” of the data D11b.

データD12a及びデータD12bは、制御装置11がデバイス13に送信するMDIO通信データである。データD12aは、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”を含み、データD12bは、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“DATA”を含む。制御装置11は、データD12aを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”の順に送信し、データD12bを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“DATA”の順に送信する。   Data D12a and data D12b are MDIO communication data transmitted from the control device 11 to the device 13. The data D12a includes “PRE”, “ST”, “OP”, “PRTAD”, “DEVAD”, “TA”, “ADDRESS”, and the data D12b includes “PRE”, “ST”, “OP”, Includes “PRTAD”, “DEVAD”, “TA”, “DATA”. The control device 11 transmits the data D12a in the order of “PRE”, “ST”, “OP”, “PRTAD”, “DEVAD”, “TA”, “ADDRESS”, and transmits the data D12b to “PRE”, “ Transmission is performed in the order of “ST”, “OP”, “PRTAD”, “DEVAD”, “TA”, “DATA”.

データD13a及びデータD13bは、制御装置11がデバイス15に送信するMDIO通信データである。データD13aは、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”を含み、データD13bは、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“DATA”を含む。制御装置11は、データD13aを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”の順に送信し、データD13bを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“DATA”の順に送信する。   Data D13a and data D13b are MDIO communication data transmitted from the control device 11 to the device 15. The data D13a includes “PRE”, “ST”, “OP”, “PRTAD”, “DEVAD”, “TA”, “ADDRESS”, and the data D13b includes “PRE”, “ST”, “OP”, Includes “PRTAD”, “DEVAD”, “TA”, “DATA”. The control device 11 transmits the data D13a in the order of “PRE”, “ST”, “OP”, “PRTAD”, “DEVAD”, “TA”, “ADDRESS”, and transmits the data D13b to “PRE”, “ Transmission is performed in the order of “ST”, “OP”, “PRTAD”, “DEVAD”, “TA”, “DATA”.

制御装置11は、データD11aを受信した後に、データD11bを受信する。制御装置11は、データD12a及びデータD13aを送信した後に、データD12b及びデータD13bを送信する。制御装置11は、データD11aの受信とデータD12a及びデータD13aの送信とを並行して行い、データD11bの受信とデータD12b及びデータD13bの送信とを並行して行う。   The control device 11 receives the data D11b after receiving the data D11a. The control device 11 transmits data D12b and data D13b after transmitting data D12a and data D13a. The control device 11 performs reception of data D11a and transmission of data D12a and data D13a in parallel, and reception of data D11b and transmission of data D12b and data D13b in parallel.

制御装置11は、データD11aの“OP”の内容(アドレス指定の命令)から、データD11aがアドレス指定の通信データであると判断する。制御装置11は、データD12aの“PRTAD”をデバイス13の内部ポートアドレスである“3”に設定し、データD12aの“DEVAD”をデバイス13の内部デバイスアドレスである“1”に設定する。制御装置11は、データD13aの“PRTAD”をデバイス15の内部ポートアドレスである“5”に設定し、データD13aの“DEVAD”をデバイス15の内部デバイスアドレスである“4”に設定する。制御装置11は、データD11aの“ADDRESS”の内容(デバイス15のレジスタアドレス)とテーブルデータTDとに基づいて、データD11aに続くデータD11bの“OP”に設定されている命令を行うデバイスがデバイス15であると判断する。制御装置11は、データD11bの“OP”の内容(書き込み指示の命令)から、データD11bが書き込み指示を行うための通信データであると判断する。制御装置11は、データD12bの“PRTAD”を通信装置1において未使用の内部ポートアドレス(ダミーポートアドレス)に設定し、データD13bの“PRTAD”をデバイス15の内部ポートアドレスである“5”に設定し、データD13bの“DEVAD”をデバイス15の内部デバイスアドレスである“4”に設定する。   The control device 11 determines that the data D11a is address-designated communication data from the contents of “OP” of the data D11a (address designation command). The control device 11 sets “PRTAD” of the data D12a to “3” that is the internal port address of the device 13, and sets “DEVAD” of the data D12a to “1” that is the internal device address of the device 13. The control device 11 sets “PRTAD” of the data D13a to “5” that is the internal port address of the device 15, and sets “DEVAD” of the data D13a to “4” that is the internal device address of the device 15. Based on the contents of “ADDRESS” of data D11a (register address of device 15) and table data TD, control device 11 is a device that performs an instruction set in “OP” of data D11b following data D11a. 15 is determined. The control device 11 determines that the data D11b is communication data for issuing a write instruction from the contents of “OP” of the data D11b (write instruction instruction). The control device 11 sets “PRTAD” of the data D12b to an unused internal port address (dummy port address) in the communication device 1, and sets “PRTAD” of the data D13b to “5” which is the internal port address of the device 15. Then, “DEVAD” of the data D13b is set to “4” which is the internal device address of the device 15.

データD11aの“ADDRESS”によって指定されているデバイスはデバイス15であってデバイス13ではないので、デバイス13に送信されるデータD12bの“PRTAD”には、通信装置1で未使用の内部ポートアドレスが設定される。データD12bは、データD11a、11bに含まれている“PRTAD”を通信装置1で未使用の内部ポートアドレスに変更して得られるデータである。このようなダミーポートアドレスの設定により、データD11aの“ADDRESS”によって指定されているデバイスとは異なるデバイス13がデータD11bの書き込み指示を実行することを防止できる。また、データD11aの“ADDRESS”によって指定されているデバイスはデバイス15なので、デバイス15に送信されるデータD13bの“PRTAD”には、デバイス15の内部ポートアドレスである“5”が設定される。これによって、デバイス15は、制御装置11から送信されるデータD13bに応じて、データD11bの書き込み指示を実行できる。   Since the device specified by “ADDRESS” of the data D11a is the device 15 and not the device 13, the “PRTAD” of the data D12b transmitted to the device 13 has an unused internal port address in the communication device 1. Is set. The data D12b is data obtained by changing “PRTAD” included in the data D11a and 11b to an unused internal port address in the communication device 1. By setting the dummy port address as described above, it is possible to prevent the device 13 different from the device specified by “ADDRESS” of the data D11a from executing the write instruction of the data D11b. Further, since the device specified by “ADDRESS” of the data D11a is the device 15, “5” which is the internal port address of the device 15 is set in “PRTAD” of the data D13b transmitted to the device 15. Thereby, the device 15 can execute an instruction to write the data D11b in accordance with the data D13b transmitted from the control device 11.

なお、データD11a、データD12a及びデータD13aは、“PRTAD”及び“DEVAD”を除いて同一である。データD11b、データD12b及びデータD13bも、“PRTAD”及び“DEVAD”を除いて同一である。   The data D11a, the data D12a, and the data D13a are the same except for “PRTAD” and “DEVAD”. The data D11b, the data D12b, and the data D13b are the same except for “PRTAD” and “DEVAD”.

図4を参照して制御装置11の動作を詳細に説明する。図4には、デバイス15からデータを読み出すために用いられる通信データが示されている。   The operation of the control device 11 will be described in detail with reference to FIG. FIG. 4 shows communication data used for reading data from the device 15.

データD14a及びデータD14bは、制御装置11が外部装置3から受信するMDIO通信データである。データD14aは、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”を含み、データD14bは、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”を含む。制御装置11は、データD14aを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”の順に受信し、データD14bを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”の順に受信する。   Data D14a and data D14b are MDIO communication data received by the control device 11 from the external device 3. The data D14a includes “PRE”, “ST”, “OP”, “PRTAD”, “DEVAD”, “TA”, “ADDRESS”, and the data D14b includes “PRE”, “ST”, “OP”, Includes “PRTAD” and “DEVAD”. The control device 11 receives the data D14a in the order of "PRE", "ST", "OP", "PRTAD", "DEVAD", "TA", "ADDRESS", and receives the data D14b as "PRE", " Reception is performed in the order of “ST”, “OP”, “PRTAD”, and “DEVAD”.

データD14aの“OP”にはアドレス指定の命令を表す2bitのデータ“00”が設定され、データD14bの“OP”には読み出し指示の命令を表す2bitのデータ“11”又は“10”が設定されている。データD14a及びデータD14bの“DEVAD”にはデバイス15のデバイスアドレスが設定され、データD14a及びデータD14bの“ADDRESS”にはデバイス15のレジスタアドレスが設定されている。   2-bit data “00” representing an address designation command is set in “OP” of data D14a, and 2-bit data “11” or “10” representing a read instruction command is set in “OP” of data D14b. Has been. The device address of the device 15 is set in “DEVAD” of the data D14a and the data D14b, and the register address of the device 15 is set in “ADDRESS” of the data D14a and the data D14b.

データD15a及びデータD15bは、制御装置11がデバイス13に送信するMDIO通信データである。データD15aは、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”を含み、データD15bは、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”を含む。制御装置11は、データD15aを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”の順に送信し、データD15bを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”の順に送信する。   Data D15a and data D15b are MDIO communication data transmitted from the control device 11 to the device 13. The data D15a includes “PRE”, “ST”, “OP”, “PRTAD”, “DEVAD”, “TA”, “ADDRESS”, and the data D15b includes “PRE”, “ST”, “OP”, Includes “PRTAD” and “DEVAD”. The control device 11 transmits the data D15a in the order of “PRE”, “ST”, “OP”, “PRTAD”, “DEVAD”, “TA”, “ADDRESS”, and transmits the data D15b to “PRE”, “ Transmit in the order of “ST”, “OP”, “PRTAD”, “DEVAD”.

データD16a及びデータD16bは、制御装置11がデバイス15に送信するMDIO通信データである。データD16aは、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”を含み、データD16bは、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”を含む。制御装置11は、データD16aを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”の順に送信し、データD16bを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”の順に送信する。   Data D16a and data D16b are MDIO communication data transmitted from the control device 11 to the device 15. The data D16a includes “PRE”, “ST”, “OP”, “PRTAD”, “DEVAD”, “TA”, “ADDRESS”, and the data D16b includes “PRE”, “ST”, “OP”, Includes “PRTAD” and “DEVAD”. The control device 11 transmits the data D16a in the order of “PRE”, “ST”, “OP”, “PRTAD”, “DEVAD”, “TA”, “ADDRESS”, and transmits the data D16b to “PRE”, “ Transmit in the order of “ST”, “OP”, “PRTAD”, “DEVAD”.

データD21は、制御装置11が外部装置3に送信するデータである。データD22は、制御装置11がデバイス13から受信するデータであってデバイス13によって読み出されたデータである。データD23は、制御装置11がデバイス15から受信するデータであってデバイス15によって読み出されたデータである。データD21は、データD23と同一である。   Data D <b> 21 is data that the control device 11 transmits to the external device 3. Data D <b> 22 is data received by the control device 11 from the device 13 and read by the device 13. Data D <b> 23 is data received by the control device 11 from the device 15 and read by the device 15. Data D21 is the same as data D23.

制御装置11は、データD14aを受信した後に、データD14bを受信する。制御装置11は、データD15a及びデータD16aを送信した後に、データD15b及びデータD16bを送信する。制御装置11は、データD14bを受信した後に、データD21を送信する。制御装置11は、データD15b及びデータD16bを送信した後に、データD22及びデータD23を受信する。制御装置11は、データD14aの受信とデータD15a及びデータD16aの送信とを並行して行い、データD14bの受信とデータD15b及びデータD16bの送信とを並行して行う。制御装置11は、データD22及びデータD23の受信とデータD21の送信とを並行して行う。   The control device 11 receives the data D14b after receiving the data D14a. The control device 11 transmits the data D15b and the data D16b after transmitting the data D15a and the data D16a. The control device 11 transmits the data D21 after receiving the data D14b. The control device 11 receives the data D22 and the data D23 after transmitting the data D15b and the data D16b. The control device 11 performs reception of data D14a and transmission of data D15a and data D16a in parallel, and reception of data D14b and transmission of data D15b and data D16b in parallel. The control device 11 performs reception of data D22 and data D23 and transmission of data D21 in parallel.

制御装置11は、データD14aの“OP”の内容(アドレス指定の命令)から、データD14aがアドレス指定を行うための通信データであると判断する。制御装置11は、データD15aの“PRTAD”をデバイス13の内部ポートアドレスである“3”に設定し、データD15aの“DEVAD”をデバイス13の内部デバイスアドレスである“1”に設定する。制御装置11は、データD16aの“PRTAD”をデバイス15の内部ポートアドレスである“5”に設定し、データD16aの“DEVAD”をデバイス15の内部デバイスアドレスである“4”に設定する。制御装置11は、データD14aの“ADDRESS”の内容(デバイス15のレジスタアドレス)とテーブルデータTDとに基づいて、データD14aに続くデータD14bの“OP”に設定されている命令を行うデバイスがデバイス15であると判断する。   The control device 11 determines that the data D14a is communication data for addressing from the contents of the “OP” of the data D14a (address designation command). The control device 11 sets “PRTAD” of the data D15a to “3” that is the internal port address of the device 13, and sets “DEVAD” of the data D15a to “1” that is the internal device address of the device 13. The control device 11 sets “PRTAD” of the data D16a to “5” that is the internal port address of the device 15, and sets “DEVAD” of the data D16a to “4” that is the internal device address of the device 15. Based on the content of “ADDRESS” in data D14a (register address of device 15) and table data TD, the control device 11 is a device that executes an instruction set in “OP” in data D14b following data D14a. 15 is determined.

制御装置11は、データD14bの“OP”の内容(読み出し指示の命令)から、データD14bが読み出し指示を行うための通信データであると判断する。制御装置11は、データD15bの“PRTAD”をデバイス13の内部ポートアドレスである“3”に設定し、データD15bの“DEVAD”をデバイス13の内部デバイスアドレスである“1”に設定する。制御装置11は、データD16bの“PRTAD”をデバイス15の内部ポートアドレスである“5”に設定し、データD16bの“DEVAD”をデバイス15の内部デバイスアドレスである“4”に設定する。   The control device 11 determines that the data D14b is communication data for performing a read instruction from the contents of “OP” of the data D14b (read instruction). The control device 11 sets “PRTAD” of the data D15b to “3” that is the internal port address of the device 13, and sets “DEVAD” of the data D15b to “1” that is the internal device address of the device 13. The control device 11 sets “PRTAD” of the data D16b to “5” that is the internal port address of the device 15, and sets “DEVAD” of the data D16b to “4” that is the internal device address of the device 15.

制御装置11は、データD15aの“TA”に設定されているタイミングギャップ内にデバイス13が制御装置11に送信したデータD22と、データD16aの“TA”に設定されているタイミングギャップ内にデバイス15が制御装置11に送信したデータD23とを受信する。制御装置11は、データD14aの“TA”に設定されているタイミングギャップ内にデータD21を外部装置3に送信する。データD14aの“TA”に設定されているタイミングギャップと、データD15aの“TA”に設定されているタイミングギャップと、データD16aの“TA”に設定されているタイミングギャップと、は同一である。   The control device 11 transmits data D22 transmitted by the device 13 to the control device 11 within the timing gap set in “TA” of the data D15a and device 15 within the timing gap set in “TA” of the data D16a. Receives the data D23 transmitted to the control device 11. The control device 11 transmits the data D21 to the external device 3 within the timing gap set to “TA” of the data D14a. The timing gap set to “TA” in the data D14a, the timing gap set to “TA” in the data D15a, and the timing gap set to “TA” in the data D16a are the same.

データD14aの“ADDRESS”によって指定されているデバイスはデバイス15であってデバイス13ではないので、制御装置11はデバイス15から送信されるデータD23のみを制御装置11に送信し、デバイス13から送信されるデータD22は制御装置11に送信されない。これによって、デバイス15は、制御装置11から送信されるデータD16bに応じて、データD14bの読み出し指示を実行できる。   Since the device specified by “ADDRESS” of the data D14a is the device 15, not the device 13, the control device 11 transmits only the data D23 transmitted from the device 15 to the control device 11, and is transmitted from the device 13. Data D22 to be transmitted is not transmitted to the control device 11. Accordingly, the device 15 can execute an instruction to read the data D14b in accordance with the data D16b transmitted from the control device 11.

なお、データD14a、データD15a及びデータD16aは、“PRTAD”及び“DEVAD”を除いて同一であり、データD14b、データD15b及びデータD16bも、“PRTAD”及び“DEVAD”を除いて同一である。   The data D14a, the data D15a, and the data D16a are the same except for “PRTAD” and “DEVAD”, and the data D14b, the data D15b, and the data D16b are also the same except for “PRTAD” and “DEVAD”.

図5を参照して制御装置11の動作を詳細に説明する。図5には、デバイス17にデータを書き込むために用いられる通信データが示されている。   The operation of the control device 11 will be described in detail with reference to FIG. FIG. 5 shows communication data used for writing data to the device 17.

データD17a及びデータD17bは、制御装置11が外部装置3から受信するMDIO通信データである。データD17aは、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”を含み、データD17bは、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“DATA”を含む。制御装置11は、データD17aを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”の順に受信し、データD17bを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“DATA”の順に受信する。   Data D17a and data D17b are MDIO communication data received by the control device 11 from the external device 3. The data D17a includes “PRE”, “ST”, “OP”, “PRTAD”, “DEVAD”, “TA”, “ADDRESS”, and the data D17b includes “PRE”, “ST”, “OP”, Includes “PRTAD”, “DEVAD”, “TA”, “DATA”. The control device 11 receives the data D17a in the order of “PRE”, “ST”, “OP”, “PRTAD”, “DEVAD”, “TA”, “ADDRESS”, and receives the data D17b as “PRE”, “ Reception is performed in the order of “ST”, “OP”, “PRTAD”, “DEVAD”, “TA”, and “DATA”.

データD17aの“OP”にはアドレス指定の命令を表す2bitのデータ“00”が設定され、データD17bの“OP”には書き込み指示の命令を表す2bitのデータ“01”が設定されている。データD17a及びデータD17bの“ADDRESS”にはデバイス17のレジスタアドレスが設定されている。データD17bの“DATA”にはデバイス17(データD17aの“ADDRESS”に設定されているレジスタアドレスに対応するデバイス)に書き込むデータが設定されている。   2-bit data “00” representing an address designation instruction is set in “OP” of data D17a, and 2-bit data “01” representing a write instruction instruction is set in “OP” of data D17b. The register address of the device 17 is set in “ADDRESS” of the data D17a and the data D17b. Data to be written to the device 17 (device corresponding to the register address set to “ADDRESS” of data D17a) is set in “DATA” of data D17b.

データD18a及びデータD18bは、制御装置11がデバイス17に送信するSPI通信データである。データD18aは“SETAD”及び“ADDRESS”を含み、データD18bは“WRITE”及び“DATA”を含む。制御装置11は、データD18aを、“SETAD”、“ADDRESS”の順に送信し、データD18bを、“WRITE”、“DATA”の順に送信する。   Data D18a and data D18b are SPI communication data transmitted from the control device 11 to the device 17. The data D18a includes “SETAD” and “ADDRESS”, and the data D18b includes “WRITE” and “DATA”. The control device 11 transmits the data D18a in the order of “SETAD” and “ADDRESS”, and transmits the data D18b in the order of “WRITE” and “DATA”.

制御装置11は、データD17aを受信した後に、データD17bを受信する。制御装置11は、データD18aを送信した後に、データD18bを送信する。   The control device 11 receives the data D17b after receiving the data D17a. The control device 11 transmits data D18b after transmitting data D18a.

制御装置11は、データD17aの“OP”の受信が終了するタイミングでデータD18aの“SETAD”を送信し、データD17aの“TA”の受信が終了するタイミングでデータD18aの“ADDRESS”を送信する。制御装置11は、データD17bの“OP”の受信が終了するタイミングでデータD18bの“WRITE”を送信し、データD17bの“TA”の受信が終了するタイミングでデータD18bの“DATA”を送信する。制御装置11は、データD17bの“DATA”の受信と、データD18bの“DATA”の送信とを並行して行う。   The control device 11 transmits “SETAD” of the data D18a at a timing when reception of “OP” of the data D17a ends, and transmits “ADDRESS” of the data D18a at a timing when reception of “TA” of the data D17a ends. . The control device 11 transmits “WRITE” of data D18b at the timing when reception of “OP” of data D17b ends, and transmits “DATA” of data D18b at timing when reception of “TA” of data D17b ends. . The control device 11 performs reception of “DATA” of the data D17b and transmission of “DATA” of the data D18b in parallel.

制御装置11は、データD17aの“OP”の内容(アドレス指定の命令)から、データD17aがアドレス指定を行うための通信データであると判断する。制御装置11は、データD17aの“OP”の受信が終了するタイミングで、データD18aの“SETAD”の送信を開始する。制御装置11は、データD17aの“ADDRESS”の内容(デバイス17のレジスタアドレス))とテーブルデータTDとに基づいて、データD17aに続くデータD17bの“OP”に設定されている命令を行うデバイスがデバイス17であると判断する。制御装置11は、データD17aの“TA”の受信が終了するタイミングで、データD18aの“ADDRESS”の送信を開始する。データD17aの“ADDRESS”の内容と、データD18aの“ADDRESS”の内容とは、同一である。   The control device 11 determines that the data D17a is communication data for performing address designation from the content (address designation command) of the “OP” of the data D17a. The control device 11 starts transmission of “SETAD” of data D18a at the timing when reception of “OP” of data D17a ends. Based on the contents of “ADDRESS” (register address of device 17) of data D17a and table data TD, control device 11 performs a command to execute a command set in “OP” of data D17b following data D17a. The device 17 is determined. The control device 11 starts transmission of “ADDRESS” of data D18a at the timing when reception of “TA” of data D17a is completed. The content of “ADDRESS” in the data D17a and the content of “ADDRESS” in the data D18a are the same.

制御装置11は、データD17bの“OP”の内容(書き込み指示の命令)から、データD17bが書き込み指示を行うための通信データであると判断する。制御装置11は、データD17bの“OP”の受信が終了するタイミングで、データD18bの“WRITE”の送信を開始する。制御装置11は、データD17bの“TA”受信が終了するタイミングで、データD18bの“DATA”の送信を開始する。制御装置11は、データD17bの“DATA”の受信とデータD18bの“DATA”の送信とを並行して行う。データD17bの“DATA”の内容と、データD18bの“DATA”の内容とは、同一である。以上により、デバイス17は、制御装置11から送信されるデータD18bに応じて、データD17bの書き込み指示を実行できる。   The control device 11 determines from the contents of “OP” of the data D17b (write instruction command) that the data D17b is communication data for performing a write instruction. The control device 11 starts transmission of “WRITE” of data D18b at the timing when reception of “OP” of data D17b ends. The control device 11 starts transmitting “DATA” of the data D18b at the timing when the “TA” reception of the data D17b is completed. The control device 11 performs reception of “DATA” of the data D17b and transmission of “DATA” of the data D18b in parallel. The content of “DATA” in the data D17b and the content of “DATA” in the data D18b are the same. As described above, the device 17 can execute an instruction to write the data D17b according to the data D18b transmitted from the control device 11.

図6を参照して制御装置11の動作を詳細に説明する。図6には、デバイス17からデータを読み出すために用いられる通信データが示されている。   The operation of the control device 11 will be described in detail with reference to FIG. FIG. 6 shows communication data used for reading data from the device 17.

データD19a及びデータD19bは、制御装置11が外部装置3から受信するMDIO通信データである。データD19aは、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”を含み、データD19bは、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”を含む。制御装置11は、データD19aを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”の順に受信し、データD19bを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”の順に受信する。   Data D19a and data D19b are MDIO communication data received by the control device 11 from the external device 3. The data D19a includes “PRE”, “ST”, “OP”, “PRTAD”, “DEVAD”, “TA”, “ADDRESS”, and the data D19b includes “PRE”, “ST”, “OP”, Includes “PRTAD” and “DEVAD”. The control device 11 receives the data D19a in the order of “PRE”, “ST”, “OP”, “PRTAD”, “DEVAD”, “TA”, “ADDRESS”, and receives the data D19b as “PRE”, “ Reception is performed in the order of “ST”, “OP”, “PRTAD”, and “DEVAD”.

データD19aの“OP”にはアドレス指定の命令を表す2bitのデータ“00”が設定され、データD19bの“OP”には読み出し指示の命令を表す2bitのデータ“11”又は“10”が設定されている。データD19a及び19bの“ADDRESS”にはデバイス17のレジスタアドレスが設定されている。   2-bit data “00” representing an address designation command is set in “OP” of data D19a, and 2-bit data “11” or “10” representing a read instruction command is set in “OP” of data D19b. Has been. The register address of the device 17 is set in “ADDRESS” of the data D19a and 19b.

データD20a及びデータD20bは、制御装置11がデバイス17に送信するSPI通信データである。データD20aは“SETAD”及び“ADDRESS”を含み、データD20bは“READ”を含む。制御装置11は、データD20aを、“SETAD”、“ADDRESS”の順に送信する。   Data D20a and data D20b are SPI communication data transmitted from the control device 11 to the device 17. The data D20a includes “SETAD” and “ADDRESS”, and the data D20b includes “READ”. The control device 11 transmits the data D20a in the order of “SETAD” and “ADDRESS”.

データD24は、制御装置11がデバイス17から受信するデータであってデバイス17によって読み出されたデータである。   The data D24 is data received by the control device 11 from the device 17 and read by the device 17.

制御装置11は、データD19aを受信した後に、データD19bを受信する。制御装置11は、データD20aを送信した後に、データ20bを送信する。制御装置11は、データ20bを送信した後であってデータD19bの受信が終了した後に、データD24を受信する。制御装置11は、データ20bを送信した後であってデータD19bの受信が終了した後に、データD24を外部装置3に送信する。制御装置11は、データD24の受信とデータD24の外部装置3への送信とを並行して行う。   The control device 11 receives the data D19b after receiving the data D19a. The control apparatus 11 transmits the data 20b after transmitting the data D20a. The control device 11 receives the data D24 after transmitting the data 20b and after receiving the data D19b. The control device 11 transmits the data D24 to the external device 3 after transmitting the data 20b and after receiving the data D19b. The control device 11 performs reception of data D24 and transmission of data D24 to the external device 3 in parallel.

制御装置11は、データD19aの“OP”の受信が終了するタイミングでデータD20aの“SETAD”を送信し、データD19aの“TA”の受信が終了するタイミングでデータD20aの“ADDRESS”を送信する。制御装置11は、データD19bの“OP”が終了するタイミングでデータD20bの“READ”を送信する。制御装置11は、データD19aの“OP”の内容(アドレス指定の命令)から、データD19aがアドレス指定を行うための通信データであると判断する。制御装置11は、データD19aの“OP”の受信が終了するタイミングで、データD20aの“SETAD”の送信を開始する。制御装置11は、データD11aの“ADDRESS”の内容(デバイス17のレジスタアドレス))とテーブルデータTDとに基づいて、データD19aに続くデータD19bの“OP”に設定されている命令を行うデバイスがデバイス17であると判断する。制御装置11は、データD19aの“TA”が終了するタイミングで、データD20aの“ADDRESS”の送信を開始する。データD19aの“ADDRESS”の内容と、データD20aの“ADDRESS”の内容とは、同一である。   The control device 11 transmits “SETAD” of the data D20a at a timing when reception of “OP” of the data D19a ends, and transmits “ADDRESS” of the data D20a at timing when reception of “TA” of the data D19a ends. . The control device 11 transmits “READ” of data D20b at the timing when “OP” of data D19b ends. The control device 11 determines that the data D19a is communication data for performing addressing from the contents of the “OP” of the data D19a (addressing command). The control device 11 starts transmission of “SETAD” of data D20a at the timing when reception of “OP” of data D19a is completed. Based on the content of “ADDRESS” (register address of device 17) of data D11a and the table data TD, the control device 11 has a device that executes an instruction set in “OP” of data D19b following data D19a. The device 17 is determined. The control device 11 starts transmission of “ADDRESS” of data D20a at the timing when “TA” of data D19a ends. The content of “ADDRESS” in the data D19a is the same as the content of “ADDRESS” in the data D20a.

制御装置11は、データD19bの“OP”の内容(読み出し指示の命令)から、データD19bが読み出し指示を行うための通信データであると判断する。制御装置11は、データD19bの“OP”の受信が終了するタイミングで、データD18bの“READ”の送信を開始する。制御装置11は、データD19aの“TA”に設定されているタイミングギャップ後に、デバイス17から受信した“DATA”を外部装置3に送信する。以上により、デバイス17は、制御装置11から送信されるデータD20bに応じて、データD19bの読み出し指示を実行できる。   The control device 11 determines that the data D19b is communication data for performing a read instruction from the contents of “OP” of the data D19b (read instruction). The control device 11 starts transmission of “READ” of data D18b at the timing when reception of “OP” of data D19b is completed. The control device 11 transmits “DATA” received from the device 17 to the external device 3 after the timing gap set in “TA” of the data D19a. As described above, the device 17 can execute an instruction to read the data D19b in accordance with the data D20b transmitted from the control device 11.

以上説明したように、通信装置1の制御装置11は、MDIO通信プロトコル及びSPI通信プロトコルに基づいて通信が行えるので、通信装置1が有する複数のデバイス(デバイス13、デバイス15及びデバイス17)のそれぞれが、MDIO通信プロトコル及びSPI通信プロトコルの何れのプロトコルに基づいて通信を行う場合であっても、通信データに含まれるアドレスデータ(“ADDRESS”)を参照すれば、外部装置からの通信データに応じて各デバイスにデータを送信できる。   As described above, since the control device 11 of the communication device 1 can perform communication based on the MDIO communication protocol and the SPI communication protocol, each of the plurality of devices (device 13, device 15 and device 17) included in the communication device 1 is provided. However, even if the communication is performed based on any of the MDIO communication protocol and the SPI communication protocol, if the address data (“ADDRESS”) included in the communication data is referred to, the communication data from the external device can be used. Can send data to each device.

また、MDIO通信プロトコルに基づく通信データに含まれるアドレスデータを参照して通信装置1の各デバイスにデータが送信されるので、通信装置1のメモリ(記憶装置11aのROM等)の大きさを調整しなくても通信装置1の有するデバイスの数を増減させることが可能となる。   Further, since the data is transmitted to each device of the communication device 1 with reference to the address data included in the communication data based on the MDIO communication protocol, the size of the memory (ROM of the storage device 11a) of the communication device 1 is adjusted. Even without this, the number of devices included in the communication apparatus 1 can be increased or decreased.

また、内部ポートアドレスを用いるので、デバイス毎に新たなアドレスを設けることなく、デバイスの選択が行える。また、記憶装置11aに格納されているテーブルデータTDを用いて送信先のデバイスを特定できるので、通信装置1に搭載されるデバイスの数に増減があってもテーブルデータTDの変更で対応可能となり、また、記憶装置11aの大きさの調整も不要となる。また、書き込み指示の対象となっていないデバイス(デバイス13)に対しては、通信装置1において未使用のダミーポートアドレスが用いられるので書き込み指示がデバイス13で実行されるのを確実に回避できる。   In addition, since the internal port address is used, the device can be selected without providing a new address for each device. Further, since the destination device can be specified using the table data TD stored in the storage device 11a, even if the number of devices mounted on the communication device 1 increases or decreases, it can be handled by changing the table data TD. Further, it is not necessary to adjust the size of the storage device 11a. Further, since an unused dummy port address is used in the communication apparatus 1 for a device (device 13) that is not the target of the write instruction, it is possible to reliably avoid the write instruction being executed by the device 13.

また、制御装置11は、SPI通信プロトコルに基づく通信を行うデバイス17に対しても、外部装置3からの通信データに応じて、データの送信が可能となる。   In addition, the control device 11 can transmit data to the device 17 that performs communication based on the SPI communication protocol according to the communication data from the external device 3.

また、制御装置11によって作成されるSPI通信プロトコルに基づくデータは、MDIO通信プロトコルのオペレーションコードに対応するコマンドデータを含むので、制御装置11は、MDIO通信プロトコルに基づく外部装置3からの通信データに含まれる命令をSPI通信プロトコルに基づくデータに変換可能となる。   Further, since the data based on the SPI communication protocol created by the control device 11 includes command data corresponding to the operation code of the MDIO communication protocol, the control device 11 converts the communication data from the external device 3 based on the MDIO communication protocol. The included instruction can be converted into data based on the SPI communication protocol.

また、制御装置11によって作成されるSPI通信プロトコルに基づくデータは、12bit以下のデータなので、作成及び送受信に要する時間を短くできる。   Further, since the data based on the SPI communication protocol created by the control device 11 is data of 12 bits or less, the time required for creation and transmission / reception can be shortened.

以上、好適な実施の形態において本発明の原理を図示し説明してきたが、本発明は、そのような原理から逸脱することなく配置および詳細において変更され得ることは、当業者によって認識される。本発明は、本実施の形態に開示された特定の構成に限定されるものではない。したがって、特許請求の範囲およびその精神の範囲から来る全ての修正および変更に権利を請求する。   While the principles of the invention have been illustrated and described in the preferred embodiments, it will be appreciated by those skilled in the art that the invention can be modified in arrangement and detail without departing from such principles. The present invention is not limited to the specific configuration disclosed in the present embodiment. We therefore claim all modifications and changes that come within the scope and spirit of the following claims.

1…通信装置、11…制御装置、11a…記憶装置、13,15,17…デバイス、3…外部装置   DESCRIPTION OF SYMBOLS 1 ... Communication apparatus, 11 ... Control apparatus, 11a ... Memory | storage device, 13, 15, 17 ... Device, 3 ... External device

Claims (6)

外部機器とMDIO通信プロトコル(Medium Dependent Input/Output)に基づいて通信を行う通信装置であって、
MDIO通信プロトコル及びSPI通信プロトコル(System Packet Interface)に基づく通信が可能であり、MDIO通信プロトコルに基づく前記外部機器と当該通信装置との通信を制御する制御装置と、
前記制御装置に接続されており、MDIO通信プロトコル、SPI通信プロトコル、のうち何れか一に対応する第1の通信プロトコルに基づいて前記制御装置と通信を行う第1のデバイスと、
前記制御装置に接続されており、MDIO通信プロトコル、SPI通信プロトコル、のうち何れか一に対応する第2の通信プロトコルに基づいて前記制御装置と通信を行う第2のデバイスと、
を備え、
前記制御装置は、前記外部機器に接続されている場合に前記外部機器からMDIO通信プロトコルに基づく通信データを受けることと並行して、前記通信データに含まれており前記通信データの送信先を示すアドレスデータを参照し、前記アドレスデータが前記第1のデバイスを示している場合には前記第1の通信プロトコルを用いて前記通信データに対応するデータを前記第1のデバイスに送信し、前記アドレスデータが前記第2のデバイスを示している場合には前記第2の通信プロトコルを用いて前記通信データに対応するデータを前記第2のデバイスに送信し、
前記アドレスデータは、前記第1のデバイス及び前記第2のデバイスのうち何れか一に対応するレジスタアドレスを含む、通信装置。
A communication device that communicates with an external device based on the MDIO communication protocol (Medium Dependent Input / Output) ,
A control device capable of communication based on an MDIO communication protocol and an SPI communication protocol (System Packet Interface), and controlling communication between the external device and the communication device based on the MDIO communication protocol ;
A first device connected to the control device and communicating with the control device based on a first communication protocol corresponding to any one of an MDIO communication protocol and an SPI communication protocol;
A second device connected to the control device and communicating with the control device based on a second communication protocol corresponding to any one of the MDIO communication protocol and the SPI communication protocol;
With
The control device is included in the communication data and indicates a transmission destination of the communication data in parallel with receiving communication data based on the MDIO communication protocol from the external device when connected to the external device. Reference is made to address data, and when the address data indicates the first device, data corresponding to the communication data is transmitted to the first device using the first communication protocol, and the address If the data indicates the second device, the second communication protocol is used to transmit data corresponding to the communication data to the second device;
The communication apparatus, wherein the address data includes a register address corresponding to any one of the first device and the second device.
前記制御装置は、前記第1の通信プロトコルがMDIO通信プロトコルであって前記アドレスデータが前記第1のデバイスを示している場合、前記通信データに含まれる内容を有しており当該通信装置において割り当てられている前記第1のデバイスに対応するポートアドレスを有するデータを、前記第1のデバイスに送信する、請求項1に記載の通信装置。 When the first communication protocol is the MDIO communication protocol and the address data indicates the first device, the control device has a content included in the communication data and is assigned in the communication device. is data having a port address corresponding to the first device and to transmit to the first device, the communication device according to claim 1. 前記制御装置は、
前記第1のデバイスに対応するレジスタアドレスと、当該通信装置において割り当てられており前記第1のデバイスに対応するデバイスアドレス及びポートアドレスとを関連付け、且つ、前記第2のデバイスに対応するレジスタアドレスと、当該通信装置において割り当てられており前記第2のデバイスに対応するデバイスアドレス及びポートアドレスとを関連付けるテーブルデータを格納する記憶装置を有しており、
前記アドレスデータと前記テーブルデータとを参照して前記第1のデバイスに対応するポートアドレスを特定する、請求項2に記載の通信装置。
The controller is
A register address corresponding to the first device is associated with a device address and a port address assigned in the communication apparatus and corresponding to the first device, and a register address corresponding to the second device A storage device that stores table data that is assigned in the communication device and associates a device address and a port address corresponding to the second device;
The communication apparatus according to claim 2, wherein a port address corresponding to the first device is specified with reference to the address data and the table data.
前記制御装置は、前記第2の通信プロトコルがMDIO通信プロトコルであって前記通信データに含まれているMDIO通信プロトコルのオペレーションコード(operation code)が書き込み指示を示している場合に、前記通信データに含まれる内容を有しており当該通信装置において未使用のポートアドレスを有するデータを、前記第2のデバイスに送信する、請求項2又は請求項3に記載の通信装置。 When the second communication protocol is the MDIO communication protocol and the operation code of the MDIO communication protocol included in the communication data indicates a write instruction, the control device adds the communication data to the communication data. The communication apparatus according to claim 2 or 3, wherein data having an included content and having an unused port address in the communication apparatus is transmitted to the second device. 前記制御装置は、前記第1の通信プロトコルがSPI通信プロトコルであって前記アドレスデータが前記第1のデバイスに対応している場合に、前記通信データをSPI通信プロトコルに基づくデータに変換し、この変換後のデータを前記第1のデバイスに送信する、請求項1に記載の通信装置。 The control device converts the communication data into data based on an SPI communication protocol when the first communication protocol is an SPI communication protocol and the address data corresponds to the first device. The communication apparatus according to claim 1, wherein the converted data is transmitted to the first device. 前記制御装置によって前記通信データから変換された前記SPI通信プロトコルに基づくデータは、MDIO通信プロトコルのオペレーションコードに対応するコマンドデータを含み、
前記コマンドデータは、12ビット以下の長さのデータであって、少なくとも、アドレス設定、書き込み指示、読み出し指示、の何れかを示す、請求項5に記載の通信装置。
Data based on the SPI communication protocol converted from the communication data by the control device includes command data corresponding to an operation code of the MDIO communication protocol,
The communication device according to claim 5, wherein the command data is data having a length of 12 bits or less, and indicates at least one of address setting, a write instruction, and a read instruction.
JP2010189815A 2010-08-26 2010-08-26 Communication device Active JP5601090B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010189815A JP5601090B2 (en) 2010-08-26 2010-08-26 Communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010189815A JP5601090B2 (en) 2010-08-26 2010-08-26 Communication device

Publications (2)

Publication Number Publication Date
JP2012049812A JP2012049812A (en) 2012-03-08
JP5601090B2 true JP5601090B2 (en) 2014-10-08

Family

ID=45904183

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010189815A Active JP5601090B2 (en) 2010-08-26 2010-08-26 Communication device

Country Status (1)

Country Link
JP (1) JP5601090B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20220030837A (en) * 2020-09-03 2022-03-11 금오공과대학교 산학협력단 Management Data Input/Output interface device for OPEN board compatible AND Protocol conversion method using the same
KR20220112086A (en) * 2021-02-03 2022-08-10 금오공과대학교 산학협력단 Intelligent battery management system that can process data at the edge with standalone IoT devices

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6197447B2 (en) 2013-07-29 2017-09-20 住友電気工業株式会社 Optical transceiver

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0235843A (en) * 1988-07-26 1990-02-06 Nec Corp Protocol converting machine
JP2000029823A (en) * 1998-07-08 2000-01-28 Fujitsu Ltd Bus access control circuit
JP2003308288A (en) * 2002-04-18 2003-10-31 Mitsubishi Electric Corp Microcomputer system
US8498309B2 (en) * 2005-05-18 2013-07-30 Intel Corporation Data transport module

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20220030837A (en) * 2020-09-03 2022-03-11 금오공과대학교 산학협력단 Management Data Input/Output interface device for OPEN board compatible AND Protocol conversion method using the same
KR102388267B1 (en) * 2020-09-03 2022-04-18 금오공과대학교 산학협력단 Management Data Input/Output interface device for OPEN board compatible AND Protocol conversion method using the same
KR20220112086A (en) * 2021-02-03 2022-08-10 금오공과대학교 산학협력단 Intelligent battery management system that can process data at the edge with standalone IoT devices
KR102488998B1 (en) * 2021-02-03 2023-01-13 금오공과대학교 산학협력단 Intelligent battery management system that can process data at the edge with standalone IoT devices

Also Published As

Publication number Publication date
JP2012049812A (en) 2012-03-08

Similar Documents

Publication Publication Date Title
US7130933B2 (en) Method, system, and program for handling input/output commands
US7765348B2 (en) Configurable two-wire interface module
US11048569B1 (en) Adaptive timeout mechanism
US20140068134A1 (en) Data transmission apparatus, system, and method
US8225024B2 (en) Use of a first two-wire interface communication to support the construction of a second two-wire interface communication
WO2016202114A1 (en) Data transmission method and device and storage medium
EP2842293B1 (en) Usb 3.0 link layer timer adjustment to extend distance
US20110022758A1 (en) Method and system for processing frames in storage controllers
JP2019047146A (en) Electronic equipment and power management method
US20200409706A1 (en) Apparatuses and methods involving selective disablement of side effects caused by accessing register sets
EP3200089A1 (en) Method, apparatus, communication equipment and storage media for determining link delay
US20170300434A1 (en) Emi mitigation on high-speed lanes using false stall
JP5601090B2 (en) Communication device
US6801963B2 (en) Method, system, and program for configuring components on a bus for input/output operations
US20140059250A1 (en) Network system
US10853255B2 (en) Apparatus and method of optimizing memory transactions to persistent memory using an architectural data mover
JP2008502977A (en) Interrupt method for bus controller
JP5497743B2 (en) Method for controlling access to memory area from a plurality of processes, and communication module including message memory for realizing the method
US20100205334A1 (en) Device wire adapter and communication control method to perform data transfer between wireless USB host and wired USB device
US20150212960A1 (en) Ss hub, usb 3.0 hub, and information processing instrument
JP2009093225A (en) Storage control device, method, program, and storage device
WO2021181874A1 (en) Communication control device and method for controlling communication control device
JP2013235464A (en) Computer and input/output control method of computer
KR100612454B1 (en) Apparatus and method for adapting for i2c bus
JP5227601B2 (en) Control system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130822

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140417

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140430

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140627

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: 20140722

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140804

R150 Certificate of patent or registration of utility model

Ref document number: 5601090

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250