JPH0683655A - Data transfer error detector - Google Patents

Data transfer error detector

Info

Publication number
JPH0683655A
JPH0683655A JP4230698A JP23069892A JPH0683655A JP H0683655 A JPH0683655 A JP H0683655A JP 4230698 A JP4230698 A JP 4230698A JP 23069892 A JP23069892 A JP 23069892A JP H0683655 A JPH0683655 A JP H0683655A
Authority
JP
Japan
Prior art keywords
data
parity
data transfer
error
personal computer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP4230698A
Other languages
Japanese (ja)
Inventor
Hiroshi Kuriyama
広志 栗山
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP4230698A priority Critical patent/JPH0683655A/en
Publication of JPH0683655A publication Critical patent/JPH0683655A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Correction Of Errors (AREA)

Abstract

PURPOSE:To surely detect in real time the errors caused by the transfer of data at the transmitter side with a simple configuration. CONSTITUTION:A data transfer error detector is provided with the parity generating circuits 4 and 5 which are provided in the transmitter/receiver devices and generate the parity bits when the data are transmitted and received to adds these parity bits to the data, and a comparator circuit 6 which is provided in a main transmitter/receiver device and compares the transmission/reception data having the parity bits imparted by the respective parity generating circuits 4 and 5 with each other to detect the data transfer errors.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、マスタースレーブ間で
のデータ転送時におけるエラーを検出するデータ転送エ
ラー検出装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data transfer error detecting device for detecting an error during data transfer between master and slave.

【0002】[0002]

【従来の技術】例えば、各パーソナルコンピュータ間で
データ転送を行う場合、これらパーソナルコンピュータ
がそれぞれインテリジェンシーを有していれば、これら
パーソナルコンピュータはソフトウェアの処理で転送デ
ータの一部にパリティやチェックサムを付加してエラー
発生を監視する。
2. Description of the Related Art For example, when data is transferred between personal computers, if these personal computers have intelligence, these personal computers use software to process a part of the transferred data such as parity or checksum. Is added to monitor the error occurrence.

【0003】これに対してインテリジェンシーを有しな
い各パーソナルコンピュータ間でのデータ転送は、上記
のようにパリティチャック等のエラー発生の監視が行え
ない。これにより、ファクトリ・オートメーション(F
A)の現場等の外部からのノイズの影響を受けるところ
や断線の危険の高いところでは、エラー発生の監視が必
要不可欠であり、インテリジェンシーのないパーソナル
コンピュータは使用できない。
On the other hand, in data transfer between personal computers having no intelligence, it is not possible to monitor the occurrence of an error such as a parity check as described above. This enables factory automation (F
It is essential to monitor the occurrence of an error in a place such as A) where it is affected by noise from the outside or where there is a high risk of disconnection, and a personal computer without intelligence cannot be used.

【0004】又、エラー発生の監視は各パーソナルコン
ピュータのうち受信側のパーソナルコンピュータにおい
て行われており、送信側のパーソナルコンピュータにお
いてエラー発生の監視をするほうが再度のデータ転送等
にあたって処理しやすい。
Further, the error occurrence is monitored by the receiving side personal computer among the personal computers, and the error occurrence monitoring by the transmitting side personal computer is easier to process for data transfer again.

【0005】[0005]

【発明が解決しようとする課題】以上のようにインテリ
ジェンシーを有しない各パーソナルコンピュータ間で
は、データ転送にあたってパリティチェック等のエラー
発生の監視が行えない。
As described above, an error occurrence such as a parity check cannot be monitored during data transfer between personal computers having no intelligence.

【0006】そこで本発明は、簡単な構成でデータ転送
におけるエラー発生を送信側においてリアルタイムで確
実に検出できるデータ転送エラー検出装置を提供するこ
とを目的とする。
Therefore, an object of the present invention is to provide a data transfer error detection device which can detect an error occurrence in data transfer in real time with a simple structure.

【0007】[0007]

【課題を解決するための手段】本発明は、各送受信装置
の間でデータ転送する際のエラーを検出するデータ転送
エラー検出装置において、各送受信装置に設けられデー
タの送受信時にパリティビットを発生してデータに付加
する複数のパリティ発生回路と、各送受信装置のうち主
送受信装置に設けられ各パリティ発生回路によりパリテ
ィビットが付けられた送受信の各データを比較してエラ
ーを検出する比較回路とを備えて上記目的を達成しよう
とするデータ転送エラー検出装置である。
SUMMARY OF THE INVENTION The present invention is a data transfer error detecting device for detecting an error in data transfer between transmitting and receiving devices, wherein a parity bit is generated when transmitting and receiving data provided in each transmitting and receiving device. A plurality of parity generation circuits for adding data to the data, and a comparison circuit that is provided in the main transmission / reception device of each transmission / reception device and compares each transmission / reception data to which a parity bit is added by each parity generation circuit to detect an error. A data transfer error detecting device is provided for the purpose of achieving the above object.

【0008】[0008]

【作用】このような手段を備えたことにより、各送受信
装置の間でデータ転送時に各送受信装置に設けられた各
パリティ発生回路はそれぞれパリティビットを発生して
送受信の各データに付加し、比較回路はこれら送受信装
置の各パリティ発生回路によりパリティビットが付けら
れた各データを比較してエラーを検出する。
By providing such means, each parity generation circuit provided in each transmission / reception device at the time of data transfer between each transmission / reception device generates a parity bit and adds it to each data of transmission / reception, and compares it. The circuit detects the error by comparing each data to which the parity bit is added by each parity generating circuit of these transmitting and receiving devices.

【0009】[0009]

【実施例】以下、本発明の一実施例について図面を参照
して説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

【0010】図1はデータ転送エラー検出装置の構成図
である。マスタのパーソナルコンピュータ1とスレーブ
のパーソナルコンピュータ2とはデータ転送バス3によ
り接続されている。
FIG. 1 is a block diagram of a data transfer error detecting device. The master personal computer 1 and the slave personal computer 2 are connected by a data transfer bus 3.

【0011】マスタのパーソナルコンピュータ1にはパ
リティ発生回路4が設けられてデータ転送バス3に接続
されるとともに、スレーブのパーソナルコンピュータ2
にはマスタと同様にパリティ発生回路5が設けられてデ
ータ転送バス3に接続されている。これらパリティ発生
回路4、5は共にデータ転送バス3に乗っているデータ
を取り込んでパリティビットを付加する機能を有してい
る。そして、マスタ側に設けられたパリティ発生回路4
の出力端子はマスタ側に設けられた比較回路6に接続さ
れ、又スレーブ側に設けられたパリティ発生回路5の出
力端子はパリティ転送線7を介してマスタ側に設けられ
た比較回路6に接続されている。なお、パリティ転送線
7にはバッファ8、9が接続されている。
A master personal computer 1 is provided with a parity generation circuit 4 and is connected to a data transfer bus 3, and a slave personal computer 2 is also provided.
Similarly to the master, a parity generating circuit 5 is provided and is connected to the data transfer bus 3. Both of the parity generation circuits 4 and 5 have a function of taking in the data on the data transfer bus 3 and adding a parity bit. The parity generation circuit 4 provided on the master side
Is connected to the comparison circuit 6 provided on the master side, and the output terminal of the parity generation circuit 5 provided on the slave side is connected to the comparison circuit 6 provided on the master side via the parity transfer line 7. Has been done. Buffers 8 and 9 are connected to the parity transfer line 7.

【0012】比較回路6はイクスクルーシブ・ノア回路
から構成されており、この比較回路6の一方の入力端子
にパリティ発生回路4の出力端子が接続されると共に他
方の入力端子にパリティ転送線7を介してパリティ発生
回路5の出力端子が接続されている。この比較回路6の
出力端子はJ型フリップフロップ10のJ端子に接続さ
れている。
The comparison circuit 6 is composed of an exclusive NOR circuit. The output terminal of the parity generation circuit 4 is connected to one input terminal of the comparison circuit 6 and the parity transfer line 7 is connected to the other input terminal. The output terminal of the parity generation circuit 5 is connected via. The output terminal of the comparison circuit 6 is connected to the J terminal of the J-type flip-flop 10.

【0013】このJ型フリップフロップ10にはクロッ
クclk が入力し、かつK端子にリセット信号が入力され
るようになっている。そして、このJ型フリップフロッ
プ10のQ端子からはエラー信号Eが出力されるように
なっている。なお、前記データ転送バス3にはマスタ側
及びスレーブ側にそれぞれバッファ11、12及び1
3、14が接続されている。次に上記の如く構成された
装置の作用について説明する。
A clock clk is input to the J-type flip-flop 10 and a reset signal is input to the K terminal. The error signal E is output from the Q terminal of the J-type flip-flop 10. The data transfer bus 3 has buffers 11, 12 and 1 on the master side and the slave side, respectively.
3, 14 are connected. Next, the operation of the apparatus configured as described above will be described.

【0014】まず、マスタのパーソナルコンピュータ1
からスレーブのパーソナルコンピュータ2にデータ転送
する場合について説明する。パーソナルコンピュータ1
においてデータがデータ転送バス3に乗せられると、こ
れとともにデータはパリティ発生回路4に入力する。
又、このデータはバッファ12を通り、データ転送バス
3を伝送してスレーブのパーソナルコンピュータ2に到
達して取り込まれるとともにパリティ発生回路5に入力
する。
First, the master personal computer 1
A case where data is transferred from the slave to the slave personal computer 2 will be described. Personal computer 1
When the data is loaded on the data transfer bus 3 at, the data is input to the parity generation circuit 4 together with the data.
Further, this data passes through the buffer 12 and is transmitted through the data transfer bus 3 to reach the slave personal computer 2 to be fetched and inputted to the parity generating circuit 5.

【0015】これらパリティ発生回路4、5は共に入力
したデータに対してそれぞれパリティビットを付加して
出力する。このうち、パリティ発生回路4から出力され
たパリティビット付加のデータは比較回路6に一方の入
力端子に入力し、又パリティ発生回路5から出力された
パリティビット付加のデータはパリティ転送線7を伝送
して比較回路6に他方の入力端子に入力する。
The parity generation circuits 4 and 5 add a parity bit to the input data and output it. Of these, the parity bit added data output from the parity generation circuit 4 is input to one input terminal of the comparison circuit 6, and the parity bit added data output from the parity generation circuit 5 is transmitted through the parity transfer line 7. Then, the other input terminal is input to the comparison circuit 6.

【0016】この比較回路7は各入力端子に入力された
データの各ビットを比較し、ビットが異なった場合にハ
イレベルの信号を出力する。このハイレベル信号はJ型
フリップフロップ10のJ端子に入力し、このJ型フリ
ップフロップ10はクロックclk を受けてQ端子からハ
イレベル信号のエラー信号Eを出力する。従って、マス
タのパーソナルコンピュータ1はエラー信号Eを監視す
ることによってデータ転送時のエラー発生を検出する。
The comparison circuit 7 compares each bit of the data input to each input terminal and outputs a high level signal when the bits are different. This high-level signal is input to the J terminal of the J-type flip-flop 10, and the J-type flip-flop 10 receives the clock clk and outputs the high-level error signal E from the Q terminal. Therefore, the master personal computer 1 detects the error occurrence during data transfer by monitoring the error signal E.

【0017】次にスレーブのパーソナルコンピュータ2
からマスタのパーソナルコンピュータ1にデータ転送す
る場合について説明する。パーソナルコンピュータ2に
おいてデータがデータ転送バス3に乗せられると、これ
とともにデータはパリティ発生回路5に入力する。又、
このデータはバッファ13を通り、データ転送バス3を
伝送してマスタのパーソナルコンピュータ1に到達して
取り込まれるとともにパリティ発生回路4に入力する。
Next, the slave personal computer 2
Data transfer from the master computer to the master personal computer 1 will be described. When data is put on the data transfer bus 3 in the personal computer 2, the data is input to the parity generation circuit 5 together with the data. or,
This data passes through the buffer 13 and is transmitted through the data transfer bus 3 to reach the master personal computer 1 to be fetched and input to the parity generation circuit 4.

【0018】しかるに、これらパリティ発生回路4、5
は上記同様に入力したデータに対してそれぞれパリティ
ビットを付加し、このうちパリティ発生回路5から出力
されたパリティビット付加のデータはパリティ転送線7
を伝送して比較回路6に他方の入力端子に入力し、又パ
リティ発生回路4から出力されたパリティビット付加の
データは比較回路6に一方の入力端子に入力する。
However, these parity generation circuits 4, 5
Adds parity bits to the input data in the same manner as described above. Of these, the parity bit added data output from the parity generation circuit 5 is the parity transfer line 7.
Is transmitted and input to the other input terminal of the comparison circuit 6, and the data with the parity bit output from the parity generation circuit 4 is input to one input terminal of the comparison circuit 6.

【0019】この比較回路7は各入力端子に入力された
データの各ビットを比較し、ビットが異なった場合にハ
イレベルの信号を出力する。このハイレベル信号はJ型
フリップフロップ10にて受けられ、J型フリップフロ
ップ10はクロックclk を受けてQ端子からハイレベル
信号のエラー信号Eを出力する。従って、マスタのパー
ソナルコンピュータ1はエラー信号Eを監視することに
よってデータ転送時のエラー発生を検出する。
The comparison circuit 7 compares each bit of the data input to each input terminal and outputs a high level signal when the bits are different. This high-level signal is received by the J-type flip-flop 10, and the J-type flip-flop 10 receives the clock clk and outputs the high-level error signal E from the Q terminal. Therefore, the master personal computer 1 detects the error occurrence during data transfer by monitoring the error signal E.

【0020】このように上記一実施例においては、マス
タとスレーブの各パーソナルコンピュータ1、2の間で
データ転送時に各パリティ発生回路4、5によりそれぞ
れパリティビットを転送データに付加し、比較回路6に
よりこれらパリティ発生回路4、5によりパリティビッ
トが付けられた各データを比較してエラーを検出するす
るように構成したので、簡単な構成でデータ転送におけ
るエラー発生をマスタのパーソナルコンピュータ1にお
いてリアルタイムで確実に検出できる。これにより、マ
スタのパーソナルコンピュータ1においてマスタ及びス
レーブの両側におけるエラー発生を監視できる。
As described above, in the above-described embodiment, the parity bit is added to the transfer data by the parity generating circuits 4 and 5 when the data is transferred between the master and slave personal computers 1 and 2, and the comparison circuit 6 is added. With this configuration, the parity generation circuits 4 and 5 are configured to detect the error by comparing each data to which the parity bit is added. Therefore, the error occurrence in the data transfer can be performed in real time in the master personal computer 1 with a simple configuration. Can be reliably detected. This allows the master personal computer 1 to monitor the occurrence of errors on both sides of the master and slave.

【0021】なお、本発明は上記一実施例に限定される
ものでなくその要旨を変更しない範囲で変形してもよ
い。例えば、スレーブのパーソナルコンピュータ2にお
けるパリティ転送線7のバッファ8をオープンコレクタ
又はスリーステートバッファとすることで、パーソナル
コンピュータの接続を1対多とするシステムにも対応で
きる。又、比較回路6はイクスクルーシブ・ノア回路に
限らず他の比較回路を使用してもよい。
The present invention is not limited to the above-mentioned one embodiment, and may be modified within the scope of the invention. For example, by making the buffer 8 of the parity transfer line 7 in the slave personal computer 2 an open collector or a three-state buffer, it is possible to support a system in which the connection of the personal computers is one to many. Further, the comparison circuit 6 is not limited to the exclusive NOR circuit, but other comparison circuits may be used.

【0022】[0022]

【発明の効果】以上詳記したように本発明によれば、簡
単な構成でデータ転送におけるエラー発生を送信側にお
いてリアルタイムで確実に検出できるデータ転送エラー
検出装置を提供できる。
As described above in detail, according to the present invention, it is possible to provide a data transfer error detecting device capable of reliably detecting an error occurrence in data transfer in real time on the transmitting side with a simple structure.

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

【図1】本発明に係わるデータ転送エラー検出装置の一
実施例を示す構成図。
FIG. 1 is a configuration diagram showing an embodiment of a data transfer error detection device according to the present invention.

【符号の説明】[Explanation of symbols]

1,2…パーソナルコンピュータ、3…データ転送バ
ス、4,5…パリティ発生回路、6…比較回路、7…パ
リティ転送線、10…J型フリップフロップ。
1, 2 ... Personal computer, 3 ... Data transfer bus, 4, 5 ... Parity generating circuit, 6 ... Comparison circuit, 7 ... Parity transfer line, 10 ... J-type flip-flop.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 各送受信装置の間でデータ転送する際の
エラーを検出するデータ転送エラー検出装置において、
前記各送受信装置に設けられデータの送受信時にパリテ
ィビットを発生して前記データに付加する複数のパリテ
ィ発生回路と、前記各送受信装置のうち主送受信装置に
設けられ前記各パリティ発生回路によりパリティビット
が付けられた送受信の各データを比較してエラーを検出
する比較回路とを具備したことを特徴とするデータ転送
エラー検出装置。
1. A data transfer error detection device for detecting an error in data transfer between transmission / reception devices,
A plurality of parity generation circuits provided in each of the transmission / reception devices to generate a parity bit at the time of transmission / reception of data to add to the data, and a parity bit generated by each of the parity generation circuits provided in the main transmission / reception device among the transmission / reception devices. A data transfer error detection device, comprising: a comparison circuit that compares the respective transmitted and received data to detect an error.
JP4230698A 1992-08-31 1992-08-31 Data transfer error detector Pending JPH0683655A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4230698A JPH0683655A (en) 1992-08-31 1992-08-31 Data transfer error detector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4230698A JPH0683655A (en) 1992-08-31 1992-08-31 Data transfer error detector

Publications (1)

Publication Number Publication Date
JPH0683655A true JPH0683655A (en) 1994-03-25

Family

ID=16911920

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4230698A Pending JPH0683655A (en) 1992-08-31 1992-08-31 Data transfer error detector

Country Status (1)

Country Link
JP (1) JPH0683655A (en)

Similar Documents

Publication Publication Date Title
EP0287302B1 (en) Cross-coupled checking circuit
JPH0683655A (en) Data transfer error detector
JP2864611B2 (en) Semiconductor memory
JP3060076B2 (en) Line monitoring system
KR920005139B1 (en) Td-bus matching circuit
JPH1131084A (en) Parity check circuit
JPH034623A (en) Serial data transmission system
JP2606160B2 (en) Failure detection method for parity check circuit
JPS63290033A (en) Data transmission reception circuit
JP4378799B2 (en) Digital data input / output device
JPS63148335A (en) Error detector
JPH06244822A (en) Data communication system
JPH02264337A (en) Data transfer control system
JPS6244300B2 (en)
JPH04267631A (en) Parity bit addition system
JPH09237197A (en) Semiconductor integrated circuit device
JPS584364B2 (en) Data monitoring method
JPH05282218A (en) Data transmitting method
JPH05298201A (en) System bus error processing system for information processing system
JPH0324601A (en) Control method
JPH03135644A (en) Data bit check circuit
JPH02305037A (en) Abnormality detecting system for data transmission system
JPH02245939A (en) Parity inspection device
JPH05300199A (en) Serial data transfer equipment
JPH11289318A (en) Serial data communication equipment and error check method therefor