JPH08102679A - Crc error detecting circuit - Google Patents

Crc error detecting circuit

Info

Publication number
JPH08102679A
JPH08102679A JP23632294A JP23632294A JPH08102679A JP H08102679 A JPH08102679 A JP H08102679A JP 23632294 A JP23632294 A JP 23632294A JP 23632294 A JP23632294 A JP 23632294A JP H08102679 A JPH08102679 A JP H08102679A
Authority
JP
Japan
Prior art keywords
crc
data
flop
error detection
frame pulse
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.)
Withdrawn
Application number
JP23632294A
Other languages
Japanese (ja)
Inventor
Shigeru Kawabuchi
茂 河渕
Fumio Kurihara
史夫 栗原
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.)
NEC Engineering Ltd
Original Assignee
NEC Engineering 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 NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP23632294A priority Critical patent/JPH08102679A/en
Publication of JPH08102679A publication Critical patent/JPH08102679A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE: To detect a cyclic redundancy check(CRC) error at the time of '0' continuous data by resetting data by the inversion signal of a frame pulse. CONSTITUTION: A CRC circuit 1 executes CRC for CRC receiving data and obtains its checked result D1. Then the CRC receiving data are inverted by an INV gate 2, the inverted data are inputted to the set terminal S of an R/S flip flop(FF) 4, a frame pulse is inverted by an INV gate 3, and its inverted pulse is inputted to the reset terminal of the FF 4. The output from the FF 4 is recounted by a D type FF 5 at the period of the frame pulse and the Q output from the FF 5 is acquired as a checked result D2. The normality of CRC error detection at the time of '0' continuous data can be recognized from the checked results D1, D2.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、特に0連続データにお
けるCRCエラー検出回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a CRC error detection circuit especially for 0 continuous data.

【0002】[0002]

【従来の技術】周知のように、CRC(Cyclic Redunda
cy Check)は、伝送情報を多項式に見立てて、これを生
成多項式と呼ばれるn次多項式で桁上がり・桁借りなし
で割り算し、その剰余を元の伝送情報と共に伝送し、受
信側でこれを同一の生成多項式で割り算して割り切れる
かどうかを判定することにより伝送誤りの有無を検出す
る方法である。CRC演算ルールは次の通りである。
2. Description of the Related Art As is well known, CRC (Cyclic Redunda)
cy Check) uses transmission information as a polynomial, divides it by an nth-order polynomial called a generator polynomial without carrying or borrowing, and transmits the remainder together with the original transmission information, which is the same on the receiving side. This is a method of detecting the presence or absence of a transmission error by dividing by the generator polynomial and determining whether it is divisible. The CRC calculation rule is as follows.

【0003】まず、入力の多項式G(X)にXn を乗算
する。次に、Xn G(X)を生成多項式P(X)で桁上
げ・桁借りなしで除算する。商を無視して余りをC
(X)とする。続いて、Xn G(X)+C(X)を伝送
する。ここで、Q(X)を商とすると、 Xn G(X)=P(X)Q(X)+C(X) Xn G(X)+C(X)=Xn G(X)−C(X) =P(X)Q(X) 但し、モジュロ2の演算では加算=減算 であることから、受信側ではXn G(X)+C(X)を
P(X)で除算し、余りが0ならCRCエラーなしとな
る。
First, the input polynomial G (X) is multiplied by X n . Next, X n G (X) is divided by the generator polynomial P (X) without carrying or borrowing. Ignore the quotient and the remainder is C
(X). Then, X n G (X) + C (X) is transmitted. Here, when the quotient Q (X), X n G (X) = P (X) Q (X) + C (X) X n G (X) + C (X) = X n G (X) -C (X) = P (X) Q (X) However, in the calculation of modulo 2, since addition = subtraction, X n G (X) + C (X) is divided by P (X) on the receiving side, and the remainder If is 0, there is no CRC error.

【0004】しかしながら、上記のような従来のCRC
エラー検出回路では、以下のような問題がある。すなわ
ち、上述したCRCエラー検出において、受信信号断と
なった場合を考えてみると、受信信号=Xn G(X)+
C(X)=0となったときであるから、これをCRC演
算すれば0/P(X)=0となり、入力信号がないにも
かかわらず、データ正常と見なしてしまうことになる。
However, the conventional CRC as described above is used.
The error detection circuit has the following problems. That is, in the CRC error detection described above, considering the case where the reception signal is disconnected, the reception signal = X n G (X) +
Since it is when C (X) = 0, CRC calculation of this results in 0 / P (X) = 0, which means that the data is regarded as normal even though there is no input signal.

【0005】ここで、先行技術として、例えば特開平4
−95426号公報には、CRC誤り検出を行うのと同
時に、入力データが0または1が連続して入力されてい
るのを検知し、長期間同じデータが入力されている場合
はCRC検出出力をマスクする「CRC誤り検出回路」
が開示されている。
Here, as the prior art, for example, Japanese Patent Laid-Open No.
In Japanese Patent Publication No. 95426, at the same time that CRC error detection is performed, it is detected that 0 or 1 of input data is continuously input, and when the same data is input for a long time, a CRC detection output is given. "CRC error detection circuit" to mask
Is disclosed.

【0006】[0006]

【発明が解決しようとする課題】以上述べたように、従
来のCRCエラー検出回路では、入力信号がないにもか
かわらず、データ正常と見なしてしまうことになる。
As described above, in the conventional CRC error detection circuit, the data is regarded as normal even though there is no input signal.

【0007】本発明は上記の課題を解決するためになさ
れたもので、0連続データ時のCRCエラーを検出する
ことができ、これによってエラー検出の正常性を認識可
能なCRCエラー検出回路を提供することを目的とす
る。
The present invention has been made to solve the above problems, and provides a CRC error detection circuit capable of detecting a CRC error at the time of 0 continuous data and recognizing the normality of error detection. The purpose is to do.

【0008】ここで、上記先行技術は、長期間同じデー
タが入力されている場合はCRC検出出力をマスクする
CRC誤り検出回路を示すものであって、CRCチェッ
クの対象となるデータが一定以上連続して0になるのを
検知し、エラー検出をより厳密に行う本発明の技術思想
を示唆する具体的な記載がなく、本発明とは全く異なる
技術思想に立脚するものである。
Here, the above-mentioned prior art shows a CRC error detection circuit that masks the CRC detection output when the same data is input for a long period of time, and the data subject to the CRC check continues for a certain amount or more. Therefore, there is no specific description that suggests the technical idea of the present invention in which the error detection is performed more strictly and the error detection is performed more strictly, and the technical idea is completely different from the present invention.

【0009】[0009]

【課題を解決するための手段】上記目的を達成するため
に本発明に係るCRCエラー検出回路は、CRC受信デ
ータのCRCチェックを行い第1の判定結果を出力する
CRCチェック回路と、前記CRC受信データに基づい
てセットされ、そのフレームパルスに基づいてリセット
されるR/Sフリップフロップと、前記フレームパルス
のタイミングで前記R/Sフリップフロップの出力を保
持し、第2の判定結果として出力するD型フリップフロ
ップとを具備して構成される。
In order to achieve the above object, a CRC error detection circuit according to the present invention includes a CRC check circuit for performing a CRC check of CRC reception data and outputting a first determination result, and the CRC reception circuit. An R / S flip-flop that is set based on the data and reset based on the frame pulse, and a D that holds the output of the R / S flip-flop at the timing of the frame pulse and outputs it as the second determination result. Type flip-flop.

【0010】[0010]

【作用】上記構成によるCRCエラー検出回路では、C
RC受信データについてCRCチェック回路でCRCチ
ェックを行って第1の判定結果を取得し、R/Sフリッ
プフロップをCRC受信データに基づいてセットし、フ
レームパルスに基づいてリセットし、そのQ出力をD型
フリップフロップでフレームパルスの周期で打ち直し、
そのQ出力を第2の判定結果として取得し、第1及び第
2の判定結果から0連続時のCRCエラー検出の正常性
を認識可能としている。
In the CRC error detection circuit having the above structure, C
A CRC check circuit performs a CRC check on the RC received data to obtain a first determination result, sets an R / S flip-flop based on the CRC received data, resets it based on a frame pulse, and outputs its Q output to D. Type flip-flops, re-typed at the cycle of frame pulse,
The Q output is acquired as the second determination result, and the normality of the CRC error detection at the time of continuous 0 can be recognized from the first and second determination results.

【0011】[0011]

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

【0012】図1は本発明に係るCRCエラー検出回路
の実施例の構成を示すもので、端子T1に供給されるC
RC受信データはCRCチェック回路1に供給されると
共に、INVゲート2を介してR/Sフリップフロップ
4のセット端子Sに供給される。また、端子T2に供給
されるフレームパルスはINVゲート3を介してR/S
フリップフロップ4のリセット端子Rに供給されると共
に、D型フリップフロップ5のクロック入力端子CLK
に供給される。
FIG. 1 shows a configuration of an embodiment of a CRC error detection circuit according to the present invention, in which C supplied to a terminal T1 is
The RC reception data is supplied to the CRC check circuit 1 and also to the set terminal S of the R / S flip-flop 4 via the INV gate 2. Further, the frame pulse supplied to the terminal T2 is R / S via the INV gate 3.
The clock signal is supplied to the reset terminal R of the flip-flop 4 and the clock input terminal CLK of the D-type flip-flop 5.
Is supplied to.

【0013】R/Sフリップフロップ4のQ端子出力は
D型フリップフロップ5のデータ入力端子Dに供給され
る。上記CRCチェック回路1の出力は判定結果D1と
して端子T3から出力される。また、上記D型フリップ
フロップ5のQ端子出力は判定結果D2として端子T4
から出力される。
The Q terminal output of the R / S flip-flop 4 is supplied to the data input terminal D of the D-type flip-flop 5. The output of the CRC check circuit 1 is output from the terminal T3 as the determination result D1. The output of the Q terminal of the D-type flip-flop 5 is the terminal T4 as the determination result D2.
Output from

【0014】上記構成において、以下、図2に示す入出
力データの位相関係を参照してその動作を説明する。
In the above structure, the operation will be described below with reference to the phase relationship of input / output data shown in FIG.

【0015】まず、CRCチェック回路1にて受信デー
タをCRCチェックし、その判定結果D1をT3より取
り出す。また、受信データをINVゲート2を通し、反
転した結果をR/Sフリップフロップ4のセット端子S
に入力する。これにより、受信データに少なくとも
“1”が1個以上存在した時点でR/Sフリップフロッ
プ4にセットが掛かる。また、“1”が1個も存在しな
い場合にはセットが掛からない。
First, the CRC check circuit 1 performs a CRC check on the received data, and the determination result D1 is taken out from T3. Further, the reception data is passed through the INV gate 2 and the inverted result is set terminal S of the R / S flip-flop 4.
To enter. As a result, the R / S flip-flop 4 is set when at least one "1" is present in the received data. Further, if there is no "1", the set is not applied.

【0016】一方、フレームパルスをINVゲート3に
通し、反転した結果をR/Sフリップフロップ4のリセ
ット端子Rに入力する。これにより、R/Sフリップフ
ロップ4はフレームパルスの周期毎にリセットが掛か
る。
On the other hand, the frame pulse is passed through the INV gate 3 and the inverted result is input to the reset terminal R of the R / S flip-flop 4. As a result, the R / S flip-flop 4 is reset every frame pulse cycle.

【0017】そこで、R/Sフリップフロップ4の処理
結果をD型フリップフロップ5にてフレームパルスの周
期で打ち直す。これにより、受信データ中に“1”が存
在するか否かの結果を判定結果D2として取り出す。
Therefore, the processing result of the R / S flip-flop 4 is corrected by the D-type flip-flop 5 at the cycle of the frame pulse. As a result, the result of whether or not "1" is present in the received data is extracted as the determination result D2.

【0018】以上の処理の結果は次のようになる。ま
ず、“1”を少なくとも1個以上含む正常データの場
合、判定結果D1は正常、判定結果D2はHレベルとな
る。また、“1”を全く含まない正常データの場合、判
定結果D1は正常、判定結果D2はLレベルとなる。異
常データの場合、判定結果D1は異常、判定結果D2は
不定となる。
The result of the above processing is as follows. First, in the case of normal data including at least one "1", the determination result D1 is normal and the determination result D2 is H level. Further, in the case of normal data that does not include “1” at all, the determination result D1 is normal and the determination result D2 is L level. In the case of abnormal data, the determination result D1 is abnormal and the determination result D2 is indefinite.

【0019】したがって、従来のCRCエラー回路では
0連続データ時においてCRCエラーの検出が不可能で
あったが、上記構成によるCRCエラー検出回路によれ
ば、オール“0”を検出することによりエラー検出の正
常性を認識可能となる。
Therefore, although the conventional CRC error circuit cannot detect the CRC error at the time of 0 continuous data, the CRC error detection circuit having the above-mentioned configuration detects the error by detecting all "0" s. The normality of can be recognized.

【0020】尚、本発明は上記実施例に限定されるもの
ではなく、本発明の要旨を逸脱しない範囲で種々変形し
ても同様に実施可能であることはいうまでもない。
It is needless to say that the present invention is not limited to the above-mentioned embodiments, and can be similarly implemented even if various modifications are made without departing from the gist of the present invention.

【0021】[0021]

【発明の効果】以上述べたように本発明によれば、0連
続データ時のCRCエラーを検出することができ、これ
によってエラー検出の正常性を認識可能なCRCエラー
検出回路を提供することができる。
As described above, according to the present invention, it is possible to provide a CRC error detection circuit capable of detecting a CRC error at the time of 0 continuous data and recognizing the normality of error detection. it can.

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

【図1】本発明の一実施例に係るエラー検出回路の構成
を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of an error detection circuit according to an embodiment of the present invention.

【図2】同実施例の動作を説明するためのタイミング図
である。
FIG. 2 is a timing chart for explaining the operation of the embodiment.

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

1 CRCチェック回路 2 INVゲート 3 INVゲート 4 S/Rフリップフロップ 5 D型フリップフロップ 1 CRC check circuit 2 INV gate 3 INV gate 4 S / R flip-flop 5 D-type flip-flop

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 CRC受信データのCRCチェックを行
い第1の判定結果を出力するCRCチェック回路と、 前記CRC受信データに基づいてセットされ、そのフレ
ームパルスに基づいてリセットされるR/Sフリップフ
ロップと、 前記フレームパルスのタイミングで前記R/Sフリップ
フロップの出力を保持し、第2の判定結果として出力す
るD型フリップフロップとを具備することを特徴とする
CRCエラー検出回路。
1. A CRC check circuit for performing a CRC check of CRC reception data and outputting a first judgment result; and an R / S flip-flop set based on the CRC reception data and reset based on the frame pulse thereof. And a D-type flip-flop that holds the output of the R / S flip-flop at the timing of the frame pulse and outputs the result as a second determination result.
【請求項2】 前記R/Sフリップフロップは、前記C
RC受信データの反転信号によりセットされ、前記フレ
ームパルスの反転信号によりリセットされることを特徴
とする請求項1記載のCRCエラー検出回路。
2. The R / S flip-flop comprises the C
The CRC error detection circuit according to claim 1, wherein the CRC error detection circuit is set by an inversion signal of RC reception data and reset by an inversion signal of the frame pulse.
JP23632294A 1994-09-30 1994-09-30 Crc error detecting circuit Withdrawn JPH08102679A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23632294A JPH08102679A (en) 1994-09-30 1994-09-30 Crc error detecting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23632294A JPH08102679A (en) 1994-09-30 1994-09-30 Crc error detecting circuit

Publications (1)

Publication Number Publication Date
JPH08102679A true JPH08102679A (en) 1996-04-16

Family

ID=16999093

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23632294A Withdrawn JPH08102679A (en) 1994-09-30 1994-09-30 Crc error detecting circuit

Country Status (1)

Country Link
JP (1) JPH08102679A (en)

Similar Documents

Publication Publication Date Title
JPH04103224A (en) Code error check circuit
US5408476A (en) One bit error correction method having actual data reproduction function
CA2037219C (en) Electronic circuit for generating error detection codes for digital signals
JPH08102679A (en) Crc error detecting circuit
JP3001414B2 (en) Code error correction device
JPH06252874A (en) Word synchronization detection circuit
JP2715953B2 (en) Synchronous circuit
JP2000188591A (en) Received data error detection circuit
JP2663441B2 (en) Sync signal detection method
JP2611722B2 (en) Error flag output circuit
JP2735760B2 (en) Pattern detection circuit
JPH0481896B2 (en)
JPH0388535A (en) Received data processor
JP2759607B2 (en) Synchronous signal detection device
JP2780503B2 (en) Parity check detection circuit
JPH04326219A (en) Pointer processing circuit
JPH06140940A (en) Discrimination circuit for parity part of serial data form
JPS61158232A (en) Sequential preamble signal detecting circuit
JPH06216881A (en) Parity error monitor circuit
JP3015722B2 (en) Digital signal processor
JP2870313B2 (en) Transmission line error rate degradation alarm detection circuit
JPH0531973B2 (en)
JPH05167647A (en) Speed converter having fault detection function
JPS58220545A (en) Digital transmitting system
JPH0923215A (en) Data check circuit in crc

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20020115