JP2816746B2 - Serial data transmission system - Google Patents

Serial data transmission system

Info

Publication number
JP2816746B2
JP2816746B2 JP2124820A JP12482090A JP2816746B2 JP 2816746 B2 JP2816746 B2 JP 2816746B2 JP 2124820 A JP2124820 A JP 2124820A JP 12482090 A JP12482090 A JP 12482090A JP 2816746 B2 JP2816746 B2 JP 2816746B2
Authority
JP
Japan
Prior art keywords
transmission
serial data
start bit
timing
data
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
JP2124820A
Other languages
Japanese (ja)
Other versions
JPH0420137A (en
Inventor
昭彦 佐川
Original Assignee
日立精工株式会社
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 日立精工株式会社 filed Critical 日立精工株式会社
Priority to JP2124820A priority Critical patent/JP2816746B2/en
Publication of JPH0420137A publication Critical patent/JPH0420137A/en
Application granted granted Critical
Publication of JP2816746B2 publication Critical patent/JP2816746B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION 【産業上の利用分野】[Industrial applications]

本発明は、先頭にスタートビットを付加した複数ビッ
トからなるシリアルデータを、1ビットのデータ信号幅
に対応した周期のクロック信号と共に所定周期で、かつ
双方向に同一送信タイミングで伝送するシリアルデータ
伝送システムに関するものである。
The present invention is directed to a serial data transmission method for transmitting serial data consisting of a plurality of bits with a start bit added at the beginning together with a clock signal having a cycle corresponding to a 1-bit data signal width in a predetermined cycle and at the same transmission timing in both directions. It is about the system.

【従来の技術】[Prior art]

複数のビットから成るデータを送信側から受信側に伝
送する場合、データを複数ビット並列に伝送すれば、そ
の伝送所要時間は短くて良いが、並列の伝送線路を敷設
する必要があるので、伝送線路の敷設空間に余裕がない
工作機械、自動車のエンジンルーム等では、データをシ
リアルに伝送する方法が用いられる。 第4図は、複数ビットからなるデータをシリアルにか
つ双方向に同一の送信タイミングで伝送する従来のシリ
アルデータ伝送システムの最も基本的な構成を示すブロ
ック図であり、第1送受信回路1、第2送受信回路2、
先頭にスタートビットを付加した複数ビットからなるシ
リアルデータSD1を第2送受信回路2に伝送するデータ
伝送線路3、1ビットのデータ信号幅に対応した周期の
クロック信号CLK1を第2送受信回路2に伝送するクロッ
ク伝送線路4と、同じく先頭にスタートビットを付加し
た複数ビットからなるシリアルデータSD2を第1送受信
回路1に伝送するデータ伝送線路5、1ビットのデータ
信号幅に対応した周期のクロック信号CLK2を第1送受信
回路1に伝送するクロック伝送線路6とから構成されて
いる。 シリアルデータSD1,SD2は第5図のデータフォーマッ
ト例に示すように、先頭に1ビット構成のスタートビッ
トSTB(“H"レベル)、その後に8ビットのデータ部D
が付加された構成である。そして、シリアルデータSD1,
SD2の伝送所要時間をTa,次のシリアルデータSD1,SD2が
伝送されるまでを休止時間Tbとすると、シリアルデータ
SD1,SD2は第6図に示すように、「Ta+Tb」時間周期で
双方向に同一送信タイミングで順次伝送される。クロッ
ク信号CLKの一周期をtとすれば、第5図のデータフォ
ーマット例を適用した第6図の伝送形態では、Ta=9t、
Tb=5tとなる。 一方、クロック信号CLK1(またはCLK2)とシリアルデ
ータSD1(またはSD2)とは第7図のタイムチャートのよ
うに対応付けられており、シリアルデータSD1(またはS
D2)の各ビットの変化(1→0,0→1)は、クロック信
号CLK1(またはCLK2)をトリガ信号として利用してお
り、クロック信号CLKに同期している。 第1送受信回路1は、第7図のようなタイミング関係
でシリアルデータSD2が伝送されてきたならば、クロッ
ク信号CLK2の立上りに同期して、まず、スタートビット
STBを確認し、次に後続のデータ部Dをシフトレジスタ
等に取り込んで8ビットの並列データに変換し、この変
換出力データによって予め定められたデータ処理、ある
いは被制御器の制御等を行なう。 ここで、シリアルデータSD1,SD2の送信タイミングは
同一であることを前提とすると、第1送受信回路1は、
データの送信を開始すると同時に、第2送受信回路2か
らスタートビットSTBを受信し、以後のデータ部Dの受
信態勢に移る。これは、第2送受信回路2においても同
様である。 なお、各送受信回路1、2はシステム全体の動作状態
を監視する監視装置7により監視されている。
When transmitting data consisting of a plurality of bits from the transmitting side to the receiving side, if the data is transmitted in a plurality of bits in parallel, the time required for the transmission may be short, but since it is necessary to lay parallel transmission lines, the transmission A method of serially transmitting data is used in a machine tool, an engine room of an automobile, or the like where there is not enough room for laying tracks. FIG. 4 is a block diagram showing the most basic configuration of a conventional serial data transmission system for transmitting data consisting of a plurality of bits serially and bidirectionally at the same transmission timing. 2 transmitting / receiving circuit 2,
A data transmission line 3 for transmitting serial data SD1 consisting of a plurality of bits to which a start bit is added at the beginning to the second transmitting / receiving circuit 2, and transmitting a clock signal CLK1 having a cycle corresponding to a 1-bit data signal width to the second transmitting / receiving circuit 2. And a data transmission line 5 for transmitting serial data SD2 consisting of a plurality of bits to which a start bit is added to the first transmission / reception circuit 1, and a clock signal CLK2 having a period corresponding to the data signal width of 1 bit. And a clock transmission line 6 for transmitting the clock signal to the first transmission / reception circuit 1. As shown in the example of the data format in FIG. 5, the serial data SD1 and SD2 start with a start bit STB (“H” level) having a 1-bit configuration, followed by an 8-bit data portion D.
Is added. Then, the serial data SD1,
Assuming that the required transmission time of SD2 is Ta and the pause time Tb is the transmission of the next serial data SD1 and SD2, the serial data
As shown in FIG. 6, SD1 and SD2 are sequentially transmitted bidirectionally at the same transmission timing in a “Ta + Tb” time cycle. Assuming that one cycle of the clock signal CLK is t, in the transmission form of FIG. 6 to which the data format example of FIG. 5 is applied, Ta = 9t,
Tb = 5t. On the other hand, the clock signal CLK1 (or CLK2) is associated with the serial data SD1 (or SD2) as shown in the time chart of FIG.
The change (1 → 0, 0 → 1) of each bit in D2) uses the clock signal CLK1 (or CLK2) as a trigger signal and is synchronized with the clock signal CLK. When the serial data SD2 has been transmitted in the timing relationship as shown in FIG. 7, the first transmission / reception circuit 1 first synchronizes with the rising edge of the clock signal CLK2,
After confirming the STB, the subsequent data portion D is taken into a shift register or the like and converted into 8-bit parallel data, and predetermined data processing or control of a controlled device is performed by the converted output data. Here, assuming that the transmission timings of the serial data SD1 and SD2 are the same, the first transmitting / receiving circuit 1
At the same time as the start of data transmission, the start bit STB is received from the second transmission / reception circuit 2 and the operation shifts to the reception state of the data section D thereafter. This is the same in the second transmitting / receiving circuit 2. The transmission and reception circuits 1 and 2 are monitored by a monitoring device 7 that monitors the operation state of the entire system.

【発明が解決しようとする課題】[Problems to be solved by the invention]

しかしながら、送受信回路1,2に誤動作が生じて次の
シリアルデータSD1,SD2の送信タイミングが遅れた場
合、あるいはクロック伝送線路5,6にノイズ等が重畳し
てクロック信号CLK1,CLK2の周波数が変化すると、同一
タイミングと考えていたシリアルデータの送信タイミン
グと受信タイミングとがずれ、受信タイミングが遅れて
しまうことがある。そして、このような受信タイミング
の遅れが許容範囲を超えてしまうと、スタートビットST
Bを確認できないので、後続のデータ部Dは無視される
ものとなり、データ部Dの内容に基づく処理や制御がで
きなくなったり、制御誤りが生じ、システムの信頼性を
低下させるという問題があった。 本発明は上記のような事情に鑑みなされたもので、シ
リアルデータの受信タイミングの遅れに起因する伝送異
常を検出し、システムの信頼性の低下を防止することが
できるシリアルデータの伝送システムを提供することを
目的とする。
However, when the transmission timing of the next serial data SD1, SD2 is delayed due to malfunction of the transmission / reception circuits 1, 2, or the frequency of the clock signals CLK1, CLK2 changes due to noise or the like being superimposed on the clock transmission lines 5, 6. Then, the transmission timing and the reception timing of the serial data, which are considered to be the same timing, may be shifted, and the reception timing may be delayed. If such a delay in the reception timing exceeds the allowable range, the start bit ST
Since B cannot be confirmed, the subsequent data portion D is ignored, and processing and control based on the contents of the data portion D cannot be performed, or a control error occurs, and the reliability of the system is reduced. . The present invention has been made in view of the above circumstances, and provides a serial data transmission system capable of detecting a transmission abnormality due to a delay in serial data reception timing and preventing a decrease in system reliability. The purpose is to do.

【課題を解決するための手段】[Means for Solving the Problems]

上記目的を達成するために本発明は、先頭にスタート
ビットを付加した複数ビットからなるシリアルデータ
を、1ビットのデータ信号幅に対応した周期のクロック
信号と共に所定周期で、かつ双方向に同一送信タイミン
グで伝送するシリアルデータ伝送システムにおいて、伝
送相手から受信したシリアルデータのスタートビットの
受信タイミングを検出するスタートビット受信タイミン
グ検出回路と、伝送相手へのシリアルデータの送信タイ
ミングに対して前記スタートビット受信タイミング検出
回路が検出したスタートビットの受信タイミングが許容
範囲内であるが否かを判定し、許容範囲を超えている時
は伝送異常信号をシステムの動作状態を監視している監
視装置等に出力する判定回路とから成る伝送異常検出装
置を設けた。
In order to achieve the above object, the present invention provides a method for transmitting serial data consisting of a plurality of bits with a start bit added at a predetermined period and a bidirectional direction together with a clock signal having a period corresponding to a 1-bit data signal width. In a serial data transmission system for transmitting at a timing, a start bit reception timing detecting circuit for detecting a reception timing of a start bit of serial data received from a transmission partner; Determines whether the reception timing of the start bit detected by the timing detection circuit is within the allowable range, and outputs a transmission error signal to a monitoring device that monitors the operating state of the system if it exceeds the allowable range. And a transmission abnormality detection device comprising a determination circuit for performing the determination.

【作用】[Action]

上記構成によれば、伝送相手へのシリアルデータの送
信タイミングに対して相手からのスタートビットの受信
タイミングが許容範囲を超えている時は伝送異常信号が
判定回路から出力されるので、監視装置等に復旧対策を
行なわせる等の処置によってシステムの信頼性が低下す
るのを防止することができる。
According to the above configuration, when the reception timing of the start bit from the other party exceeds the allowable range with respect to the transmission timing of the serial data to the other party, the transmission abnormality signal is output from the determination circuit. , The reliability of the system can be prevented from deteriorating.

【実施例】【Example】

以下、本発明を図面に基づいて詳細に説明する。 第1図は、本発明のシリアルデータ伝送システムの全
体構成を示すブロック図であり、従来構成に対して、第
2送受信回路2側に伝送異常検出回路8を新たに設けて
いる。 この伝送異常検出回路8は、第2図に詳細構成の一実
施例を示しているように、第2送受信回路2の伝送相手
である第1送受信回路1から送信されたシリアルデータ
SD1を受信し、そのスタートビットSTBを受信タイミング
を検出するスタートビット受信タイミング検出回路(以
下、検出回路と略記)80と、第1送受信回路1へのシリ
アルデータSD2の送信タイミングに対して前記検出回路8
0が検出したスタートビットSTBの受信タイミングが許容
範囲内であるか否かを判定し、許容範囲を超えている時
は伝送異常検出信号ALMをシステムの動作状態を監視し
ている監視装置7等に出力する判定回路81ととから構成
されている。 そして、検出回路80には、シリアルデータSD1および
クロック信号CLK1,CLK2、信号RST,RFTが入力されてい
る。 なお、信号RSTは第2送受信回路2の受信回路部がス
タートビットSTBを受信したことを表す信号、信号SFTは
第2送受信回路2の送信回路部に設けられた並列/直列
変換用シフトレジスタに対し並列8ビットのデータのシ
リアルデータへの変換開始を許可する信号である。 前記検出回路80は、クロック信号CLK1を反転するイン
バータ800、信号RSTを受信したことによりセットされる
フリップフロップ801、スタートビットSTBを受信した後
のクロック信号CLK1をカウントする3ビットカウンタ80
2、フリップフロップ801がセットされているときのみク
ロック信号CLK1を通過させるアンドゲート803、カウン
タ802のカウント値が「4」になった時に“L"レベルの
信号を出力するインバータ804、前記信号RSTが発生され
た後に次のスタートビットSTBが何時受信されたかを記
憶しておくシフトレジスタ806、このシフトレジスタ806
にシフトロックを入力するアンドゲート807とから構成
されている。 前記判定回路81は、信号SFTが立上ることによってセ
ットされるフリップフロップ810、フリップフロップ810
のセット出力Qをクロック信号CLK2で順次にシフトする
フリップフロップ811,818,812,813、フリップフロップ8
12のセット出力Qとフリップフロップ810のセット出力
Qとの論理積を求め、その論理積信号を異常判定用タイ
ミング信号TMG(以下、タイミング信号という)として
出力するアンドゲート815、シフトレジスタ806の出力信
号により、スタートビットSTBの受信タイミングが許容
範囲内である時は“L"レベル、許容範囲を超えている時
は“H"レベルの信号を出力するノアゲート816、このノ
アゲート816の出力信号をアンゲート815の出力TMGによ
って取り込み、セット出力Qから伝送異常検出信号ALM
を出力するフリップフロップ817とから構成されてい
る。 なお、シリアルデータSD1,SD2は第5図に示すよう
に、「Ta+Tb」時間周期で双方向に同一送信タイミング
で順次伝送され、Ta=9t、Tb=5tであるものとする。 次に、上記回路の動作を第3図のタイムチャートを参
照して説明する。なお、フリップフロップ801、810〜81
3、817、818、カウンタ802、シフトレジスタ806は電源
投入時に初期化される。 まず、第1送受信回路1から第5図〜第7図に示した
形態でシリアルデータSD1およびクロック信号CLK1が送
信されると、伝送異常検出回路8および第2送受信回路
2はシリアルデータSD1およびクロック信号CLK1を受信
する。同時に、第2送受信回路2から同じ形態でシリア
ルデータSD2が送信され、第1送受信回路1がシリアル
データSD2およびクロック信号CLK2を受信する。 この時、データ伝送線路3、クロック伝送線路4が正
常であれば、第2送受信回路2および伝送異常検出回路
8は、第2送受信回路2のデータ送信タイミングと同一
タイミングで第1送受信回路1からのシリアルデータSD
1を受信する。 例えば、シリアルデータSD1の8ビット構成のデータ
部Dが「00000000」あったとすると、第3図(a)に示
すようなクロック信号CLK1が受信され、また第3図
(c)に示すようにスタートビットSTBのみが“H"レベ
ルとなっているシリアルデータSD1が受信される。 受信されたシリアルデータSD1はシフトレジスタ806の
データ端子に入力されるが、アンドゲート807が閉じて
いるため、シフトレジスタ806には取り込まれない。 一方、第2送受信回路2は第3図(b)に示すような
クロック信号CLK2を出力する。 しかし、第2送受信回路2の受信回路部は、受信した
シリアルデータSD1の先頭のスタートビットSTBを確認し
たことにより、第3図(d)に示すように、最初のスタ
ートビットSTBから7クロック遅れたタイミングで信号R
STを出力する。すると、この信号RSTの立上りによって
フリップフロップ801がセットされ、その反転セット出
力は、第3図(f)に示すように、“L"レベルにな
る。 フリップフロップ801がセットされると、アンドゲー
ト803が開き、またカウンタ802はリセット状態が解除さ
れる。同時に、カウントアップ端子にクロック信号CLK1
がアンドゲート803を介して入力されるようになる。そ
して、そのカウント値が「4」になると、22出力端子が
“H"レベルとなり、これにより、インバータ804の出力
信号は第3図(g)に示すように、“L"レベルになる。
すると、このインバータ804の“L"レベル出力信号によ
ってフリップフロップ801はリセットされる。そして、
フリップフロップ801がリセットされることにより、カ
ウンタ802は再びリセット状態になる。 一方、シフトレジスタ806はフリップフロップ801がリ
セットされたことにより、リセット状態が解除される。
すなわち、次のスタートビットSTBの受信タイミングが
近づいたのでリセット状態が解除される。リセット状態
が解除されると、アンドゲート807からのシフトクロッ
ク信号によってデータ入力端子からのデータを取り込ん
でシフトするようになるが、第3図の例ではデータとし
て次のスタートビットSTBが受信されていないので、記
憶内容はリセット状態と同じである。 しかし、次のスタートビットSTBが正常に第3図
(c)に示すようなタイミングで受信されると、このス
タートビットSTBがクロック信号CLK1の立ち下がりでシ
フトレジスタ806に取り込まれる。そして、新たなクロ
ック信号CLK1の立ち下がりの都度、上位ビット側にシフ
トされる。 一方、信号SFTは第3図(e)に示すように、受信デ
ータSD1のデータ部Dの第8ビット目のほぼ中間のタイ
ミングで立ち上がるようになっているが、この信号SFT
が立ち上がると、フリップフロップ801がセットされ
る。このフリップフロップ810がセットされると、フリ
ップフロップ811,818,812,813がクロック信号CLK2の一
周期ずつ遅れて順にセットされる。 すると、フリップフロップ812がセットしたことによ
り、アンドゲート807が閉じられ、シフトレジスタ806の
シフト動作は禁止されるようになる。 従って、次のスタートビットSTBが正常に受信されれ
は、シフトレジスタ806のシフト回数は1回だけであ
り、1クロックだけ早いタイミングであれば2回、1ク
ロックだけ遅いタイミングであれば0回となり、シフト
回数が1回の時は21=“H"、シフト回数が2回の時は22
=“H"、シフト回数が0回の時は20=“H"となる。すな
わち、スタートビットSTBの正規の受信タイミングに対
する誤差が±1クロック以内であれば、シフトレジスタ
806の出力端子のうちいずれかが“H"レベルとなる。 このような動作によって、シフトレジスタ806にはス
タートビットSTBが何時受信されたかが、詳しくはスタ
ートビットSTBは正規の受信タイミングに対して±1ク
ロック以内の誤差で受信されたかどうかが記憶される。 従って、判定回路81のノアゲート816の出力はスター
トビットSTBが正規の受信タイミングに対して±1クロ
ック以内の誤差で受信されていれば、常に“L"レベルと
なり、それ以外の時は“H"レベルとなる。そこで、判定
回路81のフリップフロップ817はアンドゲート815から出
力されるタイミング信号TMGによってノアゲート816の出
力が“H"レベルの時にセットされる。すなわち、フリッ
プフロップ817は、第3図(h)に示すように、スター
トビットSTBが正規の受信タイミングに対して±1クロ
ック以内の誤差で受信されなかった時のみセットされ
る。このセット出力は第3図(k)に示すように、伝送
異常検出信号ALMとして出力される。そして、監視装置
7に入力され、伝送異常が発生していることが通知され
る。監視装置7では、異常復帰処理等を実施し、伝送異
常状態を正常状態に復帰させる処理を行なう。 一方、正規の受信タイミングに対して±1クロック以
内の誤差であった場合、フリップフロップ817はセット
されないので、伝送異常検出信号ALMは第3図(j)に
示すように“L"レベルとなる。 なお、監視装置7を備えていない簡易な伝送システム
では、表示機等によって伝送異常が生じたことを管理担
当者に通知するようにしてもよい。
Hereinafter, the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram showing the overall configuration of a serial data transmission system according to the present invention. A transmission abnormality detection circuit 8 is newly provided on the second transmission / reception circuit 2 side in comparison with the conventional configuration. As shown in FIG. 2, an example of the detailed structure of the transmission abnormality detecting circuit 8 is a serial data transmitted from the first transmission / reception circuit 1 which is the transmission partner of the second transmission / reception circuit 2.
A start bit reception timing detection circuit (hereinafter abbreviated as detection circuit) 80 for receiving SD1 and detecting the start bit STB of the start bit STB, and detecting the transmission timing of the serial data SD2 to the first transmission / reception circuit 1 Circuit 8
It is determined whether or not the reception timing of the start bit STB detected by 0 is within an allowable range. If the reception timing is outside the allowable range, the transmission abnormality detection signal ALM is monitored by the monitoring device 7 that monitors the operating state of the system. And a determination circuit 81 that outputs the result to the The detection circuit 80 receives the serial data SD1, the clock signals CLK1 and CLK2, and the signals RST and RFT. Note that the signal RST is a signal indicating that the reception circuit unit of the second transmission / reception circuit 2 has received the start bit STB, and the signal SFT is transmitted to a parallel / serial conversion shift register provided in the transmission circuit unit of the second transmission / reception circuit 2. On the other hand, this signal permits the start of conversion of parallel 8-bit data into serial data. The detection circuit 80 includes an inverter 800 for inverting the clock signal CLK1, a flip-flop 801 set by receiving the signal RST, and a 3-bit counter 80 for counting the clock signal CLK1 after receiving the start bit STB.
2. An AND gate 803 that allows the clock signal CLK1 to pass only when the flip-flop 801 is set, an inverter 804 that outputs an "L" level signal when the count value of the counter 802 becomes "4", and the signal RST. The shift register 806 stores the time when the next start bit STB is received after the shift register 806 is generated.
And an input gate 807 for inputting a shift lock. The determination circuit 81 includes a flip-flop 810, which is set when the signal SFT rises,
Flip-flops 811, 818, 812, 813, and flip-flop 8, which sequentially shift the set output Q of the
The logical product of the set output Q of the 12 and the set output Q of the flip-flop 810 is obtained, and the logical product signal is output as an abnormality determination timing signal TMG (hereinafter, referred to as a timing signal), and the output of the shift register 806. A NOR gate 816 that outputs a "L" level signal when the reception timing of the start bit STB is within the allowable range, and an "H" level when it exceeds the allowable range. Captured by 815 output TMG, transmission error detection signal ALM from set output Q
And a flip-flop 817 for outputting the same. As shown in FIG. 5, the serial data SD1 and SD2 are sequentially transmitted bidirectionally at the same transmission timing in a “Ta + Tb” time cycle, and Ta = 9t and Tb = 5t. Next, the operation of the above circuit will be described with reference to the time chart of FIG. Note that flip-flops 801, 810 to 81
3, 817, 818, the counter 802, and the shift register 806 are initialized when the power is turned on. First, when the serial data SD1 and the clock signal CLK1 are transmitted from the first transmitting / receiving circuit 1 in the form shown in FIGS. 5 to 7, the transmission abnormality detecting circuit 8 and the second transmitting / receiving circuit 2 transmit the serial data SD1 and the clock. The signal CLK1 is received. At the same time, the serial data SD2 is transmitted from the second transmission / reception circuit 2 in the same form, and the first transmission / reception circuit 1 receives the serial data SD2 and the clock signal CLK2. At this time, if the data transmission line 3 and the clock transmission line 4 are normal, the second transmission / reception circuit 2 and the transmission abnormality detection circuit 8 transmit from the first transmission / reception circuit 1 at the same timing as the data transmission timing of the second transmission / reception circuit 2. Serial data SD
Receive one. For example, if the 8-bit data portion D of the serial data SD1 is "00000000", the clock signal CLK1 as shown in FIG. 3A is received, and the clock signal CLK1 is started as shown in FIG. 3C. Serial data SD1 in which only bit STB is at “H” level is received. The received serial data SD1 is input to the data terminal of the shift register 806, but is not taken into the shift register 806 because the AND gate 807 is closed. On the other hand, the second transmitting / receiving circuit 2 outputs a clock signal CLK2 as shown in FIG. 3 (b). However, the reception circuit unit of the second transmission / reception circuit 2 confirms the start bit STB at the beginning of the received serial data SD1, and as shown in FIG. Signal R
Output ST. Then, the rising edge of the signal RST sets the flip-flop 801 and the inverted set output thereof becomes "L" level as shown in FIG. 3 (f). When the flip-flop 801 is set, the AND gate 803 opens, and the reset state of the counter 802 is released. At the same time, the clock signal CLK1
Is input via the AND gate 803. When the count value becomes "4", 2 2 output terminal becomes the "H" level, thereby, so that the output signal of the inverter 804 shown in FIG. 3 (g), to the "L" level.
Then, flip-flop 801 is reset by the “L” level output signal of inverter 804. And
When the flip-flop 801 is reset, the counter 802 is reset again. On the other hand, the reset state of the shift register 806 is released when the flip-flop 801 is reset.
That is, since the reception timing of the next start bit STB approaches, the reset state is released. When the reset state is released, the shift clock signal from the AND gate 807 takes in the data from the data input terminal and shifts. In the example of FIG. 3, the next start bit STB is received as the data. Since there is no data, the stored contents are the same as those in the reset state. However, when the next start bit STB is normally received at the timing shown in FIG. 3C, the start bit STB is taken into the shift register 806 at the falling edge of the clock signal CLK1. Then, each time the new clock signal CLK1 falls, it is shifted to the upper bit side. On the other hand, as shown in FIG. 3 (e), the signal SFT rises at substantially the intermediate timing of the eighth bit of the data portion D of the received data SD1, and this signal SFT rises.
Rises, flip-flop 801 is set. When the flip-flop 810 is set, the flip-flops 811, 818, 812, 813 are sequentially set with a delay of one cycle of the clock signal CLK2. Then, as the flip-flop 812 is set, the AND gate 807 is closed, and the shift operation of the shift register 806 is prohibited. Therefore, if the next start bit STB is normally received, the shift number of the shift register 806 is only one, two times if the timing is one clock earlier, and zero if the timing is one clock later. , 2 1 = “H” when the number of shifts is 1 and 2 2 when the number of shifts is 2
= "H", when the shift count is 0 times will be 2 0 = "H". That is, if the error of the start bit STB with respect to the normal reception timing is within ± 1 clock, the shift register
One of the output terminals of the 806 becomes “H” level. By such an operation, the shift register 806 stores when the start bit STB was received, and more specifically, whether the start bit STB was received with an error within ± 1 clock from the normal reception timing. Accordingly, the output of the NOR gate 816 of the decision circuit 81 is always at the “L” level if the start bit STB is received within an error of ± 1 clock with respect to the normal reception timing, and otherwise is “H”. Level. Therefore, the flip-flop 817 of the determination circuit 81 is set by the timing signal TMG output from the AND gate 815 when the output of the NOR gate 816 is at “H” level. That is, as shown in FIG. 3 (h), the flip-flop 817 is set only when the start bit STB is not received within an error of ± 1 clock with respect to the normal reception timing. This set output is output as a transmission abnormality detection signal ALM as shown in FIG. 3 (k). Then, it is input to the monitoring device 7 and notified that a transmission error has occurred. The monitoring device 7 performs an error recovery process or the like, and performs a process of returning a transmission error state to a normal state. On the other hand, if the error is within ± 1 clock from the normal reception timing, the flip-flop 817 is not set, so that the transmission abnormality detection signal ALM becomes "L" level as shown in FIG. 3 (j). . In a simple transmission system that does not include the monitoring device 7, a display device or the like may notify a manager of the occurrence of a transmission error.

【発明の効果】【The invention's effect】

以上のように本発明は、先頭にスタートビットを付加
したシリアルデータを所定周期で双方向に同一送信タイ
ミングで伝送するシリアルデータ伝送システムにおい
て、伝送相手から受信したシリアルデータのスタートビ
ットの受信タイミングを検出し、この受信タイミングが
伝送相手へのシリアルデータの送信タイミングに対して
許容範囲内であるか否かを判定し、許容範囲を超えてい
る時は伝送異常信号を出力するように構成したため、監
視装置等に復旧対策を行なわせる等の処理によって、ノ
イズの重畳等によるシリアルデータの受信タイミングの
遅れに起因してシステムの信頼性が低下するのを防止す
ることができる。
As described above, according to the present invention, in a serial data transmission system for transmitting serial data with a start bit added at the beginning thereof at a predetermined cycle in the same transmission timing, the reception timing of the start bit of the serial data received from the transmission partner is Because it is configured to detect whether the reception timing is within an allowable range with respect to the transmission timing of the serial data to the transmission partner, and to output a transmission abnormality signal when the reception timing exceeds the allowable range, By processing such as causing the monitoring device to take recovery measures, it is possible to prevent the reliability of the system from deteriorating due to a delay in reception timing of serial data due to superposition of noise or the like.

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

第1図は本発明のシリアルデータ伝送システムの一実施
例を示すブロック図、第2図は本発明の要部である伝送
異常検出回路の一実施例を示す回路図、第3図は伝送異
常検出回路の動作を説明するためのタイムチャート、第
4図は従来のシリアルデータ伝送システムの構成を示す
ブロック図、第5図はシリアルデータの伝送フォーマッ
トの一例を示す説明図、第6図はシリアルデータの伝形
式を示す説明図、第7図はデータ部とクロック信号との
関係を示すタイムチャートである。 1……第1送受信回路 2……第2送受信回路 3,5……データ伝送線路 4,6……クロック伝送線路 7……監視装置 8……伝送異常検出回路 80……スタートビット受信タイミング検出回路 81……判定回路
FIG. 1 is a block diagram showing an embodiment of a serial data transmission system according to the present invention, FIG. 2 is a circuit diagram showing an embodiment of a transmission abnormality detecting circuit which is a main part of the present invention, and FIG. 4 is a time chart for explaining the operation of the detection circuit, FIG. 4 is a block diagram showing a configuration of a conventional serial data transmission system, FIG. 5 is an explanatory diagram showing an example of a serial data transmission format, and FIG. FIG. 7 is an explanatory diagram showing a data transmission format, and FIG. 7 is a time chart showing a relationship between a data portion and a clock signal. DESCRIPTION OF SYMBOLS 1 ... 1st transmission / reception circuit 2 ... 2nd transmission / reception circuit 3, 5 ... Data transmission line 4, 6 ... Clock transmission line 7 ... Monitoring device 8 ... Transmission abnormality detection circuit 80 ... Start bit reception timing detection Circuit 81: Judgment circuit

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】先頭にスタートビットを付加した複ビット
からなるシリアルデータを、1ビットのデータ信号幅に
対応した周期のクロック信号と共に所定周期で、かつ双
方向に同一送信タイミングで伝送するシリアルデータ伝
送システムにおいて、 伝送相手から受信したシリアルデータのスタートビット
の受信タイミングを検出するスタートビット受信タイミ
ング検出回路と、伝送相手へのシリアルデータの伝送タ
イミングに対して前記スタートビット受信タイミング検
出回路が検出したスタートビットの受信タイミングが許
容範囲内であるか否かを判定し、許容範囲を超えている
時は伝送異常信号をシステムの動作状態を監視している
監視装置等に出力する判定回路とから成る伝送異常検出
装置を設けたことを特徴とするシリアルデータ伝送シス
テム。
1. Serial data transmitted at predetermined intervals and bidirectionally at the same transmission timing together with a clock signal having a cycle corresponding to a 1-bit data signal width, comprising serial data consisting of multiple bits with a start bit added at the beginning. In the transmission system, the start bit reception timing detection circuit that detects the reception timing of the start bit of the serial data received from the transmission partner, and the start bit reception timing detection circuit detects the transmission timing of the serial data to the transmission partner A determination circuit that determines whether the reception timing of the start bit is within an allowable range, and outputs a transmission abnormality signal to a monitoring device or the like that monitors an operation state of the system when the reception timing is outside the allowable range. Serial data transmission characterized by having a transmission error detection device system.
JP2124820A 1990-05-15 1990-05-15 Serial data transmission system Expired - Fee Related JP2816746B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2124820A JP2816746B2 (en) 1990-05-15 1990-05-15 Serial data transmission system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2124820A JP2816746B2 (en) 1990-05-15 1990-05-15 Serial data transmission system

Publications (2)

Publication Number Publication Date
JPH0420137A JPH0420137A (en) 1992-01-23
JP2816746B2 true JP2816746B2 (en) 1998-10-27

Family

ID=14894921

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2124820A Expired - Fee Related JP2816746B2 (en) 1990-05-15 1990-05-15 Serial data transmission system

Country Status (1)

Country Link
JP (1) JP2816746B2 (en)

Also Published As

Publication number Publication date
JPH0420137A (en) 1992-01-23

Similar Documents

Publication Publication Date Title
US4514719A (en) Data transmission system utilizing power line of 3-phase alternating current
EP1237282B1 (en) Circuit for the detection of clock signal period abnormalities
US5528635A (en) Synchronization detecting circuit
JP2816746B2 (en) Serial data transmission system
JPH01205237A (en) Synchronous function failure detection
JP4841927B2 (en) Asynchronous transmission device and asynchronous transmission method
JPH07288516A (en) Serial data transmission reception circuit
JP3645751B2 (en) Transmission system
JPS63190457A (en) Serial data transmitter
JPH08316946A (en) Clock break detection circuit
JP2949945B2 (en) Transmission line switching circuit
JPH0420138A (en) Serial data transmission system
JP3422403B2 (en) Path monitoring system
JPS597974B2 (en) Synchronizer for loop transmission system
JPH0621999A (en) Serial communication equipment
JP2596318B2 (en) Transmission equipment
JP2538682B2 (en) Reference clock source automatic switching method
JP2001177583A (en) Asynchronous serial data communication method
JPH04267631A (en) Parity bit addition system
JPH01103060A (en) Error processing system
JP2000032082A (en) Communication failure monitoring device
JPH0214648A (en) Data transmission circuit
JPH02156743A (en) Frame synchronization protection system
JPS6379436A (en) Loop type data transmission control equipment
JPS5945304B2 (en) Line failure detection method in two-wire communication equipment

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080821

Year of fee payment: 10

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080821

Year of fee payment: 10

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090821

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees