JP5314563B2 - Inter-device communication system and communication device - Google Patents

Inter-device communication system and communication device Download PDF

Info

Publication number
JP5314563B2
JP5314563B2 JP2009243334A JP2009243334A JP5314563B2 JP 5314563 B2 JP5314563 B2 JP 5314563B2 JP 2009243334 A JP2009243334 A JP 2009243334A JP 2009243334 A JP2009243334 A JP 2009243334A JP 5314563 B2 JP5314563 B2 JP 5314563B2
Authority
JP
Japan
Prior art keywords
slave
communication
serial data
address
predetermined
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2009243334A
Other languages
Japanese (ja)
Other versions
JP2011090489A (en
Inventor
雅浩 星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Asahi Kasei Microdevices Corp
Original Assignee
Asahi Kasei EMD 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 Asahi Kasei EMD Corp filed Critical Asahi Kasei EMD Corp
Priority to JP2009243334A priority Critical patent/JP5314563B2/en
Publication of JP2011090489A publication Critical patent/JP2011090489A/en
Application granted granted Critical
Publication of JP5314563B2 publication Critical patent/JP5314563B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an inter-device communication system and a communication apparatus which can perform communication with slave devices more than the combination of the number of address setting input terminals while suppressing the number of input terminals necessary for address setting from the outside to the absolute minimum with respect to each of the plurality of slave devices connected to the same bus. <P>SOLUTION: The inter-device communication system is configured to output unique fixed serial data corresponding to each output terminal from the data output terminal (Dx) of one slave device in response to a slave address setting instruction simultaneously distributed from a master device 103 through a communication line 100 to each slave device 110, 120 and 130, and to supply serial data to the data input terminal SLA of the other slave device, and to decode the supplied serial data based on a preliminarily defined function relation, and to store the data in a prescribed data storage part as individual salve addresses, and to perform communication by using the stored individual slave addresses. <P>COPYRIGHT: (C)2011,JPO&amp;INPIT

Description

本発明は、シリアル通信バスを用いた装置間通信システムおよび通信装置に関し、特に、多種の構成要素にアクセスするためのアドレッシングスキームを可能にする装置間通信システムおよび通信装置に関する。   The present invention relates to an inter-device communication system and a communication device using a serial communication bus, and more particularly to an inter-device communication system and a communication device that enable an addressing scheme for accessing various components.

多くの電子デバイスまたは回路基盤を共通バスに接続するシステムとしてシリアル通信システムがある。
近年広く普及しているシリアル通信システムでI2C−BUS(非特許文献1参照)では、少なくとも一つのマスター装置と複数のスレーブ装置がSDA(Serial Data)とSCL(Serial Clock)との2本のバスを共通にして接続されて直列バスシステムを構成している。
There is a serial communication system as a system for connecting many electronic devices or circuit boards to a common bus.
In I2C-BUS (see Non-Patent Document 1), a serial communication system that has become widespread in recent years, at least one master device and a plurality of slave devices have two buses of SDA (Serial Data) and SCL (Serial Clock). Are connected in common to form a serial bus system.

マスター装置が各スレーブ装置に対しデータを送信するためには、各スレーブ装置を特定するスレーブアドレスと呼ばれる識別IDが付与されることを要する。そして、このスレーブアドレスはデバイスの種類により固有のスレーブアドレスが割当てられる。
また、同種のデバイスを接続するために、スレーブアドレスは変更不可能な固定部分とデバイスピン設定によるプログラマブルな部分とが設けられており、極力多数のデバイスを一つのI2C−BUSに接続できるように考慮されている。
In order for the master device to transmit data to each slave device, an identification ID called a slave address that identifies each slave device needs to be given. The slave address is assigned a unique slave address depending on the type of device.
In order to connect devices of the same type, a fixed part where the slave address cannot be changed and a programmable part by device pin setting are provided so that as many devices as possible can be connected to one I2C-BUS. Has been taken into account.

プログラム可能なビットの数は利用可能なピン数によって決まるため、例えば、3ビットがピン設定で変更可能な場合、一つのバスに最大8つの同種のデバイスを接続することが可能になる。
上述のような状況にあって、近年、スレーブアドレスの重複や、スレーブ装置の総数に対してプログラム可能なピン数が不足するという重大な問題が派生してきている。このような問題に対処するためにバス切換え回路を利用する技術が既に提案されている(例えば、特許文献1参照)。
Since the number of bits that can be programmed is determined by the number of available pins, for example, when 3 bits can be changed by pin setting, it is possible to connect a maximum of eight similar devices to one bus.
Under the circumstances as described above, in recent years, serious problems such as duplication of slave addresses and insufficient number of programmable pins with respect to the total number of slave devices have been derived. In order to cope with such a problem, a technique using a bus switching circuit has already been proposed (see, for example, Patent Document 1).

特許文献1に開示の技術では、マスター装置から発されるスレーブターゲットアドレスを直接シリアルバスシステム上に送出するのではなく、この技術提案に特有のシリアルバス拡張回路のスレーブターゲットアドレスを送出してから、スレーブ装置のスレーブターゲットアドレスを送出するようにして、同一のシリアルバスシステム内に同じスレーブターゲットアドレスをもつデバイスを複数配置できるようにしている。   In the technique disclosed in Patent Document 1, the slave target address issued from the master device is not sent directly to the serial bus system, but the slave target address of the serial bus expansion circuit peculiar to this technical proposal is sent. The slave target address of the slave device is transmitted so that a plurality of devices having the same slave target address can be arranged in the same serial bus system.

また、スレーブ装置のアドレスを動的にシフトさせることによってアドレスの数に関する制約を原理上なくしてしまおうとする技術も既に提案されている(例えば、特許文献2参照)。
しかしながら、特許文献1の提案におけるバス切換え回路では、同一のバス上にアドレスが重複したデバイスを接続できないため、重複分だけ、バス分割拡張回路を備えた上でそれらのバス切換え制御を行わねばならない。
In addition, a technique for eliminating the restriction on the number of addresses in principle by dynamically shifting the addresses of slave devices has already been proposed (see, for example, Patent Document 2).
However, since the bus switching circuit in the proposal of Patent Document 1 cannot connect devices with the same address on the same bus, the bus switching control must be performed after the bus division expansion circuit is provided for the overlapping portion. .

一方、特許文献2の提案におけるアドレスを動的にシフトさせる方法による場合には、動的にアドレスを変更するために最低限必要な専用の3ビットを確保する必要がある。このため、同一のバスに接続されるスレーブ装置が8個以下の規模に留まる多重構成に対しては、従前の入力端子のハードワイヤ接続による3ビットを利用する方法に比較して、プルアップ抵抗の付加などの外付け回路の増大を招く等の不利な点が顕著になりがちである。また、目的とするデバイスに到達するまで命令の転送を持続する必要があり、更に別のデバイスに切換えるためには毎回リセットから再度実行し直さなくてはならない等、従前のシステムよりも命令サイクルが長くなると共に、順番を飛び越えて早く通信したいといった要請には原理上応えられない。   On the other hand, in the case of the method of dynamically shifting the address in the proposal of Patent Document 2, it is necessary to secure at least three dedicated bits necessary for dynamically changing the address. For this reason, for multiple configurations where the number of slave devices connected to the same bus is 8 or less, a pull-up resistor is used in comparison with the conventional method using 3 bits by hard wire connection of input terminals. Such disadvantages as increasing the number of external circuits, such as adding, tend to be remarkable. In addition, it is necessary to continue the instruction transfer until the target device is reached, and in order to switch to another device, the instruction cycle must be re-executed from the reset every time. In principle, it is impossible to meet the demand to communicate faster by overcoming the order.

特開平11−312139号公報Japanese Patent Laid-Open No. 11-312139 特開平9−244986号公報Japanese Patent Laid-Open No. 9-244986

"UM10204_3" I2C-bus specification and user manual (cNXP B.V. 2007)"UM10204_3" I2C-bus specification and user manual (cNXP B.V. 2007)

本発明は上述のような状況に鑑みてなされたものであり、同一のバスに接続される複数のデバイスである多重構成要素の各々に対し、外部からアドレス設定するために必要な入力端子数を必要最小限に抑えながら、アドレス設定入力端子数の組合せ以上の多重構成要素との通信を可能にする装置間通信システムおよび通信装置を提供することを目的とする。   The present invention has been made in view of the above situation, and the number of input terminals required for address setting from the outside is set for each of multiple components that are a plurality of devices connected to the same bus. It is an object of the present invention to provide an inter-device communication system and a communication device that enable communication with multiple components equal to or more than the combination of the number of address setting input terminals while minimizing the necessary number.

上記課題を解決するために、本願では次に列記する技術を提案する。
(1)シリアルデータラインおよびクロックラインを有する通信ラインにマスター装置および複数のスレーブ装置が接続され前記通信ラインを通して前記マスター装置と該当するスレーブ装置との間で所定の通信プロトコルによるシリアルデータ転送を行う装置間通信システムにおいて、
同一の前記通信ラインに接続される前記複数のスレーブ装置の各々に対し、外部からアドレス設定するために必要な入力端子数を必要最小限に抑えながら、アドレス設定入力端子数の組合せ以上の前記複数のスレーブ装置との通信を可能にする装置間通信システムであって、
前記複数の各スレーブ装置は、
前記マスター装置から前記通信ラインを通して配信される同報アドレス通知によるスレーブアドレス設定命令に応じて、前記通信ラインに接続される端子以外の1以上のデータ出力端子から当該出力端子毎に対応した既定のユニークなシリアルデータである既定シリアルデータを出力する既定シリアルデータ出力手段と、
前記通信ラインに接続される端子以外の1以上のデータ入力端子から入力されたシリアルデータを予め定義された関数関係に基づいてデコードして該デコードしたデータを前記スレーブアドレス設定命令に対応した個別スレーブアドレスとして所定のデータ保持部に書込む個別スレーブアドレス設定手段と、
前記スレーブアドレス設定命令の期間に、前記既定シリアルデータ出力手段に前記既定シリアルデータを出力させるに際して前記個別スレーブアドレス設定手段に当該個別スレーブアドレスの書込みを並行して行わせ、該書込みによって設定された当該個別スレーブアドレスによる通信を行う通信制御手段と、
を有することを特徴とする装置間通信システム。
In order to solve the above problems, the present application proposes the following technologies.
(1) A master device and a plurality of slave devices are connected to a communication line having a serial data line and a clock line, and serial data transfer is performed between the master device and the corresponding slave device through the communication line using a predetermined communication protocol. In an inter-device communication system,
For each of the plurality of slave devices connected to the same communication line, the plurality of address setting input terminals more than the combination while minimizing the number of input terminals necessary for external address setting An inter-device communication system that enables communication with other slave devices,
Each of the plurality of slave devices is
In response to a slave address setting command by broadcast address notification delivered from the master device through the communication line, a predetermined number corresponding to each output terminal from one or more data output terminals other than the terminal connected to the communication line Default serial data output means for outputting default serial data which is unique serial data;
An individual slave corresponding to the slave address setting instruction by decoding serial data input from one or more data input terminals other than the terminal connected to the communication line based on a predefined function relationship Individual slave address setting means for writing to a predetermined data holding unit as an address,
In the period of the slave address setting instruction, when the predetermined serial data output means outputs the predetermined serial data, the individual slave address setting means performs the writing of the individual slave address in parallel and is set by the writing. Communication control means for performing communication by the individual slave address;
An inter-device communication system comprising:

上記(1)の装置間通信システムは、シリアルデータラインおよびクロックラインを有する通信ラインにマスター装置および複数のスレーブ装置が接続され前記通信ラインを通して前記マスター装置と該当するスレーブ装置との間で所定の通信プロトコルによるシリアルデータ転送を行う。
上記における複数の各スレーブ装置は、その既定シリアルデータ出力手段によって、前記マスター装置から前記通信ラインを通して配信される同報アドレス通知によるスレーブアドレス設定命令に応じて、前記通信ラインに接続される端子以外の1以上のデータ出力端子から当該出力端子毎に対応した既定のユニークなシリアルデータである既定シリアルデータを出力する。
In the inter-device communication system of (1), a master device and a plurality of slave devices are connected to a communication line having a serial data line and a clock line, and a predetermined amount is transmitted between the master device and the corresponding slave device through the communication line. Transfers serial data using a communication protocol.
Each of the plurality of slave devices in the above is a terminal other than a terminal connected to the communication line according to a slave address setting command by a broadcast address notification delivered from the master device through the communication line by the predetermined serial data output means The predetermined serial data, which is predetermined unique serial data corresponding to each output terminal, is output from one or more data output terminals.

また、その個別スレーブアドレス設定手段によって、前記通信ラインに接続される端子以外の1以上のデータ入力端子から入力されたシリアルデータを予め定義された関数関係に基づいてデコードして該デコードしたデータを前記スレーブアドレス設定命令に対応した個別スレーブアドレスとして所定のデータ保持部に書込む。
更に、その通信制御手段によって、前記スレーブアドレス設定命令の期間に、前記既定シリアルデータ出力手段に前記既定シリアルデータを出力させるに際して前記個別スレーブアドレス設定手段に当該個別スレーブアドレスの書込みを並行して行わせ、該書込みによって設定された当該個別スレーブアドレスによる通信を行う。
そして、その通信制御手段によって、前記スレーブアドレス設定命令の期間に、前記既定シリアルデータ出力手段に前記既定シリアルデータを出力させるに際して前記個別スレーブアドレス設定手段に当該個別スレーブアドレスの書込みを並行して行わせ、該書込みによって設定された当該個別スレーブアドレスによる通信を行う。
Further, the individual slave address setting means decodes serial data input from one or more data input terminals other than the terminal connected to the communication line based on a predefined function relationship, and converts the decoded data into Write to a predetermined data holding unit as an individual slave address corresponding to the slave address setting command.
Further, when the communication control means causes the default serial data output means to output the default serial data during the period of the slave address setting command, the individual slave address setting means writes the individual slave address in parallel. Then, communication is performed using the individual slave address set by the writing.
Then, when the communication control means causes the default serial data output means to output the default serial data during the period of the slave address setting command, the individual slave address setting means writes the individual slave address in parallel. Then, communication is performed using the individual slave address set by the writing.

(2)前記複数の各スレーブ装置のうちの一のスレーブ装置における前記既定シリアルデータを出力する前記データ出力端子である既定シリアルデータ出力端子と前記複数の各スレーブ装置のうちの他のスレーブ装置における前記既定シリアルデータを入力する既定シリアルデータ入力端子とを結ぶ既定シリアルデータ伝送手段を備えていることを特徴とする(1)の装置間通信システム。 (2) In a predetermined serial data output terminal that is the data output terminal for outputting the predetermined serial data in one slave device of the plurality of slave devices, and in another slave device in the plurality of slave devices (1) The inter-device communication system according to (1), further comprising predetermined serial data transmission means connecting the predetermined serial data input terminal for inputting the predetermined serial data.

上記(2)の装置間通信システムでは、(1)の装置間通信システムにおいて特に、前記複数の各スレーブ装置のうちの一のスレーブ装置における前記既定シリアルデータを出力する前記データ出力端子である既定シリアルデータ出力端子と前記複数の各スレーブ装置のうちの他のスレーブ装置における前記既定シリアルデータを入力する既定シリアルデータ入力端子とを結ぶ既定シリアルデータ伝送手段を備え、例えば配線である既定シリアルデータ伝送手段によって該当するスレーブ装置が結ばれて、これら該当する複数の各スレーブ装置間の連携により、前記個別スレーブアドレス設定の手順が実行され得る。   In the inter-device communication system of (2), in particular, in the inter-device communication system of (1), the default is the data output terminal that outputs the default serial data in one slave device of the plurality of slave devices. A predetermined serial data transmission means for connecting a serial data output terminal and a predetermined serial data input terminal for inputting the predetermined serial data in another slave device among the plurality of slave devices; Corresponding slave devices are connected by means, and the individual slave address setting procedure can be executed by cooperation between the corresponding slave devices.

(3)シリアルデータラインおよびクロックラインを有する通信ラインにマスター装置および複数のスレーブ装置が接続され前記通信ラインを通して前記マスター装置と該当するスレーブ装置との間で所定の通信プロトコルによるシリアルデータ転送を行う装置間通信システムにおける前記スレーブ装置として適合する通信装置において、
同一の前記通信ラインに接続される前記複数のスレーブ装置の各々に対し、外部からアドレス設定するために必要な入力端子数を必要最小限に抑えながら、アドレス設定入力端子数の組合せ以上の前記複数のスレーブ装置との通信を可能にする通信装置であって、
前記マスター装置から前記通信ラインを通して配信される同報アドレス通知によるスレーブアドレス設定命令に応じて、前記通信ラインに接続される端子以外の1以上のデータ出力端子から当該出力端子毎に対応した既定のユニークなシリアルデータである既定シリアルデータを出力する既定シリアルデータ出力手段と、
前記通信ラインに接続される端子以外の1以上のデータ入力端子から入力されたシリアルデータを予め定義された関数関係に基づいてデコードして該デコードしたデータを前記スレーブアドレス設定命令に対応した個別スレーブアドレスとして所定のデータ保持部に書込む個別スレーブアドレス設定手段と、
前記スレーブアドレス設定命令の期間に、前記既定シリアルデータ出力手段に前記既定シリアルデータを出力させるに際して前記個別スレーブアドレス設定手段に当該個別スレーブアドレスの書込みを並行して行わせ、該書込みによって設定された当該個別スレーブアドレスによる通信を行う通信制御手段と、
を有することを特徴とする通信装置。
(3) A master device and a plurality of slave devices are connected to a communication line having a serial data line and a clock line, and serial data transfer is performed between the master device and the corresponding slave device through the communication line using a predetermined communication protocol. In a communication device suitable as the slave device in an inter-device communication system ,
For each of the plurality of slave devices connected to the same communication line, the plurality of address setting input terminals more than the combination while minimizing the number of input terminals necessary for external address setting A communication device that enables communication with a slave device of
In response to a slave address setting command by broadcast address notification delivered from the master device through the communication line, a predetermined number corresponding to each output terminal from one or more data output terminals other than the terminal connected to the communication line Default serial data output means for outputting default serial data which is unique serial data;
An individual slave corresponding to the slave address setting instruction by decoding serial data input from one or more data input terminals other than the terminal connected to the communication line based on a predefined function relationship Individual slave address setting means for writing to a predetermined data holding unit as an address,
In the period of the slave address setting instruction, when the predetermined serial data output means outputs the predetermined serial data, the individual slave address setting means performs the writing of the individual slave address in parallel and is set by the writing. Communication control means for performing communication by the individual slave address;
A communication apparatus comprising:

上記(3)の通信装置は、シリアルデータラインおよびクロックラインを有する通信ラインにマスター装置および複数のスレーブ装置が接続され前記通信ラインを通して前記マスター装置と該当するスレーブ装置との間で所定の通信プロトコルによるシリアルデータ転送を行う装置間通信システムにおける前記スレーブ装置として適合する。
そして、その既定シリアルデータ出力手段によって、前記マスター装置から前記通信ラインを通して配信される同報アドレス通知によるスレーブアドレス設定命令に応じて、前記通信ラインに接続される端子以外の1以上のデータ出力端子から当該出力端子毎に対応した既定のユニークなシリアルデータである既定シリアルデータを出力する。
In the communication device of (3), a master device and a plurality of slave devices are connected to a communication line having a serial data line and a clock line, and a predetermined communication protocol is established between the master device and the corresponding slave device through the communication line. It is suitable as the slave device in the inter-device communication system that performs serial data transfer according to the above.
And, by the predetermined serial data output means, one or more data output terminals other than the terminal connected to the communication line according to the slave address setting command by the broadcast address notification delivered from the master device through the communication line To output predetermined serial data which is predetermined unique serial data corresponding to each output terminal.

また、その個別スレーブアドレス設定手段によって、前記通信ラインに接続される端子以外の1以上のデータ入力端子から入力されたシリアルデータを予め定義された関数関係に基づいてデコードして該デコードしたデータを前記スレーブアドレス設定命令に対応した個別スレーブアドレスとして所定のデータ保持部に書込む。
更に、その通信制御手段によって、前記スレーブアドレス設定命令の期間に、前記既定シリアルデータ出力手段に前記既定シリアルデータを出力させるに際して前記個別スレーブアドレス設定手段に当該個別スレーブアドレスの書込みを並行して行わせ、該書込みによって設定された当該個別スレーブアドレスによる通信を行う。
そして、その通信制御手段によって、前記スレーブアドレス設定命令の期間に、前記既定シリアルデータ出力手段に前記既定シリアルデータを出力させるに際して前記個別スレーブアドレス設定手段に当該個別スレーブアドレスの書込みを並行して行わせ、該書込みによって設定された当該個別スレーブアドレスによる通信を行う。
Further, the individual slave address setting means decodes serial data input from one or more data input terminals other than the terminal connected to the communication line based on a predefined function relationship, and converts the decoded data into Write to a predetermined data holding unit as an individual slave address corresponding to the slave address setting command.
Further, when the communication control means causes the default serial data output means to output the default serial data during the period of the slave address setting command, the individual slave address setting means writes the individual slave address in parallel. Then, communication is performed using the individual slave address set by the writing.
Then, when the communication control means causes the default serial data output means to output the default serial data during the period of the slave address setting command, the individual slave address setting means writes the individual slave address in parallel. Then, communication is performed using the individual slave address set by the writing.

(4)前記スレーブアドレス設定命令の期間に前記既定シリアルデータを出力させ、前記スレーブアドレス設定命令の期間に該当しない期間に他の情報データを出力させる出力切替え手段を備えていることを特徴とする(3)の通信装置。
上記(4)の通信装置では、(3)の通信装置において特に、その出力切替え手段によって、前記スレーブアドレス設定命令の期間に前記既定シリアルデータを出力させ、前記スレーブアドレス設定命令の期間に該当しない期間に他の情報データを出力させる。
(4) An output switching means is provided for outputting the predetermined serial data during the slave address setting command period and outputting other information data during a period not corresponding to the slave address setting command period. (3) Communication apparatus.
In the communication device of (4), particularly in the communication device of (3), the output switching means causes the default serial data to be output during the slave address setting command period, and does not correspond to the slave address setting command period. Other information data is output during the period.

(5)前記既定シリアルデータ出力手段は、当該出力端子毎に対応して前記複数の各スレーブ装置にそれぞれ対応した前記既定シリアルデータを各出力するように構成され、
前記複数の各スレーブ装置における該当する前記データ入力端子に前記既定シリアルデータ出力手段が出力する前記既定シリアルデータを分配する既定シリアルデータ分配手段を更に備えていることを特徴とする(3)または(4)の何れか一の通信装置。
(5) The predetermined serial data output means is configured to output each of the predetermined serial data corresponding to each of the plurality of slave devices corresponding to each output terminal,
(3) or (3), further comprising predetermined serial data distribution means for distributing the predetermined serial data output from the predetermined serial data output means to the corresponding data input terminal in each of the plurality of slave devices. 4) The communication device according to any one of 4).

上記(5)の通信装置では、(3)または(4)の何れか一の通信装置において特に、その前記既定シリアルデータ出力手段は、当該出力端子毎に対応して前記複数の各スレーブ装置にそれぞれ対応した前記既定シリアルデータを各出力する。そして、その既定シリアルデータ分配手段によって、前記複数の各スレーブ装置における該当する前記データ入力端子に前記既定シリアルデータ出力手段が出力する前記既定シリアルデータを分配する。   In the communication device of the above (5), in particular, in the communication device of any one of (3) or (4), the predetermined serial data output means corresponds to each of the plurality of slave devices corresponding to each output terminal. The predetermined serial data corresponding to each is output. Then, the predetermined serial data output means distributes the predetermined serial data output from the predetermined serial data output means to the corresponding data input terminal in each of the plurality of slave devices.

(6)シリアルデータラインおよびクロックラインを有する通信ラインにマスター装置および複数のスレーブ装置が接続され前記通信ラインを通して前記マスター装置と該当するスレーブ装置との間で所定の通信プロトコルによるシリアルデータ転送を行う装置間通信システムにおける前記スレーブ装置として適合する通信装置において、
同一の前記通信ラインに接続される前記複数のスレーブ装置の各々に対し、外部からアドレス設定するために必要な入力端子数を必要最小限に抑えながら、アドレス設定入力端子数の組合せ以上の前記複数のスレーブ装置との通信を可能にする通信装置であって、
前記通信ラインに接続される端子以外の1以上のデータ入力端子に供給される既定の論理値に対し予め定義された関数関係のデータを参照して当該通信装置を表すスレーブアドレスデータを決定し、該決定したスレーブアドレスデータを個別スレーブアドレスとして所定のデータ保持部に書込む個別スレーブアドレス決定手段と、
前記個別スレーブアドレス決定手段によって前記データ保持部に書込まれた当該個別スレーブアドレスによる通信を行う通信制御手段と、
を有することを特徴とする通信装置。
(6) A master device and a plurality of slave devices are connected to a communication line having a serial data line and a clock line, and serial data transfer is performed between the master device and the corresponding slave device through the communication line using a predetermined communication protocol. In a communication device suitable as the slave device in an inter-device communication system ,
For each of the plurality of slave devices connected to the same communication line, the plurality of address setting input terminals more than the combination while minimizing the number of input terminals necessary for external address setting A communication device that enables communication with a slave device of
Determining slave address data representing the communication device with reference to data of a function relationship defined in advance for a predetermined logical value supplied to one or more data input terminals other than the terminal connected to the communication line; Individual slave address determination means for writing the determined slave address data as a specific slave address in a predetermined data holding unit;
Communication control means for performing communication by the individual slave address written in the data holding unit by the individual slave address determination means;
A communication apparatus comprising:

上記(6)の通信装置は、シリアルデータラインおよびクロックラインを有する通信ラインにマスター装置および複数のスレーブ装置が接続され前記通信ラインを通して前記マスター装置と該当するスレーブ装置との間で所定の通信プロトコルによるシリアルデータ転送を行う装置間通信システムにおける前記スレーブ装置として適合する。
そして、その個別スレーブアドレス決定手段によって、前記通信ラインに接続される端子以外の1以上のデータ入力端子に供給される既定の論理値に対し予め定義された関数関係のデータを参照して当該通信装置を表すスレーブアドレスデータを決定し、該決定したスレーブアドレスデータを個別スレーブアドレスとして所定のデータ保持部に書込む。
また、その通信制御手段によって、前記個別スレーブアドレス決定手段によって前記データ保持部に書込まれた当該個別スレーブアドレスによる通信を行う。
In the communication device of (6), a master device and a plurality of slave devices are connected to a communication line having a serial data line and a clock line, and a predetermined communication protocol is established between the master device and the corresponding slave device through the communication line. It is suitable as the slave device in the inter-device communication system that performs serial data transfer according to the above.
Then, the individual slave address determination means refers to the data related to the function defined in advance for the predetermined logical value supplied to one or more data input terminals other than the terminal connected to the communication line. Slave address data representing the device is determined, and the determined slave address data is written in a predetermined data holding unit as an individual slave address.
The communication control means performs communication using the individual slave address written in the data holding unit by the individual slave address determination means.

マスター装置からのスレーブアドレス設定命令の発信に際し、スレーブアドレスを決定するためのスレーブ装置の外部端子が最小1端子の付加で済み、該付加した1端子であっても、スレーブ装置が生成し出力可能なシリアルパターンの数だけスレーブアドレスを設定可能な機会を増やすことができる。
スレーブ装置相互間でもまたスレーブ装置単独でも端子の接続関係だけでスレーブアドレスの管理設計が可能になり、装置間通信システム以外の他のスイッチ等の制御を必要とせず、アドレスの重複の問題を解決するための調停装置等を不要にすることができる。
When sending a slave address setting command from the master device, the slave device can be generated and output even if it is added to the external terminal of the slave device to determine the slave address. The number of opportunities for setting slave addresses can be increased by the number of serial patterns.
Slave address management design is possible only with the terminal connection relationship between slave devices or a single slave device, eliminating the need for control of switches other than the inter-device communication system, and solving the address duplication problem It is possible to eliminate the need for an arbitration device or the like.

スレーブアドレスを決定するための関数で、既存システム同様に常時固定(電源接続等)した場合と同じアドレスにすることによって既存のシステムに置き換えることができる。従って、更に多重構成要素の拡張に移行することが容易である。
マスター装置によるスレーブアドレス設定命令は1回で決定され保持されるため、従来技術に見られる多重構成要素間にアクセスするために通常通信以外の例外的な設定を繰り返す必要がない。
A function for determining a slave address, which can be replaced with an existing system by setting the same address as that in a case where it is always fixed (power connection, etc.) as in the existing system. Therefore, it is easy to move to expansion of multiple components.
Since the slave address setting command by the master device is determined and held once, there is no need to repeat exceptional settings other than normal communication in order to access between multiple components found in the prior art.

スレーブアドレスを決める端子の接続はデバイス同士でシリアルでもパラレルでも可能で、更に、自己接続でも可能であるため、同じ通信ラインに使われやすいファミリーデバイスのような入出力数が異なるデバイスで使われた場合でも、配線方法の選択肢が広く、デバイスを適切な位置に配置しやすい。従って、配置上の制約に起因する性能劣化や設置面積の拡大を抑制することができる。   The terminals that determine the slave address can be connected serially or in parallel between devices, and can also be self-connected, so they were used by devices with different numbers of inputs and outputs, such as family devices that are easily used on the same communication line. Even in this case, there are wide choices of wiring methods, and it is easy to place the device at an appropriate position. Therefore, it is possible to suppress performance degradation and expansion of the installation area due to restrictions on arrangement.

本発明の一つの実施の形態としての装置間通信システムを表す系統図である。It is a systematic diagram showing the communication system between apparatuses as one embodiment of this invention. 図1の装置間通信システムにおけるスレーブアドレス設定スキームの概要を表すフローチャートである。3 is a flowchart showing an outline of a slave address setting scheme in the inter-device communication system of FIG. 1. 図1の装置間通信システムにおける各部間で授受される信号(データ)の形態を表す図である。It is a figure showing the form of the signal (data) exchanged between each part in the communication system between apparatuses of FIG. 図1の装置間通信システムにおけるスレーブ装置に供給されるシリアルIDとこれに対応する関数値との関係を表す図である。It is a figure showing the relationship between the serial ID supplied to the slave apparatus in the communication system between apparatuses of FIG. 1, and the function value corresponding to this. 図1の装置間通信システムに適用されるスレーブ装置の構成例を表すブロック図である。It is a block diagram showing the structural example of the slave apparatus applied to the communication system between apparatuses of FIG. 図5のスレーブ装置単体での動作を表すフローチャートである。6 is a flowchart showing an operation of a single slave device in FIG. 5. 図1の装置間通信システムにおけるスレーブ装置のSLA端子に供給される信号とこれに対応するスレーブアドレスおよび関数値との関係を例示する図である。It is a figure which illustrates the relationship between the signal supplied to the SLA terminal of the slave apparatus in the communication system between apparatuses of FIG. 1, and the slave address and function value corresponding to this. 本発明の装置間通信システムの他の実施の形態を表す系統図である。It is a systematic diagram showing other embodiment of the communication system between apparatuses of this invention. 本発明の装置間通信システムの更に他の実施の形態を表す系統図である。It is a systematic diagram showing other embodiment of the communication system between apparatuses of this invention. 本発明の装置間通信システムおよび通信装置の更に他の実施の形態を表す系統図である。It is a systematic diagram showing other embodiment of the communication system between apparatuses of this invention, and a communication apparatus.

以下に、図面を参照して本発明の実施の形態につき詳述することにより本発明を明らかにする。
図1は、本発明の一つの実施の形態としての装置間通信システムを表す系統図である。
図1の装置間通信システムは、同一のシリアル通信バスに本発明のシリアル通信用スレーブ装置を複数個接続する多重構成の態様を採る。
Hereinafter, the present invention will be clarified by describing embodiments of the present invention in detail with reference to the drawings.
FIG. 1 is a system diagram showing an inter-device communication system as one embodiment of the present invention.
The inter-device communication system of FIG. 1 employs a multiplex configuration in which a plurality of serial communication slave devices of the present invention are connected to the same serial communication bus.

シリアル通信バス
100はシリアルクロック(SCL)ライン101およびシリアルデータ(SDA)ライン102の2本の通信線で通信を行うことが可能であり、マスター装置103がシリアルクロック(SCL)ライン101を制御してSDAライン102でデータを送受信する。
この実施の形態では、特段の言及がない場合は、前掲の非特許文献1所載のI2C(デファクトスタンダード)における7ビットアドレスのフォーマットを用いたI2C通信プロトコル上で作動するものとして、即ち、通常のプロトコル部分についてはI2Cに準拠しているものとして、以下の説明を行う。
The serial communication bus 100 can communicate with two communication lines of a serial clock (SCL) line 101 and a serial data (SDA) line 102, and the master device 103 controls the serial clock (SCL) line 101. The SDA line 102 transmits and receives data.
In this embodiment, unless otherwise specified, it is assumed that the system operates on the I2C communication protocol using the 7-bit address format in I2C (de facto standard) described in Non-Patent Document 1 described above, that is, normally The following description will be made assuming that the protocol part conforms to I2C.

マスター装置103はSCLライン101とSDAライン102との2本のラインにより各対応するスレーブ装置とI2C通信を行う。
即ち、第1スレーブ装置110のクロックライン111およびシリアルデータライン112が各対応するSCLライン101およびSDAライン102に接続され、これらクロックライン111およびデータライン112を通してマスター装置103が第1スレーブ装置110とI2C双方向通信を行う。
The master device 103 performs I2C communication with each corresponding slave device through two lines of the SCL line 101 and the SDA line 102.
That is, the clock line 111 and the serial data line 112 of the first slave device 110 are connected to the corresponding SCL line 101 and SDA line 102, and the master device 103 is connected to the first slave device 110 through the clock line 111 and the data line 112. I2C bidirectional communication is performed.

また、第2スレーブ装置120のクロックライン121およびシリアルデータライン122が各対応するSCLライン101およびSDAライン102に接続され、これらクロックライン121およびデータライン122を通してマスター装置103が第2スレーブ装置120とI2C双方向通信を行う。
更に、第3スレーブ装置130のクロックライン131およびシリアルデータライン132が各対応するSCLライン101およびSDAライン102に接続され、これらクロックライン131およびデータライン132を通してマスター装置103が第3スレーブ装置130とI2C双方向通信を行う。
The clock line 121 and serial data line 122 of the second slave device 120 are connected to the corresponding SCL line 101 and SDA line 102, and the master device 103 and the second slave device 120 are connected through the clock line 121 and data line 122. I2C bidirectional communication is performed.
Further, the clock line 131 and the serial data line 132 of the third slave device 130 are connected to the corresponding SCL line 101 and SDA line 102, and the master device 103 is connected to the third slave device 130 through the clock line 131 and the data line 132. I2C bidirectional communication is performed.

第1スレーブ装置110は、また、直接の制御或は情報伝達対象である第1装置116とD1Bデータ出力バス114およびデータ入力バス115で結ばれている。この第1スレーブ装置110は通信機能を有し、一方、第1装置116は、計測その他の多様な拡張機能を有している。そして、上述のようにD1Bデータ出力バス114およびデータ入力バス115で結ばれたこれら第1スレーブ装置110と第1装置116とが第1機能ユニットFU1を構成している。   The first slave device 110 is also connected to the first device 116 that is the object of direct control or information transmission by the D1B data output bus 114 and the data input bus 115. The first slave device 110 has a communication function, while the first device 116 has various extended functions such as measurement. As described above, the first slave device 110 and the first device 116 connected by the D1B data output bus 114 and the data input bus 115 constitute the first functional unit FU1.

図1に例示されたシステムでは、第1機能ユニットFU1と同様の機能ユニットである第2機能ユニットFU2および第3機能ユニットFU3が構成され、合計3基の機能部ユニットが配置されている。
即ち、通信機能を有する第2スレーブ装置120と、その直接の制御或は情報伝達対象であって計測その他の多様な拡張機能を有する第2装置126とが、D2Bデータ出力バス124およびデータ入力バス125で結ばれて、第2機能ユニットFU2を構成している。
In the system illustrated in FIG. 1, a second functional unit FU2 and a third functional unit FU3, which are functional units similar to the first functional unit FU1, are configured, and a total of three functional unit units are arranged.
That is, the second slave device 120 having a communication function, and the second device 126 having a variety of extended functions such as measurement and other direct control or information transmission targets are a D2B data output bus 124 and a data input bus. The second functional unit FU2 is configured by connecting at 125.

また、通信機能を有する第3スレーブ装置130と、その直接の制御の対象であって計測その他の多様な拡張機能を有する第3装置136とが、D3Bデータ出力バス134およびデータ入力バス135で結ばれて、第3機能ユニットFU2を構成している。
I2C通信プロトコルでは、通信の相手方であるスレーブ装置に対し、7ビットのスレーブアドレスとこれに続く8ビット目のデータ方向ビットとが続いて送信される。
In addition, the third slave device 130 having a communication function and the third device 136 that is an object of direct control and has various extended functions such as measurement are connected by the D3B data output bus 134 and the data input bus 135. Thus, the third functional unit FU2 is configured.
In the I2C communication protocol, a 7-bit slave address followed by an eighth data direction bit is subsequently transmitted to a slave device that is a communication partner.

スレーブアドレスが送信されると、これを受信した各スレーブ装置はそれぞれ自己のアドレスと比較し、送信されてきたアドレスと自己のアドレスとが一致したときにマスター装置から指示があったと判断する。
一般に、スレーブアドレスは、変更不能な固定部分とプログラム可能な部分とを有し、通信システム内で同一仕様のデバイス(図示の例ではスレーブ装置)が複数個用いられる場合に、このプログラム可能な部分を変更して識別し接続される。プログラム可能な部分のビット数は、利用可能な端子数によって決定される。
When the slave address is transmitted, each slave device that has received the slave address compares it with its own address, and determines that there is an instruction from the master device when the transmitted address matches its own address.
In general, a slave address has a fixed part that cannot be changed and a programmable part, and this programmable part when a plurality of devices of the same specification (slave devices in the illustrated example) are used in the communication system. Change to identify and connect. The number of bits of the programmable part is determined by the number of available terminals.

図1の装置間通信システムにおける第1スレーブ装置110では、プログラムするに利用可能な端子SLAは1つ、即ち、プログラム可能な部分は1ビットである。そして、この1ビットが論理1と論理0とをとることが可能であることから、プログラム可能なスレーブアドレスは2種類である。
既述のように、図1の実施の形態では、第1ないし第3の3基の機能ユニットFU1〜FU3を備えているため、マスター装置103との通信バス100に3つのスレーブ装置(第1スレーブ装置110、第2スレーブ装置120、第3スレーブ装置130)が接続されている。
In the first slave device 110 in the inter-device communication system of FIG. 1, there is one terminal SLA that can be used for programming, that is, the programmable portion is 1 bit. Since this 1 bit can take logic 1 and logic 0, there are two types of programmable slave addresses.
As described above, since the first to third functional units FU1 to FU3 are provided in the embodiment of FIG. 1, three slave devices (first devices) are included in the communication bus 100 with the master device 103. Slave device 110, second slave device 120, and third slave device 130) are connected.

一方、上述のように、スレーブアドレスは2種類であるため、何れか2つのスレーブ装置は識別されず同時に通信しようとすることになるため、何らの手立てもしないままでは、これらについての通信を分離できない。
このような状況にあって、図1の実施の形態では、スレーブ装置110、120、130に対し異なるスレーブアドレスを設定することを可能にしてマスター装置103との通信を各別に分離可能にしている。
On the other hand, as described above, since there are two types of slave addresses, any two slave devices will not be identified and will attempt to communicate at the same time, so the communication of these will be separated without any intervention. Can not.
In such a situation, in the embodiment of FIG. 1, it is possible to set different slave addresses for the slave devices 110, 120, and 130 so that communication with the master device 103 can be separated separately. .

この方法について次に説明する。3種類のスレーブアドレスを区分して指定するには、プログラム可能なアドレスビットは2ビット必要である。今、固定アドレスを「10101」と仮定し「10101XX」の下位2ビットを決定するためのスレーブアドレスの設定スキームを次のようにする。
図2は、図1の装置間通信システムにおけるスレーブアドレス設定スキームの概要を表すフローチャートである。
通信デバイス(マスター装置103、第1スレーブ装置110、第2スレーブ装置120、および、第3スレーブ装置130)は、電源の立ち上げ等により先ず初期状態になる(第1スレーブ装置110:S211、第2スレーブ装置120:S221、第3スレーブ装置130:S231)。
This method will be described next. To specify the three types of slave addresses separately, two programmable address bits are required. Now, assuming that the fixed address is “10101”, the slave address setting scheme for determining the lower 2 bits of “10101XX” is as follows.
FIG. 2 is a flowchart showing an outline of a slave address setting scheme in the inter-device communication system of FIG.
The communication devices (the master device 103, the first slave device 110, the second slave device 120, and the third slave device 130) are first in an initial state when the power is turned on (first slave device 110: S211, second device). 2 slave device 120: S221, third slave device 130: S231).

次いで、マスター装置103が各スレーブ装置110、120、130に対し同報通知を行う。従って、各スレーブ装置110、120、130はこの同報通知を受信して、それぞれの動作を開始する(第1スレーブ装置110:S212、第2スレーブ装置120:S222、第3スレーブ装置130:S232)。
ここに、同報通知とは、マスター装置が個々のスレーブ装置に対し逐次要求を発するのではなく、要求を送るためのスレーブアドレスを指定して一斉に送信する通知であり、I2Cではゼネラル・コール・アドレス(General Call Address)に相当する。
第1スレーブ装置110はマスター装置103からのスレーブアドレス設定命令H06を受信し(S213)、予め定義されたシリアルコードをバスから出力する。
Next, the master device 103 sends a broadcast notification to each of the slave devices 110, 120, and 130. Accordingly, each slave device 110, 120, 130 receives this broadcast notification and starts its operation (first slave device 110: S212, second slave device 120: S222, third slave device 130: S232). ).
Here, the broadcast notification is a notification in which a master device does not sequentially issue requests to individual slave devices but designates a slave address for sending a request and transmits them all at once. -Corresponds to an address (General Call Address).
The first slave device 110 receives the slave address setting command H06 from the master device 103 (S213), and outputs a predefined serial code from the bus.

説明の便宜上、図1の実施形態では、各スレーブ装置110、120、130は図3の311に示すバス信号DxBのようにSCL信号301に同期して任意の値Nをシリアル値として出力する機能を有するものとする。
図3における同報通知命令では、SCL信号301に同期してSDA上で図中321に示す論理値が受渡しされる。
また、上述のシリアル値は予め任意に定義されたユニークなシリアルデータであってよいが、説明の便宜上、この例では、図3の334に示すようなバスコードが出力され、各スレーブ装置110、120、130では、図中、330、331、332、333に示すようなシリアル信号が生成され各端子から出力される。
For convenience of explanation, in the embodiment of FIG. 1, each slave device 110, 120, 130 has a function of outputting an arbitrary value N as a serial value in synchronization with the SCL signal 301 like the bus signal DxB indicated by 311 in FIG. 3. It shall have.
In the broadcast notification command in FIG. 3, a logical value indicated by reference numeral 321 in the drawing is delivered on the SDA in synchronization with the SCL signal 301.
Further, the above-described serial value may be unique serial data that is arbitrarily defined in advance. However, for convenience of explanation, in this example, a bus code as shown by 334 in FIG. 3 is output, and each slave device 110, In 120 and 130, serial signals as indicated by 330, 331, 332, and 333 in the figure are generated and output from the respective terminals.

図2のフローチャートのとおり、第1スレーブ装置110における主流の処理フローとは別に、スレーブ装置間でシリアル信号の受渡しを行う動作の開始のタイミングで第3スレーブ装置130に対するシリアルデータが出力される(S215)。図2ではこのことを破線矢線SD1により視覚的に明示している。
このシリアルデータそのものは、その開始(S215)からマスタークロックが8クロック分出力される連続したデータである(S216)。
As shown in the flowchart of FIG. 2, apart from the mainstream processing flow in the first slave device 110, serial data is output to the third slave device 130 at the start timing of the operation of transferring serial signals between the slave devices ( S215). In FIG. 2, this is visually indicated by a broken line arrow SD1.
The serial data itself is continuous data from which the master clock is output for 8 clocks (S216).

第1スレーブ装置110はまた、既述のように、D1端子からのシリアル信号の出力と同時にSLA端子からシリアル信号を受信する機能を備えており(S214)、マスタークロックSCLと同期して取込まれたシリアル信号(S216)を所定の関数(関数テーブルや数式等)で表される値との対応関係に基づいて、第2スレーブ装置120から受信したシリアル信号(シリアルID:破線矢線SD2)をデコードし、プログラム可能なアドレスビット値を得る。   As described above, the first slave device 110 also has a function of receiving a serial signal from the SLA terminal simultaneously with the output of the serial signal from the D1 terminal (S214), and takes in synchronization with the master clock SCL. The serial signal (S216) received from the second slave device 120 based on the correspondence with the value represented by a predetermined function (function table, mathematical expression, etc.) (serial ID: dashed arrow line SD2) To obtain a programmable address bit value.

図4はスレーブ装置に供給されるシリアル信号(シリアルID)とこの信号がデコードされた結果としての関数値(関数対応値)との対応関係を表す図である。
SCLに同期して8ビット入力を行うことが可能であるが、この実施の形態では、未定義のビットは2ビットであり、この2ビットはシリアルID8ビットのうちの何れか2ビットであればよい。従って、このビット位置は、例えば、MSBを7番目のビットとして2番目のビットと1番目のビットとの2ビットをこれに当て、この2ビットによってスレーブアドレスを特定することができる。
また、図4の関数対応値も、I2Cにおける7ビットのスレーブアドレスの全ての組み合わせに対応するテーブルを持つ必要はなく、未定義の2ビットに対応する下位2ビットがあればよく、上位ビットは不要であるため、図4ではこれら上位ビットは一律に「X」と表記してある。
FIG. 4 is a diagram showing a correspondence relationship between a serial signal (serial ID) supplied to the slave device and a function value (function corresponding value) as a result of decoding this signal.
Although it is possible to input 8 bits in synchronization with the SCL, in this embodiment, the undefined bits are 2 bits, and these 2 bits are any 2 bits of the serial ID 8 bits. Good. Therefore, for this bit position, for example, MSB is the seventh bit, and the two bits of the second bit and the first bit are applied to this, and the slave address can be specified by these two bits.
Also, the function corresponding values in FIG. 4 do not need to have a table corresponding to all combinations of 7-bit slave addresses in I2C, it is sufficient if there are lower 2 bits corresponding to undefined 2 bits, Since these are unnecessary, these upper bits are uniformly written as “X” in FIG.

上述において、シリアルIDと関数値との対応関係は、定義を意図したビット数(未定義のビット数)に合わせてその限りのビット長で対応付けたものであってもよいし、また、全アドレスビット長で対応付けたものであってもよい。前者のように、未定義の部分のみの少ないビット数で関数値との対応関係を定義した場合には、プログラム(改変)が許容されない固定部の各ビットはその値を問うものではない。このため、本発明の実施の形態で適用するスレーブ装置のアドレス決定方法は、固定部を異にするアドレスを持つ装置(デバイス)との間の通信についても適用することができる。   In the above description, the correspondence relationship between the serial ID and the function value may correspond to the number of bits intended to be defined (the number of undefined bits) with a limited bit length, or all It may be associated with the address bit length. As in the former case, when the correspondence relationship with the function value is defined with a small number of bits of only undefined portions, each bit of the fixed portion where the program (modification) is not permitted does not ask the value. For this reason, the address determination method of the slave device applied in the embodiment of the present invention can also be applied to communication with a device (device) having an address with a different fixed part.

尚、I2Cの7ビットスレーブアドレスをそのままシリアルIDコードとして用いる場合は、対応関係は1対1となる。このため、シリアルIDコードを直接書込んで保持可能な記憶回路を備えるこれにより、既述のような関数値との対応関係を定義する必要がなくなり、従って、対応関係のテーブルや式等を省略することができる。
第1スレーブ装置110のシリアルID出力は出力バスD1B[3:0]のうちの一つを通して第3スレーブ装置130に供給される。第1スレーブ装置110での上述のステップS215から出力を開始したシリアル信号SD1(破線矢線)は、第3スレーブ装置130における、第1スレーブ装置110について既述のような処理フローに従って、そのSLA端子からシリアルIDとして取込まれ(S234)、第3スレーブ装置130でのスレーブ装置アドレスの読込み可能な部分(プログラム可能なアドレスビット値を)を決定するために用いられる。
If the I2C 7-bit slave address is used as it is as a serial ID code, the correspondence is one-to-one. For this reason, a memory circuit capable of directly writing and holding a serial ID code is provided, so that it is not necessary to define a correspondence relationship with a function value as described above, and therefore a correspondence table or expression is omitted. can do.
The serial ID output of the first slave device 110 is supplied to the third slave device 130 through one of the output buses D1B [3: 0]. The serial signal SD1 (broken arrow line) that has started to be output from the above-described step S215 in the first slave device 110 is the SLA according to the processing flow as described above for the first slave device 110 in the third slave device 130. It is taken in from the terminal as a serial ID (S234) and used to determine the readable portion (programmable address bit value) of the slave device address in the third slave device 130.

従って、出力バスD1Bから出力されるD1B[3:0]の4信号のうち、少なくとも一つは第3スレーブ装置130がステップS237でスレーブ装置アドレスを決定する固定アドレス以外の部分と対(ペア)を成していなければ、ステップS215の処理によってステップS234の処理のために供給されるシリアルIDコードであるSD1でスレーブ装置アドレスを決定することができない。   Accordingly, at least one of the four signals D1B [3: 0] output from the output bus D1B is paired with a portion other than the fixed address for which the third slave device 130 determines the slave device address in step S237. If not, the slave device address cannot be determined by SD1 which is the serial ID code supplied for the process of step S234 by the process of step S215.

このため、既述の対応関係の関数(テーブルや式等)関係により、少なくとも同じ通信ライン上で用いられることが想定される装置同士で対になるような対応関係の関数(テーブルや式等)関係を予め決めておく必要がある。
このように、第1スレーブ装置110は同報通知命令に合わせシリアルIDを出力する一方、SLA端子からシリアルID入力を受けるが、図1における装置間通信システムでは、第1スレーブ装置110、第2スレーブ装置120、および、第3スレーブ装置130は、予め異なるシリアルIDがそれらの各SLA端子から入力されるように構成されている。
For this reason, correspondence functions (tables, formulas, etc.) that are paired between devices that are supposed to be used on at least the same communication line by the above-described correspondence functions (tables, formulas, etc.). It is necessary to determine the relationship in advance.
As described above, the first slave device 110 outputs the serial ID in accordance with the broadcast notification command, while receiving the serial ID input from the SLA terminal. In the inter-device communication system in FIG. The slave device 120 and the third slave device 130 are configured such that different serial IDs are input in advance from their respective SLA terminals.

図1の装置間通信システムでは、第1スレーブ装置110のD1端子からのシリアルID出力D1B[1]が、第3スレーブ装置130のSLA端子に配線133を通して供給される。
また、第1スレーブ装置110のSLA端子への入力として、第2スレーブ装置120のD2端子からのシリアルID出力D1B[2]が配線113を通して供給される。
一方、第2スレーブ装置120のSLA端子は、配線123を通して接地(GND)レベルの信号が供給されて論理0の状態に維持されている。
In the inter-device communication system of FIG. 1, the serial ID output D1B [1] from the D1 terminal of the first slave device 110 is supplied to the SLA terminal of the third slave device 130 through the wiring 133.
Further, the serial ID output D1B [2] from the D2 terminal of the second slave device 120 is supplied through the wiring 113 as an input to the SLA terminal of the first slave device 110.
On the other hand, the SLA terminal of the second slave device 120 is maintained in a logic 0 state by being supplied with a ground (GND) level signal through the wiring 123.

図2のフローチャートにおける例では、第2スレーブ装置120に対して供給する接地(GND)レベルの信号をSD0として表し、シリアルIDの入力開始(S224)から図2の330に示されたシリアルID信号パターンと同じ論理「00000000」が供給されることとしている。
各スレーブ装置110、120、130は、マスター装置103から転送された同報通知命令を受信してACK(アクノレッジ)を返すと共に、図4に示された対応関係に基づいて、シリアルIDをデコードしてこの結果をプログラム可能な2ビットのアドレスデータとする。これにより、各スレーブ装置110、120、130は、決定した自装置のアドレスを保持する。
In the example of the flowchart of FIG. 2, the ground (GND) level signal supplied to the second slave device 120 is represented as SD0, and the serial ID signal indicated by 330 in FIG. 2 from the start of serial ID input (S224). It is assumed that the same logic “00000000” as the pattern is supplied.
Each slave device 110, 120, 130 receives the broadcast notification command transferred from the master device 103 and returns an ACK (acknowledge), and decodes the serial ID based on the correspondence shown in FIG. This result is set as programmable 2-bit address data. As a result, each of the slave devices 110, 120, and 130 holds the determined address of the own device.

図1の装置間通信システムでは、各スレーブ装置間が上述のように接続されているため、第1スレーブ装置110は図3における332のシリアル信号D[2]として「10101100」を受信する。
一方、第3スレーブ装置は、図3における331のシリアル信号D[1]として「10101010」を受信する。
また、第2スレーブ装置120は、既述のように、そのSLA端子が配線123を通して常時接地されて論理0の状態に維持されており、図3における330のシリアル信号D[0]として「00000000」を受信する。
In the inter-device communication system of FIG. 1, since the slave devices are connected as described above, the first slave device 110 receives “10101100” as the serial signal D [2] 332 in FIG.
On the other hand, the third slave device receives “10101010” as the serial signal D [1] 331 in FIG.
Further, as described above, the SLA terminal of the second slave device 120 is always grounded through the wiring 123 and is maintained in the logic 0 state, and the serial signal D [0] of 330 in FIG. Is received.

第1スレーブ装置110、第2スレーブ装置120、および、第3スレーブ装置130では、上述のように受信した信号から、図4の対応関係に基づいて、第1スレーブ装置110は「10」、第3スレーブ装置130は「01」、第2スレーブ装置120は「00」をプログラム可能なアドレスビットとして設定する(図2:S217、S227、S237)。
次いで、マスター装置103は、シリアル通信バス100(SCLライン101およびSDAライン102)を解放する(図2:S218、S228、S238)。これらのステップでI2Cにおけるストップ条件(STOP)の発行に到る。
In the first slave device 110, the second slave device 120, and the third slave device 130, from the signals received as described above, the first slave device 110 is “10” based on the correspondence relationship in FIG. The three slave devices 130 set “01” and the second slave device 120 “00” as programmable address bits (FIG. 2: S217, S227, S237).
Next, the master device 103 releases the serial communication bus 100 (SCL line 101 and SDA line 102) (FIG. 2: S218, S228, S238). In these steps, the stop condition (STOP) is issued in I2C.

ステップS218、S228、S238に到った時点で、第1スレーブ装置110、第2スレーブ装置120、および、第3スレーブ装置130では、それらのスレーブアドレスにおける末尾2ビットの「XX」が確定している。
即ち、第1スレーブ装置110ではスレーブアドレスが「1010110」、第2スレーブ装置120では「1010100」、第3スレーブ装置130では「1010101」となっている。
At the time of reaching steps S218, S228, and S238, the first slave device 110, the second slave device 120, and the third slave device 130 determine “XX” of the last two bits in the slave addresses. Yes.
That is, the slave address is “1010110” in the first slave device 110, “1010100” in the second slave device 120, and “1010101” in the third slave device 130.

図4の対応関係に基づいてデコードされて出力される4種類のシリアルIDは、これらをスレーブアドレスとして読込み可能なアドレスの全てと対を成し得るように関係付けているため、スレーブアドレスとして書込み可能な4アドレス全てが指定可能である。
このため、図1の実施の形態における配線133はD1B[1]に接続されているが、通信ライン上で重複しないようにするための第3スレーブ装置130のスレーブアドレスとして「1010111」の選択を所望する場合はD1B[3]と接続するようにすればよい。
The four types of serial IDs that are decoded and output based on the correspondence in FIG. 4 are related so that they can be paired with all of the addresses that can be read as slave addresses. All four possible addresses can be specified.
For this reason, the wiring 133 in the embodiment of FIG. 1 is connected to D1B [1], but “1010111” is selected as the slave address of the third slave device 130 so as not to overlap on the communication line. If desired, it may be connected to D1B [3].

ステップS218、S228、S238におけるI2Cのストップ条件発行後は、同じ通信ラインに繋がる他の何れのマスター装置でも通常通信開始可能なアイドル状態になる(図2:S219、S229、S239)。
ステップS219、S229、S239のアイドル状態では、上述のようなスレーブアドレスを用いて特別な制御を行わずとも第1スレーブ装置110、第2スレーブ装置120、および、第3スレーブ装置130に対してデータの送受信を行うことができる。
After issuing the I2C stop condition in steps S218, S228, and S238, any other master device connected to the same communication line enters an idle state in which normal communication can be started (FIG. 2: S219, S229, and S239).
In the idle state of steps S219, S229, and S239, data is not sent to the first slave device 110, the second slave device 120, and the third slave device 130 without performing special control using the slave address as described above. Can be sent and received.

即ち、マスター装置103が同報通知を発してから上述のアイドル状態に遷移した後(ストップ条件発行後)、I2Cバスに関する一般的なアイドル状態になる。既述のステップS217、S227、S237で各スレーブ装置のアドレスは確定しているため、これ以降は、アドレス確定のための特殊な形態の通信は必要とされなくなる。
換言すれば、通信を行う場合に、当初の一回のみ上述のような特殊な手続を行えば、これ以降は通常の装置間通信システムとして機能し得る。
That is, after the master device 103 issues a broadcast notification and transitions to the above-described idle state (after issuing a stop condition), the master device 103 enters a general idle state related to the I2C bus. Since the addresses of the slave devices are determined in the above-described steps S217, S227, and S237, no special form of communication for address determination is required thereafter.
In other words, when performing communication, if the special procedure as described above is performed only once at the beginning, it can function as a normal inter-device communication system.

図5は図1の装置間通信システムに適用されるスレーブ装置の構成例を表すブロック図である。
図5のスレーブ装置500は、図1における第1スレーブ装置110、第2スレーブ装置120、および、第3スレーブ装置130に相応し、これらを代表して表したものであり、この図5においては、改めて参照符号500を附している。
スレーブ装置500は、通常のこの種のスレーブ装置と同様にSDA端子501およびSCL端子502を有し、更に、プログラム可能なアドレス指定端子であるSLA端子503を備えている。
FIG. 5 is a block diagram showing a configuration example of a slave device applied to the inter-device communication system of FIG.
The slave device 500 in FIG. 5 corresponds to the first slave device 110, the second slave device 120, and the third slave device 130 in FIG. 1 and represents them representatively. In FIG. The reference numeral 500 is newly added.
The slave device 500 has an SDA terminal 501 and an SCL terminal 502 as well as an ordinary slave device of this type, and further includes an SLA terminal 503 that is a programmable addressing terminal.

尚、プログラム可能なアドレス指定端子はこれを複数備えてもよく、この場合も発明思想として違わず且つ単一のプログラム可能なアドレス指定端子を備えた例から略自明の構成である。このため、ここでは、単一のプログラム可能なアドレス指定端子を備えた例について説明する。
図5における端子H1、H2、および、H3を含む端子部504は、図1における第1装置116(第2装置126、第3装置136)からのデータ入力バス115(125、135)に対応している。
Note that a plurality of programmable addressing terminals may be provided. In this case as well, the invention idea is not different, and the configuration having a single programmable addressing terminal is substantially obvious. For this reason, an example with a single programmable addressing terminal is described here.
The terminal portion 504 including the terminals H1, H2, and H3 in FIG. 5 corresponds to the data input bus 115 (125, 135) from the first device 116 (second device 126, third device 136) in FIG. ing.

この端子部504は、スレーブ装置500がその通常データ処理回路511における処理対象とするデータの入力部を構成している。
また、このスレーブ装置500は、その本来の目的である信号処理を行った結果としてのデータを出力するためのデータ出力バス505を備えている。
図5におけるデータ出力バス505は図1のデータ出力バス114(124、134)に対応しており、これらは本発明の実施の形態における、通信ライン100に接続される端子以外の1以上のデータ出力端子である。
The terminal unit 504 constitutes an input unit for data to be processed by the slave device 500 in the normal data processing circuit 511.
Further, the slave device 500 includes a data output bus 505 for outputting data as a result of performing the signal processing that is the original purpose.
The data output bus 505 in FIG. 5 corresponds to the data output bus 114 (124, 134) in FIG. 1, which is one or more data other than the terminals connected to the communication line 100 in the embodiment of the present invention. Output terminal.

そして、このデータ出力バス505から出力されるデータに関して、マルチプレクサ532によって、通常信号と既述のようなアドレス決定のためのシリアル信号とが切換えられて出力可能に構成されている。尚、当然ながら、通常信号用の出力端子と上記のシリアル信号用の出力端子とが各別に備えられた構成を採る場合はこのようなマルチプレクサを要しない。
シリアル通信部510は、従前のこの種のデバイスの場合は、通常データ処理回路511とのデータの授受を行うのみである。
With respect to the data output from the data output bus 505, the multiplexer 532 switches between the normal signal and the serial signal for address determination as described above so that the data can be output. Needless to say, such a multiplexer is not required in the case where the normal signal output terminal and the serial signal output terminal are provided separately.
The serial communication unit 510 merely exchanges data with the normal data processing circuit 511 in the case of this type of device.

しかし、図5の実施の形態においては、同報通知であるGeneral Callを受けると、General Call Active部530でフラグ信号を立てこのフラグを維持する。そして、このフラグに応じてシリアルデータ生成回路531で出力D[n](nは0以上の自然数)のn+1種類のユニークなシリアルデータを生成すると共に、上述のマルチプレクサ532をシリアルデータ出力へ切換える。
上述のシリアルデータ生成回路531、マルチプレクサ532、および、データ出力バス505等により、本発明の実施の形態において当該出力端子毎(505の各信号線)に対応した既定のユニークなシリアルデータである既定シリアルデータを出力する既定シリアルデータ出力手段である既定シリアルデータ出力手段を構成している。
However, in the embodiment of FIG. 5, when General Call, which is a broadcast notification, is received, the General Call Active unit 530 sets a flag signal and maintains this flag. Then, in accordance with this flag, the serial data generation circuit 531 generates n + 1 kinds of unique serial data of output D [n] (n is a natural number of 0 or more), and switches the multiplexer 532 to serial data output.
By the serial data generation circuit 531, the multiplexer 532, the data output bus 505, and the like, the predetermined unique serial data corresponding to each output terminal (each signal line 505) in the embodiment of the present invention. A predetermined serial data output means that is a predetermined serial data output means for outputting serial data is configured.

また、通信ライン100に接続される端子以外の1以上のデータ入力端子であるSLA端子503からのシリアルデータをシリアルデータ受信回路521で受信し、該受信したシリアルデータをAddress Table ブロック520でデコードして、プログラム可能な部分のアドレスを確定する。即ち、同一通信ライン上で使用する本発明の実施の形態に該当する装置がシリアルIDとして出力するシリアルデータの一つ以上とスレーブアドレス設定命令により設定可能であるアドレスとが対になるように、シリアル通信部510で関数関係(対応関係)が設定されており、この関数関係に従って、プログラム可能な部分のアドレスを確定して、スレーブアドレス(スレーブ装置としてのアドレス)を設定し保持する。   The serial data receiving circuit 521 receives serial data from the SLA terminal 503, which is one or more data input terminals other than the terminal connected to the communication line 100, and decodes the received serial data in the Address Table block 520. To determine the address of the programmable part. That is, one or more serial data output as a serial ID by a device corresponding to the embodiment of the present invention used on the same communication line and an address that can be set by a slave address setting command are paired. A functional relationship (correspondence relationship) is set in the serial communication unit 510, and an address of a programmable portion is determined according to this functional relationship, and a slave address (address as a slave device) is set and held.

即ち、Address Table ブロック520、シリアルデータ受信回路521、および、シリアル通信部510等により、本発明の実施の形態における個別スレーブアドレス設定手段が構成されている。
そして、更に、シリアル通信部510、SCL端子502、端子部504、および、SDA端子501等を含んで、本発明の実施の形態における通信制御手段を構成している。通信制御手段は、スレーブアドレス設定命令の期間に、前記既定シリアルデータ出力手段に前記既定シリアルデータを出力させるに際して前記個別スレーブアドレス設定手段に当該個別スレーブアドレスの書込みを並行して行わせ、該書込みによって設定された当該個別スレーブアドレスによる通信を行う。
That is, the address table block 520, the serial data receiving circuit 521, the serial communication unit 510, and the like constitute the individual slave address setting means in the embodiment of the present invention.
Further, the communication control means in the embodiment of the present invention is configured to include a serial communication unit 510, an SCL terminal 502, a terminal unit 504, an SDA terminal 501, and the like. The communication control means causes the individual slave address setting means to write the individual slave address in parallel when the default serial data output means outputs the default serial data during the period of the slave address setting command. Communication is performed using the individual slave address set by.

尚、装置間通信システム(図1)としての構成に着目すれば、個別スレーブアドレスの設定に、マルチプレクサ532の出力側がデータ出力バス505に接続される端子部は既定シリアルデータを出力する既定シリアルデータ出力端子を成す。そして、この装置間通信システムを構成する一のスレーブ装置(例えば、第1スレーブ装置110)における既定シリアルデータ出力端子と他のスレーブ装置(例えば、第3スレーブ装置130)における既定シリアルデータを入力する端子である既定シリアルデータ入力端子(SLA)とを結ぶ既定シリアルデータ伝送手段としての配線133が設けられて、該当する複数の各スレーブ装置間の連携により、前記個別スレーブアドレス設定の手順が実行され得る。   If attention is paid to the configuration of the inter-device communication system (FIG. 1), the terminal unit connected to the data output bus 505 on the output side of the multiplexer 532 is set to the predetermined serial data for setting the individual slave address. Forms the output terminal. Then, a predetermined serial data output terminal in one slave device (for example, the first slave device 110) configuring the inter-device communication system and a predetermined serial data in another slave device (for example, the third slave device 130) are input. A wiring 133 is provided as a predetermined serial data transmission means for connecting a predetermined serial data input terminal (SLA) which is a terminal, and the individual slave address setting procedure is executed by cooperation between a plurality of corresponding slave devices. obtain.

図6は、図5のスレーブ装置500単体での動作を表すフローチャートである。
作動を開始する当初にPower On Reset等により初期化状態にしておく(S600)。このステップS600では、マスター装置とスレーブ装置間ではいまだ通信が行われていない。
この状態では、各スレーブ装置のスレーブアドレスは未設定であったり、Power On Reset等により或る固定アドレスが設定される場合もあるが、スレーブアドレス設定命令の実行前の時点では上記何れであってもよい。
FIG. 6 is a flowchart showing the operation of the slave device 500 in FIG. 5 alone.
At the beginning of the operation, it is initialized by Power On Reset or the like (S600). In step S600, communication is not yet performed between the master device and the slave device.
In this state, the slave address of each slave device may not be set or a fixed address may be set by Power On Reset etc., but at any point before execution of the slave address setting command, Also good.

この状態にあるとき、マスター装置からスレーブアドレス設定命令が通信ラインを通して同報通知(General Call)として発せられたとする(S601)。
I2Cに準拠したスレーブ装置500(図5)ではそのSDA端子501、SCL端子502よりスレーブアドレス設定命令であるシリアル信号をシリアル通信部510(図5)で受信開始する。そして、ゼネラル・コール・アドレスの1バイト目である既述のH00コードを受けてスレーブアドレス書込み準備に入る(S602)。
In this state, it is assumed that a slave address setting command is issued as a broadcast notification (General Call) through the communication line from the master device (S601).
In the slave device 500 compliant with I2C (FIG. 5), the serial communication unit 510 (FIG. 5) starts receiving a serial signal as a slave address setting command from the SDA terminal 501 and the SCL terminal 502. Then, upon receipt of the above-described H00 code which is the first byte of the general call address, the slave address writing preparation is started (S602).

次いで、2バイト目のシリアルデータ8ビットを転送する(S603)。ステップS603の転送が完了した時点で(S604)、スレーブアドレスとして書込み可能なハードウェア上で決められた唯一の固定アドレス(アドレスを構成する書込み可能なビット数は7ビットのビット長の全てである場合も、また、その一部の場合もある)を設定し保持する(S605)。   Next, 8 bits of serial data of the second byte are transferred (S603). When the transfer in step S603 is completed (S604), the only fixed address determined on the hardware that can be written as the slave address (the number of writable bits constituting the address is all 7-bit length) In some cases, some of them may be set and held (S605).

一方、本発明の実施の形態では、従来のこの種の装置とは異なり、マスター装置からスレーブアドレス設定命令の開始(同報通知の発信)を受けて、別途シリアル信号を出力する処理を実行する(S620)。
即ち、同報通知であるGeneral Callを受けると、General Call Active部530(図5)でフラグ信号を立て、このフラグを維持する一方、このフラグによってマルチプレクサ532(図5)の出力を切替える(S621)。
On the other hand, in the embodiment of the present invention, unlike the conventional device of this type, a process of outputting a serial signal is executed in response to the start of a slave address setting command (sending broadcast notification) from the master device. (S620).
That is, when receiving a general call as a broadcast notification, the general call active unit 530 (FIG. 5) sets a flag signal and maintains this flag, while switching the output of the multiplexer 532 (FIG. 5) by this flag (S621). ).

そして、ゼネラル・コール・アドレスの2バイト目開始と共にシリアルデータ生成回路531(図5)で生成したシリアルIDの出力動作を開始する(S622)。
ステップS622で開始したシリアルIDの出力動作では、ゼネラル・コール・アドレスの2バイト目である8ビットの転送と共に、出力D[n:0]からユニークな[n]ビットのシリアルIDの送出をSCL端子502(図5)に供給されるシリアルクロックに同期して行う(S623)。
Then, the output operation of the serial ID generated by the serial data generation circuit 531 (FIG. 5) is started together with the start of the second byte of the general call address (S622).
In the serial ID output operation started in step S622, a unique [n] -bit serial ID is sent from the output D [n: 0] together with the 8-bit transfer that is the second byte of the general call address. This is performed in synchronization with the serial clock supplied to the terminal 502 (FIG. 5) (S623).

そして、General Callが完了するとGeneral Call Active部530(図5)のフラグを解除してマルチプレクサ532(図5)を切替え(S624)、通常の出力動作へと移行(復帰)する(S625)。
即ち、マルチプレクサ532は、スレーブアドレス設定命令の期間に前記既定シリアルデータを出力させ、前記スレーブアドレス設定命令の期間に該当しない期間に他の情報データを出力させる、本発明の実施の形態の要素である、出力切替え手段として機能する。
When the general call is completed, the flag of the general call active unit 530 (FIG. 5) is canceled, the multiplexer 532 (FIG. 5) is switched (S624), and the normal output operation is shifted (returned) (S625).
That is, the multiplexer 532 outputs the predetermined serial data during the slave address setting command period, and outputs other information data during a period not corresponding to the slave address setting instruction period. It functions as a certain output switching means.

また一方、本発明の実施の形態では、従来のこの種の装置とは異なり、別途シリアル信号入力を受付ける(S610)。即ち、マスター装置からスレーブアドレス設定命令を受けて、上述のステップS620以降の処理ステップと並行して、ゼネラル・コール・アドレスの1バイト目であるH00を受けてSLA端子503(図5)からシリアルID入力を受信する準備に入る(S611)。   On the other hand, in the embodiment of the present invention, unlike the conventional apparatus of this type, serial signal input is received separately (S610). That is, in response to the slave address setting command from the master device, in parallel with the processing steps after step S620 described above, H00, which is the first byte of the general call address, is received and serialized from the SLA terminal 503 (FIG. 5) Preparation for receiving the ID input is started (S611).

そして、ゼネラル・コール・アドレスの2バイト目の開始と共に、SLA端子503に供給されるシリアルIDの受信を、SCL端子502(図5)に供給されるシリアルクロックに同期して行う(S612)。
ステップS612で開始したシリアルIDの受信動作では、2バイト目の8ビットに同期してSLA端子503(図5)に供給されるmビット(本例では、mは1以上8以下の任意の整数)のシリアルIDを受信する(S613)。尚、ここに、ステップS613で受信するシリアルIDは、既述のステップS623で出力するシリアルIDとは別のデータ(本スレーブ装置から見ると、外部から供給されるデータ、および、自装置から出力するデータの、各別のデータ)である。
Then, with the start of the second byte of the general call address, the serial ID supplied to the SLA terminal 503 is received in synchronization with the serial clock supplied to the SCL terminal 502 (FIG. 5) (S612).
In the serial ID reception operation started in step S612, m bits supplied to the SLA terminal 503 (FIG. 5) in synchronization with the 8th bit of the second byte (in this example, m is an arbitrary integer from 1 to 8) ) Is received (S613). Here, the serial ID received in step S613 is different from the serial ID output in step S623 described above (when viewed from this slave device, the data supplied from the outside and the output from the own device). Of the data to be processed).

ステップS613のシリアルIDの受信動作を続け、ゼネラル・コール・アドレスの最終ビットを受信した時点で、入力シリアルIDを本スレーブ装置が持つ既定の関数やテーブルでデコードして、入力シリアルIDに対応したスレーブアドレス(アドレスを構成する書込み可能なビット数は7ビットのビット長の全てである場合も、また、その一部の場合もある)を設定し保持する(S605)。   The receiving operation of the serial ID in step S613 is continued, and when the last bit of the general call address is received, the input serial ID is decoded by a predetermined function or table possessed by the slave device to correspond to the input serial ID. A slave address (the number of writable bits constituting the address may be all or a part of the 7-bit length) is set and held (S605).

以上のステップによって設定されたアドレスがスレーブ装置の設定スレーブアドレスとして定まり、これ以降は、この設定スレーブアドレスにより通常の装置間通信が行われることになる(S606)。
図1の実施の形態では、上述の「n」ビットは8ビットであった。8ビットであれば256種類のシリアルパターンの生成が可能であり、アドレスも、これに対応した数だけ関数関係式が定義できる。従って、SLA一つでI2Cの7ビットスレーブアドレス全ての割当てが可能である。
The address set by the above steps is determined as the set slave address of the slave device, and thereafter, normal device-to-device communication is performed using this set slave address (S606).
In the embodiment of FIG. 1, the “n” bits described above are 8 bits. With 8 bits, 256 types of serial patterns can be generated, and as many addresses as the number of functions can be defined. Therefore, it is possible to assign all the I2C 7-bit slave addresses with one SLA.

また、図1では、SCL(シリアルクロック)に同期したシリアルIDを仮定して8ビットとしたが、シリアルIDデータをスレーブ装置が内部で用いるシステムクロックなど、レートが早いクロックに同期して生成・受信を行うようにすれば、シリアルビット数を更に増やすことが容易であり、一層多くのアドレスを割当てることが可能である。
所謂パワーオンリセット等の初期化状態(S600)の次のステップである、既述の同報通知を発する動作ステップS601では、複数のスレーブ装置をシリアル通信バスに接続した多重構成ではないため、通常の如く、SLAを論理0もしくは論理1だけで用いるといった方法も考えられる。
In FIG. 1, the serial ID synchronized with the SCL (serial clock) is assumed to be 8 bits. However, the serial ID data is generated in synchronization with a clock having a high rate such as a system clock used internally by the slave device. If reception is performed, it is easy to further increase the number of serial bits, and it is possible to allocate more addresses.
The operation step S601 for issuing the broadcast notification described above, which is the next step after the initialization state (S600) such as so-called power-on reset, is not a multiplex configuration in which a plurality of slave devices are connected to the serial communication bus. As described above, a method of using SLA only with logic 0 or logic 1 is also conceivable.

この方法を採った場合は、初期化後にマスター装置からの同報通知命令が発生しないうちは、通常のプログラム可能なアドレス設定方法と同様に、SLAの論理に従い、スレーブアドレスを決定し、論理上矛盾のないように関数値との対応関係を割当てればよい。
即ち、同報通知命令の発生前においては、SLAが0で、スレーブアドレスのLSBが0で使用される場合は、常にSLAが0であるとして、「00000000」に対して「XXXXXX0」を対応させる。
When this method is adopted, the slave address is determined according to the SLA logic in accordance with the SLA logic in the same manner as the normal programmable address setting method, unless a broadcast notification command from the master device is generated after initialization. A correspondence relationship with the function value may be assigned so that there is no contradiction.
That is, before the broadcast notification command is generated, when the SLA is 0 and the slave address LSB is 0, it is assumed that the SLA is always 0, and “XXXXXX0” is associated with “00000000”. .

同様に、SLAが1で、スレーブアドレスのLSBが1で使用される場合は、常にSLAが1であるとして、「11111111」に対して「XXXXXX1」を対応させる。
上述のようなSLAとスレーブアドレスのLSBとの対応関係での使用による場合には、結果的に、同報通知命令によるアドレス設定を行わずとも、当該設定を行った場合と同じアドレスになるので、同報通知命令を使用しない可能性があるシステムにおいても矛盾なく適用することが可能になる。
Similarly, when the SLA is 1 and the LSB of the slave address is 1, the SLA is always 1, and “XXXXXXX1” is associated with “11111111”.
As a result, when the SLA and the slave address LSB are used in the correspondence relationship as described above, the address becomes the same as that when the setting is made without performing the address setting by the broadcast notification instruction. Therefore, the present invention can be applied without contradiction even in a system that may not use the broadcast notification command.

更には、一般的ではないが、SLAの固定論理1と0だけではなく、初期化状態からのSLAの変化状態を検出し、それらの状態の組合せを加える場合には、例えば、初期化状態からフリップフロップ等で立下り論理である1から0に変化した場合の状態検出と、立上りである論理0から1に変化した場合の状態検出を行うことも考えられる。
そして、上述のような2つの変化状態をも2つの固定状態に加え、これらの状態を合計して4値アドレスとするシステムの場合でも、同報通知命令が発せられる以前にSLAが固定でなく論理1と論理0との間で変化する場合に対応して変化後の論理を「N」としてLSBに割当てて加えると、図7の対応表に表されたような関係が成り立つ。
Furthermore, although it is not general, not only the SLA fixed logics 1 and 0 but also the change state of the SLA from the initialization state is detected and the combination of those states is added, for example, from the initialization state It is also conceivable to perform state detection when the falling logic changes from 1 to 0 by a flip-flop or the like and state detection when the rising logic changes from 0 to 1.
And even in the case of a system in which the two change states as described above are added to the two fixed states and these states are summed to form a quaternary address, the SLA is not fixed before the broadcast notification command is issued. Corresponding to the case of changing between logic 1 and logic 0, if the logic after change is assigned to the LSB as “N”, the relationship shown in the correspondence table of FIG. 7 is established.

即ち、通信前のSLA端子に供給される信号とスレーブアドレスとの対応関係は、図7(a)の如くであり、また、通信前のSLA端子に供給される信号と対応する関数値との関係は図7(b)の如くである。
従って、初期化状態からのSLAの変化状態を検出する上述の方法も、矛盾無く適用可能であり、応用範囲が拡大されることになる。
以上のとおり、本発明によれば、プログラム可能なスレーブアドレス端子が少ない通信システムであっても、スレーブアドレス設定命令に対してスレーブ装置自体が持つ複数個の任意の出力ピンからシリアルIDを出力させ、スレーブアドレス設定用シリアル信号入力端子からの入力をデコードしてアドレスと対応付ける機能を有することによって、シリアルID出力の数だけスレーブアドレス値の選択が可能になる。
That is, the correspondence between the signal supplied to the SLA terminal before communication and the slave address is as shown in FIG. 7A, and the signal supplied to the SLA terminal before communication and the corresponding function value. The relationship is as shown in FIG.
Therefore, the above-described method of detecting the change state of the SLA from the initialization state can also be applied without contradiction, and the application range is expanded.
As described above, according to the present invention, even in a communication system with a small number of programmable slave address terminals, a serial ID is output from a plurality of arbitrary output pins of the slave device itself in response to a slave address setting command. By having the function of decoding the input from the slave address setting serial signal input terminal and associating it with the address, the slave address value can be selected by the number of serial ID outputs.

これにより、スレーブアドレスを決定するための外部端子が1端子であっても、スレーブアドレスの種類を増やすことが可能になり、更に、スレーブ装置相互間でも、また単独のスレーブ装置でも、端子の接続関係を適切に選択することによって、スレーブアドレスの管理設計が可能になる。
また、他のスイッチ等の制御を要さず、通信ライン以外の調停装置を不要にすることができる。
As a result, even if there is only one external terminal for determining the slave address, it is possible to increase the number of slave addresses, and the connection of terminals between slave devices or between a single slave device By appropriately selecting the relationship, the management design of the slave address becomes possible.
Further, it is not necessary to control other switches or the like, and an arbitration device other than the communication line can be made unnecessary.

更に、スレーブアドレスを決定する関数については、既存のシステムと同様に対応関係を設定することによって、既存のシステムに対する置換といった態様で用いながら多重構成要素の拡張が容易となる。
更にまた、上記における対応関係の設定は、一旦実施して以降は、通常の通信と変わりがなく、このため、例外的な設定を繰返し行う必要がない。
Further, by setting the correspondence relationship for the function for determining the slave address in the same manner as in the existing system, it becomes easy to expand the multiple components while using it in a manner such as replacement for the existing system.
Furthermore, the setting of the correspondence relationship in the above is the same as the normal communication after being performed once, and therefore, it is not necessary to repeat the exceptional setting.

図1を参照して説明した実施の形態では、シリアルID信号の接続は、多重構成の複数のデバイスをチェーンの如く数珠繋ぎする所謂デイジーチェーン(daisy chain)を構成する形態を採るものであった。
ここで、本発明の技術思想では、シリアルID信号の生成とデコードとを同時に行っているので、自己のシリアルID出力を選択し、それを自己のシリアルID入力に供給することによって、例えば、図8に示すような構成を採ることもできる。
In the embodiment described with reference to FIG. 1, the connection of the serial ID signal takes the form of a so-called daisy chain in which a plurality of devices having multiple configurations are connected like a chain.
Here, in the technical idea of the present invention, the serial ID signal is generated and decoded at the same time, so by selecting its own serial ID output and supplying it to its own serial ID input, for example, FIG. A configuration as shown in FIG.

図8は、本発明の装置間通信システムの他の実施の形態を表す系統図である。
図8の装置間通信システムでは、スレーブ装置同士の配線を持たずに、スレーブアドレスの重複を発生させないように構成されている。
即ち、図示の通り、各スレーブ装置は自己のシリアルID信号のうち所定の出力を選択し、該選択した出力を自己のシリアルID入力、即ち、SLA端子に供給するようにしている。尚、第3スレーブ装置130については、SLA端子を接地している。
FIG. 8 is a system diagram showing another embodiment of the inter-device communication system of the present invention.
The inter-device communication system of FIG. 8 is configured not to cause duplication of slave addresses without having wiring between slave devices.
That is, as shown in the figure, each slave device selects a predetermined output from its own serial ID signal and supplies the selected output to its own serial ID input, that is, the SLA terminal. For the third slave device 130, the SLA terminal is grounded.

図1に例示されたシステムと同様に、第1スレーブ装置110と第1装置116とによって機能ユニットFU1が構成され、第2スレーブ装置120と第2装置126とによって機能ユニットFU2が構成され、第3スレーブ装置130と第3装置136とによって機能ユニットFU3が構成されている。
このような態様の構成を採ることによって、スレーブ装置同士の配線が困難な状況下にあっても、スレーブアドレスの重複を来たすことのない装置間通信システムを構築することが可能である。
As in the system illustrated in FIG. 1, the first slave device 110 and the first device 116 constitute a functional unit FU1, the second slave device 120 and the second device 126 constitute a functional unit FU2, The three slave devices 130 and the third device 136 constitute a functional unit FU3.
By adopting such a configuration, it is possible to construct an inter-device communication system that does not cause duplication of slave addresses even in a situation where wiring between slave devices is difficult.

図9は、本発明の装置間通信システムの更に他の実施の形態を表す系統図である。
図9の装置間通信システムでは、同一の通信バス100に複数接続される多重構成要素が同一仕様の装置でなく異なる装置である場合において多重構成されている。
図9において、第1スレーブ装置110、第4スレーブ装置140、および、第5スレーブ装置150は、それぞれ仕様を異にする装置である。尚、この場合、第1スレーブ装置110と第1装置116とによって機能ユニットFU1が構成され、第4スレーブ装置140と第4装置146とによって機能ユニットFU4が構成され、第5スレーブ装置150と第3装置156とによって機能ユニットFU5が構成されている。
FIG. 9 is a system diagram showing still another embodiment of the inter-device communication system of the present invention.
In the inter-device communication system of FIG. 9, multiple configurations are made when multiple components connected to the same communication bus 100 are not the same specification devices but different devices.
In FIG. 9, the first slave device 110, the fourth slave device 140, and the fifth slave device 150 are devices having different specifications. In this case, the first slave device 110 and the first device 116 constitute a functional unit FU1, the fourth slave device 140 and the fourth device 146 constitute a functional unit FU4, and the fifth slave device 150 and the first device FU1. 3 unit 156 constitutes a functional unit FU5.

図9におけるように異なる装置によって多重構成要素が構成されていても、同一の通信ライン上に接続される装置に上述の本発明のスレーブ装置における機能が備えられていれば、図示のようにパラレル接続する態様を採った場合においても、スレーブアドレスの重複を発生させないようにすることができる。
即ち、スレーブ装置間で並列にシリアルID信号を供給するように配線することによって、シリアルID出力として利用可能な端子が無かったり、少なかったりする場合であっても、シリアルID出力端子が多いスレーブ装置から出力される異なるシリアルID出力端子と接続することによって、スレーブアドレスの重複を発生させないようにすることができる。
Even if multiple components are configured by different devices as in FIG. 9, if the devices connected on the same communication line have the function of the slave device of the present invention described above, parallel as shown in FIG. Even when the connection mode is adopted, duplication of slave addresses can be prevented.
That is, a slave device having a large number of serial ID output terminals even when there are no or few terminals usable as a serial ID output by wiring to supply serial ID signals in parallel between the slave devices. By connecting to different serial ID output terminals output from the slave, duplication of slave addresses can be prevented.

即ち、この図9における実施の形態では、既定シリアルデータ出力手段(出力バス114)は、当該出力端子毎に対応して複数の各スレーブ装置146、156にそれぞれ対応した前述の既定シリアルデータを各出力するように構成され、複数の各スレーブ装置146、156における該当するデータ入力端子(SLA)に既定シリアルデータ出力手段(114)が出力する既定シリアルデータを分配する既定シリアルデータ分配手段(D2、D5、および D7を各SLAに分配する)を更に備えている。   That is, in the embodiment shown in FIG. 9, the predetermined serial data output means (output bus 114) receives the above-mentioned predetermined serial data corresponding to each of the plurality of slave devices 146 and 156 corresponding to each output terminal. A predetermined serial data distributing means (D2, D2) configured to distribute the predetermined serial data output from the predetermined serial data output means (114) to the corresponding data input terminals (SLA) in each of the plurality of slave devices 146, 156; D5 and D7 are distributed to each SLA).

図10は、本発明の装置間通信システムおよび通信装置の更に他の実施の形態を表す系統図である。
図10の装置間通信システムも、スレーブ装置同士の配線を持たずに、スレーブアドレスの重複を発生させないように構成されている。
尚、第1スレーブ装置110と第1装置116とによって機能ユニットFU1が構成され、第2スレーブ装置120と第2装置126とによって機能ユニットFU2が構成され、第3スレーブ装置130と第3装置136とによって機能ユニットFU3が構成されている点は、図1に例示されたシステムと同様である。
FIG. 10 is a system diagram showing still another embodiment of the inter-device communication system and communication device of the present invention.
The inter-device communication system of FIG. 10 is also configured not to cause duplication of slave addresses without having wiring between slave devices.
The first slave device 110 and the first device 116 constitute a functional unit FU1, the second slave device 120 and the second device 126 constitute a functional unit FU2, and the third slave device 130 and the third device 136. The functional unit FU3 is configured by the same as the system illustrated in FIG.

図10の実施の形態では、プログラム可能なスレーブアドレスを決める端子SLAを、第1スレーブ装置110では論理0(接地)とし、第2スレーブ装置120では論理1(正の電源電圧)に固定して使用することによって、スレーブアドレスの重複を発生させないように構成されている。
更に、SLA端子から入力されるシリアルIDによりスレーブアドレスを決定するという特徴を持つため、シリアルIDを生成すること自体は、本発明におけるようなスレーブ装置でなくとも可能である。
In the embodiment of FIG. 10, the terminal SLA for determining the programmable slave address is fixed to logic 0 (ground) in the first slave device 110 and fixed to logic 1 (positive power supply voltage) in the second slave device 120. By using it, the slave address is not duplicated.
Further, since the slave address is determined based on the serial ID input from the SLA terminal, the serial ID can be generated without using a slave device as in the present invention.

図10の実施の形態では、通信バス100の情報データSDAが、図3におけるH06のシリアル信号(図3:310の後半部)になるため、図4におけるシリアルIDと関数値との対応関係をこのH06に対応させた態様で定義すれば、シリアルIDとして使用可能である。
図10の実施の形態のようにSLA端子をスレーブ装置の出力と接続しない構成を採る場合であっても、従前のような装置間通信システム上で通信装置として適用可能である。
In the embodiment of FIG. 10, since the information data SDA of the communication bus 100 becomes the serial signal of H06 in FIG. 3 (the second half of FIG. 3: 310), the correspondence between the serial ID and the function value in FIG. If defined in a manner corresponding to this H06, it can be used as a serial ID.
Even in the case of adopting a configuration in which the SLA terminal is not connected to the output of the slave device as in the embodiment of FIG. 10, it can be applied as a communication device on a conventional inter-device communication system.

100………………………………シリアル通信バス
101………………………………シリアルクロック(SCL)ライン
102………………………………シリアルデータ(SDA)ライン
103………………………………マスター装置
110………………………………第1スレーブ装置
111、121、131…………クロックライン
112、122、132…………データライン
113、123、133…………配線
114、124、134…………データ出力バス
115、125、135…………データ入力バス
116………………………………第1装置
120………………………………第2スレーブ装置
126………………………………第2装置
130………………………………第3スレーブ装置
136………………………………第3装置
500………………………………スレーブ装置
501………………………………SDA端子
502………………………………SCL端子
503………………………………SLA端子
504………………………………端子部(データ入力バス)
505………………………………データ出力バス
510………………………………シリアル通信部
511………………………………通常データ処理回路
520………………………………Address Table ブロック
521………………………………シリアルデータ受信回路
530………………………………General Call Active部
531………………………………シリアルデータ生成回路
532………………………………マルチプレクサ
100 ……………………………… Serial communication bus 101 …………………………… Serial clock (SCL) line 102 ……………………… Serial data (SDA) line 103 ………………………… Master device 110 ………………………… First slave devices 111, 121, 131 ...... Clock lines 112, 122 , 132... Data lines 113, 123, 133 ...... Wiring 114, 124, 134 ...... Data output bus 115, 125, 135 ...... Data input bus 116 ……………… First device 120 ……………………………… Second slave device 126 ……………………………… Second device 130 …………………… ………… Third slave device 136 ……………………………… Third Device 500 ……………………………… Slave device 501 ……………………………… SDA terminal 502 ……………………………… SCL terminal 503 ……… ……………………… SLA terminal 504 ……………………………… Terminal (data input bus)
505 ……………………………… Data output bus 510 ……………………………… Serial communication unit 511 ……………………………… Normal data processing circuit 520 ……………………………… Address Table block 521 ……………………………… Serial data receiving circuit 530 ……………………………… General Call Active section 531 ……………………………… Serial Data Generation Circuit 532 …………………………… Multiplexer

Claims (6)

シリアルデータラインおよびクロックラインを有する通信ラインにマスター装置および複数のスレーブ装置が接続され前記通信ラインを通して前記マスター装置と該当するスレーブ装置との間で所定の通信プロトコルによるシリアルデータ転送を行う装置間通信システムにおいて、
同一の前記通信ラインに接続される前記複数のスレーブ装置の各々に対し、外部からアドレス設定するために必要な入力端子数を必要最小限に抑えながら、アドレス設定入力端子数の組合せ以上の前記複数のスレーブ装置との通信を可能にする装置間通信システムであって、
前記複数の各スレーブ装置は、
前記マスター装置から前記通信ラインを通して配信される同報アドレス通知によるスレーブアドレス設定命令に応じて、前記通信ラインに接続される端子以外の1以上のデータ出力端子から当該出力端子毎に対応した既定のユニークなシリアルデータである既定シリアルデータを出力する既定シリアルデータ出力手段と、
前記通信ラインに接続される端子以外の1以上のデータ入力端子から入力されたシリアルデータを予め定義された関数関係に基づいてデコードして該デコードしたデータを前記スレーブアドレス設定命令に対応した個別スレーブアドレスとして所定のデータ保持部に書込む個別スレーブアドレス設定手段と、
前記スレーブアドレス設定命令の期間に、前記既定シリアルデータ出力手段に前記既定シリアルデータを出力させるに際して前記個別スレーブアドレス設定手段に当該個別スレーブアドレスの書込みを並行して行わせ、該書込みによって設定された当該個別スレーブアドレスによる通信を行う通信制御手段と、
を有することを特徴とする装置間通信システム。
Communication between devices in which a master device and a plurality of slave devices are connected to a communication line having a serial data line and a clock line, and serial data transfer is performed between the master device and the corresponding slave device through the communication line according to a predetermined communication protocol In the system,
For each of the plurality of slave devices connected to the same communication line, the plurality of address setting input terminals more than the combination while minimizing the number of input terminals necessary for external address setting An inter-device communication system that enables communication with other slave devices,
Each of the plurality of slave devices is
In response to a slave address setting command by broadcast address notification delivered from the master device through the communication line, a predetermined number corresponding to each output terminal from one or more data output terminals other than the terminal connected to the communication line Default serial data output means for outputting default serial data which is unique serial data;
An individual slave corresponding to the slave address setting instruction by decoding serial data input from one or more data input terminals other than the terminal connected to the communication line based on a predefined function relationship Individual slave address setting means for writing to a predetermined data holding unit as an address,
In the period of the slave address setting instruction, when the predetermined serial data output means outputs the predetermined serial data, the individual slave address setting means performs the writing of the individual slave address in parallel and is set by the writing. Communication control means for performing communication by the individual slave address;
An inter-device communication system comprising:
前記複数の各スレーブ装置のうちの一のスレーブ装置における前記既定シリアルデータを出力する前記データ出力端子である既定シリアルデータ出力端子と前記複数の各スレーブ装置のうちの他のスレーブ装置における前記既定シリアルデータを入力する既定シリアルデータ入力端子とを結ぶ既定シリアルデータ伝送手段を備えていることを特徴とする請求項1に記載の装置間通信システム。   The predetermined serial data output terminal which is the data output terminal for outputting the predetermined serial data in one slave device of the plurality of slave devices, and the default serial in another slave device of the plurality of slave devices 2. The inter-device communication system according to claim 1, further comprising predetermined serial data transmission means for connecting to a predetermined serial data input terminal for inputting data. シリアルデータラインおよびクロックラインを有する通信ラインにマスター装置および複数のスレーブ装置が接続され前記通信ラインを通して前記マスター装置と該当するスレーブ装置との間で所定の通信プロトコルによるシリアルデータ転送を行う装置間通信システムにおける前記スレーブ装置として適合する通信装置において、
同一の前記通信ラインに接続される前記複数のスレーブ装置の各々に対し、外部からアドレス設定するために必要な入力端子数を必要最小限に抑えながら、アドレス設定入力端子数の組合せ以上の前記複数のスレーブ装置との通信を可能にする通信装置であって、
前記マスター装置から前記通信ラインを通して配信される同報アドレス通知によるスレーブアドレス設定命令に応じて、前記通信ラインに接続される端子以外の1以上のデータ出力端子から当該出力端子毎に対応した既定のユニークなシリアルデータである既定シリアルデータを出力する既定シリアルデータ出力手段、
前記通信ラインに接続される端子以外の1以上のデータ入力端子から入力されたシリアルデータを予め定義された関数関係に基づいてデコードして該デコードしたデータを前記スレーブアドレス設定命令に対応した個別スレーブアドレスとして所定のデータ保持部に書込む個別スレーブアドレス設定手段と、
前記スレーブアドレス設定命令の期間に、前記既定シリアルデータ出力手段に前記既定シリアルデータを出力させるに際して前記個別スレーブアドレス設定手段に当該個別スレーブアドレスの書込みを並行して行わせ、該書込みによって設定された当該個別スレーブアドレスによる通信を行う通信制御手段と、
を有することを特徴とする通信装置。
Communication between devices in which a master device and a plurality of slave devices are connected to a communication line having a serial data line and a clock line, and serial data transfer is performed between the master device and the corresponding slave device through the communication line according to a predetermined communication protocol In a communication device suitable as the slave device in a system ,
For each of the plurality of slave devices connected to the same communication line, the plurality of address setting input terminals more than the combination while minimizing the number of input terminals necessary for external address setting A communication device that enables communication with a slave device of
In response to a slave address setting command by broadcast address notification delivered from the master device through the communication line, a predetermined number corresponding to each output terminal from one or more data output terminals other than the terminal connected to the communication line Default serial data output means for outputting default serial data that is unique serial data,
An individual slave corresponding to the slave address setting instruction by decoding serial data input from one or more data input terminals other than the terminal connected to the communication line based on a predefined function relationship Individual slave address setting means for writing to a predetermined data holding unit as an address,
In the period of the slave address setting instruction, when the predetermined serial data output means outputs the predetermined serial data, the individual slave address setting means performs the writing of the individual slave address in parallel, and is set by the writing. Communication control means for performing communication by the individual slave address;
A communication apparatus comprising:
前記スレーブアドレス設定命令の期間に前記既定シリアルデータを出力させ、前記スレーブアドレス設定命令の期間に該当しない期間に他の情報データを出力させる出力切替え手段を備えていることを特徴とする請求項3に記載の通信装置。   4. An output switching means for outputting the predetermined serial data during a period of the slave address setting instruction and outputting other information data during a period not corresponding to the period of the slave address setting instruction. The communication apparatus as described in. 前記既定シリアルデータ出力手段は、当該出力端子毎に対応して前記複数の各スレーブ装置にそれぞれ対応した前記既定シリアルデータを各出力するように構成され、
前記複数の各スレーブ装置における該当する前記データ入力端子に前記既定シリアルデータ出力手段が出力する前記既定シリアルデータを分配する既定シリアルデータ分配手段を更に備えていることを特徴とする請求項3または4の何れか一項に記載の通信装置。
The predetermined serial data output means is configured to output each of the predetermined serial data corresponding to each of the plurality of slave devices corresponding to each output terminal,
5. A predetermined serial data distribution unit that distributes the predetermined serial data output from the predetermined serial data output unit to the corresponding data input terminal in each of the plurality of slave devices. The communication device according to any one of the above.
シリアルデータラインおよびクロックラインを有する通信ラインにマスター装置および複数のスレーブ装置が接続され前記通信ラインを通して前記マスター装置と該当するスレーブ装置との間で所定の通信プロトコルによるシリアルデータ転送を行う装置間通信システムにおける前記スレーブ装置として適合する通信装置において、
同一の前記通信ラインに接続される前記複数のスレーブ装置の各々に対し、外部からアドレス設定するために必要な入力端子数を必要最小限に抑えながら、アドレス設定入力端子数の組合せ以上の前記複数のスレーブ装置との通信を可能にする通信装置であって、
前記通信ラインに接続される端子以外の1以上のデータ入力端子に供給される既定の論理値に対し予め定義された関数関係のデータを参照して当該通信装置を表すスレーブアドレスデータを決定し、該決定したスレーブアドレスデータを個別スレーブアドレスとして所定のデータ保持部に書込む個別スレーブアドレス決定手段と、
前記個別スレーブアドレス決定手段によって前記データ保持部に書込まれた当該個別スレーブアドレスによる通信を行う通信制御手段と、
を有することを特徴とする通信装置。
Communication between devices in which a master device and a plurality of slave devices are connected to a communication line having a serial data line and a clock line, and serial data transfer is performed between the master device and the corresponding slave device through the communication line according to a predetermined communication protocol In a communication device suitable as the slave device in a system ,
For each of the plurality of slave devices connected to the same communication line, the plurality of address setting input terminals more than the combination while minimizing the number of input terminals necessary for external address setting A communication device that enables communication with a slave device of
Determining slave address data representing the communication device with reference to data of a function relationship defined in advance for a predetermined logical value supplied to one or more data input terminals other than the terminal connected to the communication line; Individual slave address determination means for writing the determined slave address data as a specific slave address in a predetermined data holding unit;
Communication control means for performing communication by the individual slave address written in the data holding unit by the individual slave address determination means;
A communication apparatus comprising:
JP2009243334A 2009-10-22 2009-10-22 Inter-device communication system and communication device Expired - Fee Related JP5314563B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009243334A JP5314563B2 (en) 2009-10-22 2009-10-22 Inter-device communication system and communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009243334A JP5314563B2 (en) 2009-10-22 2009-10-22 Inter-device communication system and communication device

Publications (2)

Publication Number Publication Date
JP2011090489A JP2011090489A (en) 2011-05-06
JP5314563B2 true JP5314563B2 (en) 2013-10-16

Family

ID=44108687

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009243334A Expired - Fee Related JP5314563B2 (en) 2009-10-22 2009-10-22 Inter-device communication system and communication device

Country Status (1)

Country Link
JP (1) JP5314563B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5603380B2 (en) * 2012-07-26 2014-10-08 三菱電線工業株式会社 Warning indicator
JP6451547B2 (en) * 2014-11-18 2019-01-16 株式会社デンソー Communications system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07105121A (en) * 1993-09-30 1995-04-21 Nabco Ltd Decentralized controller
JP2001175584A (en) * 1999-12-16 2001-06-29 Ricoh Co Ltd Control method for option equipment
CN1461440A (en) * 2000-09-19 2003-12-10 汤姆森特许公司 Integrated circuit having programmable address in integrated circuit environment
JP4660970B2 (en) * 2001-05-29 2011-03-30 株式会社Gsユアサ Data communication method and data communication system
JP4640126B2 (en) * 2005-11-14 2011-03-02 富士通株式会社 Sideband bus setting circuit

Also Published As

Publication number Publication date
JP2011090489A (en) 2011-05-06

Similar Documents

Publication Publication Date Title
US8266360B2 (en) I2C-bus interface with parallel operational mode
EP3216172B1 (en) Predefined static enumeration for dynamic enumeration buses
CN102339267B (en) I2C address is changed
JP2018527678A (en) Improved serial peripheral interface
JP7082311B2 (en) Data communication equipment
CN101398801B (en) Method and device for expanding internal integrate circuit bus
JP2008539498A (en) Programming parallel I2C slave devices from a single I2C data stream
US10936524B2 (en) Bus system with slave devices
JP2002328879A (en) Pci extended function interface and pci device using the same
JP2008539497A (en) Device identification coding of slave devices between integrated circuits
JP3954011B2 (en) Method and computer system for communicating between subsystems
JP5314563B2 (en) Inter-device communication system and communication device
US20100325326A1 (en) Device information management system and device information management method
JP2005234932A (en) Matrix-like bus connection system and power reducing method therefor
CN114967570B (en) Programmable control circuit structure and control method for I2C slave machine address
US9331509B2 (en) Charger system, digital interface circuit and associated control method
CN109446144A (en) A kind of general purpose I 2C bus control unit for supporting User Agreement
JP2004510228A (en) Integrated circuit with programmable address in I2C environment
US7308023B1 (en) Dual function clock signal suitable for host control of synchronous and asynchronous target devices
US11880332B2 (en) Bus system with controllable communication priority
US8127108B2 (en) Apparatus, system and method for prefetching data in bus system
JP2003288278A (en) Microcontroller
JP2009130684A (en) Control signal communication method and optical transceiver device
TWI817831B (en) Serial-bus system having dynamic address table and its method for controlling the same
US20220188254A1 (en) Methods for identifying target slave address for serial communication interface

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120425

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130201

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130312

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130426

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130705

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 5314563

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