JP2001134525A - Id generating device - Google Patents

Id generating device

Info

Publication number
JP2001134525A
JP2001134525A JP31096699A JP31096699A JP2001134525A JP 2001134525 A JP2001134525 A JP 2001134525A JP 31096699 A JP31096699 A JP 31096699A JP 31096699 A JP31096699 A JP 31096699A JP 2001134525 A JP2001134525 A JP 2001134525A
Authority
JP
Japan
Prior art keywords
data
node
slave
connection port
received
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.)
Pending
Application number
JP31096699A
Other languages
Japanese (ja)
Inventor
Hiroki Okubo
久 保 博 樹 大
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP31096699A priority Critical patent/JP2001134525A/en
Publication of JP2001134525A publication Critical patent/JP2001134525A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To manage the history of ID setting from a master node by a slave node, to check whether an ID is correct or not, to evade such an error that the same ID is given to plural nodes repeatedly, to easily set a new ID, and to set the ID without any control by the master node. SOLUTION: The ID generating device is equipped with ID generator 3, a data memory 6, and means 4 and 5 which write and hold address data received from an I2 communication line in the data memory 6 when the address data is not matched with the output ID data of the ID generator 3. When the received ID data do not match the output ID data, ID data are updated according to input data given from outside the ID generating device or updated into ID data different from the received address data, or updated ID data are generated through logical operation between the ID data and received address data.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、制御マスタ・ノー
ドおよびスレーブ・ノードを含む電子装置システムの、
スレーブ・ノードにあってそれを表わすIDデ−タを発
生する装置、特にその機能、に関し、より具体的には、
これに限定する意図ではないが、少なくとも1つの制御
マスタ・ノードと複数のスレーブ・ノードを含むシステ
ムにおいて、バス型シリアル通信システムを用いて、複
数のスレーブ・ノードのID付与エラ−のチェック、な
らびに、重複しないID設定、を行ない得るID発生装
置に関する。
The present invention relates to an electronic device system including a control master node and a slave node.
With respect to a device for generating ID data representing a slave node and representing the slave node, particularly its function, more specifically,
In a system including, but not limited to, at least one control master node and a plurality of slave nodes, a bus-type serial communication system is used to check for ID assignment errors of the plurality of slave nodes, and And an ID generation device capable of performing ID setting that does not overlap.

【0002】このID発生装置は、例えばデジタル複写
機,及びデジタル複合機能複写機,レーザプリンタ,フ
ァクシミリ等、多くの電気,電子回路デバィスを同時に
備えて共通バス接続したシステムの、各デバィスに組込
まれ、特に、Philips社開発によるI2C(ISquare
C)バスを用いるシリアル通信システムを利用して各デ
バィスのID管理を行なうのに好適なものである。
This ID generator is incorporated in each device of a system equipped with many electric and electronic circuit devices at the same time and connected to a common bus, such as a digital copier, a digital multifunction copier, a laser printer, and a facsimile. In particular, I 2 C (ISquare
C) It is suitable for performing ID management of each device using a serial communication system using a bus.

【0003】[0003]

【従来の技術】多くのデバィス又は回路基板を共通バス
に接続するシステムでは、各デバィス毎にIDを付与す
る必要がある。特開昭62−171061号公報は、大
型のプリント回路板に、複数のメモリ基板を実装し、各
メモリ基板にID(先頭アドレス)を与える場合、メモ
リ基板毎にID設定用のスイッチを備えると、多くのス
イッチが必要になると共に、人作業による設定ミスも生
じるという問題があるとして、各基板に加算器を組付け
て、先頭の基板のIDをその次の基板の加算器に与え
て、順次に先頭側のIDに所定値を加えた値を、次の基
板側のIDとするID設定回路を提示している。
2. Description of the Related Art In a system in which many devices or circuit boards are connected to a common bus, it is necessary to assign an ID to each device. Japanese Patent Application Laid-Open No. 62-171061 discloses that when a plurality of memory boards are mounted on a large-sized printed circuit board and an ID (head address) is given to each memory board, an ID setting switch is provided for each memory board. Since there is a problem that many switches are required and a setting error due to manual operation also occurs, an adder is attached to each board, and the ID of the first board is given to the adder of the next board. An ID setting circuit is presented in which a value obtained by sequentially adding a predetermined value to the ID on the head side is used as the ID on the next board side.

【0004】特開平11−53293号公報は、上述の
従来例では先頭側の基板のIDを次の基板に与えるコネ
クタピンが必要であり、ピン数があまりにも多くなって
しまうとして、ピン数を減らすID設定回路を提示して
いる。各基板のID設定回路4A〜4Cには、1つずつ
の入力ピン20と、出力ピン30とを設けて、各ID設
定回路の出力ピン30は次接続するID設定回路の入力
ピン20に順次チェーン状に接続し、M個のパルスから
なる入力パルス信号Simを最先頭のID設定回路に与え
て、該回路のパルス生成回路1において先頭のパルスを
マスクし、(M−1)個のパルスからなる新パルス信号
Sim−1を生成して、新パルス信号Sim−1を出力ピン3
0から次のID設定回路の入力ピン20に入力する。最
先頭のID設定回路のカウンタ2が、M個のパルスから
なるカウント信号Scmを受けて、そのパルス数Mを計数
し、カウントデ−タをID認識回路3に入力する。カウ
ントデ−タが最先頭の基板又は半導体装置のIDとな
る。共通の基板上に搭載された複数の半導体装置のID
を設定する場合に、各半導体装置で必要なピン数が大幅
に低減する。
Japanese Unexamined Patent Application Publication No. 11-53293 discloses that the prior art described above requires a connector pin for giving the ID of the first board to the next board. An ID setting circuit to reduce is presented. Each of the ID setting circuits 4A to 4C of each board is provided with one input pin 20 and one output pin 30, and the output pin 30 of each ID setting circuit is sequentially connected to the input pin 20 of the next connected ID setting circuit. It is connected in a chain, and an input pulse signal Sim composed of M pulses is supplied to the first ID setting circuit, and the first pulse is masked in the pulse generation circuit 1 of the circuit, and (M-1) pulses And generates a new pulse signal Sim-1 consisting of
Input from 0 to the input pin 20 of the next ID setting circuit. The counter 2 of the first ID setting circuit receives the count signal Scm composed of M pulses, counts the number M of the pulses, and inputs the count data to the ID recognition circuit 3. The count data is the ID of the first substrate or semiconductor device. IDs of multiple semiconductor devices mounted on a common substrate
When setting the number of pins, the number of pins required for each semiconductor device is greatly reduced.

【0005】[0005]

【発明が解決しようとする課題】上述の2つの従来装置
は、各基板又は半導体装置に、自動的にIDを付与する
ものであり、順次に基板の追加接続があっても、自動的
に、整然と各基板にIDが与えられる。しかし、各基板
又は半導体装置もしくは電子回路(以下単にデバィス又
はノ−ドと表現する)に予めIDが付与されている場合
は、1つの基板の追加に対応して、ID付与処理を開始
すると、他の半導体装置のIDまでも書き換えてしまう
という不具合があった。
The above two conventional devices automatically assign an ID to each substrate or semiconductor device. Even if additional substrates are sequentially connected, the two devices can be automatically connected. An ID is assigned to each board in an orderly manner. However, when an ID is previously assigned to each substrate, semiconductor device, or electronic circuit (hereinafter simply referred to as a device or a node), when an ID assignment process is started in response to addition of one substrate, There is a problem that the ID of another semiconductor device is rewritten.

【0006】本発明は、マスタ・ノードからの設定の履
歴をスレーブ・ノードで管理させることを第1の目的と
し、IDの正誤をチェックしうるID発生装置を提供す
ることを第2の目的とし、同一IDを重複して複数ノ−
ドに与えてしまうエラ−を回避することを第3の目的と
し、新たなIDの設定を簡単に行なうことを第4の目的
とし、マスタ・ノードの制御無しにもIDの設定を可能
とすることを第5の目的とする。
A first object of the present invention is to allow a slave node to manage the setting history from a master node, and a second object to provide an ID generator capable of checking whether an ID is correct. , The same ID is duplicated and
The third object is to avoid an error given to the node, and the fourth object is to easily set a new ID, and the ID can be set without controlling the master node. This is the fifth object.

【0007】[0007]

【課題を解決するための手段】(1)IDデ−タを出力
する手段(3),デ−タメモリ(6)、および、通信ライン(S
CL,SDA)から受信した宛先デ−タが前記IDデ−タと合
致しないと、該宛先デ−タをデ−タメモリ(6)に書込み
保持する手段(4,5)、を備えるID発生装置(図3の
(a))。なお、理解を容易にするためにカッコ内には、図
面に示し後述する実施例の対応要素又は対応事項の記号
を、参考までに付記した。以下も同様である。
(1) Means for outputting ID data (3), data memory (6), and communication line (S
If the destination data received from CL, SDA) does not match the ID data, the ID generation device includes means (4, 5) for writing and holding the destination data in the data memory (6). (Fig. 3
(a)). In addition, in order to facilitate understanding, symbols of corresponding elements or corresponding items in the embodiments shown in the drawings and described later are added for reference in parentheses. The same applies to the following.

【0008】これによれば、デ−タメモリ(6)が保持す
る宛先デ−タを参照して、マスタ・ノードからの設定の
履歴をスレーブ・ノードで管理することが可能になる。
According to this, it is possible to manage the setting history from the master node in the slave node with reference to the destination data held in the data memory (6).

【0009】例えば、最大数で、No.0〜aのノ−ド
を接続可とした、No.0〜aのハ−ドウェア上の接続
ポ−トを有するシステムで、実際にはb個(b≦a)の
ノ−ドを通信ライン(SCL,SDA)および接続ポ−トNo.
0〜No.bに接続し、これらの実装ノ−ドに設定され
ているIDが、接続ポ−トNo.0〜No.aのいずれ
か(又は、ID設定エラ−がある場合には、その他のデ
−タ)であって、接続ポ−トNo.0に接続されたノ−
ド1aを、ID管理主体であるマスタ・ノ−ドとする場
合は、マスタ・ノ−ド1aによって、実装されているス
レ−ブ・ノ−ド1b〜1dと、実装のない接続ポ−ト
(実装のない仮想ノ−ド1e〜1h)を容易にチェック
することができる。
For example, when the maximum number is No. Nos. 0 to a are connectable. A system having connection ports on hardware 0 to a. In practice, b nodes (b ≦ a) are connected to communication lines (SCL, SDA) and connection port Nos.
0-No. b, and the IDs set in these mounting nodes are the connection port Nos. 0-No. a (or other data if there is an ID setting error) and the connection port No. The node connected to 0
When the node 1a is used as a master node which is an ID management entity, the slave nodes 1b to 1d mounted by the master node 1a and connection ports not mounted are used. (Virtual nodes 1e to 1h without mounting) can be easily checked.

【0010】一例では、マスタ・ノ−ド1aが、全接続
ポ−トNo.0〜No.aを同時にセレクト(指定)
し、すなわちイネ−ブルを与えて、通信ライン(SCL,SD
A)に、ID No.1〜No.aを表わす宛先デ−タを
順次に送出し、接続ポ−トNo.1〜No.bの各スレ
−ブ・ノ−ド1b〜1dが、自己ID No.iに一致
する宛先デ−タNo.iを受信したときには、通信ライ
ン(SCL,SDA)を介してマスタ・ノ−ドにアクノレッジ(A)
を返信し、自己ID No.iに一致しない宛先デ−タ
No.jを受信したときにはデ−タメモリ(6)にNo.j
を書込む。
In one example, the master node 1a receives all connection port numbers. 0-No. Select a simultaneously (specify)
In other words, the enable is given and the communication line (SCL, SD
A) has the ID No. 1 to No. a is sequentially transmitted, and the connection port No. 1 to No. b, each slave node 1b to 1d has its own ID No. i, the destination data No. When i is received, an acknowledge (A) is sent to the master node via the communication line (SCL, SDA).
And returns the self ID No. i, the destination data No. When j is received, No. is stored in the data memory (6). j
Write.

【0011】このときマスタ・ノ−ド1a(ID N
o.0)は、宛先デ−タNo.iを通信ラインに送出し
これに対応するアクノレッジ(A)を受信すると、No.
iなるIDのノ−ドが存在することを認知する。そし
て、宛先デ−タNo.jを通信ラインに送出したときに
は、アクノレッジ(A)を受けないので、マスタ・ノ−ド
No.0は、No.jなるIDのノ−ドは存在しないこ
とを認知する。このように、マスタ・ノ−ド1a(ID
No.0)は、自己の外にNo.1〜aのノ−ド(ノ
−ド1b〜1h)が接続可のシステムにおいて、接続ポ
−トに接続されたノ−ド1b〜1dのID(例えばN
o.1〜b)を知ることができる。
At this time, the master node 1a (ID N
o. 0) is the destination data No. i is transmitted to the communication line and the corresponding acknowledge (A) is received.
It recognizes that there is a node with ID i. Then, the destination data No. When the master node No. j is transmitted to the communication line, the acknowledgment (A) is not received. 0 is No. It recognizes that the node with the ID j does not exist. Thus, the master node 1a (ID
No. 0) is No. outside the self. In a system to which nodes 1 to a (nodes 1b to 1h) can be connected, IDs of the nodes 1b to 1d (for example, N
o. 1-b) can be known.

【0012】接続があるノ−ド1b〜1dのそれぞれの
デ−タメモリ(6)には、宛先デ−タNo.1〜(i−
1)およびNo.(i+1)〜aが書込まれているの
で、ハ−ドウェアの接続ポ−トを順次に個別にセレクト
(指定)して、それに接続されたノ−ドのID発生装置
のデ−タメモリ(6)の宛先デ−タを読出すことにより、
例えば、接続ポ−トNo.iに接続されたスレ−ブ・ノ
−ドのID発生装置のデ−タメモリ(6)に保持した宛先
デ−タがNo.1〜(i−1)およびNo.(i+1)
〜aであると、接続ポ−トNo.iに接続されたスレ−
ブ・ノ−ドのIDはNo.iであると判定できる。仮
に、接続ポ−トNo.iに接続されたスレ−ブ・ノ−ド
のID発生装置のデ−タメモリ(6)に保持した宛先デ−
タがNo.1〜(k−1)およびNo.(k+1)〜a
であると、接続ポ−トNo.iに接続されたスレ−ブ・
ノ−ドのIDはNo.kであると判定できる。接続ポ−
トNo.iに接続されたスレ−ブ・ノ−ドのIDはN
o.iと予め定めているシステム設定では、この場合に
は、接続ポ−トNo.iに接続されたスレ−ブ・ノ−ド
のIDがエラ−であることが分かる。
The data memory (6) of each of the connected nodes 1b to 1d stores the destination data No. 1 to (i-
1) and No. Since (i + 1) -a are written, the connection ports of the hardware are sequentially selected (designated) individually, and the data memory (6) of the ID generation device of the node connected thereto is selected. ) By reading the destination data
For example, connection port No. The destination data held in the data memory (6) of the slave node ID generator connected to the slave node No. i. 1 to (i-1) and No. 1 (I + 1)
-A, the connection port No. The thread connected to i
The ID of the node is No. i can be determined. Assuming that connection port No. The destination data held in the data memory (6) of the slave node ID generator connected to i.
Is No. 1 to (k-1) and No. 1 (K + 1) -a
, The connection port No. slave connected to i
The ID of the node is No. k can be determined. Connection port
No. The slave node ID connected to i is N
o. In the system setting that is predetermined as i, in this case, the connection port No. It can be seen that the ID of the slave node connected to i is an error.

【0013】もう1つの例では、マスタ・ノ−ド1a
が、接続ポ−トNo.1〜No.aを1つづつ個別にセ
レクト(指定)し、1つの接続ポ−トに通信ライン(SC
L,SDA)を介してID No.1〜No.7を表わす宛先
デ−タを順次に送出する。例えば、接続ポ−トNo.1
のスレ−ブ・ノ−ド1bのID発生装置のIDがNo.
1であると、マスタ・ノ−ド1aが接続ポ−トNo.1
をセレクトしてID No.1を表わす宛先デ−タを送
信したときに、スレ−ブ・ノ−ド1bのID発生装置2
bがマスタ・ノ−ド1aのアクノレッジを返信し、これ
に応答してマスタ・ノ−ド1aは、接続ポ−トNo.1
に接続されているフレ−ブ・ノ−ド1bのIDがNo.
1であることを認知して、これを表わす情報を内部レジ
スタにセ−ブし、そこで接続ポ−トのセレクトを、N
o.1からNo.2に切換える。この場合は、接続ポ−
トNo.1へのIDデ−タの送信は、ID No.1の
みで終わり、スレ−ブ・ノ−ド1bのID発生装置2b
の不一致ID保持メモリ6への、IDデ−タ(宛先デ−
タ)の書込みはない。
In another example, the master node 1a
Is the connection port No. 1 to No. a is individually selected (designated) one by one, and the communication line (SC) is connected to one connection port.
L, SDA) via ID No. 1 to No. 7 are sequentially transmitted. For example, connection port No. 1
The ID of the ID generator of the slave node 1b of No. is No.
1, the master node 1a sets the connection port No. 1
And select ID No. 1 is transmitted, the ID generator 2 of the slave node 1b is transmitted.
b returns the acknowledgment of the master node 1a, and in response, the master node 1a sets the connection port No. 1
The ID of the node 1b connected to the
Recognizing that it is 1, the information indicating this is stored in an internal register, and the selection of the connection port is made N
o. No. 1 to No. Switch to 2. In this case, the connection port
No. The transmission of ID data to ID No. 1 ID generator 2b of slave node 1b
ID data (destination data) stored in the
There is no writing in (1).

【0014】接続ポ−トNo.2のスレ−ブ・ノ−ド1
cのID発生装置のIDがNo.2であると、マスタ・
ノ−ド1aが接続ポ−トNo.2をセレクトしてID
No.1を表わす宛先デ−タを送信したときに、スレ−
ブ・ノ−ド1bのID発生装置2bはアクノレッジを返
信せず、不一致ID保持メモリ6に、受信した宛先デ−
タ(ID No.1)を書込む。マスタ・ノ−ド1aは
アクノレッジの返信がないので、次のID No.2
(宛先デ−タ)を送出する。これを受信するとスレ−ブ
・ノ−ド1cのID発生装置がアクノレッジを返信し、
これに応答してマスタ・ノ−ド1aは、接続ポ−トN
o.2に接続されているフレ−ブ・ノ−ド1cのIDが
No.2であることを認知して、これを表わす情報を内
部レジスタにセ−ブし、そこで接続ポ−トのセレクト
を、No.2からNo.3に切換える。この場合は、接
続ポ−トNo.2へのIDデ−タの送信は、ID N
o.1とNo.2で終わり、スレ−ブ・ノ−ド1cのI
D発生装置の不一致ID保持メモリ6には、ID N
o.1が書込まれている。
The connection port No. 2 slave nodes 1
c is ID No. If it is 2, the master
Node 1a is the connection port No. Select 2 and ID
No. When the destination data representing 1 is transmitted,
The ID generator 2b of the node 1b does not return an acknowledgment, and stores the received destination data in the mismatched ID holding memory 6.
(ID No. 1). Since the master node 1a does not return an acknowledgment, the next ID No. 2
(Destination data). Upon receiving this, the ID generator of the slave node 1c returns an acknowledgment,
In response, the master node 1a sets the connection port N
o. The ID of the Flave Node 1c connected to No. 2 is No. Recognizing that the connection port number is No. 2, the information indicating this is stored in the internal register, and the selection of the connection port is changed to No. 2. 2 to No. 2 Switch to 3. In this case, the connection port No. The transmission of ID data to ID2 is IDN
o. 1 and No. Ends with 2 and slave node 1c I
The ID generation memory 6 of the D generator has ID N
o. 1 has been written.

【0015】このように、マスタ・ノ−ド1a(ID
No.0)は、自己の外にNo.1〜aのノ−ド(ノ−
ド1b〜1h)が接続可のシステムにおいて、各接続ポ
−トに接続されたノ−ド1b〜1dのID(例えばN
o.1〜b)を知ることができる。
As described above, the master node 1a (ID
No. 0) is No. outside the self. Nodes 1 to a (nodes
In the system to which the nodes 1b to 1h can be connected, the IDs of the nodes 1b to 1d connected to each connection port (for example, N
o. 1-b) can be known.

【0016】[0016]

【発明の実施の形態】(2)受信した宛先デ−タが前記
IDデ−タと合致しなかったときに、前記出力手段(3)
は、ID発生装置外から与えられる入力デ−タに応じて
出力するIDデ−タを更新する(図4の(b))。
(2) The output means (3) when the received destination data does not match the ID data.
Updates the ID data to be output according to the input data given from outside the ID generator (FIG. 4 (b)).

【0017】例えばノ−ドのIDチェック,ID初期設
定又はID再設定のステ−ジで、上記(1)項で説明し
た、各接続ポ−トNo.1〜aへのスレ−ブ・ノ−ドの
接続の有無と、接続されたスレ−ブ・ノ−ド(1b〜1d)の
ID判定を行なって、これをディスプレイ,プリンタ等
の出力装置にて出力し、オペレ−タ又はシステムコント
ロ−ラがスレ−ブ・ノ−ド(1b〜1d)のIDの正誤をチェ
ックし、エラ−IDを訂正するときには、オペレ−タ又
はシステムコントロ−ラもしくはスレ−ブ・ノ−ド(1b
〜1d)の、ID発生装置外のコントロ−ラが、入力手段
を介してID発生装置に、訂正用デ−タを与え、それに
基づいてID発生装置がIDを変更する。これによれ
ば、マスタ・ノード(1a)のID変更制御無しにもIDを
変更させることが可能になる。
For example, in the stage of node ID check, ID initial setting or ID resetting, each connection port No. described in the above item (1) is used. The presence / absence of connection of the slave nodes to 1 to a and the ID determination of the connected slave nodes (1b to 1d) are performed, and this is output to an output device such as a display or a printer. When the operator or the system controller checks the correctness of the ID of the slave node (1b to 1d) and corrects the error ID, the operator or the system controller or the Slave node (1b
A controller outside of the ID generator of 1) to 1d) supplies correction data to the ID generator via input means, and the ID generator changes the ID based on the correction data. According to this, the ID can be changed without the ID change control of the master node (1a).

【0018】(3)IDデ−タを出力し、通信ラインか
ら受信した宛先デ−タが前記IDデ−タと合致しない
と、受信した宛先デ−タとは異なるIDデ−タに出力デ
−タを変更するID発生手段(3)を備える(図3の(b))。
(3) If ID data is output and the destination data received from the communication line does not match the ID data, the output data is output to an ID data different from the received destination data. And ID generation means (3) for changing the data (FIG. 3 (b)).

【0019】これによれば、新たなID値の設定を簡単
に行なうことが可能となる。例えば、宛先デ−タとは異
なるIDデ−タへの変更ロジックを、宛先デ−タが表わ
す値+1を新たなIDデ−タとするものに設定した場合
には、第1のスレ−ブ・ノ−ド(1b)にID No.1を
設定するときには、マスタ・ノ−ド(1b)が、スレ−ブ・
ノ−ド(1b)が接続された第1接続ポ−ト(No.1)の
みを選択(指定)して、それに、ID No.(1−
1)すなわちID No.0を表わす宛先デ−タを送信
すると、ノ−ド(1b)のIDがNo.1とは異なるもので
あると、ノ−ド(1b)のIDがID No.(0+1)す
なわちID No.1に変化する(ID変更操作)。確
認のため、ID No.1を表わす宛先デ−タをマスタ
・ノ−ド(1a)からスレ−ブ・ノ−ド(1b)に送信(確認操
作)すると、このときにはレ−ブ・ノ−ド(1b)は、受信
した宛先デ−タが自己ID No.1に合致するので、
アクノレッジを返信し、IDデ−タの変更はしない。な
お、上述の確認操作を先にして、ノ−ド(1b)からアクノ
レッジの返信が無い(IDが異っている)場合のみ、上
述のID変更操作を行なってもよい。このように、簡単
な操作により、IDの確認および変更が可能である。
According to this, it is possible to easily set a new ID value. For example, if the logic for changing to ID data different from the destination data is set so that the value +1 represented by the destination data is the new ID data, the first slave is used.・ ID No. is assigned to node (1b). When setting 1, the master node (1b)
Only the first connection port (No. 1) to which the node (1b) is connected is selected (designated), and the ID No. (1-
1) That is, ID No. When the destination data representing No. 0 is transmitted, the ID of the node (1b) is No. If the ID is different from the ID No. 1, the ID of the node (1b) is ID No. (0 + 1), that is, ID No. 1 (ID change operation). For confirmation, ID No. When destination data representing 1 is transmitted (confirmation operation) from the master node (1a) to the slave node (1b), the slave node (1b) receives at this time. The destination data obtained is the self ID No. Because it matches 1,
An acknowledgment is returned, and the ID data is not changed. Note that, prior to the above-described confirmation operation, the above-described ID change operation may be performed only when there is no acknowledgment reply from the node (1b) (the ID is different). Thus, the ID can be confirmed and changed by a simple operation.

【0020】(4)IDデ−タを出力する手段(3)、お
よび、通信ライン(SDA,SCL)から受信した宛先デ−タが
前記IDデ−タと合致しないと、前記IDデ−タと受信
した宛先デ−タとの演算から更新IDデ−タを生成して
これを出力IDデ−タとする演算手段(10)、を備える
(図4の(a))。
(4) Means for outputting ID data (3), and if destination data received from a communication line (SDA, SCL) does not match the ID data, the ID data is output. And operation means (10) for generating update ID data from the operation of the received ID and the received destination data and using the updated ID data as output ID data.
((A) of FIG. 4).

【0021】これによれば、簡単な操作により、IDを
変更することができるばかりでなく、減算,乗算など他
の数値演算、ならびに、例えばスレ−ブ・ノ−ドに設定
しているIDと、マスタ・ノ−ドが送信して来た宛先デ
−タとの、論理積,論理和,排他的論理和等の論理演算
を行なうこともでき、IDの変更方法ならびに変更され
る値の範囲を、比較的に高い自由度で拡大させることが
可能になる。
According to this, not only the ID can be changed by a simple operation, but also other numerical operations such as subtraction and multiplication, and the ID set in the slave node, for example, can be changed. , Logical operation such as logical product, logical sum, exclusive logical sum, etc., with the destination data transmitted by the master node. Can be expanded with a relatively high degree of freedom.

【0022】以上(1)〜(4)によって、マスタ・ノ
ード(1a),複数個のスレーブ・ノード(1b〜1d)および通
信ライン(SDA,SCL)でID制御システムを構成して、複
数個のスレ−ブ・ノ−ドのそれぞれにおいてIDデ−タ
を保持又は発生して出力するためのID発生装置の、そ
れぞれが出力するIDデ−タを、スレーブ・ノード間で
重複しないように効率的に設定することが可能になる。
According to the above (1) to (4), an ID control system is constituted by a master node (1a), a plurality of slave nodes (1b to 1d) and communication lines (SDA, SCL). ID generators for holding or generating ID data in each of the slave nodes and outputting the same so that the ID data output from each of the slave nodes does not overlap between slave nodes. It becomes possible to set it.

【0023】(5)制御マスタ・ノード(1a)およびスレ
ーブ・ノード(1b〜1d)を有するバス型シリアル通信シス
テム(I2C)のスレーブ・ノードのID設定回路(2b)にお
いて、スレーブ・ノード内に任意のビット数の値を予め
用意するとともに、その値と同一ビット数の任意のID
設定値を同一システム上の制御マスタ・ノード(1a)から
スレーブ・ノード(1b〜1d)へ転送後、それら2つの値を
比較し、その比較結果が一致しない場合は、スレーブ・
ノード内に制御マスタ・ノードから転送された任意のI
D設定値を保持する手段(3〜6)を有することを特徴とす
る(図3,図4)。これによれば、デ−タメモリ(6)が保持す
る宛先デ−タを参照して、マスタ・ノードからの設定の
履歴をスレーブ・ノードで管理することが可能になる。
(5) Control In the ID setting circuit (2b) of the slave node of the bus type serial communication system (I 2 C) having the master node (1a) and the slave nodes (1b to 1d), the slave node A value of an arbitrary number of bits is prepared in advance, and an arbitrary ID having the same number of bits as the value is prepared.
After transferring the set values from the control master node (1a) on the same system to the slave nodes (1b to 1d), the two values are compared, and if the comparison results do not match, the slave
Any I transferred from the control master node into the node
It is characterized by having means (3 to 6) for holding the D set value (FIGS. 3 and 4). According to this, the slave node can manage the setting history from the master node with reference to the destination data held by the data memory (6).

【0024】(6)上記(5)に記載のID設定回路(2
b)において、予め用意した任意のビット数の値と、その
値と同一ビット数のスレーブ・ノードへの任意のID設
定値との比較結果が一致しない場合は、スレーブ・ノー
ド内に予め用意した任意のビット数の値を、既に転送さ
れて保持されたID設定値以外の値に変更する手段(3)
を有することを特徴とする(図3の(b))。これによれば、
新たなID値の設定を簡単に行なうことが可能となる。
(6) The ID setting circuit (2) described in (5) above
In b), when the comparison result between the value of the arbitrary bit number prepared in advance and the arbitrary ID setting value for the slave node having the same bit number as the value does not match, the value is prepared in advance in the slave node. Means for changing the value of an arbitrary number of bits to a value other than the ID setting value already transferred and held (3)
(FIG. 3 (b)). According to this,
It is possible to easily set a new ID value.

【0025】(7)上記(5),(6)に記載のID設
定回路(2b)において、予め用意した任意のビット数の値
と、その値と同一ビット数のスレーブ・ノードへの任意
のID設定値との比較結果が一致しない場合のID設定
値の変更手段は、予め用意した任意のビット数の値と、
既に転送された同一ビット数のID設定値との間におけ
る演算(10)を行なうことにより実現することを特徴とす
る(図4の(a))。これによれば、簡単な操作により、ID
を変更することができるばかりでなく、減算,乗算など
他の数値演算、ならびに、例えばスレ−ブ・ノ−ドに設
定しているIDと、マスタ・ノ−ドが送信して来た宛先
デ−タとの、論理積,論理和,排他的論理和等の論理演
算を行なうこともでき、IDの変更方法ならびに変更さ
れる値の範囲を、比較的に高い自由度で拡大させること
が可能になる。
(7) In the ID setting circuit (2b) described in (5) or (6) above, a value of an arbitrary number of bits prepared in advance and an arbitrary number of bits to a slave node having the same number of bits as the value are provided. The means for changing the ID set value when the comparison result with the ID set value does not match includes a value of an arbitrary number of bits prepared in advance,
It is realized by performing the operation (10) with the ID setting value of the same number of bits already transferred ((a) in FIG. 4). According to this, ID can be obtained by a simple operation.
Not only can be changed, but also other numerical operations such as subtraction and multiplication, as well as the ID set in the slave node and the destination data sent by the master node, for example. It is also possible to perform a logical operation such as a logical product, a logical sum, an exclusive logical sum or the like with the data, and expand the method of changing the ID and the range of the value to be changed with a relatively high degree of freedom. become.

【0026】(8)上記(5),(6)又は(7)に記
載のID設定回路(2b)において、予め用意した任意のビ
ット数の値と、その値と同一ビット数のスレーブ・ノー
ドへの任意のID設定値との比較結果が一致しない場合
のID設定値の変更手段は、スレーブ・ノードに対して
外部(11)から任意のビット数の入力信号を変更すること
により実現することを特徴とする(図4の(b))。これによ
れば、マスタ・ノード(1a)のID変更制御無しにもID
を変更させることが可能になる。
(8) In the ID setting circuit (2b) according to (5), (6) or (7), a value of an arbitrary number of bits prepared in advance and a slave node having the same number of bits as the value are provided. Means for changing the ID set value when the comparison result with the arbitrary ID set value does not match is realized by changing the input signal of an arbitrary number of bits from the outside (11) to the slave node (FIG. 4 (b)). According to this, even if the ID change control of the master node (1a) is not performed,
Can be changed.

【0027】本発明の他の目的および特徴は、図面を参
照した以下の実施例の説明より明らかになろう。
[0027] Other objects and features of the present invention will become apparent from the following description of embodiments with reference to the drawings.

【0028】[0028]

【実施例】まず図1に、後述する複数の実施例に共通の
システム構成を示す。このシステムは、8個の接続ポ−
トNo.0〜No.7をシステムバスSYBおよびID
バス(I2Cバス)に備えて、8個のノ−ド(CPUを
中心とするコントロ−ラ,I/Oインタ−フェイス,半
導体装置等)を接続可能にした、システム構成を示す。
図1には、4個の接続ポ−トNo.0〜3のそれぞれに
各1個、計4個のノ−ド1a〜1dが接続(実装)され
ているが、残り4個の接続ポ−トNo.4〜7は開いて
おり、別途のノ−ド(1e〜1h)を後付接続すること
ができる。
FIG. 1 shows a system configuration common to a plurality of embodiments described later. This system has eight connection ports.
No. 0-No. 7 is the system bus SYB and ID
This shows a system configuration in which eight nodes (controller, CPU, etc., I / O interface, semiconductor device, etc.) can be connected to a bus (I 2 C bus).
FIG. 1 shows four connection port numbers. 0 to 3 are connected (mounted), each of which has a total of four nodes 1a to 1d, and the remaining four connection ports No. 1 to 1d. Nos. 4 to 7 are open, and additional nodes (1e to 1h) can be retrofitted.

【0029】システムバスSYBが、機械機構制御,電
気回路制御,デ−タ転送およびデ−タ処理などに用い
る、制御信号,タイミング信号,状態信号,デ−タ等の
送,受信,転送に用いられるものであり、その中に、接
続ポ−トNo.0〜No.7に接続されたノ−ドを個別
にセレクト(動作指定)する(Enableにする)チ
ップセレクト信号ライン又はノ−ド選択信号ラインが含
まれ、該ラインがアクティブレベルのときのみ、ノ−ド
内のID設定機能(2a〜2h)が、IDバス(I2
バス)と送受信可となる。
The system bus SYB is used for transmitting, receiving, and transferring control signals, timing signals, status signals, data, and the like used for mechanical mechanism control, electric circuit control, data transfer, data processing, and the like. The connection port No. is included therein. 0-No. 7 includes a chip select signal line or a node select signal line for individually selecting (designating an operation) (enabling the operation) the nodes connected to the node 7, and only when this line is at the active level, ID setting function (2a to 2h) is an ID bus (I 2 C
Bus).

【0030】IDバス(I2Cバス)は、システム初期
化時又は所定のコマンドがあった場合、接続ポ−トN
o.1〜7に接続されている各ノ−ドのIDをチェック
するために、また、接続ポ−トNo.1〜7に接続され
ている各ノ−ドにIDを設定し又は各ノ−ドのIDを変
更するために、接続ポ−トNo.0に接続されたマスタ
・ノ−ド1aと、接続ポ−トNo.1〜7に接続された
スレ−ブ・ノ−ド1b〜1h(図1上では、1e〜1h
は未装備)との間でシリアルデ−タ通信を行なうための
ものである。このためのバス型シリアル通信システムと
して、ここでは、Philips社開発のIC間相互通信を効
率的に行なうことを目的とした2本のワイヤからなる構
造の簡単な双方向バスである、I2Cバスを採用してい
る。I2Cバスの一般的な仕様を簡単に説明する。
The ID bus (I 2 C bus) connects to the connection port N when the system is initialized or when a predetermined command is issued.
o. In order to check the ID of each node connected to Nos. 1 to 7, the connection port Nos. In order to set an ID for each node connected to each of the nodes 1 to 7 or to change the ID of each node, the connection port No. 0 and the connection port No. 1 are connected to the master node 1a. Slave nodes 1b to 1h (1e to 1h in FIG. 1)
) Is for performing serial data communication with the device. As a bus-type serial communication system for this purpose, here, I 2 C, which is a simple bidirectional bus having a structure of two wires for efficient intercommunication between ICs developed by Philips, is used. We adopt bus. General specifications of the I 2 C bus will be briefly described.

【0031】I2Cバスは、2本の信号線、シリアル・
クロック・ラインSCLおよびシリアル・データ・ライ
ンSDAによって、バスに接続されている装置間での情
報伝達を行なうバスで、制御マスタ側からスレーブ側に
転送される、宛先デ−タであるスレーブ・アドレス(シ
リアルの7ビット)が定義されており、そのアドレス指
定を制御マスタ側がソフトウェアにより行なう。I2
バスに接続された各装置(ノ−ド)は、それぞれ固有の
アドレスによって認識され、装置の機能に応じて、送信
装置または受信装置として動作できるようになってい
る。ここで制御マスタとは、I2Cバスでデータ転送を
開始する装置であり、転送を可能にするクロック信号を
生成する。そのとき、制御マスタによってアドレス指定
されるどの装置もスレーブとなる。
The I 2 C bus has two signal lines, a serial
A bus for transmitting information between devices connected to the bus by a clock line SCL and a serial data line SDA. The slave address, which is destination data, is transferred from the control master to the slave. (Serial 7 bits) are defined, and the address is specified by software on the control master side. I 2 C
Each device (node) connected to the bus is recognized by a unique address, and can operate as a transmitting device or a receiving device according to the function of the device. Here, the control master is a device that starts data transfer on the I 2 C bus, and generates a clock signal that enables the transfer. At that time, any device addressed by the control master is a slave.

【0032】デ−タ・ラインSDAとクロック・ライン
SCLはどちらも双方向ラインであり、バスが開放され
ている時にはどちらもH(高レベル)になっている。ま
た、クロックがHの間は、デ−タ・ラインSDAのレベ
ルは一定でなければならない。データ・ラインSDAが
HとL(低レベル)の間で状態を変更できるのは、SC
Lラインのクロック信号がLの時だけに限られる。
The data line SDA and the clock line SCL are both bidirectional lines, and are both H (high level) when the bus is open. While the clock is high, the level of the data line SDA must be constant. The data line SDA can change state between H and L (low) only at SC
Only when the clock signal of the L line is L.

【0033】I2Cバスの通信手順では、「開始」条件
および「停止」条件という固有の条件がある; 「開始条件」:クロック・ラインSCLがHのときに、
デ−タ・ラインSDAがHからLに変化, 「停止条件」:クロック・ラインSCLがHのときに、
デ−タ・ラインSDAがLからHに変化。
In the communication procedure of the I 2 C bus, there are specific conditions of “start” condition and “stop” condition; “start condition”: when the clock line SCL is H,
Data line SDA changes from H to L, "Stop condition": When clock line SCL is H,
Data line SDA changes from L to H.

【0034】図2に、I2Cバスによる、7ビット・ア
ドレスのフォーマットを含むデータ転送の仕様を、制御
マスタからスレーブへの通常のデータ書き込みを例に、
示す。
FIG. 2 shows the specification of data transfer including a 7-bit address format using the I 2 C bus, taking normal data writing from the control master to the slave as an example.
Show.

【0035】データ転送では、図2に示したフォーマッ
トが使用される。「開始」条件(S)が成立すると、ス
レーブのアドレスすなわち宛先アドレス送信される。こ
のアドレスは7ビット構成であり、8ビット目にはデー
タ方向ビット(R:スレ−ブから読み出し/W:スレ−
ブに書込み)が続く。このデータ方向ビットが0ならば
送信(書き込み)、1ならばデータ要求(読み出し)を
示す。データ転送は必ず制御マスタが生成する「停止」
条件(P)によって終了する。しかし、制御マスタがま
だバス上での通信を続けたい場合には、先に「停止」条
件を生成することなく、再送「開始」条件(Sr)を生成
して別のスレーブのアドレスを指定することができる。
また、この他に高速(連続)書き込みフォーマット、通
常読み出しフォーマット、高速(連続)読み出しフォー
マットがあるが、制御マスタからの最初のスレーブアド
レスの転送までのフォーマットは共通であるので、ここ
ではその説明、および図示を割愛する。
In the data transfer, the format shown in FIG. 2 is used. When the “start” condition (S) is satisfied, the slave address, that is, the destination address is transmitted. This address has a 7-bit configuration, and the eighth bit has a data direction bit (R: read from slave / W: slave).
Write). If the data direction bit is 0, it indicates transmission (write), and if it is 1, it indicates a data request (read). Data transfer is always "stop" generated by the control master
The process ends according to the condition (P). However, if the control master still wants to continue communication on the bus, it generates a retransmission "start" condition (Sr) and specifies the address of another slave without first generating a "stop" condition. be able to.
In addition, there are a high-speed (continuous) write format, a normal read format, and a high-speed (continuous) read format, but the format up to the transfer of the first slave address from the control master is common. And illustration is omitted.

【0036】図1に示す、接続ポ−トNo.0に接続さ
れたノ−ド1aはシステムコントロ−ラ基板であり、そ
れには、入出力制御プロセッサを含む、ID制御回路2
aがある。このID制御回路2aが、システムの初期化
時ならびにシステム内でIDチェックコマンドが発生し
たとき又はシステム外部からIDチェックコマンドが与
えられたときに、接続ポ−トNo.1〜7のそれぞれに
接続されているノ−ド1b〜1hのIDをチェックする
(後述の第1〜第4実施例)。また、接続ポ−トNo.
1〜7のノ−ドのIDにエラ−があると変更を行なう
(後述の第2〜第4実施例)。このようなノ−ドIDの
チェックおよび変更の制御から見ると、図1に示す例で
は、ノ−ド1aがマスタ・ノ−ド、ノ−ド1b〜1hが
スレ−ブ・ノ−ドである。
The connection port No. shown in FIG. The node 1a connected to the ID 0 is a system controller board, which includes an ID control circuit 2 including an input / output control processor.
There is a. When the ID control circuit 2a initializes the system, generates an ID check command in the system, or receives an ID check command from outside the system, the connection port No. The IDs of the nodes 1b to 1h connected to the respective nodes 1 to 7 are checked (first to fourth embodiments described later). In addition, connection port No.
If there is an error in the IDs of the nodes 1 to 7, the change is made (second to fourth embodiments described later). From the viewpoint of the control of checking and changing the node ID, in the example shown in FIG. 1, the node 1a is a master node, and the nodes 1b to 1h are slave nodes. is there.

【0037】−第1実施例− 図3の(a)に、スレ−ブ・ノ−ド1bに備わるID設
定機能2bの内容を示す。他のすべてのスレ−ブ・ノ−
ド1b〜1dには、ID設定機能2bと同じ構成および
機能のID設定機能2c〜2dが備わっている。ID設
定機能2bにはID発生3があり、7ビットのIDデ−
タ7を出力する。システムの初期化時,システム内でI
Dチェックコマンドが発生したとき又はシステム外部か
らIDチェックコマンドが与えられたときに、マスタ・
ノ−ド1aが、接続ポ−トNo.1〜7のすべて(スレ
−ブ・ノ−ド1b〜1h)をセレクトして、I2Cライ
ンに前記図2で示した転送フォーマットにより「開始」
条件(S)、スレーブ・アドレス(宛先デ−タ)、なら
びにデータ方向ビット(R/W)、任意のデータ、「停
止」条件(P)をシリアル転送する。これを、スレーブ
・アドレス(宛先デ−タ)をNo.1とするものからN
o.7とするものまで、順次に繰返す。
First Embodiment FIG. 3A shows the contents of an ID setting function 2b provided in the slave node 1b. All other slaves
The nodes 1b to 1d have ID setting functions 2c to 2d having the same configuration and function as the ID setting function 2b. The ID setting function 2b has an ID generation 3 and a 7-bit ID data.
Data 7 is output. When the system is initialized, I
When a D check command is issued or when an ID check command is given from outside the system, the master
Node 1a is a connection port No. 1-7 all (thread - Bed & Bruno - de 1b through 1h) to select the "start" by the transfer format shown in FIG. 2 to I 2 C line
The condition (S), slave address (destination data), data direction bit (R / W), arbitrary data, and "stop" condition (P) are serially transferred. The slave address (destination data) is set to No. From 1 to N
o. Repeat up to 7 sequentially.

【0038】各スレ−ブ・ノ−ド1b〜1dのID設定
機能(2b〜2d)は、S(シリアル)/P(パラレ
ル)変換&送受信4により受信され「開始」条件の後の
最初の7ビットの値:スレーブ・アドレス(宛先デ−
タ)8を摘出して、IDデ−タ7と比較する(比較
5)。比較5の比較開始条件には、I2Cバスの転送開
始条件(S)を基に、S/P変換&送受信4が生成した
タイミング信号を使用する。
The ID setting function (2b to 2d) of each slave node 1b to 1d is performed by the S (serial) / P (parallel) conversion & transmission / reception 4 and the first after the "start" condition. 7-bit value: slave address (destination data)
8) is extracted and compared with the ID data 7 (Comparative 5). As a comparison start condition of the comparison 5, a timing signal generated by the S / P conversion & transmission / reception 4 based on the transfer start condition (S) of the I 2 C bus is used.

【0039】比較結果が「一致」の場合は、マスタ・ノ
ード1aに対してアクノリッジ(ACK信号:Lアクテ
ィブ)を返送する。すなわち、マスタ・ノード1aが送
信したスレーブ・アドレス(宛先デ−タ)に合致するI
Dデ−タ7を有するスレ−ブノ−ド(スレーブ・アドレ
スがNo.1のときには、例えばスレ−ブ・ノ−ド1
b)がアクノレッジを返信する。スレーブ・アドレスN
o.iを送信したときにこのアクノレッジの返信がある
と、マスタ・ノード1aは、システム上にIDNo.i
が存在すると認識し、これを表わす情報をメモリ(レジ
スタ)に書込み、アクノレッジの返信が無いと、システ
ム上にID No.iが存在しないと認識し、これを表
わす情報をメモリに書込む。
If the comparison result is "match", an acknowledgment (ACK signal: L active) is returned to master node 1a. That is, an I-address matching the slave address (destination data) transmitted by the master node 1a.
Slave node having D data 7 (when slave address is No. 1, for example, slave node 1
b) returns an acknowledgment. Slave address N
o. i, when this acknowledge is returned, the master node 1a sends the ID No. to the system. i
Is recognized, and information indicating this is written to a memory (register). If no acknowledgment is returned, the ID No. is displayed on the system. It recognizes that i does not exist, and writes information representing this to the memory.

【0040】比較結果が「不一致」であったときには、
ID設定機能(2b)は、アクノレッジを返信せず、受
信したスレーブ・アドレス(宛先デ−タ)を、メモリ
(レジスタ)に書込んで保持する(不一致ID保持
6)。
When the comparison result is "mismatch",
The ID setting function (2b) does not return an acknowledgment, but writes the received slave address (destination data) in a memory (register) and holds it (mismatch ID holding 6).

【0041】以上が終ると、例えば、マスタ・ノ−ド1
aには、システム上にID No.1(ノ−ド1b),
No.2(ノ−ド1c)およびNo.3(ノ−ド1d)
があるが、ID No.4〜7(ノ−ド1e〜1h)は
無いことを表わす情報がある。しかし、この段階では、
接続ポ−トNo.1〜7とID No.1〜3との対応
付けは不明である。
When the above is completed, for example, the master node 1
a has ID No. on the system. 1 (node 1b),
No. 2 (node 1c) and No. 2 3 (node 1d)
ID No. There is information indicating that there are no 4 to 7 (nodes 1e to 1h). However, at this stage,
Connection port No. 1 to 7 and ID Nos. The association with 1 to 3 is unknown.

【0042】上述の処理を終えるとマスタ・ノ−ド1a
のID制御回路2aは、今度は接続ポ−トNo.1〜7
を順次に個別にセレクトして、不一致ID保持6の保持
デ−タの転送を、I2Cバスを介して要求する。各接続
ポ−トに接続されたスレ−ブ・ノ−ド(1b〜1d)の
ID設定機能2b〜2dのS/P変換&送受信4は、不
一致ID保持6の保持デ−タ群をマスタ・ノ−ド1aの
ID制御回路2aに転送する。マスタ・ノ−ド1aのI
D制御回路2aは、転送された保持デ−タ群を、接続ポ
−ト対応でレジスタにセ−ブし、各接続ポ−ト宛ての保
持デ−タ群の中に存在しない宛先デ−タを摘出して、そ
れを接続ポ−トに接続されたスレ−ブ・ノ−ドのIDと
判定する。例えば、接続ポ−トNo.1宛ての保持デ−
タ群が、No.2〜No.7であると、接続ポ−トN
o.1に接続されているスレ−ブ・ノ−ド1bのIDデ
−タは、No.1である、との情報をレジスタに設定
し、接続ポ−トNo.2宛ての保持デ−タ群が、No.
1,No.3〜No.7であると、接続ポ−トNo.2
に接続されているスレ−ブ・ノ−ド1cのIDデ−タ
は、No.2である、との情報をレジスタに設定し、か
つ、接続ポ−トNo.3宛ての保持デ−タ群が、No.
1,No.2,No.4〜No.7であると、接続ポ−
トNo.3に接続されているスレ−ブ・ノ−ド1dのI
Dデ−タは、No.3である、との情報をレジスタに設
定する。図1に示す例では、接続ポ−トNo.4〜N
o.7にはスレ−ブ・ノ−ドは接続されていないので、
それらの接続ポ−トをセレクトしたときには、デ−タの
転送(返信)は無く、接続ポ−トNo.4〜No.7は
空き、との情報をレジスタに設定する。
When the above processing is completed, the master node 1a
This time, the ID control circuit 2a of the connection port No. 1-7
Are sequentially selected individually, and the transfer of the held data of the mismatched ID holding 6 is requested via the I 2 C bus. The S / P conversion and transmission / reception 4 of the ID setting function 2b-2d of the slave node (1b-1d) connected to each connection port masters the held data group of the mismatched ID holding 6.・ Transfer to the ID control circuit 2a of the node 1a. I of the master node 1a
The D control circuit 2a saves the transferred held data group in a register corresponding to the connection port, and stores destination data that does not exist in the held data group addressed to each connection port. Is extracted and determined as the ID of the slave node connected to the connection port. For example, connection port No. Retention data addressed to 1
Group is no. 2-No. If it is 7, the connection port N
o. The ID data of the slave node 1b connected to No. 1 is No. 1. 1 is set in the register, and the connection port No. No. 2 is stored data group.
1, No. 3-No. 7, the connection port No. 2
The ID data of the slave node 1c connected to the 2 is set in the register, and the connection port No. The retained data group addressed to No. 3 is No. 3.
1, No. 2, No. 4-No. If it is 7, the connection port
No. I of the slave node 1d connected to
D data is No. 3 is set in a register. In the example shown in FIG. 4-N
o. 7 has no slave node connected,
When these connection ports are selected, there is no data transfer (reply), and the connection port No. 4-No. Numeral 7 sets information indicating that it is empty in a register.

【0043】接続ポ−トNo.1〜No.7に接続する
スレ−ブ・ノ−ド1b〜1hにはそれぞれその順にID
No.1〜No.7を割り当てるものとするシステム
設計の場合には、マスタ・ノ−ド1aのID制御回路2
aは、そのような対応になっていないと、スレ−ブ・ノ
−ドのIDエラ−と、エラ−ノ−ド(接続ポ−ト)をシ
ステム外部に出力するものとする。外部からシステムへ
の、IDチェックコマンドに応答した上述のIDチェッ
クの場合には、得られた接続ポ−ト対ノ−ドIDの対応
情報をシステム外部に出力する。
The connection port No. 1 to No. 7 are connected to the slave nodes 1b to 1h, respectively.
No. 1 to No. 7, the ID control circuit 2 of the master node 1a is used.
If a does not correspond to this, it is assumed that the slave node outputs a slave node ID error and an error node (connection port) to the outside of the system. In the case of the above-described ID check in response to the ID check command from the outside to the system, the obtained connection port-node ID correspondence information is output to the outside of the system.

【0044】−第2実施例− 図3の(b)に、ID設定機能2bの第2実施例を示
す。この実施例では、比較5が不一致と判定したとき、
ID発生3が、受信した宛先デ−タが示す値に1を加算
した和を表わすデ−タを新たなIDデ−タとして算出
し、これを出力する。すなわちIDデ−タを変更する。
その他の構成および機能は、上述の第1実施例と同様で
ある。
Second Embodiment FIG. 3B shows a second embodiment of the ID setting function 2b. In this embodiment, when the comparison 5 determines that they do not match,
The ID generator 3 calculates data representing the sum of the value indicated by the received destination data and 1 as new ID data, and outputs this. That is, the ID data is changed.
Other configurations and functions are the same as those in the first embodiment.

【0045】この第2実施例のID設定機能2bをスレ
−ブ・ノ−ドのすべてに備えるときには、システムの初
期化時,システム内でID設定コマンドが発生したとき
又はシステム外部からID設定コマンドが与えられたと
きに、マスタ・ノ−ド1aが、まず、接続ポ−トNo.
1のみをセレクト(指定)して、それに、ID No.
1を表わす宛先デ−タを送信する(ID正誤確認送
信)。接続ポ−トNo.1に接続されたスレ−ブ・ノ−
ド1bのID設定機能2bのID発生3が出力するID
デ−タ7が、ID No.1であると、S/P変換&送
受信4が、アクノレッジをマスタ・ノ−ド1aに返信
し、マスタ・ノ−ド1aはこれを受信すると、接続ポ−
トNo.1に接続されたスレ−ブ・ノ−ド1bのIDが
正しくNo.1であることを、レジスタに書込む。そし
て、次の接続ポ−トNo.2のみの指定に切換える。し
かし、アクノレッジの返信がないと、このときには、ス
レ−ブ・ノ−ド1bのIDがID No.1でないので
比較5が不一致と検出しこれに応じてID発生3が、出
力IDデ−タ7を、ID No.(1+1)すなわちI
DNo.2に変更している。マスタ・ノ−ド1aは、I
D No.(1−1)を表わす宛先デ−タ、すなわち、
先にチェック送信したID No.1が表わす値より1
を減算した値を表わすID No.0(を表わす宛先デ
−タ)を、接続ポ−トNo.1に送信する(ID訂正送
信すなわちID設定送信)。この場合、スレ−ブ・ノ−
ド1bのIDデ−タ7が、ID No.2になっている
ので、ID設定機能2bの比較5が不一致と検出し、I
D発生3が、IDをNo.(0+1)すなわちNo.1
に変更し、IDデ−タ7をこの変更したものに切換える
(正しいIDの設定完了)。
When the ID setting function 2b of the second embodiment is provided for all the slave nodes, the ID setting command is issued when the system is initialized, when an ID setting command is generated in the system, or when an ID setting command is issued from outside the system. When the master node 1a receives the connection port No.
1 is selected (designated), and ID No.
1 is transmitted (ID correct / wrong confirmation transmission). Connection port No. Slave no connected to 1
ID output by ID generator 3 of ID setting function 2b of ID 1b
Data 7 is the ID No. If it is 1, the S / P conversion & transmission / reception 4 returns an acknowledgment to the master node 1a, and when the master node 1a receives this, the connection port
No. The ID of the slave node 1b connected to No. 1 is correct. Write 1 to the register. Then, the next connection port No. Switch to the designation of only 2. However, if there is no reply of the acknowledgment, the ID of the slave node 1b becomes ID No. at this time. Since it is not 1, the comparison 5 detects a mismatch, and in response to this, the ID generator 3 outputs the output ID data 7 to the ID No. (1 + 1) or I
DNo. Changed to 2. The master node 1a has I
D No. Destination data representing (1-1), that is,
The ID No. previously checked and transmitted. 1 from the value represented by 1
No. representing the value obtained by subtracting 0 (destination data representing) is set to the connection port No. 1 (ID correction transmission, that is, ID setting transmission). In this case, slave no
ID data 7 of ID 1b is the ID No. 2, the comparison 5 of the ID setting function 2b detects a mismatch, and
D generation 3 sets the ID to No. (0 + 1), that is, No. 1
And the ID data 7 is switched to the changed one (setting of the correct ID is completed).

【0046】次に、接続ポ−トNo.2のみをセレクト
(指定)して、それに、ID No.2を表わす宛先デ
−タを送信する(ID正誤確認送信)。接続ポ−トN
o.2に接続されたスレ−ブ・ノ−ド1cのID設定機
能のID発生3が出力するIDデ−タ7が、ID N
o.2であると、S/P変換&送受信4が、アクノレッ
ジをマスタ・ノ−ド1aに返信し、マスタ・ノ−ド1a
はこれを受信すると、接続ポ−トNo.2に接続された
スレ−ブ・ノ−ド1cのIDが正しくNo.2であるこ
とを、レジスタに書込む。そして、接続ポ−トNo.3
のみの指定に切換える。しかし、アクノレッジの返信が
ないと、このときには、スレ−ブ・ノ−ド1cのIDが
ID No.2でないので比較5が不一致と検出しこれ
に応じてID発生3が、出力IDデ−タ7を、ID N
o.(2+1)すなわちID No.3に変更してい
る。マスタ・ノ−ド1aは、ID No.(2−1)を
表わす宛先デ−タ、すなわち、先にチェック送信したI
D No.2が表わす値より1を減算した値を表わすI
D No.1(を表わす宛先デ−タ)を、接続ポ−トN
o.2に送信する(ID訂正送信すなわちID設定送
信)。この場合、スレ−ブ・ノ−ド1cのIDデ−タ7
が、ID No.3になっているので、ID設定機能2
bの比較5が不一致と検出し、ID発生3が、IDをN
o.(1+1)すなわちNo.2に変更し、IDデ−タ
7をこの変更したものに切換える(正しいIDの設定完
了)。
Next, the connection port No. 2 is selected (designated), and ID No. 2 is transmitted (ID correct / wrong confirmation transmission). Connection port N
o. The ID data 7 output by the ID generator 3 of the ID setting function of the slave node 1c connected to the
o. If it is 2, the S / P conversion & transmission / reception 4 returns an acknowledgment to the master node 1a, and the master node 1a
Upon receiving this, the connection port No. If the ID of the slave node 1c connected to No. 2 is correctly No. 2 is written to the register. The connection port No. Three
Switch to the specification only. However, if there is no reply of the acknowledgment, the ID of the slave node 1c becomes ID No. at this time. Since it is not 2, the comparison 5 detects a mismatch, and accordingly, the ID generator 3 outputs the output ID data 7 to the IDN.
o. (2 + 1), that is, ID No. Changed to 3. The master node 1a has ID No. Destination data representing (2-1), that is, the I
D No. I representing a value obtained by subtracting 1 from the value represented by 2
D No. 1 (destination data representing) to the connection port N
o. 2 (ID correction transmission, that is, ID setting transmission). In this case, the slave node 1c ID data 7
Is the ID No. ID setting function 2
b, the comparison 5 detects a mismatch, and the ID generation 3 sets the ID to N.
o. (1 + 1), that is, No. 2 and switch the ID data 7 to the changed one (the setting of the correct ID is completed).

【0047】以上に説明したID正誤確認送信とID設
定送信を、以下の接続ポ−トNo.3〜No.7に対し
て個別に、同様に実行する。
The ID correct / incorrect transmission and the ID setting transmission described above are performed by the following connection port Nos. 3-No. 7 is performed individually and similarly.

【0048】−第3実施例− 図4の(a)に、ID設定機能2bの第3実施例を示
す。この実施例では、ID発生3が出力するIDデ−タ
7が、受信した宛先デ−タと一致しないとき、比較5の
「不一致」の検出に応答して、演算&ラッチ10が、そ
のとき出力しているIDデ−タ7と受信した宛先デ−タ
との組合せ演算を行なって、得たデ−タを出力ラッチに
保持してIDデ−タ7とする。例えば、直前のIDデ−
タ7を「1101001」、受信した宛先デ−タを「1110100」
とすると、演算を論理積としている場合には、IDデ−
タ7が「1100000」となる。演算を論理和とすると「111
1101」となり、演算を排他的論理和にしている場合は
「0011101」となる。いずれの演算を設定しても、ID
発生3が出力するIDデ−タとは異なるデ−タに、ID
デ−タ7が更新される。
Third Embodiment FIG. 4A shows a third embodiment of the ID setting function 2b. In this embodiment, when the ID data 7 output from the ID generator 3 does not match the received destination data, in response to the detection of "mismatch" in the comparison 5, the operation & latch 10 A combination operation of the output ID data 7 and the received destination data is performed, and the obtained data is held in an output latch to be used as ID data 7. For example, the last ID data
Data 7 is "1101001" and the received destination data is "1110100"
If the operation is AND, the ID data
Data 7 becomes "1100000". If the operation is a logical sum, "111
1101 ”and“ 0011101 ”when the operation is exclusive OR. No matter which operation is set, ID
ID data that is different from the ID data output by generation 3
Data 7 is updated.

【0049】−第4実施例− 図4の(b)に、ID設定機能2bの第3実施例を示
す。この実施例は、比較5が不一致を検知したときに
は、これを示すIDエラ−信号を外部設定回路11に出
力する。外部設定回路11はこれをオペレ−タ又は外部
システムに報知する。外部設定回路11を介してオペレ
−タ又は外部システムから変更入力があるとID発生3
は、IDデ−タ7を、変更入力によって定まるものに変
更する。なお、第4実施例のその他の構成および機能
は、第1実施例と同様である。
Fourth Embodiment FIG. 4B shows a third embodiment of the ID setting function 2b. In this embodiment, when the comparison 5 detects a mismatch, an ID error signal indicating this is output to the external setting circuit 11. The external setting circuit 11 notifies this to the operator or an external system. When a change is input from an operator or an external system via the external setting circuit 11, an ID is generated.
Changes the ID data 7 to the one determined by the change input. Other configurations and functions of the fourth embodiment are the same as those of the first embodiment.

【0050】これによって、あらゆる値の設定がマスタ
・ノードの制御を介さずに外部から可能となり、より柔
軟なID設定を行なうことが可能となる。
As a result, any value can be set from outside without the control of the master node, and more flexible ID setting can be performed.

【0051】以上の構成により、ID発生3に予め設定
した任意の設定値に対して、制御マスタ・ノード1aか
ら転送された宛先デ−タと不一致を起こした場合は、柔
軟にその値を変更することで、スレーブ・ノードの新た
なID設定が可能となる。
According to the above configuration, when an arbitrary value set in advance to the ID generation 3 does not match the destination data transferred from the control master node 1a, the value is flexibly changed. By doing so, it becomes possible to set a new ID of the slave node.

【0052】これまでの例に挙げた構成では、I2Cバ
スを有する機器であればその適用範囲、および実施形態
に制限を設けない。
In the configurations described in the above examples, there is no limitation on the applicable range and the embodiment as long as the device has an I 2 C bus.

【図面の簡単な説明】[Brief description of the drawings]

【図1】 本発明のID発生装置を組込んだ複数のスレ
−ブ・ノ−ドとマスタ・ノ−ドとの組合せシステムの概
要を示すブロック図である。
FIG. 1 is a block diagram showing an outline of a combination system of a plurality of slave nodes and a master node incorporating an ID generation device of the present invention.

【図2】 図1に示すマスタ・ノ−ド1aがスレ−ブ・
ノ−ド1b〜1cに送信するデ−タフレ−ムのフォ−マ
ットを示すブロック図である。
FIG. 2 shows a master node 1a shown in FIG.
It is a block diagram showing the format of the data frame transmitted to nodes 1b-1c.

【図3】 (a)および(b)は、本発明の第1および
第2実施例のID発生装置2bの機能構成を示すブロッ
ク図である。
FIGS. 3A and 3B are block diagrams showing a functional configuration of an ID generation device 2b according to the first and second embodiments of the present invention.

【図4】 (a)および(b)は、本発明の第3および
第4実施例のID発生装置2bの機能構成を示すブロッ
ク図である。
FIGS. 4A and 4B are block diagrams showing a functional configuration of an ID generation device 2b according to third and fourth embodiments of the present invention.

【符号の説明】[Explanation of symbols]

SDA:シリアル・デ−タ・ライン SCL:クロック・パルス・ライン SDA: Serial data line SCL: Clock pulse line

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】IDデ−タを出力する手段,デ−タメモ
リ、および、通信ラインから受信した宛先デ−タが前記
IDデ−タと合致しないと、該宛先デ−タをデ−タメモ
リに書込み保持する手段、を備えるID発生装置。
An ID data output means, a data memory, and destination data received from a communication line, if the destination data does not match the ID data, store the destination data in the data memory. An ID generation device comprising: a means for writing and holding.
【請求項2】受信した宛先デ−タが前記IDデ−タと合
致しなかったときに、前記出力手段は、ID発生装置外
から与えられる入力に応じてIDデ−タを更新する、請
求項1記載のID発生装置。
2. When the received destination data does not match the ID data, the output means updates the ID data in accordance with an input provided from outside the ID generator. Item 1. The ID generator according to Item 1.
【請求項3】IDデ−タを出力し、通信ラインから受信
した宛先デ−タが前記IDデ−タと合致しないと、受信
した宛先デ−タとは異なるIDデ−タに出力IDデ−タ
を変更するID発生手段、を備えるID発生装置。
3. If the destination data received from the communication line does not match the ID data, the output ID data is output to an ID data different from the received destination data. An ID generating device for changing ID data.
【請求項4】IDデ−タを出力する手段、および、通信
ラインから受信した宛先デ−タが前記IDデ−タと合致
しないと、前記IDデ−タと受信した宛先デ−タとの演
算から更新IDデ−タを生成してこれを出力IDデ−タ
とする演算手段、を備えるID発生装置。
4. Means for outputting ID data, and when destination data received from a communication line does not match the ID data, the ID data and the received destination data are output. An ID generating device comprising: an arithmetic unit for generating update ID data from an operation and using the generated update ID data as output ID data.
JP31096699A 1999-11-01 1999-11-01 Id generating device Pending JP2001134525A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31096699A JP2001134525A (en) 1999-11-01 1999-11-01 Id generating device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31096699A JP2001134525A (en) 1999-11-01 1999-11-01 Id generating device

Publications (1)

Publication Number Publication Date
JP2001134525A true JP2001134525A (en) 2001-05-18

Family

ID=18011557

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31096699A Pending JP2001134525A (en) 1999-11-01 1999-11-01 Id generating device

Country Status (1)

Country Link
JP (1) JP2001134525A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1701271A1 (en) 2005-03-07 2006-09-13 Fujitsu Limited Electronic apparatus system with master node and slave node
JP2016091512A (en) * 2014-11-11 2016-05-23 ルネサスエレクトロニクス株式会社 Connection relationship detection system, information processing apparatus, and connection relationship detection method
JP2016095629A (en) * 2014-11-13 2016-05-26 ルネサスエレクトロニクス株式会社 Serial communication system, communication control device, and electronic device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1701271A1 (en) 2005-03-07 2006-09-13 Fujitsu Limited Electronic apparatus system with master node and slave node
JP2016091512A (en) * 2014-11-11 2016-05-23 ルネサスエレクトロニクス株式会社 Connection relationship detection system, information processing apparatus, and connection relationship detection method
JP2016095629A (en) * 2014-11-13 2016-05-26 ルネサスエレクトロニクス株式会社 Serial communication system, communication control device, and electronic device

Similar Documents

Publication Publication Date Title
US5444847A (en) Data transfer method for transferring a data frame among a plurality of devices connected to a serial data bus
KR100290597B1 (en) Apparatus and method of implementing a usb endpoint pipe with double buffering support
EP0258872B1 (en) Serial data transfer system
WO2019136595A1 (en) Method for handling i2c bus deadlock, electronic device, and communication system
WO2017044301A1 (en) Input/output signal bridging and virtualization in a multi-node network
JPH09179810A (en) Unit selecting device
CN109154925A (en) Communication equipment, communication means, program and communication system
JP2001134525A (en) Id generating device
JP2002318783A (en) Multi-protocol serial communication device and microcomputer
US6978391B2 (en) Asynchronous bus interface circuit, method of controlling the circuit, microcomputer, and device controlling method
US5481753A (en) I/O device having identification register and data register where identification register indicates output from the data register to be an identifier or normal data
KR101082110B1 (en) Timing controller, apparatus for data sending and receving using timing controller
US5617433A (en) Serial data transfer apparatus
JP2002189697A (en) Data transfer system and data transfer method
CN113474762A (en) Transmission of link data over an I2C bus
JP4458873B2 (en) Serial data transfer method and apparatus
US8427955B2 (en) Method and apparatus for transferring data
KR100295683B1 (en) General call acknowledge apparatus and method for inter-integrated circuit
JP7337021B2 (en) A master device that controls a slave device connected to an industrial network and a communication module provided in the master device
JPH10207834A (en) Serial input/output circuit
US20220188254A1 (en) Methods for identifying target slave address for serial communication interface
JP2007226737A (en) Serial communication device and paper transport device and image formation device
CN111274188A (en) Multidata I2C bus
JP2000003312A (en) Synchronous serial communication system and control method therefor
JPH11232243A (en) Communication control equipment, its method and communication control system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041124

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070424

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070507

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070628

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080417

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080903