JP3488250B2 - Serial data communication method - Google Patents

Serial data communication method

Info

Publication number
JP3488250B2
JP3488250B2 JP07590391A JP7590391A JP3488250B2 JP 3488250 B2 JP3488250 B2 JP 3488250B2 JP 07590391 A JP07590391 A JP 07590391A JP 7590391 A JP7590391 A JP 7590391A JP 3488250 B2 JP3488250 B2 JP 3488250B2
Authority
JP
Japan
Prior art keywords
input
serial data
clock
load signal
output terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP07590391A
Other languages
Japanese (ja)
Other versions
JPH04287149A (en
Inventor
学 鈴木
裕生 岡本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP07590391A priority Critical patent/JP3488250B2/en
Publication of JPH04287149A publication Critical patent/JPH04287149A/en
Application granted granted Critical
Publication of JP3488250B2 publication Critical patent/JP3488250B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)

Description

【発明の詳細な説明】 【0001】 【産業上の利用分野】本発明は,マスター装置から複数
のスレーブ装置にシリアルデータを送出するシリアルデ
ータ通信方式に関するものであり,特に,実質的に3本
のケーブルを用いて,マスター装置からデータを送信す
るスレーブ装置を指定して複数のスレーブ装置に対して
同時にシリアルデータを送出し,指定されたスレーブ装
置が受信シリアルデータを取り込むようにしたシリアル
データ通信方式に関する。 【0002】 【従来の技術】少ないケーブル本数でデータを伝送(通
信)する方法としてシリアルデータ通信方式がある。そ
のようなシリアルデータ通信方式の従来の構成例を図4
に示す。このシリアルデータ通信方式は,マイクロコン
ピュータの演算制御装置(CPU)21と第1の集積回
路(IC)22および第2のIC23が,それぞれ2本
からなる複数のケーブル24を介して接続されている。
このシリアルデータ伝送方式は,CPU21から第1の
IC22または第2のIC23に一方向にシリアルデー
タを送出する通信方式である。そのデータ伝送のタイミ
ング図を図5に示す。CPU21から第1のIC22に
シリアルデータを伝送する場合,CPU21はシリアル
データ出力端子SDOおよびクロック出力端子CLKか
らシリアルデータDATAとともにクロックCLKを出
力する。第1のIC22および第2のIC23のそれぞ
れのシリアルデータ入力端子SDIおよびクロック入力
端子CLKにはCPU21からのシリアルデータDAT
AおよびクロックCLKが入力され,第1のIC22お
よび第2のIC23はそれぞれ,シリアルデータDAT
Aを入力する。しかしながら,シリアルデータDATA
を一時的に入力するのみで,正式にはその内部に取り込
まず,外部に出力しない。CPU21はシリアルデータ
DATAの送出終了すると,第1のIC22に対する
ロード信号LOADをロード信号出力端子LD1から出
力する。第1のIC22はロード信号LOADをそのロ
ード信号入力端子LOADで受信すると,上記入力した
シリアルデータDATAを正式に取り込んで,外部に出
力する。一方,ロード信号LOADが入力されない第2
のIC23は入力したシリアルデータDATAをその内
部に正式に取り込まない。 【0003】図6に従来の他のシリアルデータ通信方式
の構成を示す。このシリアルデータ通信方式は,CPU
25と第1のIC22,第2のIC23とが3本のケー
ブルで接続されている。ここで,第1のIC22のシリ
アルデータ出力端子SDOと次段の第2のIC23のシ
リアルデータ入力端子SDIとが接続されている。第2
のIC23以降のIC(図示せず)についても同様であ
る。図7に図6のCPU25から第1のIC22,第2
のIC23および第3のIC(図示せず)にシリアルデ
ータDATAを伝送するタイミング図を示す。CPU2
場合,3個のICに対するシリアルデータDATA
3〜データDATA1をクロックCLKとともに出力す
る。これらのシリアルデータDATA3〜データDAT
A1は順次,第1のIC22,第2のIC23を介して
入力され,第3のICに出力していく。3個のシリアル
データDATA3〜データDATA1を送出すると,C
PU25はパルス状のロード信号LOADを出力する。
このロード信号LOADは第1のIC22〜第3のIC
に同時に入力され,それぞれのICはロード信号LOA
Dが入力された時点において自己のICに一時的に入力
されているシリアルデータDATAをその内部に正式に
取り込んで,外部に出力する。 【0004】 【発明が解決しようとする課題】図4に示したシリアル
データ通信方式においては,CPU21に接続されるI
Cの数だけロード信号LOADを出力するケーブルが必
要となる他,CPU21にもそのケーブル本数だけの端
子を設けなければならないという問題がある。シリアル
データ通信方式を構成するICの数はシステムによって
異なるから,広い用途に使用する場合を考慮すると,C
PU21の端子数を相当設けなければならず,ピンが無
駄になるという問題がある。また,そのCPUに設けた
ピン数以上のICとは接続できないという問題がある。
一方,図7に示したシリアルデータ通信方式において
は,常に,全ICの個数だけのシリアルデータDATA
を送出しなければならず,伝送速度が低下するという問
題がある。したがって,本発明は,スレーブ装置の数に
依存せずにマスター装置を構成することができ,マスタ
ー装置と複数のスレーブ装置との間の接続ケーブルの本
数を少なくすることができ,さらに,伝送速度を低下さ
せないシリアルデータ通信方式を提供することを目的と
する。 【0005】 【課題を解決するための手段】本発明によれば、クロッ
ク出力端子と、シリアルデータ出力端子と、ロード信号
出力端子とを有するマスター装置と、それぞれ、クロッ
ク入力端子と、シリアルデータ入力端子と、ロード信号
入力端子を有し、独立に設けられた複数のスレーブ装置
と、前記スレーブ装置に対応してかつ対応するスレーブ
装置の近傍に設けられ、それぞれ対応するスレーブ装置
のアドレスが設定されており、前記対応するスレーブ装
置のロード信号入力端子に接続されたゲート回路と、コ
ンパレータと、シフトレジスタとを有する、複数のデコ
ード手段と、実質的に3本の第1〜第3のケーブルとを
有し、前記第1のケーブルは実質的に1本で、前記マス
ター装置の前記クロック出力端子と前記複数のスレーブ
装置の複数のクロック入力端子と、前記複数のデコード
手段の複数のクロック入力端子を接続し、前記第2のケ
ーブルは実質的に1本で、前記マスター装置の前記シリ
アルデータ出力端子と前記複数のスレーブ装置の複数の
シリアルデータ入力端子とを接続し、前記第3のケーブ
ルは実質的に1本で、前記マスター装置の前記ロード信
号出力端子と前記複数のそれぞれのデコード手段内の前
記ゲート回路の一方の入力端子とを接続し、前記マスタ
ー装置は、前記クロック出力端子からクロックをシリア
ルに出力するとともに該クロック出力に同期して前記シ
リアルデータ出力端子からデータを伝送すべきスレーブ
装置を識別するコードと伝送すべきデータをシリアルに
送出し、その後前記ロード信号出力端子からシリアルデ
ータ伝送の終わりを示すロード信号を送出し、前記複数
のスレーブ装置は同時的に、前記第1のケーブルを介し
てクロックを入力し、当該入力したクロックに応じて前
記第2のケーブルを介して前記データを伝送すべきスレ
ーブ装置を識別するコードと伝送すべきデータをシリア
ルに入力して一次的に保持し、前記複数のデコード手段
の各々は、前記第1のケーブルを介してクロックを入力
し、かつ、当該入力したクロックに応じて前記対応する
スレーブ装置に一時的に保持されているシリアル入力デ
ータのうち前記伝送すべきスレーブ装置を識別するコー
ドを前記シフトレジスタに入力し、前記コンパレータに
おいて設定されているアドレスと前記シフトレジスタに
入力したコードとが一致しているか否かを比較し、一致
しているとき前記ゲート回路の他方の入力端子を付勢し
て前記ゲート回路を介して対応するスレーブ装置の前記
ロード信号入力端子にロード信号を印加し、前記デコー
ド手段から前記ロード信号入力端子にロード信号が印加
されたスレーブ装置が前記シリアルデータ入力端子から
シリアルに入力して一次的に保持したデータを正規に取
り込む、シリアルデータ通信方式が提供される。 【0006】 本発明のシリアルデータ通信方式は、ク
ロック出力端子と、シリアルデータ出力端子と、ロード
信号出力端子とを有するマスター装置と、複数のスレー
ブ装置と、複数のデコード手段と、実質的に3本の第1
〜第3のケーブルとを有する。複数のスレーブ装置のそ
れぞれは、クロック入力端子と、シリアルデータ入力端
子と、ロード信号入力端子を有し、独立に設けられてい
る。複数のデコード手段は、前記スレーブ装置に対応し
てかつ対応するスレーブ装置の近傍に設けられ、それぞ
れ対応するスレーブ装置のアドレスが設定されてる。
このように、複数のデコード手段がスレーブ装置に対応
して、かつ、対応するスレーブ装置の近傍に設けられて
いるので、スレーブ装置選択信号を長距離配線しないで
すみ、各スレーブ装置が、データを伝送すべきスレーブ
装置を識別するコードと、伝送データと、ロード信号と
を受信するので、マスター装置からの距離に応じて信号
遅延時間の関係で、これらの信号(データ)の相互のタ
イミングずれが発生せず、正確なデータ受信が可能にな
るとともに、正確なスレーブ装置の選択が可能となると
いう利点を有する。各デコード手段は、前記対応するス
レーブ装置のロード信号入力端子に接続されたゲート回
路と、コンパレータと、シフトレジスタとを有する、比
較的簡単な回路構成をしている。前記第1のケーブルは
実質的に1本で、前記マスター装置の前記クロック出力
端子と前記複数のスレーブ装置の複数のクロック入力端
子と、前記複数のデコード手段の複数のクロック入力端
子を接続し、前記第2のケーブルは実質的に1本で、前
記マスター装置の前記シリアルデータ出力端子と前記複
数のスレーブ装置の複数のシリアルデータ入力端子とを
接続し、前記第3のケーブルは実質的に1本で、前記マ
スター装置の前記ロード信号出力端子と前記複数のそれ
ぞれのデコード手段内の前記ゲート回路の一方の入力端
子とを接続している。前記マスター装置は、前記クロッ
ク出力端子からクロックをシリアルに出力するとともに
該クロック出力に同期して前記シリアルデータ出力端子
からデータを伝送すべきスレーブ装置を識別するコード
と伝送すべきデータをシリアルに送出し、その後前記ロ
ード信号出力端子からシリアルデータ伝送の終わりを示
すロード信号を送出する。前記複数のスレーブ装置は同
時的に、前記第1のケーブルを介してクロックを入力
し、当該入力したクロックに応じて前記第2のケーブル
を介して前記データを伝送すべきスレーブ装置を識別す
るコードと伝送すべきデータをシリアルに入力して一次
的に保持する。前記複数のデコード手段の各々は、前記
第1のケーブルを介してクロックを入力し、かつ、当該
入力したクロックに応じて前記対応するスレーブ装置に
一時的に保持されているシリアル入力データのうち前記
伝送すべきスレーブ装置を識別するコードを前記シフト
レジスタに入力し、前記コンパレータにおいて設定され
ているアドレスと前記シフトレジスタに入力したコード
とが一致しているか否かを比較し、一致しているとき前
記ゲート回路の他方の入力端子を付勢して前記ゲート回
路を介して対応するスレーブ装置の前記ロード信号入力
端子にロード信号を印加する。前記デコード手段から前
記ロード信号入力端子にロード信号が印加されたスレー
ブ装置が前記シリアルデータ入力端子からシリアルに入
力して一次的に保持したデータを正規に取り込む。 【0007】 【実施例】図1に本発明のシリアルデータ通信方式の第
1実施例の回路構成図を示す。このシリアルデータ通信
方式は,マスター装置としてのマイクロコンピュータの
演算制御装置(CPU)1と複数のスレーブ装置として
の第1の集積回路(IC)3〜第3のIC5を有し,C
PU1と第1のIC3〜第3のIC5との間は2本のケ
ーブル2A,2Bで接続されている。すなわち、CPU
1のクロック出力端子CLKと複数のIC3〜IC5の
クロック入力端子CLKとの間が1本のケーブル2Aで
接続されており、CPU1のシリアルデータ出力端子S
DOと複数のIC3〜IC5のシリアルデータ入力端子
SDIとの間が1本のケーブル2Bで接続されている。
このシリアルデータ通信方式においてもCPU1から第
1のIC3〜第3のIC5に一方向にシリアルデータが
伝送される。図1のシリアルデータ通信方式はさらにシ
フトレジスタ7およびデコーダ8からなるデコード手段
を有している。デコード手段のシフトレジスタ7にはケ
ーブ ル2Aを介してクロックが入力され、デコーダ8に
はCPU1のロード信号出力端子LOADに接続された
ケーブル2Cを介してロード信号LOADが入力されて
いる。 【0008】なお,このシリアルデータ通信方式は,た
とえば,複数のTV受像機を自動的に試験検査するた
め,マスター装置としてのCPU1から調整信号をシリ
アルデータとして出力し,試験検査されるそれぞれの受
像機に接続されそのインターフェースとして機能するス
レーブ装置としての第1のIC3〜第3のIC5からな
る試験検査システムに適用される。 【0009】ケーブル2AはCPU1のクロック出力
子CLKから図2に図解したようにシリアルに出力され
るクロックCLKを伝送し,ケーブル2BはCPU1の
シリアルデータ出力端子SDOから図2に図解したよう
にシリアルに出力されるシリアルデータを伝送する。第
3番目のケーブル2CはCPU1のロード信号出力端子
LOADからデコーダ8に出力されるロード信号LOA
Dを伝送する。クロックCLKおよびシリアルデータ
は,第1のIC3〜第3のIC5のクロック入力端子C
LKおよびシリアルデータ入力端子SDIに入力され
る。 【0010】図2にCPU1から出力される信号のタイ
ミング図を示す。CPU1のシリアルデータ出力端子S
DOから出力されるシリアルデータは,その先頭にデー
タDATAを伝送すべきICの識別コードを示すIC番
号ICNOが付加されている。CPU1から出力される
クロックCLKはIC番号ICNOと本来のデータDA
TAとをシリアル伝送するに必要なパルス数だけ出力さ
れる。CPU1から出力されるロード信号LOADはシ
リアルデータDATAの送出終了時点においてパルス信
号として出力される。 【0011】図2に示すIC番号ICNOおよびデータ
DATAからなるシリアルデータは第1のIC3〜第3
のIC5に同時に入力される。しかしながら,正式には
IC3IC5の内部には取り込まれず,一時的に保持さ
れて,外部には出力されない。デコード手段を構成する
シフトレジスタ7は,クロックCLKに応答し,第1の
IC3に入力されたシリアルデータのうち,IC番号I
CNO(信号S3)を入力する。シフトレジスタ7への
IC番号ICNOの入力はどのICから入力してもよ
い。シフトレジスタ7に入力されたIC番号ICNOは
デコーダ8において解読され,IC番号ICNOに対応
する1つのICが特定される。CPU1からロード信号
LOADがデコーダ8の端子Gに印加されると,デコー
ダ8は解読したICに対応する出力端子から対応するI
C,たとえば,第2のIC4のロード信号入力端子LO
ADに,デコード出力S82を出力する。デコーダ8か
らロード信号LOADを入力した第2のIC4は上記仮
に入力しているシリアルデータをその内部に正式に取り
込んで,外部に出力する。なお,第2のIC4は,IC
番号ICNOを取り込んで外部に出力する必要はない。
正式にシリアルデータを内部に取り込んで,外部に出力
できるICは1つだけであり,この場合,他のICはこ
の正式なシリアルデータの取り込み動作および外部出力
動作を行わない。これにより,CPU1から指定した第
2のIC4にのみシリアルデータが正式に取り込まれた
ことになる。この取り込まれたシリアルデータによっ
て,第2のIC4に接続されたTV受像機が検査され
る。 【0012】図1のシリアルデータ通信方式の構成から
明らかなように,図4に示したCPU21のロード信号
を出力する端子の数,および,ロード信号を伝送するた
めのケーブル本数の問題が解決され,接続されるICの
数に依存しない構成となっている。また,図1のシリア
ルデータ通信方式は複数のICに対して同時的にシリア
ルデータを送出するから,図6に示したシリアルデータ
通信方式における伝送速度の低下の問題を解決してい
る。さらに,図1のシリアルデータ通信方式はデコード
手段としてのシフトレジスタ7とデコーダ8を設けてい
るだけであり回路構成の複雑はなく,また,回路動作の
複雑さ,CPU1における通信動作の複雑の増加もな
い。 【0013】図3に本発明のシリアルデータ通信方式の
第2実施例の構成を示す。このシリアルデータ通信方式
は,図1に示したデコード手段の回路構成を代えたもの
であり,デコード手段として,第1のIC3に対して,
マグニチュードコンパレータ15,シフトレジスタ16
を有し,さらに,ANDゲート11を有している。第2
のIC4に対するデコード手段としてのアドレス一致回
路18,第3のIC5に対するデコード手段としてのア
ドレス一致回路19もそれぞれ,マグニチュードコンパ
レータ15およびシフトレジスタ16と同様の回路構成
である。CPU1と第1のIC3〜第3のIC5は,図
1における場合と同様に,ケーブル2A,2Bを介して
接続されている。 【0014】図3のシリアルデータ通信方式において
も,CPU1から出力されるシリアルデータ,クロック
CLK,および,ロード信号LOADの信号波形(また
はフォーマット)とタイミングは図2に示したものと同
じである。したがって,シリアルデータはIC番号IC
NOとデータDATAとを含む。 【0015】第1のIC3に対するデータ伝送について
述べると,図1におけるシフトレジスタ7への入力と同
様に,第1のIC3からIC番号ICNOがシフトレジ
スタ16に入力される。シフトレジスタ16に入力され
たIC番号ICNOはマグニチュードコンパレータ15
に出力される。マグニチュードコンパレータ15には第
1のIC3のアドレスが予め設定されており,シフトレ
ジスタ16からのIC番号ICNOと一致した時,AN
Dゲート11に「ハイ」レベルの一致信号S15を出力
する。シリアルデータの伝送終了時点で,CPU1から
ロード信号LOADがパルス信号としてANDゲート1
1に出力されると,ANDゲート11からロード信号L
OADに応じた「ハイ」レベルのパルス信号が第1のI
C3のロード信号出力端子LOADに入力されて,第1
のIC3がすでに入力されたシリアルデータを正式に取
り込み,外部に出力する。他のICの動作についても上
記同様となる。 【0016】図3のシリアルデータ通信方式はデコード
手段が異なるだけで,図1に示したシリアルデータ通信
方式と同じ動作であり,上述した図1のシリアルデータ
通信方式における効果と同じ効果を得ることができる。 【0017】図3のシリアルデータ通信方式において,
各IC,たとえば,第1のIC3内にANDゲート1
1,マグニチュードコンパレータ15およびシフトレジ
スタ16の回路を組み込んで,1つのICとして形成す
ることもできる。これにより,回路構成および配線がよ
り簡単になる。 【0018】 【発明の効果】以上に述べたように,本発明のシリアル
データ通信方式によれば,スレーブ装置の数に依存せず
マスター装置を構成することができ,またマスター装置
と複数のスレーブ装置を接続するケーブル本数もスレー
ブ装置の数に依存しない。また本発明のシリアルデータ
通信方式によれば,複数のスレーブ装置に対して同時的
にシリアルデータを送出しているから,複数のスレーブ
装置を順次シリアル伝送する場合に生ずるデータの伝送
遅延が生じない。
BACKGROUND OF THE INVENTION [0001] BACKGROUND OF THE INVENTION This invention relates to serial data communication method for sending serial data from a master device to a plurality of slave devices, in particular, substantially three Serial data communication in which a master device specifies a slave device to transmit data to and transmits serial data to a plurality of slave devices simultaneously, and the specified slave device receives received serial data using a cable About the method. 2. Description of the Related Art As a method of transmitting (communicating) data with a small number of cables, there is a serial data communication system. FIG. 4 shows a conventional configuration example of such a serial data communication system.
Shown in In this serial data communication system, an arithmetic and control unit (CPU) 21 of a microcomputer, a first integrated circuit (IC) 22 and a second IC 23 are connected via a plurality of cables 24 each having two wires. .
This serial data transmission method is a communication method in which serial data is sent from the CPU 21 to the first IC 22 or the second IC 23 in one direction. FIG. 5 shows a timing chart of the data transmission. When transmitting serial data from the CPU 21 to the first IC 22, the CPU 21 outputs a clock CLK together with the serial data DATA from the serial data output terminal SDO and the clock output terminal CLK. The serial data input terminal SDI and the clock input terminal CLK of the first IC 22 and the second IC 23 are connected to the serial data DAT from the CPU 21.
A and the clock CLK are input, and the first IC 22 and the second IC 23
Enter A. However, the serial data DATA
Is only entered temporarily, and is not formally captured and output externally. When the transmission of the serial data DATA is completed, the CPU 21 outputs a load signal LOAD to the first IC 22 from the load signal output terminal LD1. When the first IC 22 receives the load signal LOAD at its load signal input terminal LOAD, it formalizes the input serial data DATA and outputs it externally. On the other hand, when the load signal LOAD is not input, the second
Does not formally take in the input serial data DATA. FIG. 6 shows a configuration of another conventional serial data communication system. This serial data communication system uses a CPU
25, the first IC 22, and the second IC 23 are connected by three cables. Here, the serial data output terminal SDO of the first IC 22 and the serial data input terminal SDI of the next second IC 23 are connected. Second
The same applies to ICs (not shown) following IC23. FIG. 7 shows the first IC 22 and the second IC 22 from the CPU 25 of FIG.
FIG. 5 is a timing chart for transmitting serial data DATA to the IC 23 and a third IC (not shown). CPU2
5 , serial data DATA for three ICs
3 to output data DATA1 together with the clock CLK. These serial data DATA3 to data DAT
A1 is sequentially input via the first IC 22 and the second IC 23, and is output to the third IC. When three serial data DATA3 to DATA1 are transmitted, C
The PU 25 outputs a pulse-like load signal LOAD.
This load signal LOAD is transmitted from the first IC 22 to the third IC 22.
At the same time, and each IC receives the load signal LOA.
At the time when D is input, the serial data DATA temporarily input to its own IC is formally taken in and output to the outside. [0004] In the serial data communication system shown in FIG.
In addition to the necessity of a cable for outputting the load signal LOAD by the number of C, there is a problem that the CPU 21 must be provided with terminals of the same number of cables. Since the number of ICs that make up the serial data communication method differs depending on the system, considering the use for a wide range of applications,
There is a problem that the number of terminals of the PU 21 must be considerably provided, and pins are wasted. In addition, there is a problem that it cannot be connected to an IC having more pins than the number of pins provided in the CPU.
On the other hand, in the serial data communication method shown in FIG.
Must be transmitted, which causes a problem that the transmission speed is reduced. Therefore, according to the present invention, the master device can be configured without depending on the number of slave devices, the number of connection cables between the master device and a plurality of slave devices can be reduced, and the transmission speed can be reduced. It is an object of the present invention to provide a serial data communication system which does not lower the communication speed. According to the present invention, there is provided a master device having a clock output terminal, a serial data output terminal, and a load signal output terminal, a clock input terminal, and a serial data input terminal, respectively. A plurality of independently provided slave devices having a terminal and a load signal input terminal; and a slave corresponding to and corresponding to the slave device.
A gate circuit connected to a load signal input terminal of the corresponding slave device, the gate circuit being provided in the vicinity of the device and having a corresponding slave device address set therein ;
A plurality of decoding means having an comparator and a shift register, and substantially three first to third cables, wherein the first cable is substantially one, and The clock output terminal and the plurality of clock input terminals of the plurality of slave devices are connected to the plurality of clock input terminals of the plurality of decoding means, and the second cable is substantially one, and the second cable is connected to the master device. The serial data output terminal is connected to a plurality of serial data input terminals of the plurality of slave devices, and the third cable is substantially one, and the load signal output terminal of the master device and each of the plurality of connect of the one input terminal of the gate circuit in the decoding means, wherein the master device, and outputs the clock to the serial from the clock output terminal DOO Indicate the end of serial data transmission of the data to be transmitted a code identifying the slave device should transmit data from the synchronous serial data output terminal to the clock output and transmitted serially, from then the load signal output terminal A load signal is transmitted, and the plurality of slave devices should simultaneously input a clock via the first cable and transmit the data via the second cable according to the input clock. A code for identifying the slave device and data to be transmitted are serially input and temporarily stored, and each of the plurality of decoding means inputs a clock via the first cable, and receives the input. Of the serial input data temporarily stored in the corresponding slave device according to a clock, the slave to be transmitted The code that identifies the location input to the shift register, the comparator
The set address and the code input to the shift register are compared with each other, and when they are matched, the other input terminal of the gate circuit is activated and A load signal is applied to the load signal input terminal of the corresponding slave device via a gate circuit, and the slave device to which the load signal is applied from the decoding means to the load signal input terminal is serially input from the serial data input terminal. Then, a serial data communication system is provided in which the temporarily held data is taken in properly. The serial data communication system of the present invention
Lock output terminal, serial data output terminal, and load
A master device having a signal output terminal;
Device, a plurality of decoding means, and substantially three first
To a third cable. For multiple slave devices
Each has a clock input terminal and a serial data input terminal.
And a load signal input terminal.
You. A plurality of decoding means correspond to the slave device.
And in the vicinity of the corresponding slave device.
Address of the corresponding slave device is the that is set.
Thus, multiple decoding means correspond to slave devices
And in the vicinity of the corresponding slave device
Do not wire the slave device selection signal over long distances.
By the way, each slave device is a slave to which data should be transmitted.
A code for identifying the device, transmission data, and a load signal
Receive the signal according to the distance from the master device.
Due to the delay time, the mutual data of these signals (data)
Immediate data reception is possible without occurrence of
And it is possible to select the correct slave device
Has the advantage of Each decoding means is provided with the corresponding switch.
Gate circuit connected to the load signal input terminal of the slave device
Having a path, a comparator, and a shift register.
It has a relatively simple circuit configuration. The first cable is
The clock output of the master device, substantially one;
Terminals and a plurality of clock inputs of the plurality of slave devices
And a plurality of clock input terminals of the plurality of decoding means.
And the second cable is substantially one,
The serial data output terminal of the master device and the
Multiple serial data input terminals of the slave devices
And the third cable is substantially a single cable.
The load signal output terminal of the star device and the plurality of
One input terminal of the gate circuit in each decoding means
Connected with child. The master device is connected to the clock.
Clock output from the clock output terminal
The serial data output terminal is synchronized with the clock output.
Code that identifies the slave device to which data should be transmitted from
And the data to be transmitted are transmitted serially,
Indicates the end of serial data transmission from the load signal output terminal.
Send a load signal. The plurality of slave devices are the same.
Occasionally input a clock via the first cable
And the second cable according to the input clock.
A slave device to which said data is to be transmitted via
Input the serial code and the data to be transmitted serially
Hold. Each of the plurality of decoding means is
Input a clock via a first cable, and
According to the input clock, the corresponding slave device
Of the temporarily stored serial input data,
Shifting the code identifying the slave device to be transmitted
Input to the register and set by the comparator.
Address and code input to the shift register
Is compared to see if they match
The other input terminal of the gate circuit is energized to activate the gate circuit.
Said load signal input of a corresponding slave device via a path
Apply a load signal to the terminal. Before the decoding means
The load signal applied to the load signal input terminal
Serial device from the serial data input terminal.
Force to temporarily capture the temporarily held data. FIG. 1 is a circuit diagram showing a first embodiment of a serial data communication system according to the present invention. This serial data communication system has an arithmetic and control unit (CPU) 1 of a microcomputer as a master device and first to third integrated circuits (ICs) 3 to 5 as a plurality of slave devices.
PU1 and the first to third ICs 3 to 5 are connected by two cables 2A and 2B. That is, CPU
1 clock output terminal CLK and a plurality of IC3 to IC5.
One cable 2A between the clock input terminal CLK
Connected to the serial data output terminal S of the CPU 1.
DO and serial data input terminals of multiple IC3 to IC5
The SDI is connected with one cable 2B.
Also in this serial data communication system, serial data is transmitted in one direction from the CPU 1 to the first IC 3 to the third IC 5. The serial data communication system shown in FIG. 1 further includes a decoding means including a shift register 7 and a decoder 8. The shift register 7 of the decoding means
Clock is input through the over b le 2A, the decoder 8
Is connected to the load signal output terminal LOAD of the CPU 1.
Load signal LOAD is input via cable 2C
I have. In this serial data communication system, for example, in order to automatically test and inspect a plurality of TV receivers, an adjustment signal is output as serial data from a CPU 1 as a master device, and each of the image receiving devices to be inspected and inspected. The present invention is applied to a test / inspection system including a first IC3 to a third IC5 as slave devices which are connected to a device and function as an interface thereof. A cable 2A transmits a clock CLK serially output from the clock output terminal CLK of the CPU 1 as illustrated in FIG. 2, and a cable 2B transmits the clock CLK from the serial data output terminal SDO of the CPU 1 to FIG. As illustrated
Transmitting serial data output serially. The third cable 2C is a load signal LOA output from the load signal output terminal LOAD of the CPU 1 to the decoder 8.
Transmit D. The clock CLK and the serial data are supplied to the clock input terminals C of the first IC3 to the third IC5.
LK and the serial data input terminal SDI. FIG. 2 is a timing chart of signals output from the CPU 1. Serial data output terminal S of CPU1
The serial data output from the DO is prefixed with an IC number ICNO indicating the identification code of the IC to which the data DATA is to be transmitted. The clock CLK output from the CPU 1 is composed of the IC number ICNO and the original data DA.
The number of pulses required for serial transmission of the TA is output. The load signal LOAD output from the CPU 1 is output as a pulse signal at the end of the transmission of the serial data DATA. The serial data consisting of the IC number ICNO and the data DATA shown in FIG.
At the same time. However, it is not formally taken into the IC3IC5, is temporarily stored, and is not output to the outside. The shift register 7 constituting the decoding means responds to the clock CLK and outputs the IC number I among the serial data input to the first IC 3.
CNO (signal S3) is input. The input of the IC number ICNO to the shift register 7 may be input from any IC. The IC number ICNO input to the shift register 7 is decoded by the decoder 8, and one IC corresponding to the IC number ICNO is specified. When the load signal LOAD is applied from the CPU 1 to the terminal G of the decoder 8, the decoder 8 outputs the I signal from the output terminal corresponding to the decoded IC.
C, for example, the load signal input terminal LO of the second IC 4
A decode output S82 is output to AD. The second IC 4 to which the load signal LOAD is input from the decoder 8 takes in the provisionally input serial data into the inside and outputs it externally. Note that the second IC 4 is an IC
It is not necessary to take in the number ICNO and output it outside.
Only one IC can formally fetch serial data internally and output it to the outside. In this case, other ICs do not perform the formal serial data fetching operation and the external output operation. As a result, the serial data is formally taken into only the second IC 4 designated by the CPU 1. The TV receiver connected to the second IC 4 is inspected based on the fetched serial data. As is apparent from the configuration of the serial data communication system of FIG. 1, the problems of the number of terminals for outputting the load signal of the CPU 21 and the number of cables for transmitting the load signal shown in FIG. 4 are solved. , Does not depend on the number of connected ICs. In addition, the serial data communication method of FIG. 1 simultaneously transmits serial data to a plurality of ICs, and therefore solves the problem of a decrease in transmission speed in the serial data communication method shown in FIG. Further, the serial data communication system shown in FIG. 1 only has a shift register 7 and a decoder 8 as decoding means, so that the circuit configuration is not complicated, and the complexity of the circuit operation and the communication operation in the CPU 1 increase. Nor. FIG. 3 shows the configuration of a second embodiment of the serial data communication system of the present invention. This serial data communication system is obtained by replacing the circuit configuration of the decoding means shown in FIG.
Magnitude comparator 15, shift register 16
And an AND gate 11. Second
The address matching circuit 18 as decoding means for the IC 4 and the address matching circuit 19 as decoding means for the third IC 5 have the same circuit configuration as the magnitude comparator 15 and the shift register 16, respectively. The CPU 1 and the first to third ICs 3 to 5 are connected via cables 2A and 2B as in the case of FIG. In the serial data communication system shown in FIG. 3, the serial data output from the CPU 1, the clock CLK, and the signal waveform (or format) and timing of the load signal LOAD are the same as those shown in FIG. Therefore, the serial data is the IC number IC
NO and data DATA. The data transmission to the first IC 3 will be described. Similarly to the input to the shift register 7 in FIG. 1, the IC number ICNO is input from the first IC 3 to the shift register 16. The IC number ICNO input to the shift register 16 is the magnitude comparator 15
Is output to The address of the first IC 3 is set in the magnitude comparator 15 in advance, and when the address matches the IC number ICNO from the shift register 16, the
It outputs a “high” level coincidence signal S15 to the D gate 11. At the end of the serial data transmission, the load signal LOAD is sent from the CPU 1 as a pulse signal to the AND gate 1.
1, the load signal L from the AND gate 11 is output.
The “high” level pulse signal corresponding to the OAD is the first I
Input to the load signal output terminal LOAD of C3,
IC3 officially takes in the serial data already input and outputs it externally. The same applies to the operation of other ICs. The serial data communication system shown in FIG. 3 operates in the same manner as the serial data communication system shown in FIG. 1 except that the decoding means is different. Can be. In the serial data communication system shown in FIG.
AND gate 1 in each IC, eg, first IC3
1, the circuit of the magnitude comparator 15 and the shift register 16 may be incorporated to form one IC. This makes the circuit configuration and wiring simpler. As described above, according to the serial data communication system of the present invention, a master device can be configured without depending on the number of slave devices, and a master device and a plurality of slave devices can be configured. The number of cables connecting the devices does not depend on the number of slave devices. Further, according to the serial data communication method of the present invention, serial data is simultaneously transmitted to a plurality of slave devices, so that there is no data transmission delay that occurs when serial transmission is sequentially performed for a plurality of slave devices. .

【図面の簡単な説明】 【図1】本発明の第1実施例のシリアルデータ通信方式
の構成図である。 【図2】図1における伝送信号フォーマットおよび伝送
タイミングを示す図である。 【図3】本発明の第2実施例のシリアルデータ通信方式
の構成図である。 【図4】従来のシリアルデータ通信方式の構成を示す図
である。 【図5】図4における伝送信号フォーマットおよびタイ
ミングを示す図である。 【図6】従来の他のシリアルデータ通信方式の構成を示
す図である。 【図7】図6における伝送信号フォーマットおよびタイ
ミングを示す図である。 【符号の説明】 1 CPU 2A〜2C ケーブル 3〜5 IC 7 シフトレジスタ 8 デコーダ 11〜13 ANDゲート 15 マグニチュードコンパレータ 16 シフトレジスタ 18,19 アドレス一致回路
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a configuration diagram of a serial data communication system according to a first embodiment of the present invention. FIG. 2 is a diagram showing a transmission signal format and transmission timing in FIG. FIG. 3 is a configuration diagram of a serial data communication system according to a second embodiment of the present invention. FIG. 4 is a diagram showing a configuration of a conventional serial data communication system. FIG. 5 is a diagram showing a transmission signal format and timing in FIG. 4; FIG. 6 is a diagram showing a configuration of another conventional serial data communication system. FIG. 7 is a diagram showing a transmission signal format and timing in FIG. 6; [Description of Signs] 1 CPU 2A-2C Cable 3-5 IC 7 Shift register 8 Decoder 11-13 AND gate 15 Magnitude comparator 16 Shift register 18, 19 Address matching circuit

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭59−71526(JP,A) 特開 昭61−103263(JP,A) 特開 昭64−64056(JP,A)   ────────────────────────────────────────────────── ─── Continuation of front page       (56) References JP-A-59-71526 (JP, A)                 JP-A-61-103263 (JP, A)                 JP-A-64-64056 (JP, A)

Claims (1)

(57)【特許請求の範囲】 【請求項1】 クロック出力端子と、シリアルデータ出
力端子と、ロード信号出力端子とを有するマスター装置
と、 それぞれ、クロック入力端子と、シリアルデータ入力端
子と、ロード信号入力端子を有し、独立に設けられた複
数のスレーブ装置と、 前記スレーブ装置に対応してかつ対応するスレーブ装置
の近傍に設けられ、それぞれ対応するスレーブ装置のア
ドレスが設定されており、前記対応するスレーブ装置の
ロード信号入力端子に接続されたゲート回路と、コンパ
レータと、シフトレジスタとを有する、複数のデコード
手段と、 実質的に3本の第1〜第3のケーブルとを有し、 前記第1のケーブルは実質的に1本で、前記マスター装
置の前記クロック出力端子と前記複数のスレーブ装置の
複数のクロック入力端子と、前記複数のデコード手段の
複数のクロック入力端子を接続し、 前記第2のケーブルは実質的に1本で、前記マスター装
置の前記シリアルデータ出力端子と前記複数のスレーブ
装置の複数のシリアルデータ入力端子とを接続し、 前記第3のケーブルは実質的に1本で、前記マスター装
置の前記ロード信号出力端子と前記複数のそれぞれの
コード手段内の前記ゲート回路の一方の入力端子に接続
し、 前記マスター装置は、前記クロック出力端子からクロッ
クをシリアルに出力するとともに該クロック出力に同期
して前記シリアルデータ出力端子からデータを伝送すべ
きスレーブ装置を識別するコードと伝送すべきデータを
シリアルに送出し、その後前記ロード信号出力端子から
シリアルデータ伝送の終わりを示すロード信号を送出
し、 前記複数のスレーブ装置は同時的に、前記第1のケーブ
ルを介してクロックを入力し、当該入力したクロックに
応じて前記第2のケーブルを介して前記データを伝送す
べきスレーブ装置を識別するコードと伝送すべきデータ
をシリアルに入力して一次的に保持し、 前記複数のデコード手段の各々は、前記第1のケーブル
を介してクロックを入力し、かつ、当該入力したクロッ
クに応じて前記対応するスレーブ装置に一時的に保持さ
れているシリアル入力データのうち前記伝送すべきスレ
ーブ装置を識別するコードを前記シフトレジスタに入力
し、前記コンパレータにおいて設定されているアドレス
と前記シフトレジスタに入力したコードとが一致してい
るか否かを比較し、一致しているとき前記ゲート回路の
他方の入力端子を付勢して前記ゲート回路を介して対応
するスレーブ装置の前記ロード信号入力端子にロード信
号を印加し、 前記デコード手段から前記ロード信号入力端子にロード
信号が印加されたスレーブ装置が前記シリアルデータ入
力端子からシリアルに入力して一次的に保持したデータ
を正規に取り込む、 シリアルデータ通信方式。
(57) [Claim 1] A master device having a clock output terminal, a serial data output terminal, and a load signal output terminal, a clock input terminal, a serial data input terminal, and a load device, respectively. A plurality of independently provided slave devices having signal input terminals, and slave devices corresponding to and corresponding to the slave devices
Provided near the are set the address of the corresponding slave device, and a gate circuit connected to the load signal input terminal of the slave device in which the corresponding, comparator
And a plurality of decoding means having a shift register and a shift register; and substantially three first to third cables, wherein the first cable is substantially one, and The clock output terminal is connected to a plurality of clock input terminals of the plurality of slave devices, and a plurality of clock input terminals of the plurality of decoding means. The second cable is substantially one, and the second cable is connected to the master device. The serial data output terminal is connected to the plurality of serial data input terminals of the plurality of slave devices. The third cable is substantially one, and the load signal output terminal of the master device and the plurality of the plurality of serial cables are respectively connected. connect the to one input terminal of the gate circuit de <br/> coding unit, the master unit, and outputs the clock to the serial from the clock output terminal DOO A code for identifying a slave device to which data is to be transmitted and data to be transmitted are serially transmitted from the serial data output terminal in synchronization with the clock output, and then serial data is transmitted from the load signal output terminal. Sending a load signal indicating the end of transmission, wherein the plurality of slave devices simultaneously input a clock via the first cable, and input the clock via the second cable in accordance with the input clock. A code for identifying a slave device to which data is to be transmitted and a data to be transmitted are serially input and temporarily stored, and each of the plurality of decoding means inputs a clock via the first cable, In addition, of the serial input data temporarily held in the corresponding slave device in accordance with the input clock, A code for identifying the slave device is input to the shift register, and an address set in the comparator is compared with a code input to the shift register to determine whether or not the code matches. A load signal is applied to the load signal input terminal of the corresponding slave device via the gate circuit by energizing the other input terminal of the circuit, and the load signal is applied to the load signal input terminal from the decoding means. A serial data communication method in which a slave device normally takes in data that is serially input from the serial data input terminal and temporarily held.
JP07590391A 1991-03-15 1991-03-15 Serial data communication method Expired - Fee Related JP3488250B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP07590391A JP3488250B2 (en) 1991-03-15 1991-03-15 Serial data communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP07590391A JP3488250B2 (en) 1991-03-15 1991-03-15 Serial data communication method

Publications (2)

Publication Number Publication Date
JPH04287149A JPH04287149A (en) 1992-10-12
JP3488250B2 true JP3488250B2 (en) 2004-01-19

Family

ID=13589764

Family Applications (1)

Application Number Title Priority Date Filing Date
JP07590391A Expired - Fee Related JP3488250B2 (en) 1991-03-15 1991-03-15 Serial data communication method

Country Status (1)

Country Link
JP (1) JP3488250B2 (en)

Also Published As

Publication number Publication date
JPH04287149A (en) 1992-10-12

Similar Documents

Publication Publication Date Title
US4689740A (en) Two-wire bus-system comprising a clock wire and a data wire for interconnecting a number of stations
US5619722A (en) Addressable communication port expander
US10216678B2 (en) Serial peripheral interface daisy chain communication with an in-frame response
US20030035473A1 (en) Self test circuit for evaluating a high-speed serial interface
JPS5951186B2 (en) Control device
KR980007258A (en) I²C communication device using general purpose microcomputer
US9197394B2 (en) Clock for serial communication device
CN111770074B (en) Data path test message generation device and method
JP3488250B2 (en) Serial data communication method
CN112003817A (en) Signal conversion method, chip and household appliance
US4092714A (en) Parallel command-status interface through multiplexed serial link
JP3459075B2 (en) Synchronous serial bus 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
JPH0420147A (en) Serial data transmitter
US6832277B2 (en) Method and apparatus for transmitting data that utilizes delay elements to reduce capacitive coupling
JP2764452B2 (en) Bus transfer response method
JP2003124947A (en) Daisy chain data input/output system by serial communication system
JPS61270952A (en) Data transmitting system
JP2949118B1 (en) Encoder data output method for bus communication type encoder device
KR100200567B1 (en) Matching method between tdna and processor of tnif
JPS59139426A (en) Bus interface
SU1562922A2 (en) Device for damping information to telegraph apparatus
JPS6086607A (en) Sequence control system of data process
JP2001051912A (en) Serial data transfer system and abnormality detecting method
JPS6260860B2 (en)

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees