JP2009105731A - Data communication system and communication control device - Google Patents

Data communication system and communication control device Download PDF

Info

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
Application number
JP2007276431A
Other languages
Japanese (ja)
Other versions
JP4978421B2 (en
Inventor
Katsumi Okina
勝美 翁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2007276431A priority Critical patent/JP4978421B2/en
Publication of JP2009105731A publication Critical patent/JP2009105731A/en
Application granted granted Critical
Publication of JP4978421B2 publication Critical patent/JP4978421B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a data communication system, etc., capable of connecting a plurality of slave devices with the same address value through data communication based on communication protocol in master-slave system even with a simplified constitution. <P>SOLUTION: The data communication system 1 of the present invention includes a master device 10 and a communication control device 20. The master device includes a master processing part 12 that transmits a command for setting selection information to a slave selection register 36 before performing data communication with slave devices 1 to n and transmits a command designating a communication address value to a slave address upon data communication. The communication control device includes a communication control processing part 40 that selects any of the slave devices 1 to n (50-1 to 50-n) based on a set value of the slave selection register 36 and controls whether or not the command is transmitted to the slave device based on a comparison result of the slave address contained in the received command and the communication address value. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、データ通信システム及び通信制御装置に関する。   The present invention relates to a data communication system and a communication control apparatus.

近年、マスタースレーブ方式によるICバス通信プロトコルに準拠したインターフェースを有するデバイスが急速に普及している。ICバスは1本のクロック信号線と1本のデータ信号線からなる2本のシリアルバスで構成され、これらの信号線に1つのマスターデバイスと複数のスレーブデバイスを共通接続することにより低コストで高速のデータ通信システムを構築することができる。ICバス通信プロトコルにおいては、マスターデバイスがデータ通信の主導権を握り、ICバスに接続された1つのスレーブデバイスとデータ通信を行う。マスターデバイスは同時に複数のスレーブデバイスとデータ通信することはできないため、マスターデバイスが送信するコマンドにはスレーブアドレスとよばれる各スレーブデバイスを識別するためのアドレス値(ID)が含まれる。そして、マスターデバイスが送信するコマンドに含まれるスレーブアドレスが自己のIDと一致するスレーブデバイスがマスターデバイスにアクノリッジ信号を返信することにより、以降はマスターデバイスと当該スレーブデバイスの間でデータ通信が行われる。ここで、同じアドレス値を有する複数のスレーブデバイスをICバスに接続することができない。スレーブデバイスのタイプによってはアドレス値がほぼ固定されている場合もあり、そのようなタイプのスレーブデバイスをICバスに複数個接続することができないという問題がある。 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つのスレーブデバイスを選択してICバスに接続した後、マスター装置と選択したスレーブ装置との間でデータ通信を行うことができる。しかし、この方法では、スイッチの切り替えを手動で行うため全体としてデータ通信の速度が低下し、バススイッチの切り替えミスによる誤動作も考えられる。また、バススイッチが必要になるためコストが増大する。 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.

他の解決策として、マスターデバイスとスレーブデバイスの間にブリッジデバイスを接続し、通信プロトコルを拡張することにより接続可能なスレーブデバイスの数を増加する手法が提案されている。
特開2002−175269号公報
As another solution, a method has been proposed in which a bridge device is connected between a master device and a slave device, and the number of connectable slave devices is increased by extending a communication protocol.
JP 2002-175269 A

しかし、特許文献1に記載されたブリッジデバイスは、スレーブデバイスを制御するためにマスターとして機能するため、マスターの機能を実現するための複雑な回路が必要でありコストの増加をもたらすという問題がある。   However, since the bridge device described in Patent Document 1 functions as a master for controlling the slave device, there is a problem that a complicated circuit for realizing the function of the master is required, resulting in an increase in cost. .

本発明は、以上のような問題点に鑑みてなされたものであり、マスタースレーブ方式による通信プロトコルに基づいてデータ通信を行い、簡単な構成でありながら同一のアドレス値を有するスレーブデバイスを複数個接続することができるデータ通信システム等を提供することを目的とする。   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)本発明のデータ通信システムは、
前記通信プロトコルはICバス通信プロトコルであることを特徴とする。
(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)本発明の通信制御装置は、
前記通信プロトコルはICバス通信プロトコルであることを特徴とする。
(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 data communication system 1 of the present embodiment may have a configuration in which some of the components (each unit) are omitted.

データ通信システム1は、マスタースレーブ方式による所与の通信プロトコルに基づいてマスターとスレーブの間でデータ通信を行う。マスタースレーブ方式による通信プロトコルは、例えば、ICバス通信プロトコルであってもよい。 The data communication system 1 performs data communication between a master and a slave based on a given communication protocol based on a master / slave system. The communication protocol based on the master / slave method may be, for example, an I 2 C bus communication protocol.

データ通信システム1は、マスター装置10を含む。マスター装置10は、マスタースレーブ方式による通信プロトコルにおけるマスターとして機能する。また、データ通信システム1は、通信制御装置20を含む。通信制御装置20は、マスター装置10及びスレーブ装置1〜n(50−1〜50−n)に接続され、マスター装置10とスレーブ装置1〜n(50−1〜50−n)の間のデータ通信を制御する。   The data communication system 1 includes a master device 10. The master device 10 functions as a master in a communication protocol based on the master / slave method. Further, the data communication system 1 includes a communication control device 20. The communication control device 20 is connected to the master device 10 and the slave devices 1 to n (50-1 to 50-n), and data between the master device 10 and the slave devices 1 to n (50-1 to 50-n). Control communication.

マスター装置10は、マスター処理部12を含む。マスター処理部12は、スレーブ装置1〜n(50−1〜50−n)とデータ通信を行う前にスレーブ選択レジスタ36にデータ通信の対象となるスレーブ装置(データ通信対象装置)を選択するための選択情報を設定するコマンド(スレーブ選択コマンド)を通信制御装置20に送信する。   The master device 10 includes a master processing unit 12. The master processing unit 12 selects a slave device (data communication target device) that is a target of data communication in the slave selection register 36 before performing data communication with the slave devices 1 to n (50-1 to 50-n). A command for setting the selection information (slave selection command) is transmitted to the communication control device 20.

また、マスター処理部12は、スレーブ装置1〜n(50−1〜50−n)とデータ通信を行う前に、通信用アドレス設定レジスタ32に通信用のアドレス値(マスター装置10とスレーブ装置1〜n(50−1〜50−n)の間で送受信するデータについて通信制御装置20をスルーさせるための所定のアドレス値)(以下、スルーIDという)を設定するコマンド(スルーID設定コマンド)を通信制御装置20に送信するようにしてもよい。   Further, the master processing unit 12 stores communication address values (the master device 10 and the slave device 1 in the communication address setting register 32 before performing data communication with the slave devices 1 to n (50-1 to 50-n). A command (through ID setting command) for setting a predetermined address value (hereinafter referred to as a through ID) for causing the communication control device 20 to pass through for data transmitted / received between .about.n (50-1 to 50-n). You may make it transmit to the communication control apparatus 20. FIG.

また、マスター処理部12は、スレーブ装置1〜n(50−1〜50−n)とデータ通信を行う前に、スレーブアドレス設定レジスタ34にデータ通信対象装置のアドレス値を設定するコマンド(スレーブアドレス設定コマンド)を通信制御装置20に送信するようにしてもよい。   The master processing unit 12 also sets a command (slave address) for setting the address value of the data communication target device in the slave address setting register 34 before performing data communication with the slave devices 1 to n (50-1 to 50-n). A setting command) may be transmitted to the communication control device 20.

また、マスター処理部12は、スレーブ装置1〜n(50−1〜50−n)とデータ通信を行う際には、スレーブアドレスにスルーIDが指定されたコマンド(データ通信用コマンド)を通信制御装置20に送信する。   Further, when the master processing unit 12 performs data communication with the slave devices 1 to n (50-1 to 50-n), the master processing unit 12 performs communication control of a command (data communication command) in which a through ID is specified as a slave address. Transmit to device 20.

また、マスター処理部12は、スレーブ装置1〜n(50−1〜50−n)とデータ通信を行う際には、スルーIDが指定された第1のスレーブアドレスと所定のアドレス値が指定された第2のスレーブアドレスとを含むデータ通信用のコマンドを送信するようにしてもよい。   Further, when the master processing unit 12 performs data communication with the slave devices 1 to n (50-1 to 50-n), the first slave address in which the through ID is specified and a predetermined address value are specified. A command for data communication including the second slave address may be transmitted.

通信制御装置20は、レジスタファイル30にスレーブ選択レジスタ36を含む。また、通信制御装置20は、レジスタファイル30に通信用アドレス設定レジスタ32及びスレーブアドレス設定レジスタ34を含んでもよい。通信用アドレス設定レジスタ32にはスルーIDが設定される。スレーブアドレス設定レジスタ34にはデータ通信対象装置のアドレス値が設定される。スレーブ選択レジスタ36にはデータ通信対象装置を選択するための選択情報が設定される。   The communication control device 20 includes a slave selection register 36 in the register file 30. In addition, the communication control device 20 may include a communication address setting register 32 and a slave address setting register 34 in the register file 30. A through ID is set in the communication address setting register 32. The slave address setting register 34 is set with the address value of the data communication target device. In the slave selection register 36, selection information for selecting a data communication target device is set.

通信制御装置20は、通信制御処理部40を含む。通信制御処理部40は、例えば、スレーブ処理部42、データ変換処理部44、通信経路選択部46を含んで構成されていてもよい。   The communication control device 20 includes a communication control processing unit 40. The communication control processing unit 40 may include, for example, a slave processing unit 42, a data conversion processing unit 44, and a communication path selection unit 46.

通信制御装置20は、マスタースレーブ方式による通信プロトコルにおけるスレーブとして機能してもよく、スレーブ処理部42がスレーブの機能を実現する。スレーブ処理部42は、例えば、マスター装置10が送信するコマンドに含まれるスレーブアドレスが通信制御装置20のアドレス値と一致した場合には当該コマンドを受信し、コマンドの指示に応じた処理を行う。例えば、スレーブ処理部42は、スルーID設定コマンドを受信した場合は通信用アドレス設定レジスタ32にスルーIDを設定する処理を行い、スレーブアドレス設定コマンドを受信した場合はスレーブアドレス設定レジスタ34にデータ通信対象装置のアドレス値を設定する処理を行い、スレーブ選択コマンドを受信した場合はスレーブ選択レジスタ36に選択情報を設定する処理を行う。   The communication control device 20 may function as a slave in a communication protocol based on the master-slave method, and the slave processing unit 42 realizes a slave function. For example, when the slave address included in the command transmitted by the master device 10 matches the address value of the communication control device 20, the slave processing unit 42 receives the command and performs processing according to the command instruction. For example, the slave processing unit 42 performs processing for setting a through ID in the communication address setting register 32 when a through ID setting command is received, and performs data communication with the slave address setting register 34 when receiving a slave address setting command. Processing for setting the address value of the target device is performed. When a slave selection command is received, processing for setting selection information in the slave selection register 36 is performed.

また、スレーブ処理部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 slave processing unit 42 receives the command and transmits it to the data conversion unit 44. For example, when the slave address included in the command received from the master device 10 matches the set value in the communication address setting register 32, the command is received and transmitted to the data conversion unit 44. Also good. When receiving a command from the master device 10, the slave processing unit 42 may transmit an acknowledge signal to the master device 10.

データ変換処理部44は、スレーブ処理部42がマスター装置10から受信したコマンドをスレーブアドレスに通信経路選択部46が選択したスレーブ装置のアドレス値が指定されたコマンドに変換する処理を行う。例えば、データ変換処理部44は、当該コマンドをスレーブアドレスにスレーブアドレス設定レジスタ34の設定値が指定されたコマンドに変換する処理を行うようにしてもよい。   The data conversion processing unit 44 performs processing to convert the command received by the slave processing unit 42 from the master device 10 into a command in which the slave device address value selected by the communication path selection unit 46 is specified as the slave address. For example, the data conversion processing unit 44 may perform processing for converting the command into a command in which the slave address setting register 34 is designated as the slave address.

また、データ変換処理部44は、スレーブ処理部42がマスター装置10から受信したデータ通信用のコマンドに含まれる第1のスレーブアドレスを削除し、第2のスレーブアドレスに指定された所定のアドレス値を通信経路選択部46が選択したスレーブ装置のアドレス値に置き換える処理を行うようにしてもよい。   In addition, the data conversion processing unit 44 deletes the first slave address included in the data communication command received from the master device 10 by the slave processing unit 42, and the predetermined address value specified as the second slave address. May be replaced with the address value of the slave device selected by the communication path selection unit 46.

通信経路選択部46は、スレーブ選択レジスタ36の設定値に基づいてスレーブ装置1〜n(50−1〜50−n)のいずれかを選択し、データ変換処理部44が変換したコマンドを選択したスレーブ装置に送信する処理を行う。   The communication path selection unit 46 selects one of the slave devices 1 to n (50-1 to 50-n) based on the set value of the slave selection register 36, and selects the command converted by the data conversion processing unit 44. Process to send to slave device.

通信制御装置20は、スレーブ選択レジスタ36の各設定値と当該各設定値に応じて選択されるスレーブ装置のアドレス値との対応関係を規定する対応テーブルを含んでもよい。この場合、データ変換処理部44は、マスター装置10から受信したコマンドに含まれるスレーブアドレスがスルーIDと一致した場合には、対応テーブルに基づいてスレーブ選択レジスタ36の設定値に対応づけられたアドレス値を選択し、当該コマンドをスレーブアドレスに通信経路選択部46が選択したスレーブ装置のアドレス値が指定されたコマンドに変換する処理を行うようにしてもよい。   The communication control device 20 may include a correspondence table that defines the correspondence between each setting value of the slave selection register 36 and the address value of the slave device selected according to the setting value. In this case, when the slave address included in the command received from the master device 10 matches the through ID, the data conversion processing unit 44 addresses that are associated with the set value of the slave selection register 36 based on the correspondence table. A value may be selected, and the command may be converted into a command in which the address value of the slave device selected by the communication path selection unit 46 is designated as a slave address.

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) communication control devices 1 to N (20-1 to 20-N). The master device 10 has the same configuration as the master device 10 and the slave devices 1 to n (50-1 to 50-n) of the data communication system 1 described with reference to FIG.

通信制御装置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 slave devices 1 to n. (50-1 to 50-n). The communication control devices 1 to N (20-1 to 20-N) control data communication between the master device 10 and the slave devices 1 to n (50-1 to 50-n). The communication control devices 1 to N (20-1 to 20-N) may function as slaves in a communication protocol based on a master-slave method.

各通信制御装置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 communication control device 20 of the data communication system 1 described in FIG. That is, the communication address setting register 32-j, the slave address setting register 34-j, the slave selection register 36-j, and the communication control processing unit 40-j may be included.

通信制御装置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 slave devices 1 to n (50-1 to 50-n) based on the set value of the slave selection register 36-N in the communication control processing unit 40-N. Select and control data communication between the communication control device N-1 (20- (N-1)) and the slave devices 1 to n (50-1 to 50-n). The communication control processing unit 40-N receives the slave address and the Nth communication address value (through ID (N)) included in the command received from the communication control device N-1 (20- (N-1)). Based on the comparison result, the command is converted into a command in which the address value of the slave device (any one of the slave devices 1 to n (50-1 to 50-n)) selected as the slave address is designated. Controls whether to transmit to the slave device.

マスター装置10は、マスター処理部12において、スレーブ装置1〜n(50−1〜50−n)とデータ通信を行う前にスレーブ選択レジスタ36−Nに選択情報を設定するコマンド(スレーブ選択コマンド)を通信制御装置1(20−1)に送信する。   The master device 10 uses the master processing unit 12 to set selection information in the slave selection register 36-N (slave selection command) before performing data communication with the slave devices 1 to n (50-1 to 50-n). Is transmitted to the communication control device 1 (20-1).

また、マスター装置10は、マスター処理部12において、スレーブ装置1〜n(50−1〜50−n)とデータ通信を行う際にはスレーブアドレスにスルーID1が指定されたコマンド(データ通信用コマンド)を通信制御装置1(20−1)に送信する。   Further, when the master device 10 performs data communication with the slave devices 1 to n (50-1 to 50-n) in the master processing unit 12, a command (data communication command) in which the through ID 1 is specified as the slave address. ) To the communication control device 1 (20-1).

なお、各通信制御装置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 communication control device 20 described in FIG. Can be connected. Here, since the communication control device also functions as a slave device, each communication control device can connect a plurality of communication control devices as slave devices. That is, it is possible to connect a large number of communication control devices in a tree shape and connect a slave device to the end of each path of the tree. Therefore, according to the data communication system 2, the number of slave devices capable of data communication with the master device 10 can be increased infinitely. The master device 10 can perform data communication with the slave device or the communication control device selected according to the setting values of the communication address setting register, the slave address setting register, and the slave selection register of each communication control device (the communication control device is also included). Selected as one of the slave devices).

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 communication control device 20 for realizing data communication in the data communication system 1 of the present embodiment described in FIG. It is a flowchart for demonstrating each.

まず、マスター装置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 communication control device 20 receives the through ID setting command from the master device 10 and sets the through ID in the communication address setting register 32 (step S20 in FIG. 4).

次に、マスター装置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 communication control device 20 receives the slave address setting command from the master device 10, and sets the address value of the data communication target device in the slave address setting register 34 (step S22 in FIG. 4).

次に、マスター装置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 communication control device 20 receives the slave selection command from the master device 10, and sets selection information in the slave selection register 36 (step S24 in FIG. 4).

次に、マスター装置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 communication control device 20 receives a data communication command from the master device 10 (step S26 in FIG. 4).

次に、通信制御装置20は、受信したデータ通信用コマンドにおいて指定されたスレーブアドレスと通信用アドレス設定レジスタ32の設定値が一致するか否かを判断する(図4のステップS28)。データ通信用コマンドにおいて指定されたスレーブアドレスと通信用アドレス設定レジスタ32の設定値が一致しないと判断した場合(図4のステップS28でNoの場合)は、通信制御装置20はスレーブ装置1〜n(50−1〜50−n)とデータ通信を行わずに処理を終了する。   Next, the communication control device 20 determines whether or not the slave address specified in the received data communication command matches the setting value of the communication address setting register 32 (step S28 in FIG. 4). When it is determined that the slave address specified in the data communication command and the setting value of the communication address setting register 32 do not match (in the case of No in step S28 in FIG. 4), the communication control device 20 determines the slave devices 1 to n. The processing is terminated without performing data communication with (50-1 to 50-n).

データ通信用コマンドにおいて指定されたスレーブアドレスと通信用アドレス設定レジスタ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 address setting register 32 match (Yes in step S28 of FIG. 4), the communication control device 20 receives from the master device 10. The data communication command thus converted is converted into a command in which the set value of the slave address setting register 34 is designated as the slave address (step S30 in FIG. 4).

なお、データ通信用コマンドが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 communication control device 20 receives the data communication command in step S26 of FIG. 4, and the first slave address (through ID) included in the data communication command is the communication address in step S28 of FIG. It is determined whether or not it matches the set value of the setting register 32. If it is determined that the values match, the first slave address is deleted in step S30 of FIG. 4, and the dummy address specified as the second slave address is deleted. The address value may be replaced with the set value of the slave address setting register 34.

最後に、通信制御装置20は、スレーブ選択レジスタ36の設定値に基づいてスレーブ装置1〜n(50−1〜50−n)のいずれかを選択し、選択したスレーブ装置に図4のステップS30で変換したデータ通信用コマンドを送信する(図4のステップS32)。ここで、図4のステップS24において、スレーブ選択レジスタ36にはデータ通信対象装置を選択するための選択情報が設定されている。そのため、マスター装置10は、図3のステップS16において、スレーブアドレスにスルーIDが指定されたデータ通信用コマンドを送信することにより、データ通信対象装置との間の通信経路が確立され、データ通信対象装置との間でデータ通信を行うことができるようになる。   Finally, the communication control device 20 selects any one of the slave devices 1 to n (50-1 to 50-n) based on the set value of the slave selection register 36, and sets the selected slave device to step S30 in FIG. The data communication command converted in step S32 is transmitted (step S32 in FIG. 4). Here, in step S24 of FIG. 4, the slave selection register 36 is set with selection information for selecting a data communication target device. Therefore, the master device 10 establishes a communication path with the data communication target device by transmitting a data communication command in which the through ID is specified as the slave address in step S16 in FIG. Data communication can be performed with the apparatus.

図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 slave devices 1 to n (50-1 to 50-n) via the communication control device 20 (through).

なお、スルー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 (communication control device 20 and the like) that function as slaves connected to the master device 10. Accordingly, the through ID may be set to a fixed address value unless the device connected to the master device 10 is changed. In this case, the master device 10 only needs to transmit the through ID setting command in step S10 in FIG. 3 once after the communication control device 20 is activated. If the address values of the slave devices 1 to n (50-1 to 50-n) are all the same, the master device 10 transmits the slave address setting command in step S12 of FIG. It only needs to be done once after startup. On the other hand, the master device 10 transmits the slave selection command in step S14 in FIG. 3 every time the data communication target device is switched.

なお、図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は、ICバス通信プロトコルに基づいてデータ通信を行うデータ通信システムの第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 data system 101 in FIG. 5 corresponds to the configuration of the data communication system 1 described in FIG.

データ通信システム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 data communication system 101 includes a master device 110, a communication control device 120, and slave devices 1 to 8 (150-1 to 150-4, 160 to 190). The SCL output terminal of the master device 110 is connected to the SCL input terminals of the communication control device 120 and the slave devices 5 to 8 (160 to 190) via the serial bus 112. The SDA input / output terminal of the master device 110 is connected to the SDA input terminals of the communication control device 120 and the slave devices 5 to 8 (160 to 190) via the serial bus 114. The serial buses 112 and 114 are connected to a power source through resistors 116 and 118, respectively.

通信制御装置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はICバス通信プロトコルにおけるマスターとして機能し、通信制御装置120及びスレーブ装置1〜8(150−1〜150−4、160〜190)はICバス通信プロトコルにおけるスレーブとして機能する。すなわち、マスター装置110がデータ通信の主導権を有する。マスター装置110は、データ通信を行う時にはSCL出力端子からシリアルバス112にクロック信号を出力(送信)する。マスター装置110がSCL出力端子からクロック信号を出力しない時はバス112は解放されるため抵抗器116を介してプルアップされてHレベルの電位(電源電位)になる。通信制御装置120及びスレーブ装置5〜8(160〜190)はシリアルバス112にクロック信号を出力することはできない。 The master device 110 functions as a master in the I 2 C bus communication protocol, and the communication control device 120 and slave devices 1 to 8 (150-1 to 150-4, 160 to 190) function as slaves in the I 2 C bus communication protocol. To do. That is, the master device 110 has the initiative of data communication. The master device 110 outputs (transmits) a clock signal from the SCL output terminal to the serial bus 112 when performing data communication. When the master device 110 does not output a clock signal from the SCL output terminal, the bus 112 is released, so that the master device 110 is pulled up via the resistor 116 and becomes an H level potential (power supply potential). The communication control device 120 and the slave devices 5 to 8 (160 to 190) cannot output a clock signal to the serial bus 112.

マスター装置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 master device 110, the communication control device 120, and the slave devices 5 to 8 (160 to 190) can output (send) data to the serial bus 114 via the SDA input / output terminals, and the data on the serial bus 114. Can also be input (received). Two or more devices of the master device 110, the communication control device 120, and the slave devices 5 to 8 (160 to 190) cannot simultaneously output data to the serial bus 114, but the master device 110, the communication control device 120, and the slave None of the devices 5 to 8 (160 to 190) need to output data to the serial bus 114 (in this case, since the serial bus 114 is released, it is pulled up through the resistor 118 to be at the H level potential). become).

データ通信を開始するまでは、シリアルバス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 serial buses 112 and 114 are both pulled up to an H level potential. When starting the data communication, the master device 110 transmits a start condition by outputting data that transitions from the H level to the L level to the serial bus 114 when the serial bus 112 (clock signal) is at the H level. To do. After transmitting the start condition, the master device 110 can start data communication with the communication control device 120 and the slave devices 5 to 8 (160 to 190) by transmitting a predetermined command. The master device 110 can also perform data communication with the slave devices 1 to 4 (150-1 to 150-4) after setting the register of the communication control device 120 according to the flowcharts of FIGS. .

データ通信を終了する場合には、マスター装置110は、シリアルバス112(クロック信号)がHレベルの時に、シリアルバス114にLレベルからHレベルに遷移するデータを出力することにより、ストップコンディションを送信する。   When the data communication is terminated, the master device 110 transmits a stop condition by outputting data transitioning from the L level to the H level to the serial bus 114 when the serial bus 112 (clock signal) is at the H level. To do.

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 master device 110 described in FIG. 5 is connected to any one of the communication control device 120 and the slave devices 5 to 8 (160 to 190). It is a figure which shows an example of the format of the command transmitted when communicating.

図6(A)は、書き込みコマンドの形式の一例である。書き込みコマンド200は、スタートコンディション202により開始し、ストップコンディション222により終了する。   FIG. 6A shows an example of the format of the write command. The write command 200 starts with a start condition 202 and ends with a stop condition 222.

まず、マスター装置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 start condition 202, the master device 110 transmits a 7-bit slave address 204 and a 1-bit write signal 206 (L level). Here, the master device 110 outputs a clock signal corresponding to 8 clocks to the serial bus 112 and transmits a total of 8 bits of data including a 7-bit slave address 204 and a 1-bit write signal 206 in synchronization with the clock signal. . At the same time, the communication control device 120 and the slave devices 5 to 8 (160 to 190) receive the slave address 204 and the write signal 206 in synchronization with the clock signal for 8 clocks. After transmitting the slave address 204 and the write signal 206, the master device 110 releases the serial bus 114.

次に、スレーブアドレス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 slave address 204 matches the address value of itself transmits the 1-bit acknowledge signal 208. Here, the master device 110 outputs a clock signal for one clock to the serial bus 112, and the writing target device transmits a 1-bit acknowledge signal 208 in synchronization with the clock signal. At the same time, the master device 110 receives the acknowledge signal 208 in synchronization with the clock signal for one clock. The writing target device releases the serial bus 114 after transmitting the acknowledge signal 208.

次に、マスター装置110は、書き込み対象装置の書き込み対象となる内部レジスタ(書き込み対象レジスタ)のアドレスの上位8ビット分のデータ210を送信した後、シリアルバス114を解放する。書き込み対象装置は、書き込み対象レジスタのアドレスの上位8ビット分のデータ210を受信し、アクノリッジ信号212を送信した後、シリアルバス114を解放する。   Next, the master device 110 releases the serial bus 114 after transmitting the data 210 for the upper 8 bits of the address of the internal register (write target register) to be written to by the write target device. The write target device receives the data 210 for the upper 8 bits of the address of the write target register, transmits an acknowledge signal 212, and then releases the serial bus 114.

次に、マスター装置110は、書き込み対象レジスタのアドレスの下位8ビット分のデータ214を送信した後、シリアルバス114を解放する。書き込み対象装置は、書き込み対象レジスタのアドレスの下位8ビット分のデータ214を受信し、アクノリッジ信号216を送信した後、シリアルバス114を解放する。書き込み対象装置は、書き込み対象レジスタのアドレスの上位8ビット分のデータ210及び下位8ビット分のデータ214を内部のアドレスレジスタにセットする。   Next, the master device 110 releases the serial bus 114 after transmitting the data 214 for the lower 8 bits of the address of the register to be written. The write target device receives the data 214 for the lower 8 bits of the address of the write target register, transmits the acknowledge signal 216, and then releases the serial bus 114. The writing target device sets the data 210 for the upper 8 bits and the data 214 for the lower 8 bits of the address of the writing target register in the internal address register.

次に、マスター装置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 master device 110 releases the serial bus 114 after transmitting the first 21 bytes of data 218-1 among the m bytes of data to be written to the write target register. The writing target device receives the first 21 bytes of data 218-1, transmits an acknowledge signal 220-1, and then releases the serial bus 114. Thereafter, the master device 110 transmits data byte by byte, and the write target device repeats the process of releasing the serial bus 114 after receiving data byte by byte and transmitting an acknowledge signal. Then, the transmission of the last 1 byte of data 218-m by the master device 110 and the transmission of the acknowledge signal 220-m for the reception of the last 1 byte of data 218-m by the write target device are completed. Here, every time reception of data 218-k (k is any one of 1 to m) for one byte is completed, the writing target device is an internal register (that is, an internal register assigned to the address set in the address register). The process of writing 1 byte of data into the write target register) may be repeated. Further, the write target device may perform a process of writing m bytes of data to the write target register after the reception of m bytes of data 218-1 to 218-m is completed.

最後に、マスター装置110は、ストップコンディション222を送信した後シリアルバス114を解放して書き込みコマンドの送信を終了する。   Finally, after transmitting the stop condition 222, the master device 110 releases the serial bus 114 and ends the transmission of the write command.

図6(B)は、読み出しコマンドの形式の一例である。読み出しコマンド250は、スタートコンディション252により開始し、ストップコンディション280により終了する。   FIG. 6B shows an example of a read command format. The read command 250 starts with a start condition 252 and ends with a stop condition 280.

スタートコンディション252〜アクノリッジ信号266は、図6(A)で説明したスタートコンディション202〜アクノリッジ信号216と同じであるので、説明を省略する。スレーブアドレス254が自己のアドレス値と一致した通信制御装置120及びスレーブ装置5〜8(160〜190)のいずれかの装置(読み出し対象装置)は、アクノリッジ信号266の送信を終了した時点で、その内部のアドレスレジスタに読み出し対象となる内部レジスタ(読み出し対象レジスタ)の上位8ビットアドレス260及び下位8ビットアドレス264をセットしている。   Since the start condition 252 to the acknowledge signal 266 are the same as the start condition 202 to the acknowledge signal 216 described with reference to FIG. The communication control device 120 and the slave devices 5 to 8 (160 to 190) whose slave address 254 matches their own address value (read target device), when the transmission of the acknowledge signal 266 is completed, The upper 8 bit address 260 and the lower 8 bit address 264 of the internal register (read target register) to be read are set in the internal address register.

次に、マスター装置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 start condition 268 again, the master device 110 transmits a 7-bit slave address 270 (the same slave address as the slave address 254) and a 1-bit read signal 272 (H level). Here, the master device 110 outputs a clock signal corresponding to 8 clocks to the serial bus 112 and transmits a total of 8 bits of data including a 7-bit slave address 270 and a 1-bit read signal 272 in synchronization with the clock signal. . At the same time, the communication control device 120 and the slave devices 5 to 8 (160 to 190) receive the slave address 270 and the read signal 272 in synchronization with the clock signal for 8 clocks. After transmitting the slave address 270 and the read signal 272, the master device 110 releases the serial bus 114.

次に、読み出し対象装置は、スレーブアドレス270が自己のアドレス値と一致するので1ビットのアクノリッジ信号274を送信する。ここで、マスター装置110は、シリアルバス112に1クロック分のクロック信号を出力し、読み出し対象装置が1ビットのアクノリッジ信号274をクロック信号に同期させて送信する。同時に、マスター装置110は、この1クロック分のクロック信号に同期してアクノリッジ信号274を受信する。読み出し対象装置は、アクノリッジ信号274を送信した後、シリアルバス114を解放する。   Next, the reading target device transmits a 1-bit acknowledge signal 274 because the slave address 270 matches its own address value. Here, the master device 110 outputs a clock signal for one clock to the serial bus 112, and the reading target device transmits a 1-bit acknowledge signal 274 in synchronization with the clock signal. At the same time, the master device 110 receives the acknowledge signal 274 in synchronization with the clock signal for one clock. The device to be read releases the serial bus 114 after transmitting the acknowledge signal 274.

次に、読み出し対象装置は、読み出し対象レジスタから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 serial bus 114. The master device 110 releases the serial bus 114 after receiving the first 27 bytes of data 276-1 and transmitting the acknowledge signal 278-1. Thereafter, the read target device transmits the read data byte by byte, and the master device 110 repeats the process of releasing the serial bus 114 after receiving the data byte by byte and transmitting the acknowledge signal. When the read target device transmits the last one byte of data 276-m, the master device 110 receives the one byte of data 276-m, and then receives an inverted signal of the acknowledge signal (not acknowledge signal) 278-m. Send. Since the read target device receives the not acknowledge signal 278-m (that is, does not receive the acknowledge signal), the read target device does not transmit the next one byte of read data, and ends the transmission of the read data of m bytes.

最後に、マスター装置110は、ストップコンディション280を送信した後シリアルバス114を解放して読み出しコマンドの送信を終了する。   Finally, after transmitting the stop condition 280, the master device 110 releases the serial bus 114 and ends the transmission of the read command.

図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 master device 110 described in FIG. 5 performs data communication with any of the slave devices 1 to 4 (150-1 to 150-4). Is a diagram showing an example of a command) format. Before the master device 110 transmits the commands of FIGS. 7A and 7B, the communication address setting register 32 is caused to pass through the communication control device 120 according to the flowcharts of FIGS. It is assumed that a through ID is set. Further, it is assumed that the slave address setting register 34 is set with an address value of a data communication target device (write target device or read target device). Furthermore, it is assumed that selection information for selecting a data communication target device (a write target device or a read target device) is set in the slave selection register 36 as a connection destination.

図7(A)は、書き込みコマンドの形式の一例である。書き込みコマンド300は、スタートコンディション302により開始し、ストップコンディション330により終了する。   FIG. 7A shows an example of the format of the write command. The write command 300 starts with a start condition 302 and ends with a stop condition 330.

まず、マスター装置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 start condition 302, the master device 110 transmits the slave address 304 and the write signal 306, and the communication control device 120 and the slave devices 5 to 8 (160 to 190) transmit the slave address 304 and the write signal 306. Receive. Here, the master device 110 transmits the through ID as the slave address 304. As the through ID, an address value different from the address values of the communication control device 120 and the slave devices 5 to 8 (160 to 190) is selected. After transmitting the slave address 304 and the write signal 306, the master device 110 releases the serial bus 114.

通信制御装置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 address setting register 32, the communication control device 120 can transmit the subsequent received data to the write target device. Set to through mode. Then, the communication control device 120 transmits an acknowledge signal 308, and the master device 110 receives the acknowledge signal 308. After transmitting the acknowledge signal 308, the communication control device 120 releases the serial bus 114.

次に、マスター装置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 master device 110 transmits the start condition 310 again, transmits the slave address 312 and the write signal 314 and then releases the serial bus 114, and the communication control device 120 receives the slave address 312 and the write signal 314. Here, the master device 110 transmits an arbitrary address value (dummy address value) different from the address values of the communication control device 120 and the slave devices 5 to 8 (160 to 190) as the slave address 312. For example, a through ID may be used as a dummy address value. In this case, the slave address 312 is the same data as the slave address 304. Since the operation mode of the communication control device 120 is the through mode, the slave device 312 is changed to the setting value of the slave address setting register 34 (the address value of the writing target device), and the slave device selected according to the setting value of the slave selection register 36 The changed slave address 312 (address value of the write target device) and the write signal 314 are transmitted to the (write target device).

書き込み対象装置は、通信制御装置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 write signal 314 from the communication control device 120, and the changed slave address 312 (address value of the writing target device) is its own address. Since it matches the value, an acknowledge signal 316 is transmitted to the communication control device 120. Here, the writing target device sets its operation mode to the write mode. The communication control device 120 releases the serial bus 114 after transmitting the acknowledge signal 316 received from the write target device to the master device 110. Thereafter, the master device 110 can perform data communication with the writing target device.

次に、マスター装置110は、書き込み対象装置の書き込み対象となる内部レジスタ(書き込み対象レジスタ)の上位8ビットアドレス318を送信した後、シリアルバス114を解放する。通信制御装置120は、上位8ビットアドレス318を受信し、書き込み対象装置に送信する。書き込み対象装置は、通信制御装置120から上位8ビットアドレス318を受信し、通信制御装置120にアクノリッジ信号320を送信する。通信制御装置120は、書き込み対象装置から受信したアクノリッジ信号320をマスター装置110に送信した後、シリアルバス114を解放する。   Next, the master device 110 releases the serial bus 114 after transmitting the upper 8-bit address 318 of the internal register (write target register) to be written by the write target device. The communication control device 120 receives the upper 8-bit address 318 and transmits it to the write target device. The writing target device receives the upper 8-bit address 318 from the communication control device 120 and transmits an acknowledge signal 320 to the communication control device 120. The communication control device 120 releases the serial bus 114 after transmitting the acknowledge signal 320 received from the write target device to the master device 110.

次に、マスター装置110は、書き込み対象レジスタの下位8ビットアドレス322を送信した後、シリアルバス114を解放する。通信制御装置120は、下位8ビットアドレス322を受信し、書き込み対象装置に送信する。書き込み対象装置は、通信制御装置120から下位8ビットアドレス322を受信し、通信制御装置120にアクノリッジ信号324を送信する。ここで、書き込み対象装置は、上位8ビットアドレス318及び下位8ビットアドレス322を内部のアドレスレジスタにセットする。通信制御装置120は、書き込み対象装置から受信したアクノリッジ信号324をマスター装置110に送信した後、シリアルバス114を解放する。   Next, the master device 110 releases the serial bus 114 after transmitting the lower 8-bit address 322 of the write target register. The communication control device 120 receives the lower 8-bit address 322 and transmits it to the write target device. The writing target device receives the lower 8-bit address 322 from the communication control device 120 and transmits an acknowledge signal 324 to the communication control device 120. Here, the writing target device sets the upper 8-bit address 318 and the lower 8-bit address 322 in the internal address register. The communication control device 120 releases the serial bus 114 after transmitting the acknowledge signal 324 received from the write target device to the master device 110.

次に、マスター装置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 master device 110 releases the serial bus 114 after transmitting the first 1-byte data 326-1 among the m-byte data to be written to the write target register. The communication control device 120 receives the first 1-byte data 326-1 and transmits it to the write target device. The writing target device receives the first 1-byte data 326-1 from the communication control device 120, and transmits an acknowledge signal 328-1 to the communication control device 120. The communication control device 120 releases the serial bus 114 after transmitting the acknowledge signal 328-1 received from the write target device to the master device 110. Thereafter, the master device 110 transmits data byte by byte, the communication control device 120 receives data byte by byte and transmits it to the write target device, and the write target device receives 1 byte data from the communication control device 120. Each time an acknowledge signal is transmitted to the communication control device 120, the communication control device 120 repeats the process of releasing the serial bus 114 after transmitting the acknowledge signal received from the write target device to the master device 110. Then, transmission of the last 1-byte data 326-m by the master device 110, reception of the last 1-byte data 326-m by the writing target device, and transmission of the acknowledge signal 328-m are completed. Here, every time reception of 1-byte data 326-k (k is any one of 1 to m) is completed, the write target device is an internal register (that is, write target) assigned to the address set in the address register. The process of writing 1-byte data to the (register) may be repeated. Further, the write target device may perform a process of writing the m byte data to the write target register after reception of the m byte data (326-1 to 326-m) is completed.

最後に、マスター装置110は、ストップコンディション330を送信した後シリアルバス114を解放し、書き込みコマンドの送信を終了する。   Finally, after transmitting the stop condition 330, the master device 110 releases the serial bus 114 and ends the transmission of the write command.

図7(B)は、読み出しコマンドの形式の一例である。読み出しコマンド350は、スタートコンディション352により開始し、ストップコンディション388により終了する。   FIG. 7B shows an example of a read command format. The read command 350 starts with a start condition 352 and ends with a stop condition 388.

スタートコンディション352〜アクノリッジ信号374は、図7(A)で説明したスタートコンディション302〜アクノリッジ信号324と同じであるので、説明を省略する。通信制御装置120は、アクノリッジ信号374の送信を終了した時点でその動作モードがスルーモードに設定されている。また、読み出し対象装置は、その内部のアドレスレジスタに読み出し対象レジスタの上位8ビットアドレス368及び下位8ビットアドレス372をセットしている。   The start condition 352 to the acknowledge signal 374 are the same as the start condition 302 to the acknowledge signal 324 described with reference to FIG. When the communication control device 120 finishes transmitting the acknowledge signal 374, its operation mode is set to the through mode. The read target device sets the upper 8-bit address 368 and the lower 8-bit address 372 of the read target register in the internal address register.

次に、マスター装置110は、スタートコンディション376を再度送信し、スレーブアドレス378及びリード信号380を送信した後シリアルバス114を解放し、通信制御装置120はスレーブアドレス378及びリード信号380を受信する。ここで、マスター装置110は、スレーブアドレス378として、ダミーのアドレス値を送信する。例えば、ダミーのアドレス値としてスルーIDを使用してもよく、この場合はスレーブアドレス378はスレーブアドレス354と同一のデータになる。通信制御装置120の動作モードがスルーモードであるので、スレーブアドレス378をスレーブアドレス設定レジスタ34の設定値(読み出し対象装置のアドレス値)に変更し、スレーブ選択レジスタ36の設定値に従って選択したスレーブ装置(読み出し対象装置)に対して変更後のスレーブアドレス378(読み出し対象装置のアドレス値)及びリード信号380を送信する。   Next, the master device 110 transmits the start condition 376 again, transmits the slave address 378 and the read signal 380, then releases the serial bus 114, and the communication control device 120 receives the slave address 378 and the read signal 380. Here, the master device 110 transmits a dummy address value as the slave address 378. For example, a through ID may be used as a dummy address value. In this case, the slave address 378 has the same data as the slave address 354. Since the operation mode of the communication control device 120 is the through mode, the slave address 378 is changed to the setting value of the slave address setting register 34 (address value of the reading target device), and the slave device selected according to the setting value of the slave selection register 36 The changed slave address 378 (address value of the read target device) and the read signal 380 are transmitted to (read target device).

読み出し対象装置は、通信制御装置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 read signal 380 from the communication control device 120, and the changed slave address 378 (read target device address value) is its own address. Since it matches the value, an acknowledge signal 382 is transmitted to the communication control device 120. Here, the read target device sets its operation mode to the read mode. The communication control device 120 releases the serial bus 114 after transmitting the acknowledge signal 382 received from the read target device to the master device 110.

次に、読み出し対象装置は、アドレスレジスタにセットされたアドレスに割り当てられた内部レジスタ(すなわち、読み出し対象レジスタ)から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 master device 110. The master device 110 receives the first 1-byte data 384-1 from the communication control device 120, transmits an acknowledge signal 386-1 to the communication control device 120, and then releases the serial bus 114. The communication control device 120 transmits the acknowledge signal 386-1 received from the master device 110 to the read target device. Thereafter, the read target device transmits the read data one byte at a time, the communication control device 120 receives the data one byte at a time and transmits the data to the master device 110, and the master device 110 receives the one byte data from the communication control device 120. Each time it is received, it transmits an acknowledge signal to the communication control device 120. The communication control device 120 reads the acknowledge signal received from the master device 110 and transmits it to the target device, and then repeats the process of releasing the serial bus 114. When the communication control device 120 transmits the last 1-byte data 384-m received from the read target device, the master device 110 receives the 1-byte data 384-m and transmits a knot acknowledge signal 386-m. The communication control device 120 transmits the knot acknowledge signal 386-m received from the master device 110 to the read target device. The reading target device receives the knot acknowledge signal 384-m from the communication control device 120 (that is, does not receive the acknowledge signal). The transmission of the next 1-byte data is not performed, and the transmission of the m-byte data is terminated.

最後に、マスター装置110は、ストップコンディション388を送信した後シリアルバス114を解放して書き込みコマンドの送信を終了する。   Finally, after transmitting the stop condition 388, the master device 110 releases the serial bus 114 and ends the transmission of the write command.

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 data communication system 101 described with reference to FIG. 5 because the master device 110 sequentially sets the internal registers of the slave devices 1 to 4 (150-1 to 150-4). It is a figure which shows the 1st example of the command sequence transmitted to. In the description of FIG. 8, it is assumed that the slave devices 1 to 4 (150-1 to 150-4) all have address values of 40H. 8 and FIG. 9 and FIG. 10 described later, the address value of the communication control device 120 is 36H, and the address values of the slave devices 5 to 8 (160 to 190) are 40H, 41H, 42H, and 43H, respectively. The internal addresses of the communication address setting register 32, the slave address setting register 34, and the slave selection register 36 are assumed to be 0010H, 0014H, and 0004H, respectively.

なお、図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 slave devices 1 to 4 (150-1 to 150-4)) in the slave address setting register 34 (address 0014H) of the communication control device 120. Setting command).

書き込みコマンド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 slave address 204 described with reference to FIG. Internal registers can be set.

また、書き込みコマンド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 master device 110 passes through the communication control device 120. The internal registers of the slave devices 1 to 4 (150-1 to 150-4) can be set.

図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 master device 110 to sequentially set the internal registers of the slave devices 1 to 4 (150-1 to 150-4) in the data communication system 101 described with reference to FIG. It is a figure which shows an example. In the description of FIG. 9, the slave devices 1 and 2 (150-1 and 150-2) have an address value of 40H, and the slave devices 3 and 4 (150-3 and 150-4) have an address value of 41H. And

図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 address setting register 34 is changed from the address value (40H) of the slave device 2 (150-2) of the previous data communication target to the next data communication by the write command 200-7. By simply changing to the address value (41H) of the target slave device 3 (150-3), data communication can be easily performed to slave devices having different address values.

図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 master device 110 to sequentially set the internal registers of the slave devices 1 to 4 (150-1 to 150-4) in the data communication system 101 described with reference to FIG. It is a figure which shows an example. In the description of FIG. 10, it is assumed that the address values of the slave devices 1 to 4 (150-1 to 4) are 40H, 41H, 42H, and 43H, respectively. The communication control device 120 includes four slave address setting registers 50, 52, 54, and 56 corresponding to the slave devices 1 to 4 (150-1 to 150-4). , 54, and 56 have internal addresses 0014H, 0018H, 001CH, and 0020H, respectively. Furthermore, the communication control device 120 corresponds to the slave addresses 312 described in FIG. 7A with respect to the slave devices 1 to 4 (150-1 to 150-4) selected according to the set value of the slave selection register 36. It is assumed that the slave address setting registers 50, 52, 54, and 56 are changed to set values and transmitted to the slave devices 1 to 4 (150-1 to 150-4).

図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 selection register 36 and its address value is created in the communication control device 120. Therefore, according to the command sequence of FIG. 10, it is possible to change the slave device with different address values by simply changing the selection of the slave device for data communication using the write commands 200-3, 200-4, 200-5, and 200-6. However, data communication can be easily performed.

このように、本実施の形態のデータ通信システム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 data communication system 101 of the present embodiment, the master device 110 sends selection information to the slave selection register 36 before performing data communication with the slave devices 1 to 4 (150-1 to 150-4). A slave selection command to be set is transmitted to the communication control device 120, and the communication control device 120 selects a data communication target device based on the set value of the slave selection register 36. Therefore, even if the slave devices 1 to 4 (150-1 to 150-4) have the same address value, the master device 110 changes the setting value of the slave selection register 36 to change the slave devices 1 to 4 ( Data communication can be performed by selecting any one of 150-1 to 150-4).

また、本実施の形態のデータ通信システム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 data communication system 101 of the present embodiment, when the master device 110 performs data communication with the slave devices 1 to 4 (150-1 to 150-4), the through ID is designated as the slave address. A command for data communication is transmitted to the communication control device 120, and the communication control device 120 performs conversion processing on the command based on the comparison result of the slave address and the through ID included in the command received from the master device 110, and performs slave processing. Whether to transmit to 1-4 (150-1 to 150-4) is controlled. That is, even if any one of the slave devices 1 to 4 (150-1 to 150-4) has the same address value as the slave devices 5 to 8 (160 to 190), the master device 110 Can perform data communication with the slave devices 1 to 4 (150-1 to 150-4).

また、本実施の形態のデータ通信システム101によれば、マスター装置110はスレーブ装置1〜4(150−1〜150−4)とデータ通信を行う前にスルーID設定コマンドを通信制御装置120に送信する。従って、スルーIDを可変に設定できるので、データ通信システム101の構成を変更しても柔軟に対応することができる。   Further, according to the data communication system 101 of the present embodiment, the master device 110 sends a through ID setting command to the communication control device 120 before performing data communication with the slave devices 1 to 4 (150-1 to 150-4). Send. Therefore, since the through ID can be set variably, it is possible to flexibly cope with a change in the configuration of the data communication system 101.

また、本実施の形態のデータ通信システム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 data communication system 101 of the present embodiment, the master device 110 sends a slave address setting command to the communication control device 120 before performing data communication with the slave devices 1 to 4 (150-1 to 150-4). Send. Therefore, even if two or more of the slave devices 1 to 4 (150-1 to 150-4) have different address values, the master device 110 changes the setting value of the slave address setting register 34 to change the slave device. Data communication can be performed with the devices 1 to 4 (150-1 to 150-4).

また、本実施の形態のデータ通信システム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 data communication system 101 of the present embodiment, the first slave address 304 (354) in which the through ID is specified and the dummy address value are specified in the data communication command transmitted by the master device 110. The second slave address 312 (362) thus generated is included. Therefore, the communication control device 120 determines whether or not to transmit the command to the slave devices 1 to 4 (150-1 to 150-4) by using the first slave address 304 (354), and then determines the second. The slave address 312 (362) can be replaced with any one of the slave devices 1 to 4 (150-1 to 150-4) for transmission. Therefore, the communication control device 120 can transmit the data communication command to the slave devices 1 to 4 (150-1 to 150-4) in real time.

4.第2のデータ通信システムの動作説明
4−1.第2のデータ通信システムの構成
図11は、ICバス通信プロトコルに基づいてデータ通信を行うデータ通信システムの第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 data system 102 in FIG. 11 corresponds to the configuration of the data communication system 2 described in FIG. In addition, about the same structure as the data communication system 101 of FIG. 5, the same code | symbol is attached | subjected and description is abbreviate | omitted.

データ通信システム102は、マスター装置110、通信制御装置1〜3(120−1〜120−3)、スレーブ装置1〜8(150−1〜150−4、160〜190)を含んで構成されている。   The data communication system 102 includes a master device 110, communication control devices 1 to 3 (120-1 to 120-3), and slave devices 1 to 8 (150-1 to 150-4, 160 to 190). Yes.

通信制御装置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 communication control devices 1 to 3 (120-1 to 120-3) is the same as that of the communication control device 120 described with reference to FIG. That is, the communication control device 1 (120-1) includes a communication address setting register 32-1, a slave address setting register 34-1 and a slave selection register 36-1, and the communication control device 2 (120-2) Communication address setting register 32-2, slave address setting register 34-2, slave selection register 36-2, etc., and communication control device 3 (120-3) includes communication address setting register 32-3, slave address A setting register 34-3, a slave selection register 36-3, and the like are included.

マスター装置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 master device 110 is connected to the SCL input terminals of the communication control device 1 (120-1) and the slave devices 5 to 8 (160 to 190) via the serial bus 112. The SDA input / output terminal of the master device 110 is connected to the SDA input terminals of the communication control device 1 (120-1) and the slave devices 5 to 8 (160 to 190) via the serial bus 114.

通信制御装置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 clock signal line 122 and the data signal line 124, respectively. Connected with. The SCL1 output terminal and the SDA1 input / output terminal of the communication control apparatus 2 (120-2) are connected to the SCL input terminal and the SDA input / output terminal of the communication control apparatus 3 (120-3) by the clock signal line 126 and the data signal line 128, respectively. Connected with. The SCL1 output terminal and the SDA1 input / output terminal of the communication control device 3 (120-3) are connected to the SCL input terminal and the SDA of the slave device 1 (150-1) by the clock signal line 130-1 and the data signal line 132-1, respectively. Connected to input / output terminals. Similarly, the SCL2 output terminal and the SDA2 input / output terminal of the communication control device 3 (120-3) are connected to the SCL input of the slave device 2 (150-2) by the clock signal line 130-2 and the data signal line 132-2, respectively. Terminal and an SDA input / output terminal. Similarly, the SCL3 output terminal and the SDA3 input / output terminal of the communication control device 3 (120-3) are connected to the SCL input of the slave device 3 (150-3) by the clock signal line 130-3 and the data signal line 132-3, respectively. Terminal and an SDA input / output terminal. Similarly, the SCL4 output terminal and the SDA4 input / output terminal of the communication control device 3 (120-3) are respectively input to the SCL input of the slave device 4 (150-4) through the clock signal line 130-4 and the data signal line 132-4. Terminal and an SDA input / output terminal.

マスター装置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 master device 110 can start data communication with the communication control device 1 (120-1) and the slave devices 5 to 8 (160 to 190) by transmitting a predetermined command. Further, the master device 110 can perform data communication with the communication control device 2 (120-2) after setting the register of the communication control device 1 (120-1) according to the flowcharts of FIGS. . In addition, after the master device 110 performs the register setting of the communication control devices 1 and 2 (120-1 and 120-2) according to the flowcharts of FIGS. 3 and 4, the master device 110 and the communication control device 3 (120-3) and data Communication can be performed. In addition, after the master device 110 performs the register settings of the communication control devices 1 to 3 (120-1 to 120-3) according to the flowcharts of FIGS. 3 and 4, the slave devices 1 to 4 (150-1 to 150). -4) and data communication can also be performed.

データ通信を終了する場合には、マスター装置110はストップコンディションを送信する。   When the data communication is terminated, the master device 110 transmits a stop condition.

なお、図示しないが、通信制御装置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 master device 110 can be increased by cascading a plurality of communication control devices.

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 master device 110 described in FIG. 11 performs data communication with any of the slave devices 1 to 4 (150-1 to 150-4). It is a figure which shows an example of the format of the command transmitted when doing. Before the master device 110 transmits the commands shown in FIGS. 12A and 12B, it is stored in the communication address setting registers 32-1, 32-2, and 32-3 according to the flowcharts shown in FIGS. Are set through ID1, through ID2, and through ID3 for passing through the communication control device 1 (120-2), the communication control device 2 (120-2), and the communication control device 3 (120-3), respectively. Shall. The slave address setting registers 34-1 34-2, and 34-3 are set with through ID 2, through ID 3, and address values of data communication target devices (write target device or read target device), respectively. To do. Further, in the slave selection registers 36-1, 36-2, and 36-3, the communication control device 2 (120-2), the communication control device 3 (120-3), and the data communication target device (write target) are connected as connection destinations, respectively. It is assumed that selection information for selecting a device or a reading target device is set.

図12(A)は、書き込みコマンドの形式の一例である。書き込みコマンド400は、スタートコンディション402により開始し、ストップコンディション430により終了する。   FIG. 12A shows an example of the format of the write command. The write command 400 starts with a start condition 402 and ends with a stop condition 430.

まず、マスター装置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 start condition 402, the master device 110 transmits the slave address 404 and the write signal 406, and the communication control device 1 (120-1) and the slave devices 5 to 8 (160 to 190) receive the slave address 404. And the write signal 406 are received. Here, the master device 110 transmits the through ID 1 as the slave address 404. For the through ID 1, an address value different from the address values of the communication control device 1 (120-1) and the slave devices 5 to 8 (160 to 190) is selected. After transmitting the slave address 404 and the write signal 406, the master device 110 releases the serial bus 114.

通信制御装置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 address setting register 32, the communication control device 1 (120-1) communicates the received data after that in the operation mode. The through mode that can be transmitted to the control device 2 (120-2) is set. Then, the communication control device 1 (120-1) transmits an acknowledge signal 408 to the master device 110, and the master device 110 receives the acknowledge signal 408. The communication control apparatus 1 (120-1) releases the serial bus 114 after transmitting the acknowledge signal 408.

次に、マスター装置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 master device 110 transmits the start condition 410-1 again, transmits the slave address 412-1 and the write signal 414-1, and then releases the serial bus 114. The communication control device 1 (120-1) receives the slave address 412-1 and the write signal 414-1. Since the operation mode of the communication control device 1 (120-1) is the through mode, the slave address 412-1 is changed to the set value (through ID2) of the slave address setting register 34-1, and the slave selection register The changed slave address 412-1 (through ID2) and write signal 414-1 are transmitted to the communication control device 2 (120-2) selected according to the set value of 36-1.

通信制御装置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 serial bus 114 after transmitting the acknowledge signal 416-1 received from the communication control device 2 (120-2) to the master device 110.

次に、マスター装置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 master device 110 transmits the start condition 410-2 again, transmits the slave address 412-2 and the write signal 414-2, and then releases the serial bus 114. Since the operation mode of the communication control apparatus 1 (120-1) is the through mode, the communication control apparatus 2 (120-2) has changed the slave address 412-2 from the communication control apparatus 1 (120-1). (Through ID2) and the write signal 414-2 are received. Since the operation mode of the communication control device 2 (120-2) is the through mode, the slave address 412-2 is changed to the set value (through ID3) of the slave address setting register 34-2, and the slave selection register The changed slave address 412-2 (through ID3) and write signal 414-2 are transmitted to the communication control device 3 (120-3) selected according to the set value of 36-2.

通信制御装置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 slave devices 1 to 4 (150-1 to 150-4). Set to the through mode that can be sent to either of these. Then, the communication control device 3 (120-3) transmits an acknowledge signal 416-2 to the communication control device 2 (120-2). The communication control device 2 (120-2) transmits the acknowledge signal 416-2 received from the communication control device 3 (120-3) to the communication control device 1 (120-1). The communication control device 1 (120-1) releases the serial bus 114 after transmitting the acknowledge signal 416-2 received from the communication control device 2 (120-2) to the master device 110.

次に、マスター装置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 master device 110 transmits the start condition 410-3 again, transmits the slave address 412-3 and the write signal 414-3, and then releases the serial bus 114. Since the operation mode of the communication control devices 1 and 2 (120-1, 120-2) is the through mode, the communication control device 3 (120-3) is changed from the communication control device 2 (120-2). Slave address 412-3 (through ID 3) and write signal 414-3 are received. Since the operation mode of the communication control device 3 (120-3) is the through mode, the slave address 412-3 is changed to the setting value of the slave address setting register 34-3 (address value of the writing target device). Then, the slave address 412-3 (address value of the write target device) and the write signal 414-3 after the change are transmitted to the slave device (write target device) selected according to the set value of the slave selection register 36-3.

書き込み対象装置は、通信制御装置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 serial bus 114 after transmitting the acknowledge signal 416-3 received from the communication control device 2 (120-2) to the master device 110.

この時点において通信制御装置1〜3(120−1〜3)の動作モードはすべてスルーモードに設定されており、これ以降、マスター装置110は書き込み対象装置とデータ通信を行うことができる。内部アドレス418〜ストップコンディション430は、図7(A)で説明した内部アドレス318〜ストップコンディション330と同じであるので、以降の説明は省略する。   At this time, the operation modes of the communication control devices 1 to 3 (120-1 to 3) are all set to the through mode, and thereafter, the master device 110 can perform data communication with the write target device. The internal address 418 to stop condition 430 are the same as the internal address 318 to stop condition 330 described with reference to FIG.

なお、マスター装置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 master device 110 is the start condition 410-1 to the acknowledge signal 416-1 and the start condition 410 in the write command 400 of FIG. This corresponds to a command in which −2 to acknowledge signal 416-2 and start condition 410-3 to acknowledge signal 416-3 are deleted. Also, the write command to the internal register of the communication control device 2 (12-2) by the master device 110 is the start command 410-2 to the acknowledge signal 416-2 and the start condition 410 in the write command 400 of FIG. This corresponds to a command obtained by deleting the -3 to acknowledge signal 416-3. Also, the write command to the internal register of the communication control device 3 (12-3) by the master device 110 is a command in which the start condition 410-3 to the acknowledge signal 416-3 is deleted from the write command 400 of FIG. It corresponds to.

図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 read command 450 starts with a start condition 452 and ends with a stop condition 488. The start condition 452 to acknowledge signal 466-3 are the same as the start condition 402 to acknowledge signal 416-3 described with reference to FIG. When the transmission of the acknowledge signal 466-3 is completed, the operation modes of the communication control devices 1 to 3 (120-1 to 3) are all set to the through mode. Data communication can be performed. The internal address 468 to stop condition 488 are the same as the internal address 368 to stop condition 388 described with reference to FIG.

なお、マスター装置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 master device 110 is the start condition 460-1 to the acknowledge signal 466-1 and the start condition 460 in the read command 450 of FIG. This corresponds to a command in which −2 to acknowledge signal 466-2 and start condition 460-3 to acknowledge signal 466-3 are deleted. In addition, the read command to the internal register of the communication control device 2 (12-2) by the master device 110 is the start command 460-2 to the acknowledge signal 466-2 and the start condition 460 in the read command 450 of FIG. This corresponds to a command obtained by deleting the -3 to acknowledge signal 466-3. The read command to the internal register of the communication control device 3 (12-3) by the master device 110 is a command obtained by deleting the start condition 460-3 to the acknowledge signal 466-3 in the read command 450 of FIG. It corresponds to.

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 master device 110 and the slave devices 1 to 4 (150-1 to 150-4) in the data communication system 102 described with reference to FIG. It is a figure which shows an example of the command sequence transmitted in order to set the internal register | resistor of the control apparatuses 1-3 (120-1 to 120-3). In the description of FIG. 13 and FIG. 14 described later, the address values of the communication control devices 1 to 3 (120-1 to 120-3) are all 36H, and the slave devices 1 to 4 (150-1 to 150-4) have the address values. The address values are 40H, 41H, 42H, and 43H, respectively, and the address values of the slave devices 5 to 8 (160 to 190) are 40H, 41H, 42H, and 43H, respectively. The internal addresses of the communication address setting registers 32-1 to 32-3 are all 0010H, the internal addresses of the slave address setting registers 34-1 to 34-3 are all 0014H, and the slave selection registers 36-1 to 36-1 are set. It is assumed that all the internal addresses of 36-3 are 0004H.

なお、図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 sets 01H (selection information for selecting the slave device 1 (150-1) as the connection destination) in the slave selection register 36-3 (address 0004H) of the communication control device 3 (120-3). This is a command (slave selection command).

書き込みコマンド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 slave address 404 described with reference to FIG. 12A is set to 36H (the address of the communication control device 1 (120-1)). Value) is designated, the master device 110 can set the internal register of the communication control device 1 (120-1).

また、書き込みコマンド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 slave selection register 36 is set. 01H (selection information for selecting the communication control device 2 (120-2) as a connection destination) is set to -1. Therefore, the master device 110 can set the internal register of the communication control device 2 (120-2) through the communication control device 1 (120-1).

また、書き込みコマンド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 master device 110 can set the internal register of the communication control device 3 (120-3) through the communication control device 1 (120-1) and the communication control device 2 (120-2).

図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 data communication system 102 described in FIG. 11 in order that the master device 110 sets the internal registers of the slave device 1 (150-1) and the internal registers of the slave device 2 (150-2) in this order. It is a figure which shows an example of a command sequence. It is assumed that the command sequence in FIG. 13 is executed before the command sequence in FIG. 14 is executed.

書き込みコマンド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 sets 02H (selection information for selecting the slave device 2 (150-2) as the connection destination) in the slave selection register 36-3 (address 0004H) of the communication control device 3 (120-3). This is a command (slave selection command).

書き込みコマンド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 master device 110 will communicate with the communication control device 1 (120. -1), through the communication control device 2 (120-2) and the communication control device 3 (120-3), the internal registers of the slave devices 3, 4 (150-3, 150-4) can be set .

なお、書き込みコマンド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 master device 110 passes through the communication control device 1 (120-1), the communication control device 2 (120-2), and the communication control device 3 (120-3), and then slave devices 1, 2 (150-1, 150). -2) can be set.

このように、本実施の形態のデータ通信システム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 data communication system 102 of the present embodiment, the master device 110 performs the communication control device 3 (120-3) before performing data communication with the slave devices 1-4 (150-1 to 150-4). ) Transmits a slave selection command for setting selection information to the slave selection register 36-3, and the communication control device 3 (120-3) selects a data communication target device based on the set value of the slave selection register 36-3. . Therefore, even if the slave devices 1 to 4 (150-1 to 150-4) have the same address value, the master device 110 changes the setting value of the slave selection register 36-3 to change the slave devices 1 to 4. 4 (150-1 to 150-4) can be selected to perform data communication.

また、本実施の形態のデータ通信システム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 data communication system 102 of the present embodiment, when data communication is performed between the master device 110 and the slave devices 1 to 4 (150-1 to 150-4), the master device 110 has a slave address. A data communication command in which through ID 1 is specified is transmitted to the communication control device 1 (120-1), and the communication control devices 1 and 2 (120-1 and 120-2) each have a through ID 2 and a through ID 3 as slave addresses. Is transmitted to the communication control devices 2 and 3 (120-2 and 120-3), and the communication control device 3 (120-3) receives the command received from the communication control device 2 (120-2). Based on the included slave address, data communication between the master device 110 and the slave devices 1 to 4 (150-1 to 150-4) is controlled. That is, the master device 110 transmits the slave devices 1 to 4 (150-1 to 150-4) without transmitting a command in which the address values of the slave devices 1 to 4 (150-1 to 150-4) are designated as slave addresses. ), Data communication is performed even if slave devices 1 to 4 (150-1 to 150-4) have the same address values as slave devices 5 to 8 (160 to 190). Can do.

なお、本発明は本実施形態に限定されず、本発明の要旨の範囲内で種々の変形実施が可能である。   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の構成例について説明するための図。The figure for demonstrating the 1st structural example of the data communication system of this embodiment. 本実施形態のデータ通信システムの第2の構成例について説明するための図。The figure for demonstrating the 2nd structural example of the data communication system of this embodiment. データ通信を実現するためのマスター装置の処理手順の一例について説明するためのフローチャート。The flowchart for demonstrating an example of the process sequence of the master apparatus for implement | achieving data communication. データ通信を実現するための通信制御装置の処理手順の一例について説明するためのフローチャート。The flowchart for demonstrating an example of the process sequence of the communication control apparatus for implement | achieving data communication. Cバス通信プロトコルに基づいてデータ通信を行うデータ通信システムの第1の構成例について説明するための図。Figure for the first configuration example of the data communication system will be described for performing data communication based on the I 2 C bus communication protocol. 図6(A)は、マスター装置が通信制御装置に送信する書き込みコマンドの形式の一例であり、図6(B)は、マスター装置が通信制御装置に送信する読み出しコマンドの形式の一例である。FIG. 6A illustrates an example of a format of a write command that the master device transmits to the communication control device, and FIG. 6B illustrates an example of a format of a read command that the master device transmits to the communication control device. 図7(A)は、マスター装置がスレーブ装置に送信する書き込みコマンドの形式の一例であり、図7(B)は、マスター装置がスレーブ装置に送信する読み出しコマンドの形式の一例である。FIG. 7A illustrates an example of a format of a write command transmitted from the master device to the slave device, and FIG. 7B illustrates an example of a format of a read command transmitted from the master device to the slave device. データ通信システムの第1の構成例において、マスター装置がスレーブ装置の内部レジスタを設定するために送信するコマンドシーケンスの第1の例を示す図。The figure which shows the 1st example of the command sequence which a master apparatus transmits in order to set the internal register | resistor of a slave apparatus in the 1st structural example of a data communication system. データ通信システムの第1の構成例において、マスター装置がスレーブ装置の内部レジスタを設定するために送信するコマンドシーケンスの第2の例を示す図。The figure which shows the 2nd example of the command sequence which a master apparatus transmits in order to set the internal register | resistor of a slave apparatus in the 1st structural example of a data communication system. データ通信システムの第1の構成例において、マスター装置がスレーブ装置の内部レジスタを設定するために送信するコマンドシーケンスの第3の例を示す図。The figure which shows the 3rd example of the command sequence which a master apparatus transmits in order to set the internal register | resistor of a slave apparatus in the 1st structural example of a data communication system. Cバス通信プロトコルに基づいてデータ通信を行うデータ通信システムの第2の構成例について説明するための図。Diagram for a second configuration example of the data communication system will be described for performing data communication based on the I 2 C bus communication protocol. 図12(A)は、マスター装置がスレーブ装置に送信する書き込みコマンドの形式の一例であり、図12(B)は、マスター装置がスレーブ装置に送信する読み出しコマンドの形式の一例である。FIG. 12A shows an example of a format of a write command transmitted from the master device to the slave device, and FIG. 12B shows an example of a format of a read command transmitted from the master device to the slave device. データ通信システムの第2の構成例において、マスター装置が通信制御装置の内部レジスタを設定するために送信するコマンドシーケンスの例を示す図。The figure which shows the example of the command sequence which a master apparatus transmits in order to set the internal register | resistor of a communication control apparatus in the 2nd structural example of a data communication system. データ通信システムの第2の構成例において、マスター装置がスレーブ装置の内部レジスタを設定するために送信するコマンドシーケンスの例を示す図。The figure which shows the example of the command sequence which a master apparatus transmits in order to set the internal register | resistor of a slave apparatus in the 2nd structural example of a data communication system.

符号の説明Explanation of symbols

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.
請求項1において、
前記通信制御装置は、
前記通信用のアドレス値が設定される通信用アドレス設定レジスタを含み、
前記マスター装置の前記マスター処理部は、
前記複数のスレーブ装置とデータ通信を行う前に、前記通信用アドレス設定レジスタに前記通信用のアドレス値を設定するコマンドを前記通信制御装置に送信し、
前記通信制御装置の前記通信制御処理部は、
前記通信用アドレス設定レジスタの設定値を前記通信用のアドレス値として前記比較処理を行うことを特徴とするデータ通信システム。
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.
請求項1又は2において、
前記通信制御装置は、
データ通信の対象となるスレーブ装置のアドレス値が設定されるスレーブアドレス設定レジスタを含み、
前記マスター装置の前記マスター処理部は、
前記複数のスレーブ装置とデータ通信を行う前に、前記スレーブアドレス設定レジスタにデータ通信の対象となるスレーブ装置のアドレス値を設定するコマンドを前記通信制御装置に送信し、
前記通信制御装置の前記通信制御処理部は、
前記スレーブアドレス設定レジスタの設定値を前記選択したスレーブ装置のアドレス値として前記変換処理を行うことを特徴とするデータ通信システム。
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.
請求項1又は2において、
前記通信制御装置は、
前記スレーブ選択レジスタの各設定値と当該各設定値に応じて選択されるスレーブ装置のアドレス値との対応関係を規定する対応テーブルを含み、
前記通信制御装置の前記通信制御処理部は、
前記対応テーブルに基づいて、前記スレーブ選択レジスタの設定値に対応づけられたアドレス値を前記選択したスレーブ装置のアドレス値として前記変換処理を行うことを特徴とするデータ通信システム。
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乃至4のいずれかにおいて、
前記マスター装置の前記マスター処理部は、
前記複数のスレーブ装置とデータ通信を行う際には、前記通信用のアドレス値が指定された第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.
請求項1乃至6のいずれかにおいて、
前記通信プロトコルはICバス通信プロトコルであることを特徴とするデータ通信システム。
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.
請求項8において、
前記通信用のアドレス値が設定される通信用アドレス設定レジスタを含み、
前記通信制御処理部は、
前記通信用アドレス設定レジスタの設定値を前記通信用のアドレス値として前記比較処理を行うことを特徴とする通信制御装置。
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.
請求項8又は9において、
データ通信の対象となるスレーブ装置のアドレス値が設定されるスレーブアドレス設定レジスタを含み、
前記通信制御処理部は、
前記スレーブアドレス設定レジスタの設定値を前記選択したスレーブ装置のアドレス値として前記変換処理を行うことを特徴とする通信制御装置。
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.
請求項8又は9において、
前記スレーブ選択レジスタの各設定値と当該各設定値に応じて選択されるスレーブ装置のアドレス値との対応関係を規定する対応テーブルを含み、
前記通信制御処理部は、
前記対応テーブルに基づいて、前記スレーブ選択レジスタの設定値に対応づけられたアドレス値を前記選択したスレーブ装置のアドレス値として前記変換処理を行うことを特徴とする通信制御装置。
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.
請求項8乃至11のいずれかにおいて、
前記通信制御処理部は、
前記マスター装置から受信したコマンドに含まれる第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.
請求項8乃至12のいずれかにおいて、
前記通信プロトコルはICバス通信プロトコルであることを特徴とする通信制御装置。
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.
JP2007276431A 2007-10-24 2007-10-24 Data communication system and communication control device Expired - Fee Related JP4978421B2 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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