JPH0211185B2 - - Google Patents

Info

Publication number
JPH0211185B2
JPH0211185B2 JP58198363A JP19836383A JPH0211185B2 JP H0211185 B2 JPH0211185 B2 JP H0211185B2 JP 58198363 A JP58198363 A JP 58198363A JP 19836383 A JP19836383 A JP 19836383A JP H0211185 B2 JPH0211185 B2 JP H0211185B2
Authority
JP
Japan
Prior art keywords
signal
error
error correction
data
error detection
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.)
Expired - Lifetime
Application number
JP58198363A
Other languages
Japanese (ja)
Other versions
JPS6090430A (en
Inventor
Tsukasa Yamada
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.)
Japan Broadcasting Corp
Original Assignee
Japan Broadcasting 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 Japan Broadcasting Corp filed Critical Japan Broadcasting Corp
Priority to JP58198363A priority Critical patent/JPS6090430A/en
Priority to US06/571,573 priority patent/US4630271A/en
Priority to CA000445657A priority patent/CA1216059A/en
Priority to KR1019840000228A priority patent/KR910000156B1/en
Publication of JPS6090430A publication Critical patent/JPS6090430A/en
Priority to CA000513552A priority patent/CA1222558A/en
Priority to US06/895,033 priority patent/US4819231A/en
Publication of JPH0211185B2 publication Critical patent/JPH0211185B2/ja
Priority to KR1019900011866A priority patent/KR910000178B1/en
Granted legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M13/00Coding, decoding or code conversion, for error detection or error correction; Coding theory basic assumptions; Coding bounds; Error probability evaluation methods; Channel models; Simulation or testing of codes
    • H03M13/37Decoding methods or techniques, not specific to the particular type of coding provided for in groups H03M13/03 - H03M13/35
    • H03M13/43Majority logic or threshold decoding

Description

【発明の詳細な説明】 本発明は、多数決差集合巡回符号誤り復号方式
を用いた誤り検出回路に関するものである。更に
詳述すれば本発明は、テレビジヨン信号の垂直帰
線期間にデイジタルコード化した文字情報を多重
伝送し、もつて家庭用テレビ受像機などへ表示す
る文字コード放送の誤り検出回路に関するもので
ある。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an error detection circuit using a majority set cyclic code error decoding method. More specifically, the present invention relates to an error detection circuit for character code broadcasting in which digitally coded character information is multiplexed transmitted during the vertical blanking period of a television signal and then displayed on a home television receiver or the like. be.

一般的な多数決差集合巡回符号を用いた復号方
式は周知の技術であり、例えば「符号理論」(昭
晃堂刊、宮川・岩垂・今井著p.287〜p.290)に述
べられている。
The decoding method using general majority difference set cyclic codes is a well-known technique, and is described, for example, in "Coding Theory" (published by Shokodo, by Miyagawa, Iwadare, and Imai, p.287-p.290). .

従来から日本の文字コード放送では、誤り訂正
方式として(272、190)符号を用いるのが最もよ
いとされている。このことは、本出願人による特
願昭58−6579号(特開昭59−133751号公報)「誤
り訂正復号方式」からも明らかである。すなわ
ち、かかる出願は、特に伝送路で生じたビツト誤
りを訂正することによつて最大限回復させようと
する誤り訂正復号方式に関するものであり、多数
決差集合巡回符号のうちから、データビツト273、
情報ビツト191およびパリテイビツト82ビツトの
信号を用い、この信号から1ビツト減少させて、
1パケツトを272ビツトで構成し、データビツト
272、情報ビツト190およびパリテイビツト82ビツ
トのデータ信号を形成して伝送し、伝送されてき
たデータ信号に、所定列がすべて1の行列を乗算
することにより、誤り訂正確率を増大させて情報
を復号できるようにすることを要旨としている。
Traditionally, in Japanese character code broadcasting, it has been considered best to use the (272, 190) code as an error correction method. This is clear from Japanese Patent Application No. 58-6579 (Japanese Unexamined Patent Publication No. 59-133751) entitled ``Error Correction Decoding System'' filed by the present applicant. In other words, this application relates to an error correction decoding system that attempts to recover as much as possible by correcting bit errors that occur in the transmission path, in which data bits 273, 273,
Using a signal with 191 information bits and 82 parity bits, one bit is reduced from this signal,
One packet consists of 272 bits, and data bits
272, a data signal of 190 information bits and 82 parity bits is formed and transmitted, and the transmitted data signal is multiplied by a matrix in which all predetermined columns are 1, thereby increasing the error correction probability and decoding the information. The purpose is to make it possible.

上述の特願昭58−6579号において提案した基本
的な誤り訂正復号方式を用いると、1パケツト
(272ビツト)において8ビツトの誤りを訂正する
ことは可能であるが、9ビツト以上の誤りについ
ては、ほとんど訂正できないという欠点がみられ
た。
Using the basic error correction decoding method proposed in the above-mentioned Japanese Patent Application No. 1986-6579, it is possible to correct 8-bit errors in one packet (272 bits), but errors of 9 bits or more cannot be corrected. The problem was that it could hardly be corrected.

また、上述の出願において提案したもう1つの
改良された誤り訂正復号方式(すなわち、誤りが
訂正できないときは、先頭ビツトをずらせること
によつて、9ビツト以上の誤りも訂正し得るよう
にした方式)では、処理時間が長くなりすぎると
いう欠点がみられた。
Another improved error correction decoding method proposed in the above-mentioned application (i.e., when errors cannot be corrected, errors of 9 bits or more can be corrected by shifting the first bit). The disadvantage of this method was that the processing time was too long.

そこで、本出願人による特願昭58−54002号で
は、誤り訂正能力を向上させると同時に処理時間
の短縮を図るために、多数決差集合巡回符号を用
いる多数決判定回路、シンドロームレジスタ、デ
ータレジスタを含む誤り訂正復号系において、多
数決判定回路に減算回路を付加すると共に、多数
決判定回路の判定閾値を多数決回路入力素子数以
内の特定値に設定し、巡回訂正後に、減算回路を
介して判定閾値から順次に特定数ずつ減算し、判
定閾値が所定値に達するまで減少させて訂正復号
することを要旨としている。
Therefore, in Japanese Patent Application No. 58-54002 filed by the present applicant, in order to improve the error correction ability and at the same time reduce the processing time, the applicant proposed a majority decision circuit using a majority difference set cyclic code, a syndrome register, and a data register. In the error correction decoding system, a subtraction circuit is added to the majority decision circuit, and the decision threshold of the majority decision circuit is set to a specific value within the number of input elements of the majority decision circuit, and after cyclic correction, sequential correction is performed from the decision threshold via the subtraction circuit. The gist is to perform corrective decoding by subtracting a specific number from the threshold value until the determination threshold value reaches a predetermined value.

しかし、上述したいずれの方式によつても、検
出不可能な誤りが生じるという欠点がみられた。
However, all of the above-mentioned methods have the disadvantage that undetectable errors occur.

本発明の目的は、上述の点に鑑み、文字コード
放送の誤り訂正検出が不可能な場合にも誤り訂正
ビツト数が多い場合は、誤り検出として扱い、誤
訂正の確率を減少させるよう構成した誤り検出回
路を提供することにある。
In view of the above-mentioned points, an object of the present invention is to reduce the probability of error correction by treating it as error detection even when error correction detection in character code broadcasting is impossible and when the number of error correction bits is large. An object of the present invention is to provide an error detection circuit.

かかる目的を達成するために、本発明では多数
決差集合巡回符号誤り復号方式を用いた文字コー
ド放送の誤り訂正回路において、巡回訂正中にシ
ンドロームレジスタより発生される誤り訂正ビツ
ト数を計数し、その計数値が特定値以上に達した
ときは、シンドロームレジスタがすべて零となつ
た状態であつても、誤り検出と判断する手段を備
え、誤字表示を低減せしめるよう構成する。
In order to achieve such an object, in the present invention, in an error correction circuit for character code broadcasting using a majority-set cyclic code error decoding system, the number of error correction bits generated from a syndrome register during cyclic correction is counted, and the number of error correction bits generated from a syndrome register is calculated. When the count value reaches a specific value or more, even if the syndrome registers are all zero, a means is provided to determine that an error has been detected, so as to reduce typographical errors.

以下に、図面を参照して本発明を詳細に説明す
る。
The present invention will be explained in detail below with reference to the drawings.

まず、本発明の第1実施例について、第1図な
いし第3図を参照して説明する。
First, a first embodiment of the present invention will be described with reference to FIGS. 1 to 3.

ここで、第1図は、本発明を適用した誤り検出
回路の一実施例を示す。
Here, FIG. 1 shows an embodiment of an error detection circuit to which the present invention is applied.

第2図は、しきい値を順次低下させて訂正を行
う場合に、初期しきい値による訂正能力の差を示
すシユミレーシヨン図である。ここで、lは多数
決論理の初期しきい値である。
FIG. 2 is a simulation diagram showing the difference in correction ability depending on the initial threshold value when correction is performed by lowering the threshold value sequentially. Here, l is the initial threshold of the majority logic.

第3図は、本発明の第1実施例における制御手
順全体を示すフローチヤートである。ここで、*
印はCPUの動作を示すステツプである。その他
のステツプでは、回路が自動的に動作する。な
お、本図に示す各々のステツプについては、以下
に示す第1図の説明において、併せて述べること
とする。
FIG. 3 is a flowchart showing the entire control procedure in the first embodiment of the present invention. here,*
The marks are steps that indicate CPU operations. In other steps, the circuit operates automatically. Note that each step shown in this figure will be described in conjunction with the explanation of FIG. 1 below.

第1図において、100は中央処理装置CPU
(図示せず)の出力ポート、101は並直(P/
S)・直並(S/P)変換回路、102はセレク
タ、103はデータレジスタ(272ビツト)、10
4は2を法とする加算器、105はCPUの入力
ポート、106はゲート、107は2を法とする
加算器、108はタイミングジエネレータ、10
9はシンドロームレジスタ(82ビツト)、110
は多数決論理回路、111は誤り検出回路、11
2はクロツク信号、113は誤り訂正前のデー
タ、114は誤り訂正後のデータ、115はリセ
ツト信号、116はロード信号、117はフエツ
チ信号、118はエラーステータス信号、119
はレデイ信号、120はデータロード制御信号、
121はデータロードパルス信号、122はデー
タロードクロツク信号、123は誤り訂正ゲート
信号、124は誤り訂正信号、125はシンドロ
ームシフトクロツク信号、126はフエツチ用ク
ロツク信号、127はシリアルロードデータ、1
28は循環データ、129はシンドロームレジス
タ信号、130はしきい値減少信号、131は誤
り訂正不能信号を表わす。
In Figure 1, 100 is the central processing unit CPU
(not shown), 101 is a parallel (P/
S)/Series to parallel (S/P) conversion circuit, 102 is a selector, 103 is a data register (272 bits), 10
4 is a modulo-2 adder, 105 is an input port of the CPU, 106 is a gate, 107 is a modulo-2 adder, 108 is a timing generator, 10
9 is syndrome register (82 bits), 110
is a majority logic circuit, 111 is an error detection circuit, 11
2 is a clock signal, 113 is data before error correction, 114 is data after error correction, 115 is a reset signal, 116 is a load signal, 117 is a fetch signal, 118 is an error status signal, 119
is a ready signal, 120 is a data load control signal,
121 is a data load pulse signal, 122 is a data load clock signal, 123 is an error correction gate signal, 124 is an error correction signal, 125 is a syndrome shift clock signal, 126 is a fetch clock signal, 127 is serial load data, 1
28 represents cyclic data, 129 a syndrome register signal, 130 a threshold reduction signal, and 131 an uncorrectable error signal.

CPUはパケツト信号を受信すると、そのパケ
ツト信号の誤り訂正処理に入る。まず、リセツト
信号115を発し、シンドロームレジスタ109
の82ビツトすべてを“0”状態に、タイミングジ
エネレータ108を初期状態に、多数決論理回路
110のしきい値を初期状態の“17”に、誤り検
出回路111の誤り訂正カウンタを“0”に、そ
れぞれセツトしてデータロードに備える。
When the CPU receives a packet signal, it begins error correction processing for the packet signal. First, a reset signal 115 is issued and the syndrome register 109 is reset.
The timing generator 108 is set to the initial state, the threshold value of the majority logic circuit 110 is set to the initial state of "17", and the error correction counter of the error detection circuit 111 is set to "0". , and prepare for data loading.

次に、CPUは受信パケツト信号(すなわち、
誤り訂正前のデータ113)を並直変換回路10
1へロードする。この変換回路101が8ビツト
用のときは34回、16ビツト用のときは17回だけロ
ードすることになる。ロードのタイミングは、ロ
ード信号116に応答して行う。
Next, the CPU receives the received packet signal (i.e.
The data 113) before error correction is transferred to the parallel-to-serial conversion circuit 10.
Load to 1. When the conversion circuit 101 is for 8 bits, it is loaded 34 times, and when it is for 16 bits, it is loaded only 17 times. The load timing is performed in response to the load signal 116.

タイミングジエネレータ108はロード信号1
16を受信すると、データロードパルス信号12
1を発し、誤り訂正前のデータ113を変換回路
101のレジスタへセツトし、データロードクロ
ツク信号122に応答して、変換回路101のデ
ータをデータレジスタ103およびシンドローム
レジスタ109へ導く。このときは、データロー
ド制御信号120によつてゲート106を制御
し、シリアルロードデータ127を通過させ、ま
た、データセレクタ102はシリアルロードデー
タ127を選択するモードとする。もちろん、変
換回路101が8ビツトのときにはロードクロツ
ク信号のパルス数は8ビツトであり、変換回路1
01が16ビツトのときにはロードクロツク信号の
パルス数は16ビツトである。このロードの時点で
は、誤り訂正ゲート信号123によつて多数決論
理回路110は禁止されており、誤り訂正信号1
24は出ていない。
Timing generator 108 receives load signal 1
16, the data load pulse signal 12 is received.
1, the data 113 before error correction is set in the register of the conversion circuit 101, and in response to the data load clock signal 122, the data of the conversion circuit 101 is led to the data register 103 and the syndrome register 109. At this time, the gate 106 is controlled by the data load control signal 120 to allow the serial load data 127 to pass through, and the data selector 102 is set to a mode in which the serial load data 127 is selected. Of course, when the conversion circuit 101 is 8 bits, the number of pulses of the load clock signal is 8 bits, and the number of pulses of the load clock signal is 8 bits.
When 01 is 16 bits, the number of pulses of the load clock signal is 16 bits. At this time of loading, the error correction gate signal 123 inhibits the majority logic circuit 110, and the error correction signal 123 inhibits the majority logic circuit 110.
24 is not out.

全データがデータレジスタ103およびシンド
ロームレジスタ109にロードされると、本回路
は自動的に誤り訂正動作に入る。最初の1回目
は、制御信号(誤り訂正ゲート信号)123に応
答して、しきい値“17”によつて多数決回路11
0が動作し、誤り訂正信号124を出力する。最
初から全く誤りがない場合は、誤り検出回路11
1がシンドロームレジスタ信号129からその論
理和によつて誤り無しを検出し、誤り訂正動作に
入らない。CPUはエラーステータス信号118
を見て誤りがないことを知り、CPU内の受信パ
ケツト信号をそのまま用いて復号する。
Once all data is loaded into data register 103 and syndrome register 109, the circuit automatically enters error correction operation. The first time, in response to the control signal (error correction gate signal) 123, the majority circuit 11
0 operates and outputs an error correction signal 124. If there is no error at all from the beginning, the error detection circuit 11
1 detects no error from the syndrome register signal 129 by the logical sum thereof, and does not enter the error correction operation. CPU error status signal 118
When the packet is detected, it is determined that there is no error, and the received packet signal in the CPU is used as is for decoding.

誤り訂正時のクロツク信号は、データロードク
ロツク信号122によつて供給される。1巡272
ビツトのクロツク信号が出力されると、シンドロ
ームシフトクロツク信号125の1ビツトクロツ
クによつて、シンドロームレジスタ109のみ1
ビツトのシフトがなされる。このとき、誤り訂正
ゲート信号123はオフとなり、誤り訂正は行わ
れない。その理由は、シンドロームの周期が273、
データの周期が272と異つているためである。こ
の1巡目において全ての誤りが訂正されていれ
ば、エラーステータス信号118は誤り無しを表
示しており、レデイ信号119によつてCPUへ
データフエツチの催促を行う。したがつて、
CPUは常時レデイ信号119を見ていればよい
ことになる。また、このレデイ信号119を割込
み制御線に供給してCPUへ知らせてもよい。
The clock signal during error correction is provided by data load clock signal 122. 1st round 272
When a bit clock signal is output, only the syndrome register 109 is set to 1 by the 1-bit clock of the syndrome shift clock signal 125.
A bit shift is performed. At this time, the error correction gate signal 123 is turned off and error correction is not performed. The reason is that the frequency of the syndrome is 273,
This is because the data cycle is different from 272. If all errors have been corrected in this first round, the error status signal 118 indicates no error, and the ready signal 119 prompts the CPU to fetch data. Therefore,
The CPU only needs to constantly monitor the ready signal 119. Alternatively, this ready signal 119 may be supplied to the interrupt control line to notify the CPU.

2を法とする加算器104を経た誤り訂正後の
データ(循環データ)128は、データセレクタ
102を経てデータレジスタ103へ再びロード
される。また、誤り検出回路111は誤り訂正信
号124をカウントするカウンタを含んでおり、
そのカウンタが“12”を示した時点において、誤
り訂正不能信号131を出力する構成となつてい
る。この誤り訂正不能信号131が送出されてい
るときは、エラーステータス信号118も常に誤
り検出を表示するような構成になつている。
The error-corrected data (circular data) 128 that has passed through the modulo-2 adder 104 is loaded again into the data register 103 via the data selector 102. Further, the error detection circuit 111 includes a counter that counts the error correction signal 124,
The configuration is such that an error correction impossible signal 131 is output when the counter indicates "12". When this error correction impossible signal 131 is being sent, the error status signal 118 is also configured to always indicate error detection.

誤り訂正不能信号131を受信したタイミング
ジエネレータ108は、1巡のビツトシフトが終
了した地点において、レデイ信号119を出力す
る。CPUはデータ取り込みを行おうとするが、
エラーステータス信号118を見て誤り有りの状
態を知り、そのパケツトについては使用しないこ
とにする。
The timing generator 108, which has received the error uncorrectable signal 131, outputs a ready signal 119 at the point where one round of bit shifting is completed. The CPU tries to import data, but
By looking at the error status signal 118, it is determined that there is an error, and the packet is not used.

1巡のデータシフトによる誤り訂正が終了しな
かつたとき(すなわち、シンドロームレジスタ1
09の全てが“0”でないとき、または誤り訂正
信号が12回以上出力されなかつたとき)には、タ
イミングジエネレータ108からのしきい値減算
信号130によつて、多数決論理回路110のし
きい値を“−1”すなわち“16”として前回と同
じ動作を行う。このような回路動作の繰り返しを
行うことにより、途中で誤り訂正が完全に行えな
い場合には、本来のしきい値“9”の演算が終了
するまで順次しきい値を下げていく。この時点で
エラーステータス信号118が誤り無しを表示し
ていないときには、誤り検出となり、このデータ
を使用しない。このときもレデイ信号119とエ
ラーステータス信号118とによつて、CPUに
誤り検出を知らせる。
When error correction by one round of data shift is not completed (that is, syndrome register 1
09 are not all "0" or the error correction signal is not output 12 times or more), the threshold of the majority logic circuit 110 is set by the threshold subtraction signal 130 from the timing generator 108. The same operation as last time is performed with the value set to "-1", that is, "16". By repeating such circuit operations, if error correction cannot be completely performed during the process, the threshold value is successively lowered until the calculation of the original threshold value "9" is completed. If the error status signal 118 does not indicate no error at this point, an error has been detected and this data is not used. At this time as well, the ready signal 119 and error status signal 118 inform the CPU of the error detection.

途中で誤り訂正が終了した場合(すなわち、シ
ンドロームレジスタが全て“0”であつて、誤り
訂正信号の出力が12回以下のとき)は、そのしき
い値における272ビツトシフトの終了と同時にレ
デイ信号119を出力し、エラーステータス信号
118によつてCPUに全て訂正されたことを知
らせる。
If the error correction ends midway (that is, when the syndrome register is all "0" and the error correction signal is output 12 times or less), the ready signal 119 is output at the same time as the 272-bit shift at that threshold value is completed. is output, and the error status signal 118 notifies the CPU that all corrections have been made.

誤り訂正信号のカウント数を“12”に固定して
誤り検出に使用する理由は、しきい値を順次下げ
て誤りを訂正する方式では、10ビツト以下の誤り
訂正がほとんど全ての場合に可能であり、11ビツ
トの誤りは90%の訂正が可能だからである。第2
図に計算機シミユレーシヨンの結果を示す。
The reason why the count number of the error correction signal is fixed at "12" and used for error detection is that with the method of correcting errors by sequentially lowering the threshold, it is possible to correct errors of 10 bits or less in almost all cases. This is because 90% of 11-bit errors can be corrected. Second
The figure shows the results of computer simulation.

誤り訂正終了時(すなわち、シンドロームレジ
スタ109が全て“0”であり、誤り訂正カウン
ト数が“11”以下の場合)には、CPUはフエツ
チ信号を発し、誤り訂正後のデータの取り込みに
入る。フエツチ信号によつて、レデイ信号119
は一時ビジー状態を示すが、直並変換回路101
にデータがセツトされるとレデイ信号119が再
び示される。このレデイ信号119を見て、
CPUは変換回路101のデータを取り込む。必
要なデータは190ビツトの長さを有しているので、
8ビツトごとの取り込みでは24回、16ビツトごと
の取り込みでは12回のフエツチ信号を発生するこ
とになる。CPUは190ビツトのデータ取り込み
後、データの解釈および表示を行い、次のパケツ
ト受信処理に入る。
When the error correction is completed (that is, when the syndrome register 109 is all "0" and the error correction count is "11" or less), the CPU issues a fetch signal and begins to take in the data after the error correction. Ready signal 119 by fetch signal
indicates a temporary busy state, but the serial-to-parallel conversion circuit 101
When the data is set, the ready signal 119 is shown again. Look at this ready signal 119,
The CPU takes in data from the conversion circuit 101. Since the required data has a length of 190 bits,
Fetch signals are generated 24 times when fetching every 8 bits, and 12 times when fetching every 16 bits. After the CPU captures 190 bits of data, it interprets and displays the data, and then begins the next packet reception process.

以上が、本発明の第1実施例についての動作説
明である。
The above is an explanation of the operation of the first embodiment of the present invention.

次に、本発明の第2実施例について説明する。 Next, a second embodiment of the present invention will be described.

上述した第1実施例では、誤り訂正が正しくな
されたか否かの判断を、シンドロームレジスタ1
09が全て“0”であり且つ誤り訂正カウント数
が“11”以下に限つて行つたが、誤りカウント数
の制限を高くし、あるいは可変とすることによつ
て、パケツト信号を正しく訂正復元する確率を増
大させることができる。ただし、この場合には誤
つて復元する確率も増加するので、CRC(Cyclic
Redundancy Check)によるデータ部の誤り検
出機能などが必要になつてくる。
In the first embodiment described above, it is determined whether or not error correction has been performed correctly using the syndrome register 1.
09 are all "0" and the error correction count number is "11" or less, but by increasing the limit on the error count number or making it variable, the packet signal can be correctly corrected and restored. The probability can be increased. However, in this case, the probability of erroneous restoration increases, so CRC (Cyclic
It becomes necessary to have a function to detect errors in the data section using Redundancy Check).

第4図は、本発明による第2実施例の誤り検出
回路を示す。ここで、400はエンコーダ、40
1はカウンタ、402はコンパレータ、403は
論理和回路、404は“11”を示す押しボタンス
イツチ(図示せず)からの信号、405,40
6,407はそれぞれ“12”、“13”、“14”を示す
押しボタンスイツチからの信号、408は制限無
しを示す押しボタンスイツチからの信号、409
は第1図示の信号115と同じリセツト信号、4
10は第1図示の信号124と同じ誤り訂正信
号、411〜414は上述した押しボタン信号4
04〜407のエンコード信号、415はカウン
タ401の出力信号、416(第1図の信号13
1)は誤り訂正数による誤り検出信号、417は
第1図示の信号129によつて検出されるシンド
ロームレジスタからの誤り検出信号を表わす。
FIG. 4 shows a second embodiment of the error detection circuit according to the present invention. Here, 400 is an encoder, 40
1 is a counter, 402 is a comparator, 403 is an OR circuit, 404 is a signal from a push button switch (not shown) indicating "11", 405, 40
6, 407 are signals from the push button switches indicating "12", "13", and "14", respectively; 408 is a signal from the push button switch indicating no limit; 409
is the same reset signal as signal 115 shown in FIG.
10 is the same error correction signal as the signal 124 shown in the first diagram, and 411 to 414 are the push button signals 4 described above.
Encode signals 04 to 407, 415 the output signal of the counter 401, 416 (signal 13 in FIG.
1) represents an error detection signal based on the number of error corrections, and 417 represents an error detection signal from the syndrome register detected by the signal 129 shown in the first diagram.

外部からのスイツチによつて、押しボタン信号
404〜408のうち指定した1つが“1”とな
り、誤り検出と判断するためのスレツシヨルドレ
ベルを指定する。例えば、押しボタン信号404
が“1”ならば、エンコーダ400を通つたエン
コード信号411〜414は“11”を表わす。す
なわち、信号411が“1”、信号412が
“1”、信号413が“0”、信号414が“1”
となる。このエンコード信号411〜414は、
コンパレータ402の一方の入力信号となる。
A designated one of the push button signals 404 to 408 becomes "1" by an external switch, thereby designating a threshold level for determining error detection. For example, push button signal 404
If is "1", encoded signals 411-414 passed through encoder 400 represent "11". That is, the signal 411 is "1", the signal 412 is "1", the signal 413 is "0", and the signal 414 is "1".
becomes. These encoded signals 411 to 414 are
This becomes one input signal of the comparator 402.

409はリセツト信号であり、誤り訂正開始時
に出力される。このリセツト信号409は、カウ
ンタ401を初期状態の“0”にセツトする。こ
の状態でパケツト信号の誤り訂正動作に入ると、
誤り訂正を行うために、カウンタ入力信号(すな
わち、誤り訂正信号)が到来し、カウンタ401
をカウントアツプする。そして、カウント数がエ
ンコード信号411〜414で指定される値より
大になつた時点で、コンパレータ出力信号16が
“1”となる。また、シンドロームレジスタから
の誤り検出信号417が“0”であつても(すな
わち、シンドロームレジスタが“0”のとき)、
論理和回路403を通過したコンパレータ出力信
号416は、そのままエラーステータス信号11
8に“1”となつて現われ、誤り検出を表わす。
409 is a reset signal, which is output at the start of error correction. This reset signal 409 sets the counter 401 to the initial state of "0". When the packet signal error correction operation starts in this state,
To perform error correction, a counter input signal (i.e., an error correction signal) arrives and the counter 401
count up. Then, when the count number becomes larger than the value specified by the encode signals 411 to 414, the comparator output signal 16 becomes "1". Furthermore, even if the error detection signal 417 from the syndrome register is "0" (that is, when the syndrome register is "0"),
The comparator output signal 416 that has passed through the OR circuit 403 is directly converted to the error status signal 11.
8 as a "1", indicating error detection.

制限なしを示す押しボタン信号408が“1”
の場合は、特別な場合として、誤り検出機能を停
止させる。すなわち、コンパレータ402への入
力の一方の値を“272”を越える値にセツトする
か、あるいはコンパレータ402の出力信号41
6が“1”にならないよう直接的に制御する。こ
のことによつて、従来の誤り訂正回路(例えば、
上述の特願昭58−54002号参照)と同じ動作も可
能である。この場合には、誤り訂正の確率を増大
させるが、当然に誤訂正の確率も大となる。そこ
で、本文中のCRCによる誤り検出機能が一層重
大となる。
Push button signal 408 indicating no limit is “1”
In this case, the error detection function is stopped as a special case. That is, one value of the input to the comparator 402 is set to a value exceeding "272", or the output signal 41 of the comparator 402 is set to a value exceeding "272".
6 is directly controlled so that it does not become "1". This makes conventional error correction circuits (e.g.
The same operation as in the above-mentioned Japanese Patent Application No. 58-54002) is also possible. In this case, the probability of error correction increases, but naturally the probability of error correction also increases. Therefore, the error detection function using CRC described in the main text becomes even more important.

以上の説明では、押しボタン信号404〜40
7の指定値を“11”から“+1”する方法をとつ
たが、同様に“+2”、“+3”、“+4”、…とす
るように構成し、指定数を4個ではなく5個以上
あるいは3個以下に指定しても、同じような機能
が得られるのは当然である。また、押しボタン信
号404〜408の指定をCPUから命令できる
ような構成としても同様の効果が得られるのは当
然である。
In the above explanation, the push button signals 404 to 40
We used the method of increasing the designated value of 7 from "11" to "+1", but in the same way, we configured it to be "+2", "+3", "+4", etc., and changed the designated number to 5 instead of 4. Of course, you can obtain the same functionality even if you specify more or less than three. Further, it is natural that the same effect can be obtained by using a configuration in which the CPU can issue an instruction to specify the push button signals 404 to 408.

更に、本発明の第3実施例について説明する。 Furthermore, a third embodiment of the present invention will be described.

上述の第2実施例において、誤り検出信号41
6および417を別個にフラグとして設け、
CPUにはそれぞれを知らせるようにしても同様
な効果が得られる。CPU側において、シンドロ
ームレジスタからの誤り検出信号417のみを誤
り検出として使用するか、あるいは、誤り訂正数
による誤り検出信号416の情報をも含めて誤り
検出の判断をするかは、ユーザのプログラムによ
り選択することが可能である。
In the second embodiment described above, the error detection signal 41
6 and 417 as separate flags,
A similar effect can be obtained by notifying the CPU of each. On the CPU side, it is up to the user's program to decide whether to use only the error detection signal 417 from the syndrome register for error detection, or whether to make error detection decisions including information on the error detection signal 416 based on the number of error corrections. It is possible to choose.

最後に、本発明の第4実施例について説明す
る。
Finally, a fourth embodiment of the present invention will be described.

上述の第3実施例において、誤り検出信号41
6の代りに、カウンタ401の出力データを
CPU側で直接解読し得るような構成にしておく
ことにより、誤り訂正後のデータを使用するか使
用しないかはソフトウエアによつて判定すること
ができる。本出願人による特願昭58−160523号に
示したフレーミングタイミング検出のよような場
合には、通常のパケツト信号の誤り検出時とはス
レツシヨルドレベルを変えて判断すべきである
が、この場合もCPUはカウント数を読み取るだ
けで、誤り検出信号417と併せてプログラムに
よつてフレーミングタイミングの合否を判定する
ことができる。この場合には当然、コンパレータ
による比較は行わないので、最後まで(すなわ
ち、しきい値“9”まで)誤り訂正を行うことに
なる。また、誤り検出の割合をソフトウエアによ
つて常にカウント管理することにより、誤り検出
のスレツシヨルドレベルを制御し、もつて受信環
境に拘わりなく誤り訂正の確率をある程度一定に
保つことができる。さらに、誤り訂正カウント数
の情報を利用して、文字コード放送受信装置にお
ける信号識別回路のスライスレベル調整およびサ
ンプル位相調整と波形等化器へのフイードバツク
情報として利用できる利点がある。
In the third embodiment described above, the error detection signal 41
6, the output data of the counter 401 is
By configuring the data so that it can be directly decoded on the CPU side, software can determine whether or not to use the error-corrected data. In cases such as the framing timing detection shown in Japanese Patent Application No. 160523/1983 filed by the present applicant, the threshold level should be changed from that used for normal packet signal error detection. In this case, the CPU can determine whether the framing timing is appropriate or not by simply reading the count number, together with the error detection signal 417, using a program. In this case, of course, no comparison is performed by the comparator, so error correction is performed until the end (that is, up to the threshold value "9"). Furthermore, by constantly counting and managing the error detection rate using software, it is possible to control the threshold level of error detection, thereby keeping the probability of error correction constant to some extent regardless of the reception environment. Furthermore, there is an advantage that the information on the error correction count number can be used as feedback information to the slice level adjustment and sample phase adjustment of the signal identification circuit in the character code broadcast receiving apparatus and the waveform equalizer.

上述した各実施例は、既述の特願昭58−54002
号に示した誤り訂正回路を基本としているので、
多数決回路におけるしきい値レベルの初期値を
“17”ではなく、ほぼ同様の訂正効果を得ること
ができる“13”等に定めても、あるいは、しきい
値の可変レベルを“−1”ではなく、“−2”、
“−3”等に設定しても、更には、一定しきい値
レベルでの誤り訂正を誤り訂正動作がなくなるま
で繰り返し行ない、誤り訂正信号がでなくなつて
から初めてしきい値の減算を行う等の方法によつ
ても、ほぼ同様の誤り訂正効果を得ることができ
る。
Each of the above-mentioned embodiments is disclosed in the previously mentioned patent application No. 58-54002.
Since it is based on the error correction circuit shown in the issue,
Even if the initial value of the threshold level in the majority circuit is set to ``13'' which can obtain almost the same correction effect instead of ``17'', or the variable level of the threshold value is set to ``-1''. Without, “-2”,
Even if it is set to "-3", etc., error correction at a certain threshold level is repeated until there is no more error correction operation, and the threshold value is subtracted only after the error correction signal is no longer output. Almost the same error correction effect can be obtained by the above methods.

以上詳述したとおり、本発明を実施することに
より、誤り訂正ビツトのカウント数の概要を知る
ことができるので、誤訂正の確率を減少させる効
果を挙げることができる。
As described in detail above, by implementing the present invention, it is possible to obtain an overview of the count number of error correction bits, and therefore it is possible to achieve the effect of reducing the probability of error correction.

次に、各実施例における効果を列挙する。 Next, the effects of each example will be listed.

第1実施例では、シンドロームレジスタからの
誤り検出と、誤り訂正ビツトをカウントすること
による誤り検出との論理和をとりCPUへフラグ
として知らせているので、回路およびプログラム
を簡単に構成することができるという利点があ
る。
In the first embodiment, the error detection from the syndrome register and the error detection by counting the error correction bits are logically summed and notified to the CPU as a flag, so the circuit and program can be easily configured. There is an advantage.

第2実施例では、第1実施例における誤り訂正
ビツトのカウント数のしきい値を可変として外部
から押しボタン、A/D変換器を含んだボリウ
ム、あるいはCPUにより指定するようにし、も
つて受信条件の悪い地点では誤り訂正ビツトのカ
ウント数のしきい値を増大させるようにしてい
る。このことにより、受信条件の悪い地点での受
信確率を増大させることができる。
In the second embodiment, the threshold value for the count number of error correction bits in the first embodiment is made variable and specified externally by a push button, a volume containing an A/D converter, or the CPU, and reception is performed. At points where conditions are poor, the threshold for the number of error correction bits counted is increased. This makes it possible to increase the reception probability at points with poor reception conditions.

第3実施例では、シンドロームレジスタからの
誤り検出と、誤り訂正ビツトをカウントすること
による誤り検出とを別個のフラグとしてCPUへ
知らせるようにし、誤り検出の判断をCPUで行
うようにしている。そして、使用目的いかんによ
つては、誤り訂正ビツトのカウントによる誤り検
出を無視することも可能である。
In the third embodiment, error detection from the syndrome register and error detection by counting error correction bits are notified to the CPU as separate flags, and the CPU makes the determination of error detection. Depending on the purpose of use, it is also possible to ignore error detection by counting error correction bits.

第4実施例では、誤り訂正ビツトのカウント数
を示すカウンタ出力をCPUが直接読み込めるよ
う構成して、誤り検出のしきい値をソフトウエア
により決定するようにしている。また、この誤り
訂正カウント数の情報を信号識別回路、波形等化
器への入力とすることができる。この場合には、
コンパレータの一方の入力として、押しボタンを
用いた直接的なしきい値指定、またはCPUから
のしきい値指定をすることが不要となる。この比
較入力をCPUへのステータス信号として入力し
た場合には、ソフトウエアによるカウンタ出力と
の比較によつて、第1実施例ないし第3実施例と
同様な構成とすることも可能である。
In the fourth embodiment, the CPU is configured to directly read the counter output indicating the count number of error correction bits, and the threshold value for error detection is determined by software. Further, information on the error correction count number can be input to a signal identification circuit and a waveform equalizer. In this case,
It is no longer necessary to directly specify a threshold value using a push button or to specify a threshold value from the CPU as one input to the comparator. When this comparison input is input as a status signal to the CPU, it is possible to create a configuration similar to the first to third embodiments by comparing it with a counter output by software.

以上説明したように、本発明は、誤り訂正ビツ
ト数をカウントしてカウント数が多い場合には、
たとえシンドロームレジスタの内容が全て“0”
であつたとしても、誤り検出として取扱い、もつ
て誤り訂正の確率を少なくしている。なお、本発
明によれば、その他全ての多数決論理による誤り
訂正符号は勿論、その他の信号についても、同様
の誤り検出機能を持たせることができる。
As explained above, in the present invention, when the number of error correction bits is counted and the number of bits is large,
Even if the contents of the syndrome register are all “0”
Even if it is, it is treated as error detection, thereby reducing the probability of error correction. According to the present invention, not only all other error correction codes based on majority logic, but also other signals can be provided with a similar error detection function.

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

第1図は、本発明を適用した誤り検出回路の一
実施例を示すブロツク図、第2図は、計算機シユ
ミレーシヨンによる誤り訂正後のパケツト正受信
率を示す線図、第3図は、第1図の動作を説明す
るフローチヤート、第4図は、誤り検出回路の別
実施例を示すブロツク図である。 100……出力ポート、101……P/S、
S/P変換回路、102……セレクタ、103…
…データレジスタ、104……2を法とする加算
器、105……入力ポート、106……ゲート、
107……2を法とする加算器、108……タイ
ミングジエネレータ、109……シンドロームレ
ジスタ、110……多数決論理回路、111……
誤り検出回路、112……クロツク信号、113
……誤り訂正前のデータ、114……誤り訂正後
のデータ、115……リセツト信号、116……
ロード信号、117……フエツチ信号、118…
…エラーステータス信号、119……レデイ信
号、120……データロード制御信号、121…
…データロードパルス信号、122……データロ
ードクロツク信号、123……誤り訂正ゲート信
号、124……誤り訂正信号、125……シンド
ロームシフトクロツク信号、126……フエツチ
用クロツク信号、127……シリアルロードデー
タ、128……循環データ、129……シンドロ
ームレジスタ信号、130……しきい値減少信
号、131……誤り訂正不能信号、400……エ
ンコーダ、401……カウンタ、402……コン
パレータ、403……論理和回路、404……
“11”を示す押しボタン信号、405……“12”
を示す押しボタン信号、406……“13”を示す
押しボタン信号、407……“14”を示す押押し
ボタン信号、408……制限なしを示す押しボタ
ン信号、409……リセツト信号、410……誤
り訂正信号、411〜414……404〜407
のエンコード信号、415……カウンタ401の
出力信号、416……誤り訂正数による誤り検出
信号、417……シンドロームレジスタからの誤
り検出信号。
FIG. 1 is a block diagram showing one embodiment of an error detection circuit to which the present invention is applied, FIG. 2 is a diagram showing the packet correct reception rate after error correction by computer simulation, and FIG. FIG. 4 is a flowchart for explaining the operation shown in FIG. 4, and is a block diagram showing another embodiment of the error detection circuit. 100...Output port, 101...P/S,
S/P conversion circuit, 102...Selector, 103...
...data register, 104...adder modulo 2, 105...input port, 106...gate,
107...Adder modulo 2, 108...Timing generator, 109...Syndrome register, 110...Majority logic circuit, 111...
Error detection circuit, 112...Clock signal, 113
...Data before error correction, 114...Data after error correction, 115...Reset signal, 116...
Load signal, 117...Fetch signal, 118...
...Error status signal, 119...Ready signal, 120...Data load control signal, 121...
...Data load pulse signal, 122...Data load clock signal, 123...Error correction gate signal, 124...Error correction signal, 125...Syndrome shift clock signal, 126...Fetch clock signal, 127... Serial load data, 128... Circulating data, 129... Syndrome register signal, 130... Threshold reduction signal, 131... Error correctable signal, 400... Encoder, 401... Counter, 402... Comparator, 403 ...OR circuit, 404...
Push button signal indicating "11", 405..."12"
406...Push button signal indicating "13", 407...Push button signal indicating "14", 408...Push button signal indicating no limit, 409...Reset signal, 410... ...Error correction signal, 411-414...404-407
415... Output signal of the counter 401, 416... Error detection signal based on the number of error corrections, 417... Error detection signal from the syndrome register.

Claims (1)

【特許請求の範囲】 1 多数決差集合巡回符号誤り復号方式を用いた
文字コード放送の誤り訂正回路において、 巡回訂正中にシンドロームレジスタより発生さ
れる誤り訂正ビツト数を計数し、その計数値が特
定値以上に達したときは、前記シンドロームレジ
スタがすべて零となつた状態であつても、誤り検
出と判断する手段を備え、誤字表示を低減せしめ
るようにしたことを特徴とする誤り検出回路。 2 前記特定値を、外部受信状態に応じて変化さ
せるようにしたことを特徴とする特許請求の範囲
第1項記載の誤り検出回路。
[Claims] 1. In an error correction circuit for character code broadcasting using a majority-set cyclic code error decoding method, the number of error correction bits generated from a syndrome register during cyclic correction is counted, and the counted value is specified. An error detection circuit characterized in that the error detection circuit is provided with means for determining an error detection when the syndrome register reaches a value equal to or higher than a value, even if the syndrome registers are all zero, thereby reducing typographical errors. 2. The error detection circuit according to claim 1, wherein the specific value is changed according to external reception conditions.
JP58198363A 1983-01-20 1983-10-25 Error detecting circuit Granted JPS6090430A (en)

Priority Applications (7)

Application Number Priority Date Filing Date Title
JP58198363A JPS6090430A (en) 1983-10-25 1983-10-25 Error detecting circuit
US06/571,573 US4630271A (en) 1983-01-20 1984-01-17 Error correction method and apparatus for data broadcasting system
CA000445657A CA1216059A (en) 1983-01-20 1984-01-19 Error correction method and apparatus
KR1019840000228A KR910000156B1 (en) 1983-01-20 1984-01-19 Error correction method and apparatus for data broadcasting system
CA000513552A CA1222558A (en) 1983-01-20 1986-07-10 Error correction method and apparatus
US06/895,033 US4819231A (en) 1983-01-20 1986-08-08 Framing timing detection circuit for a character code broadcasting system
KR1019900011866A KR910000178B1 (en) 1983-01-20 1990-08-02 Framing timing extraction circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58198363A JPS6090430A (en) 1983-10-25 1983-10-25 Error detecting circuit

Publications (2)

Publication Number Publication Date
JPS6090430A JPS6090430A (en) 1985-05-21
JPH0211185B2 true JPH0211185B2 (en) 1990-03-13

Family

ID=16389857

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58198363A Granted JPS6090430A (en) 1983-01-20 1983-10-25 Error detecting circuit

Country Status (1)

Country Link
JP (1) JPS6090430A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62235822A (en) * 1986-04-04 1987-10-16 Sharp Corp Error correction decoding system
JPS62235823A (en) * 1986-04-04 1987-10-16 Sharp Corp Error correction decoding system
KR101317039B1 (en) * 2007-03-30 2013-10-11 삼성전자주식회사 Apparatus and method for decoding

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4949612A (en) * 1972-09-13 1974-05-14
JPS50146206A (en) * 1974-05-14 1975-11-22

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4949612A (en) * 1972-09-13 1974-05-14
JPS50146206A (en) * 1974-05-14 1975-11-22

Also Published As

Publication number Publication date
JPS6090430A (en) 1985-05-21

Similar Documents

Publication Publication Date Title
US4541091A (en) Code error detection and correction method and apparatus
US4852099A (en) Error correction method using Reed-Solomon code
JPH0812612B2 (en) Error correction method and apparatus
JP2621614B2 (en) Code error detection circuit
US4897839A (en) Coding and decoding method
JPH10107650A (en) Error detection circuit and error correction circuit
JPH0612592B2 (en) Binary data error correction device
EP0328977A2 (en) Word synchronization system
JPH0211185B2 (en)
US4521886A (en) Quasi-soft decision decoder for convolutional self-orthogonal codes
JPH05284044A (en) Transmitter for performing random error and burst error correction, receiver, decoder and video phone
EP0746112B1 (en) Error correction device
JP3271208B2 (en) Error correction decoding device
US5003540A (en) Error correction coding and decoding circuit for digitally coded information
JPS6160618B2 (en)
JP2823158B2 (en) Error correction device
JP2605269B2 (en) Error correction method
JP2561791B2 (en) FM multiplex broadcast receiver
JP2871495B2 (en) Error correction code decoding method
KR100234400B1 (en) Apparatus and method of digital video disk system
JPH09130368A (en) Data communication equipment
JPH02132921A (en) Error correction circuit
JPH07202719A (en) Decoder for error correction code
JPH0113249B2 (en)
JP2003332915A (en) Error correcting method and its apparatus