JPH03181244A - Synchronizing communication controller - Google Patents
Synchronizing communication controllerInfo
- Publication number
- JPH03181244A JPH03181244A JP1319912A JP31991289A JPH03181244A JP H03181244 A JPH03181244 A JP H03181244A JP 1319912 A JP1319912 A JP 1319912A JP 31991289 A JP31991289 A JP 31991289A JP H03181244 A JPH03181244 A JP H03181244A
- Authority
- JP
- Japan
- Prior art keywords
- synchronization
- synchronous communication
- control device
- data
- invalid
- 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.)
- Ceased
Links
Landscapes
- Detection And Prevention Of Errors In Transmission (AREA)
- Communication Control (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はデータ端末間の通信に使用される同期式通信制
御装置に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a synchronous communication control device used for communication between data terminals.
データ端末間における通信には、一般に非同期式通信が
使用されるが、より信頼性を得るために同期式通信が使
用される。Asynchronous communication is generally used for communication between data terminals, but synchronous communication is used to achieve greater reliability.
従来、この種の同期式通信制御装置は、受信データの同
期ずれの同期ずれ障害が発生した場合、それ以降に無効
コードを受信しても、同期獲得モードへの移行が設定さ
れるまではそのデータを外部回路に通知し続ける構成と
なっていた。Conventionally, in this type of synchronous communication control device, when an out-of-synchronization failure due to out-of-synchronization of received data occurs, even if an invalid code is received after that, the synchronous communication control device does not accept the error code until the transition to synchronization acquisition mode is set. The configuration was such that data was continuously sent to external circuits.
上述した従来の同期式通信制御装置では、同期ずれの障
害が発生した後も、外部回路で障害検出して、同期式通
信制御装置に、同期獲得モードへの移行を、設定するま
では、無効コードを外部回路に通知し続けるため、障害
検出が遅れるという欠点がある。In the conventional synchronous communication control device described above, even after an out-of-synchronization failure occurs, the failure is disabled until the failure is detected by an external circuit and the synchronous communication control device is set to transition to synchronization acquisition mode. Since the code is continuously notified to the external circuit, there is a drawback that failure detection is delayed.
本発明の同期式通信制御装置は、データ端末間における
同期式通信を制御する同期式通信制御装置において、受
信データに同期ずれの障害が発生した場合に受信した前
記受信データの無効コードの数をカウントしてその無効
コードの数が予め定められた一定値を超えると自動的に
同期検出モードに移行するモード移行手段を有している
。A synchronous communication control device of the present invention is a synchronous communication control device that controls synchronous communication between data terminals. It has a mode transition means that counts and automatically shifts to a synchronization detection mode when the number of invalid codes exceeds a predetermined constant value.
次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.
第1図は本発明の一実施例の示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.
第1図において、本実施例の同期式通信制御装置1は外
部回路(図示省略)からの同期検出命令信号dによって
外部クロックCに従って送信回路すおよび受信回線aの
データを送受信する同期回路2と、受信データを同期回
路3から受信データ・バスfを介して蓄積し、外部回路
へ受信データ・バスkを介して送出する受信バッファ3
と、外部回路から送信データ・バスlを介して送られた
送信データを蓄積する送信バ・・lノア4と、予めデー
タ・バスjを介して外部回路から送られてきた無効コー
ドデータを記憶するレジスタ6と、外部回路からの受信
割込み信号eによって受信データとレジスタ6からの無
効コードhとを比較する比較器5と、予めデータ・バス
qを介して外部回路から送られてきた無効コード連続受
信許容回数を記憶するレジスタつと、比較器5からの無
効コード検出のセット信号mによって計数を加算してゆ
くカウンタ7と、カウンタ7からの無効コード連続回数
nとレジスタ9からの無効コード連続受信許容回数pと
を比較して一致すると無効コード受信割込み信号Sを外
部回路、同期回路2およびカウンタ7へ送出する比較器
8とを有して構成している。In FIG. 1, a synchronous communication control device 1 according to the present embodiment has a synchronous circuit 2 that transmits and receives data on a transmitting circuit and a receiving line a according to an external clock C in response to a synchronization detection command signal d from an external circuit (not shown). , a receive buffer 3 that stores received data from the synchronous circuit 3 via a receive data bus f and sends it to an external circuit via a receive data bus k.
, a transmission bar 4 which stores the transmission data sent from the external circuit via the transmission data bus l, and a transmission bar 4 which stores the invalid code data sent from the external circuit via the data bus j in advance. a comparator 5 that compares received data with an invalid code h from the register 6 in response to a reception interrupt signal e from an external circuit, and an invalid code sent in advance from the external circuit via a data bus q. A register that stores the number of consecutive receptions allowed, a counter 7 that adds up the count based on the invalid code detection set signal m from the comparator 5, the number n of consecutive invalid codes from the counter 7, and the consecutive invalid code from the register 9. It is comprised of a comparator 8 which compares the number of allowed receptions p and sends an invalid code reception interrupt signal S to an external circuit, a synchronization circuit 2, and a counter 7 when they match.
次に、本実施例の動作について説明する。Next, the operation of this embodiment will be explained.
本実施例の同期式通信制御装置1を動作させるために、
まず外部回路(図示省略)からデータ・バスjによりレ
ジスタ6に無効コードを予め設定し、データ・バスqか
らレジスタ9に無効コード連続受信許容回数を予め設定
し、同期検出命令信号dを発生させると、同期回路2で
、同期文字検出を始める。In order to operate the synchronous communication control device 1 of this embodiment,
First, an invalid code is preset in register 6 via data bus j from an external circuit (not shown), and the allowable number of consecutive invalid code receptions is preset in register 9 from data bus q, and a synchronization detection command signal d is generated. Then, the synchronous circuit 2 starts detecting synchronous characters.
同期文字を検出すると、同期回路2は外部クロックCに
従って、一定時間ごとに受信回線aがらの受信データを
受信して受信バッファ3に書込んだ後、受信割込み信号
eを発生させて外部回路へ送出する。この受信割込み信
号eにより比較器5でレジスタ6で予め設定された無効
コードhと受信バッファ3からの受信データiとが比較
され、その結果が一致すればセット信号mにより、カウ
ンタ7がインクリメントされる。又、不一致ならば、リ
セット信号rにより、カウンタ7かクリアーされる。一
方、受信割込み信号eを受けた外部回路は、期待するコ
ードを受信データ・バスkから受けると同期検出命令信
号dを発生させて、同期回路2を同期検出モードに入ら
せる。又、外部回路から送信バッファ4に書込まれたデ
ータは、同期回路2により外部クロックCに同期して送
信回線すに出力される。When a synchronization character is detected, the synchronization circuit 2 receives the received data from the reception line a at regular intervals according to the external clock C, writes it to the reception buffer 3, and then generates a reception interrupt signal e to send the data to the external circuit. Send. The receive interrupt signal e causes the comparator 5 to compare the invalid code h preset in the register 6 with the receive data i from the receive buffer 3, and if the results match, the counter 7 is incremented by the set signal m. Ru. If they do not match, the counter 7 is cleared by the reset signal r. On the other hand, when the external circuit that has received the reception interrupt signal e receives the expected code from the reception data bus k, it generates the synchronization detection command signal d and causes the synchronization circuit 2 to enter the synchronization detection mode. Further, the data written in the transmission buffer 4 from the external circuit is outputted to the transmission line by the synchronization circuit 2 in synchronization with the external clock C.
次に、受信データに同期ずれ障害が発生した場合には、
外部回路は期待するコードを受信できなくなるため、同
期検出命令信号dを発生しなくなる。一方、受信回線a
がアイドル状態になると、同期回路2は無効コードが受
信バッファ3に書き込まれるようになり、比較器5で連
続して無効コードを検出して、カウンタ7の値が増えて
ゆき、比較器8で予め定めた無効コード連続受信許容回
数pとカウンタ7の値nとが一致した時、無効コード受
信割込み信号Sが外部回路へ出力される。Next, if an out-of-sync failure occurs in the received data,
Since the external circuit is no longer able to receive the expected code, it no longer generates the synchronization detection command signal d. On the other hand, receiving line a
When the synchronous circuit 2 becomes idle, the invalid code is written to the reception buffer 3, the comparator 5 continuously detects invalid codes, the value of the counter 7 increases, and the comparator 8 writes the invalid code to the reception buffer 3. When the predetermined allowable number of consecutive invalid code receptions p and the value n of the counter 7 match, an invalid code reception interrupt signal S is output to an external circuit.
この無効コード受信割込み信号Sによりカウンタ7はク
リアーされ、又、同期回路2には外部回路から同期検出
命令信号dが入り、同期検出モードに移行する。一方、
無効コード受信割込み信号Sと受けた外部回路は障害処
理を行う。The counter 7 is cleared by this invalid code reception interrupt signal S, and a synchronization detection command signal d is input from an external circuit to the synchronization circuit 2, so that the synchronization detection mode is entered. on the other hand,
The external circuit that receives the invalid code reception interrupt signal S performs fault processing.
以上説明したように本発明は、受信データに同期ずれの
同期障害が発生した場合に受信した前記受信データ無効
コードの数をカウントしてその無効コードの数が予め定
められた一定値を超えると自動的に同期検出コードに移
行するモード移行手段を有することにより、同期ずれの
障害により、無効コードを規定数以上受信した場合、自
動的に同期検出モードに入るので、障害を早目に検出し
、又復旧できる効果がある。As explained above, the present invention counts the number of received data invalid codes received when a synchronization failure due to synchronization error occurs in received data, and when the number of invalid codes exceeds a predetermined constant value, By having a mode transition means that automatically switches to a synchronization detection code, if a specified number of invalid codes or more are received due to an out-of-synchronization failure, the system automatically enters the synchronization detection mode, allowing early detection of failures. , it also has the effect of restoring.
第1図は本発明の一実施例の示すブロック図である。
1・・・同期式通信制御装置、2・・・同期回路、3・
・・受信バッファ、4・・・送信バッファ、5.8・・
・比較器、6.9・・・レジスタ、7・・・カウンタ、
10゜11・・・OR回路、a・・・受信回線、b・・
・送信回線、C・・・外部クロック、d・・・同期検出
命令信号、e・・・受信割込み信号、f、i、k・・・
受信データバス、g+ 1・・・送信データ・バス、
h・・・無効コード、j。
q・・・データ・バス、m・・・セット信号、n・・・
無効コード連続受信回数、p・・・無効コード連続受信
許容回数、r・・・リセット信号、S・・・無効コード
受信割込み信号。FIG. 1 is a block diagram showing an embodiment of the present invention. 1... Synchronous communication control device, 2... Synchronous circuit, 3...
...Receive buffer, 4...Send buffer, 5.8...
・Comparator, 6.9...Register, 7...Counter,
10゜11...OR circuit, a...receiving line, b...
- Transmission line, C...external clock, d...synchronization detection command signal, e...reception interrupt signal, f, i, k...
Receive data bus, g+1... transmit data bus,
h...Invalid code, j. q...Data bus, m...Set signal, n...
Number of consecutive invalid code receptions, p... Allowable number of consecutive invalid code receptions, r... Reset signal, S... Invalid code reception interrupt signal.
Claims (1)
制御装置において、受信データに同期ずれの障害が発生
した場合に受信した前記受信データの無効コードの数を
カウントしてその無効コードの数が予め定められた一定
値を超えると自動的に同期検出モードに移行するモード
移行手段を有し、前記無効コードの予め定められた期間
以上の受信を防ぐことを特徴とする同期式通信制御装置
。In a synchronous communication control device that controls synchronous communication between data terminals, when an out-of-synchronization failure occurs in received data, the number of invalid codes in the received data is counted and the number of invalid codes is determined in advance. A synchronous communication control device characterized by having a mode transition means that automatically shifts to a synchronous detection mode when a predetermined constant value is exceeded, and prevents reception of the invalidation code for a predetermined period or longer.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1319912A JPH03181244A (en) | 1989-12-08 | 1989-12-08 | Synchronizing communication controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1319912A JPH03181244A (en) | 1989-12-08 | 1989-12-08 | Synchronizing communication controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH03181244A true JPH03181244A (en) | 1991-08-07 |
Family
ID=18115620
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1319912A Ceased JPH03181244A (en) | 1989-12-08 | 1989-12-08 | Synchronizing communication controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH03181244A (en) |
-
1989
- 1989-12-08 JP JP1319912A patent/JPH03181244A/en not_active Ceased
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| AU493254B2 (en) | Data communication system employing a series loop | |
| EP0281307B1 (en) | Asynchronous interface and method for coupling data between a data module and a serial asynchronous peripheral | |
| EP0035789B1 (en) | Method and arrangement for loop initialization in a peer-to-peer serial loop communication system | |
| JPH0771125B2 (en) | Data communication method and data communication system | |
| JP2618890B2 (en) | Abnormal transmission detection method | |
| KR100286536B1 (en) | Arbitration apparatus of transrmission for multidrop communication system | |
| JPH0358217B2 (en) | ||
| KR100267344B1 (en) | Apparatus and method for collision protecting of transmitting data in hdlc bus structured switching system | |
| JPS58225738A (en) | distributed transmission system | |
| KR970002814B1 (en) | Control unit of physical layer management part | |
| JP3160927B2 (en) | Loop test circuit | |
| JPH0556049A (en) | Communication controller | |
| JPH05183541A (en) | Transmission line duplex system | |
| JPH0821939B2 (en) | Signal transmission method | |
| JPH04304737A (en) | Fail safe method for multiplex transmission method | |
| JPH0528538B2 (en) | ||
| JPS6294035A (en) | CAI data line control method | |
| JPH04278742A (en) | Method of detecting error in reception data | |
| JPH04183131A (en) | Line changeover method | |
| JPH0834509B2 (en) | Multiple monitoring method | |
| JPH07154302A (en) | Transmission line switching device | |
| JPH044340U (en) | ||
| JPH05146051A (en) | Power system protection system | |
| JPH05236562A (en) | Alarm collection system | |
| JPS6423636A (en) | Signal protecting circuit |