JPS63262933A - Multiplex transmission circuit - Google Patents

Multiplex transmission circuit

Info

Publication number
JPS63262933A
JPS63262933A JP9692187A JP9692187A JPS63262933A JP S63262933 A JPS63262933 A JP S63262933A JP 9692187 A JP9692187 A JP 9692187A JP 9692187 A JP9692187 A JP 9692187A JP S63262933 A JPS63262933 A JP S63262933A
Authority
JP
Japan
Prior art keywords
bit
check
parity
data
crc
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
JP9692187A
Other languages
Japanese (ja)
Inventor
Kiyoshi Imamura
潔 今村
Naotake Nagao
長尾 尚武
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.)
Omron Corp
Original Assignee
Omron Tateisi Electronics Co
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 Omron Tateisi Electronics Co filed Critical Omron Tateisi Electronics Co
Priority to JP9692187A priority Critical patent/JPS63262933A/en
Publication of JPS63262933A publication Critical patent/JPS63262933A/en
Pending legal-status Critical Current

Links

Landscapes

  • Error Detection And Correction (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)
  • Time-Division Multiplex Systems (AREA)

Abstract

PURPOSE:To make the manufacture of a dedicated IC unnecessary and to reduce cost, by providing both parity check and CRC check functions, and selecting either of them. CONSTITUTION:A transmission part attaches a parity bit generated by a parity bit generating means 1 or a CRC bit generated by a CRC bit generating means 2 selectively on data, and a reception part performs the the parity check or the CRC check synchronizing with the switching of the check bit of the transmission part. Therefore, it is possible to select either the parity check or the CRC check at need. In such a way, it is possible to eliminate the need of the manufacture of the dedicated IC.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は多重伝送回路に関し、特に、データを送信部
から受信部へ伝送するときに、データのパリティチェッ
クまたはCRCチェックを行なうような多重伝送回路に
関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a multiplex transmission circuit, and particularly relates to a multiplex transmission circuit that performs a parity check or CRC check on data when transmitting data from a transmitter to a receiver. Regarding circuits.

[従来の技術] 多重伝送回路において、送信部から受信部へデータを伝
送するとき、伝送途中におけるデータのエラーをチェッ
クするために、受信部でエラーチェックが行なわれる。
[Prior Art] In a multiplex transmission circuit, when data is transmitted from a transmitting section to a receiving section, an error check is performed at the receiving section in order to check for errors in the data during transmission.

エラーチェックの方法として1代表的なものにパリティ
チェックとCRCチェックとがある。バリディチェック
は送信部でパリティビットと称される1ピッ1−の冗長
ピッ]−をデータに付加し、受M部でたとえば水平パリ
ティチェックを行なう。CRCチェックは、複数ビット
からなるCRCビットを送信部でデータに付加し、受信
部でCRCチェックを行なう。
One typical error checking method is a parity check and a CRC check. In the validity check, the transmitter adds a redundant bit called a parity bit to the data, and the receiver performs, for example, a horizontal parity check. In the CRC check, a CRC bit consisting of a plurality of bits is added to data in a transmitter, and a CRC check is performed in a receiver.

[発明が解決しようとする問題点] 上述のバリディチェックは、データに1ビツトのバリデ
ィビットを付加するだけでよいため、シリアルなデータ
のサイクルタイムを最小限に抑えることができるという
利点がある反面、エラーチェックできる確率が小さいと
いう欠点がある。一方、CRCチェックの場合には、エ
ラーチェックできる確率は大きくなるが、CRCピット
のビット数が多くなるため、ナイクルタイムが長くなっ
てしまう欠点がある。いずれの方法を用いるかは、伝送
しようとするデータの重要度や商品のコス1へを考慮し
て選択される。従来ではいずれか一方に限定して回路を
構成したり、専用の■cを製造していたため、装置によ
って別々の回路を構成するかあるいは専用のICを製造
しなければならなかった。
[Problems to be Solved by the Invention] The validity check described above only requires adding one valid bit to the data, so it has the advantage of minimizing serial data cycle time. On the other hand, it has the disadvantage that the probability of error checking is small. On the other hand, in the case of a CRC check, although the probability of error checking increases, the number of bits of the CRC pit increases, so the disadvantage is that the cycle time becomes long. Which method to use is selected in consideration of the importance of the data to be transmitted and the cost of the product. Conventionally, circuits were configured only for one of them, or dedicated ICs were manufactured, so separate circuits had to be configured or dedicated ICs had to be manufactured depending on the device.

ぼれゆえに、この発明の主たる目的は、パリティチェッ
クとCRCチェックの両方の機能を備え、いずれか一方
を選択できるようにして、IC化することにより、コス
トを低減できるような多重伝送回路を提供することであ
る。
Therefore, the main purpose of the present invention is to provide a multiplex transmission circuit that has both parity check and CRC check functions, allows selection of either one, and can reduce costs by implementing it into an IC. That's true.

[問題点を解決するための手段] この発明はデータを送信部から受信部へ伝送するときに
バリディチェックまたはCRCチェックによりデータの
エラーチェックを行なう多重伝送回路であって、送信部
は、入力されたビット並列のデータをビット直列のデー
タに変換する並直変換手段と、ビット並列のデータに基
づいてバリ°アイピッ1へを生成するパリティビット生
成手段と、CRCビットを生成するCRCピット生成手
段と、生成されたパリティビットとCRCビットのいず
れかを選択する第1の選択手段と1選択されたバリアイ
ビットまたはCRCピットを並直変換手段に与えて、ビ
ット直列に変換されたデータに付加するチェックビット
付加手段とから構成される。
[Means for Solving the Problems] The present invention is a multiplex transmission circuit that performs a data error check by a validity check or a CRC check when transmitting data from a transmitter to a receiver, wherein the transmitter parallel-to-serial conversion means for converting bit-parallel data into bit-serial data; parity bit generation means for generating variable bits based on the bit-parallel data; and CRC pit generation means for generating CRC bits. a first selection means for selecting one of the generated parity bits and CRC bits; and a first selection means for selecting either the generated parity bit or CRC bit; and check bit adding means.

一方、受信部は、伝送されたビット直列のデータからチ
ェックビットを分離するチェックピット分*¥段と、チ
ェックピットが分離されたビット直列のデータをビット
並列のデータに変換する直並変換手段と、分離されたパ
リティピットに基づいて直並変換手段によってビット並
列に変換されたデータのパリティチェックを行なうパリ
ティチェック手段と、分離されたCRCビットに基づい
てビット並列に変換されたデータのCRCチェックを行
なうCRCチェック手段と、パリティチェック手段によ
るチェック結果とCRCチェック手段によるチェック結
果のいずれかを送信部に同期して選択する第2の選択手
段とから構成される。
On the other hand, the receiving section includes a check pit *\ stage for separating check bits from the transmitted bit serial data, and a serial/parallel conversion means for converting the bit serial data from which the check pits have been separated into bit parallel data. , a parity check means for performing a parity check on data converted into bit parallel by the serial/parallel conversion means based on the separated parity pits, and a CRC check on the data converted into bit parallel based on the separated CRC bits. and a second selection means that selects either the check result by the parity check means or the check result by the CRC check means in synchronization with the transmitter.

[作用] この発明に係る多重伝送回路は、送信部では、パリティ
ビット生成手段によって生成されたパリティビットとC
RCピット生成手段によって生成されたCRCビットと
を選択的にデータに付加し、受信部では、送信部のチェ
ックビットの切換に同期して、パリティチェックまたは
CRCチェックを行なうようにしたので、必要に応じて
パリティLニックとCRCチェックのいずれかを選択で
きる。
[Operation] In the multiplex transmission circuit according to the present invention, in the transmitting section, the parity bit generated by the parity bit generation means and C
The CRC bits generated by the RC pit generation means are selectively added to the data, and the receiving section performs a parity check or CRC check in synchronization with the switching of the check bits in the transmitting section. Either parity L nick or CRC check can be selected accordingly.

[実施例] 第1図はこの発明の一実施例の送信部の概略ブロック図
であり、第2図は同じく受信部の概略ブロック図である
[Embodiment] FIG. 1 is a schematic block diagram of a transmitter according to an embodiment of the present invention, and FIG. 2 is a schematic block diagram of a receiver as well.

まず、第1図および第2図を参照して、この発明の一実
施例の構成について説明する。この実施例では、8ビツ
トのデータを送信部30から受信部70に送信するもの
とする。送信130に入力された8ビツトのデータはパ
リティビット生成回路1とORCピット生成回路2とに
与えられる。
First, the configuration of an embodiment of the present invention will be described with reference to FIGS. 1 and 2. In this embodiment, it is assumed that 8-bit data is transmitted from the transmitter 30 to the receiver 70. The 8-bit data input to the transmission 130 is given to the parity bit generation circuit 1 and the ORC pit generation circuit 2.

パリティビット生成回路1は8ビツトのデータに基づい
て、1ビツトのパリティビットを生成し、ORCピット
生成回路2は8ビツトのデータに基づいて、5ビツトの
ORCピットを生成する。
Parity bit generation circuit 1 generates a 1-bit parity bit based on 8-bit data, and ORC pit generation circuit 2 generates 5-bit ORC pits based on 8-bit data.

生成された1ビツトのパリティビットと5ビツトのCR
CL’ットのうらの先頭ビットは選択回路3に与えられ
る。選択回路3はセレクト信号に基づいて、パリティビ
ットまたはORCピットの先頭ビットを選択するもので
ある。さらに、8ビツトのデータはシフトレジスタ10
に与えられる。
Generated 1-bit parity bit and 5-bit CR
The first bit at the bottom of CL' is given to the selection circuit 3. The selection circuit 3 selects the parity bit or the first bit of the ORC pit based on the selection signal. Furthermore, the 8-bit data is transferred to the shift register 10.
given to.

シフトレジスタ10は15個の7リツプフロツプ11な
いし20を縦統接続して構成され、パラレルなデータお
よびパリティビットまたはORCピットをシリアルなデ
ータに変換する。このために、シフトレジスタ10の初
段のフリップフロップ11にはスタートビットが与えら
れ、2段目ないし9段目のフリップフロップ12ないし
19には8ビツトのデータが与えられ、10段目の7リ
ツプ70ツブ2oには選択回路3の出力が与えられる。
Shift register 10 is constructed by cascading fifteen 7-lip flops 11 to 20 and converts parallel data and parity bits or ORC pits into serial data. For this purpose, a start bit is given to the flip-flop 11 in the first stage of the shift register 10, 8-bit data is given to the flip-flops 12 to 19 in the second to ninth stages, and 7-bit data is given to the flip-flops 12 to 19 in the second to ninth stages. The output of the selection circuit 3 is given to the 70 tube 2o.

さらに、シフトレジスタ10に含まれるフリップフロッ
プ21ないし25が11続接続され、フリップフロップ
21ないし24には5ビツトのORCビットのうち2ビ
ツト目ないし5ビツト目が与えられ、最終段のフリップ
フロップ25にはストップビットが与えられる。そして
、11段目のフリップフロップ21の出力と最終段の7
リツプフロツプ25の出力は選択回路4に与えられる。
Furthermore, 11 flip-flops 21 to 25 included in the shift register 10 are connected in series, and the second to fifth bits of the five ORC bits are given to the flip-flops 21 to 24. is given a stop bit. Then, the output of the 11th stage flip-flop 21 and the final stage 7
The output of the flip-flop 25 is applied to the selection circuit 4.

この選択回路4はセレクト信号に応じて切換えられ、1
1段目のフリップフロップ21の出力または最終段の7
リツプ70ツブ25の出力を選択して10段目の7リツ
プフロツブ20に与える。
This selection circuit 4 is switched according to a selection signal, and
The output of the first stage flip-flop 21 or the final stage 7
The output of the lip flop 25 is selected and applied to the 7 lip flop 20 in the 10th stage.

次に、第2図を参照して、受信部70の構成について説
明する。送信部30によって送信されたシリアルデータ
は受信部70のシフトレジスタ50に与えられる。この
シフトレジスタ50は15個のフリップフロップ51な
いし65を含み、パリティビットまたはORCピットの
付加されたシリアルなデータをパラレルなデータに変換
する。
Next, the configuration of the receiving section 70 will be explained with reference to FIG. The serial data transmitted by the transmitting section 30 is given to the shift register 50 of the receiving section 70. This shift register 50 includes 15 flip-flops 51 to 65, and converts serial data to which parity bits or ORC pits are added into parallel data.

より具体的に説明すると、初段のフリップフロップ51
ないし10段目の7リツプフロツブ60は縦続接続され
、11段目の7リツプ゛フロツプ61ないし最IIM段
の7リツプフ0ツブ65も縦統接続される。そして、1
1段目のフリップフロップ61の出力と最終段のフリッ
プフロップ65の出力は選択回路5に与えられる。選択
回路5はセレクト信号に基づいていずれか一方を選択し
て10段目の7リツプフロツプ60に与える。
To explain more specifically, the first stage flip-flop 51
The 7-lip-flops 60 in the 11th to 10th stages are connected in cascade, and the 7-lip-flops 61 in the 11th stage to the 7-lip flops 65 in the most IIM stage are also cascaded. And 1
The output of the first stage flip-flop 61 and the output of the final stage flip-flop 65 are applied to the selection circuit 5. The selection circuit 5 selects one of them based on the select signal and supplies it to the 7 lip-flop 60 in the 10th stage.

初段の7リツプ7aツブ51はシリアルデータからスタ
ートビットを出力するものであり、2段目のフリップフ
ロップ52ないし9段目の7リツプフロツプ59はシリ
アルデータを8ビツトのパラレルデータに変換してラッ
チ9に与える。ラッチ9はストローブ信号に基づいて、
8ビツトのパラレルデータをラッチする。また、10段
目の7リツプ70ツブ60は1ビツトのパリティビット
または5ビツトのORCピットのうちの先頭ビットを出
力してパリティチェック回路6とCRCチェック回路7
とに与える。また、フリップフロップ61ないし64は
ORCピットの残りのビットを出力してCRCチェック
回路7に与える。最終段のフリップ70ツブ65はスト
ップビットを出力する。
The first stage 7-lip flop 7a block 51 outputs a start bit from serial data, and the second-stage flip-flop 52 to the ninth stage 7-lip flop 59 convert the serial data into 8-bit parallel data and output it to the latch 9. give to The latch 9 is based on the strobe signal.
Latch 8-bit parallel data. Furthermore, the 7-lip 70-tube 60 in the 10th stage outputs the first bit of the 1-bit parity bit or the 5-bit ORC pit to be sent to the parity check circuit 6 and the CRC check circuit 7.
give to. Further, the flip-flops 61 to 64 output the remaining bits of the ORC pit and provide them to the CRC check circuit 7. The final stage flip 70 tube 65 outputs a stop bit.

パリティチェック回路6は1ビツトのパリティビットに
基づいて、8ビツトのパラレルデータのバリディチェッ
クを行なう。また、CRCヂLツり回路7は5ビツトの
CRCビットに基づいて、8ビツトのパラレルデータの
CRCチェックを行なう′。パリティチェック回路6に
よるチェック信号およびCRCチェック回路7によるチ
ェック信号は選択回路8に与えられる。選択回路8はセ
レクト信号に基づいて、パリティチェックまたはCRC
ヂエツク結果のいずれかのチェック信号を選択して出力
する。なお、セレクト信号は送信部30のセレクト信号
に同期しており、送信部30でパリティビットが選択さ
れたときには、受信部70でもパリティチェック結果信
号が出力されるようになっている。
Parity check circuit 6 performs a validity check on 8-bit parallel data based on 1-bit parity bit. Further, the CRC error circuit 7 performs a CRC check on the 8-bit parallel data based on the 5-bit CRC bit. A check signal from parity check circuit 6 and a check signal from CRC check circuit 7 are applied to selection circuit 8 . The selection circuit 8 performs parity check or CRC based on the selection signal.
Select and output one of the check signals from the check results. Note that the select signal is synchronized with the select signal of the transmitter 30, so that when the transmitter 30 selects a parity bit, the receiver 70 also outputs a parity check result signal.

第3図はこの発明の一実施例によるパリティチェックの
動作を説明するための図であり、第4図は同じ<CRC
チェックの動作を説明するための図である。
FIG. 3 is a diagram for explaining the operation of parity check according to an embodiment of the present invention, and FIG.
FIG. 3 is a diagram for explaining a check operation.

次に、第1図ないし第4図を参照して、この発明の一実
施例の具体的な動作について説明する。
Next, with reference to FIGS. 1 to 4, a specific operation of an embodiment of the present invention will be described.

まず、8ビツトのパラレルデータにパリティピットを付
加し、送信部30から受信部70に送信する場合には、
セレクト信号によって選択回路3の入力をパリティビッ
ト生成回路1側に切換え、選択回路4によってシフトレ
ジスタ10の最終段のフリップフロップ25の出力を選
択して10段目のフリップフロップ20に与えるように
する。8ビツトのパラレルデータはパリティビット生成
回路1に与えられ、1ビツトのパリティピットが生成さ
れる。このパリティピットは選択回路3を介して10段
目の7リツプフロツブ20にロードされる。また、初段
の7リツプフOツブ11にはスタートビットがロードさ
れ、2段目ないし9段目の7リツプフOツブ12ないし
1つには8ビツトのパラレルデータがロードされ、10
段目の7リツプ70ツブ20にはパリティピットがロー
ドされ、最終段の7リツプフロツブ25にはストップビ
ットがロードされる。
First, when adding parity pits to 8-bit parallel data and transmitting it from the transmitter 30 to the receiver 70,
The input of the selection circuit 3 is switched to the parity bit generation circuit 1 side by the selection signal, and the selection circuit 4 selects the output of the flip-flop 25 at the final stage of the shift register 10 and supplies it to the flip-flop 20 at the 10th stage. . The 8-bit parallel data is applied to a parity bit generation circuit 1, and a 1-bit parity pit is generated. This parity pit is loaded via the selection circuit 3 into the 7-lip flop 20 at the 10th stage. In addition, a start bit is loaded into the first stage 7-lip flop O-tube 11, 8-bit parallel data is loaded into one or more 7-lip flop O-tubes 12 from the 2nd to 9th stages, and 10
A parity pit is loaded into the 7th lip flop 20 at the 7th stage, and a stop bit is loaded into the 7th lip flop 25 at the final stage.

このとき、選択回路4によって最終段の7リツプフロツ
プ25の出力が選択されているため、フリップ7Oツブ
21ないし24は無効化される。
At this time, since the output of the final stage 7 flip-flop 25 is selected by the selection circuit 4, the flip 7 flip-flops 21 to 24 are invalidated.

図示しないりOツクパルスがシフトレジスタ10に与え
られると、第3図に示すような態様で、スタートビット
(S)と8ビツトのシリアルデータとパリティピット(
P)とストップビット(E)とがシリアルに出力される
When an O clock pulse (not shown) is applied to the shift register 10, the start bit (S), 8-bit serial data, and parity pit (
P) and a stop bit (E) are output serially.

一方、受信部70では、選択回路5の入力が最終段のフ
リップフロツブ65側に切換えられ、選択回路8の入力
がパリティチェック回路6の出力側に切換えられている
。送信部30から送信されたシリアルデータはシフトレ
ジスタ50にシリアルに入力され、フリップフロツブ6
59選択回路5、フリップフロップ60.59・・・5
2.51に順次図示しないクロックパルスに基づいてシ
フトされる。そして、初段のフリップフロップ51から
スタートビットが出力され、2段目ないし9段目の7リ
ツプ70ツブ52ないし59から8ビツトのパラレルデ
ータが出力されてラッチ9に与えられるとともに、パリ
ティチェック回路6にも与えられる。
On the other hand, in the receiving section 70, the input of the selection circuit 5 is switched to the final stage flip-flop 65 side, and the input of the selection circuit 8 is switched to the output side of the parity check circuit 6. The serial data transmitted from the transmitter 30 is serially input to the shift register 50, and the flip-flop 6
59 selection circuit 5, flip-flop 60.59...5
2.51 based on a clock pulse (not shown). Then, a start bit is output from the flip-flop 51 at the first stage, and 8-bit parallel data is output from the 7-lip 70 tubes 52 to 59 at the second to ninth stages and is applied to the latch 9. It is also given to

ラッチ9はストローブ信号に基づいて、8ビツトのパラ
レルデータをラッチして出力する。また、パリティチェ
ック回路6は10段目のフリップフロップ60から与え
られるパリティピットに基づいて、8ビツトのパラレル
データのパリティチェックを行なう。そのヂエック結果
信号は選択回路8を介して出力される。また、最終段の
7リツプフ0ツブ65からはストップビットが出力され
る。
Latch 9 latches and outputs 8-bit parallel data based on the strobe signal. Further, the parity check circuit 6 performs a parity check on the 8-bit parallel data based on the parity pit provided from the flip-flop 60 in the tenth stage. The check result signal is outputted via the selection circuit 8. Further, a stop bit is output from the 7-lipflip 65 at the final stage.

次に、CRC″fニックを行なう場合には、送信部30
ではセレクト信号に基づいて、選択回路3がCRCビッ
ト生成回路2の先頭ビットを選択し、選択回路4は11
段目のフリップフロップ21の出力を選択する。この場
合、CRCビット生成回路2は8ビツトのパラレルデー
タに基づいて5ビツトのCRCビットを生成する。この
5ビツトのCRCビットのうち、先頭ビットは選択回路
3を介して10段目の7リツプ70ツブ20にロードさ
れ、残りの4ビツトはフリップフロップ21ないし24
にロードされる。
Next, when performing a CRC″f nick, the transmitter 30
Then, based on the select signal, the selection circuit 3 selects the first bit of the CRC bit generation circuit 2, and the selection circuit 4 selects the first bit of the CRC bit generation circuit 2.
The output of the flip-flop 21 in the second stage is selected. In this case, the CRC bit generation circuit 2 generates 5-bit CRC bits based on 8-bit parallel data. Of these 5 CRC bits, the first bit is loaded into the 10th stage 7-lip 70 block 20 via the selection circuit 3, and the remaining 4 bits are loaded into the flip-flops 21 to 24.
loaded into.

そして、前述の説明と同様にして、スタートビットが7
リツプ70ツブ11に0−ドされ、8ビツトのパラレル
データが7リツプフロツプ12ないし19にロードされ
、ストップビットが最終段のフリップフロップ25にロ
ードされる。そして、クロックパルスがシフトレジスタ
10に与えられると、第4図に示す態様で、スタートビ
ット(S)、8ビツトのパラレルデータ、5ビツトのC
RCビット、ストップビット(E)がシリアルに順次出
力される。
Then, in the same way as described above, the start bit is set to 7.
The 8-bit parallel data is loaded into the 7 flip-flops 12 to 19, and the stop bit is loaded into the final flip-flop 25. When a clock pulse is applied to the shift register 10, the start bit (S), 8-bit parallel data, and 5-bit C
The RC bit and stop bit (E) are output serially and sequentially.

受信部70では、選択回路5が11段目のフリップフロ
ップ61の出力を選択して10段目の7リツプフロツブ
60にシリアルに与え、選択回路8はCRCブーニック
回路7の出力を選択している。
In the receiving section 70, the selection circuit 5 selects the output of the flip-flop 61 at the 11th stage and serially applies it to the 7-lip flop 60 at the 10th stage, and the selection circuit 8 selects the output of the CRC boonick circuit 7.

この状態で、第4図に示すようなCRCチェックビット
の付加されたシリアルなデータがシフトレジスタ50に
シリアルに入力される。すなわち、シフトレジスタ50
はクロックパルスに基づいて、スタートビット(S)、
8ビツトのシリアルデータ25ビツトのCRCビットお
よびストップビットを順次シフトする。
In this state, serial data to which a CRC check bit has been added as shown in FIG. 4 is serially input to the shift register 50. That is, the shift register 50
is based on the clock pulse, the start bit (S),
8-bit serial data 25-bit CRC bits and stop bits are sequentially shifted.

そして、初段のフリップ70ツブ51からスタートビッ
トが出力され、2段目ないし9段目のフリップ70ツブ
52ないし59から8ビツトのパラレルデータが出力さ
れ、このデータはストローブ信号に基づいてラッチ9に
ラッチされる。さらに、フリップフロップ60は5ビツ
トのCRCビットの先頭ビットを出力し、フリップフロ
ップ61ないし64は残りのCRCビットをパラレルに
出力する。5ビツトのCRCビットはCRCチェック回
路7に与えられる。CRCブエツク回路7は5ビツトの
CRCビットに基づいて、8ビツトのパラレルデータの
CRCチェックを行なう。そして、そのチェック結果信
号は選択回路8を介して出力される。
Then, a start bit is output from the flip 70 knob 51 in the first stage, and 8-bit parallel data is output from the flip 70 knobs 52 to 59 in the second to ninth stages, and this data is sent to the latch 9 based on the strobe signal. Latched. Further, flip-flop 60 outputs the first bit of 5 CRC bits, and flip-flops 61 to 64 output the remaining CRC bits in parallel. The 5 CRC bits are provided to a CRC check circuit 7. The CRC check circuit 7 performs a CRC check on 8-bit parallel data based on 5-bit CRC bits. Then, the check result signal is outputted via the selection circuit 8.

[発明の効果1 以上のように、この発明によれば、送信部Cはパリティ
ビットの生成とCRCビットの生成を切換可能にし、受
信部では送信部に同期してパリティチェックとCRCブ
ーニックとを切換可能に構成したので、エラーチェック
できる確率が低くても高速伝送を行ないたい場合にはパ
リティ1ニツクを選択し、伝送速度が遅くなってもエラ
ーチェックできる確率を高めたいときにはCRCチェッ
クを選択することができ、必要に応じてチェックモード
を選択することが可能となる。
[Effect of the Invention 1] As described above, according to the present invention, the transmitter C can switch between parity bit generation and CRC bit generation, and the receiver C can perform parity check and CRC boonicking in synchronization with the transmitter. Since it is configured to be switchable, if you want to perform high-speed transmission even if the probability of error checking is low, select parity 1, and if you want to increase the probability of error checking even if the transmission speed is slow, select CRC check. It is possible to select the check mode as needed.

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

第1図はこの発明の一実施例の送信部の概略ブロック図
である。第2図は同じく受信部の概略ブロック図である
。第3図はパリティピットの付加された8ビツトのシリ
アルデータを示す図である。 第4図はCRCビットの付加された8ビツトのシリアル
データを示す図である。 図において、1はパリティビット生成回路、2はCRC
ビット生成回路、3.4.5.8は選択回路、6はパリ
ティチェック回路、7はCRCチェック回路、9はラッ
チ、10.50はシフトレジスタ、11ないし25.5
1ないし65はフリップフロップを示す。
FIG. 1 is a schematic block diagram of a transmitter according to an embodiment of the present invention. FIG. 2 is also a schematic block diagram of the receiving section. FIG. 3 is a diagram showing 8-bit serial data with parity pits added. FIG. 4 is a diagram showing 8-bit serial data with CRC bits added. In the figure, 1 is a parity bit generation circuit, 2 is a CRC
Bit generation circuit, 3.4.5.8 is selection circuit, 6 is parity check circuit, 7 is CRC check circuit, 9 is latch, 10.50 is shift register, 11 to 25.5
1 to 65 indicate flip-flops.

Claims (2)

【特許請求の範囲】[Claims] (1)データを送信部から受信部へ伝送するときに、送
信したデータのパリテイチェックまたはCRCチェック
によってエラーチェックを行なう多重伝送回路であって
、 前記送信部は、 入力されたビット並列のデータをビット直列のデータに
変換する並直変換手段と、 前記入力されたビット並列のデータに基づいて、パリテ
イビットを生成するパリテイビット生成手段と、 前記入力されたビット並列のデータに基づいて、CRC
ビットを生成するCRCビット生成手段と、 前記パリテイビット生成手段によって生成されたパリテ
イビットと、前記CRCビット生成手段によって生成さ
れたCRCビットのいずれかを選択して出力する第1の
選択手段と、 前記第1の選択手段によって選択されたパリテイビット
またはCRCビットを前記並直変換手段に与えて、前記
ビット直列に変換されたデータに付加するチェックビッ
ト付加手段とを含み、前記受信部は、 前記送信部から伝送されたチェックビットの付加された
ビット直列のデータからチェックビットを分離するチェ
ックビット分離手段と、 前記チェックビット分離手段によってチェックビットが
分離されたビット直列のデータをビット並列のデータに
変換する直並変換手段と、前記チェックビット分離手段
によって分離されたパリテイビットに基づいて、前記直
並変換手段によってビット並列に変換されたデータのパ
リテイチェックを行なうパリテイチェック手段と、前記
チェックビット分離手段によって分離されたCRCビッ
トに基づいて、前記直並変換手段によってビット並列に
変換されたデータのCRCチェックを行なうCRCチェ
ック手段と、 前記送信部に含まれる第1の選択手段に同期して切換え
られ、前記パリテイチェック手段によるチェック結果と
前記CRCチェック手段によるチェック結果のいずれか
を選択して出力する第2の選択手段とを含む、多重伝送
回路。
(1) A multiplex transmission circuit that performs an error check by parity check or CRC check of the transmitted data when transmitting data from a transmitting section to a receiving section, the transmitting section transmitting bit-parallel input data. parallel-to-serial conversion means for converting into bit-serial data; parity bit generation means for generating parity bits based on the input bit-parallel data; and parity bit generation means for generating parity bits based on the input bit-parallel data. , CRC
CRC bit generation means for generating bits; and first selection means for selecting and outputting either the parity bit generated by the parity bit generation means or the CRC bit generated by the CRC bit generation means. and check bit addition means for applying the parity bit or CRC bit selected by the first selection means to the parallel-to-serial conversion means and adding it to the bit-serial converted data, the receiving unit a check bit separating means for separating check bits from the bit serial data to which the check bits have been added transmitted from the transmitter; and bit parallel processing for the bit serial data from which the check bits have been separated by the check bit separating means. serial-parallel conversion means for converting the data into bit-parallel data; and parity check means for performing a parity check on the data converted into bit parallel by the serial-parallel conversion means based on the parity bits separated by the check bit separation means. and a CRC check means for performing a CRC check on the data converted into bit parallel by the serial-to-parallel conversion means based on the CRC bits separated by the check bit separation means, and a first selection included in the transmission section. 2. A multiplex transmission circuit comprising second selection means that is switched in synchronization with the parity check means and selects and outputs either the check result by the parity check means or the check result by the CRC check means.
(2)前記受信部は、前記直並変換手段によってビット
並列に変換されたデータを記憶する記憶手段を含む、特
許請求の範囲第1項記載の多重伝送回路。
(2) The multiplex transmission circuit according to claim 1, wherein the receiving section includes storage means for storing data converted into bit-parallel data by the serial-parallel conversion means.
JP9692187A 1987-04-20 1987-04-20 Multiplex transmission circuit Pending JPS63262933A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9692187A JPS63262933A (en) 1987-04-20 1987-04-20 Multiplex transmission circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9692187A JPS63262933A (en) 1987-04-20 1987-04-20 Multiplex transmission circuit

Publications (1)

Publication Number Publication Date
JPS63262933A true JPS63262933A (en) 1988-10-31

Family

ID=14177821

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9692187A Pending JPS63262933A (en) 1987-04-20 1987-04-20 Multiplex transmission circuit

Country Status (1)

Country Link
JP (1) JPS63262933A (en)

Similar Documents

Publication Publication Date Title
JP2886214B2 (en) Encoding method and encoding device
US4593393A (en) Quasi parallel cyclic redundancy checker
KR20040096779A (en) Data form converter between serial and parallel
US5506796A (en) Digital signal processing circuit selectively operable in either a normal or a pseudorandom noise generative mode
JP2001236306A (en) Method and device for data transfer
US5408476A (en) One bit error correction method having actual data reproduction function
JPS63262933A (en) Multiplex transmission circuit
EP0661820A2 (en) Parallel-to-serial data conversion circuit
JPH10117147A (en) Data generating circuit for error check
US20030076562A1 (en) High speed optical transmitter and receiver with a serializer with a minimum frequency generator
JPH088757A (en) Parallel/serial conversion circuit and serial/parallel conversion circuit
US4852097A (en) Method for forming data block protection information for serial data bit sequences by means of cyclical binary codes
JP3136573B2 (en) Decoding device and processing device for variable length code
JPS62233931A (en) Parallel serial converter
JPH05235779A (en) Digital demodulation circuit
JPS63284930A (en) Mbnb code converting circuit
JPH07321667A (en) Lsi input output signal control circuit
JPH07120262B2 (en) Sorting circuit
SU647682A1 (en) Constant-weight code-to-binary code converter
JPH06231071A (en) Format conversion circuit
JPH06276248A (en) Data format converter
SU843269A1 (en) Code shaping device
JP2000040967A (en) Device and method for information encoding
KR940023099A (en) Method and apparatus for serial / parallel conversion of data
JPS63169128A (en) Parallel/serial conversion circuit