JPH0155788B2 - - Google Patents

Info

Publication number
JPH0155788B2
JPH0155788B2 JP59060915A JP6091584A JPH0155788B2 JP H0155788 B2 JPH0155788 B2 JP H0155788B2 JP 59060915 A JP59060915 A JP 59060915A JP 6091584 A JP6091584 A JP 6091584A JP H0155788 B2 JPH0155788 B2 JP H0155788B2
Authority
JP
Japan
Prior art keywords
bits
data
bit
signal
register
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
Application number
JP59060915A
Other languages
Japanese (ja)
Other versions
JPS60206227A (en
Inventor
Hirohisa Shishikura
Ichiro Sase
Akio Yanagimachi
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.)
Oki Electric Industry Co Ltd
Japan Broadcasting Corp
Original Assignee
Nippon Hoso Kyokai NHK
Oki Electric Industry Co 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 Nippon Hoso Kyokai NHK, Oki Electric Industry Co Ltd filed Critical Nippon Hoso Kyokai NHK
Priority to JP59060915A priority Critical patent/JPS60206227A/en
Priority to CA000477541A priority patent/CA1225746A/en
Priority to US06/716,044 priority patent/US4675868A/en
Priority to KR1019850002150A priority patent/KR910001071B1/en
Publication of JPS60206227A publication Critical patent/JPS60206227A/en
Publication of JPH0155788B2 publication Critical patent/JPH0155788B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Detection And Correction Of Errors (AREA)
  • Error Detection And Correction (AREA)

Description

【発明の詳細な説明】 (技術分野) 本発明はTV信号の垂直帰線消去期間にデイジ
タル信号としてコード化した文字・図形情報を多
重伝送するコード方式文字放送などに好適な符号
の誤り制御に関するものであり、特に伝送路で生
じたビツト誤りを訂正することによつて最大限回
復させようとする誤り訂正復号回路に関するもの
である。
DETAILED DESCRIPTION OF THE INVENTION (Technical Field) The present invention relates to code error control suitable for coded teletext broadcasting in which character and graphic information coded as digital signals are multiplexed and transmitted during the vertical blanking period of a TV signal. In particular, it relates to an error correction decoding circuit that attempts to recover as much as possible by correcting bit errors occurring on a transmission path.

(技術的背景) TV伝送路を使用するこの種サービスにおける
誤り訂正方式として1パケツトを272ビツトで構
成し、データビツト272ビツト、情報ビツト190ビ
ツトおよびパリテイビツト82ビツトのデータ信号
を形成して伝送し復号する方式が特願昭58−6579
(特開昭59−133751号公報)、特願昭58−54002(特
開昭59−181841号公報)および特願昭58−90017
(特開昭59−216388号公報)に示されている。
(Technical Background) As an error correction method for this type of service that uses a TV transmission path, one packet consists of 272 bits, and a data signal of 272 data bits, 190 information bits, and 82 parity bits is formed and transmitted. The decoding method is based on patent application 1986-6579.
(Japanese Unexamined Patent Publication No. 59-133751), Japanese Patent Application No. 58-54002 (Unexamined Japanese Patent Application No. 59-181841), and Japanese Patent Application No. 58-90017
(Japanese Unexamined Patent Publication No. 59-216388).

ここに開示されている誤り訂正復号回路の概略
構成を第1図に示す。第1図において1はCPU
(図示しない)につながるCPUバスラインであつ
て、出力ポート2の入力端子および入力ポート3
の出力端子に接続されている。
FIG. 1 shows a schematic configuration of the error correction decoding circuit disclosed herein. In Figure 1, 1 is the CPU
(not shown), which is the input terminal of output port 2 and the input terminal of input port 3.
is connected to the output terminal of the

出力ポート2は訂正前データ5を誤り訂正回路
4に供給する。誤り訂正回路4は並−直列変換回
路、直−並列変換回路、シンドロームレジスタ、
データレジスタ、多数決回路等を含んでおり、
(272、190)符号を訂正する動作を行ない、訂正
後データ6およびレデイー信号10を前記入力ポ
ート3に供給する。CPUから出力ポート2を介
してスタート信号7、ロード信号8、およびコレ
クト信号9が前記誤り訂正回路4に供給されてい
る。
Output port 2 supplies uncorrected data 5 to error correction circuit 4 . The error correction circuit 4 includes a parallel-to-serial conversion circuit, a serial-to-parallel conversion circuit, a syndrome register,
Contains data registers, majority circuits, etc.
(272, 190) The code is corrected, and the corrected data 6 and ready signal 10 are supplied to the input port 3. A start signal 7, a load signal 8, and a collect signal 9 are supplied from the CPU to the error correction circuit 4 via the output port 2.

次に第1図の動作を説明する。誤り訂正を開始
するにあたつて、CPUはまず、スタート信号7
を誤り訂正回路4に供給し、シンドロームレジス
タをクリアする。次に所定ビツト(例えば8ビツ
ト、もしくは16ビツト)単位でCPUがCPUバス
ライン1および出力ポートを介して訂正前データ
を誤り訂正回路4に供給し、そのつどロード信号
8を与える。誤り訂正回路4は8ビツト(あるい
は16ビツト)のデータを並−直列変換してデータ
レジスタおよびシンドロームレジスタに導入す
る。従つて272ビツトのパケツトデータを導入す
るのに8ビツト単位であれば34回(16ビツト単位
であれば17回)繰返す。272ビツトのデータを導
入すると、シンドロームレジスタにシンドローム
が形成される。次にCPUはCPUバスライン1お
よび出力ポート2を介してコレクト信号を誤り訂
正回路4に与え、誤り訂正回路4は8ビツト(も
しくは16ビツト)単位ずつ誤り訂正して直−並列
変換した上、訂正後データ6として入力ポート3
およびCPUバスライン1を介してCPUに戻す。
8ビツト単位であれば34回(16ビツト単位であれ
ば17回)繰返すと272ビツトがすべて訂正されて
CPUに取り込まれる。
Next, the operation shown in FIG. 1 will be explained. To start error correction, the CPU first sends the start signal 7.
is supplied to the error correction circuit 4, and the syndrome register is cleared. Next, the CPU supplies the uncorrected data to the error correction circuit 4 in units of predetermined bits (for example, 8 bits or 16 bits) via the CPU bus line 1 and the output port, and provides a load signal 8 each time. The error correction circuit 4 performs parallel-to-serial conversion on 8-bit (or 16-bit) data and inputs it into the data register and syndrome register. Therefore, to introduce 272-bit packet data, it is repeated 34 times in 8-bit units (17 times in 16-bit units). Introducing 272 bits of data creates a syndrome in the syndrome register. Next, the CPU gives the collect signal to the error correction circuit 4 via the CPU bus line 1 and the output port 2, and the error correction circuit 4 corrects the error in units of 8 bits (or 16 bits) and performs serial-to-parallel conversion. Input port 3 as corrected data 6
and returns to the CPU via CPU bus line 1.
If you repeat this 34 times in 8-bit units (17 times in 16-bit units), all 272 bits will be corrected.
captured by the CPU.

レデイー信号10は8ビツト(もしくは16ビツ
ト)の訂正前データをCPUから供給してよいか
否か、あるいは8ビツト(もしくは16ビツト)の
訂正後データをCPUが読込んでよいか否かを
CPUに知らせるための信号である。
The ready signal 10 indicates whether or not 8-bit (or 16-bit) uncorrected data may be supplied from the CPU, or whether the CPU may read 8-bit (or 16-bit) post-corrected data.
This is a signal to notify the CPU.

このように、第1図は(273、191)符号を1ビ
ツト短縮した(272、190)符号の誤り訂正を行な
うことができる。
In this manner, the error correction of the (272, 190) code, which is the (273, 191) code shortened by 1 bit, can be performed in FIG.

しかるに、日本以外の文字放送においては1パ
ケツトが272ビツトでない方式が検討されており、
あるいは、その他の用途においても1パケツトと
して272ビツトでない方式が考えられている。こ
のような用途に対しては(272、190)符号では不
都合であつた。
However, in teletext broadcasting outside of Japan, systems in which one packet does not contain 272 bits are being considered.
Alternatively, methods other than 272 bits per packet are being considered for other uses as well. For such uses, the (272, 190) code was inconvenient.

(発明の目的) この発明の目的は上記従来技術の問題点を解決
するために、(273、191)符号から1ビツト短縮
した(272、190)符号だけでなく他の短縮ビツト
数の応用にも適用できるように、情報ビツトの短
縮数を指定されて、選択するごとくすることにあ
る。
(Object of the Invention) The purpose of the present invention is to solve the problems of the prior art described above, and to apply not only the (272, 190) code, which is one bit shortened from the (273, 191) code, but also other reduced bit numbers. The purpose is to specify and select a reduced number of information bits so that it can also be applied.

(実施例) 本発明の第1の実施例の回路図を第2図に示
す。第2図において、20はCPU(図示せず)の
データバス、21はCPUのアドレスバスである。
CPUのデータバス20はデータバス制御回路2
2の第1の入出力端子に接続され、前記データバ
ス制御回路22の第2の入出力端子はローカルデ
ータバス23に接続されている。
(Embodiment) A circuit diagram of a first embodiment of the present invention is shown in FIG. In FIG. 2, 20 is a data bus of the CPU (not shown), and 21 is an address bus of the CPU.
The data bus 20 of the CPU is the data bus control circuit 2
The second input/output terminal of the data bus control circuit 22 is connected to the local data bus 23.

前記CPUのアドレスバス21はアドレス切替
回路24の第1の入力端子に接続され、アドレス
切替回路24の第2の入力端子にはアドレス生成
回路25から自動アドレス信号26が供給されて
いる。アドレス切替回路24はタイミング制御回
路27から供給されるバス制御信号28により第
1の入力端子に与えられるCPUのアドレス信号
か、第2の入力端子に与えられる自動アドレス信
号26か、いずれか一方を選択し、メモリアドレ
ス信号として、バツフアメモリ29のアドレス入
力端子に供給する。
The address bus 21 of the CPU is connected to a first input terminal of an address switching circuit 24, and an automatic address signal 26 is supplied from an address generation circuit 25 to a second input terminal of the address switching circuit 24. The address switching circuit 24 selects either the CPU address signal applied to the first input terminal or the automatic address signal 26 applied to the second input terminal in accordance with the bus control signal 28 supplied from the timing control circuit 27. The signal is selected and supplied to the address input terminal of the buffer memory 29 as a memory address signal.

ローカルデータバス23はまた、バツフアメモ
リ29のデータ入出力端子およびデータ転送回路
30のデータ入出力端子にも接続されており、こ
のためにCPUとバツフアメモリおよびデータ転
送回路は相互にデータのやり取りをすることがで
きる。データ転送回路30には文字コード放送の
受信部(図示しない)によつて受信され、抽出さ
たパケツト受信データであるシリアル受信データ
31、文字コード放送のフレーミング信号によ
り、フレーム同期がとられたことを示すフレーミ
ング検出信号32、および文字コード放送のクロ
ツクランインによりクロク同期がとられた同期ク
ロツク33が供給されている。
The local data bus 23 is also connected to a data input/output terminal of the buffer memory 29 and a data input/output terminal of the data transfer circuit 30, so that the CPU, buffer memory, and data transfer circuit can exchange data with each other. Can be done. The data transfer circuit 30 receives serial reception data 31, which is packet reception data received and extracted by a character code broadcast receiving unit (not shown), and frame synchronization is performed using the character code broadcast framing signal. A synchronous clock 33 is supplied which is synchronized by a framing detection signal 32 indicating the character code broadcast and clock run-in of the character code broadcast.

34はパケツト受信データ(日本の文字コード
放送であれば272ビツト)のうちのパリテイビツ
トを除いた情報ビツト(日本の文字コード放送で
あれば190ビツト)を格納し、シフトするための
データレジスタ、シンドロームレジスタ36は特
願昭58−6579の第10図と同等のものであつて、
82ビツトからなり、2を法とする加算器37を介
する帰還ループを有している。
34 is a data register for storing and shifting the information bits (190 bits for Japanese character code broadcasting) excluding the parity bits of the packet received data (272 bits for Japanese character code broadcasting). The register 36 is the same as that shown in Fig. 10 of Japanese Patent Application No. 58-6579.
It consists of 82 bits and has a feedback loop via an adder 37 modulo 2.

ロードゲート回路38はタイミング制御回路2
7から供給されるロードゲート信号39により、
訂正前データ35を加算器37を介してシンドロ
ームレジスタ36に供給するか否かを制御する。
40はシンドロームレジスタ信号、41は多数決
回路、42は多数決の判定を行なうための閾値を
与える閾値信号、43は閾値発生回路、44は閾
値を更新するための閾値クロツク、45はシンド
ロームレジスタ36をクリアするためのクリア信
号、46はシンドロームレジスタ36にデータを
ロードするための第1のロード用クロツク信号、
47はシンドロームレジスタを1ビツト歩進させ
るためのロードエンド信号、48は第1の訂正用
クロツク信号、49はデータレジスタ34にデー
タをロードするための第2のロード用クロツク信
号、50は第2の訂正のクロツク信号、51は多
数決回路41の結果信号を誤り訂正信号53とし
て加算器54に供給するか否かをコレクトゲート
信号52によつて制御するためのコレクトゲート
回路、55は訂正後データ、56はデータ選択回
路、57はデータ選択信号、58は直−並列変換
および並−直列変換を行なわせるためのクロツク
信号、59は受信データをバツフアメモリ29に
書込むための書込みパルス信号、60はバツフア
メモリ29に書込みを行なうための書込みパルス
信号である。
The load gate circuit 38 is the timing control circuit 2
By the load gate signal 39 supplied from 7,
It controls whether or not the uncorrected data 35 is supplied to the syndrome register 36 via the adder 37.
40 is a syndrome register signal, 41 is a majority decision circuit, 42 is a threshold signal that provides a threshold value for making a majority decision, 43 is a threshold generation circuit, 44 is a threshold clock for updating the threshold value, and 45 clears the syndrome register 36. 46 is a first loading clock signal for loading data into the syndrome register 36;
47 is a load end signal for incrementing the syndrome register by 1 bit, 48 is a first correction clock signal, 49 is a second loading clock signal for loading data into the data register 34, and 50 is a second clock signal. 51 is a collect gate circuit for controlling, by a collect gate signal 52, whether or not the result signal of the majority circuit 41 is supplied to the adder 54 as an error correction signal 53; 55 is a corrected data; , 56 is a data selection circuit, 57 is a data selection signal, 58 is a clock signal for serial-parallel conversion and parallel-serial conversion, 59 is a write pulse signal for writing received data into the buffer memory 29, and 60 is a data selection signal. This is a write pulse signal for writing into the buffer memory 29.

61は垂直帰線消去信号、もしくは垂直帰線消
去信号に類似する信号、62は水平同期信号、も
しくは水平帰線消去信号、63は動作状態を示す
ためのステータス信号である。64はシンドロー
ムレジスタが“0”になつた時にセツトされるレ
ジスタであり、その出力信号であるエラーステー
タス信号65が前記タイミング制御回路27に供
給されている。
61 is a vertical blanking signal or a signal similar to the vertical blanking signal; 62 is a horizontal synchronization signal or a horizontal blanking signal; and 63 is a status signal for indicating the operating state. Reference numeral 64 denotes a register that is set when the syndrome register becomes "0", and its output signal, an error status signal 65, is supplied to the timing control circuit 27.

66および67はアドレス更新信号、68は
CPUのデータリクエスト信号である。
66 and 67 are address update signals, and 68 is an address update signal.
This is the CPU data request signal.

69は(272、190)符号から短縮するビツト数
を指定するための短縮ビツト数指定信号、70は
第1の訂正完了データ、71は第2の訂正完了デ
ータ、72は第3の訂正完了データである。73
は出力データ選択回路であつて、タイミング制御
回路27より与えられる出力データ選択信号74
によつて、70,71もしくは72のうちの1つ
を選択して訂正出力データ75としてデータ転送
回路30に供給する。76は訂正完了データを送
出するための送出用クロツク信号である。
69 is a reduction bit number designation signal for specifying the number of bits to be shortened from the (272, 190) code, 70 is first correction completion data, 71 is second correction completion data, and 72 is third correction completion data. It is. 73
is an output data selection circuit, which receives an output data selection signal 74 given from the timing control circuit 27.
, one of 70, 71, or 72 is selected and supplied to the data transfer circuit 30 as corrected output data 75. Reference numeral 76 is a sending clock signal for sending out the corrected data.

次に第2図の動作を説明する。 Next, the operation shown in FIG. 2 will be explained.

第2図の動作モードは大別してシリアル受信
データを直−並列変換してバツフアメモリに書込
む、バツフアメモリから訂正前データを読出し
データレジスタとシンドロームレジスタにロード
する、データレジスタとシンドロームレジスタ
を巡回させかつ多数決の判定閾値を変化させて巡
回を繰返すことにより誤り訂正を行なう、訂正
完了したデータをバツフアメモリに書込むという
4つの動作からなる。また、第5の動作モードと
して、CPUが、バツフアメモリに格納された訂
正完了データを読出す。
The operating modes in Figure 2 are roughly divided into serial-to-parallel conversion of serial received data and writing to the buffer memory, reading uncorrected data from the buffer memory and loading it into the data register and syndrome register, circulating the data register and syndrome register, and deciding by majority. It consists of four operations: performing error correction by changing the judgment threshold value and repeating the cycle, and writing the corrected data to the buffer memory. Further, as a fifth operation mode, the CPU reads out the corrected data stored in the buffer memory.

これら動作の概念のフローチヤートを第3図に
示す。受信されたすべてのパケツトのデータにつ
いて訂正するのではなく特に指定する(単数もし
くは複数の)パケツトのデータについてだけ訂正
するのが合理的である場合もあるが、この実施例
では受信されたすべてのパケツトのデータを訂正
するものとする。第3図に示されるごとく第1の
動作モードでは1垂直帰線消去時間の全パケツト
の受信データを順次バツフアメモリに格納する。
第2、第3、および第4の動作モードでは1パケ
ツト単位で処理を行なうので、1パケツトごとに
第2、第3および第4の動作モードを繰返し、全
パケツトについて第2、第3および第4の動作モ
ードを遂行すると訂正終了となる。
A flowchart of the concept of these operations is shown in FIG. In some cases, it may be reasonable to correct only the data of a specifically specified packet or packets, rather than the data of all received packets. The packet data shall be corrected. As shown in FIG. 3, in the first operation mode, all the received data of the packets for one vertical blanking time are sequentially stored in the buffer memory.
In the second, third, and fourth operation modes, processing is performed in units of one packet, so the second, third, and fourth operation modes are repeated for each packet, and the second, third, and fourth operation modes are processed for every packet. When the fourth operation mode is executed, the correction ends.

かくして全パケツトのデータが訂正され、バツ
フアメモリに格納されるとステータス信号63を
発してCPUがバツフアメモリの内容を読出して
よいことをCPUに知らせる。
When the data of all the packets are thus corrected and stored in the buffer memory, a status signal 63 is generated to inform the CPU that it may read the contents of the buffer memory.

以下に第1の動作モードから順番に説明してい
く。
The explanation will be given below in order starting from the first operation mode.

第4図は第1の動作モードを説明するためのも
ので日本の文字コード放送の場合のパケツト受信
データのタイミングを示す。第4図において10
0は水平同期信号、101はカラーバースト、1
02はクロツク同期をとるための16ビツトのクロ
ツクランイン、103はフレーム同期をとるため
のフレーミング信号、104は272ビツトのデー
タビツトであつて、シリアル受信データ31を形
成するものである。データ転送回路30はフレー
ミング信号103によつてフレーム同期がとられ
たことを示すフレーミング検出信号32を受け取
りシリアル受信データの開始時期を知ることがで
き、またクロツクランイン102によつて同期が
とられた同期クロツク33を受け取る。
FIG. 4 is for explaining the first operation mode and shows the timing of packet reception data in the case of Japanese character code broadcasting. 10 in Figure 4
0 is horizontal synchronization signal, 101 is color burst, 1
02 is a 16-bit clock line in for clock synchronization, 103 is a framing signal for frame synchronization, and 104 is a 272-bit data bit which forms the serial reception data 31. The data transfer circuit 30 receives a framing detection signal 32 indicating that frame synchronization has been established by the framing signal 103, and can know the start timing of serial reception data. The received synchronous clock 33 is received.

日本以外の文字コード放送もしくは他の用途に
おいてはパケツトデータが272ビツトに限らず、
272−nビツト(nは0を含む整数)になるであ
ろうし、パケツトデータが必ずしも垂直帰線消去
時間に伝送されるものではなく、第4図のような
フオーマツトで伝送されてくるものではないであ
ろう。しかし、これらのいずれの用途に対して
も、シリアル受信データに対してこのシリアル受
信データの開始時期を示す信号32と同期クロツ
ク33は必要である。
For character code broadcasting outside of Japan or for other purposes, packet data is not limited to 272 bits.
272-n bits (n is an integer including 0), and the packet data is not necessarily transmitted during the vertical blanking time, nor is it transmitted in the format shown in Figure 4. Probably. However, for any of these applications, a signal 32 indicating the start time of serially received data and a synchronization clock 33 are necessary.

上述のように、同期クロツク33が供給される
ので272−nビツトのデータビツトの時間の間、
シリアル受信データ31を同期クロツク33によ
つて順次取り込んで直−並列変換する。ローカル
データバス23の容量を8ビツトとすれば、シリ
アル受信データが8ビツト到来するごとにローカ
ルデータバスに送出する。あるパケツトの訂正前
データを格納するバツフアメモリのエリアの先頭
番地をα番地とすれば、8ビツトのデータ送出を
行なうたびに、データ転送回路30はアドレス更
新信号67をアドレス生成回路25に与えるので
自動アドレス信号がα+1、α+2、α+3、…
のごとく順次歩進していく。またこれら8ビツト
のデータ送出ごとに書込みパルス信号59がタイ
ミング制御回路27を介して書込みパルス信号6
0としてバツフアメモリ29に供給される。第1
の動作モードにおいてはデータバス制御回路22
は20と23を分離するように動作するので、
CPUのデータバスは他の目的のために使用して
いてよく、他方アドレス切替回路24は2つの入
力信号のうち、アドレス生成回路25から供給さ
れる自動アドレス信号26を選択してバツフアメ
モリ29のアドレス入力端子に伝えるように動作
する。
As mentioned above, the synchronous clock 33 is supplied so that during the time period of 272-n data bits,
Serial reception data 31 is sequentially taken in by a synchronous clock 33 and serial-to-parallel converted. If the capacity of the local data bus 23 is 8 bits, each time 8 bits of serial reception data arrive, it is sent to the local data bus. If the starting address of the buffer memory area that stores uncorrected data of a certain packet is address α, the data transfer circuit 30 will automatically send the address update signal 67 to the address generation circuit 25 every time 8-bit data is sent. The address signals are α+1, α+2, α+3,...
Step by step as follows. Also, each time these 8-bit data are sent out, the write pulse signal 59 is sent to the write pulse signal 6 via the timing control circuit 27.
It is supplied to the buffer memory 29 as 0. 1st
In the operation mode, the data bus control circuit 22
works to separate 20 and 23, so
The data bus of the CPU may be used for other purposes, and the address switching circuit 24 selects the automatic address signal 26 supplied from the address generation circuit 25 from among the two input signals to address the buffer memory 29. It operates to transmit information to the input terminal.

かくして1パケツト=272−nビツトのシリア
ル受信データ31が直−並列交換されてバツフア
メモリ29のα番地から順次書込まれる。1パケ
ツト分の受信データをバツフアメモリ29に格納
するための動作フローを第5図に示す。8ビツト
=1バイトずつ処理して書込むものとすれば1パ
ケツト分では(272−n)/8((272−n)/8が
整数でなければ(272−n)/8より大きく、か
つもつとも近い整数の値)回、例えばn=0(日
本の文字コード放送の場合)であれば34回、n=
8であれば33回、n=16であれば32回繰返し、格
納される番地はα番地からα+(272−n)/8
((272−n)/8が整数でなければ(272−n)/
8より大きく、かつ最も近い整数値)−1番地ま
でとなる。
In this way, serial reception data 31 of 1 packet = 272-n bits are serial-parallel exchanged and sequentially written into buffer memory 29 starting from address α. FIG. 5 shows an operational flow for storing one packet of received data in the buffer memory 29. If 8 bits = 1 byte are processed and written, one packet is (272-n)/8 (if (272-n)/8 is not an integer, it is larger than (272-n)/8, and The closest integer value) times, for example, if n = 0 (in the case of Japanese character code broadcasting), 34 times, n =
If it is 8, it will be repeated 33 times, if n=16, it will be repeated 32 times, and the stored address will be α+(272-n)/8 from address α.
(If (272-n)/8 is an integer, then (272-n)/
(the nearest integer value greater than 8) - 1 address.

日本の文字コード放送においては1垂直帰線消
去時間の間に最大12パケツトまでのデータを伝送
することができる。第2図における61は日本の
文字コード放送の場合で言えば垂直帰線消去信号
であるが、より一般的には単数もしくは一連の複
数のパケツトデータがシリアルに入力されつつあ
ることを示す信号である。62は日本の文字コー
ド放送の場合で言えば水平同期信号(もしくは水
平帰線消去信号)であるがより一般的には、パケ
ツトデータ時間と次のパケツトデータ時間との間
を示す信号、すなわちパケツトの変り目を示す信
号である。アドレス生成回路25は61に信号が
与えられている間、62をカウントして自動アド
レス信号26の部分信号を生成する。1パケツト
分のデータ転送が終了すると、62が到来するの
で、これをカウントすることによつて、次のパケ
ツトの訂正前データを格納すべきアドレスに切替
わる。以下同様にして第5図に示したフローを所
望の回数(日本の文字コード放送では12回)だけ
繰返して、ひとつの連の複数パケツト(日本の文
字コード放送では12パケツト)分の訂正前データ
がバツフアメモリ29に格納される。日本の文字
コード放送の場合では、パケツト番号とそのパケ
ツト番号の訂正前パケツトデータを格納する番地
との対応例は第6図のごとくである。1パケツト
分のデータエリアとしては、n=0でも34番地あ
れば充分であるがアドレス生成回路の構成を容易
にするために第6図では64番地を確保している。
従つて、1パケツトのデータエリア64番地分の
うち後半30番地分は未使用である。全パケツトの
訂正前データをバツフアメモリに書込み終ると第
2図における61の信号が終り、第1の動作モー
ドが終了する。
In Japanese character code broadcasting, up to 12 packets of data can be transmitted during one vertical blanking period. 61 in Figure 2 is a vertical blanking signal in the case of Japanese character code broadcasting, but more generally it is a signal indicating that a single packet or a series of multiple packet data is being input serially. . In the case of Japanese character code broadcasting, 62 is a horizontal synchronization signal (or horizontal blanking signal), but more generally it is a signal that indicates the interval between one packet data time and the next packet data time, that is, the transition point of a packet. This is a signal indicating. The address generation circuit 25 counts 62 while the signal 61 is being applied to generate a partial signal of the automatic address signal 26. When the data transfer for one packet is completed, 62 arrives, and by counting this, the address is switched to the address where the uncorrected data of the next packet is to be stored. Similarly, the flow shown in Figure 5 is repeated the desired number of times (12 times in Japanese character code broadcasting) to obtain uncorrected data for multiple packets of one series (12 packets in Japanese character code broadcasting). is stored in the buffer memory 29. In the case of Japanese character code broadcasting, an example of the correspondence between a packet number and an address for storing uncorrected packet data of that packet number is as shown in FIG. As the data area for one packet, 34 addresses would be sufficient even if n=0, but in order to simplify the configuration of the address generation circuit, 64 addresses are reserved in FIG. 6.
Therefore, of the 64 addresses in the data area of one packet, the latter 30 addresses are unused. When all packets of uncorrected data are written into the buffer memory, the signal 61 in FIG. 2 ends, and the first operation mode ends.

61の信号が終ると第2の動作モードに入る。 When the signal 61 ends, the second operating mode is entered.

第2の動作モードにおいても、第2図における
データバス制御回路22は20と23を分離する
ように動作し、アドレス切替回路24はアドレス
生成回路から与えられる自動アドレス信号を選択
してバツフアメモリ29のアドレス入力端子に供
給するように動作する。またアドレス生成回路2
5はタイミング制御回路27からのアドレス更新
信号によつてアドレス更新を行なう。第2の動作
モードではバツフアメモリの中に第6図のように
格納されているパケツト訂正前データをその先頭
番地から順番に8ビツトずつ読出しデータ転送回
30で並−直列変換を行なつて訂正前データ35
を発生し、データ選択回路56の第1のデータ入
力端子に供給する。データ選路回路56はタイミ
ング制御回路27から供給されるデータ選択信号
57により、第1のデータ入力端子に与えられる
前記訂正前データ35と第2のデータ入力端子に
与えられる訂正後データ55のうち一方を選択し
てデータレジスタ34のデータ入力端子に供給す
るごとく動作するが第2の動作モードにおいて
は、訂正前データ35を選択してデータレジスタ
34に供給する。
In the second operation mode as well, the data bus control circuit 22 in FIG. It operates to supply the address input terminal. Also, address generation circuit 2
5 updates the address in response to an address update signal from the timing control circuit 27. In the second operation mode, the uncorrected packet data stored in the buffer memory as shown in FIG. data 35
is generated and supplied to the first data input terminal of the data selection circuit 56. The data selection circuit 56 selects between the pre-correction data 35 given to the first data input terminal and the post-correction data 55 given to the second data input terminal in response to a data selection signal 57 supplied from the timing control circuit 27. It operates in such a way as to select one and supply it to the data input terminal of the data register 34, but in the second operation mode, the uncorrected data 35 is selected and supplied to the data register 34.

また、訂正前データ35はロードゲート回路3
8を介して加算器37の第1の入力端子に供給さ
れ、ひいてはシンドロームレジスタ36に供給さ
れる。バツフアメモリ29からの1回の読出しで
8ビツト、つごう(272−n)/8((272−n)/
8が整数でない場合には、(272−n)/8より大
きく、かつ最も近い整数)回で1パケツトのデー
タを並−直列変換してデータレジスタ34および
シンドロームレジスタ36にロードする。但し、
データレジスタ34に対しては272−nビツトの
データのうち、190−nビツトの情報ビツトのデ
ータだけをロードする。このようにして形成され
たシンドロームレジスタによつて誤り検出を行な
うことができる。すなわち、シンドロームレジス
タ信号40がすべて“0”であればデータに誤り
がなく、他方、いずれかのビツトが“1”であれ
ばデータに誤りがある。誤りがない場合には、第
3の動作モードを行なわず、第4の動作モードを
行なつてもよい。
Furthermore, the uncorrected data 35 is stored in the load gate circuit 3.
8 to the first input terminal of the adder 37 and, in turn, to the syndrome register 36 . One read from buffer memory 29 transfers 8 bits (272-n)/8((272-n)/
If 8 is not an integer, one packet of data is parallel-to-serial converted and loaded into the data register 34 and the syndrome register 36 by (272-n)/8 (the nearest integer) times. however,
Of the 272-n bits of data, only 190-n bits of information bit data are loaded into the data register 34. Error detection can be performed using the syndrome register thus formed. That is, if the syndrome register signal 40 is all "0", there is no error in the data, and on the other hand, if any bit is "1", there is an error in the data. If there is no error, the third operation mode may not be performed and the fourth operation mode may be performed.

本実施例の誤り訂正の基本的な誤り訂正の方式
は特願昭58−6579において説明される通りであ
り、また閾値を順に下げて訂正を行なうという点
については特願昭58−54002に説明された通りで
ある。
The basic error correction method of this embodiment is as explained in Japanese Patent Application No. 58-6579, and the point that correction is performed by sequentially lowering the threshold value is explained in Japanese Patent Application No. 58-54002. That's exactly what was said.

第2の動作モードと第3の動作モードとは手順
が連続しており、第2の動作モードの終了、すな
わちデータレジスタ34およびシンドロームレジ
スタ36へのデータロードが完了すると自動的に
第3の動作モードに入る。
The second operation mode and the third operation mode are sequential, and when the second operation mode ends, that is, data loading to the data register 34 and the syndrome register 36 is completed, the third operation automatically starts. Enter the mode.

第3の動作モードにおいてはタイミング制御回
路27から2つの訂正用クロツク48と50とが
発生されて、それぞれシンドロームレジスタ36
とデータレジスタ34とをシフトする。ロードゲ
ート回路38はオフになり、他方、データ選択回
路56は訂正後データ55を選択してデータレジ
スタに供給する。また、コレクトデート回路51
はオンになる。第1の訂正用クロツク48は1回
の訂正ごとに272発のクロツクパルスを出してシ
ンドロームを巡回させ、第2の訂正用クロツク5
0は1回の訂正ごとに190発のクロツクパルスを
出してデータレジスタを巡回する。
In the third operation mode, two correction clocks 48 and 50 are generated from the timing control circuit 27, and the syndrome register 36 generates two correction clocks 48 and 50, respectively.
and data register 34. The load gate circuit 38 is turned off, while the data selection circuit 56 selects the corrected data 55 and supplies it to the data register. In addition, the collect date circuit 51
turns on. The first correction clock 48 outputs 272 clock pulses for each correction to cycle through the syndrome, and the second correction clock 5
0 circulates through the data register by issuing 190 clock pulses for each correction.

誤り訂正は排他的論理和回路(2を法とする加
算器)54により行なう。誤り訂正信号53はシ
ンドロームレジスタの82個の状態を17個の線形結
合とし、その17個の中で多数決回路41によつて
閾値(最初の閾値は17)と比較することにより出
力されるものである。ただし、この誤り訂正信号
53はコレクトゲート信号52に応答して誤り訂
正動作のときにのみ通過するように構成されてい
る。さらに誤り訂正信号53はそのビツトに誤り
がある時にはそのビツトの影響を除去するように
シンドロームレジスタ36を修正する。訂正され
た訂正後データ55はデータ選択回路56を介し
て再びデータレジスタ34のデータ入力端子に帰
還される。
Error correction is performed by an exclusive OR circuit (modulo 2 adder) 54. The error correction signal 53 is output by forming 17 linear combinations of the 82 states of the syndrome register, and comparing the 17 states with a threshold value (the first threshold value is 17) by the majority circuit 41. be. However, this error correction signal 53 is configured to pass only during an error correction operation in response to the collect gate signal 52. Additionally, the error correction signal 53 modifies the syndrome register 36 to remove the effect of that bit when there is an error in that bit. The corrected data 55 is fed back to the data input terminal of the data register 34 via the data selection circuit 56.

なお、訂正に先立つて、シンドロームレジスタ
36を1ビツトだけ歩進させる。これは誤り訂正
の符号として(273、191)多数決符号を選び1ビ
ツト減少して(272、190)符号にしたことによ
る。
Note that, prior to correction, the syndrome register 36 is incremented by one bit. This is because the majority code (273, 191) was chosen as the error correction code and one bit was reduced to make it the (272, 190) code.

このようにしてシンドロームレジスタにおいて
は273ビツト、データレジスタにおいては190ビツ
トのシフトが行なわれると1パケツト272ビツト
のデータビツトのうち、パリテイビツト82ビツト
を除いた情報ビツト190ビツトが復元される。こ
の時、エラーステータス信号65を調べることに
より正しく誤り訂正がなされたか否かを判断する
ことができる。シンドロームレジスタ36のすべ
てのビツトが“0”でないときは、未だいずれか
のビツト位置に誤りが存在することであるから、
再び誤り訂正動作を行なう。ただし、このときは
タイミング制御回路27から閾値クロツク44が
与えられて、閾値発生回路43がこれを減算カウ
ントするので閾値は1だけ減じられる。すなわち
閾値を16として、前回の閾値17で誤り訂正を行な
つた後のデータを用いる。
In this way, by shifting 273 bits in the syndrome register and 190 bits in the data register, 190 information bits, excluding 82 parity bits, of the 272 data bits in one packet are restored. At this time, by checking the error status signal 65, it can be determined whether or not error correction has been performed correctly. If all the bits in the syndrome register 36 are not "0", it means that an error still exists in one of the bit positions.
The error correction operation is performed again. However, at this time, the threshold value clock 44 is given from the timing control circuit 27, and the threshold value generation circuit 43 subtracts and counts this, so that the threshold value is decreased by 1. That is, the threshold value is set to 16, and data after error correction is performed using the previous threshold value of 17 is used.

以上の操作を閾値9が終了するまで行なう。た
だし、途中でシンドロームレジスタ36のすべて
のビツトが“0”になつたときに誤り訂正動作を
完了したことになる。すなわち、その時点におけ
るデータは正しい値であるから、それ以後は誤り
訂正回路を通過させる必要がない。
The above operations are performed until the threshold value 9 is reached. However, when all bits of the syndrome register 36 become "0" during the process, the error correction operation is completed. That is, since the data at that point is a correct value, there is no need to pass it through the error correction circuit thereafter.

以上説明したように第3の動作モードが終了す
ると訂正されたデータ(情報ビツト)がデータレ
ジスタ34に確保されている。第3の動作モード
が終了すると自動的に第4の動作モードに入る。
第4の動作モードでは訂正されたデータを直−並
列変換してバツフアメモリ29に格納する。第2
図において70はデータレジスタの190ビツト目
の信号であり、また71は例えば182ビツト目の
信号であり、また72は例えば174ビツト目の信
号である。出力データ選択信号74は短縮ビツト
数指定信号69に呼応するものであり、指定され
た短縮ビツト数によつて70,71,72のいず
れかを選択するための信号である。かりに短縮ビ
ツト数n=0(すなわちデータビツトが272ビツト
の符号)と指定された場合には、出力データ選択
回路73は70を選択してデータ転送回路30に
供給し、あるいは短縮ビツト数n=8(すなわち、
データビツトが264ビツトの符号)と指定された
場合には、71が選択されてデータ転送回路30
に供給され、あるいは短縮ビツト数n=16(すな
わち、データビツトが256ビツトの符号)と指定
された場合には72が選択されてデータ転送回路
30に供給される。このようにするのは、190ビ
ツトのデータレジスタには、訂正完了した情報が
1ビツト目から190−nビツト目までしか詰めら
れていないためである。76は、190−nビツト
のデータをシフトしてデータ転送回路に送出する
ための送出用クロツクで190−n発のクロツクパ
ルスが与えられる。データ転送回路30に供給さ
れた訂正出力データは直−並列変換されてローカ
ルデータバス23を介してバツフアメモリ29に
送出されるが8ビツトの送出ごとにアドレス更新
信号66が発生して、自動アドレス信号26を更
新し、かつ書込みパルス60がバツフアメモリ2
9に供給される。アドレス切替回路24は自動ア
ドレス信号26を選択して、バツフアメモリ29
のアドレス入力端子に供給する。従つて、訂正完
了した訂正出力データが8ビツトずつバツフアメ
モリ29に書込まれる。
As explained above, when the third operation mode ends, corrected data (information bits) is secured in the data register 34. When the third operating mode ends, the fourth operating mode is automatically entered.
In the fourth operation mode, the corrected data is serial-parallel converted and stored in the buffer memory 29. Second
In the figure, 70 is the 190th bit signal of the data register, 71 is, for example, the 182nd bit signal, and 72 is, for example, the 174th bit signal. The output data selection signal 74 corresponds to the reduction bit number designation signal 69, and is a signal for selecting one of 70, 71, and 72 depending on the specified reduction bit number. If the number of shortened bits n=0 (that is, a code of 272 data bits) is specified, the output data selection circuit 73 selects 70 and supplies it to the data transfer circuit 30, or the number of shortened bits n=0. 8 (i.e.
If the data bit is specified as a 264-bit code, 71 is selected and the data transfer circuit 30
72 is selected and supplied to the data transfer circuit 30 if the number of shortened bits n=16 (that is, a 256-bit code) is specified. This is done because the 190-bit data register is filled with corrected information only from the 1st bit to the 190-nth bit. Reference numeral 76 is a sending clock for shifting 190-n bit data and sending it to the data transfer circuit, and a clock pulse of 190-n is given to it. The corrected output data supplied to the data transfer circuit 30 is serial-parallel converted and sent to the buffer memory 29 via the local data bus 23, but an address update signal 66 is generated every time 8 bits are sent, and an automatic address signal is generated. 26 and write pulse 60 is updated to buffer memory 2.
9. Address switching circuit 24 selects automatic address signal 26 and buffer memory 29
Supplied to the address input terminal of Therefore, the corrected output data that has been corrected is written into the buffer memory 29 in units of 8 bits.

特願昭58−90017に開示されているように日本
の文字コード放送においては272ビツトのパケツ
トデータの先頭は(8、4)拡大ハミング符号に
よるサービス識別と割込み優先順を示す8ビツト
のSI/INであるが、その次にパケツト内容識別
のために6ビツトのパケツトコントロール(PC)
があり、引続いて純粋の情報ビツトが22バイトあ
る。従つてそのまま訂正後のデータを8ビツトず
つ詰めていくと各バイトの先頭の2ビツト分が1
バイト前のデータ部に混入することになる。この
問題を避けるために、この実施例では特願昭58−
90017と同様にPC情報には2ビツトの付加ビツト
を追加して8ビツトに揃えている。従つて、日本
の文字コード放送の場合には、訂正済みデータと
して、1パケツトあたり24のバイトのデータがバ
ツフアメモリに格納される。より一般的には
(190−n)/8((190−n)/8が整数でなけれ
ば(190−n)/8より大きく、かつ最も近い整
数)バイトがバツフアメモリに書込まれるのであ
る。
As disclosed in Japanese Patent Application No. 58-90017, in Japanese character code broadcasting, the beginning of 272-bit packet data is an 8-bit SI/IN indicating service identification and interrupt priority using (8, 4) expanded Hamming code. However, next, a 6-bit packet control (PC) is used to identify the packet content.
followed by 22 bytes of pure information bits. Therefore, if the corrected data is packed 8 bits at a time, the first 2 bits of each byte will become 1.
It will be mixed into the data section before the byte. In order to avoid this problem, in this embodiment, the patent application
Similar to 90017, 2 additional bits are added to the PC information to make it 8 bits. Therefore, in the case of Japanese character code broadcasting, 24 bytes of data per packet are stored in the buffer memory as corrected data. More generally, (190-n)/8 (if (190-n)/8 is not an integer, then the closest integer greater than (190-n)/8) bytes are written to buffer memory.

なお第4の動作モードにおいてもデータバス制
御回路22は20と23を分離するように動作す
るのでCPUは他の動作を行なつていてよい。
Note that in the fourth operation mode as well, the data bus control circuit 22 operates to separate 20 and 23, so the CPU may perform other operations.

以上説明したように第2、第3および第4の動
作モードはひとつのパケツトのデータに関する一
連の動作である。すなわち、1パケツトの訂正前
データをバツフアメモリ29から読出して、シン
ドロームレジスタ36およびデータレジスタ34
にロードし(第2の動作モード)、誤り訂正を行
ない(第3の動作モード)、訂正された1パケツ
トのデータをバツフアメモリ29に書込む(第4
の動作モード)。
As explained above, the second, third and fourth operation modes are a series of operations regarding one packet of data. That is, one packet of uncorrected data is read out from the buffer memory 29 and stored in the syndrome register 36 and data register 34.
(second operation mode), performs error correction (third operation mode), and writes one corrected packet of data to buffer memory 29 (fourth operation mode).
mode of operation).

日本の文字コード放送の場合を例にとれば訂正
済データが第7図に示すようにバツフアメモリ2
9に格納される。
Taking the case of Japanese character code broadcasting as an example, the corrected data is stored in the buffer memory 2 as shown in Figure 7.
It is stored in 9.

このように全パケツトの訂正済データがバツフ
アメモリ29に格納されると、タイミング制御回
路27はステータス信号63を発し、CPUに対
してバツフアメモリ29をCPUを読出してよい
ことを示す。
When all the corrected data of the packets are stored in the buffer memory 29 in this manner, the timing control circuit 27 issues a status signal 63 to indicate to the CPU that the buffer memory 29 may be read from the CPU.

第5の動作モードはCPUがステータス信号6
3を検知してCPUがバツフアメモリ29の内容
を読出すモードである。このモードにおいては、
CPUはタイミング制御回路27に対してデータ
リクエスト信号68を与える。これによつてタイ
ミング制御回路27はCPUのデータバス20と
ローカルデータバス23とを連結するように、か
つまた、自動アドレス信号26を禁止してCPU
のアドレスバス21の信号をバツフアメモリ29
のアドレス入力端子に供給するようにバス制御信
号28を与える。
In the fifth operating mode, the CPU sends the status signal 6
This is a mode in which the CPU reads out the contents of the buffer memory 29 upon detecting the buffer memory 29. In this mode,
The CPU provides a data request signal 68 to the timing control circuit 27. This causes the timing control circuit 27 to connect the CPU data bus 20 and the local data bus 23, and also disables the automatic address signal 26 to connect the CPU data bus 20 and the local data bus 23.
The signal of the address bus 21 is transferred to the buffer memory 29.
A bus control signal 28 is applied to the address input terminal of the bus.

かくしてバツフアメモリ29の出力データがロ
ーカルデータバス23を介してCPUのデータバ
ス20に得られるので、CPUが任意にアドレス
指定するバツフアメモリの領域のデータを読出す
ことができる。
In this way, the output data of the buffer memory 29 is obtained via the local data bus 23 to the data bus 20 of the CPU, so that the CPU can read data from an area of the buffer memory arbitrarily specified.

以上説明したように、第1の実施例ではデータ
レジスタ34の異なるビツト位置から出力を取り
出すことにより、指定された短縮ビツト数のデー
タを訂正しバツフアメモリに格納することができ
る。
As explained above, in the first embodiment, by taking out outputs from different bit positions of the data register 34, data of a specified number of shortened bits can be corrected and stored in the buffer memory.

第8図は本発明の第2の実施例の回路図を示
す。第8図において20〜69は第2図と同等の
ものであり、70はデータレジスタ34の190ビ
ツト目出力信号である、訂正完了データである。
出力ゲート回路77は、タイミング制御回路27
より供給される出力ゲート信号78により、前記
訂正完了データ70を通過させるか禁止させるか
を制御するためのものであり、通過された訂正出
力データ75をデータ転送回路30に供給する。
また79は第2図における76と類似の訂正完了
データを送出するための送出用クロツク信号であ
るが、短縮ビツト数nに無関係に190発のクロツ
クパルスを生ずる。
FIG. 8 shows a circuit diagram of a second embodiment of the invention. In FIG. 8, 20 to 69 are the same as in FIG. 2, and 70 is the 190th bit output signal of the data register 34, which is the correction completion data.
The output gate circuit 77 is the timing control circuit 27
This is for controlling whether or not the corrected completed data 70 is passed or prohibited by an output gate signal 78 supplied from the output gate signal 78 , and the corrected output data 75 that has been passed is supplied to the data transfer circuit 30 .
Further, 79 is a sending clock signal for sending out corrected data similar to 76 in FIG. 2, but it generates 190 clock pulses regardless of the number of shortened bits n.

第2の実施例の動作は第1〜第3および第5の
動作モードにおいて第1の実施例と同等である。
The operation of the second embodiment is equivalent to that of the first embodiment in the first to third and fifth operation modes.

すなわち、第2の動作モードにおいて、第2の
ロード用クロツク信号49として190−n発のク
ロツクパルスが与えられ、データレジスタ34に
190−nビツトの訂正前データが確保される。第
3の動作モードにおいては、ひとつの閾値ごとに
第2の訂正用クロツク信号50として190発のク
ロツクパルスが与えられ、データが各閾値ごとに
訂正されながらデータレジスタ34の中を巡回す
る。最後の閾値での訂正が完了するとデータレジ
スタ34の1ビツト目から190−nビツト目まで
訂正完了したデータが詰つている。第4の動作モ
ードにおいてはデータレジスタ34の190ビツト
目の出力信号から順番に送出していくが、最初の
nビツト分は空の信号である。出力ゲート信号7
8は第4の動作モードにおいて送出する最初のn
ビツト分の期間については出力データを禁止する
ための信号である。かくして第2の実施例におい
ては、データレジスタ34の複数の出力信号を切
替選択することなく指定された短縮ビツト数nの
訂正完了データを送出し、バツフアメモリ29に
格納することができる。
That is, in the second operation mode, a clock pulse of 190-n is given as the second loading clock signal 49, and the data register 34 receives a clock pulse of 190-n.
190-n bits of uncorrected data are secured. In the third operation mode, 190 clock pulses are applied as the second correction clock signal 50 for each threshold value, and the data circulates through the data register 34 while being corrected for each threshold value. When the correction at the last threshold value is completed, the data register 34 is filled with the corrected data from the 1st bit to the 190-nth bit. In the fourth operation mode, the output signal of the data register 34 is sent out in order starting from the 190th bit, but the first n bits are empty signals. Output gate signal 7
8 is the first n to send in the fourth mode of operation
This is a signal for inhibiting output data for a period corresponding to bits. Thus, in the second embodiment, the corrected data of the specified number of shortened bits n can be sent out and stored in the buffer memory 29 without switching and selecting a plurality of output signals of the data register 34.

第1の実施例では訂正完了データはデータレジ
スタの190−nビツト目に相当する(nを切替え
るものとして)信号を取り出すようにし、データ
転送回路30で並−直列変換する例について説明
したが、第9図に示すように(第3の実施例)、
訂正完了データとして8ビツト単位で取り出すこ
ともできる。第9図において70a,71aおよ
び72aは190−nビツト目から190−n−7ビツ
ト目までの出力信号である、8ビツトの訂正完了
データである。出力選択信号74によつて70
a,71a、あるいは70aのいずれかが選択さ
れて訂正出力データ75aとして、データ転送回
路30に供給される。このように8ビツトで訂正
出力データを供給するとデータ転送回路では所定
のタイミングでラツチするだけで直−並列変換が
行なわれるので回路構成が簡単になる利点があ
る。
In the first embodiment, an example was explained in which the correction completion data is taken out as a signal corresponding to the 190th-nth bit of the data register (assuming that n is switched) and is converted from parallel to serial in the data transfer circuit 30. As shown in FIG. 9 (third embodiment),
It is also possible to extract the data in 8-bit units as correction completion data. In FIG. 9, 70a, 71a and 72a are 8-bit correction completion data which are output signals from the 190-nth bit to the 190-n-7th bit. 70 by the output selection signal 74
A, 71a, or 70a is selected and supplied to the data transfer circuit 30 as corrected output data 75a. When corrected output data is supplied in 8-bit format in this manner, serial-to-parallel conversion is performed by simply latching at a predetermined timing in the data transfer circuit, which has the advantage of simplifying the circuit configuration.

なお、第2図および第9図においては、選択切
替する短縮ビツト数として3通りである例を示し
たが、2通りもしくは3通り以上の選択切替を可
能にする場合についても同様にして構成すること
ができる。
In addition, in FIG. 2 and FIG. 9, an example is shown in which the number of shortening bits to be selectively switched is three, but a case in which selection can be switched in two or three or more ways is configured in the same way. be able to.

第2の実施例(第8図)においては、訂正完了
データはデータレジスタ34の190ビツト目から
取り出し、データ転送回路30で8ビツトデータ
に直−並列変換したが第10図に示すように、デ
ータレジスタ34の190ビツト目〜183ビツト目か
ら8ビツトのデータとして取出すこともできる。
78は第8図と同等の出力ゲート信号であり、7
8に信号が与えられることによつて70bが75
bとして出力されデータ転送回路30に送出され
る。この場合、データ転送回路30は75bを所
定のタイミングでラツチするだけで8ビツトへの
直−並列変換を行なうことができ、回路構成を簡
単にできる利点がある。
In the second embodiment (FIG. 8), the corrected data is taken out from the 190th bit of the data register 34 and serial-parallel converted into 8-bit data by the data transfer circuit 30, but as shown in FIG. It is also possible to extract the data from the 190th bit to the 183rd bit of the data register 34 as 8-bit data.
78 is an output gate signal equivalent to that in FIG.
By giving a signal to 8, 70b becomes 75
b and sent to the data transfer circuit 30. In this case, the data transfer circuit 30 can perform serial-to-parallel conversion to 8 bits simply by latching 75b at a predetermined timing, which has the advantage of simplifying the circuit configuration.

以上の第1〜第4の実施例においては、ローカ
ルデータバス23のビツト容量として8ビツトを
用い、バツフアメモリ29とデータ転送回路30
とのデータのやり取りを8ビツト単位で行なう例
を示したが、他のビツト数、例えば16ビツト、も
しくは4ビツトでも可能である。
In the first to fourth embodiments described above, 8 bits are used as the bit capacity of the local data bus 23, and the buffer memory 29 and data transfer circuit 30
Although we have shown an example in which data is exchanged in units of 8 bits, other numbers of bits, such as 16 bits or 4 bits, are also possible.

また上記実施例においてはデータレジスタの構
成として190ビツトを採つたが、191ビツトの構成
にすれば(273、191)符号にも対応できる。ある
いは、データレジスタとして選択切替する情報ビ
ツト数の最大値分だけのビツト数をもつていれば
よい。
In the above embodiment, the data register has a 190-bit configuration, but a 191-bit configuration can also accommodate (273, 191) codes. Alternatively, it is sufficient to have the number of bits equal to the maximum number of information bits to be selectively switched as a data register.

また、上記の実施例では多数決判定用の閾値と
して17から9まで変化させる例について述べたが
本発明の主旨は17および9などの特定値に限定さ
れるものではない。また上の実施例では訂正が完
了し、ステータス信号63が発生しないと第5の
動作モードに入らなかつたが、タイミング制御回
路27の中にWAIT回路を内蔵して、CPUが希
望する時に第5の動作モードに入るようにしても
よい。
Further, in the above embodiment, an example was described in which the threshold value for majority decision is changed from 17 to 9, but the gist of the present invention is not limited to specific values such as 17 and 9. Furthermore, in the above embodiment, the fifth operation mode is not entered until the correction is completed and the status signal 63 is generated. It may be configured to enter the operating mode.

(発明の効果) 以上説明したように、本発明によれば、訂正す
べきデータの情報ビツト数を指定することがで
き、指定された情報ビツト数に応じて訂正動作、
および訂正後データの送出を行なうので、種々の
情報ビツト数の誤り訂正を行なうことができる。
(Effects of the Invention) As explained above, according to the present invention, it is possible to specify the number of information bits of data to be corrected, and the correction operation is performed according to the specified number of information bits.
Since the corrected data is then transmitted, it is possible to correct errors in various numbers of information bits.

本発明の日本の文字コード放送の受信機のみな
らず、その他の多数決符号復号回路にも応用でき
る。
The present invention can be applied not only to a receiver for Japanese character code broadcasting, but also to other majority code decoding circuits.

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

第1図は従来技術の回路図、第2図は本発明の
第1の実施例の回路図、第3図、第5図は本発明
の一実施例の動作を説明するためのフローチヤー
ト、第4図は本発明の一実施例の動作を説明する
ためのタイミング図、第6図、第7図はバツフア
メモリのマツピング図、第8図は本発明の第2の
実施例の回路図、第9図は本発明の第3の実施例
を示す回路図、第10図は本発明の第4の実施例
を示す回路図である。 1……CPUバスライン、2……出力ポート、
3……入力ポート、4……誤り訂正回路、5……
訂正前データ、6……訂正後データ、7……スタ
ート信号、8……ロード信号、9……コレクト信
号、10……レデイー信号、20……CPUのデ
ータバス、21……CPUのアドレスバス、22
……データバス制御回路、23……ローカルデー
タバス、24……アドレス切替回路、25……ア
ドレス生成回路、26……自動アドレス信号、2
7……タイミング制御回路、28……バス制御信
号、29……バツフアメモリ、30……データ転
送回路、31……シリアル受信データ、32……
フレーム同期がとられたことを示す信号、33…
…同期クロツク、34……データレジスタ、35
……訂正前データ、36……シンドロームレジス
タ、37……加算器、38……ロードゲート回
路、39……ロードゲート信号、40……シンド
ロームレジスタ信号、41……多数決回路、42
……閾値信号、43……閾値発生回路、44……
閾値クロツク、45……クリア信号、46……第
1のロード用クロツク信号、47……ロードエン
ド信号、48……第1の訂正用クロツク信号、4
9……第2のロード用クロツク信号、50……第
2の訂正用クロツク信号、51……コレクトゲー
ト回路、52……コレクトゲート信号、53……
誤り訂正信号、54……加算器、55……訂正後
データ、56……データ選択回路、57……デー
タ選択信号、58……クロツク信号、59……書
込みパルス、60……書込みパルス、61……垂
直帰線信号、もしくは垂直帰線消去信号に類似す
る信号、62……水平同期信号、もしくは水平帰
線消去信号、63……ステータス信号、64……
レジスタ、65……エラーステータス信号、6
6,67……アドレス更新信号、68……データ
リクエスト信号、69……短短縮ビツト数指定信
号、70,71,72……訂正完了信号、73…
…出力データ選択回路、74……出力データ選択
信号、75……訂正出力データ、76……送出用
クロツク信号、77……出力ゲート回路、78…
…出力ゲート信号、79……送出用クロツク信
号。
FIG. 1 is a circuit diagram of the prior art, FIG. 2 is a circuit diagram of a first embodiment of the present invention, and FIGS. 3 and 5 are flowcharts for explaining the operation of an embodiment of the present invention. FIG. 4 is a timing diagram for explaining the operation of one embodiment of the present invention, FIGS. 6 and 7 are mapping diagrams of buffer memory, and FIG. 8 is a circuit diagram of a second embodiment of the present invention. FIG. 9 is a circuit diagram showing a third embodiment of the invention, and FIG. 10 is a circuit diagram showing a fourth embodiment of the invention. 1...CPU bus line, 2...Output port,
3...Input port, 4...Error correction circuit, 5...
Data before correction, 6...Data after correction, 7...Start signal, 8...Load signal, 9...Collect signal, 10...Ready signal, 20...CPU data bus, 21...CPU address bus , 22
... Data bus control circuit, 23 ... Local data bus, 24 ... Address switching circuit, 25 ... Address generation circuit, 26 ... Automatic address signal, 2
7... Timing control circuit, 28... Bus control signal, 29... Buffer memory, 30... Data transfer circuit, 31... Serial reception data, 32...
A signal indicating that frame synchronization has been established, 33...
...Synchronization clock, 34...Data register, 35
... Data before correction, 36 ... Syndrome register, 37 ... Adder, 38 ... Load gate circuit, 39 ... Load gate signal, 40 ... Syndrome register signal, 41 ... Majority circuit, 42
...Threshold signal, 43...Threshold generation circuit, 44...
Threshold clock, 45... Clear signal, 46... First loading clock signal, 47... Load end signal, 48... First correction clock signal, 4
9...Second loading clock signal, 50...Second correction clock signal, 51...Collect gate circuit, 52...Collect gate signal, 53...
Error correction signal, 54...Adder, 55...Data after correction, 56...Data selection circuit, 57...Data selection signal, 58...Clock signal, 59...Write pulse, 60...Write pulse, 61 ... Vertical blanking signal or signal similar to vertical blanking signal, 62 ... Horizontal synchronization signal or horizontal blanking signal, 63 ... Status signal, 64 ...
Register, 65...Error status signal, 6
6, 67...address update signal, 68...data request signal, 69...shortening bit number designation signal, 70, 71, 72...correction completion signal, 73...
... Output data selection circuit, 74 ... Output data selection signal, 75 ... Correction output data, 76 ... Sending clock signal, 77 ... Output gate circuit, 78 ...
...Output gate signal, 79...Clock signal for sending out.

Claims (1)

【特許請求の範囲】 1 情報ビツトがkビツト、パリテイビツトがl
−kビツトつごうデータビツトがlビツトの符号
である(l、k)符号を、0を含む整数値である
nビツト短縮して情報ビツトとしてk−nビツト
とすることを指定するための指定入力手段と、 l−kビツトのシンドロームレジスタと、 複数個のビツト出力を有するkビツト以下のm
ビツトのデータレジスタと、 多数決回路と、 前記指定入力手段によつて指定されてk−nビ
ツトの訂正前情報ビツトデータを前記mビツトの
データレジスタにロードする手段と、 前記指定入力手段からの信号により、前記mビ
ツトのデータレジスタの複数のビツト出力のうち
いずれかひとつを選択して出力する出力データ選
択回路 とを含み、 差集合巡回符号を用いる多数決誤り訂正方式に
基ずいて符号データの誤りを訂正する 誤り訂正復号回路。 2 情報ビツトがkビツト、パリテイビツトがl
−kビツト、つごうデータビツトがlビツトの符
号である(l、k)符号を、0を含む正の整数値
であるnビツト短縮して、情報ビツトとしてk−
nビツトとすることを指定するための指定入力手
段と、 l−kビツトのシンドロームレジスタと、 kビツト以下のmビツトのデータレジスタと、 多数決回路と、 前記指定入力手段によつて指定されてk−nビ
ツトの訂正前情膜ビツトデータを前記mビツトの
データレジスタにロードする手段と、 訂正完了したデータを送出する際に、m−(k
−n)ビツトに相当する時間の間、前記mビツト
のデータレジスタの出力信号を禁止する手段と を含み、差集合巡回符号を用いる多数決誤り訂正
方式に基づいて符号データの誤りを訂正する誤り
訂正復号回路。 3 情報ビツトがkビツト、パリテイビツトがl
−kビツト、つごうデータビツトがlビツトの符
号である(l、k)符号を、0を含む整数値であ
るnビツト短縮して情報ビツトとしてk−nビツ
トとすることを指定するための指定入力手段と、 l−kビツトのシンドロームレジスタと、 複数の連続する複数ビツトの出力を有するkビ
ツト以下のmビツトのデータレジスタと、 多数決回路と、 前記指定入力手段によつて指定されてk−nビ
ツトの訂正前情報ビツトデータを前記mビツトの
データレジスタにロードする手段と、 前記指定入力手段からの信号により、前記mビ
ツトのデータレジスタの複数の連続する複数ビツ
トの出力のうち、いずれかひとつの連続する複数
ビツト出力を選択して出力する出力データ選択回
路と、 を含み 差集合巡回符号を用いる多数決誤り正訂方式に
基づいて符号データの誤りを訂正する 誤り訂正復号回路。 4 情報ビツトがkビツト、パリテイビツトがl
−kビツト、つごうデータビツトがlビツトの符
号である(l、k)符号を、0を含む正の整数で
あるnビツト短縮して、情報ビツトとしてk−n
ビツトとすることを指定するための指定入力手段
と、 l−kビツトのシンドロームレジスタと、 連続する複数ビツトの出力を有するkビツト以
下のmビツトのデータレジスタと、 多数決回路と、 前記指定入力手段によつて指定されて、k−n
ビツトの訂正前情報ビツトデータを前記mビツト
のデータレジスタにロードする手段と、 訂正完了したデータを送出する際に、m−(k
−n)ビツトに相当する時間の間、前記mビツト
のデータレジスタの出力信号を禁止する手段と、 を含み、差集合巡回符号を用いる多数決誤り訂正
方式に基づいて符号データの誤りを訂正する誤り
訂正復号回路。 5 l=273、k=191であることを特徴とする特
許請求の範囲第1項、第2項、第3項、あるいは
第4項記載の誤り訂正復号回路。
[Claims] 1 Information bits are k bits, parity bits are l
- Specification for specifying that the (l, k) code, which is a code in which k bits of data bits are l bits, is shortened by n bits, which is an integer value including 0, to k−n bits as information bits. m of less than k bits having an input means, a syndrome register of l-k bits, and a plurality of bit outputs;
a bit data register; a majority circuit; means for loading k-n bits of uncorrected information bit data designated by the designation input means into the m-bit data register; and a signal from the designation input means. and an output data selection circuit that selects and outputs one of the plurality of bit outputs of the m-bit data register, and corrects errors in code data based on a majority error correction method using a difference set cyclic code. An error correction decoding circuit that corrects 2 Information bits are k bits, parity bits are l
The (l,k) code, which is a code with l bits of data bits, is shortened by n bits, which is a positive integer value including 0, and is used as information bits.
a designation input means for designating n bits; a l-k bit syndrome register; an m-bit data register of k bits or less; a majority circuit; - means for loading uncorrected information bit data of n bits into the m bit data register, and m-(k
-n) means for inhibiting the output signal of the m-bit data register for a time corresponding to n bits; the error correction method corrects errors in code data based on a majority error correction method using a difference set cyclic code; decoding circuit. 3 Information bits are k bits, parity bits are l
- k bits, to specify that the (l, k) code, which is a code with l bits of data bits, is shortened by n bits, which is an integer value including 0, to make k-n bits as information bits. a designated input means; a syndrome register of lk bits; a data register of m bits less than or equal to k bits having a plurality of consecutive plural bit outputs; a majority circuit; - means for loading n-bit uncorrected information bit data into the m-bit data register; an output data selection circuit that selects and outputs one continuous multi-bit output; and an error correction decoding circuit that corrects errors in coded data based on a majority error correction method using a difference set cyclic code. 4 Information bits are k bits, parity bits are l
- k bits, the (l, k) code, which is a code with l bits of data bits, is shortened by n bits, which is a positive integer including 0, and becomes k-n information bits.
a designation input means for designating that the data is a bit, a syndrome register of l-k bits, a data register of m bits less than or equal to k bits and having an output of a plurality of consecutive bits, a majority circuit, and the designation input means. specified by k−n
means for loading uncorrected bit information bit data into the m-bit data register; and m-(k
-n) means for inhibiting the output signal of the m-bit data register for a time corresponding to n bits; Correction decoding circuit. 5. The error correction decoding circuit according to claim 1, 2, 3, or 4, characterized in that l=273 and k=191.
JP59060915A 1984-03-30 1984-03-30 Error correcting and decoding circuit Granted JPS60206227A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP59060915A JPS60206227A (en) 1984-03-30 1984-03-30 Error correcting and decoding circuit
CA000477541A CA1225746A (en) 1984-03-30 1985-03-26 Error correction system for difference set cyclic code in a teletext system
US06/716,044 US4675868A (en) 1984-03-30 1985-03-26 Error correction system for difference set cyclic code in a teletext system
KR1019850002150A KR910001071B1 (en) 1984-03-30 1985-03-30 Error correction system of telext system using cyclic code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59060915A JPS60206227A (en) 1984-03-30 1984-03-30 Error correcting and decoding circuit

Publications (2)

Publication Number Publication Date
JPS60206227A JPS60206227A (en) 1985-10-17
JPH0155788B2 true JPH0155788B2 (en) 1989-11-27

Family

ID=13156150

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59060915A Granted JPS60206227A (en) 1984-03-30 1984-03-30 Error correcting and decoding circuit

Country Status (1)

Country Link
JP (1) JPS60206227A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4712215A (en) * 1985-12-02 1987-12-08 Advanced Micro Devices, Inc. CRC calculation machine for separate calculation of checkbits for the header packet and data packet
JP2573180B2 (en) * 1986-04-22 1997-01-22 日本放送協会 Error correction decoding device

Also Published As

Publication number Publication date
JPS60206227A (en) 1985-10-17

Similar Documents

Publication Publication Date Title
US4330858A (en) Time domain supervisory channel for data terminal equipments
AU669746B2 (en) Method and device for detection and correction of errors in ATM cell headers
US4320511A (en) Method and device for conversion between a cyclic and a general code sequence by the use of dummy zero bit series
US4672612A (en) Error correction system in a teletext system
US4675868A (en) Error correction system for difference set cyclic code in a teletext system
US7159083B2 (en) Programmable transition state machine
JPH0155788B2 (en)
EP0818900B1 (en) Digital signal multiplexing apparatus
EP0176099B1 (en) Method and apparatus for error correction
JPH0155787B2 (en)
US4885750A (en) Method and apparatus for error correction
KR900000489B1 (en) Error correction system of tele text system
JPH0546131B2 (en)
JPH0155786B2 (en)
JPS62141875A (en) Preventing system for propagation of decoding error
JPH0155789B2 (en)
JPH0566778B2 (en)
JPS5821964A (en) Facsimile communication system
JPH0511474B2 (en)
JPS63189085A (en) Detection device for correcting error
JPS6020691A (en) Decoder circuit for character broadcasting receiver
JPH0522266A (en) Synchronization converter
JPS63161729A (en) Error correction circuit
JPS6229930B2 (en)
JPS6189740A (en) Serial data transmission and reception device

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term