JP2009105731A - Data communication system and communication control device - Google Patents
Data communication system and communication control device Download PDFInfo
- Publication number
- JP2009105731A JP2009105731A JP2007276431A JP2007276431A JP2009105731A JP 2009105731 A JP2009105731 A JP 2009105731A JP 2007276431 A JP2007276431 A JP 2007276431A JP 2007276431 A JP2007276431 A JP 2007276431A JP 2009105731 A JP2009105731 A JP 2009105731A
- Authority
- JP
- Japan
- Prior art keywords
- slave
- address
- communication control
- communication
- 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.)
- Granted
Links
Images
Abstract
Description
本発明は、データ通信システム及び通信制御装置に関する。 The present invention relates to a data communication system and a communication control apparatus.
近年、マスタースレーブ方式によるI2Cバス通信プロトコルに準拠したインターフェースを有するデバイスが急速に普及している。I2Cバスは1本のクロック信号線と1本のデータ信号線からなる2本のシリアルバスで構成され、これらの信号線に1つのマスターデバイスと複数のスレーブデバイスを共通接続することにより低コストで高速のデータ通信システムを構築することができる。I2Cバス通信プロトコルにおいては、マスターデバイスがデータ通信の主導権を握り、I2Cバスに接続された1つのスレーブデバイスとデータ通信を行う。マスターデバイスは同時に複数のスレーブデバイスとデータ通信することはできないため、マスターデバイスが送信するコマンドにはスレーブアドレスとよばれる各スレーブデバイスを識別するためのアドレス値(ID)が含まれる。そして、マスターデバイスが送信するコマンドに含まれるスレーブアドレスが自己のIDと一致するスレーブデバイスがマスターデバイスにアクノリッジ信号を返信することにより、以降はマスターデバイスと当該スレーブデバイスの間でデータ通信が行われる。ここで、同じアドレス値を有する複数のスレーブデバイスをI2Cバスに接続することができない。スレーブデバイスのタイプによってはアドレス値がほぼ固定されている場合もあり、そのようなタイプのスレーブデバイスをI2Cバスに複数個接続することができないという問題がある。 In recent years, devices having an interface conforming to the I 2 C bus communication protocol based on the master-slave method have been rapidly spread. The I 2 C bus is composed of two serial buses consisting of one clock signal line and one data signal line, and one master device and a plurality of slave devices are connected to these signal lines in a low cost. Thus, a high-speed data communication system can be constructed. In the I 2 C bus communication protocol, the master device takes the initiative in data communication, and performs data communication with one slave device connected to the I 2 C bus. Since the master device cannot perform data communication with a plurality of slave devices at the same time, the command transmitted by the master device includes an address value (ID) for identifying each slave device called a slave address. Then, when the slave device whose slave address included in the command transmitted by the master device matches its own ID returns an acknowledge signal to the master device, data communication is performed between the master device and the slave device thereafter. Here, a plurality of slave devices having the same address value cannot be connected to the I 2 C bus. Depending on the type of slave device, the address value may be substantially fixed, and there is a problem that a plurality of such types of slave devices cannot be connected to the I 2 C bus.
1つの解決策として、ボード上に配置したバススイッチを手動で切り替えることにより同一アドレスを有する複数のスレーブデバイスから1つのスレーブデバイスを選択してI2Cバスに接続した後、マスター装置と選択したスレーブ装置との間でデータ通信を行うことができる。しかし、この方法では、スイッチの切り替えを手動で行うため全体としてデータ通信の速度が低下し、バススイッチの切り替えミスによる誤動作も考えられる。また、バススイッチが必要になるためコストが増大する。 As one solution, by manually switching a bus switch arranged on the board, one slave device is selected from a plurality of slave devices having the same address and connected to the I 2 C bus, and then selected as a master device. Data communication can be performed with a slave device. However, in this method, since the switch is manually switched, the data communication speed as a whole is lowered, and a malfunction due to a mistake in switching the bus switch can be considered. In addition, the cost increases because a bus switch is required.
他の解決策として、マスターデバイスとスレーブデバイスの間にブリッジデバイスを接続し、通信プロトコルを拡張することにより接続可能なスレーブデバイスの数を増加する手法が提案されている。
しかし、特許文献1に記載されたブリッジデバイスは、スレーブデバイスを制御するためにマスターとして機能するため、マスターの機能を実現するための複雑な回路が必要でありコストの増加をもたらすという問題がある。
However, since the bridge device described in
本発明は、以上のような問題点に鑑みてなされたものであり、マスタースレーブ方式による通信プロトコルに基づいてデータ通信を行い、簡単な構成でありながら同一のアドレス値を有するスレーブデバイスを複数個接続することができるデータ通信システム等を提供することを目的とする。 The present invention has been made in view of the above problems, and performs data communication based on a communication protocol based on a master-slave system, and a plurality of slave devices having the same address value with a simple configuration. An object of the present invention is to provide a data communication system that can be connected.
(1)本発明は、
マスタースレーブ方式による所与の通信プロトコルに基づいてデータ通信を行うためのデータ通信システムであって、
前記通信プロトコルにおけるマスターとして機能するマスター装置と、
前記マスター装置及び前記通信プロトコルにおけるスレーブとして機能する複数のスレーブ装置に接続され、前記マスター装置と前記複数のスレーブ装置の間のデータ通信を制御する通信制御装置と、を含み、
前記通信制御装置は、
データ通信の対象となるスレーブ装置を選択するための選択情報が設定されるスレーブ選択レジスタと、前記スレーブ選択レジスタの設定値に基づいてスレーブ装置を選択し、前記マスター装置と前記選択したスレーブ装置の間のデータ通信を制御する通信制御処理部と、を含み、
前記マスター装置は、
前記複数のスレーブ装置とデータ通信を行う前に前記スレーブ選択レジスタに前記選択情報を設定するコマンドを前記通信制御装置に送信し、前記複数のスレーブ装置とデータ通信を行う際にはスレーブアドレスに所定の通信用のアドレス値が指定されたコマンドを前記通信制御装置に送信するマスター処理部を含み、
前記通信制御装置の前記通信制御処理部は、
前記マスター装置から受信したコマンドに含まれるスレーブアドレスと前記通信用のアドレス値を比較し、比較結果に基づいて、当該コマンドをスレーブアドレスに前記選択したスレーブ装置のアドレス値が指定されたコマンドに変換して前記選択したスレーブ装置に送信するか否かを制御することを特徴とする。
(1) The present invention
A data communication system for performing data communication based on a given communication protocol by a master-slave method,
A master device that functions as a master in the communication protocol;
A communication control device that is connected to the master device and a plurality of slave devices that function as slaves in the communication protocol, and controls data communication between the master device and the plurality of slave devices;
The communication control device includes:
A slave selection register in which selection information for selecting a slave device for data communication is set, and a slave device is selected based on a set value of the slave selection register, and the master device and the selected slave device A communication control processing unit for controlling data communication between,
The master device is
Before performing data communication with the plurality of slave devices, a command for setting the selection information in the slave selection register is transmitted to the communication control device, and when performing data communication with the plurality of slave devices, a predetermined slave address is set. Including a master processing unit that transmits a command in which an address value for communication is designated to the communication control device,
The communication control processing unit of the communication control device,
The slave address included in the command received from the master device is compared with the address value for communication, and based on the comparison result, the command is converted into a command in which the address value of the selected slave device is specified as the slave address. And controlling whether to transmit to the selected slave device.
通信用のアドレス値は、通信制御装置のアドレス値及びマスター装置に直接接続される他のスレーブ装置のアドレス値のいずれとも異なるアドレス値(ID)であればよい。 The communication address value may be an address value (ID) that is different from both the address value of the communication control device and the address values of other slave devices directly connected to the master device.
前記通信制御装置の前記通信制御処理部は、前記マスター装置から受信したコマンドに含まれるスレーブアドレスと前記通信用のアドレス値を比較し、当該スレーブアドレスと前記通信用のアドレス値が一致した場合には、当該コマンドをスレーブアドレスに前記選択したスレーブ装置のアドレス値が指定されたコマンドに変換して前記選択したスレーブ装置に送信するようにしてもよい。 The communication control processing unit of the communication control device compares the slave address included in the command received from the master device with the address value for communication, and when the slave address and the address value for communication match. The command may be converted into a command in which the address value of the selected slave device is designated as a slave address and transmitted to the selected slave device.
本発明によれば、マスター装置はスレーブ装置とデータ通信を行う前にスレーブ選択レジスタに選択情報を設定するコマンドを通信制御装置に送信し、通信制御装置はスレーブ選択レジスタの設定値に基づいてデータ通信の対象となるスレーブ装置を選択する。従って、通信制御装置に接続される複数のスレーブ装置が同一のアドレス値を有していても、マスター装置はスレーブ選択レジスタの設定値を変更することにより複数のスレーブ装置のいずれか1つの装置を選択してデータ通信を行うことができる。 According to the present invention, the master device transmits a command for setting selection information in the slave selection register to the communication control device before performing data communication with the slave device, and the communication control device performs data transmission based on the set value of the slave selection register. Select a slave device to communicate with. Therefore, even if a plurality of slave devices connected to the communication control device have the same address value, the master device changes one of the plurality of slave devices by changing the setting value of the slave selection register. Data communication can be performed by selecting.
また、本発明によれば、マスター装置はスレーブ装置とデータ通信を行う際にはスレーブアドレスに通信用のアドレス値が指定されたコマンドを通信制御装置に送信し、通信制御装置はマスター装置から受信したコマンドに含まれるスレーブアドレスと通信用のアドレス値の比較結果に基づいて、当該コマンドに変換処理を施してスレーブ装置に送信するか否かを制御する。すなわち、通信制御装置に接続されるスレーブ装置のアドレス値とマスター装置に直接接続される他のスレーブ装置のアドレス値が同じであったとしても、マスター装置は、通信制御装置に接続されるスレーブ装置とデータ通信を行うことができる。 According to the present invention, when the master device performs data communication with the slave device, the master device transmits a command in which the address value for communication is specified as the slave address to the communication control device, and the communication control device receives from the master device. Based on the comparison result of the slave address included in the command and the address value for communication, it is controlled whether or not the command is converted and transmitted to the slave device. That is, even if the address value of the slave device connected to the communication control device is the same as the address value of another slave device directly connected to the master device, the master device is the slave device connected to the communication control device. And data communication.
(2)本発明のデータ通信システムは、
前記通信制御装置は、
前記通信用のアドレス値が設定される通信用アドレス設定レジスタを含み、
前記マスター装置の前記マスター処理部は、
前記複数のスレーブ装置とデータ通信を行う前に、前記通信用アドレス設定レジスタに前記通信用のアドレス値を設定するコマンドを前記通信制御装置に送信し、
前記通信制御装置の前記通信制御処理部は、
前記通信用アドレス設定レジスタの設定値を前記通信用のアドレス値として前記比較処理を行うことを特徴とする。
(2) The data communication system of the present invention
The communication control device includes:
Including a communication address setting register in which the communication address value is set;
The master processing unit of the master device is
Before performing data communication with the plurality of slave devices, a command for setting the communication address value in the communication address setting register is transmitted to the communication control device,
The communication control processing unit of the communication control device,
The comparison process is performed using the setting value of the communication address setting register as the communication address value.
前記通信制御装置の前記通信制御処理部は、前記マスター装置から受信したコマンドに含まれるスレーブアドレスと前記通信用アドレス設定レジスタの設定値を比較し、当該スレーブアドレスと前記通信用アドレス設定レジスタの設定値が一致した場合には、当該コマンドをスレーブアドレスに前記選択したスレーブ装置のアドレス値が指定されたコマンドに変換して前記選択したスレーブ装置に送信するようにしてもよい。 The communication control processing unit of the communication control device compares a slave address included in a command received from the master device with a setting value of the communication address setting register, and sets the slave address and the communication address setting register. When the values match, the command may be converted into a command in which the address value of the selected slave device is designated as a slave address and transmitted to the selected slave device.
本発明によれば、マスター装置はスレーブ装置とデータ通信を行う前に通信用アドレス設定レジスタに通信用のアドレス値を設定するコマンドを通信制御装置に送信する。従って、通信用のアドレス値を可変に設定できるので、データ通信システムの構成を変更しても柔軟に対応することができる。 According to the present invention, the master device transmits a command for setting a communication address value in the communication address setting register to the communication control device before performing data communication with the slave device. Therefore, since the address value for communication can be set variably, it is possible to flexibly cope with changes in the configuration of the data communication system.
(3)本発明のデータ通信システムは、
前記通信制御装置は、
データ通信の対象となるスレーブ装置のアドレス値が設定されるスレーブアドレス設定レジスタを含み、
前記マスター装置の前記マスター処理部は、
前記複数のスレーブ装置とデータ通信を行う前に、前記スレーブアドレス設定レジスタにデータ通信の対象となるスレーブ装置のアドレス値を設定するコマンドを前記通信制御装置に送信し、
前記通信制御装置の前記通信制御処理部は、
前記スレーブアドレス設定レジスタの設定値を前記選択したスレーブ装置のアドレス値として前記変換処理を行うことを特徴とする。
(3) The data communication system of the present invention
The communication control device includes:
Including a slave address setting register in which the address value of the slave device subject to data communication is set,
The master processing unit of the master device is
Before performing data communication with the plurality of slave devices, a command for setting an address value of a slave device to be subjected to data communication in the slave address setting register is transmitted to the communication control device,
The communication control processing unit of the communication control device,
The conversion process is performed using the set value of the slave address setting register as the address value of the selected slave device.
本発明によれば、マスター装置はスレーブ装置とデータ通信を行う前にスレーブアドレス設定レジスタにデータ通信の対象となるスレーブ装置のアドレス値を設定するコマンドを通信制御装置に送信する。従って、通信制御装置に接続される2つ以上のスレーブ装置が異なるアドレス値を有していても、マスター装置はスレーブアドレス設定レジスタの設定値を変更することにより、すべてのスレーブ装置とデータ通信を行うことができる。 According to the present invention, the master device transmits to the communication control device a command for setting the address value of the slave device to be subjected to data communication in the slave address setting register before performing data communication with the slave device. Therefore, even if two or more slave devices connected to the communication control device have different address values, the master device can communicate data with all slave devices by changing the setting value of the slave address setting register. It can be carried out.
(4)本発明のデータ通信システムは、
前記通信制御装置は、
前記スレーブ選択レジスタの各設定値と当該各設定値に応じて選択されるスレーブ装置のアドレス値との対応関係を規定する対応テーブルを含み、
前記通信制御装置の前記通信制御処理部は、
前記対応テーブルに基づいて、前記スレーブ選択レジスタの設定値に対応づけられたアドレス値を前記選択したスレーブ装置のアドレス値として前記変換処理を行うことを特徴とする。
(4) The data communication system of the present invention
The communication control device includes:
Including a correspondence table that defines the correspondence between each setting value of the slave selection register and the address value of the slave device selected according to each setting value;
The communication control processing unit of the communication control device,
Based on the correspondence table, the conversion processing is performed using the address value associated with the set value of the slave selection register as the address value of the selected slave device.
例えば、通信制御装置がスレーブ選択レジスタに設定可能な設定値の数に等しい数のスレーブアドレス設定レジスタを有し、スレーブ選択レジスタの各設定値と各スレーブアドレス設定レジスタを対応づけ、スレーブ選択レジスタの各設定値に従って選択されるスレーブ装置のアドレス値を対応するスレーブアドレス設定レジスタに設定することにより対応テーブルを実現してもよい。 For example, the communication control device has a number of slave address setting registers equal to the number of setting values that can be set in the slave selection register, associates each setting value of the slave selection register with each slave address setting register, The correspondence table may be realized by setting the address value of the slave device selected according to each setting value in the corresponding slave address setting register.
本発明によれば、通信制御装置はスレーブ装置に送信するコマンドのスレーブアドレスを対応テーブルに基づいて選択したアドレス値に自動的に変換する。従って、通信制御装置に接続される2つ以上のスレーブ装置が異なるアドレス値を有していても、マスター装置はスレーブ選択レジスタの設定値を変更するだけですべてのスレーブ装置とデータ通信を行うことができる。 According to the present invention, the communication control device automatically converts the slave address of the command transmitted to the slave device into the address value selected based on the correspondence table. Therefore, even if two or more slave devices connected to the communication control device have different address values, the master device performs data communication with all the slave devices only by changing the setting value of the slave selection register. Can do.
(5)本発明のデータ通信システムは、
前記マスター装置の前記マスター処理部は、
前記複数のスレーブ装置とデータ通信を行う際には、前記通信用のアドレス値が指定された第1のスレーブアドレスと所定のアドレス値が指定された第2のスレーブアドレスとを含むデータ通信用のコマンドを送信し、
前記通信制御装置の前記通信制御処理部は、
前記第1のスレーブアドレスを前記通信用のアドレス値と比較することにより前記比較処理を行い、前記第1のスレーブアドレスを削除し、前記第2のスレーブアドレスに指定された前記所定のアドレス値を前記選択したスレーブ装置のアドレス値に置き換えることにより前記変換処理を行うことを特徴とする。
(5) The data communication system of the present invention
The master processing unit of the master device is
When performing data communication with the plurality of slave devices, the data communication device includes a first slave address in which the communication address value is specified and a second slave address in which a predetermined address value is specified. Send a command,
The communication control processing unit of the communication control device,
The comparison process is performed by comparing the first slave address with the address value for communication, the first slave address is deleted, and the predetermined address value designated as the second slave address is changed. The conversion process is performed by replacing with the address value of the selected slave device.
第2のスレーブアドレスに指定される所定のアドレス値は、通信制御装置のアドレス値及びマスター装置に直接接続される他のスレーブ装置のアドレス値のいずれとも異なるアドレス値であればよく、例えば通信用のアドレス値と同じアドレス値であってもよい。 The predetermined address value designated as the second slave address may be an address value different from both the address value of the communication control device and the address value of the other slave device directly connected to the master device. May be the same address value.
本発明によれば、マスター装置が送信するデータ通信用のコマンドには、通信用のアドレス値が指定された第1のスレーブアドレスと所定のアドレス値が指定された第2のスレーブアドレスが含まれる。そのため、通信制御装置は、第1のスレーブアドレスにより当該コマンドを変換してスレーブ装置に送信するか否かを判断した後、第2のスレーブアドレスを当該スレーブ装置のアドレス値に置き換えて当該コマンドを送信することができる。従って、通信制御装置は、データ通信用のコマンドをスレーブ装置にリアルタイムに送信することができる。 According to the present invention, the command for data communication transmitted by the master device includes the first slave address in which the address value for communication is specified and the second slave address in which the predetermined address value is specified. . Therefore, the communication control device determines whether to convert the command by the first slave address and transmit it to the slave device, and then replaces the second slave address with the address value of the slave device and replaces the command. Can be sent. Therefore, the communication control device can transmit a command for data communication to the slave device in real time.
(6)本発明は、
マスタースレーブ方式による所与の通信プロトコルに基づいてデータ通信を行うためのデータ通信システムであって、
前記通信プロトコルにおけるマスターとして機能するマスター装置と、
前記マスター装置と前記通信プロトコルにおけるスレーブとして機能する複数のスレーブ装置の間のデータ通信を制御するN個(Nは2以上の整数)の通信制御装置と、を含み、
第1の通信制御装置は、
前記マスター装置及び第2の通信制御装置に接続され、前記マスター装置と前記第2の通信制御装置の間のデータ通信を制御する通信制御処理部を含み、
第k(kは2以上N−1以下の整数)の通信制御装置は、
第k−1の通信制御装置及び第k+1の通信制御装置に接続され、前記第k−1の通信制御装置と前記第k+1の通信制御装置の間のデータ通信を制御する通信制御処理部を含み、
第Nの通信制御装置は、
第N−1の通信制御装置及び前記複数のスレーブ装置に接続され、データ通信の対象となるスレーブ装置を選択するための選択情報が設定されるスレーブ選択レジスタと、前記スレーブ選択レジスタの設定値に基づいてスレーブ装置を選択し、前記第N−1の通信制御装置と前記選択したスレーブ装置の間のデータ通信を制御する通信制御処理部と、を含み、
前記マスター装置は、
前記複数のスレーブ装置とデータ通信を行う前に前記スレーブ選択レジスタに前記選択情報を設定するコマンドを前記第1の通信制御装置に送信し、前記複数のスレーブ装置とデータ通信を行う際にはスレーブアドレスに第1の通信用のアドレス値が指定されたコマンドを前記第1の通信制御装置に送信するマスター処理部を含み、
前記第1の通信制御装置の前記通信制御処理部は、
前記マスター装置から受信したコマンドに含まれるスレーブアドレスと前記第1の通信用のアドレス値を比較し、比較結果に基づいて、当該コマンドをスレーブアドレスに第2の通信用のアドレス値が指定されたコマンドに変換して前記第2の通信制御装置に送信するか否かを制御し、
前記第kの通信制御装置の前記通信制御処理部は、
前記第k−1の通信制御装置から受信したコマンドに含まれるスレーブアドレスと第kの通信用のアドレス値を比較し、比較結果に基づいて、当該コマンドをスレーブアドレスに第k+1の通信用のアドレス値が指定されたコマンドに変換して前記第k+1の通信制御装置に送信するか否かを制御し、
前記第Nの通信制御装置の通信制御処理部は、
前記第N−1の通信制御装置から受信したコマンドに含まれるスレーブアドレスと第Nの通信用のアドレス値を比較し、比較結果に基づいて、当該コマンドをスレーブアドレスに前記選択したスレーブ装置のアドレス値が指定されたコマンドに変換して前記選択したスレーブ装置に送信するか否かを制御することを特徴とする。
(6) The present invention
A data communication system for performing data communication based on a given communication protocol by a master-slave method,
A master device that functions as a master in the communication protocol;
N (N is an integer of 2 or more) communication control devices that control data communication between the master device and a plurality of slave devices functioning as slaves in the communication protocol,
The first communication control device
A communication control processing unit that is connected to the master device and the second communication control device and controls data communication between the master device and the second communication control device;
The k-th communication control device (k is an integer of 2 to N-1)
A communication control processing unit that is connected to the (k-1) th communication control device and the (k + 1) th communication control device and controls data communication between the (k-1) th communication control device and the (k + 1) th communication control device; ,
The Nth communication control device
A slave selection register that is connected to the N-1th communication control device and the plurality of slave devices, and in which selection information for selecting a slave device to be subjected to data communication is set, and a set value of the slave selection register A slave device based on the communication control processing unit for controlling data communication between the N-1th communication control device and the selected slave device,
The master device is
Before performing data communication with the plurality of slave devices, a command for setting the selection information in the slave selection register is transmitted to the first communication control device, and when performing data communication with the plurality of slave devices, the slave Including a master processing unit that transmits a command in which an address value for first communication is specified as an address to the first communication control device;
The communication control processing unit of the first communication control device includes:
The slave address included in the command received from the master device is compared with the address value for the first communication, and based on the comparison result, the address value for the second communication is designated as the slave address for the command. Control whether to convert to a command and transmit to the second communication control device,
The communication control processing unit of the k-th communication control device;
The slave address included in the command received from the k-1th communication control device is compared with the address value for the kth communication, and based on the comparison result, the command is used as the slave address and the k + 1th communication address. Control whether to convert the value into a specified command and send it to the k + 1 th communication control device;
The communication control processing unit of the Nth communication control device comprises:
The slave address included in the command received from the N-1th communication control device is compared with the address value for the Nth communication, and based on the comparison result, the address of the selected slave device as the slave address. It is characterized by controlling whether or not a value is converted into a designated command and transmitted to the selected slave device.
第1〜第Nの通信用のアドレス値は同一のアドレス値(ID)であってもよい。 The first to Nth communication address values may be the same address value (ID).
本発明によれば、マスター装置は、スレーブ装置とデータ通信を行う前に第Nの通信制御装置のスレーブ選択レジスタに選択情報を設定するコマンドを送信し、第Nの通信制御装置はスレーブ選択レジスタの設定値に基づいてデータ通信の対象となるスレーブ装置を選択する。従って、第Nの通信制御装置に接続される複数のスレーブ装置が同一のアドレス値を有していても、マスター装置はスレーブ選択レジスタの設定値を変更することにより複数のスレーブ装置のいずれか1つの装置を選択してデータ通信を行うことができる。 According to the present invention, the master device transmits a command for setting selection information to the slave selection register of the Nth communication control device before performing data communication with the slave device, and the Nth communication control device transmits the slave selection register. The slave device that is the object of data communication is selected based on the set value. Therefore, even if a plurality of slave devices connected to the Nth communication control device have the same address value, the master device changes any one of the plurality of slave devices by changing the setting value of the slave selection register. One device can be selected for data communication.
また、本発明によれば、マスター装置とスレーブ装置の間でデータ通信を行う際には、マスター装置はスレーブアドレスに第1の通信用のアドレス値が指定されたコマンドを第1の通信制御装置に送信し、第1〜第N−1の通信制御装置はそれぞれスレーブアドレスに第2〜第Nの通信用のアドレス値が指定されたコマンドを第2〜第Nの通信制御装置に送信し、第Nの通信制御装置は、第N−1の通信制御装置から受信したコマンドに含まれるスレーブアドレスに基づいて、マスター装置と前記複数のスレーブ装置の間のデータ通信を制御する。すなわち、マスター装置は、第Nの通信制御装置に接続されるスレーブ装置のアドレス値がスレーブアドレスに指定されたコマンドを送信することなく当該スレーブ装置とデータ通信を行うので、第Nの通信制御装置に接続されるスレーブ装置がマスター装置に直接接続される他のスレーブ装置と同一のアドレス値を有していても当該データ通信を行うことができる。 According to the present invention, when data communication is performed between the master device and the slave device, the master device sends a command in which the first communication address value is specified as the slave address to the first communication control device. And the first to (N-1) th communication control devices respectively transmit to the second to Nth communication control devices a command in which the second to Nth communication address values are designated as slave addresses. The Nth communication control device controls data communication between the master device and the plurality of slave devices based on the slave address included in the command received from the N-1th communication control device. That is, the master device performs data communication with the slave device without transmitting a command in which the address value of the slave device connected to the Nth communication control device is designated as the slave address. Even if the slave device connected to the master device has the same address value as other slave devices directly connected to the master device, the data communication can be performed.
(7)本発明のデータ通信システムは、
前記通信プロトコルはI2Cバス通信プロトコルであることを特徴とする。
(7) The data communication system of the present invention
The communication protocol is an I 2 C bus communication protocol.
(8)本発明は、
マスタースレーブ方式による所与の通信プロトコルにおけるマスターとして機能するマスター装置と前記通信プロトコルにおけるスレーブとして機能する複数のスレーブ装置の間のデータ通信を制御する通信制御装置であって、
データ通信の対象となるスレーブ装置を選択するための選択情報が設定されるスレーブ選択レジスタと、前記スレーブ選択レジスタの設定値に基づいてスレーブ装置を選択し、前記マスター装置と前記選択したスレーブ装置の間のデータ通信を制御する通信制御処理部と、を含み、
前記通信制御処理部は、
前記マスター装置から受信したコマンドに含まれるスレーブアドレスと所定の通信用のアドレス値を比較し、比較結果に基づいて、当該コマンドをスレーブアドレスに前記選択したスレーブ装置のアドレス値が指定されたコマンドに変換して前記選択したスレーブ装置に送信するか否かを制御することを特徴とする。
(8) The present invention
A communication control device for controlling data communication between a master device functioning as a master in a given communication protocol by a master-slave method and a plurality of slave devices functioning as slaves in the communication protocol,
A slave selection register in which selection information for selecting a slave device for data communication is set, and a slave device is selected based on a set value of the slave selection register, and the master device and the selected slave device A communication control processing unit for controlling data communication between,
The communication control processing unit
The slave address included in the command received from the master device is compared with a predetermined communication address value. Based on the comparison result, the command is designated as the slave address with the address value of the selected slave device specified. It is characterized by controlling whether to convert and transmit to the selected slave device.
(9)本発明の通信制御装置は、
前記通信用のアドレス値が設定される通信用アドレス設定レジスタを含み、
前記通信制御処理部は、
前記通信用アドレス設定レジスタの設定値を前記通信用のアドレス値として前記比較処理を行うことを特徴とする。
(9) The communication control device of the present invention
Including a communication address setting register in which the communication address value is set;
The communication control processing unit
The comparison process is performed using the setting value of the communication address setting register as the communication address value.
(10)本発明の通信制御装置は、
データ通信の対象となるスレーブ装置のアドレス値が設定されるスレーブアドレス設定レジスタを含み、
前記通信制御処理部は、
前記スレーブアドレス設定レジスタの設定値を前記選択したスレーブ装置のアドレス値として前記変換処理を行うことを特徴とする。
(10) The communication control device of the present invention
Including a slave address setting register in which the address value of the slave device subject to data communication is set,
The communication control processing unit
The conversion process is performed using the set value of the slave address setting register as the address value of the selected slave device.
(11)本発明の通信制御装置は、
前記スレーブ選択レジスタの各設定値と当該各設定値に応じて選択されるスレーブ装置のアドレス値との対応関係を規定する対応テーブルを含み、
前記通信制御処理部は、
前記対応テーブルに基づいて、前記スレーブ選択レジスタの設定値に対応づけられたアドレス値を前記選択したスレーブ装置のアドレス値として前記変換処理を行うことを特徴とする。
(11) The communication control device of the present invention
Including a correspondence table that defines the correspondence between each setting value of the slave selection register and the address value of the slave device selected according to each setting value;
The communication control processing unit
Based on the correspondence table, the conversion processing is performed using the address value associated with the set value of the slave selection register as the address value of the selected slave device.
(12)本発明の通信制御装置は、
前記通信制御処理部は、
前記マスター装置から受信したコマンドに含まれる第1のスレーブアドレスを前記通信用のアドレス値と比較することにより前記比較処理を行い、前記第1のスレーブアドレスを削除し、前記コマンドに含まれる第2のスレーブアドレスに指定された所定のアドレス値を前記選択したスレーブ装置のアドレス値に置き換えることにより前記変換処理を行うことを特徴とする。
(12) The communication control device of the present invention
The communication control processing unit
The comparison processing is performed by comparing the first slave address included in the command received from the master device with the address value for communication, the first slave address is deleted, and the second slave address included in the command The conversion process is performed by replacing a predetermined address value designated as a slave address with an address value of the selected slave device.
(13)本発明の通信制御装置は、
前記通信プロトコルはI2Cバス通信プロトコルであることを特徴とする。
(13) The communication control device of the present invention
The communication protocol is an I 2 C bus communication protocol.
以下、本発明の好適な実施形態について図面を用いて詳細に説明する。なお、以下に説明する実施の形態は、特許請求の範囲に記載された本発明の内容を不当に限定するものではない。また以下で説明される構成の全てが本発明の必須構成要件であるとは限らない。 DESCRIPTION OF EMBODIMENTS Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the drawings. The embodiments described below do not unduly limit the contents of the present invention described in the claims. Moreover, not all of the configurations described below are essential constituent requirements of the present invention.
1.データ通信システム、通信制御装置
1−1.データ通信システムの第1の構成例
図1は、本実施形態のデータ通信システムの第1の構成例について説明するための図である。本実施形態のデータ通信システム1は、当該構成要素(各部)の一部を省略した構成としてもよい。
1. 1. Data communication system, communication control device 1-1. First Configuration Example of Data Communication System FIG. 1 is a diagram for describing a first configuration example of a data communication system according to the present embodiment. The
データ通信システム1は、マスタースレーブ方式による所与の通信プロトコルに基づいてマスターとスレーブの間でデータ通信を行う。マスタースレーブ方式による通信プロトコルは、例えば、I2Cバス通信プロトコルであってもよい。
The
データ通信システム1は、マスター装置10を含む。マスター装置10は、マスタースレーブ方式による通信プロトコルにおけるマスターとして機能する。また、データ通信システム1は、通信制御装置20を含む。通信制御装置20は、マスター装置10及びスレーブ装置1〜n(50−1〜50−n)に接続され、マスター装置10とスレーブ装置1〜n(50−1〜50−n)の間のデータ通信を制御する。
The
マスター装置10は、マスター処理部12を含む。マスター処理部12は、スレーブ装置1〜n(50−1〜50−n)とデータ通信を行う前にスレーブ選択レジスタ36にデータ通信の対象となるスレーブ装置(データ通信対象装置)を選択するための選択情報を設定するコマンド(スレーブ選択コマンド)を通信制御装置20に送信する。
The master device 10 includes a
また、マスター処理部12は、スレーブ装置1〜n(50−1〜50−n)とデータ通信を行う前に、通信用アドレス設定レジスタ32に通信用のアドレス値(マスター装置10とスレーブ装置1〜n(50−1〜50−n)の間で送受信するデータについて通信制御装置20をスルーさせるための所定のアドレス値)(以下、スルーIDという)を設定するコマンド(スルーID設定コマンド)を通信制御装置20に送信するようにしてもよい。
Further, the
また、マスター処理部12は、スレーブ装置1〜n(50−1〜50−n)とデータ通信を行う前に、スレーブアドレス設定レジスタ34にデータ通信対象装置のアドレス値を設定するコマンド(スレーブアドレス設定コマンド)を通信制御装置20に送信するようにしてもよい。
The
また、マスター処理部12は、スレーブ装置1〜n(50−1〜50−n)とデータ通信を行う際には、スレーブアドレスにスルーIDが指定されたコマンド(データ通信用コマンド)を通信制御装置20に送信する。
Further, when the
また、マスター処理部12は、スレーブ装置1〜n(50−1〜50−n)とデータ通信を行う際には、スルーIDが指定された第1のスレーブアドレスと所定のアドレス値が指定された第2のスレーブアドレスとを含むデータ通信用のコマンドを送信するようにしてもよい。
Further, when the
通信制御装置20は、レジスタファイル30にスレーブ選択レジスタ36を含む。また、通信制御装置20は、レジスタファイル30に通信用アドレス設定レジスタ32及びスレーブアドレス設定レジスタ34を含んでもよい。通信用アドレス設定レジスタ32にはスルーIDが設定される。スレーブアドレス設定レジスタ34にはデータ通信対象装置のアドレス値が設定される。スレーブ選択レジスタ36にはデータ通信対象装置を選択するための選択情報が設定される。
The
通信制御装置20は、通信制御処理部40を含む。通信制御処理部40は、例えば、スレーブ処理部42、データ変換処理部44、通信経路選択部46を含んで構成されていてもよい。
The
通信制御装置20は、マスタースレーブ方式による通信プロトコルにおけるスレーブとして機能してもよく、スレーブ処理部42がスレーブの機能を実現する。スレーブ処理部42は、例えば、マスター装置10が送信するコマンドに含まれるスレーブアドレスが通信制御装置20のアドレス値と一致した場合には当該コマンドを受信し、コマンドの指示に応じた処理を行う。例えば、スレーブ処理部42は、スルーID設定コマンドを受信した場合は通信用アドレス設定レジスタ32にスルーIDを設定する処理を行い、スレーブアドレス設定コマンドを受信した場合はスレーブアドレス設定レジスタ34にデータ通信対象装置のアドレス値を設定する処理を行い、スレーブ選択コマンドを受信した場合はスレーブ選択レジスタ36に選択情報を設定する処理を行う。
The
また、スレーブ処理部42は、マスター装置10から受信したコマンドに含まれるスレーブアドレスがスルーIDと一致した場合には、当該コマンドを受信し、データ変換部44に送信する処理を行う。例えば、マスター装置10から受信したコマンドに含まれるスレーブアドレスが通信用アドレス設定レジスタ32の設定値と一致した場合には、当該コマンドを受信し、データ変換部44に送信する処理を行うようにしてもよい。スレーブ処理部42は、マスター装置10からコマンドを受信した場合は、マスター装置10にアクノリッジ信号を送信するようにしてもよい。
In addition, when the slave address included in the command received from the master device 10 matches the through ID, the
データ変換処理部44は、スレーブ処理部42がマスター装置10から受信したコマンドをスレーブアドレスに通信経路選択部46が選択したスレーブ装置のアドレス値が指定されたコマンドに変換する処理を行う。例えば、データ変換処理部44は、当該コマンドをスレーブアドレスにスレーブアドレス設定レジスタ34の設定値が指定されたコマンドに変換する処理を行うようにしてもよい。
The data
また、データ変換処理部44は、スレーブ処理部42がマスター装置10から受信したデータ通信用のコマンドに含まれる第1のスレーブアドレスを削除し、第2のスレーブアドレスに指定された所定のアドレス値を通信経路選択部46が選択したスレーブ装置のアドレス値に置き換える処理を行うようにしてもよい。
In addition, the data
通信経路選択部46は、スレーブ選択レジスタ36の設定値に基づいてスレーブ装置1〜n(50−1〜50−n)のいずれかを選択し、データ変換処理部44が変換したコマンドを選択したスレーブ装置に送信する処理を行う。
The communication
通信制御装置20は、スレーブ選択レジスタ36の各設定値と当該各設定値に応じて選択されるスレーブ装置のアドレス値との対応関係を規定する対応テーブルを含んでもよい。この場合、データ変換処理部44は、マスター装置10から受信したコマンドに含まれるスレーブアドレスがスルーIDと一致した場合には、対応テーブルに基づいてスレーブ選択レジスタ36の設定値に対応づけられたアドレス値を選択し、当該コマンドをスレーブアドレスに通信経路選択部46が選択したスレーブ装置のアドレス値が指定されたコマンドに変換する処理を行うようにしてもよい。
The
1−2.データ通信システムの第2の構成例
図2は、本実施形態のデータ通信システムの第2の構成例について説明するための図である。本実施形態のデータ通信システム2は、当該構成要素(各部)の一部を省略した構成としてもよい。
1-2. Second Configuration Example of Data Communication System FIG. 2 is a diagram for describing a second configuration example of the data communication system according to the present embodiment. The data communication system 2 of the present embodiment may have a configuration in which some of the components (each unit) are omitted.
データ通信システム2は、マスター装置10及びN個(Nは2以上の整数)の通信制御装置1〜N(20−1〜20−N)を含んで構成されている。マスター装置10は、図1で説明したデータ通信システム1のマスター装置10及びスレーブ装置1〜n(50−1〜50−n)と同じ構成であり、説明を省略する。
The data communication system 2 includes a master device 10 and N (N is an integer of 2 or more)
通信制御装置1(第1の通信制御装置)(20−1)は、マスター装置10及び通信制御装置2(第2の通信制御装置)(20−2)に接続されている。通信制御装置k(第kの通信制御装置)(20−k)(kは2以上N−1以下の整数)は、通信制御装置k−1(第k−1の通信制御装置)(20−(k−1))及び通信制御装置k+1(第k+1の通信制御装置)(20−(k+1))に接続されている。通信制御装置N(第Nの通信制御装置)(20−N)は、通信制御装置N−1(第N−1の通信制御装置)(20−(N−1))及びスレーブ装置1〜n(50−1〜50−n)に接続されている。通信制御装置1〜N(20−1〜20−N)は、マスター装置10とスレーブ装置1〜n(50−1〜50−n)の間のデータ通信を制御する。通信制御装置1〜N(20−1〜20−N)は、マスタースレーブ方式による通信プロトコルにおけるスレーブとして機能してもよい。
The communication control device 1 (first communication control device) (20-1) is connected to the master device 10 and the communication control device 2 (second communication control device) (20-2). The communication control device k (kth communication control device) (20-k) (k is an integer between 2 and N-1) is connected to the communication control device k-1 (k-1th communication control device) (20- (K−1)) and a communication control device k + 1 (k + 1th communication control device) (20− (k + 1)). The communication control device N (Nth communication control device) (20-N) includes a communication control device N-1 (N-1th communication control device) (20- (N-1)) and
各通信制御装置j(jは1〜Nのいずれか)は、図1で説明したデータ通信システム1の通信制御装置20と同じ構成であってもよい。すなわち、通信用アドレス設定レジスタ32−j、スレーブアドレス設定レジスタ34−j、スレーブ選択レジスタ36−j、通信制御処理部40−jを含んでいてもよい。
Each communication control device j (j is any one of 1 to N) may have the same configuration as the
通信制御装置1(20−1)は通信制御処理部40−1において、マスター装置10から受信したコマンドに含まれるスレーブアドレスと第1の通信用のアドレス値(スルーID1)を比較し、比較結果に基づいて、当該コマンドをスレーブアドレスに第2の通信用のアドレス値(スルーID2)が指定されたコマンドに変換して通信制御装置2(20−2)に送信するか否かを制御する。 The communication control device 1 (20-1) compares the slave address included in the command received from the master device 10 with the first communication address value (through ID1) in the communication control processing unit 40-1, and compares the result. Based on the above, it is controlled whether or not the command is converted into a command in which the second communication address value (through ID 2) is specified as the slave address and transmitted to the communication control device 2 (20-2).
通信制御装置k(20−k)は、通信制御処理部40−kにおいて、通信制御装置k−1(20−(k−1))から受信したコマンドに含まれるスレーブアドレスと第kの通信用のアドレス値(スルーID(k))を比較し、比較結果に基づいて、当該コマンドをスレーブアドレスに第k+1の通信用のアドレス値(スルーID(k+1))が指定されたコマンドに変換して通信制御装置k+1(20−(k+1))に送信するか否かを制御する。 The communication control device k (20-k) uses the slave address included in the command received from the communication control device k-1 (20- (k-1)) and the k-th communication in the communication control processing unit 40-k. Address values (through ID (k)) are compared, and based on the comparison result, the command is converted into a command in which the k + 1-th communication address value (through ID (k + 1)) is specified as the slave address. It is controlled whether to transmit to the communication control device k + 1 (20− (k + 1)).
通信制御装置N(20−N)は、通信制御処理部40−Nにおいて、スレーブ選択レジスタ36−Nの設定値に基づいてスレーブ装置1〜n(50−1〜50−n)のいずれかを選択し、通信制御装置N−1(20−(N−1))とスレーブ装置1〜n(50−1〜50−n)の間のデータ通信を制御する。通信制御処理部40−Nは、通信制御装置N−1(20−(N−1))から受信したコマンドに含まれるスレーブアドレスと第Nの通信用のアドレス値(スルーID(N))を比較し、比較結果に基づいて、当該コマンドをスレーブアドレスに選択したスレーブ装置(スレーブ装置1〜n(50−1〜50−n)のいずれか)のアドレス値が指定されたコマンドに変換して当該スレーブ装置に送信するか否かを制御する。
The communication control device N (20-N) selects one of the
マスター装置10は、マスター処理部12において、スレーブ装置1〜n(50−1〜50−n)とデータ通信を行う前にスレーブ選択レジスタ36−Nに選択情報を設定するコマンド(スレーブ選択コマンド)を通信制御装置1(20−1)に送信する。
The master device 10 uses the
また、マスター装置10は、マスター処理部12において、スレーブ装置1〜n(50−1〜50−n)とデータ通信を行う際にはスレーブアドレスにスルーID1が指定されたコマンド(データ通信用コマンド)を通信制御装置1(20−1)に送信する。
Further, when the master device 10 performs data communication with the
なお、各通信制御装置j(20−j)(jは1〜N−1のいずれか)は、図1で説明した通信制御装置20と同様の構成とすることにより、それぞれ複数のスレーブ装置を接続することができる。ここで、通信制御装置もスレーブ装置として機能するので、各通信制御装置はスレーブ装置として複数の通信制御装置を接続することができる。すなわち、多数の通信制御装置をツリー状に接続し、ツリーの各経路の終端にスレーブ装置を接続するように構成することもできる。従って、データ通信システム2によれば、マスター装置10とデータ通信可能なスレーブ装置の数を無限に増やすことができる。マスター装置10は、各通信制御装置の通信用アドレス設定レジスタ、スレーブアドレス設定レジスタ、スレーブ選択レジスタの設定値に従って選択されたスレーブ装置又は通信制御装置とデータ通信を行うことができる(通信制御装置もスレーブ装置の1つとして選択される)。
Note that each communication control device j (20-j) (j is any one of 1 to N-1) has the same configuration as the
2.データ通信システムの処理手順
図3及び図4は、図1で説明した本実施の形態のデータ通信システム1において、データ通信を実現するためのマスター装置10及び通信制御装置20の処理手順の一例についてそれぞれ説明するためのフローチャートである。
2. Processing Procedure of Data Communication System FIGS. 3 and 4 show an example of processing procedures of the master device 10 and the
まず、マスター装置10は、通信制御装置20にスルーID設定コマンドを送信する(図3のステップS10)。通信制御装置20は、マスター装置10からスルーID設定コマンドを受信し、通信用アドレス設定レジスタ32にスルーIDを設定する(図4のステップS20)。
First, the master device 10 transmits a through ID setting command to the communication control device 20 (step S10 in FIG. 3). The
次に、マスター装置10は、通信制御装置20にスレーブアドレス設定コマンドを送信する(図3のステップS12)。通信制御装置20は、マスター装置10からスレーブアドレス設定コマンドを受信し、スレーブアドレス設定レジスタ34にデータ通信対象装置のアドレス値を設定する(図4のステップS22)。
Next, the master device 10 transmits a slave address setting command to the communication control device 20 (step S12 in FIG. 3). The
次に、マスター装置10は、通信制御装置20にスレーブ選択コマンドを送信する(図3のステップS14)。通信制御装置20は、マスター装置10からスレーブ選択コマンドを受信し、スレーブ選択レジスタ36に選択情報を設定する(図4のステップS24)。
Next, the master device 10 transmits a slave selection command to the communication control device 20 (step S14 in FIG. 3). The
次に、マスター装置10(マスター処理部12)は、スレーブアドレスにスルーIDが指定されたデータ通信用コマンドを通信制御装置20に送信する(図3のステップS16)。通信制御装置20は、マスター装置10からデータ通信用コマンドを受信する(図4のステップS26)。
Next, the master device 10 (master processing unit 12) transmits a data communication command in which a through ID is specified as a slave address to the communication control device 20 (step S16 in FIG. 3). The
次に、通信制御装置20は、受信したデータ通信用コマンドにおいて指定されたスレーブアドレスと通信用アドレス設定レジスタ32の設定値が一致するか否かを判断する(図4のステップS28)。データ通信用コマンドにおいて指定されたスレーブアドレスと通信用アドレス設定レジスタ32の設定値が一致しないと判断した場合(図4のステップS28でNoの場合)は、通信制御装置20はスレーブ装置1〜n(50−1〜50−n)とデータ通信を行わずに処理を終了する。
Next, the
データ通信用コマンドにおいて指定されたスレーブアドレスと通信用アドレス設定レジスタ32の設定値が一致すると判断した場合(図4のステップS28でYesの場合)は、通信制御装置20は、マスター装置10から受信したデータ通信用コマンドを、スレーブアドレスにスレーブアドレス設定レジスタ34の設定値が指定されたコマンドに変換する(図4のステップS30)。
If it is determined that the slave address specified in the data communication command and the setting value of the communication
なお、データ通信用コマンドが2つのスレーブアドレスを含むように取り決めておいてもよい。この場合、マスター装置10は、図3のステップS16において、最初のスレーブアドレス(第1のスレーブアドレス)にスルーIDが指定され、次のスレーブアドレス(第2のスレーブアドレス)に所定のアドレス値(以下、ダミーのアドレス値という)が指定されたデータ通信用コマンドを送信するようにしてもよい。ダミーのアドレス値として、例えばスルーIDを選択してもよい。そして、通信制御装置20は、図4のステップS26において当該データ通信用コマンドを受信し、図4のステップS28において当該データ通信用コマンドに含まれる第1のスレーブアドレス(スルーID)が通信用アドレス設定レジスタ32の設定値と一致するか否かを判断し、一致すると判断した場合は、図4のステップS30において、第1のスレーブアドレスを削除し、第2のスレーブアドレスに指定されたダミーのアドレス値をスレーブアドレス設定レジスタ34の設定値に置き換えるようにしてもよい。
The data communication command may be determined so as to include two slave addresses. In this case, in step S16 in FIG. 3, the master device 10 designates the through ID as the first slave address (first slave address) and sets a predetermined address value (second slave address) as the predetermined address value (second slave address). Hereinafter, a data communication command in which a dummy address value is designated may be transmitted. As a dummy address value, for example, a through ID may be selected. The
最後に、通信制御装置20は、スレーブ選択レジスタ36の設定値に基づいてスレーブ装置1〜n(50−1〜50−n)のいずれかを選択し、選択したスレーブ装置に図4のステップS30で変換したデータ通信用コマンドを送信する(図4のステップS32)。ここで、図4のステップS24において、スレーブ選択レジスタ36にはデータ通信対象装置を選択するための選択情報が設定されている。そのため、マスター装置10は、図3のステップS16において、スレーブアドレスにスルーIDが指定されたデータ通信用コマンドを送信することにより、データ通信対象装置との間の通信経路が確立され、データ通信対象装置との間でデータ通信を行うことができるようになる。
Finally, the
図4のステップS32において選択されたスレーブ装置は、データ通信用コマンドを受信し、データ通信用コマンドによりマスター装置10が指示する処理(内部レジスタに対する書き込みや読み出し等)を行う。このようにして、通信制御装置20を介して(スルーさせて)マスター装置10とスレーブ装置1〜n(50−1〜50−n)との間でデータ通信を行うことができる。
The slave device selected in step S32 in FIG. 4 receives the data communication command, and performs processing (such as writing to and reading from the internal register) instructed by the master device 10 using the data communication command. In this way, data communication can be performed between the master device 10 and the
なお、スルーIDはマスター装置10に接続されるスレーブとして機能するすべての装置(通信制御装置20等)のアドレス値と異なるアドレス値であればよい。従って、スルーIDはマスター装置10に接続される装置を変更しない限り固定のアドレス値にしておいてもよい。この場合、マスター装置10は、図3のステップS10におけるスルーID設定コマンドの送信を、通信制御装置20の起動後に1回だけ行えばよい。また、スレーブ装置1〜n(50−1〜50−n)のアドレス値がすべて同じであれば、マスター装置10は、図3のステップS12におけるスレーブアドレス設定コマンドの送信を、通信制御装置20の起動後に1回だけ行えばよい。一方、マスター装置10は、図3のステップS14におけるスレーブ選択コマンドの送信については、データ通信対象装置を切り替える度に行う。
The through ID may be any address value different from the address values of all devices (
なお、図3及び図4のフローチャートは、図2で説明した本実施の形態のデータ通信システム2において、データ通信を実現するためのマスター装置10及び通信制御装置20−1〜20−Nの処理手順としても同様に適用できる。 3 and 4 are the processes of the master device 10 and the communication control devices 20-1 to 20-N for realizing data communication in the data communication system 2 of the present embodiment described in FIG. The same applies to the procedure.
3.第1のデータ通信システムの動作説明
3−1.第1のデータ通信システムの構成
図5は、I2Cバス通信プロトコルに基づいてデータ通信を行うデータ通信システムの第1の構成例について説明するための図である。図5のデータシステム101の構成は、図1で説明したデータ通信システム1の構成に対応する。
3. 3. Description of operation of first data communication system 3-1. Configuration of First Data Communication System FIG. 5 is a diagram for describing a first configuration example of a data communication system that performs data communication based on the I 2 C bus communication protocol. The configuration of the
データ通信システム101は、マスター装置110、通信制御装置120、スレーブ装置1〜8(150−1〜150−4、160〜190)を含んで構成されている。マスター装置110のSCL出力端子は、シリアルバス112を介して通信制御装置120及びスレーブ装置5〜8(160〜190)のSCL入力端子と接続されている。また、マスター装置110のSDA入出力端子は、シリアルバス114を介して通信制御装置120及びスレーブ装置5〜8(160〜190)のSDA入力端子と接続されている。また、シリアルバス112及び114はそれぞれ抵抗器116及び118を介して電源にプルアップ接続されている。
The
通信制御装置120のSCL1出力端子及びSDA1入出力端子は、それぞれ、クロック信号線122−1及びデータ信号線124−1によりスレーブ装置1(150−1)のSCL入力端子及びSDA入出力端子と接続されている。同様に、通信制御装置120のSCL2出力端子及びSDA2入出力端子は、それぞれ、クロック信号線122−2及びデータ信号線124−2によりスレーブ装置2(150−2)のSCL入力端子及びSDA入出力端子と接続されている。同様に、通信制御装置120のSCL3出力端子及びSDA3入出力端子は、それぞれ、クロック信号線122−3及びデータ信号線124−3によりスレーブ装置3(150−3)のSCL入力端子及びSDA入出力端子と接続されている。同様に、通信制御装置120のSCL4出力端子及びSDA4入出力端子は、それぞれ、クロック信号線122−4及びデータ信号線124−4によりスレーブ装置4(150−4)のSCL入力端子及びSDA入出力端子と接続されている。 The SCL1 output terminal and the SDA1 input / output terminal of the communication control device 120 are connected to the SCL input terminal and the SDA input / output terminal of the slave device 1 (150-1) through the clock signal line 122-1 and the data signal line 124-1, respectively. Has been. Similarly, the SCL2 output terminal and SDA2 input / output terminal of the communication control device 120 are respectively connected to the SCL input terminal and SDA input / output of the slave device 2 (150-2) by the clock signal line 122-2 and the data signal line 124-2, respectively. Connected to the terminal. Similarly, the SCL3 output terminal and the SDA3 input / output terminal of the communication control device 120 are respectively connected to the SCL input terminal and the SDA input / output of the slave device 3 (150-3) by the clock signal line 122-3 and the data signal line 124-3, respectively. Connected to the terminal. Similarly, the SCL4 output terminal and the SDA4 input / output terminal of the communication control device 120 are respectively connected to the SCL input terminal and the SDA input / output of the slave device 4 (150-4) by the clock signal line 122-4 and the data signal line 124-4. Connected to the terminal.
マスター装置110はI2Cバス通信プロトコルにおけるマスターとして機能し、通信制御装置120及びスレーブ装置1〜8(150−1〜150−4、160〜190)はI2Cバス通信プロトコルにおけるスレーブとして機能する。すなわち、マスター装置110がデータ通信の主導権を有する。マスター装置110は、データ通信を行う時にはSCL出力端子からシリアルバス112にクロック信号を出力(送信)する。マスター装置110がSCL出力端子からクロック信号を出力しない時はバス112は解放されるため抵抗器116を介してプルアップされてHレベルの電位(電源電位)になる。通信制御装置120及びスレーブ装置5〜8(160〜190)はシリアルバス112にクロック信号を出力することはできない。
The
マスター装置110、通信制御装置120及びスレーブ装置5〜8(160〜190)は、SDA入出力端子を介してシリアルバス114にデータを出力する(送信する)ことができるし、シリアルバス114のデータを入力(受信)することもできる。マスター装置110、通信制御装置120及びスレーブ装置5〜8(160〜190)の2つ以上の装置がシリアルバス114に同時にデータを出力することはできないが、マスター装置110、通信制御装置120及びスレーブ装置5〜8(160〜190)のいずれもシリアルバス114にデータを出力しなくてもよい(この場合、シリアルバス114は解放されるため抵抗器118を介してプルアップされてHレベルの電位になる)。
The
データ通信を開始するまでは、シリアルバス112及び114はいずれもHレベルの電位にプルアップされている。データ通信を開始する場合には、マスター装置110は、シリアルバス112(クロック信号)がHレベルの時に、シリアルバス114にHレベルからLレベルに遷移するデータを出力することにより、スタートコンディションを送信する。マスター装置110は、スタートコンディションを送信した後、所定のコマンドを送信することにより通信制御装置120及びスレーブ装置5〜8(160〜190)とデータ通信を開始することができる。また、マスター装置110は、図3及び図4のフローチャートに従って通信制御装置120のレジスタ設定を行った後は、スレーブ装置1〜4(150−1〜150−4)とデータ通信を行うこともできる。
Until the start of data communication, the
データ通信を終了する場合には、マスター装置110は、シリアルバス112(クロック信号)がHレベルの時に、シリアルバス114にLレベルからHレベルに遷移するデータを出力することにより、ストップコンディションを送信する。
When the data communication is terminated, the
3−2.第1のデータ通信システムのコマンド形式
図6(A)、図6(B)は、図5で説明したマスター装置110が通信制御装置120及びスレーブ装置5〜8(160〜190)のいずれかとデータ通信する時に送信するコマンドの形式の一例を示す図である。
3-2. Command format of first data communication system FIGS. 6A and 6B show that the
図6(A)は、書き込みコマンドの形式の一例である。書き込みコマンド200は、スタートコンディション202により開始し、ストップコンディション222により終了する。
FIG. 6A shows an example of the format of the write command. The
まず、マスター装置110は、スタートコンディション202を送信した後、7ビットのスレーブアドレス204及び1ビットのライト信号206(Lレベル)を送信する。ここで、マスター装置110は、シリアルバス112に8クロック分のクロック信号を出力して7ビットのスレーブアドレス204及び1ビットのライト信号206の計8ビットのデータをクロック信号に同期させて送信する。同時に、通信制御装置120及びスレーブ装置5〜8(160〜190)は、この8クロック分のクロック信号に同期してスレーブアドレス204及びライト信号206を受信する。マスター装置110は、スレーブアドレス204及びライト信号206を送信した後、シリアルバス114を解放する。
First, after transmitting the
次に、スレーブアドレス204が自己のアドレス値と一致した通信制御装置120及びスレーブ装置5〜8(160〜190)のいずれかの装置(書き込み対象装置)が1ビットのアクノリッジ信号208を送信する。ここで、マスター装置110は、シリアルバス112に1クロック分のクロック信号を出力し、書き込み対象装置が1ビットのアクノリッジ信号208をクロック信号に同期させて送信する。同時に、マスター装置110は、この1クロック分のクロック信号に同期してアクノリッジ信号208を受信する。書き込み対象装置は、アクノリッジ信号208を送信した後、シリアルバス114を解放する。
Next, any one of the communication control device 120 and the slave devices 5 to 8 (160 to 190) (write target device) whose
次に、マスター装置110は、書き込み対象装置の書き込み対象となる内部レジスタ(書き込み対象レジスタ)のアドレスの上位8ビット分のデータ210を送信した後、シリアルバス114を解放する。書き込み対象装置は、書き込み対象レジスタのアドレスの上位8ビット分のデータ210を受信し、アクノリッジ信号212を送信した後、シリアルバス114を解放する。
Next, the
次に、マスター装置110は、書き込み対象レジスタのアドレスの下位8ビット分のデータ214を送信した後、シリアルバス114を解放する。書き込み対象装置は、書き込み対象レジスタのアドレスの下位8ビット分のデータ214を受信し、アクノリッジ信号216を送信した後、シリアルバス114を解放する。書き込み対象装置は、書き込み対象レジスタのアドレスの上位8ビット分のデータ210及び下位8ビット分のデータ214を内部のアドレスレジスタにセットする。
Next, the
次に、マスター装置110は、書き込み対象レジスタに書き込むmバイト分のデータのうち最初の1バイト分のデータ218−1を送信した後、シリアルバス114を解放する。書き込み対象装置は、最初の1バイト分のデータ218−1を受信し、アクノリッジ信号220−1を送信した後、シリアルバス114を解放する。以降は、マスター装置110は1バイトずつデータを送信し、書き込み対象装置は1バイトずつデータを受信してアクノリッジ信号を送信した後シリアルバス114を解放する処理を繰り返す。そして、マスター装置110による最後の1バイト分のデータ218−mの送信及び書き込み対象装置による最後の1バイト分のデータ218−mの受信に対するアクノリッジ信号220−mの送信が終了する。ここで、書き込み対象装置は、1バイト分のデータ218−k(kは1〜mのいずれか)の受信が終了する毎に、アドレスレジスタにセットされたアドレスに割り当てられた内部レジスタ(すなわち、書き込み対象レジスタ)に1バイト分のデータを書き込む処理を繰り返し行ってもよい。また、書き込み対象装置は、mバイト分のデータ218−1〜218−mの受信が終了した後に、書き込み対象レジスタにmバイト分のデータを書き込む処理を行ってもよい。
Next, the
最後に、マスター装置110は、ストップコンディション222を送信した後シリアルバス114を解放して書き込みコマンドの送信を終了する。
Finally, after transmitting the
図6(B)は、読み出しコマンドの形式の一例である。読み出しコマンド250は、スタートコンディション252により開始し、ストップコンディション280により終了する。
FIG. 6B shows an example of a read command format. The
スタートコンディション252〜アクノリッジ信号266は、図6(A)で説明したスタートコンディション202〜アクノリッジ信号216と同じであるので、説明を省略する。スレーブアドレス254が自己のアドレス値と一致した通信制御装置120及びスレーブ装置5〜8(160〜190)のいずれかの装置(読み出し対象装置)は、アクノリッジ信号266の送信を終了した時点で、その内部のアドレスレジスタに読み出し対象となる内部レジスタ(読み出し対象レジスタ)の上位8ビットアドレス260及び下位8ビットアドレス264をセットしている。
Since the
次に、マスター装置110は、スタートコンディション268を再度送信した後、7ビットのスレーブアドレス270(スレーブアドレス254と同一のスレーブアドレス)及び1ビットのリード信号272(Hレベル)を送信する。ここで、マスター装置110は、シリアルバス112に8クロック分のクロック信号を出力して7ビットのスレーブアドレス270及び1ビットのリード信号272の計8ビットのデータをクロック信号に同期させて送信する。同時に、通信制御装置120及びスレーブ装置5〜8(160〜190)は、この8クロック分のクロック信号に同期してスレーブアドレス270及びリード信号272を受信する。マスター装置110は、スレーブアドレス270及びリード信号272を送信した後、シリアルバス114を解放する。
Next, after transmitting the
次に、読み出し対象装置は、スレーブアドレス270が自己のアドレス値と一致するので1ビットのアクノリッジ信号274を送信する。ここで、マスター装置110は、シリアルバス112に1クロック分のクロック信号を出力し、読み出し対象装置が1ビットのアクノリッジ信号274をクロック信号に同期させて送信する。同時に、マスター装置110は、この1クロック分のクロック信号に同期してアクノリッジ信号274を受信する。読み出し対象装置は、アクノリッジ信号274を送信した後、シリアルバス114を解放する。
Next, the reading target device transmits a 1-bit acknowledge
次に、読み出し対象装置は、読み出し対象レジスタからmバイト分のデータを読み出し、最初の1バイト分のデータ276−1を送信した後、シリアルバス114を解放する。マスター装置110は、最初の1バイト分のデータ276−1を受信し、アクノリッジ信号278−1を送信した後、シリアルバス114を解放する。以降は、読み出し対象装置は読み出したデータを1バイトずつ送信し、マスター装置110は1バイトずつデータを受信してアクノリッジ信号を送信した後シリアルバス114を解放する処理を繰り返す。そして、読み出し対象装置が最後の1バイト分のデータ276−mを送信すると、マスター装置110は1バイト分のデータ276−mを受信した後、アクノリッジ信号の反転信号(ノットアクノリッジ信号)278−mを送信する。読み出し対象装置は、ノットアクノリッジ信号278−mを受信する(すなわち、アクノリッジ信号を受信しない)ので次の1バイト分の読み出しデータの送信を行わず、mバイト分の読み出しデータの送信を終了する。
Next, the read target device reads m bytes of data from the read target register, transmits the first one byte of data 276-1, and then releases the
最後に、マスター装置110は、ストップコンディション280を送信した後シリアルバス114を解放して読み出しコマンドの送信を終了する。
Finally, after transmitting the
図7(A)、図7(B)は、図5で説明したマスター装置110がスレーブ装置1〜4(150−1〜150−4)のいずれかとデータ通信する時に送信するコマンド(データ通信用コマンド)の形式の一例を示す図である。なお、マスター装置110が図7(A)、図7(B)のコマンドを送信する前に、図3及び図4のフローチャートに従って通信用アドレス設定レジスタ32には通信制御装置120をスルーさせるためのスルーIDが設定されているものとする。また、スレーブアドレス設定レジスタ34にはデータ通信対象装置(書き込み対象装置又は読み出し対象装置)のアドレス値が設定されているものとする。さらに、スレーブ選択レジスタ36には接続先としてデータ通信対象装置(書き込み対象装置又は読み出し対象装置)を選択するための選択情報が設定されているものとする。
7A and 7B show commands (for data communication) that are transmitted when the
図7(A)は、書き込みコマンドの形式の一例である。書き込みコマンド300は、スタートコンディション302により開始し、ストップコンディション330により終了する。
FIG. 7A shows an example of the format of the write command. The
まず、マスター装置110は、スタートコンディション302を送信した後、スレーブアドレス304及びライト信号306を送信し、通信制御装置120及びスレーブ装置5〜8(160〜190)はスレーブアドレス304及びライト信号306を受信する。ここで、マスター装置110は、スレーブアドレス304としてスルーIDを送信する。スルーIDは、通信制御装置120及びスレーブ装置5〜8(160〜190)のアドレス値と異なるアドレス値が選択される。マスター装置110は、スレーブアドレス304及びライト信号306を送信した後、シリアルバス114を解放する。
First, after transmitting the
通信制御装置120は、受信したスレーブアドレス304(スルーID)が通信用アドレス設定レジスタ32の設定値(スルーID)と一致するので、その動作モードをこれ以降の受信データを書き込み対象装置に送信可能なスルーモードに設定する。そして、通信制御装置120はアクノリッジ信号308を送信し、マスター装置110はアクノリッジ信号308を受信する。通信制御装置120は、アクノリッジ信号308を送信した後、シリアルバス114を解放する。
Since the received slave address 304 (through ID) matches the set value (through ID) of the communication
次に、マスター装置110は、スタートコンディション310を再度送信し、スレーブアドレス312及びライト信号314を送信した後シリアルバス114を解放し、通信制御装置120はスレーブアドレス312及びライト信号314を受信する。ここで、マスター装置110は、スレーブアドレス312として、通信制御装置120及びスレーブ装置5〜8(160〜190)のアドレス値と異なる任意のアドレス値(ダミーのアドレス値)を送信する。例えば、ダミーのアドレス値としてスルーIDを使用してもよく、この場合はスレーブアドレス312はスレーブアドレス304と同一のデータになる。通信制御装置120の動作モードがスルーモードであるので、スレーブアドレス312をスレーブアドレス設定レジスタ34の設定値(書き込み対象装置のアドレス値)に変更し、スレーブ選択レジスタ36の設定値に従って選択したスレーブ装置(書き込み対象装置)に対して変更後のスレーブアドレス312(書き込み対象装置のアドレス値)及びライト信号314を送信する。
Next, the
書き込み対象装置は、通信制御装置120から変更後のスレーブアドレス312(書き込み対象装置のアドレス値)及びライト信号314を受信し、変更後のスレーブアドレス312(書き込み対象装置のアドレス値)が自己のアドレス値と一致するので通信制御装置120にアクノリッジ信号316を送信する。ここで、書き込み対象装置は、その動作モードをライトモードにセットする。通信制御装置120は、書き込み対象装置から受信したアクノリッジ信号316をマスター装置110に送信した後、シリアルバス114を解放する。これ以降、マスター装置110は書き込み対象装置とデータ通信を行うことができる。
The writing target device receives the changed slave address 312 (address value of the writing target device) and the
次に、マスター装置110は、書き込み対象装置の書き込み対象となる内部レジスタ(書き込み対象レジスタ)の上位8ビットアドレス318を送信した後、シリアルバス114を解放する。通信制御装置120は、上位8ビットアドレス318を受信し、書き込み対象装置に送信する。書き込み対象装置は、通信制御装置120から上位8ビットアドレス318を受信し、通信制御装置120にアクノリッジ信号320を送信する。通信制御装置120は、書き込み対象装置から受信したアクノリッジ信号320をマスター装置110に送信した後、シリアルバス114を解放する。
Next, the
次に、マスター装置110は、書き込み対象レジスタの下位8ビットアドレス322を送信した後、シリアルバス114を解放する。通信制御装置120は、下位8ビットアドレス322を受信し、書き込み対象装置に送信する。書き込み対象装置は、通信制御装置120から下位8ビットアドレス322を受信し、通信制御装置120にアクノリッジ信号324を送信する。ここで、書き込み対象装置は、上位8ビットアドレス318及び下位8ビットアドレス322を内部のアドレスレジスタにセットする。通信制御装置120は、書き込み対象装置から受信したアクノリッジ信号324をマスター装置110に送信した後、シリアルバス114を解放する。
Next, the
次に、マスター装置110は、書き込み対象レジスタに書き込むmバイトデータのうち最初の1バイトデータ326−1を送信した後、シリアルバス114を解放する。通信制御装置120は、最初の1バイトデータ326−1を受信し、書き込み対象装置に送信する。書き込み対象装置は、通信制御装置120から最初の1バイトデータ326−1を受信し、通信制御装置120にアクノリッジ信号328−1を送信する。通信制御装置120は、書き込み対象装置から受信したアクノリッジ信号328−1をマスター装置110に送信した後、シリアルバス114を解放する。以降は、マスター装置110は1バイトずつデータを送信し、通信制御装置120は1バイトずつデータを受信して書き込み対象装置に送信し、書き込み対象装置は通信制御装置120から1バイトデータを受信する毎に通信制御装置120にアクノリッジ信号を送信し、通信制御装置120は書き込み対象装置から受信したアクノリッジ信号をマスター装置110に送信した後シリアルバス114を解放する処理を繰り返す。そして、マスター装置110による最後の1バイトデータ326−mの送信、書き込み対象装置による最後の1バイトデータ326−mの受信及びアクノリッジ信号328−mの送信が終了する。ここで、書き込み対象装置は、1バイトデータ326−k(kは1〜mのいずれか)の受信が終了する毎に、アドレスレジスタにセットされたアドレスに割り当てられた内部レジスタ(すなわち、書き込み対象レジスタ)に1バイトデータを書き込む処理を繰り返し行ってもよい。また、書き込み対象装置は、mバイトデータ(326−1〜326−m)の受信が終了した後に、書き込み対象レジスタにmバイトデータを書き込む処理を行ってもよい。
Next, the
最後に、マスター装置110は、ストップコンディション330を送信した後シリアルバス114を解放し、書き込みコマンドの送信を終了する。
Finally, after transmitting the
図7(B)は、読み出しコマンドの形式の一例である。読み出しコマンド350は、スタートコンディション352により開始し、ストップコンディション388により終了する。
FIG. 7B shows an example of a read command format. The
スタートコンディション352〜アクノリッジ信号374は、図7(A)で説明したスタートコンディション302〜アクノリッジ信号324と同じであるので、説明を省略する。通信制御装置120は、アクノリッジ信号374の送信を終了した時点でその動作モードがスルーモードに設定されている。また、読み出し対象装置は、その内部のアドレスレジスタに読み出し対象レジスタの上位8ビットアドレス368及び下位8ビットアドレス372をセットしている。
The
次に、マスター装置110は、スタートコンディション376を再度送信し、スレーブアドレス378及びリード信号380を送信した後シリアルバス114を解放し、通信制御装置120はスレーブアドレス378及びリード信号380を受信する。ここで、マスター装置110は、スレーブアドレス378として、ダミーのアドレス値を送信する。例えば、ダミーのアドレス値としてスルーIDを使用してもよく、この場合はスレーブアドレス378はスレーブアドレス354と同一のデータになる。通信制御装置120の動作モードがスルーモードであるので、スレーブアドレス378をスレーブアドレス設定レジスタ34の設定値(読み出し対象装置のアドレス値)に変更し、スレーブ選択レジスタ36の設定値に従って選択したスレーブ装置(読み出し対象装置)に対して変更後のスレーブアドレス378(読み出し対象装置のアドレス値)及びリード信号380を送信する。
Next, the
読み出し対象装置は、通信制御装置120から変更後のスレーブアドレス378(読み出し対象装置のアドレス値)及びリード信号380を受信し、変更後のスレーブアドレス378(読み出し対象装置のアドレス値)が自己のアドレス値と一致するので通信制御装置120にアクノリッジ信号382を送信する。ここで、読み出し対象装置は、その動作モードをリードモードにセットする。通信制御装置120は、読み出し対象装置から受信したアクノリッジ信号382をマスター装置110に送信した後、シリアルバス114を解放する。
The read target device receives the changed slave address 378 (read target device address value) and the
次に、読み出し対象装置は、アドレスレジスタにセットされたアドレスに割り当てられた内部レジスタ(すなわち、読み出し対象レジスタ)からmバイトデータを読み出し、最初の1バイトデータ384−1を通信制御装置120に送信する。通信制御装置120は、読み出し対象装置から最初の1バイトデータ384−1を受信し、マスター装置110に送信する。マスター装置110は、通信制御装置120から最初の1バイトデータ384−1を受信し、通信制御装置120にアクノリッジ信号386−1を送信した後、シリアルバス114を解放する。通信制御装置120は、マスター装置110から受信したアクノリッジ信号386−1を読み出し対象装置に送信する。以降は、読み出し対象装置は読み出したデータを1バイトずつ送信し、通信制御装置120は1バイトずつデータを受信してマスター装置110に送信し、マスター装置110は通信制御装置120から1バイトデータを受信する毎に通信制御装置120にアクノリッジ信号を送信し、通信制御装置120はマスター装置110から受信したアクノリッジ信号を読み出し対象装置に送信した後シリアルバス114を解放する処理を繰り返す。そして、通信制御装置120が読み出し対象装置から受信した最後の1バイトデータ384−mを送信すると、マスター装置110は1バイトデータ384−mを受信し、ノットアクノリッジ信号386−mを送信する。通信制御装置120は、マスター装置110から受信したノットアクノリッジ信号386−mを読み出し対象装置に送信する。読み出し対象装置は、通信制御装置120からノットアクノリッジ信号384−mを受信する(すなわち、アクノリッジ信号を受信しない)ので。次の1バイトデータの送信を行わず、mバイトデータの送信を終了する。
Next, the read target device reads m-byte data from the internal register (that is, the read target register) assigned to the address set in the address register, and transmits the first 1-byte data 384-1 to the communication control device 120. To do. The communication control device 120 receives the first 1-byte data 384-1 from the read target device and transmits it to the
最後に、マスター装置110は、ストップコンディション388を送信した後シリアルバス114を解放して書き込みコマンドの送信を終了する。
Finally, after transmitting the
3−3.第1のデータ通信システムのコマンドシーケンス
図8は、図5で説明したデータ通信システム101において、マスター装置110がスレーブ装置1〜4(150−1〜150−4)の内部レジスタを順に設定するために送信するコマンドシーケンスの第1の例を示す図である。図8の説明において、スレーブ装置1〜4(150−1〜150−4)のアドレス値はすべて40Hであるものとする。また、図8及び後述する図9、図10の説明において、通信制御装置120のアドレス値は36Hであり、スレーブ装置5〜8(160〜190)のアドレス値はそれぞれ40H、41H、42H、43Hであり、通信用アドレス設定レジスタ32、スレーブアドレス設定レジスタ34、スレーブ選択レジスタ36の内部アドレスは、それぞれ0010H、0014H、0004Hであるものとする。
3-3. Command Sequence of First Data Communication System FIG. 8 shows the
なお、図8及び後述する図9、図10のコマンドシーケンスにおける書き込みコマンド200−1〜200−11は、図6(A)で説明した形式のコマンド(m=1の場合)である。また、図8及び後述する図9、図10のコマンドシーケンスにおける書き込みコマンド300−1〜300−4は、図7(A)で説明した形式のコマンド(m=2の場合)である。 Note that the write commands 200-1 to 200-11 in the command sequences of FIG. 8 and FIGS. 9 and 10 described later are commands in the format described in FIG. 6A (when m = 1). Also, the write commands 300-1 to 300-4 in the command sequences of FIG. 8 and FIGS. 9 and 10 described later are commands in the format described in FIG. 7A (when m = 2).
書き込みコマンド200−1は通信制御装置120の通信用アドレス設定レジスタ32(アドレス0010H)に2FH(スルーID)を設定するためのコマンド(スルーID設定コマンド)である。 The write command 200-1 is a command (through ID setting command) for setting 2FH (through ID) in the communication address setting register 32 (address 0010H) of the communication control device 120.
書き込みコマンド200−2は通信制御装置120のスレーブアドレス設定レジスタ34(アドレス0014H)に40H(スレーブ装置1〜4(150−1〜150−4)のアドレス値)を設定するためのコマンド(スレーブアドレス設定コマンド)である。
The write command 200-2 is a command (slave address) for setting 40H (address values of
書き込みコマンド200−3は通信制御装置120のスレーブ選択レジスタ36(アドレス0004H)に01H(接続先としてスレーブ装置1(150−1)を選択するための選択情報)を設定するためのコマンド(スレーブ選択コマンド)である。 The write command 200-3 is a command (slave selection) for setting 01H (selection information for selecting the slave device 1 (150-1) as a connection destination) in the slave selection register 36 (address 0004H) of the communication control device 120. Command).
書き込みコマンド300−1はスレーブ装置1(150−1)の内部レジスタ(アドレス0020H)に2バイトデータ0123Hを設定するためのコマンドである。 The write command 300-1 is a command for setting the 2-byte data 0123H in the internal register (address 0020H) of the slave device 1 (150-1).
書き込みコマンド200−4は通信制御装置120のスレーブ選択レジスタ36(アドレス0004H)に02H(接続先としてスレーブ装置2(150−2)を選択するための選択情報)を設定するためのコマンド(スレーブ選択コマンド)である。 The write command 200-4 is a command (slave selection) for setting 02H (selection information for selecting the slave device 2 (150-2) as a connection destination) in the slave selection register 36 (address 0004H) of the communication control device 120. Command).
書き込みコマンド300−2はスレーブ装置2(150−2)の内部レジスタ(アドレス0020H)に2バイトデータ4567Hを設定するためのコマンドである。 The write command 300-2 is a command for setting 2-byte data 4567H in the internal register (address 0020H) of the slave device 2 (150-2).
書き込みコマンド200−5は通信制御装置120のスレーブ選択レジスタ36(アドレス0004H)に04H(接続先としてスレーブ装置3(150−3)を選択するための選択情報)を設定するためのコマンド(スレーブ選択コマンド)である。 The write command 200-5 is a command (slave selection) for setting 04H (selection information for selecting the slave device 3 (150-3) as a connection destination) in the slave selection register 36 (address 0004H) of the communication control device 120. Command).
書き込みコマンド300−3はスレーブ装置3(150−3)の内部レジスタ(アドレス0020H)に2バイトデータ89ABHを設定するためのコマンドである。 The write command 300-3 is a command for setting the 2-byte data 89ABH in the internal register (address 0020H) of the slave device 3 (150-3).
書き込みコマンド200−6は通信制御装置120のスレーブ選択レジスタ36(アドレス0004H)に08H(接続先としてスレーブ装置4(150−4)を選択するための選択情報)を設定するためのコマンド(スレーブ選択コマンド)である。 The write command 200-6 is a command (slave selection) for setting 08H (selection information for selecting the slave device 4 (150-4) as a connection destination) in the slave selection register 36 (address 0004H) of the communication control device 120. Command).
書き込みコマンド300−4はスレーブ装置4(150−4)の内部レジスタ(アドレス0020H)に2バイトデータCDEFHを設定するためのコマンドである。 The write command 300-4 is a command for setting the 2-byte data CDEFH in the internal register (address 0020H) of the slave device 4 (150-4).
なお、書き込みコマンド200−1〜200−9において、図6(A)で説明したスレーブアドレス204に36H(通信制御装置120のアドレス値)が指定されているので、マスター装置110は通信制御装置120の内部レジスタを設定することができる。
In the write commands 200-1 to 200-9, 36H (address value of the communication control device 120) is specified for the
また、書き込みコマンド300−1〜300−4において、図7(A)で説明したスレーブアドレス204及び212に2FH(スルーID)が指定されているので、マスター装置110は通信制御装置120をスルーしてそれぞれスレーブ装置1〜4(150−1〜150−4)の内部レジスタを設定することができる。
Further, in the write commands 300-1 to 300-4, 2FH (through ID) is specified for the slave addresses 204 and 212 described in FIG. 7A, so that the
図9は、図5で説明したデータ通信システム101において、マスター装置110がスレーブ装置1〜4(150−1〜150−4)の内部レジスタを順に設定するために送信するコマンドシーケンスの第2の例を示す図である。図9の説明において、スレーブ装置1、2(150−1、150−2)のアドレス値は40Hであり、スレーブ装置3、4(150−3、150−4)のアドレス値は41Hであるものとする。
FIG. 9 shows a second command sequence transmitted by the
図9のコマンドシーケンスにおいて、書き込みコマンド200−1〜200−6、300−1〜300−4は図8のコマンドシーケンスと全く同じであるため同じ符号を付しており、説明を省略する。 In the command sequence of FIG. 9, the write commands 200-1 to 200-6 and 300-1 to 300-4 are the same as the command sequence of FIG.
書き込みコマンド200−7は通信制御装置120のスレーブアドレス設定レジスタ34(アドレス0014H)に41H(スレーブ装置3、4(150−3、150−4)のアドレス値)を設定するためのコマンド(スレーブアドレス設定コマンド)である。 The write command 200-7 is a command (slave address) for setting 41H (address values of slave devices 3, 4 (150-3, 150-4)) in the slave address setting register 34 (address 0014H) of the communication control device 120. Setting command).
図9のコマンドシーケンスによれば、書き込みコマンド200−7によって、スレーブアドレス設定レジスタ34の設定値を前のデータ通信対象のスレーブ装置2(150−2)のアドレス値(40H)から次のデータ通信対象のスレーブ装置3(150−3)のアドレス値(41H)に変更するだけで、アドレス値の異なるスレーブ装置に対しても簡単にデータ通信を行うことができる。
According to the command sequence of FIG. 9, the set value of the slave
図10は、図5で説明したデータ通信システム101において、マスター装置110がスレーブ装置1〜4(150−1〜150−4)の内部レジスタを順に設定するために送信するコマンドシーケンスの第3の例を示す図である。図10の説明において、スレーブ装置1〜4(150−1〜4)のアドレス値はそれぞれ40H、41H、42H、43Hであるものとする。また、通信制御装置120は、スレーブ装置1〜4(150−1〜150−4)に対応して4つのスレーブアドレス設定レジスタ50、52、54、56を有し、スレーブアドレス設定レジスタ50、52、54、56の内部アドレスは、それぞれ0014H、0018H、001CH、0020Hであるものとする。さらに、通信制御装置120は、スレーブ選択レジスタ36の設定値に従い選択するスレーブ装置1〜4(150−1〜150−4)に対して、図7(A)で説明したスレーブアドレス312を、対応するスレーブアドレス設定レジスタ50、52、54、56の設定値にそれぞれ変更してスレーブ装置1〜4(150−1〜150−4)に送信するものとする。
FIG. 10 shows a third command sequence transmitted from the
図10のコマンドシーケンスにおいて、書き込みコマンド200−1、200−3〜200−6、300−1〜300−4は図8のコマンドシーケンスと全く同じであるため同じ符号を付しており、説明を省略する。 In the command sequence of FIG. 10, the write commands 200-1, 200-3 to 200-6, 300-1 to 300-4 are the same as the command sequence of FIG. Omitted.
書き込みコマンド200−8は通信制御装置120のスレーブアドレス設定レジスタ50(アドレス0014H)に40H(スレーブ装置1(150−1)のアドレス値)を設定するためのコマンド(スレーブアドレス設定コマンド)である。 The write command 200-8 is a command (slave address setting command) for setting 40H (address value of the slave device 1 (150-1)) in the slave address setting register 50 (address 0014H) of the communication control device 120.
書き込みコマンド200−9は通信制御装置120のスレーブアドレス設定レジスタ52(アドレス0018H)に41H(スレーブ装置2(150−2)のアドレス値)を設定するためのコマンド(スレーブアドレス設定コマンド)である。 The write command 200-9 is a command (slave address setting command) for setting 41H (address value of the slave device 2 (150-2)) in the slave address setting register 52 (address 0018H) of the communication control device 120.
書き込みコマンド200−10は通信制御装置120のスレーブアドレス設定レジスタ54(アドレス001CH)に42H(スレーブ装置3(150−3)のアドレス値)を設定するためのコマンド(スレーブアドレス設定コマンド)である。 The write command 200-10 is a command (slave address setting command) for setting 42H (address value of the slave device 3 (150-3)) in the slave address setting register 54 (address 001CH) of the communication control device 120.
書き込みコマンド200−11は通信制御装置120のスレーブアドレス設定レジスタ56(アドレス0020H)に43H(スレーブ装置4(150−4)のアドレス値)を設定するためのコマンド(スレーブアドレス設定コマンド)である。 The write command 200-11 is a command (slave address setting command) for setting 43H (address value of the slave device 4 (150-4)) in the slave address setting register 56 (address 0020H) of the communication control device 120.
図10のコマンドシーケンスによれば、書き込みコマンド200−8、200−9、200−10、200−11によって、スレーブアドレス設定レジスタ50、52、54、56の設定値をそれぞれ設定することにより、スレーブ選択レジスタ36の設定値に従って選択されるスレーブ装置とそのアドレス値の対応テーブルが通信制御装置120に作成される。そのため、図10のコマンドシーケンスによれば、書き込みコマンド200−3、200−4、200−5、200−6によってデータ通信対象のスレーブ装置の選択を変更するだけでアドレス値の異なるスレーブ装置に対しても簡単にデータ通信を行うことができる。
According to the command sequence of FIG. 10, by setting the setting values of the slave address setting registers 50, 52, 54, and 56 with the write commands 200-8, 200-9, 200-10, and 200-11, the slave A correspondence table between the slave device selected according to the set value of the
このように、本実施の形態のデータ通信システム101によれば、マスター装置110はスレーブ装置1〜4(150−1〜150−4)とデータ通信を行う前にスレーブ選択レジスタ36に選択情報を設定するスレーブ選択コマンドを通信制御装置120に送信し、通信制御装置120はスレーブ選択レジスタ36の設定値に基づいてデータ通信対象装置を選択する。従って、スレーブ装置1〜4(150−1〜150−4)が同一のアドレス値を有していても、マスター装置110はスレーブ選択レジスタ36の設定値を変更することによりスレーブ装置1〜4(150−1〜150−4)のいずれかを選択してデータ通信を行うことができる。
Thus, according to the
また、本実施の形態のデータ通信システム101によれば、マスター装置110はスレーブ装置1〜4(150−1〜150−4)とデータ通信を行う際にはスレーブアドレスにスルーIDが指定されたデータ通信用コマンドを通信制御装置120に送信し、通信制御装置120はマスター装置110から受信したコマンドに含まれるスレーブアドレスとスルーIDの比較結果に基づいて、当該コマンドに変換処理を施してスレーブ装置1〜4(150−1〜150−4)に送信するか否かを制御する。すなわち、スレーブ装置1〜4(150−1〜150−4)のいずれかのアドレス値とスレーブ装置5〜8(160〜190)のいずれかのアドレス値が同じであったとしても、マスター装置110は、スレーブ装置1〜4(150−1〜150−4)とデータ通信を行うことができる。
Further, according to the
また、本実施の形態のデータ通信システム101によれば、マスター装置110はスレーブ装置1〜4(150−1〜150−4)とデータ通信を行う前にスルーID設定コマンドを通信制御装置120に送信する。従って、スルーIDを可変に設定できるので、データ通信システム101の構成を変更しても柔軟に対応することができる。
Further, according to the
また、本実施の形態のデータ通信システム101によれば、マスター装置110はスレーブ装置1〜4(150−1〜150−4)とデータ通信を行う前にスレーブアドレス設定コマンドを通信制御装置120に送信する。従って、スレーブ装置1〜4(150−1〜150−4)の2つ以上が異なるアドレス値を有していても、マスター装置110はスレーブアドレス設定レジスタ34の設定値を変更することにより、スレーブ装置1〜4(150−1〜150−4)とデータ通信を行うことができる。
Further, according to the
また、本実施の形態のデータ通信システム101によれば、マスター装置110が送信するデータ通信用コマンドには、スルーIDが指定された第1のスレーブアドレス304(354)とダミーのアドレス値が指定された第2のスレーブアドレス312(362)が含まれる。そのため、通信制御装置120は第1のスレーブアドレス304(354)により当該コマンドを変換してスレーブ装置1〜4(150−1〜150−4)に送信するか否かを判断した後、第2のスレーブアドレス312(362)を、スレーブ装置1〜4(150−1〜150−4)のいずれかのアドレス値に置き換えて送信することができる。従って、通信制御装置120は、データ通信用コマンドをスレーブ装置1〜4(150−1〜150−4)にリアルタイムに送信することができる。
Further, according to the
4.第2のデータ通信システムの動作説明
4−1.第2のデータ通信システムの構成
図11は、I2Cバス通信プロトコルに基づいてデータ通信を行うデータ通信システムの第2の構成例について説明するための図である。図11のデータシステム102の構成は、図2で説明したデータ通信システム2の構成に対応する。なお、図5のデータ通信システム101と同じ構成については、同じ符号を付しており説明を省略する。
4). Explanation of operation of second data communication system 4-1. Configuration of Second Data Communication System FIG. 11 is a diagram for describing a second configuration example of the data communication system that performs data communication based on the I 2 C bus communication protocol. The configuration of the
データ通信システム102は、マスター装置110、通信制御装置1〜3(120−1〜120−3)、スレーブ装置1〜8(150−1〜150−4、160〜190)を含んで構成されている。
The
通信制御装置1〜3(120−1〜120−3)の内部構成は図5で説明した通信制御装置120と同じである。すなわち、通信制御装置1(120−1)は、通信用アドレス設定レジスタ32−1、スレーブアドレス設定レジスタ34−1、スレーブ選択レジスタ36−1等を含み、通信制御装置2(120−2)は、通信用アドレス設定レジスタ32−2、スレーブアドレス設定レジスタ34−2、スレーブ選択レジスタ36−2等を含み、通信制御装置3(120−3)は、通信用アドレス設定レジスタ32−3、スレーブアドレス設定レジスタ34−3、スレーブ選択レジスタ36−3等を含んでいる。
The internal configuration of the
マスター装置110のSCL出力端子は、シリアルバス112を介して通信制御装置1(120−1)及びスレーブ装置5〜8(160〜190)のSCL入力端子と接続されている。また、マスター装置110のSDA入出力端子は、シリアルバス114を介して通信制御装置1(120−1)及びスレーブ装置5〜8(160〜190)のSDA入力端子と接続されている。
The SCL output terminal of the
通信制御装置1(120−1)のSCL1出力端子及びSDA1入出力端子は、それぞれ、クロック信号線122及びデータ信号線124により通信制御装置2(120−2)のSCL入力端子及びSDA入出力端子と接続されている。通信制御装置2(120−2)のSCL1出力端子及びSDA1入出力端子は、それぞれ、クロック信号線126及びデータ信号線128により通信制御装置3(120−3)のSCL入力端子及びSDA入出力端子と接続されている。通信制御装置3(120−3)のSCL1出力端子及びSDA1入出力端子は、それぞれ、クロック信号線130−1及びデータ信号線132−1によりスレーブ装置1(150−1)のSCL入力端子及びSDA入出力端子と接続されている。同様に、通信制御装置3(120−3)のSCL2出力端子及びSDA2入出力端子は、それぞれ、クロック信号線130−2及びデータ信号線132−2によりスレーブ装置2(150−2)のSCL入力端子及びSDA入出力端子と接続されている。同様に、通信制御装置3(120−3)のSCL3出力端子及びSDA3入出力端子は、それぞれ、クロック信号線130−3及びデータ信号線132−3によりスレーブ装置3(150−3)のSCL入力端子及びSDA入出力端子と接続されている。同様に、通信制御装置3(120−3)のSCL4出力端子及びSDA4入出力端子は、それぞれ、クロック信号線130−4及びデータ信号線132−4によりスレーブ装置4(150−4)のSCL入力端子及びSDA入出力端子と接続されている。
The SCL1 output terminal and the SDA1 input / output terminal of the communication control apparatus 1 (120-1) are connected to the SCL input terminal and the SDA input / output terminal of the communication control apparatus 2 (120-2) by the
マスター装置110は、スタートコンディションを送信した後、所定のコマンドを送信することにより通信制御装置1(120−1)及びスレーブ装置5〜8(160〜190)とデータ通信を開始することができる。また、マスター装置110は、図3及び図4のフローチャートに従って通信制御装置1(120−1)のレジスタ設定を行った後は、通信制御装置2(120−2)とデータ通信を行うことができる。また、マスター装置110は、図3及び図4のフローチャートに従って通信制御装置1、2(120−1、120−2)のレジスタ設定を行った後は、通信制御装置3(120−3)とデータ通信を行うことができる。また、マスター装置110は、図3及び図4のフローチャートに従って通信制御装置1〜3(120−1〜120−3)のレジスタ設定を行った後は、スレーブ装置1〜4(150−1〜150−4)とデータ通信を行うこともできる。
After transmitting the start condition, the
データ通信を終了する場合には、マスター装置110はストップコンディションを送信する。
When the data communication is terminated, the
なお、図示しないが、通信制御装置1(120−1)のSCL2出力端子及びSDA2入出力端子、SCL3出力端子及びSDA3入出力端子、SCL4出力端子及びSDA4入出力端子にはそれぞれスレーブ装置又は通信制御装置を接続することができる。同様に、通信制御装置2(120−2)のSCL2出力端子及びSDA2入出力端子、SCL3出力端子及びSDA3入出力端子、SCL4出力端子及びSDA4入出力端子にはそれぞれスレーブ装置又は通信制御装置を接続することができる。従って、複数の通信制御装置を縦続接続することによりマスター装置110とデータ通信可能なスレーブ装置の数を増やすことができる。
Although not shown, the SCL2 output terminal and the SDA2 input / output terminal, the SCL3 output terminal and the SDA3 input / output terminal, the SCL4 output terminal and the SDA4 input / output terminal of the communication control device 1 (120-1) are respectively slave devices or communication control. Devices can be connected. Similarly, the SCL2 output terminal and the SDA2 input / output terminal, the SCL3 output terminal and the SDA3 input / output terminal, the SCL4 output terminal and the SDA4 input / output terminal of the communication control apparatus 2 (120-2) are connected to the slave apparatus or the communication control apparatus, respectively. can do. Therefore, the number of slave devices capable of data communication with the
4−2.第2のデータ通信システムのコマンド形式
図12(A)、図12(B)は、図11で説明したマスター装置110がスレーブ装置1〜4(150−1〜150−4)のいずれかとデータ通信する時に送信するコマンドの形式の一例を示す図である。なお、マスター装置110が図12(A)、図12(B)のコマンドを送信する前に、図3及び図4のフローチャートに従って通信用アドレス設定レジスタ32−1、32−2、32−3には、通信制御装置1(120−2)、通信制御装置2(120−2)、通信制御装置3(120−3)をそれぞれスルーさせるためのスルーID1、スルーID2、スルーID3が設定されているものとする。また、スレーブアドレス設定レジスタ34−1、34−2、34−3には、それぞれスルーID2、スルーID3、データ通信対象装置(書き込み対象装置又は読み出し対象装置)のアドレス値が設定されているものとする。さらに、スレーブ選択レジスタ36−1、36−2、36−3には、それぞれ接続先として通信制御装置2(120−2)、通信制御装置3(120−3)、データ通信対象装置(書き込み対象装置又は読み出し対象装置)を選択するための選択情報が設定されているものとする。
4-2. Command Format of Second Data Communication System FIGS. 12A and 12B show that the
図12(A)は、書き込みコマンドの形式の一例である。書き込みコマンド400は、スタートコンディション402により開始し、ストップコンディション430により終了する。
FIG. 12A shows an example of the format of the write command. The
まず、マスター装置110は、スタートコンディション402を送信した後、スレーブアドレス404及びライト信号406を送信し、通信制御装置1(120−1)及びスレーブ装置5〜8(160〜190)はスレーブアドレス404及びライト信号406を受信する。ここで、マスター装置110は、スレーブアドレス404としてスルーID1を送信する。スルーID1は、通信制御装置1(120−1)及びスレーブ装置5〜8(160〜190)のアドレス値と異なるアドレス値が選択される。マスター装置110は、スレーブアドレス404及びライト信号406を送信した後、シリアルバス114を解放する。
First, after transmitting the
通信制御装置1(120−1)は、受信したスレーブアドレス404(スルーID1)が通信用アドレス設定レジスタ32の設定値(スルーID1)と一致するので、その動作モードをこれ以降の受信データを通信制御装置2(120−2)に送信可能なスルーモードに設定する。そして、通信制御装置1(120−1)はアクノリッジ信号408をマスター装置110に送信し、マスター装置110はアクノリッジ信号408を受信する。通信制御装置1(120−1)は、アクノリッジ信号408を送信した後、シリアルバス114を解放する。
Since the received slave address 404 (through ID 1) matches the set value (through ID 1) of the communication
次に、マスター装置110は、スタートコンディション410−1を再度送信し、スレーブアドレス412−1及びライト信号414−1を送信した後シリアルバス114を解放する。通信制御装置1(120−1)はスレーブアドレス412−1及びライト信号414−1を受信する。通信制御装置1(120−1)は、その動作モードがスルーモードになっているので、スレーブアドレス412−1をスレーブアドレス設定レジスタ34−1の設定値(スルーID2)に変更し、スレーブ選択レジスタ36−1の設定値に従って選択した通信制御装置2(120−2)に対して変更後のスレーブアドレス412−1(スルーID2)及びライト信号414−1を送信する。
Next, the
通信制御装置2(120−2)は、通信制御装置1(120−1)から変更後のスレーブアドレス412−1(スルーID2)及びライト信号414−1を受信し、変更後のスレーブアドレス412−1(スルーID2)が通信用アドレス設定レジスタ32−2の設定値(スルーID2)と一致するので、その動作モードをこれ以降の受信データを通信制御装置3(120−3)に送信可能なスルーモードに設定する。そして、通信制御装置2(120−2)は、通信制御装置1(120−1)にアクノリッジ信号416−1を送信する。通信制御装置1(120−1)は、通信制御装置2(120−2)から受信したアクノリッジ信号416−1をマスター装置110に送信した後、シリアルバス114を解放する。
The communication control device 2 (120-2) receives the changed slave address 412-1 (through ID2) and the write signal 414-1 from the communication control device 1 (120-1), and receives the changed slave address 412-. Since 1 (through ID2) matches the setting value (through ID2) of the communication address setting register 32-2, the operation mode can be transmitted to the communication control device 3 (120-3). Set to mode. Then, the communication control apparatus 2 (120-2) transmits an acknowledge signal 416-1 to the communication control apparatus 1 (120-1). The communication control device 1 (120-1) releases the
次に、マスター装置110は、スタートコンディション410−2を再度送信し、スレーブアドレス412−2及びライト信号414−2を送信した後シリアルバス114を解放する。通信制御装置1(120−1)の動作モードがスルーモードになっているので、通信制御装置2(120−2)は、通信制御装置1(120−1)から変更後のスレーブアドレス412−2(スルーID2)及びライト信号414−2を受信する。通信制御装置2(120−2)は、その動作モードがスルーモードになっているので、スレーブアドレス412−2をスレーブアドレス設定レジスタ34−2の設定値(スルーID3)に変更し、スレーブ選択レジスタ36−2の設定値に従って選択した通信制御装置3(120−3)に対して変更後のスレーブアドレス412−2(スルーID3)及びライト信号414−2を送信する。
Next, the
通信制御装置3(120−3)は、通信制御装置2(120−2)から変更後のスレーブアドレス412−2(スルーID3)及びライト信号414−2を受信し、変更後のスレーブアドレス412−2(スルーID3)が通信用アドレス設定レジスタ32−3の設定値(スルーID3)と一致するので、その動作モードをこれ以降の受信データをスレーブ装置1〜4(150−1〜150−4)のいずれかに送信可能なスルーモードに設定する。そして、通信制御装置3(120−3)は、通信制御装置2(120−2)にアクノリッジ信号416−2を送信する。通信制御装置2(120−2)は、通信制御装置3(120−3)から受信したアクノリッジ信号416−2を通信制御装置1(120−1)に送信する。通信制御装置1(120−1)は、通信制御装置2(120−2)から受信したアクノリッジ信号416−2をマスター装置110に送信した後、シリアルバス114を解放する。
The communication control device 3 (120-3) receives the changed slave address 412-2 (through ID 3) and the write signal 414-2 from the communication control device 2 (120-2), and receives the changed slave address 412-. 2 (Through ID3) matches the setting value (Through ID3) of the communication address setting register 32-3, so that the subsequent received data is changed to the
次に、マスター装置110は、スタートコンディション410−3を再度送信し、スレーブアドレス412−3及びライト信号414−3を送信した後シリアルバス114を解放する。通信制御装置1、2(120−1、120−2)の動作モードがスルーモードになっているので、通信制御装置3(120−3)は、通信制御装置2(120−2)から変更後のスレーブアドレス412−3(スルーID3)及びライト信号414−3を受信する。通信制御装置3(120−3)は、その動作モードがスルーモードになっているので、スレーブアドレス412−3をスレーブアドレス設定レジスタ34−3の設定値(書き込み対象装置のアドレス値)に変更し、スレーブ選択レジスタ36−3の設定値に従って選択したスレーブ装置(書き込み対象装置)に対して変更後のスレーブアドレス412−3(書き込み対象装置のアドレス値)及びライト信号414−3を送信する。
Next, the
書き込み対象装置は、通信制御装置3(120−3)から変更後のスレーブアドレス412−3(書き込み対象装置のアドレス値)及びライト信号414−3を受信し、変更後のスレーブアドレス412−3(書き込み対象装置のアドレス値)が自己のアドレス値と一致するので通信制御装置3(120−3)にアクノリッジ信号416−3を送信する。通信制御装置3(120−3)は、書き込み対象装置から受信したアクノリッジ信号416−3を通信制御装置2(120−2)に送信する。通信制御装置2(120−2)は、通信制御装置3(120−3)から受信したアクノリッジ信号416−3を通信制御装置1(120−1)に送信する。通信制御装置1(120−1)は、通信制御装置2(120−2)から受信したアクノリッジ信号416−3をマスター装置110に送信した後、シリアルバス114を解放する。
The write target device receives the changed slave address 412-3 (address value of the write target device) and the write signal 414-3 from the communication control device 3 (120-3), and receives the changed slave address 412-3 ( Since the address value of the device to be written matches the address value of itself, an acknowledge signal 416-3 is transmitted to the communication control device 3 (120-3). The communication control device 3 (120-3) transmits the acknowledge signal 416-3 received from the write target device to the communication control device 2 (120-2). Communication control device 2 (120-2) transmits acknowledge signal 416-3 received from communication control device 3 (120-3) to communication control device 1 (120-1). The communication control device 1 (120-1) releases the
この時点において通信制御装置1〜3(120−1〜3)の動作モードはすべてスルーモードに設定されており、これ以降、マスター装置110は書き込み対象装置とデータ通信を行うことができる。内部アドレス418〜ストップコンディション430は、図7(A)で説明した内部アドレス318〜ストップコンディション330と同じであるので、以降の説明は省略する。
At this time, the operation modes of the
なお、マスター装置110による通信制御装置1(12−1)の内部レジスタへの書き込みコマンドは、図12(A)の書き込みコマンド400において、スタートコンディション410−1〜アクノリッジ信号416−1、スタートコンディション410−2〜アクノリッジ信号416−2及びスタートコンディション410−3〜アクノリッジ信号416−3を削除したコマンドに相当する。また、マスター装置110による通信制御装置2(12−2)の内部レジスタへの書き込みコマンドは、図12(A)の書き込みコマンド400において、スタートコンディション410−2〜アクノリッジ信号416−2及びスタートコンディション410−3〜アクノリッジ信号416−3を削除したコマンドに相当する。また、マスター装置110による通信制御装置3(12−3)の内部レジスタへの書き込みコマンドは、図12(A)の書き込みコマンド400において、スタートコンディション410−3〜アクノリッジ信号416−3を削除したコマンドに相当する。
Note that the write command to the internal register of the communication control device 1 (12-1) by the
図12(B)は、読み出しコマンドの形式の一例である。読み出しコマンド450は、スタートコンディション452により開始し、ストップコンディション488により終了する。スタートコンディション452〜アクノリッジ信号466−3は、図12(A)で説明したスタートコンディション402〜アクノリッジ信号416−3と同じであるので、説明を省略する。アクノリッジ信号466−3の送信を終了した時点で、通信制御装置1〜3(120−1〜3)の動作モードはすべてスルーモードに設定されており、これ以降、マスター装置110は読み出し対象装置とデータ通信を行うことができる。内部アドレス468〜ストップコンディション488は、図7(B)で説明した内部アドレス368〜ストップコンディション388と同じであるので、以降の説明は省略する。
FIG. 12B shows an example of a read command format. The
なお、マスター装置110による通信制御装置1(12−1)の内部レジスタへの読み出しコマンドは、図12(B)の読み出しコマンド450において、スタートコンディション460−1〜アクノリッジ信号466−1、スタートコンディション460−2〜アクノリッジ信号466−2及びスタートコンディション460−3〜アクノリッジ信号466−3を削除したコマンドに相当する。また、マスター装置110による通信制御装置2(12−2)の内部レジスタへの読み出しコマンドは、図12(B)の読み出しコマンド450において、スタートコンディション460−2〜アクノリッジ信号466−2及びスタートコンディション460−3〜アクノリッジ信号466−3を削除したコマンドに相当する。また、マスター装置110による通信制御装置3(12−3)の内部レジスタへの読み出しコマンドは、図12(B)の読み出しコマンド450において、スタートコンディション460−3〜アクノリッジ信号466−3を削除したコマンドに相当する。
Note that the read command to the internal register of the communication control device 1 (12-1) by the
4−3.第2のデータ通信システムのコマンドシーケンス
図13は、図11で説明したデータ通信システム102において、マスター装置110がスレーブ装置1〜4(150−1〜150−4)とのデータ通信の前に通信制御装置1〜3(120−1〜120−3)の内部レジスタを設定するために送信するコマンドシーケンスの一例を示す図である。図13及び後述する図14の説明において、通信制御装置1〜3(120−1〜120−3)のアドレス値はすべて36Hであり、スレーブ装置1〜4(150−1〜150−4)のアドレス値はそれぞれ40H、41H、42H、43Hであり、スレーブ装置5〜8(160〜190)のアドレス値はそれぞれ40H、41H、42H、43Hであるものとする。また、通信用アドレス設定レジスタ32−1〜32−3の内部アドレスはすべて0010Hであり、スレーブアドレス設定レジスタ34−1〜34−3の内部アドレスはすべて0014Hであり、スレーブ選択レジスタ36−1〜36−3の内部アドレスはすべて0004Hであるものとする。
4-3. Command Sequence of Second Data Communication System FIG. 13 is a diagram illustrating communication between the
なお、図13のコマンドシーケンスにおける書き込みコマンド400−1〜400−13及び後述する図14のコマンドシーケンスにおける書き込みコマンド400−14〜400−23は、図12(A)で説明した形式のコマンド(m=1又は2の場合)である。ただし、書き込みコマンド400−1〜400−23において、図12(A)で説明したように、スタートコンディション410−1〜アクノリッジ信号416−1、スタートコンディション410−2〜アクノリッジ信号416−2及びスタートコンディション410−3〜アクノリッジ信号416−3の一部又は全部は必要に応じて削除されている。 The write commands 400-1 to 400-13 in the command sequence of FIG. 13 and the write commands 400-14 to 400-23 in the command sequence of FIG. 14 to be described later are commands in the format described in FIG. = 1 or 2). However, in the write commands 400-1 to 400-23, as described in FIG. 12A, the start condition 410-1 to the acknowledge signal 416-1, the start condition 410-2 to the acknowledge signal 416-2, and the start condition A part or all of 410-3 to acknowledge signal 416-3 is deleted as necessary.
書き込みコマンド400−1は通信制御装置1(120−1)の通信用アドレス設定レジスタ32−1(アドレス0010H)に2FH(スルーID1)を設定するためのコマンド(スルーID設定コマンド)である。 The write command 400-1 is a command (through ID setting command) for setting 2FH (through ID1) in the communication address setting register 32-1 (address 0010H) of the communication control device 1 (120-1).
書き込みコマンド400−2は通信制御装置1(120−1)のスレーブアドレス設定レジスタ34−1(アドレス0014H)に36H(通信制御装置2(120−2)のアドレス値)を設定するためのコマンド(スレーブアドレス設定コマンド)である。 The write command 400-2 is a command for setting 36H (address value of the communication control device 2 (120-2)) in the slave address setting register 34-1 (address 0014H) of the communication control device 1 (120-1). Slave address setting command).
書き込みコマンド400−3は通信制御装置1(120−1)のスレーブ選択レジスタ36−1(アドレス0004H)に01H(接続先として通信制御装置2(120−2)を選択するための選択情報)を設定するためのコマンド(スレーブ選択コマンド)である。 The write command 400-3 adds 01H (selection information for selecting the communication control device 2 (120-2) as a connection destination) to the slave selection register 36-1 (address 0004H) of the communication control device 1 (120-1). This is a command for setting (slave selection command).
書き込みコマンド400−4は通信制御装置2(120−2)の通信用アドレス設定レジスタ32−2(アドレス0010H)に2EH(スルーID2)を設定するためのコマンド(スルーID設定コマンド)である。 The write command 400-4 is a command (through ID setting command) for setting 2EH (through ID2) in the communication address setting register 32-2 (address 0010H) of the communication control device 2 (120-2).
書き込みコマンド400−5は通信制御装置2(120−2)のスレーブアドレス設定レジスタ34−2(アドレス0014H)に36H(通信制御装置3(120−3)のアドレス値)を設定するためのコマンド(スレーブアドレス設定コマンド)である。 The write command 400-5 is a command for setting 36H (address value of the communication control device 3 (120-3)) in the slave address setting register 34-2 (address 0014H) of the communication control device 2 (120-2). Slave address setting command).
書き込みコマンド400−6は通信制御装置2(120−2)のスレーブ選択レジスタ36−2(アドレス0004H)に01H(接続先として通信制御装置3(120−3)を選択するための選択情報)を設定するためのコマンド(スレーブ選択コマンド)である。 The write command 400-6 adds 01H (selection information for selecting the communication control device 3 (120-3) as a connection destination) to the slave selection register 36-2 (address 0004H) of the communication control device 2 (120-2). This is a command for setting (slave selection command).
書き込みコマンド400−7は通信制御装置1(120−1)のスレーブアドレス設定レジスタ34−1(アドレス0014H)に2EH(スルーID2)を設定するためのコマンド(スレーブアドレス設定コマンド)である。 The write command 400-7 is a command (slave address setting command) for setting 2EH (through ID2) in the slave address setting register 34-1 (address 0014H) of the communication control device 1 (120-1).
書き込みコマンド400−8は通信制御装置3(120−3)の通信用アドレス設定レジスタ32−3(アドレス0010H)に2DH(スルーID3)を設定するためのコマンド(スルーID設定コマンド)である。 The write command 400-8 is a command (through ID setting command) for setting 2DH (through ID3) in the communication address setting register 32-3 (address 0010H) of the communication control device 3 (120-3).
書き込みコマンド400−9は通信制御装置3(120−3)のスレーブアドレス設定レジスタ34−3(アドレス0014H)に40H(スレーブ装置1(150−1)のアドレス値)を設定するためのコマンド(スレーブアドレス設定コマンド)である。 The write command 400-9 is a command (slave) for setting 40H (address value of the slave device 1 (150-1)) in the slave address setting register 34-3 (address 0014H) of the communication control device 3 (120-3). Address setting command).
書き込みコマンド400−10は通信制御装置3(120−3)のスレーブ選択レジスタ36−3(アドレス0004H)に01H(接続先としてスレーブ装置1(150−1)を選択するための選択情報)を設定するためのコマンド(スレーブ選択コマンド)である。
The write command 400-10
書き込みコマンド400−11は通信制御装置1(120−1)のスレーブアドレス設定レジスタ34−1(アドレス0014H)に36H(通信制御装置2(120−2)のアドレス値)を設定するためのコマンド(スレーブアドレス設定コマンド)である。 The write command 400-11 is a command for setting 36H (address value of the communication control device 2 (120-2)) in the slave address setting register 34-1 (address 0014H) of the communication control device 1 (120-1). Slave address setting command).
書き込みコマンド400−12は通信制御装置2(120−2)のスレーブアドレス設定レジスタ34−2(アドレス0014H)に2DH(スルーID3)を設定するためのコマンド(スレーブアドレス設定コマンド)である。 The write command 400-12 is a command (slave address setting command) for setting 2DH (through ID 3) in the slave address setting register 34-2 (address 0014H) of the communication control device 2 (120-2).
書き込みコマンド400−13は通信制御装置1(120−1)のスレーブアドレス設定レジスタ34−1(アドレス0014H)に2EH(スルーID2)を設定するためのコマンド(スレーブアドレス設定コマンド)である。 The write command 400-13 is a command (slave address setting command) for setting 2EH (through ID2) in the slave address setting register 34-1 (address 0014H) of the communication control apparatus 1 (120-1).
なお、書き込みコマンド400−1〜400−3、400−7、400−11、400−13において、図12(A)で説明したスレーブアドレス404に36H(通信制御装置1(120−1)のアドレス値)が指定されているので、マスター装置110は通信制御装置1(120−1)の内部レジスタを設定することができる。
In the write commands 400-1 to 400-3, 400-7, 400-11, and 400-13, the
また、書き込みコマンド400−4〜400−6、400−12において、図12(A)で説明したスレーブアドレス404及び412−1に2FH(スルーID1)が指定されている。さらに、書き込みコマンド400−4〜400−6、400−12の実行時には、スレーブアドレス設定レジスタ34−1に36H(通信制御装置2(120−2)のアドレス値)が設定され、スレーブ選択レジスタ36−1に01H(接続先として通信制御装置2(120−2)を選択するための選択情報)が設定されている。そのため、マスター装置110は通信制御装置1(120−1)をスルーして通信制御装置2(120−2)の内部レジスタを設定することができる。
In the write commands 400-4 to 400-6 and 400-12, 2FH (through ID 1) is specified for the slave addresses 404 and 412-1 described with reference to FIG. Further, when the write commands 400-4 to 400-6 and 400-12 are executed, 36H (address value of the communication control device 2 (120-2)) is set in the slave address setting register 34-1 and the
また、書き込みコマンド400−8〜400−10において、図12(A)で説明したスレーブアドレス404、412−1及び412−2に2FH(スルーID1)が指定されている。さらに、書き込みコマンド400−8〜400−10の実行時には、スレーブアドレス設定レジスタ34−1及びスレーブアドレス設定レジスタ34−2にそれぞれ2EH(スルーID2)及び36H(通信制御装置3(120−3)のアドレス値)が設定され、スレーブ選択レジスタ36−1及び36−2にそれぞれ01H(接続先として通信制御装置2(120−2)を選択するための選択情報)及び01H(接続先として通信制御装置3(120−3)を選択するための選択情報)が設定されている。そのため、マスター装置110は通信制御装置1(120−1)及び通信制御装置2(120−2)をスルーして通信制御装置3(120−3)の内部レジスタを設定することができる。
In the write commands 400-8 to 400-10, 2FH (through ID 1) is specified for the slave addresses 404, 412-1 and 412-2 described with reference to FIG. Further, when the write commands 400-8 to 400-10 are executed, the slave address setting register 34-1 and the slave address setting register 34-2 are set to 2EH (through ID2) and 36H (communication control device 3 (120-3)), respectively. Address value) is set, and 01H (selection information for selecting the communication control device 2 (120-2) as the connection destination) and 01H (communication control device as the connection destination) are set in the slave selection registers 36-1 and 36-2, respectively. 3 (selection information for selecting 120 (120-3)) is set. Therefore, the
図13のコマンドシーケンスを実行することにより、通信制御装置1(120−1)の通信用アドレス設定レジスタ32−1、スレーブアドレス設定レジスタ34−1、スレーブ選択レジスタ36−1にはそれぞれ、2FH(スルーID1)、2EH(スルーID2)、01H(接続先として通信制御装置2(120−2)を選択するための選択情報)が設定される。また、通信制御装置2(120−2)の通信用アドレス設定レジスタ32−2、スレーブアドレス設定レジスタ34−2、スレーブ選択レジスタ36−2にはそれぞれ、2EH(スルーID2)、2DH(スルーID3)、01H(接続先として通信制御装置3(120−3)を選択するための選択情報)が設定される。さらに、通信制御装置3(120−3)の通信用アドレス設定レジスタ32−3、スレーブアドレス設定レジスタ34−3、スレーブ選択レジスタ36−3にはそれぞれ、2DH(スルーID3)、40H(スレーブ装置1(150−1)のアドレス値)、01H(接続先としてスレーブ装置1(150−1)を選択するための選択情報)が設定される。 By executing the command sequence of FIG. 13, the communication address setting register 32-1, the slave address setting register 34-1 and the slave selection register 36-1 of the communication control apparatus 1 (120-1) are each set to 2FH ( Through ID 1), 2EH (through ID 2), and 01H (selection information for selecting the communication control device 2 (120-2) as a connection destination) are set. The communication address setting register 32-2, the slave address setting register 34-2, and the slave selection register 36-2 of the communication control device 2 (120-2) have 2EH (through ID2) and 2DH (through ID3), respectively. , 01H (selection information for selecting the communication control device 3 (120-3) as a connection destination) is set. Further, the communication address setting register 32-3, the slave address setting register 34-3, and the slave selection register 36-3 of the communication control device 3 (120-3) have 2DH (through ID3) and 40H (slave device 1), respectively. (Address value of (150-1)), 01H (selection information for selecting the slave device 1 (150-1) as a connection destination) is set.
図14は、図11で説明したデータ通信システム102において、マスター装置110がスレーブ装置1(150−1)の内部レジスタ、スレーブ装置2(150−2)の内部レジスタの順に設定するために送信するコマンドシーケンスの一例を示す図である。図14のコマンドシーケンスを実行する前に図13のコマンドシーケンスが実行されているものとする。
FIG. 14 is transmitted in the
書き込みコマンド400−14はスレーブ装置1(150−1)の内部レジスタ(アドレス0020H)に2バイトデータ0123Hを設定するためのコマンドである。 The write command 400-14 is a command for setting the 2-byte data 0123H in the internal register (address 0020H) of the slave device 1 (150-1).
書き込みコマンド400−15は通信制御装置1(120−1)のスレーブアドレス設定レジスタ34−1(アドレス0014H)に36H(通信制御装置2(120−2)のアドレス値)を設定するためのコマンド(スレーブアドレス設定コマンド)である。 The write command 400-15 is a command for setting 36H (address value of the communication control device 2 (120-2)) in the slave address setting register 34-1 (address 0014H) of the communication control device 1 (120-1). Slave address setting command).
書き込みコマンド400−16は通信制御装置2(120−2)のスレーブアドレス設定レジスタ34−2(アドレス0014H)に36H(通信制御装置3(120−3)のアドレス値)を設定するためのコマンド(スレーブアドレス設定コマンド)である。 The write command 400-16 is a command for setting 36H (address value of the communication control device 3 (120-3)) in the slave address setting register 34-2 (address 0014H) of the communication control device 2 (120-2). Slave address setting command).
書き込みコマンド400−17は通信制御装置1(120−1)のスレーブアドレス設定レジスタ34−1(アドレス0014H)に2EH(スルーID2)を設定するためのコマンド(スレーブアドレス設定コマンド)である。 The write command 400-17 is a command (slave address setting command) for setting 2EH (through ID2) in the slave address setting register 34-1 (address 0014H) of the communication control apparatus 1 (120-1).
書き込みコマンド400−18は通信制御装置3(120−3)のスレーブアドレス設定レジスタ34−3(アドレス0014H)に41H(スレーブ装置2(150−2)のアドレス値)を設定するためのコマンド(スレーブアドレス設定コマンド)である。 Write command 400-18 is a command (slave) for setting 41H (address value of slave device 2 (150-2)) in slave address setting register 34-3 (address 0014H) of communication control device 3 (120-3). Address setting command).
書き込みコマンド400−19は通信制御装置3(120−3)のスレーブ選択レジスタ36−3(アドレス0004H)に02H(接続先としてスレーブ装置2(150−2)を選択するための選択情報)を設定するためのコマンド(スレーブ選択コマンド)である。
The write command 400-19
書き込みコマンド400−20は通信制御装置1(120−1)のスレーブアドレス設定レジスタ34−1(アドレス0014H)に36H(通信制御装置2(120−2)のアドレス値)を設定するためのコマンド(スレーブアドレス設定コマンド)である。 The write command 400-20 is a command for setting 36H (address value of the communication control device 2 (120-2)) in the slave address setting register 34-1 (address 0014H) of the communication control device 1 (120-1). Slave address setting command).
書き込みコマンド400−21は通信制御装置2(120−2)のスレーブアドレス設定レジスタ34−2(アドレス0014H)に2DH(スルーID3)を設定するためのコマンド(スレーブアドレス設定コマンド)である。 The write command 400-21 is a command (slave address setting command) for setting 2DH (through ID 3) in the slave address setting register 34-2 (address 0014H) of the communication control device 2 (120-2).
書き込みコマンド400−22は通信制御装置1(120−1)のスレーブアドレス設定レジスタ34−1(アドレス0014H)に2EH(スルーID2)を設定するためのコマンド(スレーブアドレス設定コマンド)である。 The write command 400-22 is a command (slave address setting command) for setting 2EH (through ID2) in the slave address setting register 34-1 (address 0014H) of the communication control apparatus 1 (120-1).
書き込みコマンド400−23はスレーブ装置2(150−2)の内部レジスタ(アドレス0020H)に2バイトデータ4567Hを設定するためのコマンドである。 The write command 400-23 is a command for setting the 2-byte data 4567H in the internal register (address 0020H) of the slave device 2 (150-2).
以下、書き込みコマンド400−15〜400−22と同様のコマンドを実行してスレーブ選択レジスタ36−3及びスレーブアドレス設定レジスタ36−4の設定を変更すれば、マスター装置110は通信制御装置1(120−1)、通信制御装置2(120−2)及び通信制御装置3(120−3)をスルーしてスレーブ装置3、4(150−3、150−4)の内部レジスタを設定することができる。
Thereafter, if the same commands as the write commands 400-15 to 400-22 are executed to change the settings of the slave selection register 36-3 and the slave address setting register 36-4, the
なお、書き込みコマンド400−14、400−23において、図12(A)で説明したスレーブアドレス404、412−1、412−2及び412−3に2FH(スルーID1)が指定されている。さらに、書き込みコマンド400−14、400−23の実行時には、スレーブアドレス設定レジスタ34−1、34−2及び34−3にそれぞれ2EH(スルーID2)、2DH(スルーID3)及び40H(スレーブ装置1(150−1)のアドレス値)(又は41H(スレーブ装置2(150−2)のアドレス値))が設定され、スレーブ選択レジスタ36−1、36−2及び36−3にそれぞれ01H(接続先として通信制御装置2(120−2)を選択するための選択情報)、01H(接続先として通信制御装置3(120−3)を選択するための選択情報)及び01H(接続先としてスレーブ装置1(150−1)を選択するための選択情報)(又は02H(接続先としてスレーブ装置2(150−2)を選択するための選択情報))が設定されている。そのため、マスター装置110は通信制御装置1(120−1)、通信制御装置2(120−2)及び通信制御装置3(120−3)をスルーしてスレーブ装置1、2(150−1、150−2)の内部レジスタを設定することができる。
In the write commands 400-14 and 400-23, 2FH (through ID 1) is specified for the slave addresses 404, 412-1, 412-2, and 412-3 described with reference to FIG. Further, when the write commands 400-14 and 400-23 are executed, 2EH (through ID2), 2DH (through ID3), and 40H (slave device 1 ( 150-1) (or 41H (slave device 2 (150-2) address value)) is set, and 01H (connection destination) is set in each of the slave selection registers 36-1, 36-2, and 36-3. Selection information for selecting the communication control device 2 (120-2)), 01H (selection information for selecting the communication control device 3 (120-3) as a connection destination) and 01H (slave device 1 (as a connection destination) (Selection information for selecting 150-1)) (or 02H (selection information for selecting slave device 2 (150-2) as a connection destination) )) It has been set. Therefore, the
このように、本実施の形態のデータ通信システム102によれば、マスター装置110はスレーブ装置1〜4(150−1〜150−4)とデータ通信を行う前に通信制御装置3(120−3)のスレーブ選択レジスタ36−3に選択情報を設定するスレーブ選択コマンドを送信し、通信制御装置3(120−3)はスレーブ選択レジスタ36−3の設定値に基づいてデータ通信対象装置を選択する。従って、スレーブ装置1〜4(150−1〜150−4)が同一のアドレス値を有していても、マスター装置110はスレーブ選択レジスタ36−3の設定値を変更することによりスレーブ装置1〜4(150−1〜150−4)のいずれかを選択してデータ通信を行うことができる。
As described above, according to the
また、本実施の形態のデータ通信システム102によれば、マスター装置110とスレーブ装置1〜4(150−1〜150−4)の間でデータ通信を行う際には、マスター装置110はスレーブアドレスにスルーID1が指定されたデータ通信用コマンドを通信制御装置1(120−1)に送信し、通信制御装置1、2(120−1、120−2)はそれぞれスレーブアドレスにスルーID2、スルーID3が指定されたコマンドを通信制御装置2、3(120−2、120−3)に送信し、通信制御装置3(120−3)は、通信制御装置2(120−2)から受信したコマンドに含まれるスレーブアドレスに基づいて、マスター装置110とスレーブ装置1〜4(150−1〜150−4)の間のデータ通信を制御する。すなわち、マスター装置110は、スレーブ装置1〜4(150−1〜150−4)のアドレス値がスレーブアドレスに指定されたコマンドを送信することなくスレーブ装置1〜4(150−1〜150−4)とデータ通信を行うので、スレーブ装置1〜4(150−1〜150−4)がスレーブ装置5〜8(160〜190)と同一のアドレス値を有していても当該データ通信を行うことができる。
Further, according to the
なお、本発明は本実施形態に限定されず、本発明の要旨の範囲内で種々の変形実施が可能である。 In addition, this invention is not limited to this embodiment, A various deformation | transformation implementation is possible within the range of the summary of this invention.
本発明は、実施の形態で説明した構成と実質的に同一の構成(例えば、機能、方法及び結果が同一の構成、あるいは目的及び効果が同一の構成)を含む。また、本発明は、実施の形態で説明した構成の本質的でない部分を置き換えた構成を含む。また、本発明は、実施の形態で説明した構成と同一の作用効果を奏する構成又は同一の目的を達成することができる構成を含む。また、本発明は、実施の形態で説明した構成に公知技術を付加した構成を含む。 The present invention includes configurations that are substantially the same as the configurations described in the embodiments (for example, configurations that have the same functions, methods, and results, or configurations that have the same objects and effects). In addition, the invention includes a configuration in which a non-essential part of the configuration described in the embodiment is replaced. In addition, the present invention includes a configuration that exhibits the same operational effects as the configuration described in the embodiment or a configuration that can achieve the same object. Further, the invention includes a configuration in which a known technique is added to the configuration described in the embodiment.
1 データ通信システム、2 データ通信システム、10 マスター装置、12 マスター処理部、20 通信制御装置、20−1〜20−N 通信制御装置、30 レジスタファイル、32 通信用アドレス設定レジスタ、34 スレーブアドレス設定レジスタ、36 スレーブ選択レジスタ、40 通信制御処理部、42 スレーブ処理部、44 データ変換処理部、46 通信経路選択部、50−1〜50−n スレーブ装置、101 データ通信システム、102 データ通信システム、110 マスター装置、112 シリアルバス、114 シリアルバス、116 抵抗器、118 抵抗器、120 通信制御装置、120−1〜120−3 通信制御装置、122 クロック信号線、122−1〜122−4 クロック信号線、124 データ信号線、124−1〜124−4 データ信号線、126 クロック信号線、128 データ信号線、130−1〜130−4 クロック信号線、132−1〜132−4 データ信号線、150−1〜150−4 スレーブ装置、160 スレーブ装置、170 スレーブ装置、180 スレーブ装置、190 スレーブ装置 1 data communication system, 2 data communication system, 10 master device, 12 master processing unit, 20 communication control device, 20-1 to 20-N communication control device, 30 register file, 32 communication address setting register, 34 slave address setting Register, 36 slave selection register, 40 communication control processing unit, 42 slave processing unit, 44 data conversion processing unit, 46 communication path selection unit, 50-1 to 50-n slave device, 101 data communication system, 102 data communication system, 110 master device, 112 serial bus, 114 serial bus, 116 resistor, 118 resistor, 120 communication control device, 120-1 to 120-3 communication control device, 122 clock signal line, 122-1 to 122-4 clock signal Line, 124 data signals Line, 124-1 to 124-4 data signal line, 126 clock signal line, 128 data signal line, 130-1 to 130-4 clock signal line, 132-1 to 132-4 data signal line, 150-1 to 150 -4 Slave device, 160 Slave device, 170 Slave device, 180 Slave device, 190 Slave device
Claims (13)
前記通信プロトコルにおけるマスターとして機能するマスター装置と、
前記マスター装置及び前記通信プロトコルにおけるスレーブとして機能する複数のスレーブ装置に接続され、前記マスター装置と前記複数のスレーブ装置の間のデータ通信を制御する通信制御装置と、を含み、
前記通信制御装置は、
データ通信の対象となるスレーブ装置を選択するための選択情報が設定されるスレーブ選択レジスタと、前記スレーブ選択レジスタの設定値に基づいてスレーブ装置を選択し、前記マスター装置と前記選択したスレーブ装置の間のデータ通信を制御する通信制御処理部と、を含み、
前記マスター装置は、
前記複数のスレーブ装置とデータ通信を行う前に前記スレーブ選択レジスタに前記選択情報を設定するコマンドを前記通信制御装置に送信し、前記複数のスレーブ装置とデータ通信を行う際にはスレーブアドレスに所定の通信用のアドレス値が指定されたコマンドを前記通信制御装置に送信するマスター処理部を含み、
前記通信制御装置の前記通信制御処理部は、
前記マスター装置から受信したコマンドに含まれるスレーブアドレスと前記通信用のアドレス値を比較し、比較結果に基づいて、当該コマンドをスレーブアドレスに前記選択したスレーブ装置のアドレス値が指定されたコマンドに変換して前記選択したスレーブ装置に送信するか否かを制御することを特徴とするデータ通信システム。 A data communication system for performing data communication based on a given communication protocol by a master-slave method,
A master device that functions as a master in the communication protocol;
A communication control device that is connected to the master device and a plurality of slave devices that function as slaves in the communication protocol, and controls data communication between the master device and the plurality of slave devices;
The communication control device includes:
A slave selection register in which selection information for selecting a slave device for data communication is set, and a slave device is selected based on a set value of the slave selection register, and the master device and the selected slave device A communication control processing unit for controlling data communication between,
The master device is
Before performing data communication with the plurality of slave devices, a command for setting the selection information in the slave selection register is transmitted to the communication control device, and when performing data communication with the plurality of slave devices, a predetermined slave address is set. Including a master processing unit that transmits a command in which an address value for communication is designated to the communication control device,
The communication control processing unit of the communication control device,
The slave address included in the command received from the master device is compared with the address value for communication, and based on the comparison result, the command is converted into a command in which the address value of the selected slave device is specified as the slave address. And controlling whether or not to transmit to the selected slave device.
前記通信制御装置は、
前記通信用のアドレス値が設定される通信用アドレス設定レジスタを含み、
前記マスター装置の前記マスター処理部は、
前記複数のスレーブ装置とデータ通信を行う前に、前記通信用アドレス設定レジスタに前記通信用のアドレス値を設定するコマンドを前記通信制御装置に送信し、
前記通信制御装置の前記通信制御処理部は、
前記通信用アドレス設定レジスタの設定値を前記通信用のアドレス値として前記比較処理を行うことを特徴とするデータ通信システム。 In claim 1,
The communication control device includes:
Including a communication address setting register in which the communication address value is set;
The master processing unit of the master device is
Before performing data communication with the plurality of slave devices, a command for setting the communication address value in the communication address setting register is transmitted to the communication control device,
The communication control processing unit of the communication control device,
A data communication system, wherein the comparison processing is performed using a setting value of the communication address setting register as the communication address value.
前記通信制御装置は、
データ通信の対象となるスレーブ装置のアドレス値が設定されるスレーブアドレス設定レジスタを含み、
前記マスター装置の前記マスター処理部は、
前記複数のスレーブ装置とデータ通信を行う前に、前記スレーブアドレス設定レジスタにデータ通信の対象となるスレーブ装置のアドレス値を設定するコマンドを前記通信制御装置に送信し、
前記通信制御装置の前記通信制御処理部は、
前記スレーブアドレス設定レジスタの設定値を前記選択したスレーブ装置のアドレス値として前記変換処理を行うことを特徴とするデータ通信システム。 In claim 1 or 2,
The communication control device includes:
Including a slave address setting register in which the address value of the slave device subject to data communication is set,
The master processing unit of the master device is
Before performing data communication with the plurality of slave devices, a command for setting an address value of a slave device to be subjected to data communication in the slave address setting register is transmitted to the communication control device,
The communication control processing unit of the communication control device,
A data communication system, wherein the conversion process is performed using a set value of the slave address setting register as an address value of the selected slave device.
前記通信制御装置は、
前記スレーブ選択レジスタの各設定値と当該各設定値に応じて選択されるスレーブ装置のアドレス値との対応関係を規定する対応テーブルを含み、
前記通信制御装置の前記通信制御処理部は、
前記対応テーブルに基づいて、前記スレーブ選択レジスタの設定値に対応づけられたアドレス値を前記選択したスレーブ装置のアドレス値として前記変換処理を行うことを特徴とするデータ通信システム。 In claim 1 or 2,
The communication control device includes:
Including a correspondence table that defines the correspondence between each setting value of the slave selection register and the address value of the slave device selected according to each setting value;
The communication control processing unit of the communication control device,
A data communication system, wherein the conversion process is performed using an address value associated with a set value of the slave selection register as an address value of the selected slave device based on the correspondence table.
前記マスター装置の前記マスター処理部は、
前記複数のスレーブ装置とデータ通信を行う際には、前記通信用のアドレス値が指定された第1のスレーブアドレスと所定のアドレス値が指定された第2のスレーブアドレスとを含むデータ通信用のコマンドを送信し、
前記通信制御装置の前記通信制御処理部は、
前記第1のスレーブアドレスを前記通信用のアドレス値と比較することにより前記比較処理を行い、前記第1のスレーブアドレスを削除し、前記第2のスレーブアドレスに指定された前記所定のアドレス値を前記選択したスレーブ装置のアドレス値に置き換えることにより前記変換処理を行うことを特徴とするデータ通信システム。 In any one of Claims 1 thru | or 4,
The master processing unit of the master device is
When performing data communication with the plurality of slave devices, the data communication device includes a first slave address in which the communication address value is specified and a second slave address in which a predetermined address value is specified. Send a command,
The communication control processing unit of the communication control device,
The comparison process is performed by comparing the first slave address with the address value for communication, the first slave address is deleted, and the predetermined address value designated as the second slave address is changed. A data communication system, wherein the conversion process is performed by replacing with the address value of the selected slave device.
前記通信プロトコルにおけるマスターとして機能するマスター装置と、
前記マスター装置と前記通信プロトコルにおけるスレーブとして機能する複数のスレーブ装置の間のデータ通信を制御するN個(Nは2以上の整数)の通信制御装置と、を含み、
第1の通信制御装置は、
前記マスター装置及び第2の通信制御装置に接続され、前記マスター装置と前記第2の通信制御装置の間のデータ通信を制御する通信制御処理部を含み、
第k(kは2以上N−1以下の整数)の通信制御装置は、
第k−1の通信制御装置及び第k+1の通信制御装置に接続され、前記第k−1の通信制御装置と前記第k+1の通信制御装置の間のデータ通信を制御する通信制御処理部を含み、
第Nの通信制御装置は、
第N−1の通信制御装置及び前記複数のスレーブ装置に接続され、データ通信の対象となるスレーブ装置を選択するための選択情報が設定されるスレーブ選択レジスタと、前記スレーブ選択レジスタの設定値に基づいてスレーブ装置を選択し、前記第N−1の通信制御装置と前記選択したスレーブ装置の間のデータ通信を制御する通信制御処理部と、を含み、
前記マスター装置は、
前記複数のスレーブ装置とデータ通信を行う前に前記スレーブ選択レジスタに前記選択情報を設定するコマンドを前記第1の通信制御装置に送信し、前記複数のスレーブ装置とデータ通信を行う際にはスレーブアドレスに第1の通信用のアドレス値が指定されたコマンドを前記第1の通信制御装置に送信するマスター処理部を含み、
前記第1の通信制御装置の前記通信制御処理部は、
前記マスター装置から受信したコマンドに含まれるスレーブアドレスと前記第1の通信用のアドレス値を比較し、比較結果に基づいて、当該コマンドをスレーブアドレスに第2の通信用のアドレス値が指定されたコマンドに変換して前記第2の通信制御装置に送信するか否かを制御し、
前記第kの通信制御装置の前記通信制御処理部は、
前記第k−1の通信制御装置から受信したコマンドに含まれるスレーブアドレスと第kの通信用のアドレス値を比較し、比較結果に基づいて、当該コマンドをスレーブアドレスに第k+1の通信用のアドレス値が指定されたコマンドに変換して前記第k+1の通信制御装置に送信するか否かを制御し、
前記第Nの通信制御装置の通信制御処理部は、
前記第N−1の通信制御装置から受信したコマンドに含まれるスレーブアドレスと第Nの通信用のアドレス値を比較し、比較結果に基づいて、当該コマンドをスレーブアドレスに前記選択したスレーブ装置のアドレス値が指定されたコマンドに変換して前記選択したスレーブ装置に送信するか否かを制御することを特徴とするデータ通信システム。 A data communication system for performing data communication based on a given communication protocol by a master-slave method,
A master device that functions as a master in the communication protocol;
N (N is an integer of 2 or more) communication control devices that control data communication between the master device and a plurality of slave devices functioning as slaves in the communication protocol,
The first communication control device
A communication control processing unit that is connected to the master device and the second communication control device and controls data communication between the master device and the second communication control device;
The k-th communication control device (k is an integer of 2 to N-1)
A communication control processing unit that is connected to the (k-1) th communication control device and the (k + 1) th communication control device and controls data communication between the (k-1) th communication control device and the (k + 1) th communication control device; ,
The Nth communication control device
A slave selection register that is connected to the N-1th communication control device and the plurality of slave devices, and in which selection information for selecting a slave device to be subjected to data communication is set, and a set value of the slave selection register A slave device based on the communication control processing unit for controlling data communication between the N-1th communication control device and the selected slave device,
The master device is
Before performing data communication with the plurality of slave devices, a command for setting the selection information in the slave selection register is transmitted to the first communication control device, and when performing data communication with the plurality of slave devices, the slave Including a master processing unit that transmits a command in which an address value for first communication is specified as an address to the first communication control device;
The communication control processing unit of the first communication control device includes:
The slave address included in the command received from the master device is compared with the address value for the first communication, and based on the comparison result, the address value for the second communication is designated as the slave address for the command. Control whether to convert to a command and transmit to the second communication control device,
The communication control processing unit of the k-th communication control device;
The slave address included in the command received from the k-1th communication control device is compared with the address value for the kth communication, and based on the comparison result, the command is used as the slave address and the k + 1th communication address. Control whether to convert the value into a specified command and send it to the k + 1 th communication control device;
The communication control processing unit of the Nth communication control device comprises:
The slave address included in the command received from the N-1th communication control device is compared with the address value for the Nth communication, and based on the comparison result, the address of the selected slave device as the slave address. A data communication system characterized by controlling whether or not a value is converted into a designated command and transmitted to the selected slave device.
前記通信プロトコルはI2Cバス通信プロトコルであることを特徴とするデータ通信システム。 In any one of Claims 1 thru | or 6.
A data communication system, wherein the communication protocol is an I 2 C bus communication protocol.
データ通信の対象となるスレーブ装置を選択するための選択情報が設定されるスレーブ選択レジスタと、前記スレーブ選択レジスタの設定値に基づいてスレーブ装置を選択し、前記マスター装置と前記選択したスレーブ装置の間のデータ通信を制御する通信制御処理部と、を含み、
前記通信制御処理部は、
前記マスター装置から受信したコマンドに含まれるスレーブアドレスと所定の通信用のアドレス値を比較し、比較結果に基づいて、当該コマンドをスレーブアドレスに前記選択したスレーブ装置のアドレス値が指定されたコマンドに変換して前記選択したスレーブ装置に送信するか否かを制御することを特徴とする通信制御装置。 A communication control device for controlling data communication between a master device functioning as a master in a given communication protocol by a master-slave method and a plurality of slave devices functioning as slaves in the communication protocol,
A slave selection register in which selection information for selecting a slave device for data communication is set, and a slave device is selected based on a set value of the slave selection register, and the master device and the selected slave device A communication control processing unit for controlling data communication between,
The communication control processing unit
The slave address included in the command received from the master device is compared with a predetermined communication address value. Based on the comparison result, the command is designated as the slave address with the address value of the selected slave device specified. A communication control device that controls whether to convert and transmit to the selected slave device.
前記通信用のアドレス値が設定される通信用アドレス設定レジスタを含み、
前記通信制御処理部は、
前記通信用アドレス設定レジスタの設定値を前記通信用のアドレス値として前記比較処理を行うことを特徴とする通信制御装置。 In claim 8,
Including a communication address setting register in which the communication address value is set;
The communication control processing unit
The communication control apparatus, wherein the comparison processing is performed using the setting value of the communication address setting register as the communication address value.
データ通信の対象となるスレーブ装置のアドレス値が設定されるスレーブアドレス設定レジスタを含み、
前記通信制御処理部は、
前記スレーブアドレス設定レジスタの設定値を前記選択したスレーブ装置のアドレス値として前記変換処理を行うことを特徴とする通信制御装置。 In claim 8 or 9,
Including a slave address setting register in which the address value of the slave device subject to data communication is set,
The communication control processing unit
The communication control device, wherein the conversion processing is performed using the set value of the slave address setting register as the address value of the selected slave device.
前記スレーブ選択レジスタの各設定値と当該各設定値に応じて選択されるスレーブ装置のアドレス値との対応関係を規定する対応テーブルを含み、
前記通信制御処理部は、
前記対応テーブルに基づいて、前記スレーブ選択レジスタの設定値に対応づけられたアドレス値を前記選択したスレーブ装置のアドレス値として前記変換処理を行うことを特徴とする通信制御装置。 In claim 8 or 9,
Including a correspondence table that defines the correspondence between each setting value of the slave selection register and the address value of the slave device selected according to each setting value;
The communication control processing unit
A communication control device that performs the conversion process using an address value associated with a set value of the slave selection register as an address value of the selected slave device based on the correspondence table.
前記通信制御処理部は、
前記マスター装置から受信したコマンドに含まれる第1のスレーブアドレスを前記通信用のアドレス値と比較することにより前記比較処理を行い、前記第1のスレーブアドレスを削除し、前記コマンドに含まれる第2のスレーブアドレスに指定された所定のアドレス値を前記選択したスレーブ装置のアドレス値に置き換えることにより前記変換処理を行うことを特徴とする通信制御装置。 In any of claims 8 to 11,
The communication control processing unit
The comparison processing is performed by comparing the first slave address included in the command received from the master device with the address value for communication, the first slave address is deleted, and the second slave address included in the command A communication control device that performs the conversion process by replacing a predetermined address value designated as a slave address of the selected slave device with an address value of the selected slave device.
前記通信プロトコルはI2Cバス通信プロトコルであることを特徴とする通信制御装置。 In any one of Claims 8 thru | or 12.
The communication control apparatus, wherein the communication protocol is an I 2 C bus communication protocol.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007276431A JP4978421B2 (en) | 2007-10-24 | 2007-10-24 | Data communication system and communication control device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007276431A JP4978421B2 (en) | 2007-10-24 | 2007-10-24 | Data communication system and communication control device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2009105731A true JP2009105731A (en) | 2009-05-14 |
JP4978421B2 JP4978421B2 (en) | 2012-07-18 |
Family
ID=40706988
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007276431A Expired - Fee Related JP4978421B2 (en) | 2007-10-24 | 2007-10-24 | Data communication system and communication control device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4978421B2 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013175128A (en) * | 2012-02-27 | 2013-09-05 | Ricoh Co Ltd | Serial i/f bus controller and imaging apparatus |
US9413631B2 (en) | 2013-04-24 | 2016-08-09 | Seiko Epson Corporation | Communication circuit, physical quantity measurement device, electronic apparatus, moving object, and communication method |
CN112470137A (en) * | 2019-01-24 | 2021-03-09 | 株式会社矽因赛德 | Master and slave device having cascade structure |
JP7080175B2 (en) | 2016-02-26 | 2022-06-03 | マイクロ モーション インコーポレイテッド | Communication with two or more slaves |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH10198625A (en) * | 1997-01-09 | 1998-07-31 | Matsushita Electric Ind Co Ltd | Address translating device |
JP2000165421A (en) * | 1998-11-25 | 2000-06-16 | Nec Kofu Ltd | Multi-slave bus line system and serial transfer method |
JP2002366425A (en) * | 2001-06-05 | 2002-12-20 | Hitachi Ltd | Data processor having address conversion circuit |
JP2003076654A (en) * | 2001-09-05 | 2003-03-14 | Nec Corp | Data transfer system between memories of dsps |
JP2007251947A (en) * | 2006-03-17 | 2007-09-27 | Agilent Technol Inc | Multi-master, chaind two-wire serial bus |
-
2007
- 2007-10-24 JP JP2007276431A patent/JP4978421B2/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH10198625A (en) * | 1997-01-09 | 1998-07-31 | Matsushita Electric Ind Co Ltd | Address translating device |
JP2000165421A (en) * | 1998-11-25 | 2000-06-16 | Nec Kofu Ltd | Multi-slave bus line system and serial transfer method |
JP2002366425A (en) * | 2001-06-05 | 2002-12-20 | Hitachi Ltd | Data processor having address conversion circuit |
JP2003076654A (en) * | 2001-09-05 | 2003-03-14 | Nec Corp | Data transfer system between memories of dsps |
JP2007251947A (en) * | 2006-03-17 | 2007-09-27 | Agilent Technol Inc | Multi-master, chaind two-wire serial bus |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013175128A (en) * | 2012-02-27 | 2013-09-05 | Ricoh Co Ltd | Serial i/f bus controller and imaging apparatus |
US9413631B2 (en) | 2013-04-24 | 2016-08-09 | Seiko Epson Corporation | Communication circuit, physical quantity measurement device, electronic apparatus, moving object, and communication method |
JP7080175B2 (en) | 2016-02-26 | 2022-06-03 | マイクロ モーション インコーポレイテッド | Communication with two or more slaves |
US11956206B2 (en) | 2016-02-26 | 2024-04-09 | Micro Motion, Inc. | Communicating with two or more slaves |
CN112470137A (en) * | 2019-01-24 | 2021-03-09 | 株式会社矽因赛德 | Master and slave device having cascade structure |
Also Published As
Publication number | Publication date |
---|---|
JP4978421B2 (en) | 2012-07-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4978421B2 (en) | Data communication system and communication control device | |
US5832261A (en) | Barrier synchronizing mechanism for a parallel data processing control system | |
JPH01135150A (en) | Node address setting system for network | |
CN113360432B (en) | Data transmission system | |
JP4261886B2 (en) | Information processing apparatus and information processing method | |
US7519848B2 (en) | Data transfer apparatus | |
KR100681371B1 (en) | Post write buffer for a dual clock system | |
JPH04107608A (en) | Sequence controller | |
JPS6216289A (en) | Read only memory | |
JPH02116236A (en) | Time division multiplex transmitting system | |
KR100798583B1 (en) | Apparatus and method of serial communication interface | |
JPS62182857A (en) | Input and output controller | |
JP4703394B2 (en) | Interface system | |
JPH06266674A (en) | Automatic setting system for processor number in parallel computer | |
JPH08287241A (en) | Data processor | |
JPS62102049A (en) | Control system for plural equipment group | |
JPS63276615A (en) | Remote power source controller | |
JPS61157997A (en) | Terminal controller for computer system for control | |
JPS62239255A (en) | Data input/output equipment selection system | |
JPH05303545A (en) | Data transfer device | |
JPS61267162A (en) | Data transferring device | |
JPH03201052A (en) | Board identification system | |
JPH03265953A (en) | Down load control system for control program to terminal equipment | |
JPH05204806A (en) | Data transfer device | |
JPH1124806A (en) | Bus switching device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20100830 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20111226 |
|
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: 20120321 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20120403 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150427 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 Ref document number: 4978421 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
LAPS | Cancellation because of no payment of annual fees |