[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

JP2503270B2 - Communication error processing method - Google Patents

Communication error processing method

Info

Publication number
JP2503270B2
JP2503270B2 JP1094338A JP9433889A JP2503270B2 JP 2503270 B2 JP2503270 B2 JP 2503270B2 JP 1094338 A JP1094338 A JP 1094338A JP 9433889 A JP9433889 A JP 9433889A JP 2503270 B2 JP2503270 B2 JP 2503270B2
Authority
JP
Japan
Prior art keywords
data
shift
reply
side device
communication
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 - Lifetime
Application number
JP1094338A
Other languages
Japanese (ja)
Other versions
JPH02274031A (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.)
Fujitsu Ltd
Fujitsu Communication Systems Ltd
Original Assignee
Fujitsu Ltd
Fujitsu Communication Systems Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd, Fujitsu Communication Systems Ltd filed Critical Fujitsu Ltd
Priority to JP1094338A priority Critical patent/JP2503270B2/en
Publication of JPH02274031A publication Critical patent/JPH02274031A/en
Application granted granted Critical
Publication of JP2503270B2 publication Critical patent/JP2503270B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Retry When Errors Occur (AREA)

Description

【発明の詳細な説明】 〔概要〕 2つの装置間においてクロックを同期させた直列転送
によりデータを通信する通信方式に係り、更に詳しくは
異常発生時の通信異常処理方式に関し、 シリアル転送におけるクロック異常の確実な検出と、
異常発生時の通信データの再送処理の迅速な実行を実現
することを目的とし、 送信側装置内のデータ送信手段から同期信号と共に該
同期信号に同期して所定データ数の通信データを受信側
装置に直列転送し、該受信側装置内のデータ受信手段に
より前記同期信号に同期して前記所定データ数の通信デ
ータを受信する通信処理方式において、前記受信側装置
内に、前記同期信号に同期して前記所定データ数と同数
の返信データを前記送信側装置に直列転送する返信デー
タ送信手段を有し、前記送信側装置内に、前記同期信号
に同期して前記所定データ数の返信データを受信する返
信データ受信手段と、該手段により前記所データ数の返
信データの受信毎に該返信データに異常が発生したか否
かを監視する返信データ監視手段と、該手段で前記返信
データの異常が検出された場合に、前記データ受信手段
を受信可能状態にさせるためのタイミング調整データを
該データ受信手段に直列転送するタイミング調整データ
送信手段と、該タイミング調整データの送信後、前記返
信データの異常が検出された時点の前記所定データ数の
通信データを前記受信側装置に再送するデータ再送手段
とを有するように構成する。
DETAILED DESCRIPTION OF THE INVENTION [Outline] The present invention relates to a communication method for communicating data by serial transfer in which clocks are synchronized between two devices, and more specifically, relates to a communication error processing method when an error occurs, and a clock error in serial transfer. Reliable detection of
For the purpose of realizing quick execution of the resending process of communication data at the time of occurrence of an abnormality, the receiving side device receives a synchronization signal and a predetermined number of communication data from the data transmitting means in the transmitting side device in synchronization with the synchronization signal. In the communication processing method of serially transferring to the receiving side device, and receiving the predetermined number of communication data in synchronization with the synchronizing signal by the data receiving means in the receiving side device, the receiving side device is synchronized with the synchronizing signal. And a reply data transmitting means for serially transferring the same number of reply data as the predetermined data number to the transmitting side device, and receiving the predetermined number of reply data in synchronization with the synchronization signal in the transmitting side device. A reply data receiving unit, a reply data monitoring unit that monitors whether or not an abnormality has occurred in the reply data every time the unit receives the reply data of the number of data, and the unit returns the reply data. Timing abnormality data transmitting means for serially transferring the timing adjustment data for making the data receiving means in the receivable state when the abnormality of the reception data is detected, and after transmitting the timing adjustment data, And a data resending unit that resends the predetermined number of communication data at the time when the abnormality of the reply data is detected to the receiving side device.

〔産業上の利用分野〕[Industrial applications]

本発明は、2つの装置間においてクロックを同期させ
た直列転送によりデータを通信する通信方式に係り、更
に詳しくは異常発生時の通信異常処理方式に関する。
The present invention relates to a communication system that communicates data by serial transfer in which clocks are synchronized between two devices, and more particularly to a communication error processing system when an error occurs.

〔従来の技術〕[Conventional technology]

複数のマイクロプロセッサ等の装置間でデータ通信を
行う方式のうち、直列(シリアル、以下同じ)転送によ
る方式がある。この方式では、送信側装置(以下、主装
置と呼ぶ)と受信側装置(以下、従装置と呼ぶ)の双方
に例えばn bitのシフトレジスタを設け、主装置のシフ
トレジスタに予めn bitの通信データをセットした後、
該レジスタを所定のクロックに従って順次シフトさせ
て、該レジスタから出力されるシリアルデータを従装置
に転送し、また、上記クロックも同時に転送する。従装
置では主装置から送られてくるクロックに同期して内部
のシフトレジスタを順次シフトさせて、主装置から転送
されてくるn bit単位のシリアルデータを該シフトレジ
スタに順次入力し、n bitを入力した時点で内部に取り
込む。この場合、主装置と従装置の双方に転送ビット数
をカウントするシフトカウンタを設け、各々でn bitの
転送が終了する毎に、その結果を内部の制御部に伝え、
主装置では次の通信データがあればそれをシフトレジス
タにセットし、従装置ではシフトレジスタに入力したn
bitを内部に取り込む等の処理を行う。
Among the methods of performing data communication between a plurality of devices such as a microprocessor, there is a method of serial (serial, hereinafter the same) transfer. In this method, for example, an n-bit shift register is provided in both the transmission side device (hereinafter referred to as the main device) and the reception side device (hereinafter referred to as the slave device), and the n-bit communication is previously performed in the shift register of the main device. After setting the data,
The register is sequentially shifted according to a predetermined clock to transfer the serial data output from the register to the slave device, and the clock is also transferred at the same time. In the slave device, the internal shift register is sequentially shifted in synchronization with the clock sent from the main device, and the serial data of n bit unit transferred from the main device is sequentially input to the shift register, and n bit is set. Imported when input. In this case, both the main device and the slave device are provided with shift counters for counting the number of transfer bits, and each time the transfer of n bits is completed, the result is transmitted to the internal control unit,
If there is the next communication data in the master device, set it in the shift register, and in the slave device, input n to the shift register.
Performs processing such as fetching bits inside.

この場合、通信の同期をとるための主装置から従装置
へのクロックの転送は、通信データと混在させて転送す
る方式、専用のクロック線を用いて転送する方式等、様
々な方式が考えられるが、この場合、クロックにノイズ
が重畳する等の異常が発生した場合、シフトレジスタの
シフトずれと、シフトカウンタの更新ずれが起こり、転
送中のデータ及びその後の通信データにもビットずれが
生じてデータが変化してしまい、正確な通信を行うこと
ができない。このため、クロック異常によるシフトずれ
に対する復旧手段が必要となる。
In this case, various methods are conceivable for transferring the clock from the main device to the slave device for synchronizing the communication, such as a method of transferring mixed with communication data and a method of transferring using a dedicated clock line. However, in this case, when an abnormality such as noise superimposed on the clock occurs, shift shift of the shift register and shift shift of the shift counter occur, and bit shift occurs in the data being transferred and the communication data thereafter. Since the data changes, accurate communication cannot be performed. For this reason, a means for recovering from the shift deviation due to the clock abnormality is required.

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

しかし、従来のシリアル転送方式では、クロック異常
に対する特別な復旧措置はとられておらず、主装置から
従装置へ通信データを1回転送するのみである。このた
め、従装置では転送中の通信データだけでなくその後の
通信データも変化してしまい、誤った通信データによっ
て処理が行われてしまう可能性があるという問題点を有
している。
However, the conventional serial transfer method does not take any special recovery measures against a clock abnormality, and only transfers the communication data from the master device to the slave device once. Therefore, the slave device has a problem that not only the communication data being transferred but also the communication data after that is changed, and there is a possibility that processing may be performed by incorrect communication data.

本発明は、シリアル転送におけるクロック異常の確実
な検出と、異常発生時の通信データの再送処理の迅速な
実行を実現することを目的とする。
An object of the present invention is to realize reliable detection of a clock abnormality in serial transfer and rapid execution of communication data retransmission processing when an abnormality occurs.

〔課題を解決するための手段〕[Means for solving the problem]

第1図は、本発明のブロック図である。本発明は、送
信側装置1内のデータ送信手段2から同期信号3と共に
該同期信号に同期して所定データ数の通信データ4を受
信側装置5に直列転送し、該受信側装置内のデータ受信
手段6により同期信号3に同期して前記所定データ数の
通信データ4を受信する通信処理方式を前提とする。な
お、同期信号は、通信データの転送線とは別の専用線を
用いて転送される方式、通信データに混在させて転送さ
れる方式等、様々な方式が考えられる。また、送信側装
置1と受信側装置5とで相互に通信データの転送を行う
場合には、相互に送信側装置、受信側装置となり、以下
に示す各手段は送信側装置1と受信側装置5の両方に備
えられるが、ここでは、送信部の手段と受信部の手段を
明確にするため、送信側装置1から受信側装置5へ通信
データ4を転送する場合について示してある。
FIG. 1 is a block diagram of the present invention. According to the present invention, the data transmission means 2 in the transmission side device 1 serially transfers the synchronization signal 3 and a predetermined number of communication data 4 in synchronization with the synchronization signal to the reception side device 5. It is premised on a communication processing system in which the reception means 6 receives the predetermined number of communication data 4 in synchronization with the synchronization signal 3. Note that various methods are conceivable, such as a method in which the synchronization signal is transferred using a dedicated line different from the communication data transfer line, a method in which the synchronization signal is mixed with the communication data, and the like. Further, when the transmission side device 1 and the reception side device 5 mutually transfer communication data, they become a transmission side device and a reception side device, and the respective means shown below are the transmission side device 1 and the reception side device. However, in order to clarify the means of the transmitter and the means of the receiver, the case where the communication data 4 is transferred from the transmitter device 1 to the receiver device 5 is shown here.

本発明は、まず、受信側装置5内に、同期信号3に同
期して前記所定データ数と同数の返信データ7を送信側
装置1に直列転送する返信データ送信手段8を有する。
同手段は、例えば前記所定データ数と同数の所定のビッ
トパターンを送信側装置1に直列転送する手段である。
According to the present invention, first, the receiving side device 5 has a reply data transmitting means 8 for serially transferring to the transmitting side device 1 the same number of return data 7 as the predetermined number of data in synchronization with the synchronization signal 3.
The means is, for example, means for serially transferring a predetermined bit pattern of the same number as the predetermined data number to the transmission side device 1.

次に、送信側装置1内に、同期信号3に同期して前記
所定データ数の返信データ7を受信する返信データ受信
手段9を有する。
Next, the sending side device 1 has a reply data receiving means 9 for receiving the predetermined number of reply data 7 in synchronization with the synchronizing signal 3.

続いて、該手段により前記所定データ数の返信データ
7の受信毎に該返信データに異常が発生したか否かを監
視する返信データ監視手段10を有する。同手段は、例え
ば前記返信データ受信手段9で受信された返信データ7
が、前記所定のビットパターンに等しいか否かを判定す
る手段である。
Then, it has a reply data monitoring means 10 for monitoring whether or not an abnormality has occurred in the reply data every time the means receives the predetermined number of reply data 7. The means is, for example, the reply data 7 received by the reply data receiving means 9.
Is a means for determining whether or not it is equal to the predetermined bit pattern.

更に、該手段で返信データ7の異常が検出された場合
に、受信側装置5内のデータ受信手段6を受信可能状態
にさせるためのタイミング調整データ11を該データ受信
手段6に直列転送するタイミング調整データ送信手段12
を有する。同手段は、例えば前記所定ビット数の所定の
ビットパターンを直列転送する手段である。
Further, the timing for serially transferring the timing adjustment data 11 for making the data receiving means 6 in the receiving side device 5 in the receivable state when the abnormality of the reply data 7 is detected by the means. Adjustment data transmission means 12
Have. The means is, for example, means for serially transferring the predetermined bit pattern of the predetermined number of bits.

そして、タイミング調整データ11の送信後、返信デー
タ7の異常が検出された時点の前記所定データ数の通信
データ4を受信側装置5に再送するデータ再送手段13を
有する。
After the timing adjustment data 11 is transmitted, the data resending unit 13 resends the predetermined number of communication data 4 at the time when the abnormality of the reply data 7 is detected to the receiving side device 5.

以上の構成において、送信側装置1内のデータ送信手
段2、返信データ受信手段9、タイミング調整データ送
信手段12及びデータ再送手段13の所定データ数の直列デ
ータの送出部分は、例えば同期信号3に同期して順次シ
フトされながら各データを1ビットずつ送出する前記所
定データ数(ビット数)のシフトレジスタで構成され、
かつ各手段のシフトレジスタは例えば1つのシフトレジ
スタを共用することにより実現できる。また、前記所定
データ数のカウントは、例えば前記シフトレジスタが1
回シフトされる毎にカウントアップするシフトカウンタ
である。このシフトカウンタも共用できる。
In the above-described configuration, the data transmitting means 2, the return data receiving means 9, the timing adjustment data transmitting means 12 and the data retransmitting means 13 in the transmitting side device 1 transmit the predetermined amount of serial data to the synchronization signal 3, for example. The shift register is composed of the predetermined number of data (number of bits) for transmitting each data bit by bit while sequentially shifting in synchronization.
Moreover, the shift register of each means can be realized by sharing one shift register, for example. Further, the count of the predetermined number of data is, for example, 1 in the shift register.
It is a shift counter that counts up each time it is shifted. This shift counter can also be shared.

一方、受信側装置5内のデータ受信手段6の直列通信
データの受信部分と、返信データ送信手段8の返信デー
タ7の送出部分も、例えば上記と同様の前記所定データ
数のシフトレジスタ及びシフトカウンタで構成でき、両
者のシフトレジスタ及びシフトカウンタを1つずつのシ
フトレジスタ及びシフトカウンタで共用できる。この場
合、通信開始時に、まず前記所定データ数の返信データ
7をシフトレジスタにセットし、同期信号3に同期して
通信データ4の入力と返信データ7の出力を1ビットず
つ同時に行い、前記所定データ数分だけシフトした時点
で、上記所定データ数の返信データ7の送出を完了する
と同時に、上記シフトレジスタには送信側装置1から転
送されてきた前記所定データ数の通信データ4を入力で
きる。
On the other hand, the serial communication data receiving part of the data receiving means 6 in the receiving side device 5 and the reply data 7 sending part of the reply data transmitting means 8 are, for example, the same number of shift registers and shift counters as the above. The shift register and shift counter of both can be shared by one shift register and shift counter. In this case, at the start of communication, first, the predetermined number of reply data 7 is set in the shift register, and in synchronization with the synchronization signal 3, the communication data 4 is input and the reply data 7 is output one bit at a time. At the time of shifting by the number of data, the transmission of the reply data 7 of the predetermined number of data is completed, and at the same time, the communication data 4 of the predetermined number of data transferred from the transmitting side device 1 can be input to the shift register.

〔作用〕[Action]

送信側装置1から受信側装置5に前記所定データ数単
位で通信データ4を転送すると同時に、受信側装置5か
ら送信側装置1に同数の所定の返信データ7が転送され
る。そして、同期信号3に異常が発生した場合は、送信
側装置1における前記所定データ数の通信データ4の送
信動作と、受信側装置5における前記所定データ数の通
信データ4の受信動作及び返信データ7の送信動作とが
同期しなくなるため、送信側装置1側で前記所定データ
数の通信データ4を送信し終わった時点で返信データ受
信手段9に受信されている返信データ7が、所定のビッ
トパターンでなくなる。従って、この返信データ7を送
信側装置1内の返信データ監視手段10で監視することに
より、同期信号3の異常を容易に検出できる。
At the same time that the communication data 4 is transferred from the transmission side device 1 to the reception side device 5 in the predetermined number of data units, the same number of predetermined reply data 7 is transferred from the reception side device 5 to the transmission side device 1. When an abnormality occurs in the synchronization signal 3, the transmitting side device 1 transmits the predetermined number of communication data 4 and the receiving side device 5 receives the predetermined number of communication data 4 and return data. Since the transmission operation of 7 is not synchronized, the reply data 7 received by the reply data receiving means 9 at the time when the transmission side device 1 has finished transmitting the predetermined number of communication data 4 has a predetermined bit. No longer a pattern. Therefore, by monitoring the reply data 7 with the reply data monitoring means 10 in the transmission side device 1, the abnormality of the synchronization signal 3 can be easily detected.

異常が検出された場合、同期がずれた結果、受信側装
置5のデータ受信手段6では、前記所定データ数の受信
動作を完了していない可能性があるため、送信側装置1
内のタイミング調整データ送信手段12から上記データ受
信手段6にダミーのタイミング調整データ11を送出し
て、データ受信手段6を受信可能状態にする。
When an abnormality is detected, as a result of the synchronization being lost, the data receiving means 6 of the receiving side device 5 may not have completed the reception operation of the predetermined number of data. Therefore, the transmitting side device 1
The dummy timing adjustment data 11 is transmitted from the internal timing adjustment data transmitting means 12 to the data receiving means 6 so that the data receiving means 6 is in a receivable state.

その後、データ再送手段13が起動して、異常発生時の
通信データ4をデータ受信手段6に再送することによ
り、正しい通信データ4を受信側装置5に確実に転送で
きる。
After that, the data resending means 13 is activated to resend the communication data 4 at the time of occurrence of an abnormality to the data receiving means 6, whereby the correct communication data 4 can be reliably transferred to the receiving side device 5.

〔実施例〕〔Example〕

以下、図面を参照しながら本発明の実施例を説明す
る。
Embodiments of the present invention will be described below with reference to the drawings.

第2図は、本発明の実施例の全体構成図である。本実
施例は、ISDN(サービス総合ディジタル網)における電
話端末に内蔵される複数のプロセッサ間における、通信
データの直列(シリアル、以下同じ)転送部分として実
現される。第2図には、電話端末内において通信データ
のシリアル転送を行う主装置14と従装置15の2つのプロ
セッサを中心に示してある。
FIG. 2 is an overall configuration diagram of an embodiment of the present invention. The present embodiment is realized as a serial (serial, hereinafter the same) transfer portion of communication data between a plurality of processors incorporated in a telephone terminal in ISDN (Integrated Services Digital Network). FIG. 2 mainly shows two processors, a main device 14 and a slave device 15, which perform serial transfer of communication data in the telephone terminal.

主装置14は、主に加入者とのインタフェースを担当す
るプロセッサであり、クロックCLK#1に同期して動作
し、電話器のプッシュボタンであるキーマトリックス17
からの信号、フックスイッチ検出信号19、送受話をスピ
ーカとマイクによるかヘッドセットによるかを切り替え
るスイッチからのハンズフリー/ヘッドセット切替検出
信号20、停電検出信号21、呼び出し音の音色を切り替え
るスイッチからのリンガ音色切替スイッチ検出信号22、
受話音量を切り替えるスイッチからの受話音量切替スイ
ッチ検出信号23、従装置15との間で相互リセットを行う
ためのリセット信号RST等に対する各処理を行い、リン
ガボリューム制御信号25を特には図示しない呼び出し音
用の回路に出力する。このとき、上記リンガ音色の切り
替えは、主装置14に接続される音色切替用の回路である
AIU24で行われる。また、特には図示しない他のプロセ
ッサとの間で、インタフェース回路であるPPI18を介し
てパラレル制御データCTLの授受を行う。
The main unit 14 is a processor mainly responsible for interfacing with subscribers, operates in synchronization with the clock CLK # 1, and is a key matrix 17 which is a push button of a telephone.
From the signal, hook switch detection signal 19, hands-free / headset switching detection signal 20, power failure detection signal 21 from the switch that switches the transmission and reception with the speaker and microphone or with the headset, from the switch that switches the tone of the ringing tone Ringer tone color switch detection signal 22,
The ringer volume control signal 25, which is not particularly shown in the figure, is processed by the reception volume changeover switch detection signal 23 from the switch for changing the reception volume and the reset signal RST for performing mutual reset with the slave device 15. Output to the circuit for. At this time, the switching of the ringer tone color is performed by the tone color switching circuit connected to the main device 14.
Performed at AIU24. In addition, the parallel control data CTL is exchanged with another processor (not shown) through the PPI 18, which is an interface circuit.

従装置15は、主に主装置14における各インタフェース
処理の結果に基づいて、実際の通信処理を行うプロセッ
サである。また、従装置15は、各種ランプ類であるラン
プマトリックス26の制御を行うほか、主装置14との間で
相互リセットを行うためのリセット信号RST等に対する
各処理を行い、また、#1〜#6の各機能ポート27に接
続される外部機器の制御を行う。
The slave device 15 is a processor that performs an actual communication process mainly based on the result of each interface process in the main device 14. Further, the slave device 15 controls the lamp matrix 26 which is various lamps, performs each process for the reset signal RST and the like for performing mutual reset with the main device 14, and # 1 to # The external device connected to each function port 27 of 6 is controlled.

そして、主装置14と従装置15の間には、主装置14から
従装置15に前記各インタフェース処理に基づく制御信号
をシリアル転送するためのシリアル転送部分16が設けら
れる。
A serial transfer portion 16 is provided between the main device 14 and the slave device 15 to serially transfer a control signal based on each interface process from the main device 14 to the slave device 15.

この部分の回路構成を第3図に示す。まず、主装置14
及び従装置15の内部には、各々シリアル転送用のバッフ
ァであるシフトレジスタ28及び30があり、各レジスタは
各々n bit(複数ビット)構成をとる。なお、第3図で
は、簡単のためB0〜B3の4ビット構成で示してある。そ
して、主装置14のシフトレジスタ28の最下位ビットB0
らのシリアル出力SOは、従装置15のシリアル入力SIとな
ってシフトレジスタ30の最上位ビットB3に入力し、逆
に、従装置15のシフトレジスタ30の最下位ビットB0から
のシリアル出力SOは、主装置14のシリアル入力SIとなっ
てシフトレジスタ28の最上位ビットB3に入力する。ま
た、シフトレジスタ28は、主装置14内で生成されるシフ
トクロックSC/TOに従ってシフト動作し、シフトレジス
タ30も、主装置14から専用線で転送されてくる上記シフ
トクロックSC/TOに従ってシフト動作する。
The circuit configuration of this portion is shown in FIG. First, the main device 14
Inside the slave device 15, there are shift registers 28 and 30 which are buffers for serial transfer, and each register has an n bit (plural bits) configuration. Note that FIG. 3 shows a 4-bit configuration of B 0 to B 3 for simplicity. Then, the serial output SO from the least significant bit B 0 of the shift register 28 of the master device 14 becomes the serial input SI of the slave device 15 and is input to the most significant bit B 3 of the shift register 30, and conversely, the slave device. The serial output SO from the least significant bit B 0 of the shift register 30 of 15 becomes the serial input SI of the main device 14 and is input to the most significant bit B 3 of the shift register 28. The shift register 28 shifts according to the shift clock SC / TO generated in the main unit 14, and the shift register 30 also shifts according to the shift clock SC / TO transferred from the main unit 14 by a dedicated line. To do.

次に、主装置14及び従装置15内には、各々、各シフト
レジスタ28及び30におけるシフトカウント数をカウント
する2ビットのシフトカウンタ29及び31を有する。シフ
トカウンタ29は、主装置14内で生成されるシフトクロッ
クSC/TOに従ってシフト動作し、シフトカウンタ31も、
主装置14から専用線で転送されてくる上記シフトクロッ
クSC/TOに従ってシフト動作する。なお、シフトカウン
タ29及び31のビット数はシフトレジスタ28及び30のビッ
ト数に応じて変化する。
Next, in the main device 14 and the slave device 15, there are provided 2-bit shift counters 29 and 31 for counting the shift count numbers in the shift registers 28 and 30, respectively. The shift counter 29 shifts according to the shift clock SC / TO generated in the main unit 14, and the shift counter 31 also
The shift operation is performed according to the shift clock SC / TO transferred from the main unit 14 by a dedicated line. The number of bits of the shift counters 29 and 31 changes according to the number of bits of the shift registers 28 and 30.

上記構成の実施例の動作を以下に説明する。なお、本
発明に特に関連する部分は、第2図のシリアル転送部分
16すなわち第3図の構成であるため、以後、この部分を
中心に説明を行う。
The operation of the embodiment having the above configuration will be described below. The part particularly related to the present invention is the serial transfer part of FIG.
That is, since it has the configuration shown in FIG. 16, that is, FIG. 3, the description will be focused on this part.

まず、第3図のシリアル転送部分の基本動作を、第4
図の動作タイミングチャートに従って説明する。
First, the basic operation of the serial transfer portion of FIG.
A description will be given according to the operation timing chart in the figure.

始めに、主装置14内のシフトレジスタ28の各ビットB3
〜B0には、予め従装置15に転送するための通信データSB
3〜SB0がセットされているとする。
First, each bit B 3 of the shift register 28 in the main unit 14
To B 0 are communication data SB to be transferred to the slave device 15 in advance.
Assume that 3 to SB 0 are set.

そして、主装置14内で特には図示しないシリアルポー
ト起動信号が、第4図(a)のタイミングt1において立
ち上がり(ソフト制御による)、これにより、主装置14
内でシフトクロックSC/TOが、第4図(b)のように発
生開始される。
Then, a serial port activation signal (not shown) in the main device 14 rises (by software control) at the timing t 1 in FIG. 4 (a), whereby the main device 14
The shift clock SC / TO is internally generated as shown in FIG. 4 (b).

続いて、まず、シフトクロックSC/TOの1周期目の立
ち下がりタイミングt1において、シフトレジスタ28のB0
の内容SB0が、第4図(c)のようにシリアル出力SOと
して出力される。また、このときシリアル入力SIには従
装置15からデータSI0が入力している。そして、次のシ
フトクロックSC/TOの立ち上がりタイミングt2のトリガ
ーで、シリアル入力SIに入力しているデータSI0がシフ
トレジスタ28のB3に入力し(第4図(d)→(e))、
B3の内容SB3はB2にシフトし(第4図(e)→
(f))、B2の内容SB2はB1にシフトし(第4図(f)
→(g))、B1の内容SB1はB0にシフトする(第4図
(g)→(h))。
Subsequently, first, at the falling timing t 1 of the first cycle of the shift clock SC / TO, B 0 of the shift register 28 is changed.
The content SB 0 of is output as a serial output SO as shown in FIG. 4 (c). At this time, the data SI 0 is input from the slave device 15 to the serial input SI. Then, at the next rising timing t 2 of the shift clock SC / TO, the data SI 0 input to the serial input SI is input to B 3 of the shift register 28 (FIG. 4 (d) → (e)). ),
Contents of B 3 SB 3 shifts to B 2 (Fig. 4 (e) →
(F)), the contents of B 2 SB 2 shifts to B 1 (Fig. 4 (f)
→ (g)), the contents of B 1 SB 1 shifts to B 0 (FIG. 4 (g) → (h)).

次に、シフトクロックSC/TOの2周期目の立ち下がり
タイミングt3において、シフトレジスタ28のB0の内容SB
1が、第4図(c)のようにシリアル出力SOとして出力
される。また、このときシリアル入力SIには従装置15か
らデータSI1が入力している。そして、次のシフトクロ
ックSC/TOの立ち上がりのタイミングt4のトリガーで、
シリアル入力SIに入力しているデータSI1がシフトレジ
スタ28のB3に入力し(第4図(d)→(e))、B3の内
容SI0はB2にシフトし(第4図(e)→(f))、B2
内容SB3はB1にシフトし(第4図(f)→(g))、B1
の内容SB2はB0にシフトする(第4図(g)→
(h))。
Next, at the falling timing t 3 of the second cycle of the shift clock SC / TO, the contents SB of B 0 of the shift register 28
1 is output as the serial output SO as shown in FIG. 4 (c). At this time, the data SI 1 is input from the slave device 15 to the serial input SI. Then, with the trigger of the next rising timing t 4 of the shift clock SC / TO,
Data SI 1 which is input to the serial input SI is input to B 3 of the shift register 28 (FIG. 4 (d) → (e)) , the contents SI 0 of B 3 is shifted to B 2 (Figure 4 (E) → (f)), contents of B 2 SB 3 shifts to B 1 (FIG. 4 (f) → (g)), B 1
Content SB 2 shifts to B 0 (Fig. 4 (g) →
(H)).

シフトクロックSC/TOの3周期目も同様で、t5におい
て、B0の内容SB2→シリアル出力SO、SI2→シリアル入力
SIとなり、t6のトリガーで、シリアル入力SIのデータSI
2→B3、B3の内容SI1→B2、B2の内容SI0→B1、B1の内容S
B3→B0とシフトする。
The same applies to the third cycle of the shift clock SC / TO. At t 5 , the contents of B 0 SB 2 → serial output SO, SI 2 → serial input
SI next, the trigger of t 6, the serial input SI data SI
2 → Content of B 3 , B 3 SI 1 → Content of B 2 , B 2 SI 0 → Content of B 1 , B 1 S
Shift from B 3 to B 0 .

そして、シフトクロックSC/TOの4周期目では、t7
おいて、B0の内容SB3→シリアル出力SO、SI3→シリアル
入力SIとなり、t8のトリガーで、シリアル入力SIのデー
タSI3→B3、B3の内容SI2→B2、B2の内容SI1→B1、B1
内容SI0→B0とシフトする。
Then, in the fourth cycle of the shift clock SC / TO, at t 7 , the contents of B 0 are SB 3 → serial output SO, SI 3 → serial input SI, and at the trigger of t 8 , the data SI 3 → Contents of B 3 , B 3 SI 2 → B 2 , contents of B 2 SI 1 → B 1 , contents of B 1 SI 0 → B 0 Shift.

上記4サイクルで、第3図のシフトレジスタ28にセッ
トされている通信データSB0〜SB3の出力動作と、従装置
15からのデータSI0〜SI3のシフトレジスタ28への入力動
作が同時に実行される。この場合、シフトクロックSC/T
Oの各立ち上がり(第4図(b)のt2、t4、t6、t8)に
同期して2ビットのシフトカウンタ29(予めクリアされ
ている)がカウントアップし、第4図(b)のt8でその
カウント値が「00」に戻った時点で、第4図(i)のよ
うにシリアル割込信号が立ち上がり、これによりタイミ
ングt9で第4図(a)のシリアルポート起動信号が立ち
下がり、4ビットの通信データの転送を完了する。
In the above four cycles, the output operation of the communication data SB 0 to SB 3 set in the shift register 28 of FIG. 3 and the slave device
Input operations of the data SI 0 to SI 3 from 15 to the shift register 28 are simultaneously executed. In this case, shift clock SC / T
The 2-bit shift counter 29 (cleared in advance) counts up in synchronization with each rising edge of O (t 2 , t 4 , t 6 , t 8 in FIG. 4 (b)), and FIG. the count value at t 8 in b) is at the time of return to "00", the serial port of the serial interrupt signal as FIG. 4 (i) rises, thereby Figure 4 at the timing t 9 (a) The activation signal falls, and the transfer of 4-bit communication data is completed.

以上の動作において、第3図の従装置15側の動作につ
いては省略したが、主装置14からのシフトクロックSC/T
Oに同期してシフトレジスタ30及びシフトカウンタ31が
全く同様に動作する。
In the above operation, although the operation on the slave device 15 side in FIG. 3 is omitted, the shift clock SC / T from the master device 14 is omitted.
In synchronization with O, the shift register 30 and the shift counter 31 operate in exactly the same way.

次に上記基本動作に基づく本実施例の具体的な動作を
以下に説明する。
Next, a specific operation of this embodiment based on the above basic operation will be described below.

まず、正常動作時の動作を説明する。この場合、第8
図に示すように主装置14から従装置15に送信データ(通
信データ)を転送すると同時に、従装置15から主装置14
に返信データを転送する。そして、主装置14側で返信デ
ータが正常に受信されることにより、従装置15側でも送
信データが正常に受信される。この動作を第5図の動作
例に従って説明する。なお、第8図の〜は第5図の
同じ番号の各処理に対応している。
First, the operation during normal operation will be described. In this case, the 8th
As shown in the figure, the transmission data (communication data) is transferred from the master device 14 to the slave device 15, and at the same time, the slave device 15 transfers the transmission data (communication data) to the slave device 15.
Transfer the reply data to. Then, when the master device 14 side normally receives the reply data, the slave device 15 side also normally receives the transmission data. This operation will be described with reference to the operation example of FIG. It is to be noted that items 1 to 3 in FIG. 8 correspond to respective processes having the same numbers in FIG.

始めに、第5図(1段目)のように、主装置14では
シフトレジスタ28のB3〜B0に送信データ「0100」が予め
セットされる。また、従装置15内ではシフトレジスタ30
のB3〜B0に返信データ「0010」がセットされている。
First, as shown in FIG. 5 (first stage), in the main device 14, the transmission data “0100” is preset in B 3 to B 0 of the shift register 28. In the slave device 15, the shift register 30
The reply data “0010” is set in B 3 to B 0 of.

この状態で、主装置14の制御プログラムからシリアル
転送起動がかかり(第4図(a)参照)、シフトカウン
タ29が「00」をクリアした後、同図(2段目)のよう
にシフトクロックSC/TOにより、主装置14では従装置15
にシフトレジスタ28の送信データを1ビット転送し、従
装置15からの1ビットの返信データを受信する(第5図
S1)。従装置15では、主装置14から送信される以前に、
制御プログラムがシリアル転送起動をかけ、シフトカウ
ンタ31をクリアしておき、上記シフトクロックSC/TOに
従って主装置14からの1ビットの送信データを受信し、
主装置14にシフトレジスタ30の返信データを1ビット転
送する(第5図S4)。
In this state, serial transfer is activated from the control program of the main unit 14 (see FIG. 4 (a)), and after the shift counter 29 clears "00", the shift clock is changed as shown in the same figure (second stage). With SC / TO, master device 14 is slave device 15
1 bit of the transmission data of the shift register 28 is transferred to and the 1-bit reply data from the slave device 15 is received (see FIG. 5).
S1). In the slave device 15, before transmission from the master device 14,
The control program activates serial transfer, clears the shift counter 31, and receives 1-bit transmission data from the main unit 14 according to the shift clock SC / TO,
The reply data of the shift register 30 is transferred to the main unit 14 by 1 bit (S4 in FIG. 5).

同様に、第5図、、で、上記と同様の動作がシ
フトクロックSC/TOに同期して繰り返される(第5図S
1、S4)。
Similarly, the same operation as above is repeated in synchronization with the shift clock SC / TO in FIG.
1, S4).

の動作の後、主装置14側のシフトカウンタ29が「0
0」になり、これにより送信データの転送が完了し、制
御プログラムにシリアル割込がかかる(第4図の説明参
照)。これにより、制御プログラムは転送完了を認識し
(第5図S2)、その後、シフトレジスタ28の値が返信デ
ータ「0010」であるか否かを判定する(第5図S3)。
After the operation of, the shift counter 29 on the main unit 14 side displays "0.
It becomes "0", whereby the transfer of the transmission data is completed, and the control program is serially interrupted (see the explanation of FIG. 4). As a result, the control program recognizes that the transfer is completed (S2 in FIG. 5), and then determines whether or not the value of the shift register 28 is the return data “0010” (S3 in FIG. 5).

今、第5図の〜の動作により、従装置15のシフト
レジスタ30にセットされた返信データ「0100」が正しく
主装置14のシフトレジスタ28に入力したため、第5図S3
の判定はYESとなり、主装置14での送信データの転送動
作を正常に終了する。
Since the reply data "0100" set in the shift register 30 of the slave device 15 has been correctly input to the shift register 28 of the main device 14 by the operations of to in FIG.
The determination is YES, and the transfer operation of the transmission data in the main device 14 ends normally.

一方、従装置15側では、前記第5図の動作の終了
後、シフトカウンタ29が「00」になり、これにより送信
データの転送が完了し、従装置15側の制御プログラムに
シリアル割込がかかる。これにより、制御プログラム
は、一定時間内に他の通信データが入力しなかったら
(この理由は後述する)、シフトレジスタ30に入力した
送信データ「0100」を特には図示しないRAMに取り込
み、その後の処理を行う(第5図S5)。
On the other hand, on the slave device 15 side, after the operation of FIG. 5 is completed, the shift counter 29 becomes "00", whereby the transfer of the transmission data is completed, and the serial interrupt is sent to the control program on the slave device 15 side. It takes. As a result, the control program fetches the transmission data “0100” input to the shift register 30 into a RAM (not shown) if no other communication data is input within a certain period of time (the reason for this will be described later). Processing is performed (S5 in FIG. 5).

次に、異常動作時の動作につき説明する。この場合、
第9図に示すように前記正常動作時と同様に、主装置14
から従装置15に送信データを転送すると同時に、従装置
15から主装置14に返信データを転送する。そして、主装
置14側で返信データが異常と判定されることにより、異
常が認識される。この場合、従装置15側では送信データ
は無視される。続いて、主装置14から従装置15にシフト
タイミング調整データが転送され、後述するように従装
置15のシフトレジスタ30を受信可能状態にする。このと
き、従装置15から主装置14にシフトレジスタ30内のデー
タが転送されるがこれは無視される。この動作の後、主
装置14から従装置15に転送を失敗した送信データを再送
する。これにより、従装置15でこの送信データが正常に
受信される。このときも従装置15からの転送データは主
装置14では無視される。以上の動作を第6図及び第7図
の動作例に従い説明する。なお、第9図の〜
(′)、〜及び〜は、第6図又は第7図の同
じ番号の各処理に対応している。
Next, the operation at the time of abnormal operation will be described. in this case,
As shown in FIG. 9, as in the normal operation, the main unit 14
From the slave device 15 to the transmission data at the same time
The reply data is transferred from 15 to the main device 14. Then, when the main device 14 side determines that the reply data is abnormal, the abnormality is recognized. In this case, the transmission data is ignored on the slave device 15 side. Subsequently, the shift timing adjustment data is transferred from the master device 14 to the slave device 15, and the shift register 30 of the slave device 15 is put into a receivable state as described later. At this time, the data in the shift register 30 is transferred from the slave device 15 to the master device 14, but this is ignored. After this operation, the transmission data that has failed to be transferred is retransmitted from the main device 14 to the slave device 15. As a result, the slave device 15 receives this transmission data normally. Also at this time, the transfer data from the slave device 15 is ignored by the main device 14. The above operation will be described with reference to the operation examples of FIGS. 6 and 7. Incidentally, in FIG.
('),-And-correspond to each process having the same number in FIG. 6 or FIG.

第6図は、主装置14から従装置15にシフトクロックSC
/TOが正しく転送されず、従装置15で正しいシフト動作
が行われない場合の動作例である。
FIG. 6 shows the shift clock SC from the master device 14 to the slave device 15.
This is an operation example when / TO is not transferred correctly and the slave device 15 does not perform a correct shift operation.

始めに、第5図の場合と同様に、第6図(a)
(1段目)のように、主装置14ではシフトレジスタ28の
B3〜B0に送信データ「0100」が予めセットされる。ま
た、従装置15内ではシフトレジスタ30のB3〜B0に、返信
データ「0010」がセットされている。
First, as in the case of FIG. 5, FIG. 6 (a)
As shown in (first stage), in the main device 14, the shift register 28
Transmission data “0100” is preset in B 3 to B 0 . Further, in the slave device 15, reply data “0010” is set in B 3 to B 0 of the shift register 30.

この状態で、主装置14の制御プログラムからシリアル
転送起動がかかり、シフトカウンタ29が「00」をクリア
した後、同図(2段目)のようにシフトクロックSC/T
Oにより、主装置14では従装置15にシフトレジスタ28の
送信データを1ビット転送し、従装置15からの1ビット
の返信データを受信する(第6図(a)S1)、同時に、
従装置15では、シフトクロックSC/TOの受信によりシリ
アル転送起動がかかり、シフトカウンタ31をクリアした
後、上記シフトクロックSC/TOに従って主装置14からの
1ビットの送信データを受信し、主装置14にシフトレジ
スタ30の返信データを1ビット転送する(第6図(a)
S4)。
In this state, the serial transfer is activated from the control program of the main unit 14, and after the shift counter 29 clears "00", the shift clock SC / T as shown in the same figure (second stage)
By O, the master device 14 transfers 1 bit of the transmission data of the shift register 28 to the slave device 15 and receives the 1-bit reply data from the slave device 15 (FIG. 6 (a) S1). At the same time,
The slave device 15 is activated by serial transfer upon receipt of the shift clock SC / TO, clears the shift counter 31, and then receives 1-bit transmission data from the main device 14 in accordance with the shift clock SC / TO. Transfer the reply data of the shift register 30 by 1 bit to 14 (Fig. 6 (a))
S4).

次に、第6図(a)では、主装置14では上記と同
様に1ビットシフトするが、従装置15ではシフトクロッ
クSC/TOにノイズが発生する等してシフトせず、シフト
レジスタ30及びシフトカウンタ31の内容は変化しない。
Next, in FIG. 6 (a), the master device 14 shifts by 1 bit in the same manner as described above, but the slave device 15 does not shift because noise is generated in the shift clock SC / TO, and the shift register 30 and The contents of the shift counter 31 do not change.

続いて、第6図(a)、では、前記の場合と同
様の動作がシフトクロックSC/TOに同期して繰り返され
る(第6図(a)S1、S4)。
Then, in FIG. 6 (a), the same operation as the above case is repeated in synchronization with the shift clock SC / TO (FIG. 6 (a) S1, S4).

の動作が終了した状態では、主装置14のシフトカウ
ンタ29は「00」になるため、送信データの転送が完了
し、制御プログラムにシリアル割込がかかるが、従装置
15ではシフトカウンタ31はまだ「11」であるため転送を
完了していない。
When the operation of is completed, the shift counter 29 of the main device 14 becomes "00", so the transfer of the transmission data is completed and the control program is serially interrupted.
In 15, the shift counter 31 is still “11”, so the transfer is not completed.

そして、主装置14の制御プログラムは転送完了を認識
し(第6図(a)S2)、その後、シフトレジスタ28の値
が返信データ「0010」であるか否かを判定する(第6図
(a)S3)。
Then, the control program of the main unit 14 recognizes the completion of transfer (S2 in FIG. 6 (a)), and then determines whether or not the value of the shift register 28 is the reply data “0010” (FIG. 6 ( a) S3).

今、第6図(a)の〜の動作では、処理で従装
置15から主装置14に正しくシフトされた返信データが入
力していないため、主装置14のシフトレジスタ28に入力
した返信データは、正しいデータ「0010」となっていな
いため、第6図(a)S3の判定はNOとなる。
Now, in the operations (1) to (6) of FIG. 6, since the reply data correctly shifted from the slave device 15 to the master device 14 is not input in the process, the reply data input to the shift register 28 of the master device 14 is Since the correct data “0010” has not been obtained, the determination at S3 in FIG. 6 (a) is NO.

この結果、主装置14では、第6図(b)のように、
シフトレジスタ28にシフトタイミング調整データ「111
1」が設定される(第6図(b)S6)。なお、このと
き、前記で転送は一度完了しているため、シフトカウ
ンタ29の値は「00」である。
As a result, in the main device 14, as shown in FIG.
Shift timing adjustment data “111” is stored in the shift register 28.
1 "is set (S6 in FIG. 6 (b)). At this time, the value of the shift counter 29 is "00" because the transfer has been completed once.

以後、第6図(b)〜において、シフトクロック
SC/TOに同期して1ビットずつ計4ビットのシフトタイ
ミング調整データが、主装置14のシフトレジスタ28から
従装置15のシフトレジスタ30に転送される。
After that, in FIG. 6 (b) to FIG.
A total of 4 bits of shift timing adjustment data are transferred from the shift register 28 of the master device 14 to the shift register 30 of the slave device 15 in synchronization with the SC / TO.

従装置15では、第6図(b)の処理の終了時点でシ
フトカウンタ31が「00」となり、転送完了のシリアル割
込により制御プログラムに制御が移る。制御プログラム
では、その後、上記シフトタイミング調整データを空受
信するための受信時間を計測する。そして、上記受信時
間の経過後、制御プログラムからシリアル転送起動がか
かり(第4図(a)参照)、第6図(b)のようにシ
フトカウンタ31がクリアされる。
In the slave device 15, the shift counter 31 becomes “00” at the end of the process of FIG. 6B, and the control is transferred to the control program by the serial interrupt of the transfer completion. In the control program, thereafter, the reception time for receiving the shift timing adjustment data in an idle state is measured. Then, after the reception time elapses, serial transfer is activated from the control program (see FIG. 4A), and the shift counter 31 is cleared as shown in FIG. 6B.

主装置14では、シフトタイミング調整データの転送を
終了した第6図(b)の後、シフトカウンタ29が「0
0」になるため、転送完了のシリアル割込により制御プ
ログラムに制御が移っている。そして、制御プログラム
は、第6図(a)〜で転送を失敗した送信データ
「0100」を、第6図(b)のように、改めてシフトレ
ジスタ28に設定する(第6図(b)S8)。
In the main unit 14, after the transfer of the shift timing adjustment data is completed in FIG.
Since it becomes "0", the control is transferred to the control program by the serial interrupt of the transfer completion. Then, the control program sets the transmission data "0100", which has failed to be transferred in FIG. 6 (a) to the shift register 28, as shown in FIG. 6 (b) (S8 in FIG. 6 (b)). ).

この動作の後、主装置14ではシリアル転送起動がかか
り(第6図(b)S9)、第6図(b)のようにシフト
クロックSC/TOに同期して1ビットずつ計4ビットの送
信データが、主装置14のシフトレジスタ28から従装置15
のシフトレジスタ30に再送される。
After this operation, serial transfer is activated in the main unit 14 (S9 in FIG. 6 (b)), and as shown in FIG. 6 (b), a total of 4 bits are transmitted one bit at a time in synchronization with the shift clock SC / TO. Data is transferred from the shift register 28 of the master device 14 to the slave device 15
It is retransmitted to the shift register 30 of.

この動作の後は、主装置14では制御プログラムに割込
はかからず、データ転送処理を終了する。
After this operation, the main device 14 does not interrupt the control program and ends the data transfer process.

一方、従装置15では、上記4ビットの再送データを受
信した後、転送終了のシリアル割込により制御プログラ
ムに戻る。これにより、制御プログラムは、一定時間内
に他の通信データが入力しなかったら、シフトレジスタ
30に入力した送信データ「0100」を特には図示しないRA
Mに取り込み、その後の処理を行う(第6図(b)S1
1)。
On the other hand, in the slave device 15, after receiving the 4-bit resend data, the process returns to the control program by the serial interrupt at the end of transfer. As a result, the control program, if no other communication data is input within the fixed time, shift register
The transmission data “0100” input to 30 is not shown in the RA
Import to M and perform the subsequent processing (Fig. 6 (b) S1
1).

次に、第7図は、主装置14内で何らかの原因(ノイズ
等)で正しいシフト動作が行われない場合の動作例であ
る。
Next, FIG. 7 shows an operation example in the case where the correct shift operation is not performed in the main device 14 for some reason (noise or the like).

この場合は、第7図(a)において、前記第6図
(a)とは逆に、主装置14でシフトが行われず、シフ
トレジスタ28及びシフトカウンタ29の内容が変化しな
い。
In this case, in FIG. 7 (a), contrary to FIG. 6 (a), the main device 14 does not shift and the contents of the shift register 28 and the shift counter 29 do not change.

従って、主装置14では、〜では転送を完了せず、
1タイミングが多い′で転送を完了する。そして、こ
の場合、シフトレジスタ28に入力した従装置15からの返
信データは、従装置15でセットされたデータ「0010」と
異なるため、第7図(a)S3の判定がNOとなる。
Therefore, in the main device 14, the transfer is not completed in
The transfer is completed when there is one more timing '. Then, in this case, the reply data input from the slave device 15 to the shift register 28 is different from the data “0010” set in the slave device 15, and therefore the determination in S3 of FIG. 7 (a) is NO.

一方、従装置15では、第7図(a)の処理の後に転
送完了のシリアル割込がかかり、制御プログラムで認識
された後(第7図(a)S12)、シフトカウンタ31がク
リアされ(第7図(a)S13)、シフトレジスタ30は受
信可能状態となる。
On the other hand, in the slave device 15, after the processing of FIG. 7A, a serial interrupt for transfer completion is applied, and after being recognized by the control program (S12 of FIG. 7A), the shift counter 31 is cleared ( In FIG. 7 (a) S13), the shift register 30 is in a receivable state.

以上の動作の後は、第6図(b)の場合と同様にし
て、第7図(b)で〜の処理が行われ、主装置14か
ら従装置15に、シフトタイミング調整データの転送及び
送信データの再送が行われる。
After the above operation, the processes of to are performed in FIG. 7B as in the case of FIG. 6B to transfer the shift timing adjustment data from the main device 14 to the slave device 15. The transmission data is retransmitted.

〔発明の効果〕〔The invention's effect〕

本発明によれば、送信側装置から受信側装置に前記所
定データ数単位で通信データを転送すると同時に、受信
側装置から送信側装置に同数の所定の返信データが転送
され、この返信データを送信側装置内の返信データ監視
手段で監視することにより、同期信号の異常を容易に検
出することが可能となる。
According to the present invention, the communication data is transferred from the transmission side device to the reception side device in the unit of the predetermined number of data, and at the same time, the same number of predetermined reply data is transferred from the reception side device to the transmission side device and the reply data is transmitted. By monitoring the reply data monitoring means in the side device, it is possible to easily detect the abnormality of the synchronization signal.

そして、異常が検出された場合、送信側装置からデー
タ受信手段にダミーのタイミング調整データを送出し
て、データ受信手段を受信可能状態にした後、異常発生
時の通信データをデータ受信手段に再送することによ
り、正しい通信データを受信側装置に確実かつ迅速に転
送することが可能となる。
Then, when an abnormality is detected, the transmission side device sends dummy timing adjustment data to the data receiving means to make the data receiving means ready for reception, and then retransmits the communication data when the abnormality occurs to the data receiving means. By doing so, correct communication data can be surely and quickly transferred to the receiving side device.

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

第1図は、本発明のブロック図、 第2図は、本発明の実施例の全体構成図、 第3図は、シリアル転送部分の構成図、 第4図は、シリアル転送の基本動作タイミングチャー
ト、 第5図は、正常動作時の説明図、 第6図(a)、(b)は、従装置でシフトしない場合の
説明図、 第7図(a)、(b)は、主装置でシフトしない場合の
説明図、 第8図は、正常動作時の概念図、 第9図は、異常動作時の概念図である。 1……送信側装置、 2……データ送信手段、 3……同期信号、 4……通信データ、 5……受信側装置、 6……データ受信手段、 7……返信データ、 8……返信データ送信手段、 9……返信データ受信手段、 10……返信データ監視手段、 11……タイミング調整データ、 12……タイミング調整データ送信手段、 13……データ再送手段.
1 is a block diagram of the present invention, FIG. 2 is an overall configuration diagram of an embodiment of the present invention, FIG. 3 is a configuration diagram of a serial transfer portion, and FIG. 4 is a basic operation timing chart of serial transfer. , FIG. 5 is an explanatory diagram of normal operation, FIGS. 6 (a) and 6 (b) are explanatory diagrams when the slave device does not shift, and FIGS. 7 (a) and 7 (b) are main devices. FIG. 8 is a conceptual diagram when no shift is performed, FIG. 8 is a conceptual diagram during normal operation, and FIG. 9 is a conceptual diagram during abnormal operation. 1 ... Sending side device, 2 ... Data sending means, 3 ... Sync signal, 4 ... Communication data, 5 ... Receiving side device, 6 ... Data receiving means, 7 ... Reply data, 8 ... Reply Data sending means, 9 ... Reply data receiving means, 10 ... Reply data monitoring means, 11 ... Timing adjustment data, 12 ... Timing adjustment data sending means, 13 ... Data resending means.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 橘高 幸恵 神奈川県横浜市港北区新横浜3丁目9番 18号 富士通第一通信ソフトウェア株式 会社内 (72)発明者 小野寺 宏文 神奈川県横浜市港北区新横浜3丁目9番 18号 富士通第一通信ソフトウェア株式 会社内 (72)発明者 藤堂 正廣 神奈川県横浜市港北区新横浜3丁目9番 18号 富士通第一通信ソフトウェア株式 会社内 (72)発明者 高橋 一郎 神奈川県横浜市港北区新横浜3丁目9番 18号 富士通第一通信ソフトウェア株式 会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Yukie Tachibana Taka 3-9-18 Shin-Yokohama, Kohoku-ku, Yokohama-shi, Kanagawa Prefecture Fujitsu First Communication Software Co., Ltd. (72) Hirofumi Onodera 3 Shin-Yokohama, Kohoku-ku, Yokohama, Kanagawa Prefecture Fujitsu 9 Communications Software Co., Ltd. (72) Inventor Masahiro Todo 3-9-18 Shin-Yokohama, Kohoku-ku, Yokohama, Kanagawa Prefecture Masahiro Todo Fujitsu 1 Communications Software Co., Ltd. (72) Inventor Ichiro Takahashi Kanagawa 3-9-18 Shin-Yokohama, Kohoku-ku, Yokohama-shi Fujitsu Daiichi Communication Software Co., Ltd.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】送信側装置(1)内のデータ送信手段
(2)から同期信号(3)と共に該同期信号(3)に同
期して所定データ数の通信データ(4)を受信側装置
(5)に直列転送し、該受信側装置内のデータ受信手段
(6)により前記同期信号(3)に同期して前記所定デ
ータ数の通信データ(4)を受信する通信処理方式にお
いて、 前記受信側装置(5)内に、前記同期信号(3)に同期
して前記所定データ数と同数の返信データ(7)を前記
送信側装置(1)に直列転送する返信データ送信手段
(8)を有し、 前記送信側装置(1)内に、 前記同期信号(3)に同期して前記所定データ数の返信
データ(7)を受信する返信データ受信手段(9)と、 該手段により前記所定データ数の返信データ(7)の受
信毎に該返信データに異常が発生したか否かを監視する
返信データ監視手段(10)と、 該手段で前記返信データ(7)の異常が検出された場合
に、前記データ受信手段(6)を受信可能状態にさせる
ためのタイミング調整データ(11)を該データ受信手段
(6)に直列転送するタイミング調整データ送信手段
(12)と、 該タイミング調整データ(11)の送信後、前記返信デー
タ(7)の異常が検出された時点の前記所定データ数の
通信データ(4)を前記受信側装置(5)に再送するデ
ータ再送手段(13)と、 を有することを特徴とする通信異常処理方式。
1. A reception side device (1) receives a synchronization signal (3) from a data transmission means (2) in a transmission side device (1) and a predetermined number of communication data (4) in synchronization with the synchronization signal (3). In the communication processing method, the data is transferred serially to 5), and the predetermined number of communication data (4) is received by the data receiving means (6) in the receiving side device in synchronization with the synchronization signal (3). In the side device (5), reply data transmitting means (8) for serially transferring the same number of reply data (7) as the predetermined number of data to the sending device (1) in synchronization with the synchronization signal (3). And a reply data receiving means (9) for receiving the predetermined number of reply data (7) in synchronization with the synchronization signal (3) in the transmitting side device (1), and the predetermined data by the means. Every time the reply data (7) of the number of data is received, there is an abnormality in the reply data. Reply data monitoring means (10) for monitoring whether or not it has occurred, and for making the data receiving means (6) in a receivable state when an abnormality of the reply data (7) is detected by the means. A timing adjustment data transmitting means (12) for serially transferring the timing adjustment data (11) to the data receiving means (6), and an abnormality of the reply data (7) is detected after the timing adjustment data (11) is transmitted. And a data resending means (13) for resending the predetermined number of communication data (4) to the receiving side device (5) at the point of time.
JP1094338A 1989-04-15 1989-04-15 Communication error processing method Expired - Lifetime JP2503270B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1094338A JP2503270B2 (en) 1989-04-15 1989-04-15 Communication error processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1094338A JP2503270B2 (en) 1989-04-15 1989-04-15 Communication error processing method

Publications (2)

Publication Number Publication Date
JPH02274031A JPH02274031A (en) 1990-11-08
JP2503270B2 true JP2503270B2 (en) 1996-06-05

Family

ID=14107504

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1094338A Expired - Lifetime JP2503270B2 (en) 1989-04-15 1989-04-15 Communication error processing method

Country Status (1)

Country Link
JP (1) JP2503270B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3473951B2 (en) 2001-06-01 2003-12-08 Necマイクロシステム株式会社 Data processing device and system
JP2016111672A (en) * 2014-11-27 2016-06-20 株式会社沖データ Communication method, communication system, and communication device

Also Published As

Publication number Publication date
JPH02274031A (en) 1990-11-08

Similar Documents

Publication Publication Date Title
US4988990A (en) Dual master implied token communication system
US4539677A (en) Multiple access data communication system
AU598917B2 (en) Improvements in or relating to data transmission systems and methods of transmitting data
US5166678A (en) Dual master implied token communication system
JP2503270B2 (en) Communication error processing method
JP2003527765A (en) Method and system for flood communication
JPH05110542A (en) Data transmission system
JPH05227218A (en) Propagation delay measurement system for packet switching network
KR0165440B1 (en) Polling communication method
JP2756304B2 (en) Communication control device
KR100567033B1 (en) Synchronous serial communication method with fixed master and slave
JP2581180B2 (en) Time information transmission method
KR950001520B1 (en) Signalling terminal group bus communication protocol of message transfer part using common channel signalling no.7
JPH10111842A (en) Device for receiving synchronization serial transmission data
JPS62249542A (en) Data transfer system
JPS6248831A (en) Communication control equipment
JPH05303537A (en) Multi-address communication circuit
JP2758762B2 (en) Auto fallback apparatus and method
JP2004147081A (en) Radio communication system and radio communication equipment
JPS6017278B2 (en) Selection signal transmission method in electronic exchange
JPH08307398A (en) In-device control method
JPS61157047A (en) Packet information monitoring method
JPS6248832A (en) Communication control equipment
JPH01136498A (en) Information transmitter for status monitor
JPS6161147B2 (en)