JPS61176222A - Error detection method for serial data transfer - Google Patents

Error detection method for serial data transfer

Info

Publication number
JPS61176222A
JPS61176222A JP60017231A JP1723185A JPS61176222A JP S61176222 A JPS61176222 A JP S61176222A JP 60017231 A JP60017231 A JP 60017231A JP 1723185 A JP1723185 A JP 1723185A JP S61176222 A JPS61176222 A JP S61176222A
Authority
JP
Japan
Prior art keywords
bit
data
circuit
transfer
signal
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
JP60017231A
Other languages
Japanese (ja)
Inventor
Shigeo Tatsugami
重夫 龍神
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP60017231A priority Critical patent/JPS61176222A/en
Publication of JPS61176222A publication Critical patent/JPS61176222A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To maintain the reliability of the transfer data by sampling the data on each bit transferred at >=2 points in the bit length and comparing these sample values with each other. CONSTITUTION:A bit counting circuit 16 transmits a start bit signal BT or a stop bit signal BP to a start/stop bit check circuit 11 when the data on the start bit bt or the stop bit bp is received. Then the circuit 11 checks whether the sample value SM is coincident with the prescribed value or not in case the coincidence is obtained through a data sample comparator 10 between the sample values SM1 and SM2 of 2 times of the bit bt or bp. When no coincidence is obtained, a transfer error is decided. Then a discordance MM2 is transmitted to an RR interruption control circuit 13 and the reception enable signal RR is inverted into H.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、比較的小規模なシステムにおいて、ノリアル
データ転送を行う場合の転送エラーの検出方法に関する
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for detecting transfer errors when performing norial data transfer in a relatively small-scale system.

[従来の技術とその問題点] 2進データをビット単位で順次転送するノリアルデータ
転送においては、転送されるデータ」二にノイズが乗る
ため、受信側で受信する各ビットのデータ(」、ビット
長(1ビツトのデータの送信時間)中においても、“ピ
又は°“φ°゛に対応する一定の値(電圧)を維持する
訳ではなく、常時変動する。
[Prior art and its problems] In norial data transfer, in which binary data is sequentially transferred bit by bit, noise is added to the transferred data. Even during long periods of time (transmission time of 1 bit of data), it does not maintain a constant value (voltage) corresponding to "pi" or "φ°", but constantly fluctuates.

そのため、受信側では、受信した各ビットのデータの値
をビット長中のある点で測定し、測定値を予め定めたし
きい値と比較して“ピ又は“φ°゛の判別を行うように
している。なお、本明細書において、データの値をある
点で測定し、測定値としきい値との比較によって1”又
は“φ”の判別を行うことを「ザンプルする」という。
Therefore, on the receiving side, the value of each received bit of data is measured at a certain point in the bit length, and the measured value is compared with a predetermined threshold to determine whether it is "pi" or "φ°". I have to. Note that in this specification, "sampling" refers to measuring the value of data at a certain point and determining whether it is 1" or "φ" by comparing the measured value with a threshold value.

ところで、ノリアルデータ転送において、大きなノイズ
が生した場合は、受信側でのデータのザンプルの誤り、
つまり転送エラーが生じる恐れがあるので、転送エラー
のヂエックが必要となる。
By the way, if large noise occurs during Norial data transfer, it may be due to an error in the data sample on the receiving side.
In other words, since there is a possibility that a transfer error may occur, it is necessary to check the transfer error.

その点を考慮したシリアルデータ転送のプロトコルとし
て、R9232Cが良く知られているが、該プロトフル
による転送の制御には複雑なハードウェア及びソフトウ
ェア処理を必要とするので、例えばワードプロセッザ等
、比較的小規模のシステト内でのデータ転送には適さな
い。
R9232C is well-known as a serial data transfer protocol that takes this point into consideration, but controlling transfer using this protocol requires complex hardware and software processing, so it is relatively difficult to use with a word processor, etc. Not suitable for data transfer within a small system.

一方、非同期通信方式のシリアルデータ転送において、
転送すべき各ブロック(一定のビット、数を有する)の
データに転送エラー検出用のパリティビットをト1加す
ることが一般に行なわれているが、その場合は、パリテ
ィビットという本来のデータに無関係なデータを転送す
るため、転送時間が長びくという問題がある。しかも、
送信側にはパリティ発生回路を、受信側にはパリティチ
ェック回路を設ける必要があるので、それらのロジック
回路が複雑になる。
On the other hand, in serial data transfer using asynchronous communication method,
It is common practice to add a parity bit for transfer error detection to the data of each block (having a fixed number of bits) to be transferred, but in this case, the parity bit is unrelated to the original data. There is a problem in that the transfer time is long because of the large amount of data being transferred. Moreover,
Since it is necessary to provide a parity generation circuit on the transmitting side and a parity check circuit on the receiving side, the logic circuits thereof become complicated.

[問題点を解決する丸めの手段] 本発明は、上記の問題を解消しろる新たな転送エラー検
出方法を提案する乙のである。
[Rounding Means to Solve the Problems] The present invention proposes a new transfer error detection method that can solve the above problems.

すなイ・)し、本発明では、各ブロックのデータをシリ
アル転送オろに当たり、転送された各ビットのデータを
ビット長中の2点以」二でザンプルしてサンプル値(“
φ′′又は°コ”)を比較するようにしたものである(
従来は1点でのめザンプルしていた)。
In the present invention, the data of each block is serially transferred, the data of each transferred bit is sampled at two or more points in the bit length, and the sample value (
φ′′ or °ko”).
(Previously, it was counted as one point.)

[発明の効果] 本発明法では、転送された各ビットのデータをビット長
中に複数回ザンプルするようにしたので、サンプル値の
不一致があればそれによって転送エラーを検出すること
ができ、転送データの信頼性を維持することができる。
[Effects of the Invention] In the method of the present invention, the data of each transferred bit is sampled multiple times during the bit length, so if there is a mismatch in sample values, it is possible to detect a transfer error, and the transfer Data reliability can be maintained.

又、本発明法では、エラーの検出のために、パリティビ
ットのような余分のビットを付加する必要がないので、
エラー検出のためにデータの転送時間、が長びくことら
なくなる。
Furthermore, in the method of the present invention, there is no need to add extra bits such as parity bits for error detection.
Data transfer time is no longer prolonged due to error detection.

更に又、本発明法を実施するためには、受信側にのみ比
較的簡単なエラー検出用ロジック回路を設ければ良いの
で、ロジック回路の構成を簡素イヒ。
Furthermore, in order to implement the method of the present invention, it is sufficient to provide a relatively simple error detection logic circuit only on the receiving side, so the configuration of the logic circuit can be simplified.

することができる。can do.

[実施例] 以下、添付図面を参照しながら本発明の詳細な説明する
[Example] Hereinafter, the present invention will be described in detail with reference to the accompanying drawings.

第2図に示すワードプロセッザにおいて、キー操作に応
じてキーボード装置lで生起される2進データ(キーコ
ード信号)は、ブロック単位でホストインタフェース2
にシリアル転送され、該ポストインタフェース2で転送
エラーのチェックを受けた後に、シリアル/パラレル変
換(S/I)変換)されてホストコンビコータ3に入力
されるようになっている。
In the word processor shown in FIG. 2, binary data (key code signal) generated by the keyboard device l in response to key operations is sent to the host interface 2 in blocks.
After being checked for transfer errors at the post interface 2, it is subjected to serial/parallel conversion (S/I) conversion and input to the host combicoater 3.

」二足キーボード装置lとホストインタフェース2間に
は、2値付号BSのH(ハイ)、L(ロー)の切換によ
ってキーボード装置1から71;ストインタフェース2
にシリアルデータを転送するデータ線4と、ホストイン
タフェース2が受信可能である際に、キーボード装置1
に受信可能信号RRを送信する゛受信レディーステータ
ス線5が設けられている。
” Between the two-legged keyboard device l and the host interface 2, the keyboard devices 1 to 71;
When the data line 4 that transfers serial data to the keyboard device 1 and the host interface 2 are capable of receiving data, the keyboard device 1
A reception ready status line 5 is provided for transmitting a reception ready signal RR.

一方、ポストインタフェース2とポストコンピュータ3
間には、ポストインタフェース2からポストコンピュー
タ3に割込み信号INTを送信するための信号線6と、
割込み信号INTに応じてホストコンビコ−タ3からポ
ストインタフェース2にパラレルデータの読込みが可能
であることを知らせる読込み信号i0Rを送信する信号
線7と、該読込み信号i0Rに応じてホストインタフェ
−ス2からホストコンピュータ3に、パラレルデータを
送信・入力するデータ線(不図示)とが介設さ打ている
。なお、ホストインタフェース3は、通常ホストコンピ
ュータ2に内蔵される。
On the other hand, post interface 2 and post computer 3
In between, there is a signal line 6 for transmitting an interrupt signal INT from the post interface 2 to the post computer 3;
A signal line 7 transmits a read signal i0R indicating that parallel data can be read from the host combicoter 3 to the post interface 2 in response to an interrupt signal INT; A data line (not shown) for transmitting and inputting parallel data is interposed from the host computer 2 to the host computer 3. Note that the host interface 3 is usually built into the host computer 2.

第3図に示すように、キーボード装置1からポストイン
タフェース2に転送されるデータは、l       
   −ビットのスタートビットbt(−“φ”固定)
と、8ビツトのデータビットhφ〜b7と、1ビツトの
ストップビットbp(−“ビ固定)とによる合計10ビ
ツトでlブロックが構成されており、該シリアルデータ
がブロック毎にシリアル転送される。その際、各ビット
が“φ″゛であれば、キーボード装置1からホストイン
タフェース2に送信される2値付号BSが当該ビットの
ビット長中にLレベルを維持し、各ビットが“Io“で
あれば、2値付号BSがそのビットのビット長中に■■
レベルを維持する。各ビットのビット長は例えば、10
4.Iμs(9600BPSによる。)に設定される。
As shown in FIG. 3, data transferred from the keyboard device 1 to the post interface 2 is
−Bit start bit bt (−“φ” fixed)
, 8 data bits hφ to b7, and 1 stop bit bp (fixed at -“bit), making up a total of 10 bits, and the serial data is serially transferred block by block. At that time, if each bit is "φ", the binary coded BS sent from the keyboard device 1 to the host interface 2 maintains the L level during the bit length of the bit, and each bit becomes "Io". If so, the binary code BS is within the bit length of that bit.
maintain the level. For example, the bit length of each bit is 10
4. It is set to Iμs (according to 9600 BPS).

なお、データの転送が行なわれない際には、2値付号B
Sは常時I]レベルとなる。
Note that when data is not transferred, the binary number B
S is always at I] level.

上記受信可能信号1工1工は、受にi iiJ能時には
1ルベルになっており、ごの状態でギ ポー ド装置1
から、転送されろへきデータのスター トヒソtilt
か出力されると、スタートヒツト B Sの反転に伴いRRl.+反転ざイ1てI7レベル
となり、ポストインタフゴース2によるノリ)フルデー
タの受信か開始される3,ギーポ−1・装置1からは、
引続きア タビットl)φ〜b 、が順次出力さイ1、
これらデ タビットbφ〜b7(」ポストインタフェー
ス2て受信された後に順次S / P変換されろ。更に
、ストツプヒッl−bpの受信が終rオろと、割込み信
号IN’r”が11からl,に反転し、ポストインタフ
J ス2からホスト=1ンビ:1−夕3にS / P変
換済のデータを人力する旨が知らされろ。
The above-mentioned receivable signal 1 1 1 is 1 level when it is in the receiving state, and the signal is 1 level when it is in the receiving state.
Start of the data being transferred from this tilt
is output, the start hit BS is inverted and RRl. +Inversion 1 becomes I7 level, and post-interface 2) Full data reception starts 3. From Gypo-1/Device 1,
Subsequently, the data bits l)φ~b are output in sequence.
These data bits bφ to b7(') are sequentially S/P converted after being received by the post interface 2.Furthermore, when the reception of the stop hit l-bp is completed, the interrupt signal IN'r' changes from 11 to l, Then, post-interface 2 informs host 1-bin 3 that the S/P-converted data will be sent manually.

ホストコンビコータ3が、データの受入可能になれば、
読込ゐ信号i 0rjか11から1,に反転され、ポス
トインタフェース2からホスト=1ンピコータ3にデー
タが入力されろ。ホストコンビコータ3へのデータ入力
か終了すれば、信qiorj は再びLIに反転され、
それに伴って割込め信号INT及び受信可能信号RRも
Hに反転されて、ホストインタフェース2(」ギーボ−
1・装置1からの次ブロックのデータを受信できる態勢
となる。
Once the host Combi Coater 3 is able to accept data,
The read signal i 0rj is inverted from 11 to 1, and data is input from the post interface 2 to the host=1 amplifier 3. When the data input to the host combination coater 3 is completed, the signal qiorj is inverted to LI again,
Along with this, the interrupt signal INT and the reception enable signal RR are also inverted to H, and the host interface 2 ("Gibo-
1. Ready to receive the next block of data from device 1.

ここで、各信号について整理すると、受信可能信号RR
は、■ブロックのデータのギーポート装置lからの出力
が開始されてから、ポストコンビコータ3への入力が終
了するまではI7レベルとなる。
Here, if we organize each signal, the receivable signal RR
is at the I7 level from the start of the output of the data of block (1) from the Gyport device 1 until the input to the post-combi coater 3 is completed.

又、割込ろ信号TNTは、ポストインタフェース2から
ホストコンビコータ3への割込み中のみI。
Also, the interrupt signal TNT is input only during an interrupt from the post interface 2 to the host combination coater 3.

レベルとなり、読込り信号i0Rはポストコンビコータ
3がホストインタフェース2からのデータの読込ゐを行
っている間のみ17レベルとなる。
The read signal i0R becomes level 17 only while the post-combi coater 3 is reading data from the host interface 2.

次に、ポストインタフェース2の回路構成を説明する。Next, the circuit configuration of the post interface 2 will be explained.

第4図に示すように、ポストインタフェース2は、スタ
ーl・ピッ)btを検出することにより、シリアルデー
タの転送開始を認識するスター川・ビット検出回路8ど
、転送された各ビットb[、hφ〜b7、bpのデータ
を、ビット長中の2点でサンプルして、2個のザンプル
値を比較するデータザンプル比較回路IOと、スタート
ビットbtか°゛φ″であるか否か、及びス)・ツブピ
ノl−1+pがビであるか否かをヂエックするスタート
/ストツプビットヂエック回路IIと、データサンプル
比較回路IOで受信された各データヒツトbφ〜b7の
データを順次S/P変換するS/P変換回路+2(シフ
トレソスタ)と、受信可能信号RR及び割込み信号IN
’l”のI−1・I7を制御するRR割込みコントロー
ル回路I3とを備えている。又、ポストインタフェース
2には、各回路に所定のタイミングでタイミングパルス
を供給するタイミング発生回路14と、該タイミング発
生回路14及びスタートビット検出回路8にクロックパ
ルスを供給する発振回路15と、何ヒツト目を受信中で
あるかをカウントするビットカウント回路16が設(J
られている。
As shown in FIG. 4, the post interface 2 detects the start of serial data transfer by detecting the star/bit detection circuit 8, which detects each transferred bit b[, A data sample comparison circuit IO samples the data of hφ~b7, bp at two points in the bit length and compares the two sample values, and determines whether the start bit bt is °゛φ'' or not. and S) Start/stop bit check circuit II that checks whether or not l-1+p is bit, and data of each data hit bφ to b7 received by the data sample comparison circuit IO are sequentially S/P S/P conversion circuit +2 (shift resistor) to convert, reception enable signal RR and interrupt signal IN
The post interface 2 includes a timing generation circuit 14 that supplies timing pulses to each circuit at a predetermined timing. An oscillation circuit 15 that supplies clock pulses to the timing generation circuit 14 and the start bit detection circuit 8, and a bit count circuit 16 that counts how many hits are being received are provided (J
It is being

スターI・ヒツト検出回路8は、2値付号BSのHから
[7への反転によってスタートビットbtを検出すると
RR割込みコントロール回路■3に受信開始信号RTを
発信し、受信可能信号RRをHからI7に反転させる。
When the star I/hit detection circuit 8 detects the start bit bt by inverting the binary code BS from H to [7, it sends a reception start signal RT to the RR interrupt control circuit 3 and sets the reception ready signal RR to H. to I7.

又、スタートビット検出回路8は、スター)・ヒラ+−
btの検出と同時に、タイミンク発生回路14にカウン
ト開始信号CTを送信し、それに伴ってタイミング発生
回路+4i:J:、発振回路15からのクロックパルス
に基づくタイミングのカウントを開始する。
In addition, the start bit detection circuit 8 detects star), filler +-
Simultaneously with the detection of bt, a count start signal CT is sent to the timing generation circuit 14, and accordingly, the timing generation circuit +4i:J: starts timing counting based on the clock pulse from the oscillation circuit 15.

」−記タイミング発生回路14は、各ビットのデータの
送信開始から3271s経過した時点て、データサンプ
ル比較回路10に第1回目のサンプルパルスSMI”l
(第1図参照)を発信し、データサンプル比較回路10
はこのサンプルパルスSMP1の受信と同時に各ビット
にお(Jる第1回目のデータのサンプルを行い、ザンブ
ル値SMI(’“φ”又は“l゛)を記憶する。タイミ
ング発生回路14は各ヒツト開始から64μs経過した
時第2回目のサンプルパルスSMP2を発信し、データ
サンプル比較回路10は該サンプルパルスSMP2に基
づいて各ビットにおける第2回目のデータのサンプルを
実施し、ザンプル値SM2を記憶する。
''-The timing generation circuit 14 generates the first sample pulse SMI''l to the data sample comparison circuit 10 after 3271 seconds have elapsed from the start of data transmission of each bit.
(see Figure 1), the data sample comparison circuit 10
At the same time as receiving this sample pulse SMP1, samples the first data in each bit (J) and stores the sample value SMI ('"φ" or "l"). When 64 μs has elapsed from the start, the second sample pulse SMP2 is transmitted, and the data sample comparison circuit 10 samples the second data for each bit based on the sample pulse SMP2, and stores the sample value SM2. .

更に、タイミング発生回路14は、各ピッ)・開始時か
ら64.5/lS経過した時点でデ−タザンプル比較回
路10に第1回目の比較パルスCMIを発信し、データ
サンプル比較回路10はこの比較パルスCMIの受信と
同時にそのビットの第1回目及び第2回目のサンプル値
SMI、SM2を比較する。サンプル値SMI、SM2
が一致ケれば、そのビットにおいて正しい転送が行なわ
れたものとみなされて、スタート/ストップビットチェ
ック回路11に一致信号Mが送信されるとともに、一致
したサンプル値SMがスタート/ストップピッ)・ヂエ
ック回路11及びS/P変換回路12に転送される。
Furthermore, the timing generation circuit 14 transmits the first comparison pulse CMI to the data sample comparison circuit 10 at the time when 64.5/lS has elapsed from the start of each pip, and the data sample comparison circuit 10 receives this comparison pulse. At the same time as the pulse CMI is received, the first and second sample values SMI and SM2 of that bit are compared. Sample value SMI, SM2
If they match, it is assumed that a correct transfer has been performed for that bit, and a match signal M is sent to the start/stop bit check circuit 11, and the matched sample value SM is transmitted as a start/stop bit. The signal is transferred to the DEC circuit 11 and the S/P conversion circuit 12.

−・方、サンプル値SMI、SM2が不一致であれば、
そのビットの転送がエラーとみなされて、RR割込みコ
ントロール回路13に不一致信号MM1が送信され、R
R割込みコントロール回路13は、不一致信号MMIに
基づいて、第1図中に2点鎖線で示す如く、受信可能信
号R,Rを1(に反転させ、キーボード装置1に転送エ
ラーを報知する。なお、転送中にエラーが検出された後
の制御については、後述する。
- On the other hand, if the sample values SMI and SM2 do not match,
The transfer of that bit is deemed to be an error, and a mismatch signal MM1 is sent to the RR interrupt control circuit 13.
Based on the mismatch signal MMI, the R interrupt control circuit 13 inverts the receivable signals R and R to 1 (as shown by the two-dot chain line in FIG. 1), and notifies the keyboard device 1 of a transfer error. , control after an error is detected during transfer will be described later.

」二足タイミング発生回路14は、各ビット開始時から
64.75μs経過した時点で、スタート/ストップビ
ットチェック回路11に第2回目の比較パルスCM2を
発信し、更に、各ビット開始時から65.257zs経
過した時点でS/P変換回路12にシフトパルスSFを
発信する。このシフトパルスSFによって、S/P変換
回路12に供給された各データビットbφ〜b7のデー
タのサンプル値SMが順次S/P変換される。
” The two-leg timing generation circuit 14 transmits the second comparison pulse CM2 to the start/stop bit check circuit 11 when 64.75 μs has elapsed from the start of each bit, and furthermore, when 64.75 μs has elapsed from the start of each bit, When 257zs has elapsed, a shift pulse SF is transmitted to the S/P conversion circuit 12. By this shift pulse SF, sample values SM of data of each data bit bφ to b7 supplied to the S/P conversion circuit 12 are sequentially S/P converted.

更に、タイミング発生回路14は、各ビット終了時にビ
ット終了パルスBRをビットカウント回路16に送信し
、ビットカウント回路16はこのパルスBRに基づいて
ビット数を歩進させる。
Further, the timing generation circuit 14 transmits a bit end pulse BR to the bit count circuit 16 at the end of each bit, and the bit count circuit 16 increments the number of bits based on this pulse BR.

上記ビットカウント回路16は、スタートピッ)bt又
はストップビットbpのデータ受信時に、スタートビッ
ト信号BT又はストップビット信号BPをスタート/ス
トップビットチェック回路11に発信する。それにより
、スタート/ストップビットチェック回路11は、デー
タサンプル比較回路lOにおけるスタートビットbt又
はストップピッ1l− )bpの2回のサンプル値SMI、SM2が一致した場
合に、更にそのサンプル値SMが所期の値(Mは′φ”
、bpは“l”)と一致するか否かをチェックする。ス
タートビットbt又はストップビットbpにおけるサン
プル値SMが所期の値と一致しない場合は、転送エラー
とみなされてRR割込みコントロール回路13に不一致
信号MM2が送信され、受信可能信号Rr(がHに反転
される。
The bit count circuit 16 transmits a start bit signal BT or a stop bit signal BP to the start/stop bit check circuit 11 when receiving data of a start bit (bt) or a stop bit (bp). As a result, if the two sample values SMI and SM2 of the start bit bt or stop bit 1l-)bp in the data sample comparison circuit IO match, the start/stop bit check circuit 11 further determines that the sample value SM is period value (M is ′φ”
, bp is "l"). If the sample value SM at the start bit bt or stop bit bp does not match the expected value, it is regarded as a transfer error, a mismatch signal MM2 is sent to the RR interrupt control circuit 13, and the receivable signal Rr (is inverted to H). be done.

上記ビットカウント回路16は、Iブロックのデータの
受信が終了した段階でタイミング発生回路14にカウン
ト終了信号CPを発信してタイミングのカウントを停止
させるとともに、RR割込みコントロール回路13には
転送終了信号TEを送信する。r(R割込みコントロー
ル回路13は、転送終了信号TEの受信と同時に、割込
み信号INTを■、に反転させる。引続き読込み信号i
ORがLに反転されると、S/P変換回路12で変換さ
れた8ビツトパラレルデータがホストコンピュータ3に
入力される。8ビツトパラレルデータのホストコンピュ
ータ3への入力が終了すると、前述したように読込み信
号i0Rが再びI]に反転され、それに伴って受信可能
信号RR及び割込み信号INTも■1に反転されるとと
もに、ポストインタフェース2が初期状態に戻され、次
ブロックのデータの受信が可能となる。
The bit count circuit 16 sends a count end signal CP to the timing generation circuit 14 to stop timing counting when the reception of the data of the I block is completed, and transmits a transfer end signal TE to the RR interrupt control circuit 13. Send. r(R) The interrupt control circuit 13 inverts the interrupt signal INT to {circle around (2)} at the same time as receiving the transfer end signal TE.Subsequently, the read signal i
When the OR is inverted to L, the 8-bit parallel data converted by the S/P conversion circuit 12 is input to the host computer 3. When the input of the 8-bit parallel data to the host computer 3 is completed, the read signal i0R is inverted to I again as described above, and accordingly, the receivable signal RR and the interrupt signal INT are also inverted to 1. The post interface 2 is returned to its initial state and can receive the next block of data.

ここで、転送中にエラーが検出され、■ブロックのデ〜
りの転送が終了する前に受信可能信号RRがLからHに
反転された場合の、その後の制御につき説明する。
At this point, an error is detected during the transfer, and the
The subsequent control when the receivable signal RR is inverted from L to H before the next transfer is completed will be explained.

すなわち、上述の場合、受信可能信号RRがHに反転さ
れても、そのブロックのデータの転送が終了するまでは
、データの転送が継続される。但し、そのブロックのデ
ータの転送が終了しても、割込み信号jNTはHのまま
に保持され、そのブロックのデータがホストコンピュー
タ3に入力されることはない。その場合は、転送終了と
同時に、ホストインタフェース2が初期状態に戻され、
直ちに当該ブロックのデータの再送処理が開始される。
That is, in the above case, even if the receivable signal RR is inverted to H, data transfer continues until the data transfer of that block is completed. However, even if the transfer of the data of the block is completed, the interrupt signal jNT remains at H, and the data of the block is not input to the host computer 3. In that case, at the same time as the transfer ends, host interface 2 is returned to its initial state,
Immediately, retransmission processing of the data of the block is started.

次に、第5図のフローヂャートに基づいて、キ−ポート
装置lからホストインタフ丁−ス2へのノリアルデータ
転送時の、キーボード装置l側の処理手順を今1度説明
する。すなわち、(1)ステップSOで転送ずへき1ブ
ロツクのデータかセットされると、Slで受信可能信号
RRがITであるか否かが判定され、RRが17であれ
ばRrtがITになろよて待機する。
Next, based on the flowchart of FIG. 5, the processing procedure on the keyboard device I side when transferring Norial data from the keyport device I to the host interface station 2 will be explained once again. That is, (1) When 1 block of data without transfer is set in step SO, it is determined in Sl whether the receivable signal RR is IT or not, and if RR is 17, Rrt should be IT. and wait.

(II)RRがHであれば、或いはRRがIIになれば
、S2でスタートビットbtのデータを出力し、S3て
スタートビットbtのデータの出力を続行しなから1ヒ
ツト長持機する。
(II) If RR is H, or if RR becomes II, the data of the start bit bt is output in S2, and the data of the start bit bt is held for one hit in S3 without continuing to output the data of the start bit bt.

(iii)  スタートヒツトbtの出力が終わると、
S4に進んでデータビット11φ〜lI7を順次出力し
、S5で各データビットbφ〜b7の出力を続行しなが
ら1ビット長持機する。引続きS6でn=7か否か、す
なわち最後のデータピッ1−b7の出力が終了したか否
かを判定し、最後のデータビットb7の出力が終了して
いな(]れば、S4に戻って次のデータビットを出力す
る。
(iii) When the start hit bt output is finished,
Proceeding to S4, data bits 11φ to lI7 are sequentially output, and in S5, data bits bφ to b7 are held for 1 bit while continuing to be output. Continuing, in S6, it is determined whether n=7, that is, whether the output of the last data bit 1-b7 has been completed, and if the output of the last data bit b7 has not been completed, the process returns to S4. Output the next data bit.

(iv)  S6で、最後のデータビットb7の出力を
終了すれば、S7に進んでストップビットbpを出力し
、更にS8でストップビットbpの出力を続行しなから
1ヒツト長持機する。
(iv) When the output of the last data bit b7 is finished in S6, the process proceeds to S7 to output the stop bit bp, and then in S8 the output of the stop bit bp is not continued and is held for one hit.

(■)ストップビットbpの出力が終了すれば、S9に
進み、RRが■、か否かが判定される。RRがHであれ
ば、前述の如く、そのブロックの転送中にエラーが生じ
たものとみなされ、Slに戻って当該ブロックのデータ
の再送処理が開始される。
(■) When the output of the stop bit bp is completed, the process advances to S9, and it is determined whether the RR is ■. If RR is H, as described above, it is assumed that an error has occurred during the transfer of the block, and the process returns to Sl to start retransmission processing of the data of the block.

(vi)  RRがLであれば、データは正しく転送さ
れたものとみなされ、SIOに進んで転送されるべきデ
ータが残っているか否かが判定され、転送されるべきデ
ータが残っていなければ、送信が停止される。一方、転
送されるべきデータが残っていれば、SOに戻って次ブ
ロックのデータがセットされ、転送が開始される。
(vi) If RR is L, the data is considered to have been transferred correctly, and it is determined whether there is any remaining data to be transferred by proceeding to SIO, and if there is no data remaining to be transferred, , transmission is stopped. On the other hand, if there remains data to be transferred, the process returns to SO, sets the data for the next block, and starts transfer.

以上説明したように、本実施例では、シリアル転送され
るデータを受信側で各ビット長中の2点でサンプルし、
サンプル値に不一致がある場合には転送エラーとみなす
ようにしたので、比較的簡易なプロトコルで転送データ
の信頼性を維持する=15− ことができ、月つエラー検出用に余分のビットを付加す
る必要もないので、転送時間の遅延も生じない。
As explained above, in this embodiment, data to be serially transferred is sampled at two points in each bit length on the receiving side,
If there is a discrepancy in the sample values, it is treated as a transfer error, so it is possible to maintain the reliability of the transferred data with a relatively simple protocol, and an extra bit is added for error detection. Since there is no need to do this, there is no delay in transfer time.

又、エラー検出のために、受信側のホストインタフェー
ス2にのみ比較的簡単なロジック回路を設ければ良いの
で、回路構成を簡素化でき、ホストインタフェース2に
よるインタフェースの効率も向上する。
Further, since it is sufficient to provide a relatively simple logic circuit only in the host interface 2 on the receiving side for error detection, the circuit configuration can be simplified and the efficiency of the interface by the host interface 2 can be improved.

又、転送中にエラーが検出された際には、RRが1]に
反転されることによりエラー発生が直ちにキーボード装
置1に報知され、且つエラーの発生が報知された時点で
直ちに再送処理が開始されるのではなく、そのブロック
の転送を終えてから再送処理が開始されるようにしたの
で、エラー発生によって転送漏れが生じることを確実に
防止できるようになる。
Furthermore, when an error is detected during transfer, the occurrence of the error is immediately notified to the keyboard device 1 by inverting RR to 1], and retransmission processing is immediately started when the occurrence of the error is notified. Instead, the retransmission process is started after the transfer of that block is completed, so that it is possible to reliably prevent a transfer failure due to the occurrence of an error.

更に又、キーボード装置1とホストインターフェイス2
間のシリアルデータ転送用に、データ線4と受信レディ
ーステータス線5の2本の信号線のみを設ければ良いの
で、信号線の本数を減少させて接続構造を簡素化できる
とともに、見栄えを向」二さ且ることができろ。
Furthermore, a keyboard device 1 and a host interface 2
Since it is only necessary to provide two signal lines, the data line 4 and the reception ready status line 5, for serial data transfer between ``You can go back twice.''

なお、」1記実施例では、キーボード装置Iとホストコ
ンピュータ3間でホストインタフェース2を介してシリ
アルデータ転送を行う場合について説明したが、−1−
記のエラー検出法はワードプロセッザにおIJるディス
プレイ、プリンタ等の各種デバイスとホストコンピュー
タ3間のノリアルデータ転送や、その他の比較的小規模
な各種システム内でのシリアルデータ転送に応用しうろ
ことは言うまでもない。
In addition, in the embodiment 1, the case where serial data is transferred between the keyboard device I and the host computer 3 via the host interface 2 has been described, but -1-
The error detection method described above can be applied to serial data transfer between various devices such as displays and printers in word processors and the host computer 3, as well as serial data transfer within various other relatively small-scale systems. Needless to say.

又、1ブロツクを構成するデータのビット数やビット長
は上記の値に限定されろものではなく、更に又、各ビッ
ト長中の3点以−Lでデータをサンプルして比較するこ
とも可能である。
Furthermore, the number of bits and bit length of data constituting one block are not limited to the above values, and it is also possible to sample and compare data at 3 or more points of each bit length. It is.

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

第1図は本発明の実施例に係るシリアルデータ転送系に
お(Jるlビット長内での各種パルスの発生時期を示す
タイムチャート、 第2図は本発明の実施例に係ろノリアルデ−タ転送系の
要部ブ「1ツク構成図、 第3図は第、2図のシリアルデータ転送系における1ブ
ロツクのデータ転送中の各種信号の反転時期を示すタイ
ムチャート、 第4図は第2図中のホストインタフェースの回路構成図
、 第5図は第2図中のキーボード装置における処理手順を
示すフローチャートである。 2・・・ホストインタフェース(受信側)。 特 許 出 願 人  シャープ株式会社代 理 人 
弁理士 前出 葆 ばか2名工」工」エーエ」 す^O
FIG. 1 is a time chart showing the generation timing of various pulses within a bit length in a serial data transfer system according to an embodiment of the present invention, and FIG. 2 is a serial data transfer system according to an embodiment of the invention. Figure 3 is a block diagram showing the main parts of the data transfer system. The circuit configuration diagram of the host interface shown in the figure, and Fig. 5 is a flowchart showing the processing procedure in the keyboard device shown in Fig. 2. 2...Host interface (receiving side). Patent applicant: Sharp Corporation. person
Patent attorney: ``Two idiots, master craftsmen''``Ae'' Su^O

Claims (1)

【特許請求の範囲】[Claims] (1)ブロック化された2進データをビット単位で順次
転送するシリアルデータ転送において、受信側にて各ビ
ットのデータをビット長中の2点以上でサンプルしてサ
ンプル値を比較し、いずれかのビットにおいてサンプル
値の不一致があった場合はそのブロックの転送データを
エラーとみなすようにしたことを特徴とするシリアルデ
ータ転送におけるエラー検出方法。
(1) In serial data transfer that sequentially transfers blocked binary data bit by bit, the receiving side samples each bit of data at two or more points within the bit length, compares the sample values, and selects one of the An error detection method in serial data transfer, characterized in that if there is a mismatch of sample values in bits of the block, the transferred data of that block is regarded as an error.
JP60017231A 1985-01-30 1985-01-30 Error detection method for serial data transfer Pending JPS61176222A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60017231A JPS61176222A (en) 1985-01-30 1985-01-30 Error detection method for serial data transfer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60017231A JPS61176222A (en) 1985-01-30 1985-01-30 Error detection method for serial data transfer

Publications (1)

Publication Number Publication Date
JPS61176222A true JPS61176222A (en) 1986-08-07

Family

ID=11938172

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60017231A Pending JPS61176222A (en) 1985-01-30 1985-01-30 Error detection method for serial data transfer

Country Status (1)

Country Link
JP (1) JPS61176222A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015192168A (en) * 2014-03-27 2015-11-02 日本電気株式会社 Signal transmission system, transmitter, signal transmission method, and transmitter control program

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5324208B2 (en) * 1975-08-05 1978-07-19

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5324208B2 (en) * 1975-08-05 1978-07-19

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015192168A (en) * 2014-03-27 2015-11-02 日本電気株式会社 Signal transmission system, transmitter, signal transmission method, and transmitter control program
US9509454B2 (en) 2014-03-27 2016-11-29 Nec Corporation Signal transmission system, transmission apparatus, receiver apparatus, signal transmission method, transmission apparatus control program, and receiver apparatus control program

Similar Documents

Publication Publication Date Title
US3587044A (en) Digital communication system
EP0544964B1 (en) Store and forward apparatus and method of maintaining integrity of data during storage
JPS602813B2 (en) Computer-to-computer communication method and system
WO2019136595A1 (en) Method for handling i2c bus deadlock, electronic device, and communication system
JPH02228147A (en) Data link control method
US3889109A (en) Data communications subchannel having self-testing apparatus
GB1457267A (en) Coded data-handling apparatus
EP0425839B1 (en) Data processing system channel
JP2948837B2 (en) Communication link interface initialization and synchronization method and communication link receiver
US6108734A (en) Method and apparatus for a relaxed bus protocol using heuristics and higher level supervision
JPS61176222A (en) Error detection method for serial data transfer
JPH04167738A (en) Detector for start-stop synchronous communication speed
US3821713A (en) Multiple station receiver controlled transmission loop interface for data transfer and control between data processing systems and subsystems
JPH07264263A (en) Serial communication interface device
JP3329229B2 (en) AT command receiving method
CN111490919A (en) Master-slave machine system, equipment terminal and communication verification method thereof
AU608595B2 (en) Method and apparatus for data transfer handshake pipeline
JP2953878B2 (en) Data transfer system
JPS5911056A (en) Start-stop synchronism type communication system
KR100555644B1 (en) transmitting/receiving method of bit stream
JPS59200365A (en) Transfer system of control information
KR100456460B1 (en) Detector of Frame Header Error in MODEM
JPH05103041A (en) Data processing unit and its fault detection method
SU1363226A1 (en) Device for interfacing computer with peripheral device
CN117608914A (en) I2C bus data verification method, device and system