JP2014134866A - Communication system - Google Patents
Communication system Download PDFInfo
- Publication number
- JP2014134866A JP2014134866A JP2013001116A JP2013001116A JP2014134866A JP 2014134866 A JP2014134866 A JP 2014134866A JP 2013001116 A JP2013001116 A JP 2013001116A JP 2013001116 A JP2013001116 A JP 2013001116A JP 2014134866 A JP2014134866 A JP 2014134866A
- Authority
- JP
- Japan
- Prior art keywords
- code
- msb
- input
- slave device
- stage
- 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
Links
Images
Abstract
Description
本発明は、ホスト装置に対して2以上のスレーブ装置がシリーズに接続され、ホスト装置から送信されたシリアル又はパラレルのデータ信号を該スレーブ装置に入力して負荷を制御する同期式又は非同期式の通信システムに関する。 In the present invention, two or more slave devices are connected in series to a host device, and a serial or parallel data signal transmitted from the host device is input to the slave device to control a load. The present invention relates to a communication system.
1個のマスタ装置に対して複数のスレーブ装置をシリーズ接続してシングルマスタ/マルチスレーブ方式で構成した通信システムでは、SPI(Serial Peripheral Interface)等による同期式においては、複数のスレーブ装置を、連続するシフトレジスタにみたてて制御する方式が一般的であった。 In a communication system in which a plurality of slave devices are connected in series to one master device and configured in a single master / multi-slave method, a plurality of slave devices are continuously connected in a synchronous system such as SPI (Serial Peripheral Interface). In general, a shift register is used for control.
一方、非同期式の通信システムでは、個々のスレーブ装置に予め固有のIDコードをセットしておくことにより、マスタ装置によって、個々のスレーブ装置を独立して制御することが可能である。 On the other hand, in an asynchronous communication system, by setting a unique ID code in each slave device in advance, each slave device can be controlled independently by the master device.
図10に、従来の非同期式通信システムで使用される複数のスレーブ装置500_1,500_2,500_3の構成を示す。マスタ装置(図示せず)にパラレル接続されるスレーブ装置500_1,500_2,500_3は同じ構成であり、非同期のシリアルデータ信号RxDを受信してシリアル/パラレル変換その他を処理するUART(Universal Asynchronous Receiver Transmitter)510、受信したデータ信号をデコードするデコーダ520、入力されデコーダされたIDコードを比較識別するためのIDコードが設定されたIDレジスタ530、当該シリアル通信装置が制御すべき負荷を制御するためのデータが格納される汎用レジスタ540を備えている。
FIG. 10 shows a configuration of a plurality of slave devices 500_1, 500_2, and 500_3 used in the conventional asynchronous communication system. Slave devices 500_1, 500_2, and 500_3 connected in parallel to a master device (not shown) have the same configuration, and receive a serial data signal RxD that is asynchronous and process serial / parallel conversion and the like, and thus a UART (Universal Asynchronous Receiver Transmitter). 510, a
図10の通信システムでは、各スレーブ装置500_1,500_2,500_3のIDレジスタ530に、互いに異なるIDコードを設定しておき、マスタ装置から入力するシリアルデータ信号RxDに含まれていたIDコードが、いずれかのスレーブ装置のIDレジスタ530に記憶されていたIDコードと一致すれば、当該シリアルデータ信号RxDに含まれていた制御データが当該スレーブ装置の汎用レジスタ540に格納され、この汎用レジスタ540のデータに応じて、当該スレーブ装置の負荷としてのLED等のオン/オフ等が制御される。
In the communication system of FIG. 10, different ID codes are set in the
このように、それぞれのスレーブ装置に異なるIDレジスタを事前に設定しておいて、その後にIDコードと制御データをそのシリーズ接続のスレーブ装置に送信して特定のスレーブ装置を選択し制御するものとして、特許文献1,2に記載がある。
In this way, different ID registers are set in advance for each slave device, and then an ID code and control data are transmitted to the slave device connected in the series to select and control a specific slave device.
なお、図10のIDレジスタ530に代えて、不揮発メモリが使用されることもある。また、図11に示すように、“0”としてGND電位が、“1”としてVDDがそれぞれ設定される、例えば4ビットのID設定端子550を備えたシリアル通信装置500’_1,500’_2,500’_3を設け、このID設定端子550によってIDコードが設定される場合もある。
Note that a nonvolatile memory may be used instead of the
しかしながら、図10、図11に示した通信システムでは、それぞれのスレーブ装置に互いに異なった固有のIDコードを事前に設定する必要がある。本発明の目的は、互いに異なった固有のIDコードをスレーブ装置に事前に設定しなくても、所望のスレーブ装置に対して所望の制御を行わせることができるようにした通信システムを提供することである。 However, in the communication system shown in FIG. 10 and FIG. 11, it is necessary to set different unique ID codes in advance to the respective slave devices. An object of the present invention is to provide a communication system that allows a desired slave device to perform a desired control without setting different unique ID codes in the slave device in advance. It is.
上記目的を達成するために、請求項1にかかる発明は、ホスト装置に対して複数のスレーブ装置がシリーズに接続された通信システムであって、前記各スレーブ装置は、前記ホスト装置又は前段のスレーブ装置から入力データ信号を入力し該入力データ信号に含まれている入力IDコードのみを演算して新たな入力IDコードを有する新たな入力データ信号として後段のスレーブ装置に送るID演算部と、内部IDコードを設定するIDレジスタと、前記ホスト装置又は前段のスレーブ装置からの入力データ信号に含まれている前記入力IDコードと前記IDレジスタに設定された内部IDコードとの一致を検出する比較器と、該比較器で前記一致が検出されると前記入力データ信号に含まれている制御データを取り込んで格納する汎用レジスタとを備え、前記演算の内容と前記内部IDコードは、各スレーブ装置で共通であることを特徴とする。
請求項2にかかる発明は、請求項1に記載の通信システムにおいて、前記ID演算部の前記演算は、前記入力IDコードの値を1だけ減算する演算であることを特徴とする。
請求項3にかかる発明は、請求項2に記載の通信システムにおいて、前記各スレーブ装置は、前記IDレジスタの内部IDコードに特定値が設定され、前記マスタ装置は、1段目のスレーブ装置から選択すべき段数目のスレーブ装置まで1ずつ減算したときに前記特定値の内部IDコードと一致するような入力IDコードを含む入力データ信号を、1段目のスレーブ装置に入力させる、ことを特徴とする。
請求項4にかかる発明は、請求項2に記載の通信システムにおいて、前記各スレーブ装置は、前記IDレジスタに前記内部IDコードとして、MSB=“0”,MSB−1=“0”を含む第1のIDコードと、MSB=“1”,MSB−1=“0”を含む第2のIDコードが設定され、前記入力IDコードが前記第1のIDコードと一致し、又は前記第2のIDコードのMSB,MSB−1と一致するとき、前記比較器が一致を検出し、前記マスタ装置は、1段目のスレーブ装置から選択すべき段数目のスレーブ装置まで1ずつ減算したとき前記第1のIDコードの内部IDコードになるような入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させ、又は、前記MSB=“1”、MSB−1=“0”を含む入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させる、ことを特徴とする。
請求項5にかかる発明は、請求項2に記載の通信システムにおいて、前記各スレーブ装置は、前記IDレジスタに前記内部IDコードとして、MSB=“1”,MSB−1=“0”を含む第1のIDコードと、MSB=“0”,MSB−1=“0”を含む第2のIDコードが設定され、前記入力IDコードが前記第1のIDコードと一致し、又は前記第2のIDコードのMSB,MSB−1と一致するとき、前記比較器が一致を検出し、前記マスタ装置は、1段目のスレーブ装置から選択すべき段数目のスレーブ装置まで1ずつ減算したとき前記第1のIDコードの内部IDコードになるような入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させ、又は、前記MSB=“0”、MSB−1=“0”を含む入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させる、ことを特徴とする。
請求項6にかかる発明は、請求項2に記載の通信システムにおいて、前記各スレーブ装置は、前記IDレジスタに前記内部IDコードとして、MSB=“1”,MSB−1=“1”を含む第1のIDコードと、MSB=“0”,MSB−1=“1”を含む第2のIDコードが設定され、前記入力IDコードが前記第1のIDコードと一致し、又は前記第2のIDコードのMSB,MSB−1と一致するとき、前記比較器が一致を検出し、前記マスタ装置は、1段目のスレーブ装置から選択すべき段数目のスレーブ装置まで1ずつ減算したとき前記第1のIDコードの内部IDコードになるような入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させ、又は、前記MSB=“0”、MSB−1=“1”を含む入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させる、ことを特徴とする。
請求項7にかかる発明は、請求項2に記載の通信システムにおいて、前記各スレーブ装置は、前記IDレジスタに前記内部IDコードとして、MSB=“0”,MSB−1=“1”を含む第1のIDコードと、MSB=“1”,MSB−1=“1”を含む第2のIDコードが設定され、前記入力IDコードが前記第1のIDコードと一致し、又は前記第2のIDコードのMSB,MSB−1と一致するとき、前記比較器が一致を検出し、前記マスタ装置は、1段目のスレーブ装置から選択すべき段数目のスレーブ装置まで1ずつ減算したとき前記第1のIDコードの内部IDコードになるような入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させ、又は、前記MSB=“1”、MSB−1=“1”を含む入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させる、ことを特徴とする。
請求項8にかかる発明は、請求項1に記載の通信システムにおいて、前記ID演算部の前記演算は、前記入力IDコードの値を1だけ加算する演算であることを特徴とする。
請求項9にかかる発明は、請求項5に記載の通信システムにおいて、前記各スレーブ装置は、前記IDレジスタの内部IDコードに特定値が設定され、前記マスタ装置は、1段目のスレーブ装置から選択すべき段数目のスレーブ装置まで1ずつ加算したときに前記特定値の内部IDコードと一致するような入力IDコードを含む入力データ信号を、1段目のスレーブ装置に入力させる、ことを特徴とする。
請求項10にかかる発明は、請求項8に記載の通信システムにおいて、前記各スレーブ装置は、前記IDレジスタに前記内部IDコードとして、MSB=“0”,MSB−1=“0”を含む第1のIDコードと、MSB=“1”,MSB−1=“0”を含む第2のIDコードが設定され、前記入力IDコードが前記第1のIDコードと一致し、又は前記第2のIDコードのMSB,MSB−1と一致するとき、前記比較器が一致を検出し、前記マスタ装置は、1段目のスレーブ装置から選択すべき段数目のスレーブ装置まで1ずつ減算したとき前記第1のIDコードの内部IDコードになるような入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させ、又は、前記MSB=“1”、MSB−1=“0”を含む入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させる、ことを特徴とする。
請求項11にかかる発明は、請求項8に記載の通信システムにおいて、前記各スレーブ装置は、前記IDレジスタに前記内部IDコードとして、MSB=“1”,MSB−1=“0”を含む第1のIDコードと、MSB=“0”,MSB−1=“0”を含む第2のIDコードが設定され、前記入力IDコードが前記第1のIDコードと一致し、又は前記第2のIDコードのMSB,MSB−1と一致するとき、前記比較器が一致を検出し、前記マスタ装置は、1段目のスレーブ装置から選択すべき段数目のスレーブ装置まで1ずつ減算したとき前記第1のIDコードの内部IDコードになるような入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させ、又は、前記MSB=“0”、MSB−1=“0”を含む入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させる、ことを特徴とする。
請求項12にかかる発明は、請求項8に記載の通信システムにおいて、前記各スレーブ装置は、前記IDレジスタに前記内部IDコードとして、MSB=“1”,MSB−1=“1”を含む第1のIDコードと、MSB=“0”,MSB−1=“1”を含む第2のIDコードが設定され、前記入力IDコードが前記第1のIDコードと一致し、又は前記第2のIDコードのMSB,MSB−1と一致するとき、前記比較器が一致を検出し、前記マスタ装置は、1段目のスレーブ装置から選択すべき段数目のスレーブ装置まで1ずつ減算したとき前記第1のIDコードの内部IDコードになるような入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させ、又は、前記MSB=“0”、MSB−1=“1”を含む入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させる、ことを特徴とする。
請求項13にかかる発明は、請求項8に記載の通信システムにおいて、前記各スレーブ装置は、前記IDレジスタに前記内部IDコードとして、MSB=“0”,MSB−1=“1”を含む第1のIDコードと、MSB=“1”,MSB−1=“1”を含む第2のIDコードが設定され、前記入力IDコードが前記第1のIDコードと一致し、又は前記第2のIDコードのMSB,MSB−1と一致するとき、前記比較器が一致を検出し、前記マスタ装置は、1段目のスレーブ装置から選択すべき段数目のスレーブ装置まで1ずつ減算したとき前記第1のIDコードの内部IDコードになるような入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させ、又は、前記MSB=“1”、MSB−1=“1”を含む入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させる、ことを特徴とする。
In order to achieve the above object, the invention according to
The invention according to
According to a third aspect of the present invention, in the communication system according to the second aspect, in each slave device, a specific value is set in an internal ID code of the ID register, and the master device starts from the first-stage slave device. An input data signal including an input ID code that matches the internal ID code of the specific value when subtracting one by one to the slave device of the number of stages to be selected is input to the slave device of the first stage. And
According to a fourth aspect of the present invention, in the communication system according to the second aspect, each slave device includes MSB = “0” and MSB−1 = “0” as the internal ID code in the ID register. 1 and a second ID code including MSB = “1” and MSB−1 = “0” are set, and the input ID code matches the first ID code, or the second ID code When the ID code matches MSB and MSB-1, the comparator detects a match, and the master device subtracts one by one from the first-stage slave device to the slave device of the number of stages to be selected. An input data signal having an input ID code that becomes an internal ID code of 1 ID code is input to the first-stage slave device, or an input including the MSB = "1" and MSB-1 = "0" ID code Is input to the first-stage slave device input data signal having, characterized in that.
The invention according to claim 5 is the communication system according to
The invention according to
The invention according to
The invention according to claim 8 is the communication system according to
According to a ninth aspect of the present invention, in the communication system according to the fifth aspect, each slave device has a specific value set in an internal ID code of the ID register, and the master device starts from the first-stage slave device. An input data signal including an input ID code that matches the internal ID code of the specific value when the slave devices at the number of stages to be selected are added one by one is input to the first stage slave device. And
According to a tenth aspect of the present invention, in the communication system according to the eighth aspect, each slave device includes MSB = “0” and MSB−1 = “0” as the internal ID code in the ID register. 1 and a second ID code including MSB = “1” and MSB−1 = “0” are set, and the input ID code matches the first ID code, or the second ID code When the ID code matches MSB and MSB-1, the comparator detects a match, and the master device subtracts one by one from the first-stage slave device to the slave device of the number of stages to be selected. An input data signal having an input ID code that becomes an internal ID code of 1 ID code is input to the first-stage slave device, or an input including the MSB = "1" and MSB-1 = "0" ID To input the input data signal with de to the first-stage slave device, characterized in that.
According to an eleventh aspect of the present invention, in the communication system according to the eighth aspect, each slave device includes MSB = “1” and MSB−1 = “0” as the internal ID code in the ID register. 1 and a second ID code including MSB = “0” and MSB−1 = “0” are set, and the input ID code matches the first ID code, or the second ID code When the ID code matches MSB and MSB-1, the comparator detects a match, and the master device subtracts one by one from the first-stage slave device to the slave device of the number of stages to be selected. An input data signal having an input ID code that becomes an internal ID code of 1 ID code is input to the first-stage slave device, or an input including the MSB = "0" and MSB-1 = "0" ID To input the input data signal with de to the first-stage slave device, characterized in that.
The invention according to claim 12 is the communication system according to claim 8, wherein each of the slave devices includes MSB = "1" and MSB-1 = "1" as the internal ID code in the ID register. 1 and a second ID code including MSB = “0” and MSB−1 = “1” are set, and the input ID code matches the first ID code, or the second ID code When the ID code matches MSB and MSB-1, the comparator detects a match, and the master device subtracts one by one from the first-stage slave device to the slave device of the number of stages to be selected. An input data signal having an input ID code that becomes an internal ID code of 1 ID code is input to the first-stage slave device, or an input including MSB = "0" and MSB-1 = "1" ID To input the input data signal with de to the first-stage slave device, characterized in that.
The invention according to claim 13 is the communication system according to claim 8, wherein each of the slave devices includes MSB = "0", MSB-1 = "1" as the internal ID code in the ID register. 1 and a second ID code including MSB = “1” and MSB−1 = “1” are set, and the input ID code matches the first ID code, or the second ID code When the ID code matches MSB and MSB-1, the comparator detects a match, and the master device subtracts one by one from the first-stage slave device to the slave device of the number of stages to be selected. An input data signal having an input ID code that becomes an internal ID code of 1 ID code is input to the first-stage slave device, or an input including the MSB = "1" and MSB-1 = "1" ID To input the input data signal with de to the first-stage slave device, characterized in that.
請求項1〜3、8、9にかかる発明によれば、個々のスレーブ装置に予め異なっ固有の内部IDコードを設定させる必要がなく、予め共通のIDコードを設定してくだけで、マスタ装置からの入力データ信号に含まれる入力IDコードに応じて特定の1個のスレーブ装置に対して所望の制御データを格納させることができる。つまり、マスタ装置から任意に特定のスレーブ装置を選択できる。また、請求項4〜7、10〜13にかかる発明によれば、請求項1〜3、8,9と同様に特定の1個のスレーブ装置に対して所望の制御データを格納させることができるばかりか、2以上のスレーブ装置に対して制御データを一斉送信することができる。 According to the first to third, eighth, and ninth aspects of the present invention, it is not necessary to set different internal ID codes in advance to individual slave devices, but only by setting a common ID code in advance. Desired control data can be stored in one specific slave device in accordance with the input ID code included in the input data signal. That is, a specific slave device can be arbitrarily selected from the master device. Moreover, according to the invention concerning Claims 4-7, 10-13, desired control data can be stored with respect to one specific slave apparatus similarly to Claims 1-3, 8, and 9. In addition, control data can be simultaneously transmitted to two or more slave devices.
<第1の実施例>
図1(a)に、本発明の第1の実施例の通信システムの構成を示す。100_1,100_2,・・・,100_n(n=256)は、1台のマスタ装置200によって互いに独立して制御されるスレーブ装置であり、マスタ装置200に対して1本の信号線を介してシリーズ接続されている。各スレーブ装置100_1,100_2,・・・,100_nは同じ構成である。
<First embodiment>
FIG. 1A shows the configuration of a communication system according to the first embodiment of the present invention. 100_1, 100_2,..., 100_n (n = 256) are slave devices controlled independently from each other by one
本実施例では、マスタ装置200から出力するシリアルデータ信号RxD1は、例えばLIN(Local Interconnect Network)で使用されるデータ構造とほぼ同様であり、図1(b)に示すように、新しいフレームの始まりを示す13〜16ビットの“0”が続くブレークフィールドF1、各スレーブ装置100_1,100_2,・・・,100_nがマスタ装置200と同期をとるための同期コード0x55(=01010101)を含むシンクフィールドF2、特定のスレーブ装置を選択するためのIDコード(請求項記載の入力IDコード)が設定されたIDフィールドF3、IDコードで特定される1個のスレーブ装置の負荷を制御するための制御データDATA1,DATA2が設定されたデータフィールドF4,F5からなる。フィールドF2〜F5は、それぞれ合計で10ビットであり、先頭のスタートビットが“0”、後端のストップビットが“1”で、その間に8ビットのIDコードやデータが含まれる。パリティビットは省略している。なお、コードやデータはLSBファーストで設定されている。
In this embodiment, the serial data signal RxD1 output from the
図2に、1段目のスレーブ装置100_1を代表してその内部構成を示す。101はブレーク検出回路であり、シリアルデータ信号RxD1を入力し、ブレークフィールドF1で“0”が11ビット以上継続すると、検出信号としてBreak=“1”を出力して、シリアルデータ信号RxD1のブレークフィールドF1が入力したことを示す。102はシンク(sync)検出回路であり、ブレーク検出回路101からBreak=“1”が出力した後に、その次に続くシンクフィールドF2を検出すると、検出信号としてSync=“1”を出力する。スレーブ装置100_1は、このシンクフィールドF2のクロック成分(0x55)を取り込むことによって、クロック発生回路103で生成されるクロックCKの同期化処理を行う。
FIG. 2 shows the internal configuration of the first-stage slave device 100_1 as a representative.
104は切換判定回路であり、シンク検出回路102からSync=“1”が出力すると、次に続くIDフィールドF3の期間(10ビット分)だけイネーブル信号をEN1=“1”にする。105はセレクタであり、切換判定回路104からイネーブル信号EN1=“1”が出力するとき減算器106の出力信号を選択し、EN1=“0”が出力するときスレーブ装置100_1に入力するシリアルデータ信号RxD1をFF回路113で1クロック分遅延した信号を選択して、それぞれ出力側に送信する。減算器106は、入力するシリアルデータ信号のIDフィールドF2のIDコードの値を1だけ減算して出力する。よって、セレクタ105からは、入力したシリアルデータ信号RxD1のうちのIDフィールドF2のIDコードが1だけ減算され他のフィールドF1,F3〜F5はそのままにした、1クロック遅延の新たなシリアルデータ信号RxD2が出力する。
ブレーク検出回路101、シンク検出回路102、切換判定回路104、セレクタ105、減算器106およびFF回路113は、請求項記載のID演算部を構成する。
The
107はシリアル/パラレル変換器であり、入力するシリアルデータ信号RxD1をパラレルデータ信号に変換する。108はIDコード(請求項記載の内部IDコード)として[0x00]が設定されているIDレジスタ、109は比較器である。比較器109は、シリアル/パラレル変換器107から出力するIDフィールドF2に含められたIDコードを、IDレジスタ108に設定したIDコード[0x00]と比較し、一致するときにイネーブル信号をEN2=“1”にし、不一致のときEN2=“0”にする。112はアドレスカウンタであり、比較器109でIDコードの一致が検出されてEN2=“1”が出力したとき、アドレス[0x00]を出力して、フィールドF4のデータDATA1を汎用レジスタ110に書き込ませ、その後に、アドレス[0x01]を出力して、フィールドF5のデータDATA2を汎用レジスタ111に書き込ませる。なお、クロック発生回路103で発生された処理用のクロックCKは各部に供給される。
次に、図3を参照して第1の実施例の通信システムの動作を説明する。第1の実施例では、すべてのスレーブ装置100_1〜100_nのIDレジスタ108のIDコードを[0x00]に設定しておく。以下では、マスタ装置200から、IDフィールドF3のIDコードが[0x05]に設定され、データフィールドF4にDATA1=[0xFF]、データフィールドF5にDATA2=[0xFF]が設定された、シリアルデータ信号RxD1が出力する場合について説明する。
Next, the operation of the communication system of the first embodiment will be described with reference to FIG. In the first embodiment, the ID codes of the ID registers 108 of all the slave devices 100_1 to 100_n are set to [0x00]. In the following, the serial data signal RxD1 in which the ID code of the ID field F3 is set to [0x05] from the
このシリアルデータ信号RxD1が1段目のスレーブ装置100_1に入力したときは、スレーブ装置100_1はIDレジスタ108のIDコードが[0x00]であるので、シリアルデータ信号RxD1のIDコード[0x05]と一致せず、比較器109からはEN2=“0”が出力し、アドレスカウンタ112、汎用レジスタ110,111は動作しない。また、減算器106からはIDフィールドF3のIDコードが1だけ減算された[0x04]が出力する。このIDコードは、切換判定回路104によって、IDフィールドF3の期間だけセレクタ105で選択される。よって、この1段目のスレーブ装置100_1からは、IDフィールドF3のIDコードが[0x04]に設定され、データフィールドF4にデータ[0xFF]、データフィールドF5にも[0xFF]が設定されたシリアルデータ信号RxD2が出力する。
When the serial data signal RxD1 is input to the first-stage slave device 100_1, since the ID code of the
以下、同様にして、2段目のスレーブ装置100_2から出力するシリアルデータ信号RxD3のIDコードは[0x03]、3段目のスレーブ装置100_3から出力するシリアルデータ信号RxD4のIDコードは[0x02]、4段目のスレーブ装置100_4から出力するシリアルデータ信号RxD5のIDコードは[0x01]、5段目のスレーブ装置100_5から出力するシリアルデータ信号RxD6のIDコードは[0x00]となる。 Similarly, the ID code of the serial data signal RxD3 output from the second-stage slave device 100_2 is [0x03], and the ID code of the serial data signal RxD4 output from the third-stage slave device 100_3 is [0x02]. The ID code of the serial data signal RxD5 output from the fourth-stage slave device 100_4 is [0x01], and the ID code of the serial data signal RxD6 output from the fifth-stage slave device 100_5 is [0x00].
そして、このシリアルデータ信号RxD6が6段目のスレーブ装置100_6に入力すると、そのIDコード[0x00]がIDレジスタ108のIDコードと一致するので、アドレスカウンタ112、汎用レジスタ110,111が動作し、その汎用レジスタ110(アドレスレス[0x00]にデータフィールドF4のDATA1=[0xFF]が、汎用レジスタ111(アドレスレス[0x01]にデータフィールドF5のDATA2=[0xFF]が、それぞれ格納される。
When the serial data signal RxD6 is input to the sixth-stage slave device 100_6, the ID code [0x00] matches the ID code of the
なお、7段目以降のスレーブ装置100_7〜100_nにもシリアルデータ信号は順次入力するが、そのIDコードは順次、[0xFF]→[0xFE]→・・・[0x06]と減算され、そのシリアルデータ信号のIDコードは[0x00]以外の値となるので、比較器109は一致検出できず、影響を与えない。
Although serial data signals are sequentially input to the slave devices 100_7 to 100_n in the seventh stage and thereafter, their ID codes are sequentially subtracted from [0xFF] → [0xFE] →. Since the ID code of the signal has a value other than [0x00], the
以上のように、本実施例では、n(=256)段のスレーブ装置100_1〜100_nのIDレジスタ108に共通のIDコード[0x00]を予め設定しておき、且つ、ホスト装置200から出力するシリアルデータ信号のフィールF3に[0x05]のIDコードを設定しておけば、6段数目のスレーブ装置100_6のみにフィールドF4,F5のデータを送ることができる。なお、ホスト装置200から出力するシリアルデータ信号のIDフィールドに[0x06]のIDコードを設定しておけば、7段数目のシリアル通信装置100_7のみにフィールドF4,F5のデータを送ることができる。
As described above, in this embodiment, a common ID code [0x00] is set in advance in the
また、IDレジスタ108に設定する共通のIDコードは[0x00]に限られるものではない。例えば、[0x02]のIDコードを共通に設定したときは、ホスト装置200から出力するシリアルデータ信号のフィールF3に例えば[0x05]のIDコードを設定しておけば、3段目のスレーブ装置100_3から出力するシリーズデータ信号RxD4のIDコードが[0x02]になるので、4段目のスレーブ装置100_4のみにフィールドF4,F5のデータを送ることができる。
Further, the common ID code set in the
つまり、本実施例では、各スレーブ装置100_1〜100_nに、IDレジスタ108の内部IDコードに特定値が設定されたとき、マスタ装置200が、1段目のスレーブ装置から選択すべき(フィールドF4,F5のデータを取り込ませるべき)段数目のスレーブ装置まで1ずつ減算したときに前記特定値の内部IDコードと一致するような入力IDコードを含む入力データ信号を、1段目のスレーブ装置100_1に入力させるようにしている。
That is, in this embodiment, when a specific value is set in the internal ID code of the
また、減算器106は+1加算器に代えることができる。この場合は、入力データ信号のIDフィールドF3のIDコードがスレーブ装置を通過するごとに+1されるので、本実施例と同様に、スレーブ装置のIDレジスタに特定のIDコードを設定しておけば、所定のスレーブ装置のみにフィールドF4,F5のデータを送ることができる。同様にして、減算器106は乗算器、除算器に置き換えることもできる。
Further, the
<第2の実施例>
本発明の第2の実施例では、64段のスレーブ装置100_1〜100_n(n=64)を使用する。図4に1段目のスレーブ装置100_1の詳細を示す。第2の実施例のスレーブ装置では、図2で説明したIDレジスタ108に代えて、IDレジスタ108Aを使用する。このIDレジスタ108Aには、1個のスレーブ装置を選択するためのMSB=“0”、MSB−1=“0”を含む第1のIDコードの他に、2以上のスレーブ装置を一度に選択するためのMSB=“1”、MSB−1=“0”を含む第2のIDコードを設定する。これにより、入力するフィールドF3のIDコードが、第1のIDコードと一致し、または第2のIDコードと一致するとき、比較器109の出力がEN2=“1”になる。
<Second embodiment>
In the second embodiment of the present invention, 64-stage slave devices 100_1 to 100_n (n = 64) are used. FIG. 4 shows details of the first-stage slave device 100_1. In the slave device of the second embodiment, an
MSB=“0”、MSB−1=“0”を含む第1のIDコードとしては、図5に示すように、上位ビットが(00)の領域、つまり[0x00](=0)〜[0x3F](=63)のうちのいずれかを設定する。また、MSB=“1”、MSB−1=“0”を含む第2のIDコードとしては、図5に示すように、上位ビットが(10)の領域、つまり[0x80](=128)〜[0xBF](=191)のいずれかを設定する。また、マスタ装置200から出力するシリアルデータ信号RxD1のフィールドF3に設定するIDコードとしては、図5に示す前記した上位ビットが(00)の領域又は(10)の領域のコードを設定する。
As the first ID code including MSB = “0” and MSB−1 = “0”, as shown in FIG. 5, the upper bit is an area of (00), that is, [0x00] (= 0) to [0x3F ] (= 63). Further, as the second ID code including MSB = “1” and MSB−1 = “0”, as shown in FIG. 5, the upper bit is an area of (10), that is, [0x80] (= 128) to One of [0xBF] (= 191) is set. Further, as the ID code set in the field F3 of the serial data signal RxD1 output from the
これにより、マスタ装置200から特定の1個のスレーブ装置を選択することに加えて、2以上のスレーブ装置を同時選択することもできる。以下では、スレーブ装置100_1〜100_n(n=64)のIDレジスタ108Aに第1のIDコードとして[0x00]を、第2のIDコードとして[0xBF]を、それぞれ設定した場合について説明する。
Thereby, in addition to selecting one specific slave device from the
このとき、マスタ装置200から出力するシリアルデータ信号RxD1のフィールドF3に、ID=[0x00]のIDコードを設定したときは、第1の実施例で説明したのと同様に、6段数目のスレーブ装置100_6のみに、データフィールドF4,F5のデータが書き込まれる。
At this time, when an ID code of ID = [0x00] is set in the field F3 of the serial data signal RxD1 output from the
次に、マスタ装置200から出力するシリアルデータ信号RxD1のフィールドF3に、ID=[0xBF]のIDコードを設定したときは、フィールドF3のIDコードは、1段目のスレーブ装置100_1でID=[0xBE]に減算、2段目のスレーブ装置100_2でID=[0xBD]に減算、・・・、5段目のスレーブ装置100_5でID=[0xBA]に減算されるが、そのIDコードはMSB=“1”、MSB−1=“0”で変化せず、それらの比較器109の出力はEN2=“1”となり、1段目〜6段目のスレーブ装置100_1〜100_6の汎用レジスタ110,111にフィールドF4,F5のデータDATA1,DATA2が一斉送信される。さらに、7段目以降のスレーブ装置100_7〜100_64についても、同様に一斉送信される。
Next, when an ID code of ID = [0xBF] is set in the field F3 of the serial data signal RxD1 output from the
つまり、マスタ装置200から出力するシリアルデータ信号RxD1のフィールドF3に設定するIDコードの値を、最終段目のスレーブ装置100_n(n=64)に入力するIDコードが、それ以前の段のスレーブ装置で−1の減算が繰り返されても、[0x80]〜[0xBF]以上となるように設定しておけば、全段のスレーブ装置100_1〜100_n(n=64)の汎用レジスタ110,111に、シリアルデータ信号のフィールドF4,F5のデータを一斉送信することができる。
That is, the ID code set in the field F3 of the serial data signal RxD1 output from the
なお、以上では、スレーブ装置に設定する第1のIDコードとして図5の(00)の領域のコードを設定し、マスタ装置から送信されるIDコードとしても図5の(00)の領域を設定し、また、スレーブ装置に設定する第2のIDコードとして図5の(10)の領域のコードを設定し、マスタ装置から送信されるIDコードとしても図5の(10)の領域を設定して、個別選択送信と一斉送信の両方が行われるようにしたが、これに限られるものではない。 In the above, the (00) area code in FIG. 5 is set as the first ID code to be set in the slave apparatus, and the (00) area in FIG. 5 is also set as the ID code transmitted from the master apparatus. 5 is set as the second ID code to be set in the slave device, and the area in (10) in FIG. 5 is also set as the ID code transmitted from the master device. Thus, both the individual selection transmission and the simultaneous transmission are performed, but the present invention is not limited to this.
例えば、スレーブ装置に設定する第1のIDコードとして図5の(10)の領域のコードを設定し、マスタ装置から送信されるIDコードとしても図5の(10)の領域を設定し、また、スレーブ装置に設定する第2のIDコードとして図5の(00)の領域のコードを設定し、マスタ装置から送信されるIDコードとしても図5の(00)の領域を設定して、個別選択送信と一斉送信の両方が行われるようにしてもよい。 For example, the area code (10) in FIG. 5 is set as the first ID code to be set in the slave apparatus, the area (10) in FIG. 5 is set as the ID code transmitted from the master apparatus, and 5 is set as the second ID code to be set in the slave device, and the (00) region in FIG. 5 is also set as the ID code transmitted from the master device. Both selective transmission and simultaneous transmission may be performed.
また、スレーブ装置に設定する第1のIDコードとして図5の(11)の領域のコードを設定し、マスタ装置から送信されるIDコードとしても図5の(11)の領域を設定し、また、スレーブ装置に設定する第2のIDコードとして図5の(01)の領域のコードを設定し、マスタ装置から送信されるIDコードとしても図5の(01)の領域を設定して、個別選択送信と一斉送信の両方が行われるようにしてもよい。 5 is set as the first ID code to be set in the slave device, the area in FIG. 5 is set as the ID code transmitted from the master device, and 5 is set as the second ID code to be set in the slave device, and the area (01) in FIG. 5 is also set as the ID code transmitted from the master device. Both selective transmission and simultaneous transmission may be performed.
また、スレーブ装置に設定する第1のIDコードとして図5の(01)の領域のコードを設定し、マスタ装置から送信されるIDコードとしても図5の(01)の領域を設定し、また、スレーブ装置に設定する第2のIDコードとして図5の(11)の領域のコードを設定し、マスタ装置から送信されるIDコードとしても図5の(11)の領域を設定して、個別選択送信と一斉送信の両方が行われるようにしてもよい。 5 is set as the first ID code to be set in the slave device, the area (01) in FIG. 5 is set as the ID code transmitted from the master device, and 5 is set as the second ID code to be set in the slave device, and the area in FIG. 5 is also set as the ID code transmitted from the master device. Both selective transmission and simultaneous transmission may be performed.
なお、第2の実施例においても、減算器106を+1加算器に置き換えることができる。同様にして、減算器106は乗算器、除算器に置き換えることもできる。
In the second embodiment, the
<第3の実施例>
図7(a)に、本発明の第3の実施例の通信システムの構成を示す。300_1,300_2,・・・,300_n(n=256)は、1台のマスタ装置400によって独立して制御されるスレーブ装置であり、マスタ装置400からスレーブ装置300_1には、データ範囲を示すデータ範囲信号SC1、シリアルデータ信号SD1、共通のクロックSCKの信号線の3本が接続されている。スレーブ装置300_2〜300_nには、クロック信号SCKは共通であるが、データ信号SD2〜SDnはIDコードが順次1だけ減算され、データ範囲信号SC2〜SCnはデータ信号SD2〜SDnと同期が取られるようタイミング調整されて、接続されている。各スレーブ装置300_1,300_2,・・・,300_n(n=256)は同じ構成である。
<Third embodiment>
FIG. 7A shows the configuration of a communication system according to the third embodiment of the present invention. 300_1, 300_2,..., 300_n (n = 256) are slave devices controlled independently by one
第3の実施例では、マスタ装置400から出力するシリアルデータ信号SD1は、図7(b)に示すように、データ範囲信号SC1の立下りから立上りの期間を1フレームとして、そのフレーム内に、特定のスレーブ装置を選択するためのIDコード(請求項記載の入力IDコード)が設定されたIDフィールドF6、IDコードで特定されるスレーブ装置の負荷を制御するための制御データDATA1,DATA2が設定されたデータフィールドF7,F8が設定されている。フィールドF6〜F8は、それぞれ合計で8ビットである。パリティビットは省略している。なお、コードやデータはLSBファーストで設定されている。
In the third embodiment, as shown in FIG. 7B, the serial data signal SD1 output from the
図8に、スレーブ装置300_1を代表してその内部構成を示す。301はセレクタであり、切換判定回路302からイネーブル信号EN3=“1”が出力するとき減算器303の出力信号を選択し、EN3=“0”が出力するときスレーブ装置300_1に入力するシリアルデータ信号SD1をFF回路304で1クロック分遅延した信号を選択して、それぞれ出力側に送信する。減算器303は、入力するシリアルデータ信号のIDフィールドF6のIDコードの値を1だけ減算して出力する。よって、セレクタ301からは、入力したシリアルデータ信号SD1のうちのIDフィールドF6のIDコードが1だけ減算され他のフィールドF7,F8はそのままにした、1クロック遅延の新たなシリアルデータ信号SD2が出力する。
FIG. 8 shows the internal configuration of the slave device 300_1 as a representative. A
セレクタ301、切換判定回路302、減算器303およびFF回路304は、請求項記載のID演算部を構成する。
The
305はシリアル/パラレル変換器であり、入力するシリアルデータ信号SD1をパラレルデータ信号に変換する。306はIDコード(請求項記載の内部IDコード)として[0x00]が設定されているIDレジスタ、307は比較器である。比較器307は、シリアル/パラレル変換器306から出力するIDフィールドF6に含められたIDコードを、IDレジスタ306に設定したIDコード[0x00]と比較し、一致するときにイネーブル信号をEN4=“1”にし、不一致のときEN4=“0”にする。308はアドレスカウンタであり、データ範囲信号SC1が立ち下がるとき、アドレスを初期値[0xFF]に設定し、比較器307でIDコードの一致が検出されてEN4=“1”が出力したとき、アドレス[0x00]を出力して、フィールドF7のデータDATA1を汎用レジスタ309に書き込ませ、その後に、アドレス[0x01]を出力して、フィールドF8のデータDATA2を汎用レジスタ310に書き込ませる。なお、このアドレスカウンタ308は、アドレスが初期値[0xFF]である期間中は切換判定回路302がEN3=“1”を出力し、他の期間はEN3=“0”を出力するように、その切換判定回路302を制御する。311はデータ範囲信号SC1を1クロック遅延させるFF回路であり、減算器303やFF回路304を通過するシリアルデータ信号SD1とタイミング調整するためのものである。なお、クロック信号SCKは内部の所定回路に供給される。
次に、図9を参照して第3の実施例の通信システムの動作を説明する。本実施例では、すべてのスレーブ装置300_1〜300_nのIDレジスタ306のIDコードを[0x00]に設定しておく。以下では、マスタ装置400から、IDフィールドF6のIDコードが[0x05]に設定され、データフィールドF7にDATA1=[0xFF]、データフィールドF8にDATA2=[0xFF]が設定されたシリアルデータ信号SD1が出力する場合について説明する。
Next, the operation of the communication system of the third embodiment will be described with reference to FIG. In this embodiment, the ID codes of the ID registers 306 of all the slave devices 300_1 to 300_n are set to [0x00]. Hereinafter, the serial data signal SD1 in which the ID code of the ID field F6 is set to [0x05], DATA1 = [0xFF] in the data field F7, and DATA2 = [0xFF] in the data field F8 is set from the
このシリアルデータ信号SD1が1段目のスレーブ装置300_1に入力したときは、スレーブ装置300_1はIDレジスタ306のIDコードが[0x00]であるので、シリアルデータ信号SD1のIDコード[0x05]と一致せず、比較器307からはEN4=“0”が出力し、アドレスカウンタ308、汎用レジスタ309,310は動作しない。また、減算器303からはIDフィールドF6のIDコードが1だけ減算された[0x04]が出力する。このIDコードは、切換判定回路302によって、IDフィールドF6の期間だけセレクタ301で選択される。よって、この1段目のスレーブ装置300_1からは、IDフィールドF6のIDコードが[0x04]に設定され、データフィールドF7にデータ[0xFF]、データフィールドF8にも[0xFF]が設定されたシリアルデータ信号SD2が出力する。
When the serial data signal SD1 is input to the first-stage slave device 300_1, the slave device 300_1 has the ID code [0x00] of the
以下、同様にして、2段目スレーブ装置300_2から出力するシリアルデータ信号SD3のIDコードは[0x03]、3段目スレーブ装置300_3から出力するシリアルデータ信号SD4のIDコードは[0x02]、4段目スレーブ装置300_4から出力するシリアルデータ信号SD5のIDコードは[0x01]、5段目スレーブ装置300_5から出力するシリアルデータ信号SD6のIDコードは[0x00]となる。 Similarly, the ID code of the serial data signal SD3 output from the second-stage slave device 300_2 is [0x03], and the ID code of the serial data signal SD4 output from the third-stage slave device 300_3 is [0x02]. The ID code of the serial data signal SD5 output from the fifth slave device 300_4 is [0x01], and the ID code of the serial data signal SD6 output from the fifth-stage slave device 300_5 is [0x00].
そして、このシリアルデータ信号SD6が6段目のスレーブ装置300_6に入力すると、そのIDコード[0x00]がIDレジスタ306のIDコードと一致するので、アドレスカウンタ308、汎用レジスタ309,310が動作し、その汎用レジスタ309にデータフィールドF4のデータ[0xFF]が、汎用レジスタ310にデータフィールドF5のデータ[0xFF]が、それぞれ格納される。
When this serial data signal SD6 is input to the sixth-stage slave device 300_6, the ID code [0x00] matches the ID code of the
なお、7段目以降のスレーブ装置300_7〜300_nにもシリアルデータ信号は順次入力するが、そのIDコードは順次、[0xFF]→[0xFE]→・・・[0x06]と減算され、そのシリアルデータ信号のIDコードは[0x00]以外の値となるので、比較器109は一致検出できず、影響を与えない。
Note that serial data signals are also sequentially input to the slave devices 300_7 to 300_n in the seventh and subsequent stages, but their ID codes are sequentially subtracted from [0xFF] → [0xFE] →. Since the ID code of the signal has a value other than [0x00], the
以上のように、第3の実施例では、各スレーブ装置300_1〜300_nのIDレジスタ306に共通のIDコード[0x00]を予め設定しておき、且つ、ホスト装置400から出力するシリアルデータ信号のフィールF6に[0x05]のIDコードを設定しておけば、6段数目のスレーブ装置300_6のみにフィールドF7,F8のデータを送ることができる。他は第1の実施例と同じである。
As described above, in the third embodiment, a common ID code [0x00] is set in advance in the
<第4の実施例>
図8で説明したスレーブ装置のIDレジスタ306に代えて、第1のIDコードと第2のIDコードを設定するIDレジスタを設ければ、第2の実施例と同様に、2以上のスレーブ装置に同じデータ信号を一斉送信することができる。
<Fourth embodiment>
If an ID register for setting the first ID code and the second ID code is provided instead of the
<その他の実施例>
以上は、マスタ装置からシリアルデータ信号を送信することにより特定の1個のスレーブ装置に特定のデータを送信し、あるいは2以上のスレーブ装置に共通のデータを一斉送信する例を説明したが、シリアルデータ信号をパラレルデータ信号に置き換えても同様に実施することができることはもちろんである。
<Other examples>
In the above, an example in which specific data is transmitted to one specific slave device by transmitting a serial data signal from the master device or common data is simultaneously transmitted to two or more slave devices has been described. Needless to say, the present invention can be similarly implemented even if the data signal is replaced with a parallel data signal.
100_1〜100_n:スレーブ装置、101:ブレーク検出回路、102:シンク検出回路、103:クロック発生回路、104:切換判定回路、105:セレクタ、106:減算器、107:シリアル/パラレル変換回路、108,108A:IDレジスタ、109:比較器、110、111:汎用レジスタ、112:アドレスカウンタ
200:マスタ装置
300_1〜300_n:スレーブ装置、301:セレクタ、302:切換判定回路、303::減算器、304:FF回路、305:シリアル/パラレル変換回路、396:IDレジスタ、307:比較器、308:アドレスレジスタ、309、310:汎用レジスタ、311:FF回路
400:マスタ装置
500_1〜500_3,500’_1〜500’_3:スレーブ装置、510:UART、、520:デコーダ、530:IDレジスタ、540:汎用レジスタ、550:ID設定端子
100_1 to 100_n: slave device, 101: break detection circuit, 102: sync detection circuit, 103: clock generation circuit, 104: switching determination circuit, 105: selector, 106: subtractor, 107: serial / parallel conversion circuit, 108, 108A: ID register, 109: comparator, 110, 111: general-purpose register, 112: address counter 200: master device 300_1 to 300_n: slave device, 301: selector, 302: switching determination circuit, 303 :: subtractor, 304: FF circuit, 305: serial / parallel conversion circuit, 396: ID register, 307: comparator, 308: address register, 309, 310: general-purpose register, 311: FF circuit 400: master device 500_1 to 500_3, 500′_1 to 500 '_3: Slave equipment , 510: UART ,, 520: Decoder, 530: ID register 540: a general purpose register, 550: ID setting pin
Claims (13)
前記各スレーブ装置は、前記ホスト装置又は前段のスレーブ装置から入力データ信号を入力し該入力データ信号に含まれている入力IDコードのみを演算して新たな入力IDコードを有する新たな入力データ信号として後段のスレーブ装置に送るID演算部と、内部IDコードを設定するIDレジスタと、前記ホスト装置又は前段のスレーブ装置からの入力データ信号に含まれている前記入力IDコードと前記IDレジスタに設定された内部IDコードとの一致を検出する比較器と、該比較器で前記一致が検出されると前記入力データ信号に含まれている制御データを取り込んで格納する汎用レジスタとを備え、
前記演算の内容と前記内部IDコードは、各スレーブ装置で共通であることを特徴とする通信システム。 A communication system in which a plurality of slave devices are connected in series to a host device,
Each slave device receives an input data signal from the host device or the previous slave device, calculates only the input ID code included in the input data signal, and has a new input data signal having a new input ID code. As an ID calculation unit to be sent to the slave device at the subsequent stage, an ID register for setting the internal ID code, and the input ID code and the ID register included in the input data signal from the host device or the previous slave device. A comparator that detects a match with the internal ID code, and a general-purpose register that captures and stores control data included in the input data signal when the match is detected by the comparator;
The content of the calculation and the internal ID code are common to each slave device.
前記ID演算部の前記演算は、前記入力IDコードの値を1だけ減算する演算であることを特徴とする通信システム。 The communication system according to claim 1,
The communication system, wherein the calculation of the ID calculation unit is a calculation of subtracting 1 from the value of the input ID code.
前記各スレーブ装置は、前記IDレジスタの内部IDコードに特定値が設定され、
前記マスタ装置は、1段目のスレーブ装置から選択すべき段数目のスレーブ装置まで1ずつ減算したときに前記特定値の内部IDコードと一致するような入力IDコードを含む入力データ信号を、1段目のスレーブ装置に入力させる、
ことを特徴とする通信システム。 The communication system according to claim 2,
Each slave device has a specific value set in the internal ID code of the ID register,
The master device outputs an input data signal including an input ID code that matches the internal ID code of the specific value when subtracting one by one from the first-stage slave device to the slave device of the number of stages to be selected. Input to the slave device at the stage,
A communication system characterized by the above.
前記各スレーブ装置は、前記IDレジスタに前記内部IDコードとして、
MSB=“0”,MSB−1=“0”を含む第1のIDコードと、MSB=“1”,MSB−1=“0”を含む第2のIDコードが設定され、
前記入力IDコードが前記第1のIDコードと一致し、又は前記第2のIDコードのMSB,MSB−1と一致するとき、前記比較器が一致を検出し、
前記マスタ装置は、1段目のスレーブ装置から選択すべき段数目のスレーブ装置まで1ずつ減算したとき前記第1のIDコードの内部IDコードになるような入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させ、又は、前記MSB=“1”、MSB−1=“0”を含む入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させる、
ことを特徴とする通信システム。 The communication system according to claim 2,
Each slave device, as the internal ID code in the ID register,
A first ID code including MSB = "0" and MSB-1 = "0" and a second ID code including MSB = "1" and MSB-1 = "0" are set.
When the input ID code matches the first ID code or the MSB of the second ID code, MSB-1, the comparator detects a match;
The master device outputs an input data signal having an input ID code that becomes an internal ID code of the first ID code when subtracting one by one from the slave device at the first stage to the slave device at the stage to be selected. Input to the slave device at the first stage, or input an input data signal having an input ID code including MSB = “1” and MSB−1 = “0” to the slave device at the first stage;
A communication system characterized by the above.
前記各スレーブ装置は、前記IDレジスタに前記内部IDコードとして、
MSB=“1”,MSB−1=“0”を含む第1のIDコードと、MSB=“0”,MSB−1=“0”を含む第2のIDコードが設定され、
前記入力IDコードが前記第1のIDコードと一致し、又は前記第2のIDコードのMSB,MSB−1と一致するとき、前記比較器が一致を検出し、
前記マスタ装置は、1段目のスレーブ装置から選択すべき段数目のスレーブ装置まで1ずつ減算したとき前記第1のIDコードの内部IDコードになるような入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させ、又は、前記MSB=“0”、MSB−1=“0”を含む入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させる、
ことを特徴とする通信システム。 The communication system according to claim 2,
Each slave device, as the internal ID code in the ID register,
A first ID code including MSB = "1" and MSB-1 = "0" and a second ID code including MSB = "0" and MSB-1 = "0" are set.
When the input ID code matches the first ID code or the MSB of the second ID code, MSB-1, the comparator detects a match;
The master device outputs an input data signal having an input ID code that becomes an internal ID code of the first ID code when subtracting one by one from the slave device at the first stage to the slave device at the stage to be selected. Input to the first-stage slave device, or input data signal having an input ID code including MSB = “0” and MSB-1 = “0” to the first-stage slave device;
A communication system characterized by the above.
前記各スレーブ装置は、前記IDレジスタに前記内部IDコードとして、
MSB=“1”,MSB−1=“1”を含む第1のIDコードと、MSB=“0”,MSB−1=“1”を含む第2のIDコードが設定され、
前記入力IDコードが前記第1のIDコードと一致し、又は前記第2のIDコードのMSB,MSB−1と一致するとき、前記比較器が一致を検出し、
前記マスタ装置は、1段目のスレーブ装置から選択すべき段数目のスレーブ装置まで1ずつ減算したとき前記第1のIDコードの内部IDコードになるような入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させ、又は、前記MSB=“0”、MSB−1=“1”を含む入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させる、
ことを特徴とする通信システム。 The communication system according to claim 2,
Each slave device, as the internal ID code in the ID register,
A first ID code including MSB = "1" and MSB-1 = "1" and a second ID code including MSB = "0" and MSB-1 = "1" are set.
When the input ID code matches the first ID code or the MSB of the second ID code, MSB-1, the comparator detects a match;
The master device outputs an input data signal having an input ID code that becomes an internal ID code of the first ID code when subtracting one by one from the slave device at the first stage to the slave device at the stage to be selected. Input to the first-stage slave device, or input an input data signal having an input ID code including MSB = “0” and MSB-1 = “1” to the first-stage slave device;
A communication system characterized by the above.
前記各スレーブ装置は、前記IDレジスタに前記内部IDコードとして、
MSB=“0”,MSB−1=“1”を含む第1のIDコードと、MSB=“1”,MSB−1=“1”を含む第2のIDコードが設定され、
前記入力IDコードが前記第1のIDコードと一致し、又は前記第2のIDコードのMSB,MSB−1と一致するとき、前記比較器が一致を検出し、
前記マスタ装置は、1段目のスレーブ装置から選択すべき段数目のスレーブ装置まで1ずつ減算したとき前記第1のIDコードの内部IDコードになるような入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させ、又は、前記MSB=“1”、MSB−1=“1”を含む入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させる、
ことを特徴とする通信システム。 The communication system according to claim 2,
Each slave device, as the internal ID code in the ID register,
A first ID code including MSB = "0" and MSB-1 = "1" and a second ID code including MSB = "1" and MSB-1 = "1" are set.
When the input ID code matches the first ID code or the MSB of the second ID code, MSB-1, the comparator detects a match;
The master device outputs an input data signal having an input ID code that becomes an internal ID code of the first ID code when subtracting one by one from the slave device at the first stage to the slave device at the stage to be selected. Input to the first-stage slave device, or input an input data signal having an input ID code including MSB = “1” and MSB-1 = “1” to the first-stage slave device;
A communication system characterized by the above.
前記ID演算部の前記演算は、前記入力IDコードの値を1だけ加算する演算であることを特徴とする通信システム。 The communication system according to claim 1,
The communication system, wherein the calculation of the ID calculation unit is a calculation of adding 1 to the value of the input ID code.
前記各スレーブ装置は、前記IDレジスタの内部IDコードに特定値が設定され、
前記マスタ装置は、1段目のスレーブ装置から選択すべき段数目のスレーブ装置まで1ずつ加算したときに前記特定値の内部IDコードと一致するような入力IDコードを含む入力データ信号を、1段目のスレーブ装置に入力させる、
ことを特徴とする通信システム。 The communication system according to claim 5, wherein
Each slave device has a specific value set in the internal ID code of the ID register,
The master device outputs an input data signal including an input ID code that matches the internal ID code of the specific value when adding one by one from the first slave device to the slave device to be selected. Input to the slave device at the stage,
A communication system characterized by the above.
前記各スレーブ装置は、前記IDレジスタに前記内部IDコードとして、
MSB=“0”,MSB−1=“0”を含む第1のIDコードと、MSB=“1”,MSB−1=“0”を含む第2のIDコードが設定され、
前記入力IDコードが前記第1のIDコードと一致し、又は前記第2のIDコードのMSB,MSB−1と一致するとき、前記比較器が一致を検出し、
前記マスタ装置は、1段目のスレーブ装置から選択すべき段数目のスレーブ装置まで1ずつ減算したとき前記第1のIDコードの内部IDコードになるような入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させ、又は、前記MSB=“1”、MSB−1=“0”を含む入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させる、
ことを特徴とする通信システム。 The communication system according to claim 8,
Each slave device, as the internal ID code in the ID register,
A first ID code including MSB = "0" and MSB-1 = "0" and a second ID code including MSB = "1" and MSB-1 = "0" are set.
When the input ID code matches the first ID code or the MSB of the second ID code, MSB-1, the comparator detects a match;
The master device outputs an input data signal having an input ID code that becomes an internal ID code of the first ID code when subtracting one by one from the slave device at the first stage to the slave device at the stage to be selected. Input to the slave device at the first stage, or input an input data signal having an input ID code including MSB = “1” and MSB−1 = “0” to the slave device at the first stage;
A communication system characterized by the above.
前記各スレーブ装置は、前記IDレジスタに前記内部IDコードとして、
MSB=“1”,MSB−1=“0”を含む第1のIDコードと、MSB=“0”,MSB−1=“0”を含む第2のIDコードが設定され、
前記入力IDコードが前記第1のIDコードと一致し、又は前記第2のIDコードのMSB,MSB−1と一致するとき、前記比較器が一致を検出し、
前記マスタ装置は、1段目のスレーブ装置から選択すべき段数目のスレーブ装置まで1ずつ減算したとき前記第1のIDコードの内部IDコードになるような入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させ、又は、前記MSB=“0”、MSB−1=“0”を含む入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させる、
ことを特徴とする通信システム。 The communication system according to claim 8,
Each slave device, as the internal ID code in the ID register,
A first ID code including MSB = "1" and MSB-1 = "0" and a second ID code including MSB = "0" and MSB-1 = "0" are set.
When the input ID code matches the first ID code or the MSB of the second ID code, MSB-1, the comparator detects a match;
The master device outputs an input data signal having an input ID code that becomes an internal ID code of the first ID code when subtracting one by one from the slave device at the first stage to the slave device at the stage to be selected. Input to the first-stage slave device, or input data signal having an input ID code including MSB = “0” and MSB-1 = “0” to the first-stage slave device;
A communication system characterized by the above.
前記各スレーブ装置は、前記IDレジスタに前記内部IDコードとして、
MSB=“1”,MSB−1=“1”を含む第1のIDコードと、MSB=“0”,MSB−1=“1”を含む第2のIDコードが設定され、
前記入力IDコードが前記第1のIDコードと一致し、又は前記第2のIDコードのMSB,MSB−1と一致するとき、前記比較器が一致を検出し、
前記マスタ装置は、1段目のスレーブ装置から選択すべき段数目のスレーブ装置まで1ずつ減算したとき前記第1のIDコードの内部IDコードになるような入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させ、又は、前記MSB=“0”、MSB−1=“1”を含む入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させる、
ことを特徴とする通信システム。 The communication system according to claim 8,
Each slave device, as the internal ID code in the ID register,
A first ID code including MSB = "1" and MSB-1 = "1" and a second ID code including MSB = "0" and MSB-1 = "1" are set.
When the input ID code matches the first ID code or the MSB of the second ID code, MSB-1, the comparator detects a match;
The master device outputs an input data signal having an input ID code that becomes an internal ID code of the first ID code when subtracting one by one from the slave device at the first stage to the slave device at the stage to be selected. Input to the first-stage slave device, or input an input data signal having an input ID code including MSB = “0” and MSB-1 = “1” to the first-stage slave device;
A communication system characterized by the above.
前記各スレーブ装置は、前記IDレジスタに前記内部IDコードとして、
MSB=“0”,MSB−1=“1”を含む第1のIDコードと、MSB=“1”,MSB−1=“1”を含む第2のIDコードが設定され、
前記入力IDコードが前記第1のIDコードと一致し、又は前記第2のIDコードのMSB,MSB−1と一致するとき、前記比較器が一致を検出し、
前記マスタ装置は、1段目のスレーブ装置から選択すべき段数目のスレーブ装置まで1ずつ減算したとき前記第1のIDコードの内部IDコードになるような入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させ、又は、前記MSB=“1”、MSB−1=“1”を含む入力IDコードを有する入力データ信号を1段目のスレーブ装置に入力させる、
ことを特徴とする通信システム。 The communication system according to claim 8,
Each slave device, as the internal ID code in the ID register,
A first ID code including MSB = "0" and MSB-1 = "1" and a second ID code including MSB = "1" and MSB-1 = "1" are set.
When the input ID code matches the first ID code or the MSB of the second ID code, MSB-1, the comparator detects a match;
The master device outputs an input data signal having an input ID code that becomes an internal ID code of the first ID code when subtracting one by one from the slave device at the first stage to the slave device at the stage to be selected. Input to the first-stage slave device, or input an input data signal having an input ID code including MSB = “1” and MSB-1 = “1” to the first-stage slave device;
A communication system characterized by the above.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013001116A JP2014134866A (en) | 2013-01-08 | 2013-01-08 | Communication system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013001116A JP2014134866A (en) | 2013-01-08 | 2013-01-08 | Communication system |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2014134866A true JP2014134866A (en) | 2014-07-24 |
Family
ID=51413099
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2013001116A Pending JP2014134866A (en) | 2013-01-08 | 2013-01-08 | Communication system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2014134866A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2016149679A (en) * | 2015-02-13 | 2016-08-18 | 新日本無線株式会社 | Communication method and communication system |
KR20190001532A (en) | 2017-06-27 | 2019-01-04 | 가부시끼 가이샤 구보다 | Walk-behind type managing machine |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS54111240A (en) * | 1978-02-21 | 1979-08-31 | Toshiba Corp | Address discrimination circuit |
JPH01297755A (en) * | 1988-05-26 | 1989-11-30 | Nec Ibaraki Ltd | Peripheral device selecting system |
JPH0697948A (en) * | 1992-09-11 | 1994-04-08 | Fujitsu Ltd | Address setting system |
JP2000286872A (en) * | 1999-03-30 | 2000-10-13 | Kawasaki Steel Corp | Serial data transfer device |
WO2010073408A1 (en) * | 2008-12-26 | 2010-07-01 | Necディスプレイソリューションズ株式会社 | Electronic device, electronic device control system, and electronic device control method |
WO2012124159A1 (en) * | 2011-03-15 | 2012-09-20 | オムロン株式会社 | Method for setting address in network system |
-
2013
- 2013-01-08 JP JP2013001116A patent/JP2014134866A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS54111240A (en) * | 1978-02-21 | 1979-08-31 | Toshiba Corp | Address discrimination circuit |
JPH01297755A (en) * | 1988-05-26 | 1989-11-30 | Nec Ibaraki Ltd | Peripheral device selecting system |
JPH0697948A (en) * | 1992-09-11 | 1994-04-08 | Fujitsu Ltd | Address setting system |
JP2000286872A (en) * | 1999-03-30 | 2000-10-13 | Kawasaki Steel Corp | Serial data transfer device |
WO2010073408A1 (en) * | 2008-12-26 | 2010-07-01 | Necディスプレイソリューションズ株式会社 | Electronic device, electronic device control system, and electronic device control method |
WO2012124159A1 (en) * | 2011-03-15 | 2012-09-20 | オムロン株式会社 | Method for setting address in network system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2016149679A (en) * | 2015-02-13 | 2016-08-18 | 新日本無線株式会社 | Communication method and communication system |
KR20190001532A (en) | 2017-06-27 | 2019-01-04 | 가부시끼 가이샤 구보다 | Walk-behind type managing machine |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Gutierrez et al. | Generalized synchronization in relay systems with instantaneous coupling | |
JP2014134866A (en) | Communication system | |
US20010046241A1 (en) | Synchronization correction circuit | |
JP2009094891A (en) | Semiconductor integrated circuit device and pattern detection method | |
JP5076454B2 (en) | Serial data receiving circuit, serial data receiving device, and serial data receiving method | |
JP2006332945A (en) | Semiconductor integrated circuit | |
US7937516B2 (en) | Integrated circuit with LIN-protocol transmission | |
CN106933767B (en) | Comma detection and word alignment method and system suitable for JESD204B protocol | |
JP2018206231A (en) | Electronic controller | |
JP7059536B2 (en) | Signal transmission circuit | |
JP2007115036A (en) | Asynchronous transfer device and asynchronous transfer method | |
EP3429082B1 (en) | Frequency divider circuit, demultiplexer circuit, and semiconductor integrated circuit | |
JP2014082697A (en) | Serial communication apparatus | |
KR101110114B1 (en) | Method and circuit for synchronization, and data synchronization apparatus having the same | |
JP2016152585A (en) | Control device | |
US20170371818A1 (en) | Method and apparatus for data detection and event capture | |
US7627070B2 (en) | Method of detecting the relative positioning of two signals and corresponding device | |
JP2007165955A (en) | Vertical synchronizing signal generator | |
WO2005117421A8 (en) | Signal receiving circuit and signal input detecting circuit | |
JP2008072214A (en) | Cross-correlation circuit and electronic device | |
JP2015207050A (en) | Emulation apparatus | |
JP2017103668A (en) | Receiving circuit | |
JP2010213204A (en) | Data transmitting/receiving method | |
EP2099153A3 (en) | Transmission circuit of a clock signal for transmitting synchronous digital signals | |
JP2016149679A (en) | Communication method and communication system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20151207 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20161019 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20161024 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20170509 |