JP4646944B2 - Amplitude judgment value setting method - Google Patents

Amplitude judgment value setting method Download PDF

Info

Publication number
JP4646944B2
JP4646944B2 JP2007107384A JP2007107384A JP4646944B2 JP 4646944 B2 JP4646944 B2 JP 4646944B2 JP 2007107384 A JP2007107384 A JP 2007107384A JP 2007107384 A JP2007107384 A JP 2007107384A JP 4646944 B2 JP4646944 B2 JP 4646944B2
Authority
JP
Japan
Prior art keywords
data
amplitude
signal
value
circuit
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 - Fee Related
Application number
JP2007107384A
Other languages
Japanese (ja)
Other versions
JP2007235987A (en
Inventor
章宏 鈴木
恵一 葛本
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.)
Panasonic Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
Matsushita Electric Industrial 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 Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP2007107384A priority Critical patent/JP4646944B2/en
Publication of JP2007235987A publication Critical patent/JP2007235987A/en
Application granted granted Critical
Publication of JP4646944B2 publication Critical patent/JP4646944B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Television Systems (AREA)
  • Dc Digital Transmission (AREA)

Description

本発明は、振幅判定値設定方法に関し、特に、映像信号を正しい値に2値化することのできるスライスレベルを算出する振幅判定値設定方法に関する。   The present invention relates to an amplitude determination value setting method, and more particularly to an amplitude determination value setting method for calculating a slice level at which a video signal can be binarized to a correct value.

シリアル伝送を用いてデータを伝送する方式として、映像信号の垂直帰線期間に文字放送のデータを伝送する文字放送がある。   As a method for transmitting data using serial transmission, there is a character broadcast that transmits character broadcast data during a vertical blanking period of a video signal.

文字放送シリアルデータが重畳されたアナログ映像信号は、現在、全世界の各地域において伝送されている。文字放送には、文字放送のデータが重畳されている重畳ラインや、伝送クロックの周波数が異なる複数の種類のものがあり、各地域で異なった種類のものが用いられている。   Analog video signals on which teletext serial data is superimposed are currently transmitted in various regions of the world. There are several types of teletext broadcasting, such as a superimposed line on which teletext data is superimposed and a plurality of types having different transmission clock frequencies, and different types are used in each region.

文字放送のアナログ映像信号(図11、S140参照)は、水平帰線期間の始まりを示す水平同期信号Aと、カラー再生のためのカラーバースト信号Bと、基準波形であり、信号を2値判定する際に用いるスライスレベルを設定するためのクロック・ラン・イン(以下、CRIと称す)信号Cと、文字放送の種類を示すフレーミングコード信号Dと、伝送する文字放送のデータを含んだテキストデータ信号Eと、を有する信号である。以下、CRI信号Cに基づきスライスレベルの設定を行う期間をCRI検出期間、フレーミングコード信号Dを受信する期間をフレーミングコード期間、テキストデータ信号Eを受信する期間をテキストデータ期間、と称す。   The analog video signal for teletext (see S140 in FIG. 11) is a horizontal synchronization signal A indicating the start of the horizontal blanking period, a color burst signal B for color reproduction, and a reference waveform, and the signal is binary-determined. Text data including a clock run-in (hereinafter referred to as CRI) signal C, a framing code signal D indicating the type of teletext, and teletext data to be transmitted. And a signal E. Hereinafter, a period in which the slice level is set based on the CRI signal C is referred to as a CRI detection period, a period in which the framing code signal D is received is referred to as a framing code period, and a period in which the text data signal E is received is referred to as a text data period.

また、文字放送シリアルデータのデータ単位は8ビットであり、このうちの1ビットは、デコードエラーの有無を判断するために付加されるパリティビットである。文字放送では、デコードしたデータの各データ単位に「1」が奇数ビット含まれるか否かに基づいてデコードエラーの有無の判定を行う方式を採用しているので、各8ビットのうち奇数ビットが「1」となるデータを伝送している。このため、実際のデータが「1」を偶数ビットしか含まない場合は、パリティビットを「1」とすることにより、各データ単位の奇数ビットが「1」となるようにしている。   The data unit of the teletext serial data is 8 bits, and 1 bit is a parity bit added to determine the presence or absence of a decoding error. In the teletext, a method of determining whether or not there is a decoding error based on whether or not “1” is an odd number is included in each data unit of the decoded data. Data “1” is transmitted. For this reason, when the actual data includes only even bits including “1”, the parity bit is set to “1” so that the odd bits of each data unit become “1”.

このようなアナログ映像信号に重畳された文字を表示する際には、まず、受信したアナログ映像信号をデータスライス装置により2値化し、伝送クロックで文字放送のデータを抜き取ることにより、文字放送シリアルデータを抽出している。   When displaying characters superimposed on such an analog video signal, first, the received analog video signal is binarized by a data slicing device, and the text broadcast data is extracted with a transmission clock, thereby providing the text broadcast serial data. Is extracted.

以下、図10を参照しながら、従来のデータスライス装置の構成および動作について説明する。
図10に示すように、従来のデータスライス装置500は、映像信号入力端子110を介して入力される、文字放送シリアルデータが重畳されたアナログ映像信号S110を、ディジタル映像信号S120に変換するA/D変換器120と、ディジタル映像信号S120に基づいて、CRI検出期間であることを示すCRI検出範囲信号S312を生成するCRI検出部130と、ディジタル映像信号S120よりノイズを除去し、ディジタル映像信号S140を出力するローパスフィルタ(以下、LPFと称す)140と、CRI検出期間に入力されるディジタル映像信号S140に基づきスライスレベルを設定するスライスレベル算出部510と、スライスレベル算出部510で設定したスライスレベルを用いて、ディジタル映像信号S140を2値化するデータスライス部220と、2値化したシリアルのデータをパラレルデータに変換してデコード処理を行い、デコードデータS230を映像信号出力端子190よりデータスライス装置500外部に出力するデコード回路230と、を有する。
Hereinafter, the configuration and operation of a conventional data slicer will be described with reference to FIG.
As shown in FIG. 10, a conventional data slicing device 500 converts an analog video signal S110 superimposed with teletext serial data input via a video signal input terminal 110 into a digital video signal S120. Based on the D converter 120 and the digital video signal S120, the CRI detection unit 130 that generates the CRI detection range signal S312 indicating the CRI detection period, and the digital video signal S140 remove noise from the digital video signal S120. , A slice level calculation unit 510 that sets a slice level based on the digital video signal S140 input during the CRI detection period, and a slice level set by the slice level calculation unit 510 Using the digital video signal S A data slicing unit 220 that binarizes 40 and a binarized serial data converted into parallel data for decoding, and decoding data S230 is output from the video signal output terminal 190 to the outside of the data slicing device 500 Circuit 230.

CRI検出部130は、ディジタル映像信号S120より、垂直同期信号S131aと水平同期信号S131bとを分離する同期分離回路131と、垂直同期信号S131aおよび水平同期信号S131bに基づいて、CRI信号Cの検出期間である所定のラインおよび位置を示すCRI検出範囲信号S132を出力するCRI検出範囲信号生成回路132と、を有する。   The CRI detection unit 130 detects the CRI signal C based on the synchronization separation circuit 131 that separates the vertical synchronization signal S131a and the horizontal synchronization signal S131b from the digital video signal S120, and the vertical synchronization signal S131a and the horizontal synchronization signal S131b. A CRI detection range signal generation circuit 132 that outputs a CRI detection range signal S132 indicating a predetermined line and position.

スライスレベル算出部510は、CRI検出期間にディジタル映像信号S140より立ち下がりを検出すると、立ち下がり検出パルスS151を出力する立下がり検出回路151と、立ち下がり検出パルスS151よりディジタル映像信号S140の周波数を算出し、周波数データS152を出力する周波数算出回路152と、この周波数データS152を、予め保持している文字放送方式のCRI信号Cの周波数データと比較し、所定の文字放送方式に対応した周波数データS152が出力される期間に、周波数判定ゲートパルスS153を出力する周波数判定回路153と、立ち下り検出パルスS151より所定の文字放送方式の立ち下がりに対応したパルスを抽出し、周波数判定パルスS154を出力するCRI判定回路154と、を有する。また、スライスレベル算出部510は、CRI検出期間にディジタル映像信号S140の振幅の最大値と最小値とを検索し、最大値検索データS155aおよび最小値検索データS155bを出力する最大/最小検索回路155と、周波数判定パルスS154をロードパルスとして、最大値検索データS155aと最小値検索データS155bとからディジタル映像信号S140の振幅の平均値を算出し、これをスライスレベルデータS511としてデータスライス部220に出力する平均算出回路511と、を有する。   When the slice level calculation unit 510 detects a falling edge from the digital video signal S140 during the CRI detection period, the slice level calculation unit 510 outputs the falling detection pulse S151 and the frequency of the digital video signal S140 from the falling detection pulse S151. The frequency calculation circuit 152 that calculates and outputs the frequency data S152, and compares the frequency data S152 with the frequency data of the CRI signal C of the teletext system that is held in advance, and the frequency data corresponding to the predetermined teletext system During a period in which S152 is output, a frequency determination circuit 153 that outputs a frequency determination gate pulse S153, and a pulse corresponding to the falling of a predetermined teletext system is extracted from the falling detection pulse S151, and a frequency determination pulse S154 is output. CRI determination circuit 154 to To. Further, the slice level calculation unit 510 searches for the maximum value and the minimum value of the amplitude of the digital video signal S140 during the CRI detection period, and outputs the maximum value search data S155a and the minimum value search data S155b. Then, using the frequency determination pulse S154 as a load pulse, the average value of the amplitude of the digital video signal S140 is calculated from the maximum value search data S155a and the minimum value search data S155b and is output to the data slice unit 220 as slice level data S511. And an average calculation circuit 511.

データスライス部220は、スライスレベルデータS511を用いて閾値判定することにより、ディジタル映像信号S140を2値化し、2値化データS221を抜き取り回路222に出力する2値化回路221と、抜き取りパルス生成回路162が生成する抜き取りパルスS162のタイミングで2値化データS221から文字放送シリアルデータを抜き取り、抜き取りシリアルデータS222を出力する抜き取り回路222と、を有する。   The data slicer 220 binarizes the digital video signal S140 by performing threshold determination using the slice level data S511, and outputs a binarized data S221 to the sampling circuit 222. A sampling circuit 222 that extracts text broadcast serial data from the binarized data S221 at the timing of the extraction pulse S162 generated by the circuit 162 and outputs the extracted serial data S222.

次に、以上のように構成された従来のデータスライス装置500における動作について、図面を参照しながら説明する。
従来のデータスライス装置500の動作を示すタイミング図を図11に示す。図11において、図10と同一または相当する部分には同一符号を付してある。また、Aは水平同期信号、Bはカラーバースト信号、CはCRI信号、Dはフレーミングコード信号、Eはテキストデータ信号、T31〜T36はディジタル映像信号S140が変化した時刻である。
Next, the operation of the conventional data slicing apparatus 500 configured as described above will be described with reference to the drawings.
A timing chart showing the operation of the conventional data slicing apparatus 500 is shown in FIG. In FIG. 11, the same reference numerals are given to the same or corresponding parts as in FIG. 10. A is a horizontal synchronizing signal, B is a color burst signal, C is a CRI signal, D is a framing code signal, E is a text data signal, and T31 to T36 are times when the digital video signal S140 changes.

文字放送シリアルデータが重畳されたアナログ映像信号S110が映像信号入力端子110を介して入力されると、A/D変換器120はサンプリングクロックfs(MHz)でサンプリングしたアナログ映像信号S110をディジタル信号に変換し、ディジタル映像信号S120をCRI検出部130とLPF140とに出力する。すると、LPF140は、ディジタル映像信号S120よりノイズを除去したディジタル映像信号S140を、スライスレベル算出部510と、データスライス部220とに出力する。図11には、アナログ映像信号S110をA/D変換し、ノイズを除去したディジタル映像信号S140の例を示している。また、図11において、ディジタル映像信号S140上に示した黒丸は、アナログ映像信号S110をサンプリングクロックfsでディジタル映像信号S120(S140)に変換した信号である。   When the analog video signal S110 superimposed with the teletext serial data is input via the video signal input terminal 110, the A / D converter 120 converts the analog video signal S110 sampled with the sampling clock fs (MHz) into a digital signal. Then, the digital video signal S120 is output to the CRI detection unit 130 and the LPF 140. Then, the LPF 140 outputs the digital video signal S140 from which noise has been removed from the digital video signal S120 to the slice level calculation unit 510 and the data slice unit 220. FIG. 11 shows an example of a digital video signal S140 obtained by A / D converting the analog video signal S110 and removing noise. In FIG. 11, the black circles shown on the digital video signal S140 are signals obtained by converting the analog video signal S110 into the digital video signal S120 (S140) with the sampling clock fs.

時刻T31において、水平同期信号Aと垂直同期信号とを含んだディジタル映像信号S120がCRI検出部130に入力されるので、同期分離回路131は、ディジタル映像信号S120から垂直同期信号S131aと水平同期信号S131bとを分離する。   At time T31, since the digital video signal S120 including the horizontal synchronization signal A and the vertical synchronization signal is input to the CRI detection unit 130, the synchronization separation circuit 131 receives the vertical synchronization signal S131a and the horizontal synchronization signal from the digital video signal S120. S131b is separated.

次に、CRI検出範囲信号生成回路132は、垂直同期信号S131aおよび水平同期信号S131bに基づいてCRI信号Cの開始位置(時刻T32)および終了位置を求め、CRI検出期間に、CRI検出範囲信号S132を立ち下がり検出回路151と最大/最小検索回路155とに出力する。   Next, the CRI detection range signal generation circuit 132 obtains the start position (time T32) and end position of the CRI signal C based on the vertical synchronization signal S131a and the horizontal synchronization signal S131b, and during the CRI detection period, the CRI detection range signal S132. Are output to the falling edge detection circuit 151 and the maximum / minimum search circuit 155.

CRI検出範囲信号S132が出力されている期間のうちの所定の期間、スライスレベル算出部510には、ディジタル映像信号S140としてCRI信号Cが入力されるので、スライスレベル算出部510は、CRI検出範囲信号S132が出力されている期間、CRI信号Cに基づいてスライスレベルの算出処理を行う。すなわち、CRI検出範囲信号S132がスライスレベル算出部510に入力されている間、立下り検出回路151はディジタル映像信号S140の位相の変化を判定する。また、最大/最小検索回路155は、ディジタル映像信号S140の最大値および最小値を検索し、最大値検索データS155aと最小値検索データS155bとを出力する。   Since the CRI signal C is input as the digital video signal S140 to the slice level calculation unit 510 during a predetermined period of the period during which the CRI detection range signal S132 is output, the slice level calculation unit 510 includes the CRI detection range 510. During the period in which the signal S132 is output, slice level calculation processing is performed based on the CRI signal C. That is, while the CRI detection range signal S132 is input to the slice level calculation unit 510, the falling detection circuit 151 determines a change in the phase of the digital video signal S140. The maximum / minimum search circuit 155 searches for the maximum and minimum values of the digital video signal S140, and outputs maximum value search data S155a and minimum value search data S155b.

時刻T33において、立下り検出回路151は、CRI信号Cの最初の立ち下がりを検出し、立ち下り検出パルスS151を周波数算出回路152とCRI判定回路154とに出力する。   At time T33, the falling detection circuit 151 detects the first falling of the CRI signal C, and outputs a falling detection pulse S151 to the frequency calculation circuit 152 and the CRI determination circuit 154.

時刻T34において、立下り検出回路151は、CRI信号Cの2番目の立ち下がりを検出し、立ち下り検出パルスS151を周波数算出回路152とCRI判定回路154とに出力する。   At time T34, the falling detection circuit 151 detects the second falling of the CRI signal C, and outputs a falling detection pulse S151 to the frequency calculation circuit 152 and the CRI determination circuit 154.

すると、周波数算出回路152は、時刻T33および時刻T34において検出した立ち下り検出パルスS151より、CRI信号Cの周波数を算出し、周波数データS152を周波数判定回路153に出力する。周波数判定回路153は、この周波数データS152に基づいて、立下り検出回路151において検出した立ち下がりが、所定の文字放送方式に対応した信号であるか判定する。例えば、ノイズによる立ち下がりが検出された場合、周波数データS152は文字放送方式とは異なる周波数となっているので、周波数判定回路153は、所定の文字放送方式に対応していない周波数データであると判断する。周波数データS152が所定の文字放送方式の周波数である場合、周波数判定回路153は、周波数判定ゲートパルスS153をCRI判定回路154に出力する。   Then, the frequency calculation circuit 152 calculates the frequency of the CRI signal C from the falling detection pulses S151 detected at time T33 and time T34, and outputs the frequency data S152 to the frequency determination circuit 153. Based on the frequency data S152, the frequency determination circuit 153 determines whether the falling detected by the falling detection circuit 151 is a signal corresponding to a predetermined text broadcasting system. For example, when a falling edge due to noise is detected, the frequency data S152 has a frequency different from that of the teletext system, so the frequency determination circuit 153 is frequency data that does not correspond to a predetermined teletext system. to decide. When the frequency data S152 is a frequency of a predetermined teletext system, the frequency determination circuit 153 outputs a frequency determination gate pulse S153 to the CRI determination circuit 154.

次に、この周波数判定ゲートパルスS153に基づいて、CRI判定回路154は、立ち下り検出パルスS151が文字放送方式に対応したパルスであるか判定する。周波数判定ゲートパルスS153が出力されている期間の立ち下り検出パルスS151が、文字放送のCRI信号Cに対応しているので、該当するパルスを抽出し、周波数判定パルスS154を平均算出回路511に出力する。   Next, based on the frequency determination gate pulse S153, the CRI determination circuit 154 determines whether the falling detection pulse S151 is a pulse corresponding to the text broadcasting system. Since the falling detection pulse S151 during the period in which the frequency determination gate pulse S153 is output corresponds to the CRI signal C of the teletext, the corresponding pulse is extracted and the frequency determination pulse S154 is output to the average calculation circuit 511. To do.

平均算出回路511は、周波数判定パルスS154をロードパルスとして、最大値検索データS155aと最小値検索データS155bとをサンプリングし、CRI信号Cの平均値を算出する。そして、算出した平均値をスライスレベルデータS511として、データスライス部220に出力する。ここで、スライスレベルデータS511に基づき設定したスライスレベルSLV10は、時刻T35以降にフレーミングコード信号Dおよびテキストデータ信号Eを2値化する際に用いることができる、適当なスライスレベルとなっている。   The average calculation circuit 511 samples the maximum value search data S155a and the minimum value search data S155b using the frequency determination pulse S154 as a load pulse, and calculates the average value of the CRI signal C. The calculated average value is output to the data slicing unit 220 as slice level data S511. Here, the slice level SLV10 set based on the slice level data S511 is an appropriate slice level that can be used when the framing code signal D and the text data signal E are binarized after the time T35.

時刻T35において、フレーミングコード信号Dを含んだディジタル映像信号S140がデータスライス部220に入力されると、2値化回路221は、スライスレベルデータS511で閾値判定することにより、ディジタル映像信号S140を「0」または「1」に2値化し、2値化データS221を生成する。そして、抜き取り回路222において、抜き取りパルス生成回路162が出力する抜き取りパルスS162で、2値化データS221から文字放送シリアルデータを抜き取り、抜き取りシリアルデータS222を出力する。デコード回路230は、この抜き取りシリアルデータS222をパラレルデータに変換し、フレーミングコードを取得する。   When the digital video signal S140 including the framing code signal D is input to the data slicing unit 220 at time T35, the binarization circuit 221 determines the threshold value based on the slice level data S511, thereby converting the digital video signal S140 into “ The data is binarized to “0” or “1” to generate binarized data S221. Then, the extraction circuit 222 extracts the character broadcast serial data from the binarized data S221 by the extraction pulse S162 output from the extraction pulse generation circuit 162, and outputs the extraction serial data S222. The decoding circuit 230 converts the extracted serial data S222 into parallel data, and acquires a framing code.

時間T36において、テキストデータ信号Eを含んだディジタル映像信号S140がデータスライス部220に入力されると、フレーミングコード信号Dと同様に、2値化回路221は、スライスレベルデータS511を用いてディジタル映像信号S140を2値化することにより、2値化データS221を生成する。そして、抜き取り回路222において、抜き取りパルスS162で、2値化データS221から文字放送シリアルデータを抜き取り、抜き取りシリアルデータS222を、デコード回路230に出力する。デコード回路230は、この抜き取りシリアルデータS222をパラレルデータに変換し、フレーミングコードに示された文字放送の種類に応じたデコード処理を行い、デコードデータS230を映像信号出力端子190より出力する。
映像信号出力端子190より出力されたデコードデータは、図示しない表示回路に転送され、文字として表示される。
特開2001−313912号公報
When the digital video signal S140 including the text data signal E is input to the data slicing unit 220 at time T36, the binarization circuit 221 uses the slice level data S511 to generate a digital video signal as with the framing code signal D. By binarizing the signal S140, binary data S221 is generated. Then, the extraction circuit 222 extracts the character broadcast serial data from the binarized data S221 by the extraction pulse S162, and outputs the extraction serial data S222 to the decoding circuit 230. The decoding circuit 230 converts the extracted serial data S222 into parallel data, performs a decoding process according to the type of text broadcast indicated in the framing code, and outputs the decoded data S230 from the video signal output terminal 190.
The decoded data output from the video signal output terminal 190 is transferred to a display circuit (not shown) and displayed as characters.
JP 2001-313912 A

しかしながら、映像信号入力端子110より入力されるアナログ映像信号S110は、伝送系における群遅延及び電界強度の低下などによる歪みを有することがある。従来のデータスライス装置は、この歪みによるノイズの影響を受けてしまうので、スライスレベル算出部510において算出されるスライスレベルデータS511の精度が低下し、最適なスライスレベルデータS511を算出することができない。その結果、2値化回路221はディジタル映像信号S140を誤った値に2値化してしまうので、2値化データS221のデコード処理において、デコードエラーの発生率が高くなってしまう。   However, the analog video signal S110 input from the video signal input terminal 110 may have distortion due to a group delay and a decrease in electric field strength in the transmission system. Since the conventional data slicing apparatus is affected by noise due to this distortion, the accuracy of the slice level data S511 calculated by the slice level calculation unit 510 is reduced, and the optimum slice level data S511 cannot be calculated. . As a result, the binarization circuit 221 binarizes the digital video signal S140 into an incorrect value, so that a decoding error occurrence rate increases in the decoding process of the binarized data S221.

以下に、歪んだアナログ映像信号S110が入力された場合の、従来のデータスライス装置500の動作を、図面を参照しながら説明する。
図12に、群遅延及び電界強度の低下などにより歪んだアナログ映像信号S110が入力された場合の、従来のデータスライス装置500の動作を示す。図12において、図11と同一または相当する部分には同一符号を付してある。また、T41〜T46はディジタル映像信号が変化した時刻である。
Hereinafter, the operation of the conventional data slicing device 500 when the distorted analog video signal S110 is input will be described with reference to the drawings.
FIG. 12 shows the operation of the conventional data slicing device 500 when an analog video signal S110 distorted due to group delay, a decrease in electric field strength, or the like is input. In FIG. 12, the same or corresponding parts as in FIG. T41 to T46 are times when the digital video signal changes.

アナログ映像信号S110が映像信号入力端子110を介して入力されると、A/D変換器120はアナログ映像信号S110をディジタル信号に変換し、ディジタル映像信号S120をCRI検出部130とLPF140とに出力する。すると、LPF140は、ディジタル映像信号S120よりノイズを除去したディジタル映像信号S140を、スライスレベル算出部510とデータスライス部220とに出力する。図12には、歪んだアナログ映像信号S110をA/D変換し、ノイズを除去したディジタル映像信号S140の例を示している。また、C’は、CRI検出範囲信号S132が出力されている期間に生じる、LPF140で除去できないノイズである。LPF140によってノイズ除去を行っても、ディジタル映像信号S140が歪んでいるのは、LPF140においても除去できないノイズの影響によるものである。また、図12において、ディジタル映像信号S140上に示した黒丸は、アナログ映像信号S110をサンプリングクロックfsでディジタル映像信号S120(S140)に変換した信号である。   When the analog video signal S110 is input via the video signal input terminal 110, the A / D converter 120 converts the analog video signal S110 into a digital signal and outputs the digital video signal S120 to the CRI detection unit 130 and the LPF 140. To do. Then, the LPF 140 outputs the digital video signal S140 from which noise has been removed from the digital video signal S120, to the slice level calculation unit 510 and the data slice unit 220. FIG. 12 shows an example of a digital video signal S140 obtained by A / D converting the distorted analog video signal S110 and removing noise. C ′ is noise that cannot be removed by the LPF 140 and is generated during the period when the CRI detection range signal S132 is output. Even if noise is removed by the LPF 140, the digital video signal S140 is distorted due to the influence of noise that cannot be removed by the LPF 140. In FIG. 12, the black circles shown on the digital video signal S140 are signals obtained by converting the analog video signal S110 into the digital video signal S120 (S140) with the sampling clock fs.

時刻T41において、水平同期信号Aと垂直同期信号とを含んだディジタル映像信号S120がCRI検出部130に入力されるので、同期分離回路131は、ディジタル映像信号S120から垂直同期信号S131aと水平同期信号S131bとを分離する。   At time T41, since the digital video signal S120 including the horizontal synchronization signal A and the vertical synchronization signal is input to the CRI detection unit 130, the synchronization separation circuit 131 receives the vertical synchronization signal S131a and the horizontal synchronization signal from the digital video signal S120. S131b is separated.

時刻T42において、CRI検出範囲信号生成回路132は、垂直同期信号S131aおよび水平同期信号S131bに基づいてCRI信号Cの開始位置および終了位置を求め、CRI検出期間に、CRI検出範囲信号S132を出力する。   At time T42, the CRI detection range signal generation circuit 132 obtains the start position and end position of the CRI signal C based on the vertical synchronization signal S131a and the horizontal synchronization signal S131b, and outputs the CRI detection range signal S132 during the CRI detection period. .

CRI検出範囲信号S132が入力されている間、スライスレベル算出部510において、CRI信号Cに基づきスライスレベルの算出を行う。すなわち、CRI検出範囲信号S132がスライスレベル算出部510に入力されている間、立下り検出回路151はディジタル映像信号S140の位相の変化を判定する。また、最大/最小検索回路155は、ディジタル映像信号S140の最大値および最小値を検索する。   While the CRI detection range signal S132 is input, the slice level calculation unit 510 calculates the slice level based on the CRI signal C. That is, while the CRI detection range signal S132 is input to the slice level calculation unit 510, the falling detection circuit 151 determines a change in the phase of the digital video signal S140. The maximum / minimum search circuit 155 searches for the maximum value and the minimum value of the digital video signal S140.

時刻T43において、立下り検出回路151は、ディジタル映像信号S140のノイズC’の立ち下がりをCRI信号Cの立ち下がりとして誤検出し、立ち下り検出パルスS151を生成する。   At time T43, the falling detection circuit 151 erroneously detects the falling of the noise C ′ of the digital video signal S140 as the falling of the CRI signal C, and generates a falling detection pulse S151.

また、時刻T44においても、立下り検出回路151は、ディジタル映像信号S140のノイズC’の立ち下がりをCRI信号Cの立ち下がりとして誤検出し、立ち下り検出パルスS151を生成する。   Also at time T44, the falling detection circuit 151 erroneously detects the falling of the noise C ′ of the digital video signal S140 as the falling of the CRI signal C, and generates a falling detection pulse S151.

すると、周波数算出回路152は、時刻T43および時刻T44において検出した立ち下り検出パルスより、ディジタル映像信号S140の周波数を算出し、周波数データS152を出力する。周波数判定回路153は、この周波数データS152に基づいて、立下り検出回路151において検出した立ち下がりが、所定の文字放送方式に対応した信号であるか判定する。図12に示したディジタル映像信号140のように、ノイズC’の立ち下がりの間隔がCRI信号Cの立ち下がりの間隔と一致している場合、周波数判定回路153は、ノイズC’の周波数を所定の文字放送方式に対応した周波数であると誤判定してしまい、周波数判定ゲートパルスS153をCRI判定回路154に出力する。さらに、この周波数判定ゲートパルスS153に基づいて、CRI判定回路154は、立ち下り検出パルスS151が文字放送に対応したパルスであると誤判定し、周波数判定パルスS154を出力する。   Then, the frequency calculation circuit 152 calculates the frequency of the digital video signal S140 from the falling detection pulses detected at time T43 and time T44, and outputs frequency data S152. Based on the frequency data S152, the frequency determination circuit 153 determines whether the falling detected by the falling detection circuit 151 is a signal corresponding to a predetermined text broadcasting system. When the noise C ′ falling interval coincides with the CRI signal C falling interval as in the digital video signal 140 shown in FIG. Is erroneously determined to be a frequency corresponding to the teletext system, and the frequency determination gate pulse S153 is output to the CRI determination circuit 154. Further, based on the frequency determination gate pulse S153, the CRI determination circuit 154 erroneously determines that the falling detection pulse S151 is a pulse corresponding to text broadcasting, and outputs the frequency determination pulse S154.

平均算出回路511は、この周波数判定パルスS154をロードパルスとして最大値検索データS155aと最小値検索データS155bとをサンプリングし、CRI信号CのノイズC’の平均値を算出する。そして、算出した平均値をスライスレベルデータS511として、データスライス部220に出力する。ノイズC’を用いて算出したスライスレベルデータS511に基づいて設定したスライスレベルSLV11は、歪みのないCRI信号Cを用いて設定したスライスレベルSLV10より低いレベルとなる。   The average calculation circuit 511 samples the maximum value search data S155a and the minimum value search data S155b using the frequency determination pulse S154 as a load pulse, and calculates the average value of the noise C ′ of the CRI signal C. The calculated average value is output to the data slicing unit 220 as slice level data S511. The slice level SLV11 set based on the slice level data S511 calculated using the noise C ′ is lower than the slice level SLV10 set using the CRI signal C without distortion.

時刻T45および時刻T46において、CRI信号Cが検出される。立下り検出回路151は、時刻T45においてCRI信号Cの最初の立ち下がりを、時刻T46においてCRI信号Cの2番目の立ち下がりを検出し、立ち下り検出パルスS151を出力する。また、最大/最小検索回路155は、ディジタル映像信号S140の最大値および最小値を検索し、最大値検索データS155aと最小値検索データS155bとを出力する。ここで、図12に示したディジタル映像信号S140は、CRI信号Cの最小値よりノイズC’の最小値が小さいので、最小値検索データS155bはCRI信号Cによって更新されることなく、ノイズC’の最小値が継続して出力される。   The CRI signal C is detected at time T45 and time T46. The fall detection circuit 151 detects the first fall of the CRI signal C at time T45, the second fall of the CRI signal C at time T46, and outputs a fall detection pulse S151. The maximum / minimum search circuit 155 searches for the maximum and minimum values of the digital video signal S140, and outputs maximum value search data S155a and minimum value search data S155b. Here, since the minimum value of the noise C ′ is smaller than the minimum value of the CRI signal C in the digital video signal S140 shown in FIG. 12, the minimum value search data S155b is not updated by the CRI signal C, and the noise C ′. The minimum value of is continuously output.

時刻T45および時刻T46に検出した立ち下り検出パルスにより周波数算出回路152が算出した周波数は、文字放送方式に対応した周波数であるので、周波数判定パルスS154が平均算出回路511に入力される。平均算出回路511は、この周波数判定パルスS154をロードパルスとして、最大値検索データS155aと最小値検索データS155bとをサンプリングし、ディジタル映像信号S140の平均値を算出する。そして、算出した平均値をスライスレベルデータS511として、データスライス部220に出力する。   Since the frequency calculated by the frequency calculation circuit 152 using the falling detection pulses detected at time T45 and time T46 is a frequency corresponding to the text broadcasting system, the frequency determination pulse S154 is input to the average calculation circuit 511. The average calculation circuit 511 samples the maximum value search data S155a and the minimum value search data S155b using the frequency determination pulse S154 as a load pulse, and calculates an average value of the digital video signal S140. The calculated average value is output to the data slicing unit 220 as slice level data S511.

ところが、最小値検索データS155bはノイズC’の最小値であるので、スライスレベルデータS511に基づいて設定したスライスレベルSLV12は、最適なレベルより低いものとなってしまう。その結果、2値化回路221においては、最適なレベルより低い値のスライスレベルデータを用いて2値化するので、フレーミングコード信号Dおよびテキストデータ信号Eを誤った値に2値化してしまう可能性がある。このため、2値化データS221を抜き取りパルスS162で抜き取った抜き取りシリアルデータS222を、デコード回路230においてデコード処理するとデコードエラーが発生する可能性がある。   However, since the minimum value search data S155b is the minimum value of the noise C ′, the slice level SLV12 set based on the slice level data S511 is lower than the optimum level. As a result, the binarization circuit 221 performs binarization using slice level data having a value lower than the optimum level, so that the framing code signal D and the text data signal E may be binarized to incorrect values. There is sex. For this reason, when the decoding circuit 230 decodes the extracted serial data S222 obtained by extracting the binarized data S221 with the extraction pulse S162, a decoding error may occur.

また、スライスレベルの算出処理を行うのが、CRI検出期間内のみであるため、CRI信号C以降のディジタル映像信号S140の信号形状が変化した場合、スライスレベルデータが不適切なものとなってしまう。その結果、2値化回路221において誤った値に2値化してしまうので、デコードエラーの発生確率が高くなる。   Further, since the slice level calculation process is performed only within the CRI detection period, when the signal shape of the digital video signal S140 after the CRI signal C changes, the slice level data becomes inappropriate. . As a result, since the binarization circuit 221 binarizes to an incorrect value, the probability of occurrence of a decoding error increases.

また、伝送系における波形の歪みを補正するために、波形等価フィルタを使用すると、その回路規模が大きいので、データスライス装置の回路規模を増大させてしまう。   If a waveform equivalent filter is used to correct waveform distortion in the transmission system, the circuit scale of the data slicing apparatus increases because the circuit scale is large.

本発明は、上記のような問題点を解決するためのものであり、伝送系における群遅延及び電界強度の低下などによりディジタル映像信号に歪みが生じた場合でも、デコードエラーの発生率を低く抑えることのできる振幅判定値設定方法を提供することを目的とする。   The present invention is for solving the above-described problems, and even when distortion occurs in a digital video signal due to a group delay and a decrease in electric field strength in a transmission system, the occurrence rate of decoding errors is kept low. An object of the present invention is to provide an amplitude determination value setting method that can be used.

上記の課題を解決するために、本発明にかかる振幅判定値設定方法は、シリアルで伝送されるデータを含んだ入力信号が所望する信号であるか判定するための振幅判定値に、開始値を設定する開始値設定ステップと、所定の期間、上記振幅判定値に基いて、上記入力信号の振幅が所望の信号であるか判定し、所望の信号を検出する信号検出ステップと、所望の信号を検出すると、該検出された信号に基づき、上記入力信号を2値化するためのスライスレベルデータを算出するスライスレベルデータ算出ステップと、上記入力信号を、上記スライスレベルデータにより2値化して2値化信号に変換する2値化ステップと、上記2値化信号より上記データを抜き取ったシリアルデータをデコードし、デコードデータを生成するデコードステップと、上記デコードデータのエラーの数をカウントし、上記振幅判定値と該エラーの数とを記憶するエラー数取得ステップと、所定の期間、上記入力信号を2値化およびデコードして、上記デコードデータのエラーの数をカウントすると、上記振幅判定値に対して、所定のステップ値で終了値に近づくように演算処理を行い、上記振幅判定値を更新する振幅判定値更新ステップと、開始値から終了値まで所定のステップ値で上記振幅判定値を変更しながら取得した、上記振幅判定値を各値とした場合のエラーの数より、エラーの数が最小となる振幅判定値を最適な振幅判定値として選択する振幅判定値選択ステップと、を備えたことを特徴とする。   In order to solve the above-described problem, the amplitude determination value setting method according to the present invention provides a start value as an amplitude determination value for determining whether an input signal including serially transmitted data is a desired signal. A start value setting step for setting, a signal detection step for determining whether the amplitude of the input signal is a desired signal based on the amplitude determination value for a predetermined period, and detecting the desired signal; When detected, a slice level data calculation step for calculating slice level data for binarizing the input signal based on the detected signal, and binarization by binarizing the input signal with the slice level data A binarization step for converting to a digitized signal; a decoding step for decoding serial data obtained by extracting the data from the binarized signal and generating decoded data; An error number acquisition step of counting the number of errors in the decoded data and storing the amplitude determination value and the number of errors, and binarizing and decoding the input signal for a predetermined period, When the number of errors is counted, the amplitude determination value is subjected to a calculation process so as to approach the end value at a predetermined step value, the amplitude determination value update step for updating the amplitude determination value, and the start value to the end value The amplitude decision value obtained by changing the amplitude decision value at a predetermined step value until the amplitude decision value is set to each value is the optimum amplitude decision value. And an amplitude determination value selection step for selection.

本発明にかかる振幅判定値設定方法によれば、シリアルで伝送されるデータを含んだ入力信号が所望する信号であるか判定するための振幅判定値に、開始値を設定する開始値設定ステップと、所定の期間、上記振幅判定値に基いて、上記入力信号の振幅が所望の信号であるか判定し、所望の信号を検出する信号検出ステップと、所望の信号を検出すると、該検出された信号に基づき、上記入力信号を2値化するためのスライスレベルデータを算出するスライスレベルデータ算出ステップと、上記入力信号を、上記スライスレベルデータにより2値化して2値化信号に変換する2値化ステップと、上記2値化信号より上記データを抜き取ったシリアルデータをデコードし、デコードデータを生成するデコードステップと、上記デコードデータのエラーの数をカウントし、上記振幅判定値と該エラーの数とを記憶するエラー数取得ステップと、所定の期間、上記入力信号を2値化およびデコードして、上記デコードデータのエラーの数をカウントすると、上記振幅判定値に対して、所定のステップ値で終了値に近づくように演算処理を行い、上記振幅判定値を更新する振幅判定値更新ステップと、開始値から終了値まで所定のステップ値で上記振幅判定値を変更しながら取得した、上記振幅判定値を各値とした場合のエラーの数より、エラーの数が最小となる振幅判定値を最適な振幅判定値として選択する振幅判定値選択ステップと、を備えたもの、としたので、振幅判定値を、上記ディジタル信号の信号形状に適した値に更新することにより、信号形状に適した振幅判定値を用いて所望の信号を検出し、上記スライスレベルデータを算出することができるので、ディジタル信号の歪みが変化する場合でも、デコードエラーの発生を抑制することができる。   According to the amplitude determination value setting method according to the present invention, a start value setting step of setting a start value to an amplitude determination value for determining whether an input signal including serially transmitted data is a desired signal; A signal detection step for determining whether the amplitude of the input signal is a desired signal based on the amplitude determination value for a predetermined period, and detecting the desired signal; A slice level data calculating step for calculating slice level data for binarizing the input signal based on the signal, and a binary value for binarizing the input signal by the slice level data and converting the binarized signal into a binary signal A decoding step for decoding serial data obtained by extracting the data from the binarized signal and generating decoded data; and An error number acquisition step for storing the amplitude determination value and the number of errors, and binarizing and decoding the input signal for a predetermined period to determine the number of errors in the decoded data. When counted, the amplitude determination value is subjected to a calculation process so as to approach the end value at a predetermined step value, the amplitude determination value update step for updating the amplitude determination value, and the predetermined step from the start value to the end value. Amplitude determination that selects the amplitude determination value that minimizes the number of errors as the optimal amplitude determination value from the number of errors that are obtained while changing the amplitude determination value by value. Therefore, by updating the amplitude judgment value to a value suitable for the signal shape of the digital signal, the amplitude judgment value suitable for the signal shape is used. Detecting a signal, it is possible to calculate the slice level data, even if the distortion of the digital signal changes, it is possible to suppress the occurrence of decoding errors.

以下、本発明の実施の形態について、図面を参照しながら説明する。なお、ここで示す実施の形態はあくまでも一例であって、必ずしもこの実施の形態に限定するものではない。
(実施の形態1)
まず、本発明の実施の形態1によるデータスライス装置、およびデータスライス方法について、図面を参照しながら説明する。
Hereinafter, embodiments of the present invention will be described with reference to the drawings. Note that the embodiment shown here is merely an example, and is not necessarily limited to this embodiment.
(Embodiment 1)
First, a data slicing device and a data slicing method according to Embodiment 1 of the present invention will be described with reference to the drawings.

図1は、本実施の形態1に係るデータスライス装置の構成を示すブロック図である。
図1に示すように本実施の形態1によるデータスライス装置100は、映像信号入力端子110を介して入力される、文字放送シリアルデータが重畳されたアナログ映像信号S110を、ディジタル映像信号S120に変換するA/D変換器120と、ディジタル映像信号S120に基づいて、クロック・ラン・イン(以下、CRIと称す)検出期間であることを示すCRI検出範囲信号S132を出力するCRI検出部130と、ディジタル映像信号S120よりノイズを除去し、ディジタル映像信号S140を出力するローパスフィルタ(以下、LPFと称す)140と、CRI信号Cに基づきスライスレベルおよびスライスレベルのオフセットを算出し、基準スライスレベル、および基準スライスレベルにオフセットを設けた上側スライスレベルと下側スライスレベルとを設定するスライスレベル算出部150と、スライスレベル算出部150で設定した各スライスレベルを用いてディジタル映像信号S140を2値化するデータスライス部160と、2値化したシリアルの各データをパラレルデータに変換し、文字放送の種別に応じた誤り訂正などのデコード処理を行うデコード回路170と、デコードした各データよりエラーが含まれていないデータを選択して映像信号出力端子190より出力するデータ選択部180と、を有する。
FIG. 1 is a block diagram showing the configuration of the data slicing device according to the first embodiment.
As shown in FIG. 1, the data slicing device 100 according to the first embodiment converts an analog video signal S110, which is input via a video signal input terminal 110 and superimposed with teletext serial data, into a digital video signal S120. A C / D converter 120 that outputs a CRI detection range signal S132 indicating a clock run-in (hereinafter referred to as CRI) detection period based on the digital video signal S120, Noise is removed from the digital video signal S120, a low-pass filter (hereinafter referred to as LPF) 140 that outputs the digital video signal S140, a slice level and a slice level offset are calculated based on the CRI signal C, a reference slice level, and Upper slur with offset at the reference slice level A slice level calculation unit 150 for setting a slice level and a lower slice level, a data slice unit 160 for binarizing the digital video signal S140 using each slice level set by the slice level calculation unit 150, and binarization Each serial data is converted into parallel data, a decoding circuit 170 that performs decoding processing such as error correction according to the type of teletext, and data that does not contain an error is selected from the decoded data and a video signal is output. And a data selection unit 180 that outputs from a terminal 190.

CRI検出部130は、ディジタル映像信号S120より、垂直同期信号S131aと水平同期信号S131bとを分離する同期分離回路131と、垂直同期信号S131aおよび水平同期信号S131bに基づいて、CRI信号Cの検出期間である所定のラインおよび位置を示すCRI検出範囲信号S132を出力するCRI検出範囲信号生成回路132と、を有する。   The CRI detection unit 130 detects the CRI signal C based on the synchronization separation circuit 131 that separates the vertical synchronization signal S131a and the horizontal synchronization signal S131b from the digital video signal S120, and the vertical synchronization signal S131a and the horizontal synchronization signal S131b. A CRI detection range signal generation circuit 132 that outputs a CRI detection range signal S132 indicating a predetermined line and position.

スライスレベル算出部150は、CRI検出期間にディジタル映像信号S140より立ち下がりを検出すると、立ち下り検出パルスS151を出力する立下り検出回路151と、立ち下り検出パルスS151よりディジタル映像信号S140の周波数を算出し、周波数データS152を出力する周波数算出回路152と、この周波数データS152を、予め保持している文字放送方式のCRI信号Cの周波数データと比較し、所定の文字放送方式に対応した周波数データS152が出力される期間に、周波数判定ゲートパルスS153を出力する周波数判定回路153と、立ち下り検出パルスS151より所定の文字放送方式の立ち下がりに対応したパルスを抽出し、周波数判定パルスS154を出力するCRI判定回路154と、を有する。また、スライスレベル算出部150は、CRI検出期間にディジタル映像信号S140の振幅の最大値と最小値とを検索し、最大値検索データS155aおよび最小値検索データS155bを出力する最大/最小検索回路155と、周波数判定パルスS154をロードパルスとして、最大値検索データS155aと最小値検索データS155bとからディジタル映像信号S140の振幅および振幅の平均値を算出し、平均値を基準スライスレベルデータS156a、振幅を振幅検出データS156b、として出力する平均/振幅算出回路156と、振幅検出データS156bよりオフセット値を算出し、基準スライスレベルデータS156aにオフセットを持たせた上側スライスレベルデータS157aと下側スライスレベルデータS157bとを算出するスライスレベルオフセット値算出回路157と、を有する。   When the slice level calculation unit 150 detects a falling edge from the digital video signal S140 during the CRI detection period, the slice detection circuit 151 outputs a falling detection pulse S151, and the frequency of the digital video signal S140 from the falling detection pulse S151. The frequency calculation circuit 152 that calculates and outputs the frequency data S152, and compares the frequency data S152 with the frequency data of the CRI signal C of the teletext system that is held in advance, and the frequency data corresponding to the predetermined teletext system During a period in which S152 is output, a frequency determination circuit 153 that outputs a frequency determination gate pulse S153 and a pulse corresponding to a falling edge of a predetermined teletext system are extracted from the falling detection pulse S151, and a frequency determination pulse S154 is output. CRI determination circuit 154Further, the slice level calculation unit 150 searches the maximum and minimum values of the amplitude of the digital video signal S140 during the CRI detection period, and outputs the maximum value search data S155a and the minimum value search data S155b. Then, using the frequency determination pulse S154 as a load pulse, the amplitude and the average value of the digital video signal S140 are calculated from the maximum value search data S155a and the minimum value search data S155b, the average value is the reference slice level data S156a, and the amplitude is An average / amplitude calculation circuit 156 output as amplitude detection data S156b, and an upper slice level data S157a and lower slice level data S157 in which an offset value is calculated from the amplitude detection data S156b and the reference slice level data S156a is offset. Having a slice level offset value calculation circuit 157 for calculating and.

データスライス部160は、上側スライスレベルデータS157aおよび基準スライスレベルデータS156a、下側スライスレベルデータS157bのそれぞれを用いて閾値判定することにより、ディジタル映像信号S140を2値化し、2値化データS161a〜S161cを抜き取り回路163に出力する2値化回路161と、抜き取りパルス生成回路162が生成する抜き取りパルスS162のタイミングで2値化データS161a〜S161cのそれぞれから文字放送シリアルデータを抜き取り、抜き取りシリアルデータS163a〜S163cを出力する抜き取り回路163と、を有する。   The data slice unit 160 binarizes the digital video signal S140 by performing threshold determination using each of the upper slice level data S157a, the reference slice level data S156a, and the lower slice level data S157b, and binarized data S161a to Character broadcast serial data is extracted from each of the binarized data S161a to S161c at the timing of the binarization circuit 161 that outputs S161c to the extraction circuit 163 and the extraction pulse S162 generated by the extraction pulse generation circuit 162, and is extracted serial data S163a. And a sampling circuit 163 for outputting S163c.

データ選択部180は、デコード回路170が出力したデコードデータS170a〜S170cがデコードエラーを有するか判定し、デコードエラーのないデコードデータを示すデコードデータ選択信号S181を出力するエラー検出回路181と、デコードデータ選択信号S181に基づき、デコードデータS170a〜S170cよりデコードエラーのないデコードデータを選択し、最終デコードデータS182を映像信号出力端子190より装置外部に出力するデコードデータ選択回路182と、を有する。   The data selection unit 180 determines whether the decode data S170a to S170c output from the decode circuit 170 has a decode error, and outputs an error detection circuit 181 that outputs a decode data selection signal S181 indicating the decode data without the decode error. A decoding data selection circuit 182 that selects decoding data having no decoding error from the decoding data S170a to S170c based on the selection signal S181, and outputs the final decoding data S182 from the video signal output terminal 190 to the outside of the apparatus.

次に、以上のように構成されるデータスライス装置100の動作について、図面を参照しながら説明する。
図2は、群遅延及び電界強度の低下などにより歪んだアナログ映像信号S110が入力された場合の、データスライス装置100の動作を示すタイミング図である。図2において、図1と同一または相当する部分には同一符号を付してある。また、Aは水平同期信号、Bはカラーバースト信号、CはCRI信号、Dはフレーミングコード信号、Eはテキストデータ信号、T1〜T8は、ディジタル映像信号S140が変化した時刻である。
Next, the operation of the data slicing device 100 configured as described above will be described with reference to the drawings.
FIG. 2 is a timing diagram showing the operation of the data slicing apparatus 100 when an analog video signal S110 distorted due to group delay, electric field strength reduction, or the like is input. In FIG. 2, the same or corresponding parts as in FIG. A is a horizontal synchronizing signal, B is a color burst signal, C is a CRI signal, D is a framing code signal, E is a text data signal, and T1 to T8 are times when the digital video signal S140 changes.

文字放送シリアルデータが重畳されたアナログ映像信号S110が映像信号入力端子110を介して入力されると、A/D変換器120は、サンプリングクロックfs(MHz)でサンプリングしたアナログ映像信号S110をディジタル信号に変換する。このサンプリングクロックfsとしては、例えば、このデータスライス装置100の動作クロックが用いられる。A/D変換器120においてデジタル信号に変換されたディジタル映像信号S120は、CRI検出部130とLPF140とに出力される。すると、LPF140は、ディジタル映像信号S120よりノイズを除去したディジタル映像信号S140を、スライスレベル算出部150と、データスライス部160とに出力する。図2には、歪んだアナログ映像信号S110をA/D変換し、ノイズを除去したディジタル映像信号S140の例を示している。また、C’は、CRI検出範囲信号S132が出力されている期間に生じる、LPF140で除去できないノイズである。LPF140によってノイズ除去を行っても、ディジタル映像信号S140が歪んでいるのは、LPF140においても除去できないノイズの影響によるものである。また、図2において、ディジタル映像信号S140上に示した黒丸は、アナログ映像信号S110をサンプリングクロックfsでディジタル映像信号S120(S140)に変換した信号である。   When the analog video signal S110 superimposed with the teletext serial data is input via the video signal input terminal 110, the A / D converter 120 converts the analog video signal S110 sampled with the sampling clock fs (MHz) into a digital signal. Convert to As the sampling clock fs, for example, an operation clock of the data slicing device 100 is used. The digital video signal S120 converted into a digital signal by the A / D converter 120 is output to the CRI detection unit 130 and the LPF 140. Then, the LPF 140 outputs the digital video signal S140 from which noise has been removed from the digital video signal S120, to the slice level calculation unit 150 and the data slice unit 160. FIG. 2 shows an example of a digital video signal S140 obtained by A / D converting the distorted analog video signal S110 and removing noise. C ′ is noise that cannot be removed by the LPF 140 and is generated during the period when the CRI detection range signal S132 is output. Even if noise is removed by the LPF 140, the digital video signal S140 is distorted due to the influence of noise that cannot be removed by the LPF 140. In FIG. 2, the black circles shown on the digital video signal S140 are signals obtained by converting the analog video signal S110 into the digital video signal S120 (S140) with the sampling clock fs.

時刻T1において、水平同期信号Aと垂直同期信号とを含んだディジタル映像信号S120がCRI検出部130に入力されるので、同期分離回路131は、ディジタル映像信号S120から垂直同期信号S131aと水平同期信号S131bとを分離する。   At time T1, since the digital video signal S120 including the horizontal synchronization signal A and the vertical synchronization signal is input to the CRI detection unit 130, the synchronization separation circuit 131 receives the vertical synchronization signal S131a and the horizontal synchronization signal from the digital video signal S120. S131b is separated.

次に、CRI検出範囲信号生成回路132は、垂直同期信号S131aおよび水平同期信号S131bに基づいてCRI信号Cの開始位置および終了位置を求め、CRI検出期間に、CRI検出範囲信号S132を立ち下がり検出回路151と最大最小検索回路155とに出力する。ここで、CRI検出範囲信号生成回路132は、図2に示すように、CRI信号Cの開始前の所定の時間(時刻T2)からCRI信号Cの終了後の所定の時間まで継続して、CRI検出範囲信号S132を出力してもよい。   Next, the CRI detection range signal generation circuit 132 obtains the start position and end position of the CRI signal C based on the vertical synchronization signal S131a and the horizontal synchronization signal S131b, and detects the falling edge of the CRI detection range signal S132 during the CRI detection period. The data is output to the circuit 151 and the maximum / minimum search circuit 155. Here, the CRI detection range signal generation circuit 132 continues from a predetermined time (time T2) before the start of the CRI signal C to a predetermined time after the end of the CRI signal C, as shown in FIG. The detection range signal S132 may be output.

CRI検出範囲信号S132が出力されている期間のうちの所定の期間、スライスレベル算出部150には、ディジタル映像信号S140としてCRI信号Cが入力されるので、スライスレベル算出部150は、CRI検出範囲信号S132が出力されている期間、CRI信号Cに基づいてスライスレベルの算出処理を行う。すなわち、CRI検出範囲信号S132がスライスレベル算出部150に入力されている間、立下り検出回路151はディジタル映像信号S140の位相の変化を判定する。また、最大/最小検索回路155は、ディジタル映像信号S140の最大値および最小値を検索し、最大値検索データS155aと最小値検索データS155bとを出力する。   Since the CRI signal C is input as the digital video signal S140 to the slice level calculation unit 150 during a predetermined period of the period during which the CRI detection range signal S132 is output, the slice level calculation unit 150 During the period in which the signal S132 is output, slice level calculation processing is performed based on the CRI signal C. That is, while the CRI detection range signal S132 is input to the slice level calculation unit 150, the falling detection circuit 151 determines a change in the phase of the digital video signal S140. The maximum / minimum search circuit 155 searches for the maximum and minimum values of the digital video signal S140, and outputs maximum value search data S155a and minimum value search data S155b.

時刻T3において、立下り検出回路151は、ディジタル映像信号S140のノイズC’の立ち下がりをCRI信号Cの立ち下がりとして誤検出し、立ち下り検出パルスS151を生成する。また、時刻T4においても、立下り検出回路151は、ノイズC’の立ち下がりをCRI信号Cの立ち下がりとして誤検出し、立ち下り検出パルスS151を生成する。   At time T3, the falling detection circuit 151 erroneously detects the falling of the noise C ′ of the digital video signal S140 as the falling of the CRI signal C, and generates a falling detection pulse S151. Also at time T4, the falling detection circuit 151 erroneously detects the falling of the noise C ′ as the falling of the CRI signal C, and generates a falling detection pulse S151.

すると、周波数算出回路152は、時刻T3および時刻T4において検出した立ち下り検出パルスS151より、ディジタル映像信号S140の周波数を算出し、周波数データS152を出力する。周波数判定回路153は、この周波数データS152に基づいて、立下り検出回路151において検出した立ち下がりが、所定の文字放送方式に対応した信号であるか判定する。図2に示したディジタル映像信号S140のように、ノイズC’の立ち下がりの間隔がCRI信号Cの立ち下がりの間隔と一致している場合、周波数判定回路153は、ノイズC’の周波数を所定の文字放送方式に対応した周波数であると誤判定してしまい、周波数判定ゲートパルスS153をCRI判定回路154に出力する。   Then, the frequency calculation circuit 152 calculates the frequency of the digital video signal S140 from the falling detection pulses S151 detected at time T3 and time T4, and outputs frequency data S152. Based on the frequency data S152, the frequency determination circuit 153 determines whether the falling detected by the falling detection circuit 151 is a signal corresponding to a predetermined text broadcasting system. When the falling interval of the noise C ′ matches the falling interval of the CRI signal C as in the digital video signal S140 shown in FIG. 2, the frequency determination circuit 153 sets the frequency of the noise C ′ to a predetermined value. And the frequency determination gate pulse S153 is output to the CRI determination circuit 154.

次に、この周波数判定ゲートパルスS153に基づいて、CRI判定回路154は、立ち下り検出パルスS151が文字放送方式に対応したパルスであるか判定する。この場合は、ノイズC’の立ち下がりの間隔がCRI信号Cの立ち下がりの間隔と一致しているので、CRI判定回路154は、立ち下り検出パルスS151は文字放送に対応したパルスであると誤判定し、周波数判定パルスS154を平均/振幅算出回路156に出力する。   Next, based on the frequency determination gate pulse S153, the CRI determination circuit 154 determines whether the falling detection pulse S151 is a pulse corresponding to the text broadcasting system. In this case, since the falling interval of the noise C ′ coincides with the falling interval of the CRI signal C, the CRI determination circuit 154 erroneously determines that the falling detection pulse S151 is a pulse corresponding to teletext. The frequency determination pulse S154 is output to the average / amplitude calculation circuit 156.

平均/振幅算出回路156は、この周波数判定パルスS154をロードパルスとして、最大値検索データS155aと最小値検索データS155bとをサンプリングし、ディジタル映像信号S140の平均値と振幅とを算出する。そして、算出した平均値を基準スライスレベルデータS156aとして、スライスレベルオフセット値算出回路157とデータスライス部160とに出力し、振幅を振幅検出データS156bとして、スライスレベルオフセット値算出回路157に出力する。   The average / amplitude calculation circuit 156 samples the maximum value search data S155a and the minimum value search data S155b using the frequency determination pulse S154 as a load pulse, and calculates the average value and amplitude of the digital video signal S140. The calculated average value is output as reference slice level data S156a to the slice level offset value calculation circuit 157 and the data slice unit 160, and the amplitude is output as amplitude detection data S156b to the slice level offset value calculation circuit 157.

ディジタル映像信号S140が「0」から「1」に変化する変化点近傍に、わずかな位相のずれやレベルのオフセットが生じている場合、2値化回路161では、この信号を誤った値に2値化してしまう可能性がある。これを回避するために、本実施の形態1によるデータスライス装置100においては、基準スライスレベルデータS156aの上側および下側にオフセットを設けたスライスレベルデータをも用いて、ディジタル映像信号S140を2値化する。オフセットは、CRI信号Cの振幅に対して所定の割合となる振幅であり、例えば振幅の20%と決定されている。スライスレベルオフセット値算出回路157は、予め決定した値により振幅検出データS156bを除算して、オフセット値を取得する。そして、基準スライスレベルデータS156aにオフセット値を加算した上側スライスレベルデータS157aと、基準スライスレベルデータS156aからオフセット値を減算した下側スライスレベルデータS157bと、を出力する。図2に示すとおり、ノイズC’を用いて算出した基準スライスレベルデータS156aに基づき設定したスライスレベルSLV2、および上側スライスレベルデータS157aに基づき設定したスライスレベルSLV1、下側スライスレベルデータS157bに基づき設定したスライスレベルSLV3は、CRI信号Cを用いて設定する最適なスライスレベルより低く、ディジタル映像信号S140の2値化に用いることができない。なお、ディジタル映像信号S140に歪みがなく、時刻T3および時刻T4においてノイズC’の立ち下がりが検出されない場合、ここで説明した時刻T3および時刻T4における処理を行わず、次に説明する時刻T5の処理に移行する。   If a slight phase shift or level offset occurs in the vicinity of the change point where the digital video signal S140 changes from “0” to “1”, the binarization circuit 161 sets this signal to an incorrect value. There is a possibility that it will be priced. In order to avoid this, in the data slicing device 100 according to the first embodiment, the digital video signal S140 is binary-coded using slice level data provided with an offset above and below the reference slice level data S156a. Turn into. The offset is an amplitude that is a predetermined ratio with respect to the amplitude of the CRI signal C, and is determined to be, for example, 20% of the amplitude. The slice level offset value calculation circuit 157 divides the amplitude detection data S156b by a predetermined value to obtain an offset value. Then, upper slice level data S157a obtained by adding an offset value to the reference slice level data S156a and lower slice level data S157b obtained by subtracting the offset value from the reference slice level data S156a are output. As shown in FIG. 2, the slice level SLV2 set based on the reference slice level data S156a calculated using the noise C ′, the slice level SLV1 set based on the upper slice level data S157a, and the lower slice level data S157b are set. The slice level SLV3 is lower than the optimum slice level set using the CRI signal C, and cannot be used for binarization of the digital video signal S140. If the digital video signal S140 is not distorted and the falling edge of the noise C ′ is not detected at time T3 and time T4, the processing at time T3 and time T4 described here is not performed, and at time T5 described next. Transition to processing.

時刻T5、T6において、CRI信号Cが検出される。立下り検出回路151は、時刻T5においてCRI信号Cの最初の立ち下がりを、時刻T6においてCRI信号Cの2番目の立ち下がりを検出し、立ち下り検出パルスS151を出力する。また、最大/最小検索回路155におけるディジタル映像信号S140の最大値および最小値の検索は、時刻T2より継続して行われているが、図2に示したディジタル映像信号S140は、CRI信号Cの最小値よりノイズC’の最小値が小さいので、最小値検索データS155bはCRI信号Cによって更新されることなく、ノイズC’の最小値が継続して出力される。   At times T5 and T6, the CRI signal C is detected. The fall detection circuit 151 detects the first fall of the CRI signal C at time T5, the second fall of the CRI signal C at time T6, and outputs a fall detection pulse S151. Further, the search for the maximum value and the minimum value of the digital video signal S140 in the maximum / minimum search circuit 155 is continuously performed from time T2, but the digital video signal S140 shown in FIG. Since the minimum value of the noise C ′ is smaller than the minimum value, the minimum value search data S155b is not updated by the CRI signal C, and the minimum value of the noise C ′ is continuously output.

時刻T5、時刻T6に検出した立ち下り検出パルスS151により周波数算出回路152が算出した周波数は、文字放送方式に対応した周波数であるので、CRI判定回路154は、生成した周波数判定パルスS154を平均/振幅算出回路156に入力する。平均/振幅算出回路156は、この周波数判定パルスS154をロードパルスとして、最大値検索データS155aと最小値検索データS155bとをサンプリングし、ディジタル映像信号S140の平均値と振幅とを算出する。そして、算出した平均値を基準スライスレベルデータS156aとして、スライスレベルオフセット値算出回路157とデータスライス部160とに出力し、振幅を振幅検出データS156bとしてスライスレベルオフセット値算出回路157に出力する。スライスレベルオフセット値算出回路157は、振幅検出データ156bよりオフセット値を算出し、基準スライスレベルデータS156aにオフセット値を加算した上側スライスレベルデータS157aと、基準スライスレベルデータS156aからオフセット値を減算した下側スライスレベルデータS157bと、を出力する。ここで、最小値検索データS155bはノイズC’の最小値であるので、算出された基準スライスレベルデータS156aに基づいて設定するスライスレベルSLV5は、最適なスライスレベルより低いレベルとなっている。しかし、オフセットを設けたことにより、上側スライスレベルデータS157aに基づいて設定されるスライスレベルSLV4、または下側スライスレベルデータS157bに基づいて設定されるスライスレベルSLV6のいずれかが、時刻T7以降に、フレーミングコート信号Dおよびテキストデータ信号Eを2値化する際に用いることができる、適当なスライスレベルとなる。   Since the frequency calculated by the frequency calculation circuit 152 by the falling detection pulse S151 detected at the time T5 and the time T6 is a frequency corresponding to the text broadcasting system, the CRI determination circuit 154 averages / generates the generated frequency determination pulse S154. Input to the amplitude calculation circuit 156. The average / amplitude calculation circuit 156 samples the maximum value search data S155a and the minimum value search data S155b using the frequency determination pulse S154 as a load pulse, and calculates the average value and amplitude of the digital video signal S140. The calculated average value is output as reference slice level data S156a to the slice level offset value calculation circuit 157 and the data slicer 160, and the amplitude is output to the slice level offset value calculation circuit 157 as amplitude detection data S156b. The slice level offset value calculation circuit 157 calculates an offset value from the amplitude detection data 156b, and subtracts the offset value from the upper slice level data S157a obtained by adding the offset value to the reference slice level data S156a and the reference slice level data S156a. Side slice level data S157b. Here, since the minimum value search data S155b is the minimum value of the noise C ', the slice level SLV5 set based on the calculated reference slice level data S156a is lower than the optimum slice level. However, by providing the offset, either the slice level SLV4 set based on the upper slice level data S157a or the slice level SLV6 set based on the lower slice level data S157b is not changed after time T7. Appropriate slice levels can be used when binarizing the framing coat signal D and the text data signal E.

時刻T7において、フレーミングコード信号Dを含んだディジタル映像信号S140がデータスライス部160に入力されると、2値化回路161は、上側スライスレベルデータS157aで閾値判定することにより、ディジタル映像信号を「0」または「1」に2値化し、2値化データS161aを生成する。同様に、基準スライスレベルデータS156aでディジタル映像信号S140を2値化することにより2値化データS161bを生成し、下側スライスレベルデータS157bでディジタル映像信号S140を2値化することにより2値化データS161cを生成する。また、抜き取りパルス生成回路162は、各2値化データS161a〜S161cより文字放送のデータを抜き取る際にサンプリングクロックとして用いる抜き取りパルスS162を生成する。この抜き取りパルスS162は、文字放送の信号の伝送クロックと同じ周期であればよい。そして、抜き取り回路163において、抜き取りパルスS162で、2値化データS161aから文字放送シリアルデータを抜き取り、抜き取りシリアルデータS163aを出力する。同様に、抜き取りパルスS162で2値化データS161bより文字放送シリアルデータを抜き取ることにより、抜き取りシリアルデータS163bを出力し、抜き取りパルスS162で2値化データS161cより文字放送シリアルデータを抜き取ることにより、抜き取りシリアルデータS163cを出力する。デコード回路170は、抜き取りシリアルデータS163a〜163cをパラレルデータに変換し、フレーミングコードを検出する。   When the digital video signal S140 including the framing code signal D is input to the data slicing unit 160 at time T7, the binarization circuit 161 determines the threshold value using the upper slice level data S157a, thereby converting the digital video signal to “ It binarizes to “0” or “1” to generate binarized data S161a. Similarly, binarized data S161b is generated by binarizing the digital video signal S140 with the reference slice level data S156a, and binarized by binarizing the digital video signal S140 with the lower slice level data S157b. Data S161c is generated. The extraction pulse generation circuit 162 generates an extraction pulse S162 used as a sampling clock when extracting text broadcast data from each of the binarized data S161a to S161c. The extraction pulse S162 may have the same cycle as the transmission clock of the teletext signal. In the extraction circuit 163, the character broadcast serial data is extracted from the binarized data S161a by the extraction pulse S162, and the extracted serial data S163a is output. Similarly, by extracting the character broadcast serial data from the binarized data S161b by the extraction pulse S162, the extracted serial data S163b is output, and by extracting the character broadcast serial data from the binarized data S161c by the extraction pulse S162, the extraction is performed. Serial data S163c is output. The decode circuit 170 converts the extracted serial data S163a to 163c into parallel data, and detects a framing code.

時刻T8において、テキストデータ信号Eを含んだディジタル映像信号S140がデータスライス部160に入力されると、フレーミングコード信号Dと同様に、2値化回路161は、上側スライスレベルデータS157aと、基準スライスレベルデータS156aと、下側スライスレベルデータS156bと、を用いてディジタル映像信号S140を2値化することにより、2値化データS161a〜S161cを生成する。例えば、ディジタル映像信号S140のポイントP1を、上側スライスレベルデータS157aにより2値化すると、2値化データS161aとして「0」が得られ、基準スライスレベルデータS156aおよび下側スライスレベルデータS156bにより2値化すると2値化データS161b、S161cとして「1」が得られる。ポイントP1のデータが「0」である場合、基準スライスレベルデータS156aのみで2値化すると正しいデータを得ることができない。このように、基準スライスレベルデータS156aを用いると誤った値に2値化してしまう場合であっても、上側スライスレベルデータS157aおよび下側スライスレベルデータS156bを用いることにより、正しい値をも得ることができる。そして、抜き取り回路163において、抜き取りパルスS162で、2値化データS161a〜S161cから文字放送シリアルデータを抜き取り、抜き取りシリアルデータS163a〜S163cを、デコード回路170に出力する。   When the digital video signal S140 including the text data signal E is input to the data slice unit 160 at time T8, the binarization circuit 161, like the framing code signal D, the upper slice level data S157a and the reference slice The binarized data S161a to S161c are generated by binarizing the digital video signal S140 using the level data S156a and the lower slice level data S156b. For example, when the point P1 of the digital video signal S140 is binarized by the upper slice level data S157a, “0” is obtained as the binarized data S161a, and binary by the reference slice level data S156a and the lower slice level data S156b. Then, “1” is obtained as the binarized data S161b and S161c. When the data of the point P1 is “0”, correct data cannot be obtained by binarizing only with the reference slice level data S156a. As described above, even if the reference slice level data S156a is binarized to an incorrect value, the correct value can be obtained by using the upper slice level data S157a and the lower slice level data S156b. Can do. In the extraction circuit 163, the character broadcast serial data is extracted from the binarized data S 161 a to S 161 c by the extraction pulse S 162, and the extracted serial data S 163 a to S 163 c is output to the decoding circuit 170.

デコード回路170は、抜き取りシリアルデータS163a〜163cをパラレルデータに変換し、フレーミングコードに示された文字放送の種類に応じたデコード処理を行うことにより、生成したデコードデータS170a〜170cを、データ選択部180に出力する。   The decoding circuit 170 converts the extracted serial data S163a to 163c into parallel data, and performs decoding processing according to the type of text broadcast indicated in the framing code, thereby generating the generated decoded data S170a to 170c as a data selection unit. Output to 180.

デコードデータS170a〜S170cがデータ選択部180に入力されると、エラー検出回路181において、各デコードデータS170a〜S170cにおけるエラーの有無を判定する。すなわち、エラー検出回路181は、各データ単位のデコードデータS170aにおける「1」の数をカウントし、奇数ビットが「1」である場合に、デコードデータS170aにはデコードエラーは無いと判断する。同様に、エラー検出回路181は、各データ単位の「1」の数に基づき、デコードデータS170b、S170cにデコードエラーが無いか判断する。そして、デコードエラーのないデコードデータを指定したデコードデータ選択信号S181を出力する。ここで、エラー検出回路181は、まず、デコードデータS170bのデコードエラーの有無を判定し、これにデコードエラーがない場合は、デコードデータS170bを指定したデコードデータ選択信号S181を出力する。デコードデータS170bがデコードエラーを有する場合は、デコードデータS170a、S170cがデコードエラーを有するか判定し、デコードエラーのないものを指定する。また、デコードデータS170a〜S170cのすべてがデコードエラーを有する場合、これらのうちのいずれかを指定する。デコードデータ選択回路182は、このデコードデータ選択信号S181に基づいて、デコードデータS170a〜S170cからデコードエラーのないものを選択し、最終デコードデータS182を、映像信号出力端子190を介してデータスライス装置100の外部に出力する。
映像信号出力端子190より出力されたデコードデータは、図示しない表示回路に転送され、文字として表示される。
When the decode data S170a to S170c are input to the data selection unit 180, the error detection circuit 181 determines whether there is an error in each of the decode data S170a to S170c. That is, the error detection circuit 181 counts the number of “1” in the decode data S170a of each data unit, and determines that the decode data S170a has no decode error when the odd number bit is “1”. Similarly, the error detection circuit 181 determines whether there is a decoding error in the decoded data S170b and S170c based on the number of “1” in each data unit. Then, a decode data selection signal S181 designating decode data having no decode error is output. Here, the error detection circuit 181 first determines whether or not there is a decoding error in the decoded data S170b. If there is no decoding error, the error detecting circuit 181 outputs a decoding data selection signal S181 designating the decoding data S170b. When the decode data S170b has a decode error, it is determined whether the decode data S170a and S170c have a decode error, and the data without the decode error is designated. If all of the decode data S170a to S170c have a decode error, one of these is designated. Based on the decode data selection signal S181, the decode data selection circuit 182 selects one having no decode error from the decode data S170a to S170c, and selects the final decode data S182 via the video signal output terminal 190 as the data slice device 100. To the outside.
The decoded data output from the video signal output terminal 190 is transferred to a display circuit (not shown) and displayed as characters.

以上のように、本実施の形態1によるデータスライス装置100によれば、CRI信号Cの振幅と平均値とを算出し、平均値を基準スライスレベルデータS156a、振幅を振幅レベルデータS156bとして出力する平均/振幅算出回路156と、振幅レベルデータS156bに基づき算出したオフセット値を、基準スライスレベルデータS156aに加算した上側スライスレベルデータS157a、および基準スライスレベルデータS156aよりオフセット値を減算した下側スライスレベルデータS157bを算出するスライスレベルオフセット値算出回路157と、基準スライスレベルデータS156a、上側スライスレベルデータS157aおよび下側スライスレベルデータS157bを用いてディジタル映像信号S140を2値化する2値化回路161と、各2値化信号S161a〜S161cより文字放送シリアルデータを抜き取った抜き取りシリアルデータS163a〜S163cをデコードするデコード回路170と、各デコードデータS170a〜S170cからデコードエラーのないものを選択して出力するデコードデータ選択回路182と、を備えたので、群遅延及び電界強度の低下などによりディジタル映像信号S140に歪みが生じ、基準スライスレベルデータS156aのみで2値化すると誤った値に2値化してしまう場合であっても、いずれかのスライスレベルデータにより、正しい値に2値化することができ、その2値化データに基づくデコードデータをデコードデータ選択回路182により選択出力するので、デコードエラーの発生率を低く抑えることができる。さらに、複数のスライスレベルデータのいずれかにより正しい値に2値化することができるので、波形の歪みを補正するための波形等価フィルタが必要なくなり、データスライス装置の回路規模を縮小させることができる。   As described above, according to data slicing apparatus 100 according to the first embodiment, the amplitude and average value of CRI signal C are calculated, and the average value is output as reference slice level data S156a and the amplitude is output as amplitude level data S156b. The upper slice level data S157a obtained by adding the offset value calculated based on the average / amplitude calculation circuit 156 and the amplitude level data S156b to the reference slice level data S156a, and the lower slice level obtained by subtracting the offset value from the reference slice level data S156a Using the slice level offset value calculation circuit 157 for calculating the data S157b, the reference slice level data S156a, the upper slice level data S157a, and the lower slice level data S157b, the digital video signal S140 is binarized. , A decoding circuit 170 that decodes extracted serial data S163a to S163c obtained by extracting character broadcast serial data from each of the binarized signals S161a to S161c, and one that does not have a decoding error from the decoded data S170a to S170c Since the digital video signal S140 is distorted due to a group delay, a decrease in electric field strength, or the like, an incorrect value is obtained when binarization is performed only with the reference slice level data S156a. Even if the data is binarized, it can be binarized to a correct value by using any slice level data, and the decoded data selection circuit 182 selectively outputs the decoded data based on the binarized data. So lower the rate of decoding errors It can be obtained. Furthermore, since it can be binarized to a correct value by any of a plurality of slice level data, a waveform equivalent filter for correcting waveform distortion is not necessary, and the circuit scale of the data slicing apparatus can be reduced. .

(実施の形態2)
次に、本発明の実施の形態2によるデータスライス装置について、図面を参照しながら説明する。
図3は、本実施の形態2に係るデータスライス装置200の構成を示すブロック図である。なお、図3において、図1に示すものと同一または相当する部分には同一符号を付して、詳しい説明を省略する。
(Embodiment 2)
Next, a data slicing device according to Embodiment 2 of the present invention will be described with reference to the drawings.
FIG. 3 is a block diagram showing a configuration of data slicing device 200 according to the second embodiment. In FIG. 3, the same or corresponding parts as those shown in FIG.

図3に示すように本実施の形態2によるデータスライス装置200は、映像信号入力端子110を介して入力される、文字放送シリアルデータが重畳されたアナログ映像信号S110を、ディジタル映像信号S120に変換するA/D変換器120と、ディジタル映像信号S120に基づいて、CRI検出期間であることを示すCRI検出範囲信号S312を生成するCRI検出部130と、ディジタル映像信号S120より所定の帯域のノイズを除去し、ディジタル映像信号S140を出力するLPF140と、ディジタル映像信号S140の振幅に基づき、検出した信号がCRI信号Cであるか判断し、CRI信号Cのみの最大値と最小値とを用いてスライスレベルを設定するスライスレベル算出部210と、スライスレベル算出部210で設定したスライスレベルを用いてディジタル映像信号S140を2値化するデータスライス部220と、2値化したシリアルのデータをパラレルデータに変換し、デコード処理を行ったデコードデータS230を映像信号出力端子190より出力するデコード回路230と、を有する。   As shown in FIG. 3, the data slicing device 200 according to the second embodiment converts an analog video signal S110, which is input via a video signal input terminal 110 and superimposed with teletext serial data, into a digital video signal S120. The A / D converter 120, the CRI detection unit 130 for generating the CRI detection range signal S312 indicating the CRI detection period based on the digital video signal S120, and noise in a predetermined band from the digital video signal S120. Based on the LPF 140 that outputs the digital video signal S140 and the amplitude of the digital video signal S140, it is determined whether the detected signal is the CRI signal C, and the slice is obtained using the maximum value and the minimum value of the CRI signal C alone. A slice level calculation unit 210 that sets a level and a slice level calculation unit 21 A data slice unit 220 that binarizes the digital video signal S140 using the slice level set in step S3, and the binarized serial data is converted into parallel data, and the decoded data S230 subjected to decoding processing is converted into a video signal output terminal. And a decoding circuit 230 that outputs from 190.

スライスレベル算出部210は、CRI検出期間にディジタル映像信号S140より立ち下がりを検出すると、立ち下り検出パルスS151を出力する立下り検出回路151と、立ち下り検出パルスS151よりディジタル映像信号S140の周波数を算出し、周波数データS152を出力する周波数算出回路152と、所定の文字放送方式に対応した周波数が算出される期間に、周波数判定ゲートパルスS153を出力する周波数判定回路153と、周波数判定ゲートパルスに基づいて、立ち下り検出パルスS151より所定の文字放送方式の立ち下がりに対応したパルスを抽出した周波数判定パルスS211a、および後述する振幅判定ゲートパルスS215に基づいて、立ち下り検出パルスS151より文字放送の信号の立ち下りパルス(CRI信号Cの立ち下りパルス)を抽出した振幅判定パルスS211b、を出力するCRI判定回路211と、を有する。また、スライスレベル算出部210は、CRI検出期間にディジタル映像信号S140の最大値と最小値とを検索し、最大値検索データS212aと最小値検索データS212bとを出力する最大/最小検索回路212と、周波数判定パルスS211aをロードパルスとして、最大値検索データS212aと最小値検索データS212bとからディジタル映像信号S140の最大値と最小値とを検出し、最大値検出データS213aと最小値検出データS213bとを出力する最大/最小検出回路213と、後述する振幅判定回路215より出力される振幅判定ゲートパルスS215をロードパルスとして、最大値検出データS213aと最小値検出データS213bとから、ディジタル映像信号S140の振幅および振幅の平均値を算出し、平均値をスライスレベルデータS214a、振幅を振幅検出データS214bとして出力する平均/振幅算出回路214と、予め決定されたCRI振幅判定値に基づいて、振幅検出データS214bが所定の文字放送の信号の振幅を有するか判定し、CRI信号Cの振幅を有する期間に振幅判定ゲートパルスS215を出力する振幅判定回路215と、を有する。   When the slice level calculation unit 210 detects a falling edge from the digital video signal S140 during the CRI detection period, the slice detection circuit 151 outputs a falling detection pulse S151, and the frequency of the digital video signal S140 from the falling detection pulse S151. The frequency calculation circuit 152 that calculates and outputs the frequency data S152, the frequency determination circuit 153 that outputs the frequency determination gate pulse S153 during the period in which the frequency corresponding to the predetermined teletext system is calculated, and the frequency determination gate pulse Based on the frequency detection pulse S211a obtained by extracting a pulse corresponding to the falling edge of the predetermined text broadcasting system from the falling edge detection pulse S151, and on the basis of the amplitude determination gate pulse S215 to be described later, the character broadcasting is performed based on the falling edge detection pulse S151. Signal falling pal Having a CRI determination circuit 211 which outputs the amplitude evaluation pulse S211b, which was extracted (falling pulse of the CRI signal C), a. Further, the slice level calculation unit 210 searches for the maximum value and the minimum value of the digital video signal S140 during the CRI detection period, and outputs a maximum value search data S212a and a minimum value search data S212b. The maximum value and the minimum value of the digital video signal S140 are detected from the maximum value search data S212a and the minimum value search data S212b using the frequency determination pulse S211a as a load pulse, and the maximum value detection data S213a and the minimum value detection data S213b are detected. Of the digital video signal S140 from the maximum value detection data S213a and the minimum value detection data S213b using the amplitude determination gate pulse S215 output from the amplitude determination circuit 215 described later as a load pulse. Calculate the amplitude and the average value of the amplitude Based on the average / amplitude calculation circuit 214 that outputs the average value as slice level data S214a and the amplitude as amplitude detection data S214b, and the predetermined CRI amplitude determination value, the amplitude detection data S214b is the amplitude of a predetermined teletext signal. And an amplitude determination circuit 215 that outputs an amplitude determination gate pulse S215 in a period having the amplitude of the CRI signal C.

ここで、CRI判定回路211は、周波数判定ゲートパルスS153に基づいて、立ち下り検出パルスS151から所定の文字放送方式の信号の立ち下がりに対応したパルスを抽出し、周波数判定パルスS211aを最大/最小検索回路212と、最大/最小検出回路213とに出力する。この周波数判定パルスS211aは、図示しない遅延回路によって、最大/最小検出回路213が最大値検索データS212aと最小値検索データS212bとを検出するのに必要な時間だけ遅延して、最大/最小検索回路212に対して入力される。また、CRI判定回路211は、振幅判定ゲートパルスS215が入力されると、この振幅判定ゲートパルスS215に基づいて、周波数判定パルスS211aからCRI信号Cの振幅を有する信号に基づくパルスを抽出し、振幅判定パルスS211bを出力する。   Here, based on the frequency determination gate pulse S153, the CRI determination circuit 211 extracts a pulse corresponding to the falling edge of a predetermined teletext signal from the falling detection pulse S151, and sets the frequency determination pulse S211a to the maximum / minimum. The data is output to the search circuit 212 and the maximum / minimum detection circuit 213. The frequency determination pulse S211a is delayed by a delay circuit (not shown) by a time necessary for the maximum / minimum detection circuit 213 to detect the maximum value search data S212a and the minimum value search data S212b. 212 is input. Further, when the amplitude determination gate pulse S215 is input, the CRI determination circuit 211 extracts a pulse based on the signal having the amplitude of the CRI signal C from the frequency determination pulse S211a based on the amplitude determination gate pulse S215. The determination pulse S211b is output.

最大/最小検索回路212は、ディジタル映像信号S140の最大値と最小値とを検索し、最大値検索データS212aと最小値検索データS212bとを出力する。そして、周波数判定パルスS211aが入力されると、最大値検索データS212aと最小値検索データS212bとを一旦リセットし、新たな期間の最大値と最小値とを検索し、最大値検索データS212aと最小値検索データS212bとを出力する。このようにして、最大/最小検索回路212は、周波数判定パルスS211aに基づいて、各周期の最大値と最小値とを検索する。   The maximum / minimum search circuit 212 searches for the maximum value and minimum value of the digital video signal S140, and outputs maximum value search data S212a and minimum value search data S212b. When the frequency determination pulse S211a is input, the maximum value search data S212a and the minimum value search data S212b are once reset, the maximum value and the minimum value of a new period are searched, and the maximum value search data S212a and the minimum value are searched. The value search data S212b is output. In this way, the maximum / minimum search circuit 212 searches for the maximum value and the minimum value of each period based on the frequency determination pulse S211a.

平均/振幅算出回路214は、最大値検出データS213aと最小値検出データS213bとより、ディジタル映像信号S140の振幅および振幅の平均値を算出し、振幅を、振幅検出データS214bとして振幅判定回路215に出力する。そして、振幅検出パルスS211bが入力される時のみ、算出した平均値を、スライスレベルデータS214aとして2値化部220に出力する。また、次の周波数判定パルスS211aで新たな最大値検出データS213aと最小値検出データS213bとより新平均値を算出すると、さらに新平均値とスライスレベルデータS214aとの平均値を算出し、この算出値によりスライスレベルデータS214aを更新する。   The average / amplitude calculation circuit 214 calculates the amplitude and average value of the digital video signal S140 from the maximum value detection data S213a and the minimum value detection data S213b, and the amplitude is supplied to the amplitude determination circuit 215 as the amplitude detection data S214b. Output. Only when the amplitude detection pulse S211b is input, the calculated average value is output to the binarization unit 220 as slice level data S214a. When the new average value is calculated from the new maximum value detection data S213a and the minimum value detection data S213b at the next frequency determination pulse S211a, the average value of the new average value and the slice level data S214a is further calculated. The slice level data S214a is updated with the value.

振幅判定回路215には、振幅検出データS214bがCRI信号Cの振幅を有するものであるかを判定する際に判断基準として用いるCRI振幅判定値が、予め設定されている。振幅判定回路215は、このCRI振幅判定値を用いて、振幅検出データS214bがCRI信号Cの振幅を有するか判定し、CRI信号Cの振幅を有する期間に、振幅判定ゲートパルスS215をCRI判定回路211に出力する。   In the amplitude determination circuit 215, a CRI amplitude determination value used as a determination criterion when determining whether the amplitude detection data S214b has the amplitude of the CRI signal C is set in advance. The amplitude determination circuit 215 uses this CRI amplitude determination value to determine whether the amplitude detection data S214b has the amplitude of the CRI signal C. During the period in which the amplitude of the CRI signal C is present, the amplitude determination gate pulse S215 is used as the CRI determination circuit. 211 is output.

データスライス部220は、スライスレベルデータS214aを用いて閾値判定することにより、ディジタル映像信号S140を2値化し、2値化データS221を抜き取り回路222に出力する2値化回路221と、抜き取りパルス生成回路162が生成する抜き取りパルスS162のタイミングで2値化データS221から文字放送シリアルデータを抜き取り、抜き取りシリアルデータS222を出力する抜き取り回路222と、を有する。   The data slicing unit 220 binarizes the digital video signal S140 by performing threshold determination using the slice level data S214a, outputs the binarized data S221 to the sampling circuit 222, and generates a sampling pulse. A sampling circuit 222 that extracts text broadcast serial data from the binarized data S221 at the timing of the extraction pulse S162 generated by the circuit 162 and outputs the extracted serial data S222.

次に、以上のように構成されるデータスライス装置200の動作について、図面を参照しながら説明する。
図4は、群遅延及び電界強度の低下などにより歪んだアナログ映像信号S110が入力された場合の、データスライス装置200の動作を示すタイミング図である。図4において、図3と同一または相当する部分には同一符号を付してある。また、T11〜T19は、ディジタル映像信号S140が変化した時刻である。
Next, the operation of the data slicing device 200 configured as described above will be described with reference to the drawings.
FIG. 4 is a timing diagram showing the operation of the data slicing apparatus 200 when an analog video signal S110 distorted due to group delay, electric field strength reduction, or the like is input. In FIG. 4, the same reference numerals are given to the same or corresponding parts as in FIG. 3. T11 to T19 are times when the digital video signal S140 changes.

文字放送シリアルデータが重畳されたアナログ映像信号S110が映像信号入力端子110を介して入力されると、A/D変換器120はこれをディジタル信号に変換し、ディジタル映像信号S120をCRI検出部130とLPF140とに出力する。すると、LPF140は、ディジタル映像信号S120よりノイズを除去したディジタル映像信号S140を、スライスレベル算出部210と、データスライス部220とに出力する。   When the analog video signal S110 superimposed with the teletext serial data is input via the video signal input terminal 110, the A / D converter 120 converts the analog video signal S110 into a digital signal, and the digital video signal S120 is converted into the CRI detection unit 130. And the LPF 140. Then, the LPF 140 outputs the digital video signal S140 from which noise has been removed from the digital video signal S120, to the slice level calculation unit 210 and the data slice unit 220.

時刻T11において、水平同期信号Aと垂直同期信号とを含んだディジタル映像信号S120がCRI検出部130に入力されるので、同期分離回路131は、ディジタル映像信号S120から垂直同期信号S131aと水平同期信号S131bとを分離する。   At time T11, since the digital video signal S120 including the horizontal synchronization signal A and the vertical synchronization signal is input to the CRI detection unit 130, the synchronization separation circuit 131 receives the vertical synchronization signal S131a and the horizontal synchronization signal from the digital video signal S120. S131b is separated.

次に、CRI検出範囲信号生成回路132は、垂直同期信号S131aおよび水平同期信号S131bに基づいてCRI信号Cの開始位置(時刻T12)および終了位置を求め、CRI検出期間に、CRI検出範囲信号S132を出力する。   Next, the CRI detection range signal generation circuit 132 obtains the start position (time T12) and end position of the CRI signal C based on the vertical synchronization signal S131a and the horizontal synchronization signal S131b, and during the CRI detection period, the CRI detection range signal S132. Is output.

CRI検出範囲信号S132が入力されている間、スライスレベル算出部210はCRI信号Cに基づいてスライスレベルの算出処理を行うので、立下り検出回路151は、ディジタル映像信号S140の位相の変化を判定する。また、最大/最小検索回路212は、ディジタル映像信号S140の最大値および最小値を検索し、最大値検索データS212aと最小値検索データS212bとを、最大/最小検出回路213に出力する。   While the CRI detection range signal S132 is being input, the slice level calculation unit 210 performs slice level calculation processing based on the CRI signal C, so that the falling detection circuit 151 determines a change in the phase of the digital video signal S140. To do. Further, the maximum / minimum search circuit 212 searches for the maximum value and the minimum value of the digital video signal S140, and outputs the maximum value search data S212a and the minimum value search data S212b to the maximum / minimum detection circuit 213.

時刻T13および時刻T14において、立下り検出回路151は、ディジタル映像信号S140のノイズC’の立ち下がりをCRI信号Cの立ち下がりとして誤検出し、立ち下り検出パルスS151を生成する。すると、周波数算出回路152は、時刻T13および時刻T14において検出した立ち下り検出パルスS151より、ディジタル映像信号S140の周波数を算出し、周波数データS152を出力する。周波数判定回路153は、この周波数データS152に基づいて、立下り検出回路151において検出した立ち下がりが、所定の文字放送方式に対応した信号であると誤判定し、周波数判定ゲートパルスS153をCRI判定回路211に出力する。この周波数判定ゲートパルスS153に基づいて、CRI判定回路211は、立ち下り検出パルスS151が文字放送方式に対応したパルスであると誤判定し、周波数判定パルスS211aを、最大/最小検索回路212と最大/最小検出回路213とに出力する。   At time T13 and time T14, the falling detection circuit 151 erroneously detects the falling of the noise C ′ of the digital video signal S140 as the falling of the CRI signal C, and generates a falling detection pulse S151. Then, the frequency calculation circuit 152 calculates the frequency of the digital video signal S140 from the falling detection pulses S151 detected at time T13 and time T14, and outputs frequency data S152. Based on the frequency data S152, the frequency determination circuit 153 erroneously determines that the falling detected by the falling detection circuit 151 is a signal corresponding to a predetermined text broadcasting system, and determines the frequency determination gate pulse S153 as a CRI determination. Output to the circuit 211. Based on the frequency determination gate pulse S153, the CRI determination circuit 211 erroneously determines that the falling detection pulse S151 is a pulse corresponding to the text broadcasting system, and determines the frequency determination pulse S211a as the maximum / minimum search circuit 212 and the maximum. / Output to the minimum detection circuit 213.

最大/最小検出回路213は、この周波数判定パルスS211aをロードパルスとして、時刻T13、T14間に検索された最大値検索データS212aと最小値検索データS212bとをサンプリングすることにより、ディジタル映像信号S140の最大値と最小値とを検出し、最大値検出データS213aと最小値検出データS213bとを出力する。また、最大/最小検出回路213が最大値検索データS212aと最小値検索データS212bとをサンプリングした後、最大/最小検索回路212に周波数判定パルスS211aが入力されると、最大/最小検索回路212は、時刻T13、T14間に検索した最大値および最小値をリセットし、時刻T14以降のディジタル映像信号S140の最大値および最小値を検索する。平均/振幅算出回路214は、最大値検出データ213aと最小値検出データS213bとより、ディジタル映像信号S140の振幅を算出し、算出値を振幅検出データS214bとして振幅判定回路215に出力する。なお、この時には振幅検出パルスS211bが生成されていないので、スライスレベルデータS214aは出力されない。   The maximum / minimum detection circuit 213 uses the frequency determination pulse S211a as a load pulse, and samples the maximum value search data S212a and the minimum value search data S212b searched between times T13 and T14, thereby obtaining the digital video signal S140. The maximum value and the minimum value are detected, and maximum value detection data S213a and minimum value detection data S213b are output. Further, after the maximum / minimum detection circuit 213 samples the maximum value search data S212a and the minimum value search data S212b, when the frequency determination pulse S211a is input to the maximum / minimum search circuit 212, the maximum / minimum search circuit 212 The maximum value and the minimum value searched between times T13 and T14 are reset, and the maximum value and the minimum value of the digital video signal S140 after time T14 are searched. The average / amplitude calculation circuit 214 calculates the amplitude of the digital video signal S140 from the maximum value detection data 213a and the minimum value detection data S213b, and outputs the calculated value to the amplitude determination circuit 215 as amplitude detection data S214b. At this time, since the amplitude detection pulse S211b is not generated, the slice level data S214a is not output.

次に、振幅判定回路215において、予め設定されているCRI振幅判定値を用いて、振幅検出データS214bがCRI信号Cの振幅を有するか判定する。この場合、振幅検出データS214bはノイズC’より検出されたものであり、CRI信号Cより検出される振幅検出データより小さい値であるため、CRI振幅判定値の条件を満たさない。このため、振幅判定回路215は、この振幅検出データS214bがCRI信号Cの振幅を有さないと判定し、振幅判定ゲートパルスS215を生成しない。   Next, the amplitude determination circuit 215 determines whether the amplitude detection data S214b has the amplitude of the CRI signal C by using a preset CRI amplitude determination value. In this case, the amplitude detection data S214b is detected from the noise C 'and is smaller than the amplitude detection data detected from the CRI signal C, and therefore does not satisfy the condition of the CRI amplitude determination value. For this reason, the amplitude determination circuit 215 determines that the amplitude detection data S214b does not have the amplitude of the CRI signal C, and does not generate the amplitude determination gate pulse S215.

時刻T15および時刻T16において、CRI信号Cが検出される。立下り検出回路151は、時刻T15においてCRI信号Cの最初の立ち下がりを、時刻T16においてCRI信号Cの2番目の立ち下がりを、検出し、立ち下り検出パルスS151を出力する。この立ち下り検出パルスS151により周波数算出回路152が算出した周波数は、文字放送方式に対応した周波数であるので、周波数判定パルスS211aが最大/最小検索回路212と最大/最小検出回路213とに入力される。   At time T15 and time T16, the CRI signal C is detected. The fall detection circuit 151 detects the first fall of the CRI signal C at time T15 and the second fall of the CRI signal C at time T16, and outputs a fall detection pulse S151. Since the frequency calculated by the frequency calculation circuit 152 by the falling detection pulse S151 is a frequency corresponding to the text broadcasting system, the frequency determination pulse S211a is input to the maximum / minimum search circuit 212 and the maximum / minimum detection circuit 213. The

最大/最小検出回路213は、この周波数判定パルスS211aをロードパルスとして、時刻T15、時刻T16間に検索された最大値検索データS212aと最小値検索データS212bとをサンプリングすることにより、ディジタル映像信号S140の最大値と最小値とを検出し、最大値検出データS213aと最小値検出データS213bとを出力する。また、最大/最小検索回路212は、周波数判定パルスS211aに基づいて、時刻T15、時刻T16間に検索した最大値検索データS212aと最小値検索データS212bとをリセットし、時刻T16以降のディジタル映像信号S140の最大値および最小値を検索する。平均/振幅算出回路214は、最大値検出データ213aと最小値検出データS213bとより、ディジタル映像信号の振幅を算出し、算出値を振幅検出データS214bとして振幅判定回路215に出力する。   The maximum / minimum detection circuit 213 uses the frequency determination pulse S211a as a load pulse, and samples the maximum value search data S212a and the minimum value search data S212b searched between time T15 and time T16, thereby digital signal S140. Are detected, and maximum value detection data S213a and minimum value detection data S213b are output. The maximum / minimum search circuit 212 resets the maximum value search data S212a and the minimum value search data S212b searched between time T15 and time T16 based on the frequency determination pulse S211a, and the digital video signal after time T16. The maximum value and the minimum value of S140 are searched. The average / amplitude calculation circuit 214 calculates the amplitude of the digital video signal from the maximum value detection data 213a and the minimum value detection data S213b, and outputs the calculated value to the amplitude determination circuit 215 as the amplitude detection data S214b.

この振幅検出データS214bはCRI信号Cの振幅を有するので、振幅判定回路215は、振幅判定ゲートパルスS215をCRI判定回路211に出力する。すると、CRI判定回路211は振幅判定ゲートパルスS215に基づいて、周波数判定パルスS211aからCRI信号Cのパルスを抽出した振幅判定パルスS211bを出力する。振幅判定パルスS211bが入力されると、平均/振幅算出回路214は、算出したディジタル映像信号S140の振幅の平均値をスライスレベルデータS214aとしてデータスライス部220に出力する。ここで、スライスレベルデータS214aは、CRI信号CのノイズC’より検出した最大値検索データおよび最小値検索データを用いることなく、CRI信号Cの最大値検索データS212aおよび最小値検索データS212bを用いて算出したものである。このため、スライスレベルデータS214aに基づいて設定するスライスレベルSLV7は、時刻T17以降に、フレーミングコート信号Dおよびテキストデータ信号Eを2値化する際に用いることができる、適切なレベルとなっている。   Since the amplitude detection data S214b has the amplitude of the CRI signal C, the amplitude determination circuit 215 outputs the amplitude determination gate pulse S215 to the CRI determination circuit 211. Then, the CRI determination circuit 211 outputs an amplitude determination pulse S211b obtained by extracting a pulse of the CRI signal C from the frequency determination pulse S211a based on the amplitude determination gate pulse S215. When the amplitude determination pulse S211b is input, the average / amplitude calculation circuit 214 outputs the calculated average value of the amplitude of the digital video signal S140 to the data slice unit 220 as slice level data S214a. Here, the slice level data S214a uses the maximum value search data S212a and the minimum value search data S212b of the CRI signal C without using the maximum value search data and the minimum value search data detected from the noise C ′ of the CRI signal C. Calculated. Therefore, the slice level SLV7 set based on the slice level data S214a is an appropriate level that can be used when binarizing the framing coat signal D and the text data signal E after time T17. .

時刻T17において、立下り検出回路151はCRI信号Cの3番目の立ち下がりを検出し、立ち下り検出パルスS151を出力する。時刻T16および時刻T17に出力された立ち下り検出パルスS151により周波数算出回路152が算出した周波数は、文字放送方式に対応した周波数であるので、周波数判定パルスS211aが最大/最小検索回路212と最大/最小検出回路213とに入力される。   At time T17, the falling detection circuit 151 detects the third falling of the CRI signal C and outputs a falling detection pulse S151. Since the frequency calculated by the frequency calculation circuit 152 by the falling detection pulse S151 output at the time T16 and the time T17 is a frequency corresponding to the text broadcasting system, the frequency determination pulse S211a is connected to the maximum / minimum search circuit 212 and the maximum / minimum search circuit 212. Input to the minimum detection circuit 213.

最大/最小検出回路213は、この周波数判定パルスS211aを検出した最大値検出データS213aと最小値検出データS213bとを、平均/振幅算出回路214に出力する。そして、最大/最小検索回路212は、周波数判定パルスS211aに基づいて、最大値検索データS212aと最小値検索データS212bとをリセットし、時刻T17以降の最大値および最小値を検索する。平均/振幅算出回路214は、最大値検出データ213aと最小値検出データS213bとより、ディジタル映像信号S140の振幅を算出し、算出値を振幅検出データS214bとして振幅判定回路215に出力する。   The maximum / minimum detection circuit 213 outputs the maximum value detection data S213a and the minimum value detection data S213b obtained by detecting the frequency determination pulse S211a to the average / amplitude calculation circuit 214. Then, the maximum / minimum search circuit 212 resets the maximum value search data S212a and the minimum value search data S212b based on the frequency determination pulse S211a, and searches for the maximum value and the minimum value after time T17. The average / amplitude calculation circuit 214 calculates the amplitude of the digital video signal S140 from the maximum value detection data 213a and the minimum value detection data S213b, and outputs the calculated value to the amplitude determination circuit 215 as amplitude detection data S214b.

この振幅検出データS214bはCRI信号Cの振幅を有するので、振幅判定回路215は振幅判定ゲートパルスS215をCRI判定回路211に出力し、CRI判定回路211は振幅判定ゲートパルスS215に基づいて、振幅判定パルスS211bを出力する。   Since the amplitude detection data S214b has the amplitude of the CRI signal C, the amplitude determination circuit 215 outputs the amplitude determination gate pulse S215 to the CRI determination circuit 211, and the CRI determination circuit 211 determines the amplitude based on the amplitude determination gate pulse S215. The pulse S211b is output.

振幅判定パルスS211bが入力されると、平均/振幅算出回路214は、ディジタル映像信号S140の振幅の平均値を算出する。さらに、時刻T17において算出した平均値と、時刻T16において算出したスライスレベルデータと、の平均値を算出し、この算出値によりスライスレベルデータS214aを更新する。ここで、図4においては、時刻T6、時刻T7間のディジタル映像信号S140の最大値および最小値が、時刻T5、時刻T6間より小さい例を示しており、時刻T7において算出されたスライスレベルデータS214aに基づいて設定したスライスレベルSLV8は、スライスレベルSLV7より低いレベルになっている。   When the amplitude determination pulse S211b is input, the average / amplitude calculation circuit 214 calculates the average value of the amplitude of the digital video signal S140. Further, an average value of the average value calculated at time T17 and the slice level data calculated at time T16 is calculated, and the slice level data S214a is updated with the calculated value. Here, FIG. 4 shows an example in which the maximum value and the minimum value of the digital video signal S140 between time T6 and time T7 are smaller than between time T5 and time T6, and slice level data calculated at time T7. The slice level SLV8 set based on S214a is lower than the slice level SLV7.

また、時刻T18において、立下り検出回路151はCRI信号Cの4番目の立ち下がりを検出し、立ち下り検出パルスS151を出力する。この立ち下がりパルスと、最大/最小検索回路212において検索した最大値検索データS212aおよび最小値検索データS212bとに基づいて、スライスレベル算出部210は時刻T17において行った処理と同様の処理を行い、スライスレベルデータS214aを更新する。   At time T18, the falling detection circuit 151 detects the fourth falling of the CRI signal C and outputs a falling detection pulse S151. Based on this falling pulse and the maximum value search data S212a and minimum value search data S212b searched by the maximum / minimum search circuit 212, the slice level calculation unit 210 performs the same process as the process performed at time T17, The slice level data S214a is updated.

時刻T19においてCRI検出範囲信号S132が終了すると、スライスレベル算出部210はスライスレベルの算出処理を終了する。このため、時刻T19におけるスライスレベルデータS214aは、この時刻以降において変更されることのない、確定されたデータとなる。ここで、図4に示したように、時刻T7、時刻T8間のディジタル映像信号S140の最大値および最小値が、時刻T6、時刻T7間より低い場合、時刻T8において算出されたスライスレベルデータS214aに基づいて設定したスライスレベルSLV9は、スライスレベルSLV8より低いレベルになっている。   When the CRI detection range signal S132 ends at time T19, the slice level calculation unit 210 ends the slice level calculation process. For this reason, the slice level data S214a at time T19 is determined data that is not changed after this time. Here, as shown in FIG. 4, when the maximum value and the minimum value of the digital video signal S140 between time T7 and time T8 are lower than between time T6 and time T7, slice level data S214a calculated at time T8. The slice level SLV9 set based on the above is lower than the slice level SLV8.

また、時刻T19においてフレーミングコード信号Dを含んだディジタル映像信号S140がデータスライス部220に入力されると、2値化回路221は、スライスレベルデータS214aで閾値判定することにより、2値化データS221を生成する。そして、抜き取り回路222において、抜き取りパルス生成回路162が生成する抜き取りパルスS162で、2値化データS221から文字放送シリアルデータを抜き取り、抜き取りシリアルデータS222をデコード回路230に出力する。デコード回路230は、この抜き取りシリアルデータS222をパラレルデータに変換し、フレーミングコードを検出する。   In addition, when the digital video signal S140 including the framing code signal D is input to the data slicing unit 220 at time T19, the binarization circuit 221 determines the threshold value using the slice level data S214a, thereby binarizing data S221. Is generated. In the extraction circuit 222, the character broadcast serial data is extracted from the binarized data S 221 by the extraction pulse S 162 generated by the extraction pulse generation circuit 162, and the extraction serial data S 222 is output to the decoding circuit 230. The decoding circuit 230 converts the extracted serial data S222 into parallel data, and detects a framing code.

フレーミングコードの検出後、テキストデータ信号Eを含んだディジタル映像信号S140(図示しない)がデータスライス部220に入力されると、フレーミングコード信号Dと同様に、2値化回路221は、スライスレベルデータS214aを用いてディジタル映像信号S140を2値化することにより、2値化データS221を生成する。そして、抜き取り回路222において、抜き取りパルスS162で2値化データS221から文字放送シリアルデータを抜き取り、抜き取りシリアルデータS222をデコード回路230に出力する。デコード回路230は、抜き取りシリアルデータS222をパラレルデータに変換し、フレーミングコードに示された文字放送の種類に応じたデコード処理を行い、デコードデータS230を映像信号出力端子190を介してデータスライス装置200外部に出力する。   After detection of the framing code, when a digital video signal S140 (not shown) including the text data signal E is input to the data slicing unit 220, the binarization circuit 221 performs slice level data similarly to the framing code signal D. The binarized data S221 is generated by binarizing the digital video signal S140 using S214a. Then, the extraction circuit 222 extracts the character broadcast serial data from the binarized data S221 by the extraction pulse S162, and outputs the extraction serial data S222 to the decoding circuit 230. The decoding circuit 230 converts the extracted serial data S222 into parallel data, performs a decoding process according to the type of character broadcast indicated in the framing code, and the decoded data S230 is sent to the data slicing device 200 via the video signal output terminal 190. Output to the outside.

以上のように、本実施の形態2によるデータスライス装置200によれば、平均/振幅算出回路214において算出した振幅検出データS214bがCRI信号Cの振幅を有するか判定する振幅判定回路215を備え、平均/振幅算出回路214は、振幅検出データS214bがCRI信号Cの振幅を有すると判定されたときにのみ、算出した平均値をスライスレベルデータS214aとして出力するので、伝送系における群遅延及び電界強度の低下による信号の歪みによって発生するノイズをCRI信号Cとして誤検出した場合であっても、そのノイズより算出した平均値を除外し、CRI信号Cのみの平均値に基づいてスライスレベルデータS214aを算出することができる。   As described above, the data slicing device 200 according to the second embodiment includes the amplitude determination circuit 215 that determines whether the amplitude detection data S214b calculated by the average / amplitude calculation circuit 214 has the amplitude of the CRI signal C. The average / amplitude calculation circuit 214 outputs the calculated average value as slice level data S214a only when it is determined that the amplitude detection data S214b has the amplitude of the CRI signal C. Therefore, the group delay and electric field strength in the transmission system are output. Even when noise generated due to signal distortion due to a decrease in CRI is erroneously detected as the CRI signal C, the average value calculated from the noise is excluded, and the slice level data S214a is obtained based on the average value of only the CRI signal C. Can be calculated.

また、ノイズをCRI信号として誤検出した場合であっても、そのノイズに基づくスライスレベルデータの算出を行わないので、例えば、ヨーロッパで採用されているテレテキス方式のように、規格で決められた垂直帰線期間のラインにCRI信号が重畳されない文字放送の信号においても、ノイズに基づくスライスレベルデータの算出を抑制することができる。   Even if noise is erroneously detected as a CRI signal, slice level data is not calculated based on the noise, so that, for example, as in the teletext method adopted in Europe, the vertical level determined by the standard is used. The calculation of slice level data based on noise can be suppressed even in a teletext signal in which the CRI signal is not superimposed on the blanking line.

(実施の形態3)
次に、本発明の実施の形態3によるデータスライス装置、データスライス方法、および振幅判定値設定方法について、図面を参照しながら説明する。
図5は、本実施の形態3に係るデータスライス装置300の構成を示すブロック図である。なお、図5において、図1および図3に示すものと同一または相当する部分には同一符号を付して、詳しい説明を省略する。
(Embodiment 3)
Next, a data slicing device, a data slicing method, and an amplitude determination value setting method according to Embodiment 3 of the present invention will be described with reference to the drawings.
FIG. 5 is a block diagram showing a configuration of data slicing device 300 according to the third embodiment. In FIG. 5, the same or corresponding parts as those shown in FIGS. 1 and 3 are denoted by the same reference numerals, and detailed description thereof is omitted.

図5に示すように本実施の形態3によるデータスライス装置300は、映像信号入力端子110を介して入力される、文字放送シリアルデータが重畳されたアナログ映像信号S110を、ディジタル映像信号S120に変換するA/D変換器120と、ディジタル映像信号S120に基づいて、CRI検出期間であることを示すCRI検出範囲信号S132を生成するCRI検出部130と、ディジタル映像信号S120よりノイズを除去し、ディジタル映像信号S140を出力するLPF140と、ディジタル映像信号S140の振幅に基づき、検出した信号がCRI信号Cであるか判断し、CRI信号Cのみの最大値と最小値とを用いてスライスレベルおよびスライスレベルのオフセットを算出し、基準スライスレベル、および基準スライスレベルにオフセットを設けた上側スライスレベルと下側スライスレベルとを設定するスライスレベル算出部310と、スライスレベル算出部310で設定した各スライスレベルを用いてディジタル映像信号S140を2値化するデータスライス部160と、2値化したシリアルの各データをパラレルデータに変換し、文字放送の種別に応じた誤り訂正などのデコード処理を行うデコード回路170と、デコードした各データよりエラーが含まれていないデータを選択して映像信号出力端子190より出力するデータ選択部320と、デコード回路170で検出されたエラーの数に基づいて、スライスレベル算出部310がディジタル映像信号S140の振幅を判定する時に用いる振幅判定値を設定し、最適振幅判定値S332を出力する振幅判定値設定部330と、を有する。   As shown in FIG. 5, the data slicing device 300 according to the third embodiment converts an analog video signal S110, which is input via a video signal input terminal 110 and superimposed with teletext serial data, into a digital video signal S120. Noise is removed from the digital video signal S120 by removing the noise from the digital video signal S120, the A / D converter 120 that performs the CRI detection range signal S132 indicating the CRI detection period based on the digital video signal S120, and the digital video signal S120. Based on the LPF 140 that outputs the video signal S140 and the amplitude of the digital video signal S140, it is determined whether the detected signal is the CRI signal C, and the slice level and the slice level are determined using the maximum value and the minimum value of only the CRI signal C. The offset of the reference slice level and reference A slice level calculation unit 310 for setting an upper slice level and a lower slice level with an offset in the slice level, and a data slice for binarizing the digital video signal S140 using each slice level set by the slice level calculation unit 310 Unit 160, a binarized serial data is converted into parallel data, a decoding circuit 170 that performs decoding processing such as error correction according to the type of teletext, and no error is included in each decoded data Data selection unit 320 that selects data and outputs it from video signal output terminal 190, and slice level calculation unit 310 uses this when determining the amplitude of digital video signal S140 based on the number of errors detected by decoding circuit 170. An amplitude determination value is set, and an optimum amplitude determination value S332 is output. It has a width determination value setting unit 330, a.

スライスレベル算出部310は、CRI検出期間にディジタル映像信号S140より立ち下がりを検出すると、立ち下り検出パルスS151を出力する立下り検出回路151と、立ち下り検出パルスS151よりディジタル映像信号S140の周波数を算出し、周波数データS152を出力する周波数算出回路152と、所定の文字放送方式に対応した周波数が算出される期間に、周波数判定ゲートパルスS153を出力する周波数判定回路153と、立ち下り検出パルスS151より所定の文字放送方式の立ち下がりに対応したパルスを抽出した周波数判定パルスS211a、および後述する振幅判定ゲートパルスS312に基づいて文字放送のパルス(CRI信号C)を抽出した振幅判定パルスS211bを出力するCRI判定回路211と、を有する。また、スライスレベル算出部310は、CRI検出期間にディジタル映像信号S140の最大値と最小値とを検索し、最大値検索データS212aと最小値検索データS212bとを出力する最大/最小検索回路212と、周波数判定パルスS211aをロードパルスとして、最大値検索データS212aと最小値検索データS212bとからディジタル映像信号S140の最大値と最小値とを検出し、最大値検出データS213aと最小値検出データS213bとを出力する最大/最小検出回路213と、最大値検出データS213aと最小値検出データS213bとから、ディジタル映像信号S140の振幅および振幅の平均値を算出し、平均値を基準スライスレベルデータS311a、振幅を振幅検出データS311b、CRI信号Cの振幅を振幅レベルデータS311cとして出力する平均/振幅算出回路311と、振幅レベルデータS311cよりオフセット値を算出し、基準スライスレベルデータS311aにオフセットを持たせた上側スライスレベルデータS157aと下側スライスレベルデータS157bとを算出するスライスレベルオフセット値算出回路157と、予め決定されたCRI振幅判定値または、振幅判定値設定部330より入力される最適振幅判定値S332に基づいて、振幅検出データS311bが、所定の文字放送の信号の振幅を有するか判定し、CRI信号Cの振幅を有する期間に振幅判定ゲートパルスS312を出力する振幅判定回路312と、を有する。   When the slice level calculation unit 310 detects a falling edge from the digital video signal S140 during the CRI detection period, the slice level calculation unit 310 outputs the falling detection pulse S151, and the frequency of the digital video signal S140 from the falling detection pulse S151. The frequency calculation circuit 152 that calculates and outputs the frequency data S152, the frequency determination circuit 153 that outputs the frequency determination gate pulse S153 during the period in which the frequency corresponding to the predetermined teletext system is calculated, and the falling detection pulse S151 A frequency determination pulse S211a obtained by extracting a pulse corresponding to the fall of a predetermined teletext system and an amplitude judgment pulse S211b obtained by extracting a teletext pulse (CRI signal C) based on an amplitude judgment gate pulse S312 described later are output. CRI determination circuit 21 And, with a. In addition, the slice level calculation unit 310 searches for the maximum value and the minimum value of the digital video signal S140 during the CRI detection period, and outputs a maximum value search data S212a and a minimum value search data S212b. The maximum value and the minimum value of the digital video signal S140 are detected from the maximum value search data S212a and the minimum value search data S212b using the frequency determination pulse S211a as a load pulse, and the maximum value detection data S213a and the minimum value detection data S213b are detected. Is calculated from the maximum / minimum detection circuit 213, the maximum value detection data S213a and the minimum value detection data S213b, and the average value of the amplitude and amplitude of the digital video signal S140 is calculated. The average value is the reference slice level data S311a and the amplitude. Amplitude detection data S311b, CRI signal C An average / amplitude calculation circuit 311 for outputting the amplitude as amplitude level data S311c, and an upper slice level data S157a and lower slice level data in which an offset value is calculated from the amplitude level data S311c and the reference slice level data S311a is offset. Based on the slice level offset value calculation circuit 157 for calculating S157b and the CRI amplitude determination value determined in advance or the optimum amplitude determination value S332 input from the amplitude determination value setting unit 330, the amplitude detection data S311b is predetermined. An amplitude determination circuit 312 that determines whether or not it has the amplitude of the teletext signal and outputs an amplitude determination gate pulse S312 in a period having the amplitude of the CRI signal C.

ここで、平均/振幅算出回路311は、最大値検出データS213aと最小値検出データS213bとより、ディジタル映像信号S140の振幅および振幅の平均値を算出し、振幅を、振幅検出データS311bとして振幅判定回路312に出力する。そして、振幅検出パルスS211bが入力されている時のみ、算出した平均値を、基準スライスレベルデータS311aとして、スライスレベルオフセット値算出回路157と2値化部220とに出力する。また、振幅判定パルスS211bが入力された時に、算出した振幅を振幅レベルデータS311cとして、スライスレベルオフセット値算出回路157に出力する。   Here, the average / amplitude calculation circuit 311 calculates the amplitude and average value of the amplitude of the digital video signal S140 from the maximum value detection data S213a and the minimum value detection data S213b, and determines the amplitude as the amplitude detection data S311b. Output to circuit 312. Then, only when the amplitude detection pulse S211b is input, the calculated average value is output as the reference slice level data S311a to the slice level offset value calculation circuit 157 and the binarization unit 220. When the amplitude determination pulse S211b is input, the calculated amplitude is output to the slice level offset value calculation circuit 157 as amplitude level data S311c.

また、平均/振幅算出回路311は、次の周波数判定パルスS211aで新たな最大値検出データS213aと最小値検出データS213bとより新振幅および新平均値を算出すると、さらに新平均値と基準スライスレベルデータS311aとの平均値を算出し、算出値によりスライスレベルデータS311aを更新する。同様に、新振幅と振幅レベルデータS311cとの平均値を算出し、算出値により振幅レベルデータS311cを更新する。   Further, when the average / amplitude calculation circuit 311 calculates a new amplitude and a new average value from the new maximum value detection data S213a and the minimum value detection data S213b at the next frequency determination pulse S211a, the new average value and the reference slice level are further calculated. An average value with the data S311a is calculated, and the slice level data S311a is updated with the calculated value. Similarly, the average value of the new amplitude and the amplitude level data S311c is calculated, and the amplitude level data S311c is updated with the calculated value.

振幅判定回路312には、振幅検出データS311bがCRI信号Cの振幅を有するものであるかを判定する際に判断基準として用いるCRI振幅判定値が予め設定されている。振幅判定回路312は、CRI振幅判定値を用いて、振幅検出データS311bがCRI信号Cの振幅を有するか判定し、CRI信号Cの振幅を有する期間に、振幅判定ゲートパルスS312をCRI判定回路211に出力する。また、振幅判定値設定部330より最適振幅判定値S332が入力されると、最適振幅判定値S332によりCRI振幅判定値を更新し、更新したCRI振幅判定値を用いて、振幅検出データS311bの振幅を判定する。   In the amplitude determination circuit 312, a CRI amplitude determination value used as a determination criterion when determining whether the amplitude detection data S 311 b has the amplitude of the CRI signal C is set in advance. The amplitude determination circuit 312 determines whether the amplitude detection data S311b has the amplitude of the CRI signal C using the CRI amplitude determination value, and the amplitude determination gate pulse S312 is used as the CRI determination circuit 211 in a period having the amplitude of the CRI signal C. Output to. When the optimum amplitude determination value S332 is input from the amplitude determination value setting unit 330, the CRI amplitude determination value is updated with the optimum amplitude determination value S332, and the amplitude of the amplitude detection data S311b is updated using the updated CRI amplitude determination value. Determine.

また、データ選択部320は、デコードエラーのないデコードデータを示すデコードデータ選択信号S321aに加えて、最終デコードデータS182にデコードエラーがあるかを示すエラー検出信号S321bを出力するエラー検出回路321と、デコードデータ選択信号S321aに基づき、デコードデータS170a〜S170cよりデコードエラーのないデコードデータを選択し、最終デコードデータS182を映像信号出力端子190より装置外部に出力するデコードデータ選択回路182と、を有する。   Further, the data selection unit 320 outputs an error detection circuit 321 that outputs an error detection signal S321b indicating whether or not there is a decoding error in the final decoding data S182, in addition to the decoding data selection signal S321a indicating decoding data having no decoding error; A decoding data selection circuit 182 that selects decoding data without decoding error from the decoding data S170a to S170c based on the decoding data selection signal S321a, and outputs the final decoding data S182 from the video signal output terminal 190 to the outside of the apparatus;

振幅判定値設定部330は、エラー検出信号S321bより、所定の期間に検出されるデコードエラーの数をカウントし、エラー数カウントデータS331を生成するエラー数カウント回路331と、エラー数カウントデータS331に基づいて、CRI振幅判定値の最適値を決定し、最適振幅判定値S332をスライスレベル算出部310の振幅判定回路312に出力するコントローラ332と、を有する。   The amplitude determination value setting unit 330 counts the number of decoding errors detected during a predetermined period from the error detection signal S321b, and generates an error number count data S331 and an error number count data S331. And a controller 332 that determines an optimal value of the CRI amplitude determination value and outputs the optimal amplitude determination value S332 to the amplitude determination circuit 312 of the slice level calculation unit 310.

ここで、コントローラ332は、CRI振幅判定値が各値である場合の、そのCRI振幅判定値に対するエラー数カウントデータの関係を保持している。この各CRI振幅判定値とエラー数カウントデータとの関係の例を、図6に示す。なお、各CRI振幅判定値とエラー数カウントデータとの関係を取得する方法は、後で詳述する。エラー数カウントデータS331が入力されると、コントローラ332は、各CRI振幅判定値とエラー数カウントデータとの関係より、エラー数がエラー数カウントデータS331である場合の最適なCRI振幅判定値を検索する。そして、検出した最適なCRI振幅判定値を、最適振幅判定値S332として振幅判定回路312に出力する。   Here, the controller 332 holds the relationship of the error count data to the CRI amplitude determination value when the CRI amplitude determination value is each value. An example of the relationship between each CRI amplitude determination value and the error count data is shown in FIG. A method for acquiring the relationship between each CRI amplitude determination value and the error count data will be described in detail later. When the error number count data S331 is input, the controller 332 searches the optimum CRI amplitude determination value when the error number is the error number count data S331 from the relationship between each CRI amplitude determination value and the error number count data. To do. Then, the detected optimal CRI amplitude determination value is output to the amplitude determination circuit 312 as the optimal amplitude determination value S332.

次に、以上のように構成されるデータスライス装置300の動作について、図面を参照しながら説明する。
図7は、群遅延及び電界強度の低下などにより歪んだアナログ映像信号S110が入力された場合の、データスライス装置300の動作を示すタイミング図である。図7において、図5と同一または相当する部分には同一符号を付してある。また、T21〜T29は、ディジタル映像信号S140が変化した時刻である。
Next, the operation of the data slicing device 300 configured as described above will be described with reference to the drawings.
FIG. 7 is a timing diagram showing the operation of the data slicing device 300 when an analog video signal S110 distorted due to group delay, electric field strength reduction, or the like is input. In FIG. 7, the same or corresponding parts as those in FIG. T21 to T29 are times when the digital video signal S140 changes.

文字放送シリアルデータが重畳されたアナログ映像信号S110が映像信号入力端子110を介して入力されると、A/D変換器120はこれをディジタル信号に変換し、ディジタル映像信号S120をCRI検出部130とLPF140とに出力する。すると、LPF140は、ディジタル映像信号S120よりノイズを除去したディジタル映像信号S140を、スライスレベル算出部310と、データスライス部160とに出力する。   When the analog video signal S110 superimposed with the teletext serial data is input via the video signal input terminal 110, the A / D converter 120 converts the analog video signal S110 into a digital signal, and the digital video signal S120 is converted into the CRI detection unit 130. And the LPF 140. Then, the LPF 140 outputs the digital video signal S140 from which noise has been removed from the digital video signal S120, to the slice level calculation unit 310 and the data slice unit 160.

時刻T21において、水平同期信号Aと垂直同期信号とを含んだディジタル映像信号S120がCRI検出部130に入力されるので、同期分離回路131は、ディジタル映像信号S120から垂直同期信号S131aと水平同期信号S131bとを分離する。   At time T21, since the digital video signal S120 including the horizontal synchronization signal A and the vertical synchronization signal is input to the CRI detection unit 130, the synchronization separation circuit 131 receives the vertical synchronization signal S131a and the horizontal synchronization signal from the digital video signal S120. S131b is separated.

次に、CRI検出範囲信号生成回路132は、垂直同期信号S131aおよび水平同期信号S131bに基づいてCRI信号Cの開始位置(時刻T22)および終了位置を求め、CRI検出期間に、CRI検出範囲信号S132を出力する。   Next, the CRI detection range signal generation circuit 132 obtains the start position (time T22) and end position of the CRI signal C based on the vertical synchronization signal S131a and the horizontal synchronization signal S131b, and the CRI detection range signal S132 during the CRI detection period. Is output.

CRI検出範囲信号S132が入力されている間、スライスレベル算出部310はCRI信号Cに基づいてスライスレベルの算出処理を行うので、立下り検出回路151は、ディジタル映像信号S140の位相の変化を判定する。また、最大/最小検索回路212は、ディジタル映像信号S140の最大値および最小値を検索し、最大値検索データS212aと最小値検索データS212bとを、最大/最小値検出回路213に出力する。   While the CRI detection range signal S132 is input, the slice level calculation unit 310 performs slice level calculation processing based on the CRI signal C, so that the falling detection circuit 151 determines the change in the phase of the digital video signal S140. To do. Further, the maximum / minimum search circuit 212 searches for the maximum value and the minimum value of the digital video signal S140, and outputs the maximum value search data S212a and the minimum value search data S212b to the maximum / minimum value detection circuit 213.

時刻T23および時刻T24において、立下り検出回路151は、ディジタル映像信号S140のノイズC’の立ち下がりをCRI信号Cの立ち下がりとして誤検出し、立ち下り検出パルスS151を生成する。すると、周波数算出回路152は、時刻T23および時刻T24において検出した立ち下り検出パルスS151より、ディジタル映像信号S140の周波数を算出し、周波数データS152を出力する。周波数判定回路153は、この周波数データS152に基づいて、立下り検出回路151において検出した立ち下がりが、所定の文字放送方式に対応した信号であると判定し、周波数判定ゲートパルスS153をCRI判定回路211に出力する。この周波数判定ゲートパルスS153に基づいて、CRI判定回路211は、立ち下り検出パルスS151が文字放送方式に対応したパルスであると判定し、周波数判定パルスS211aを、最大/最小検索回路212と最大/最小検出回路213とに出力する。   At time T23 and time T24, the falling detection circuit 151 erroneously detects the falling of the noise C ′ of the digital video signal S140 as the falling of the CRI signal C, and generates a falling detection pulse S151. Then, the frequency calculation circuit 152 calculates the frequency of the digital video signal S140 from the falling detection pulses S151 detected at time T23 and time T24, and outputs the frequency data S152. Based on the frequency data S152, the frequency determination circuit 153 determines that the falling detected by the falling detection circuit 151 is a signal corresponding to a predetermined text broadcasting system, and uses the frequency determination gate pulse S153 as a CRI determination circuit. 211 is output. Based on the frequency determination gate pulse S153, the CRI determination circuit 211 determines that the falling detection pulse S151 is a pulse corresponding to the text broadcasting system, and determines the frequency determination pulse S211a as the maximum / minimum search circuit 212 and the maximum / minimum search circuit 212. Output to the minimum detection circuit 213.

最大/最小検出回路213は、この周波数判定パルスS211aをロードパルスとして、時刻T23、T24間に検索された最大値検索データS212aと最小値検索データS212bとをサンプリングすることにより、ディジタル映像信号S140の最大値と最小値とを検出し、最大値検出データS213aと最小値検出データS213bとを出力する。また、最大/最小検索回路212は、周波数判定パルスS211aに基づいて、時刻T23、T24間に検索した最大値検索データS212aと最小値検索データS212bとをリセットし、時刻T24以降のディジタル映像信号S140の最大値および最小値を検索する。平均/振幅算出回路311は、最大値検出データ213aと最小値検出データS213bとより、ディジタル映像信号S140の振幅を算出し、算出値を振幅検出データS311bとして振幅判定回路312に出力する。なお、この時には振幅検出パルスS211bが生成されていないので、スライスレベルデータS311aや振幅レベルデータS311cは出力されない。   The maximum / minimum detection circuit 213 uses the frequency determination pulse S211a as a load pulse, and samples the maximum value search data S212a and the minimum value search data S212b searched between times T23 and T24, thereby obtaining the digital video signal S140. The maximum value and the minimum value are detected, and maximum value detection data S213a and minimum value detection data S213b are output. The maximum / minimum search circuit 212 resets the maximum value search data S212a and the minimum value search data S212b searched between times T23 and T24 based on the frequency determination pulse S211a, and the digital video signal S140 after time T24. Find the maximum and minimum values of. The average / amplitude calculation circuit 311 calculates the amplitude of the digital video signal S140 from the maximum value detection data 213a and the minimum value detection data S213b, and outputs the calculated value to the amplitude determination circuit 312 as amplitude detection data S311b. At this time, since the amplitude detection pulse S211b is not generated, the slice level data S311a and the amplitude level data S311c are not output.

次に、振幅判定回路312において、予め設定されているCRI振幅判定値を用いて、振幅検出データS311bがCRI信号Cの振幅を有するか判定する。この場合、振幅検出データS311bがノイズC’より検出されたものであり、CRI信号Cより検出される振幅検出データより小さい値であるため、CRI振幅判定値の条件を満たさない。このため、振幅判定回路312は、この振幅検出データS311bがCRI信号Cの振幅を有さないと判定し、振幅判定ゲートパルスS312を生成しない。   Next, the amplitude determination circuit 312 determines whether the amplitude detection data S311b has the amplitude of the CRI signal C by using a preset CRI amplitude determination value. In this case, since the amplitude detection data S311b is detected from the noise C 'and is smaller than the amplitude detection data detected from the CRI signal C, the condition of the CRI amplitude determination value is not satisfied. Therefore, the amplitude determination circuit 312 determines that the amplitude detection data S311b does not have the amplitude of the CRI signal C, and does not generate the amplitude determination gate pulse S312.

時刻T25および時刻T26において、CRI信号Cが検出される。立下り検出回路151は、時刻T25においてCRI信号Cの最初の立ち下がりを、時刻T26においてCRI信号Cの2番目の立ち下がりを検出し、立ち下り検出パルスS151を出力する。この立ち下り検出パルスS151により周波数算出回路152が算出した周波数は、文字放送方式に対応した周波数であるので、周波数判定パルスS211aが最大/最小検索回路212と最大/最小検出回路213とに入力される。   The CRI signal C is detected at time T25 and time T26. The fall detection circuit 151 detects the first fall of the CRI signal C at time T25, the second fall of the CRI signal C at time T26, and outputs a fall detection pulse S151. Since the frequency calculated by the frequency calculation circuit 152 by the falling detection pulse S151 is a frequency corresponding to the text broadcasting system, the frequency determination pulse S211a is input to the maximum / minimum search circuit 212 and the maximum / minimum detection circuit 213. The

最大/最小検出回路213は、この周波数判定パルスS211aをロードパルスとして、時刻T25、時刻T26間に検索された最大値検索データS212aと最小値検索データS212bとをサンプリングすることにより、ディジタル映像信号S140の最大値と最小値とを検出し、最大値検出データS213aと最小値検出データS213bとを出力する。また、最大/最小検索回路212は、周波数判定パルスS211aに基づいて、時刻T25、時刻T26間に検索した最大値検索データS212aと最小値検索データS212bとをリセットし、時刻T26以降のディジタル映像信号S140の最大値および最小値を検索する。平均/振幅算出回路311は、最大値検出データ213aと最小値検出データS213bとより、ディジタル映像信号の振幅を算出し、算出値を振幅検出データS311bとして振幅判定回路312に出力する。   The maximum / minimum detection circuit 213 uses the frequency determination pulse S211a as a load pulse, and samples the maximum value search data S212a and the minimum value search data S212b searched between time T25 and time T26, thereby digital video signal S140. Are detected, and maximum value detection data S213a and minimum value detection data S213b are output. The maximum / minimum search circuit 212 resets the maximum value search data S212a and the minimum value search data S212b searched between time T25 and time T26 based on the frequency determination pulse S211a, and the digital video signal after time T26. The maximum value and the minimum value of S140 are searched. The average / amplitude calculation circuit 311 calculates the amplitude of the digital video signal from the maximum value detection data 213a and the minimum value detection data S213b, and outputs the calculated value to the amplitude determination circuit 312 as the amplitude detection data S311b.

振幅判定回路312は、この振幅検出データS311bがCRI信号Cの振幅を有すると判定し、振幅判定ゲートパルスS312をCRI判定回路211に出力する。すると、CRI判定回路211は振幅判定ゲートパルスS312に基づいて、周波数判定パルスS211aからCRI信号Cのパルスを抽出した振幅判定パルスS211bを、平均/振幅算出回路311に出力する。   The amplitude determination circuit 312 determines that the amplitude detection data S311b has the amplitude of the CRI signal C, and outputs an amplitude determination gate pulse S312 to the CRI determination circuit 211. Then, the CRI determination circuit 211 outputs an amplitude determination pulse S211b obtained by extracting a pulse of the CRI signal C from the frequency determination pulse S211a to the average / amplitude calculation circuit 311 based on the amplitude determination gate pulse S312.

振幅判定パルスS211bが入力されると、平均/振幅算出回路311は、算出したディジタル映像信号S140の振幅の平均値を基準スライスレベルデータS311aとしてスライスレベルオフセット値算出回路157とデータスライス部160とに出力し、振幅を振幅レベルデータS311cとしてスライスレベルオフセット値算出回路157に出力する。スライスレベルオフセット値算出回路157は、振幅レベルデータS311cよりオフセット値を算出し、基準スライスレベルデータS311aにオフセット値を加算した上側スライスレベルデータS157aと、基準スライスレベルデータS311aからオフセット値を減算した下側スライスレベルデータS157bと、を出力する。   When the amplitude determination pulse S211b is input, the average / amplitude calculation circuit 311 uses the calculated average value of the amplitude of the digital video signal S140 as reference slice level data S311a to the slice level offset value calculation circuit 157 and the data slice unit 160. The amplitude is output to the slice level offset value calculation circuit 157 as amplitude level data S311c. The slice level offset value calculation circuit 157 calculates an offset value from the amplitude level data S311c, and subtracts the offset value from the upper slice level data S157a obtained by adding the offset value to the reference slice level data S311a and the reference slice level data S311a. Side slice level data S157b.

時刻T27において、立下り検出回路151はCRI信号Cの3番目の立ち下がりを検出し、立ち下り検出パルスS151を出力する。時刻T26および時刻T27に出力された立ち下り検出パルスS151により周波数算出回路152が算出した周波数は、文字放送方式に対応した周波数であるので、周波数判定パルスS211aが最大/最小検索回路212と最大/最小検出回路213とに入力される。   At time T27, the falling detection circuit 151 detects the third falling of the CRI signal C and outputs a falling detection pulse S151. Since the frequency calculated by the frequency calculation circuit 152 by the falling detection pulses S151 output at the time T26 and the time T27 is a frequency corresponding to the text broadcasting system, the frequency determination pulse S211a is connected to the maximum / minimum search circuit 212 and the maximum / minimum search circuit 212. Input to the minimum detection circuit 213.

最大/最小検出回路213は、この周波数判定パルスS211aをロードパルスとして検出した最大値検出データS213aと最小値検出データS213bとを、平均/振幅算出回路311に出力する。そして、最大/最小検索回路212は、周波数判定パルスS211aに基づいて最大値検索データS212aと最小値検索データS212bとをリセットし、時刻T27以降の最大値および最小値を検索する。平均/振幅算出回路311は、最大値検出データ213aと最小値検出データS213bとより、ディジタル映像信号S140の振幅を算出し、算出値を振幅検出データS311bとして振幅判定回路312に出力する。   The maximum / minimum detection circuit 213 outputs the maximum value detection data S213a and the minimum value detection data S213b detected by using the frequency determination pulse S211a as a load pulse to the average / amplitude calculation circuit 311. Then, the maximum / minimum search circuit 212 resets the maximum value search data S212a and the minimum value search data S212b based on the frequency determination pulse S211a, and searches for the maximum value and the minimum value after time T27. The average / amplitude calculation circuit 311 calculates the amplitude of the digital video signal S140 from the maximum value detection data 213a and the minimum value detection data S213b, and outputs the calculated value to the amplitude determination circuit 312 as amplitude detection data S311b.

この振幅検出データS311bはCRI信号Cの振幅を有するので、振幅判定回路312は振幅判定ゲートパルスS312をCRI判定回路211に出力し、CRI判定回路211は振幅判定ゲートパルスS312に基づいて、振幅判定パルスS211bを出力する。   Since the amplitude detection data S311b has the amplitude of the CRI signal C, the amplitude determination circuit 312 outputs the amplitude determination gate pulse S312 to the CRI determination circuit 211, and the CRI determination circuit 211 determines the amplitude based on the amplitude determination gate pulse S312. The pulse S211b is output.

振幅判定パルスS211bが入力されると、平均/振幅算出回路311は、ディジタル映像信号S140の振幅の平均値を算出する。さらに、時刻T27において算出した平均値と、時刻T26において算出した基準スライスレベルデータと、の平均値を算出し、この算出値により基準スライスレベルデータS311aを更新する。さらに、時刻T27におけるディジタル映像信号S140の振幅と、時刻T26において算出した振幅レベルデータS311cと、の平均値を算出し、この算出値により振幅レベルデータS311cを更新する。そして、スライスレベルオフセット値算出回路157は、振幅レベルデータS311cより算出したオフセット値に基づいて、上側スライスレベルデータS157aと下側スライスレベルデータS157bとを算出する。   When the amplitude determination pulse S211b is input, the average / amplitude calculation circuit 311 calculates the average value of the amplitude of the digital video signal S140. Further, an average value of the average value calculated at time T27 and the reference slice level data calculated at time T26 is calculated, and the reference slice level data S311a is updated with the calculated value. Further, the average value of the amplitude of the digital video signal S140 at time T27 and the amplitude level data S311c calculated at time T26 is calculated, and the amplitude level data S311c is updated with the calculated value. Then, the slice level offset value calculation circuit 157 calculates upper slice level data S157a and lower slice level data S157b based on the offset value calculated from the amplitude level data S311c.

また、時刻T28において、立下り検出回路151はCRI信号Cの4番目の立ち下がりを検出し、立ち下り検出パルスS151を出力する。この立ち下がりパルスと、最大/最小検索回路212において検索した最大値検索データS212aおよび最小値検索データS212bとに基づいて、スライスレベル算出部310は時刻T27において行った処理と同様の処理を行い、基準スライスレベルデータS311aと、上側スライスレベルデータS157a、下側スライスレベルデータS157bと、を出力する。   At time T28, the falling detection circuit 151 detects the fourth falling of the CRI signal C and outputs a falling detection pulse S151. Based on this falling pulse and the maximum value search data S212a and minimum value search data S212b searched in the maximum / minimum search circuit 212, the slice level calculation unit 310 performs the same process as the process performed at time T27, The reference slice level data S311a, the upper slice level data S157a, and the lower slice level data S157b are output.

時刻T29においてCRI検出範囲信号S132が終了すると、スライスレベル算出部310はスライスレベルの算出処理を終了する。このため、時刻T29における基準スライスレベルデータS311a、および上側スライスレベルデータS157a、下側スライスレベルデータS157bは、この時刻以降において変更されることのない、確定されたデータとなる。   When the CRI detection range signal S132 ends at time T29, the slice level calculation unit 310 ends the slice level calculation process. Therefore, the reference slice level data S311a, the upper slice level data S157a, and the lower slice level data S157b at time T29 are determined data that are not changed after this time.

また、時刻T29において、フレーミングコード信号Dを含んだディジタル映像信号S140がデータスライス部160に入力されると、2値化回路161は、上側スライスレベルデータS157aと、基準スライスレベルデータS311aと、下側スライスレベルデータS157bとを用いて、ディジタル映像信号S140を2値化し、2値化データS161a〜S161cを生成する。そして、抜き取り回路163において、抜き取りパルス生成回路162が生成する抜き取りパルスS162で、2値化データS161a〜S161cから文字放送シリアルデータを抜き取り、抜き取りシリアルデータS163a〜S163cをデコード回路170に出力する。デコード回路170は、これらの抜き取りシリアルデータS163a〜163cをパラレルデータに変換し、フレーミングコードを検出する。   At time T29, when the digital video signal S140 including the framing code signal D is input to the data slice unit 160, the binarization circuit 161 includes the upper slice level data S157a, the reference slice level data S311a, Using the side slice level data S157b, the digital video signal S140 is binarized to generate binarized data S161a to S161c. The extraction circuit 163 extracts the character broadcast serial data from the binarized data S161a to S161c by the extraction pulse S162 generated by the extraction pulse generation circuit 162, and outputs the extraction serial data S163a to S163c to the decoding circuit 170. The decode circuit 170 converts the extracted serial data S163a to 163c into parallel data, and detects a framing code.

テキストデータ信号Eを含んだディジタル映像信号S140がデータスライス部160に入力されると、フレーミングコード信号Dと同様に、2値化回路161は、上側スライスレベルデータS157aと、基準スライスレベルデータS311aと、下側スライスレベルデータS157bと、を用いてディジタル映像信号S140を2値化することにより、2値化データS161a〜S161cを生成する。そして、抜き取り回路163において、抜き取りパルスS162で、2値化データS161a〜S161cから文字放送シリアルデータを抜き取り、抜き取りシリアルデータS163a〜S163cを、デコード回路170に出力する。すると、デコード回路170は、抜き取りシリアルデータS163a〜163cをパラレルデータに変換し、フレーミングコードに示された文字放送の種類に応じたデコード処理を行い、デコードデータS170a〜S170cをデータ選択部320に出力する。   When the digital video signal S140 including the text data signal E is input to the data slice unit 160, the binarization circuit 161, like the framing code signal D, includes the upper slice level data S157a, the reference slice level data S311a, The binarized data S161a to S161c are generated by binarizing the digital video signal S140 using the lower slice level data S157b. In the extraction circuit 163, the character broadcast serial data is extracted from the binarized data S 161 a to S 161 c by the extraction pulse S 162, and the extracted serial data S 163 a to S 163 c is output to the decoding circuit 170. Then, the decoding circuit 170 converts the extracted serial data S163a to 163c into parallel data, performs decoding processing according to the type of character broadcast indicated in the framing code, and outputs the decoded data S170a to S170c to the data selection unit 320. To do.

デコードデータS170a〜S170cがデータ選択部320に入力されると、エラー検出回路321は、デコードデータS170a〜S170cよりデコードエラーを検出する。そして、エラー検出回路321は、デコードデータS170a〜S170cのうちデコードエラーのないデコードデータを示すデコードデータ選択信号S321aを出力する。デコードデータS170a〜S170cのすべてがデコードエラーを有する場合、デコードデータ選択信号S321aとして、いずれかのデコードデータが指定される。デコードデータ選択回路182は、このデコードデータ選択信号S321aに基づいて、デコードデータS170a〜S170cからデコードエラーの無いものを選択し、最終デコードデータS182として出力する。エラー検出回路321は、最終デコードデータS182がデコードエラーを有するか判定し、デコードエラーを有する場合、エラー検出信号S321bを振幅判定値設定部330に出力する。   When the decoded data S170a to S170c are input to the data selection unit 320, the error detection circuit 321 detects a decoding error from the decoded data S170a to S170c. Then, the error detection circuit 321 outputs a decode data selection signal S321a indicating the decode data having no decode error among the decode data S170a to S170c. When all of the decode data S170a to S170c have a decode error, one of the decode data is designated as the decode data selection signal S321a. Based on the decode data selection signal S321a, the decode data selection circuit 182 selects one having no decode error from the decode data S170a to S170c and outputs it as final decode data S182. The error detection circuit 321 determines whether the final decoded data S182 has a decoding error, and outputs an error detection signal S321b to the amplitude determination value setting unit 330 if there is a decoding error.

振幅判定値設定部330にエラー検出信号S321bが入力されると、エラー数カウント回路331は、所定の期間、エラー検出信号S321bよりデコードエラーの数をカウントする。そして、その期間が経過すると、デコードエラーの数のカウント結果であるエラー数カウントデータS331をコントローラ332に出力する。コントローラ332は、保持している各CRI振幅判定値とエラー数カウントデータとの関係より、デコードエラーの数がエラー数カウントデータS331である場合の最適なCRI振幅判定値を検出し、最適振幅判定値S332をスライスレベル算出部310に出力する。すると、振幅判定回路312は、この最適振幅判定値S332によりCRI振幅判定値を更新する。   When the error detection signal S321b is input to the amplitude determination value setting unit 330, the error count circuit 331 counts the number of decoding errors from the error detection signal S321b for a predetermined period. When the period elapses, error count data S 331, which is a count result of the number of decode errors, is output to the controller 332. The controller 332 detects an optimal CRI amplitude determination value when the number of decoding errors is the error number count data S331 from the relationship between each held CRI amplitude determination value and the error number count data, and determines the optimal amplitude determination. The value S332 is output to the slice level calculation unit 310. Then, the amplitude determination circuit 312 updates the CRI amplitude determination value with the optimum amplitude determination value S332.

次に、データスライス装置300において、各CRI振幅判定値とエラー数カウントデータとの関係を取得する方法、および振幅判定回路312が保持するCRI振幅判定値を最適化する方法を、図8のフローチャートを参照しながら説明する。   Next, in the data slicing apparatus 300, a method for acquiring the relationship between each CRI amplitude determination value and the error count data and a method for optimizing the CRI amplitude determination value held by the amplitude determination circuit 312 are shown in the flowchart of FIG. Will be described with reference to FIG.

このCRI振幅判定値の最適化処理は、例えば、電源立ち上げ時や受信チャンネルの切り替え時など信号形状が不明な時に、その時の信号形状に対して最適なCRI振幅判定値を設定するために実施するものである。   The CRI amplitude determination value optimization processing is performed to set an optimal CRI amplitude determination value for the signal shape at that time when the signal shape is unknown, for example, when the power is turned on or when the reception channel is switched. To do.

まず、コントローラ332は、CRI振幅判定値に、所定の開始値を設定する。すなわち、コントローラ332は、開始値を最適振幅判定値S332として出力し、振幅判定回路312は、この最適振幅判定値S332をCRI振幅判定値として設定する。ここでは、大きな値から検索を開始した場合について説明する(ステップS801)。   First, the controller 332 sets a predetermined start value for the CRI amplitude determination value. That is, the controller 332 outputs the start value as the optimum amplitude determination value S332, and the amplitude determination circuit 312 sets the optimum amplitude determination value S332 as the CRI amplitude determination value. Here, a case where the search is started from a large value will be described (step S801).

次に、スライスレベル算出部310は、ステップS801において設定したCRI振幅判定値を基準値として振幅を判定することにより、文字放送の振幅を有すると判定されたCRI信号Cを用いてスライスレベルを算出し、基準スライスレベルデータS311aと上側スライスレベルデータS157aと下側スライスレベルデータS157bとを出力する(ステップS802)。   Next, the slice level calculation unit 310 calculates the slice level using the CRI signal C determined to have the amplitude of teletext by determining the amplitude using the CRI amplitude determination value set in step S801 as a reference value. Then, the reference slice level data S311a, the upper slice level data S157a, and the lower slice level data S157b are output (step S802).

CRI検出期間が終了し、フレーミングコード信号Dが入力されると、データスライス部160は、ステップS802において算出した各スライスレベルデータを用いてフレーミングコード信号Dを2値化し、デコード回路170においてフレーミングコードを取得する。そして、テキストデータ信号Eが入力されると、データスライス部160は、ステップS802において算出した各スライスレベルデータを用いてテキストデータ信号Eを2値化し、デコード回路170は、各2値化データに対してデコード処理を行う。データ選択部320は、デコード処理されたデコードデータS170a〜S170cのうち、デコードエラーの無いものを選択し、最終デコードデータS182として出力する(ステップS803)。   When the CRI detection period ends and the framing code signal D is input, the data slicing unit 160 binarizes the framing code signal D using each slice level data calculated in step S802, and the decoding circuit 170 performs the framing code signal D. To get. When the text data signal E is input, the data slicing unit 160 binarizes the text data signal E using each slice level data calculated in step S802, and the decoding circuit 170 converts each binarized data. On the other hand, the decoding process is performed. The data selection unit 320 selects the decoded data S170a to S170c having no decoding error and outputs it as final decoded data S182 (step S803).

最終デコードデータS182がデコードエラーを有する場合、エラー検出回路321は、エラー検出信号S321bを出力するので、エラー数カウント回路331は、このエラー検出信号S321bよりエラーの数をカウントし、エラー数カウントデータS331を出力する。コントローラ332は、この時のCRI振幅判定値(最適振幅判定値S332)に対する、エラー数カウントデータS331を保持する(ステップS804)。   When the final decoded data S182 has a decoding error, the error detection circuit 321 outputs an error detection signal S321b. Therefore, the error count circuit 331 counts the number of errors from the error detection signal S321b, and the error count data S331 is output. The controller 332 holds error number count data S331 for the CRI amplitude determination value (optimum amplitude determination value S332) at this time (step S804).

次に、コントローラ332は、垂直同期信号単位で定められた所定の期間、テキストデータ信号Eを2値化およびデコードして、エラー数カウントデータS331を取得したか判断し、所定の期間、処理を行っていない場合はステップS802に戻る(ステップS805)。   Next, the controller 332 binarizes and decodes the text data signal E for a predetermined period determined in units of vertical synchronization signals, determines whether the error count data S331 has been acquired, and performs processing for a predetermined period. If not, the process returns to step S802 (step S805).

ステップS805において、所定の期間、処理を行ったと判断された場合、現在の最適振幅判定値S332が、所定の終了値であるか判断する(ステップS806)。   If it is determined in step S805 that the process has been performed for a predetermined period, it is determined whether the current optimum amplitude determination value S332 is a predetermined end value (step S806).

現在の最適振幅判定値S332が終了値でない場合、コントローラ332は、現在の最適振幅判定値S332から所定のステップ値を減算する。そして、この最適振幅判定値S332を、振幅判定回路312に出力する。振幅判定回路312は、この最適振幅判定値S332によりCRI振幅判定値を更新する。そして、ステップS802に戻り、CRI信号Cを用いたスライスレベルの算出を行う(ステップS807)。   When the current optimal amplitude determination value S332 is not the end value, the controller 332 subtracts a predetermined step value from the current optimal amplitude determination value S332. Then, the optimum amplitude determination value S332 is output to the amplitude determination circuit 312. The amplitude determination circuit 312 updates the CRI amplitude determination value with the optimum amplitude determination value S332. Then, the process returns to step S802, and the slice level is calculated using the CRI signal C (step S807).

一方、終了値まで最適振幅判定値S332を減算して処理を行った場合、コントローラ332は、取得した各CRI振幅判定値とエラー数との関係(図6参照)より、エラー数が最小となるCRI振幅判定値を選定し、これを最適振幅判定値S332として振幅判定回路312に出力する。振幅判定回路312は、この最適振幅判定値S332によりCRI振幅判定値を更新し、CRI振幅判定値の最適化処理を終了する(ステップS808)。   On the other hand, when the process is performed by subtracting the optimum amplitude determination value S332 up to the end value, the controller 332 minimizes the number of errors from the relationship between the acquired CRI amplitude determination values and the number of errors (see FIG. 6). A CRI amplitude determination value is selected and output to the amplitude determination circuit 312 as the optimum amplitude determination value S332. The amplitude determination circuit 312 updates the CRI amplitude determination value with the optimal amplitude determination value S332, and ends the CRI amplitude determination value optimization process (step S808).

以上のように、本実施の形態3によるデータスライス装置300によれば、保持しているCRI振幅判定値に基づいて、平均/振幅算出回路311において算出した振幅検出データS311bはCRI信号Cの振幅を有するものであるか判定する振幅判定回路312を備え、平均/振幅算出回路311は、振幅検出データS311bがCRI信号Cの振幅を有すると判定されたときにのみ、算出した平均値を基準スライスレベルデータ311a、振幅を振幅レベルデータS311cとして出力するので、CRI信号Cに近似した周期のノイズをCRI信号Cとして誤検出した場合であっても、ノイズより算出した平均値を除外して基準スライスレベルデータS311aを算出することができる。   As described above, according to the data slicing device 300 according to the third embodiment, the amplitude detection data S311b calculated by the average / amplitude calculation circuit 311 based on the held CRI amplitude determination value is the amplitude of the CRI signal C. The average / amplitude calculation circuit 311 uses the calculated average value as a reference slice only when it is determined that the amplitude detection data S311b has the amplitude of the CRI signal C. Since the level data 311a and the amplitude are output as the amplitude level data S311c, even when noise having a period approximate to the CRI signal C is erroneously detected as the CRI signal C, the average value calculated from the noise is excluded and the reference slice is excluded. Level data S311a can be calculated.

また、振幅レベルデータS311cに基づき算出したオフセット値を基準スライスレベルデータS311aに加算した上側スライスレベルデータS157a、および基準スライスレベルデータS311aよりオフセット値を減算した下側スライスレベルデータS157bを算出するスライスレベルオフセット値算出回路157を備えたので、伝送系における群遅延及び電界強度の低下などによりディジタル映像信号S140に歪みが生じ、基準スライスレベルデータS311aのみで2値化すると誤った値に2値化してしまう場合であっても、いずれかのスライスレベルデータにより、正しい値に2値化することができるので、デコードエラーの発生率をさらに低く抑えることができる。   Further, the upper slice level data S157a obtained by adding the offset value calculated based on the amplitude level data S311c to the reference slice level data S311a, and the lower slice level data S157b obtained by subtracting the offset value from the reference slice level data S311a are calculated. Since the offset value calculation circuit 157 is provided, the digital video signal S140 is distorted due to the group delay and the electric field strength decrease in the transmission system. Even in such a case, since it can be binarized to a correct value by any slice level data, the rate of occurrence of decoding errors can be further reduced.

さらに、最終デコードデータS182に含まれるデコードエラーの数をカウントするエラー数カウント回路331と、デコードエラーの数に基づいて、CRI振幅判定値を変更するコントローラ332と、を備えたので、ディジタル映像信号S140の歪みが変化する場合においても、CRI振幅判定値を、その信号形状に適した値に更新することにより、信号形状に適したスライスレベルデータを算出することができるので、デコードエラーの発生率を更に低く抑えることができる。   Further, the digital video signal is provided with the error count circuit 331 that counts the number of decoding errors included in the final decoded data S182 and the controller 332 that changes the CRI amplitude determination value based on the number of decoding errors. Even when the distortion in S140 changes, the slice level data suitable for the signal shape can be calculated by updating the CRI amplitude determination value to a value suitable for the signal shape. Can be further reduced.

なお、本実施の形態3では、各CRI振幅判定値(最適振幅判定値S332)に対するエラー数カウントデータを取得する際に、最適振幅判定値S332の開始値を最大値とし、順次、最適振幅判定値S332よりステップ値を減算しながら、その最適振幅判定値に対するエラー数カウントデータS331を取得する、としたが、最適振幅判定値S332の開始値を最小値とし、順次、最適振幅判定値S332にステップ値を加算しながら、その最適振幅判定値に対するエラー数カウントデータS331を取得するようにしても、本実施の形態3と同様の効果が得られる。   In the third embodiment, when obtaining the error count data for each CRI amplitude determination value (optimum amplitude determination value S332), the start value of the optimal amplitude determination value S332 is set to the maximum value, and the optimal amplitude determination is sequentially performed. While subtracting the step value from the value S332, the error count data S331 for the optimum amplitude determination value is acquired. Even if the step number is added and the error count data S331 for the optimum amplitude determination value is acquired, the same effect as in the third embodiment can be obtained.

(実施の形態4)
次に、本発明の実施の形態4によるデータスライス装置について、図面を参照しながら説明する。
図9は、本実施の形態4に係るデータスライス装置400の構成を示すブロック図である。なお、図9において、図5に示すものと同一または相当する部分には同一符号を付して、詳しい説明を省略する。
(Embodiment 4)
Next, a data slicing device according to Embodiment 4 of the present invention will be described with reference to the drawings.
FIG. 9 is a block diagram showing a configuration of data slicing device 400 according to the fourth embodiment. 9, parts that are the same as or correspond to those shown in FIG. 5 are given the same reference numerals, and detailed descriptions thereof are omitted.

図9に示すように、本実施の形態4によるデータスライス装置400は、デコード回路420を、デコードデータS420a〜S420cに加えて、抜き取りシリアルデータS163a〜S163cをデコードしている期間にデコードデータ検出期間ゲートパルスS420dを出力するようにし、最大/最小検索回路411を、CRI検出範囲信号S312またはデコードデータ検出期間ゲートパルスS420dが入力されている時に、ディジタル映像信号S140の最大値および最小値を検索し、最大値検索データS411aおよび最小値検索データS411bを出力するようにしたものである。さらに、スライスレベル算出回路410に、実施の形態3のスライスレベル算出回路310に加えて、抜き取りパルス生成回路162が生成する抜き取りパルスS162とデコードデータ検出期間ゲートパルスS420dとに基づいて、デコードデータのデータ単位間隔でデコードデータ単位パルスS412を出力するデコードデータ単位パルス生成回路412と、デコードデータ単位パルスS412が生成されていないときには周波数判定パルスS211aを、デコードデータ単位パルスS412が生成されている時にはデコードデータ単位パルスS412を、選択して、平均/振幅算出回路311に出力するパルス選択回路413と、を設けたものである。   As shown in FIG. 9, in the data slicing device 400 according to the fourth embodiment, the decode circuit 420 is added to the decode data S420a to S420c, and the decoded serial data S163a to S163c is decoded. The gate pulse S420d is output, and the maximum / minimum search circuit 411 searches for the maximum value and the minimum value of the digital video signal S140 when the CRI detection range signal S312 or the decode data detection period gate pulse S420d is input. The maximum value search data S411a and the minimum value search data S411b are output. Further, in addition to the slice level calculation circuit 310 of the third embodiment, the slice level calculation circuit 410 also determines the decode data based on the extraction pulse S162 generated by the extraction pulse generation circuit 162 and the decode data detection period gate pulse S420d. A decode data unit pulse generation circuit 412 that outputs a decode data unit pulse S412 at a data unit interval, a frequency determination pulse S211a when the decode data unit pulse S412 is not generated, and a decode when the decode data unit pulse S412 is generated And a pulse selection circuit 413 that selects the data unit pulse S412 and outputs it to the average / amplitude calculation circuit 311.

ここで、デコードデータ単位パルス生成回路412は、デコードデータ検出期間ゲートパルスS420dが入力されている期間、抜き取りパルスS162をカウントし、デコードデータのデータ単位間隔でデコードデータ単位パルスS412を生成する。例えば、デコードデータが8ビット単位で構成されている場合、デコードデータ単位パルス生成回路412は、抜き取りパルスS162をカウントし、8パルス間隔でデコードデータ単位パルスS412を生成する。   Here, the decode data unit pulse generation circuit 412 counts the sampling pulse S162 during the period when the decode data detection period gate pulse S420d is input, and generates the decode data unit pulse S412 at the data unit interval of the decode data. For example, when the decode data is configured in units of 8 bits, the decode data unit pulse generation circuit 412 counts the sampling pulse S162 and generates the decode data unit pulse S412 at intervals of 8 pulses.

次に、以上のように構成されるデータスライス装置400の動作について説明する。
文字放送シリアルデータが重畳されたアナログ映像信号S110が映像信号入力端子110を介して入力されると、A/D変換器120はこれをディジタル信号に変換し、ディジタル映像信号S120をCRI検出部130とLPF140とに出力する。すると、LPF140は、ディジタル映像信号S120よりノイズを除去したディジタル映像信号S140を、スライスレベル算出部410と、データスライス部160とに出力する。また、CRI検出部130は、ディジタル映像信号S120から分離した垂直同期信号S131aおよび水平同期信号S131bに基づいて、CRI検出範囲信号S132を生成し、スライスレベル算出部410に出力する。
Next, the operation of the data slicer 400 configured as described above will be described.
When the analog video signal S110 superimposed with the teletext serial data is input via the video signal input terminal 110, the A / D converter 120 converts the analog video signal S110 into a digital signal, and the digital video signal S120 is converted into the CRI detection unit 130. And the LPF 140. Then, the LPF 140 outputs the digital video signal S140 from which noise has been removed from the digital video signal S120, to the slice level calculation unit 410 and the data slice unit 160. Further, the CRI detection unit 130 generates a CRI detection range signal S132 based on the vertical synchronization signal S131a and the horizontal synchronization signal S131b separated from the digital video signal S120, and outputs the CRI detection range signal S132 to the slice level calculation unit 410.

ディジタル映像信号S140とCRI検出範囲信号S132とが入力されると、スライスレベル算出部410はスライスレベルの算出を開始する。最大/最小検索回路411は、ディジタル映像信号S140の最大値および最小値を検索し、最大値検索データS411aおよび最小値検索データS411bを出力する。立ち下がり検出回路151は、ディジタル映像信号S140の最初の立ち下がりと2番目の立ち下がりとを検出し、立ち下り検出パルスS151を出力する。この立ち下り検出パルスS151より算出したディジタル映像信号S140の周波数は、所定の文字放送方式に対応した周波数なので、周波数判定回路153は、周波数判定ゲートパルスS153をCRI判定回路211に出力する。CRI判定回路211は、この周波数判定ゲートパルスS153と立ち下がり検出パルス151とに基づいて周波数判定パルスS211aを生成し、パルス選択回路413に出力する。この時、パルス選択回路413にはデコードデータ単位パルスS412が入力されていないので、パルス選択回路413は周波数判定パルスS211aを選択して、最大/最小検索回路411と最大/最小検出回路213とに出力する。   When the digital video signal S140 and the CRI detection range signal S132 are input, the slice level calculation unit 410 starts calculating the slice level. The maximum / minimum search circuit 411 searches for the maximum value and minimum value of the digital video signal S140, and outputs maximum value search data S411a and minimum value search data S411b. The fall detection circuit 151 detects the first fall and the second fall of the digital video signal S140, and outputs a fall detection pulse S151. Since the frequency of the digital video signal S140 calculated from the falling detection pulse S151 is a frequency corresponding to a predetermined text broadcasting system, the frequency determination circuit 153 outputs the frequency determination gate pulse S153 to the CRI determination circuit 211. The CRI determination circuit 211 generates a frequency determination pulse S211a based on the frequency determination gate pulse S153 and the falling detection pulse 151, and outputs it to the pulse selection circuit 413. At this time, since the decode data unit pulse S412 is not input to the pulse selection circuit 413, the pulse selection circuit 413 selects the frequency determination pulse S211a and sends it to the maximum / minimum search circuit 411 and the maximum / minimum detection circuit 213. Output.

最大/最小検出回路213は、この周波数判定パルスS211aをロードパルスとして、最大値検索データS411aと最小値検索データS411bとをサンプリングすることにより、ディジタル映像信号S140の最大値と最小値とを検出し、最大値検出データS213aと最小値検出データS213bとを出力する。その後、最大/最小検索回路411は、検索したデータをリセットし、新たな期間に入力されるディジタル映像信号S140の、最大値および最小値を検索する。平均/振幅算出回路311は、最大値検出データ213aと最小値検出データS213bとより、ディジタル映像信号S140の振幅を算出し、算出値を振幅検出データS311bとして振幅判定回路312に出力する。   The maximum / minimum detection circuit 213 detects the maximum value and the minimum value of the digital video signal S140 by sampling the maximum value search data S411a and the minimum value search data S411b using the frequency determination pulse S211a as a load pulse. The maximum value detection data S213a and the minimum value detection data S213b are output. Thereafter, the maximum / minimum search circuit 411 resets the searched data and searches for the maximum value and the minimum value of the digital video signal S140 input in a new period. The average / amplitude calculation circuit 311 calculates the amplitude of the digital video signal S140 from the maximum value detection data 213a and the minimum value detection data S213b, and outputs the calculated value to the amplitude determination circuit 312 as amplitude detection data S311b.

この振幅検出データS311bはCRI信号Cの振幅を有するので、振幅判定回路312は振幅判定ゲートパルスS312を出力する。CRI判定回路211は、振幅判定ゲートパルスS312に基づいて、周波数判定パルスS211aからCRI信号Cのパルスを抽出した振幅判定パルスS211bを平均/振幅算出回路311に出力する。   Since the amplitude detection data S311b has the amplitude of the CRI signal C, the amplitude determination circuit 312 outputs an amplitude determination gate pulse S312. The CRI determination circuit 211 outputs to the average / amplitude calculation circuit 311 an amplitude determination pulse S211b obtained by extracting a pulse of the CRI signal C from the frequency determination pulse S211a based on the amplitude determination gate pulse S312.

平均/振幅算出回路311は、振幅判定パルスS211bが入力されると、最大値検出データS213aと最小値検出データS213bとより算出したディジタル映像信号S140の振幅の平均値を、基準スライスレベルデータS311aとしてデータスライス部160に出力し、振幅を、振幅レベルデータS311cとしてスライスレベルオフセット値算出回路157に出力する。スライスレベルオフセット値算出回路157は、振幅レベルデータS311cよりオフセット値を算出し、基準スライスレベルデータS311aにオフセット値を加算した上側スライスレベルデータS157aと、基準スライスレベルデータS311aからオフセット値を減算した下側スライスレベルデータS157bと、を出力する。   When the amplitude determination pulse S211b is input, the average / amplitude calculation circuit 311 uses the average value of the amplitude of the digital video signal S140 calculated from the maximum value detection data S213a and the minimum value detection data S213b as reference slice level data S311a. The data is output to the data slicing unit 160, and the amplitude is output to the slice level offset value calculation circuit 157 as amplitude level data S311c. The slice level offset value calculation circuit 157 calculates an offset value from the amplitude level data S311c, and subtracts the offset value from the upper slice level data S157a obtained by adding the offset value to the reference slice level data S311a and the reference slice level data S311a. Side slice level data S157b.

立下り検出回路151において、CRI信号Cの次の立ち下がりが検出され立ち下がり検出パルスS151が生成されると、その立ち下がり検出パルスS151を用いて同様の処理を行い、平均/振幅算出回路311においてCRI信号Cの振幅と振幅の平均値と、を算出する。そして、平均/振幅算出回路311は、CRI信号Cの振幅の平均値と、前回算出した基準スライスレベルデータと、の平均値を算出し、この算出値により基準スライスレベルデータS311aを更新する。同様に、CRI信号Cの振幅と、前回算出した振幅レベルデータと、の平均値を算出し、この算出値により振幅レベルデータS311cを更新する。スライスレベルオフセット値算出回路157は、振幅レベルデータS311cよりオフセット値を算出し、基準スライスレベルデータS311aにオフセットを設けた上側スライスレベルデータS157aと下側スライスレベルデータS157bとを出力する。   When the fall of the CRI signal C is detected and the fall detection pulse S151 is generated in the fall detection circuit 151, the same process is performed using the fall detection pulse S151, and the average / amplitude calculation circuit 311 is processed. In, the amplitude of the CRI signal C and the average value of the amplitude are calculated. Then, the average / amplitude calculation circuit 311 calculates the average value of the average value of the amplitude of the CRI signal C and the previously calculated reference slice level data, and updates the reference slice level data S311a with this calculated value. Similarly, the average value of the amplitude of the CRI signal C and the previously calculated amplitude level data is calculated, and the amplitude level data S311c is updated with this calculated value. The slice level offset value calculation circuit 157 calculates an offset value from the amplitude level data S311c, and outputs upper slice level data S157a and lower slice level data S157b in which an offset is provided to the reference slice level data S311a.

フレーミングコード信号Dを含んだディジタル映像信号S140がデータスライス部160に入力されると、2値化回路161は、上側スライスレベルデータS157aと、基準スライスレベルデータS311aと、下側スライスレベルデータS157bとを用いて、ディジタル映像信号S140を2値化し、2値化データS161a〜S161cを生成する。抜き取りパルス生成回路162は、生成した抜き取りパルスS162を、抜き取り回路163とデコードデータ単位パルス生成回路412とに出力し、抜き取り回路163は、抜き取りパルスS162で、2値化データS161a〜S161cから文字放送シリアルデータを抜き取り、抜き取りシリアルデータS163a〜S163cを出力する。デコード回路420は、これらの抜き取りシリアルデータS163a〜163cをパラレルデータに変換し、フレーミングコードを検出する。さらにデコード回路420は、デコード処理を行っている期間に、デコードデータ検出期間ゲートパルスS420dを、最大/最小検索回路411とデコードデータ単位パルス生成回路412とに出力する。   When the digital video signal S140 including the framing code signal D is input to the data slice unit 160, the binarization circuit 161 includes the upper slice level data S157a, the reference slice level data S311a, and the lower slice level data S157b. Is used to binarize the digital video signal S140 to generate binary data S161a to S161c. The extraction pulse generation circuit 162 outputs the generated extraction pulse S162 to the extraction circuit 163 and the decoded data unit pulse generation circuit 412. The extraction circuit 163 is the extraction pulse S162, and the character data is transmitted from the binarized data S161a to S161c. Serial data is extracted, and extracted serial data S163a to S163c are output. The decode circuit 420 converts the extracted serial data S163a to 163c into parallel data, and detects a framing code. Further, the decode circuit 420 outputs the decode data detection period gate pulse S420d to the maximum / minimum search circuit 411 and the decode data unit pulse generation circuit 412 during the period of performing the decoding process.

最大/最小検索回路411にデコードデータ検出期間ゲートパルスS420dが入力されると、最大/最小検索回路411は、ディジタル映像信号S140の最大値および最小値を検索し、最大値検索データS411aおよび最小値検索データS411bを出力する。   When the decode data detection period gate pulse S420d is input to the maximum / minimum search circuit 411, the maximum / minimum search circuit 411 searches for the maximum value and minimum value of the digital video signal S140, and the maximum value search data S411a and the minimum value. Search data S411b is output.

一方、デコードデータ単位パルス生成回路412に、抜き取りパルスS162とデコードデータ検出期間ゲートパルスS420dとが入力されると、デコードデータ単位パルス生成回路412は、抜き取りパルスS162をカウントし、データ単位間隔でデコードデータ単位パルスS412を出力する。すると、パルス選択回路413は、このデコードデータ単位パルスS412を選択し、最大/最小検出回路213と最大/最小検索回路411とに出力する。   On the other hand, when the extraction pulse S162 and the decode data detection period gate pulse S420d are input to the decode data unit pulse generation circuit 412, the decode data unit pulse generation circuit 412 counts the extraction pulse S162 and decodes it at the data unit interval. The data unit pulse S412 is output. Then, the pulse selection circuit 413 selects the decoded data unit pulse S412 and outputs it to the maximum / minimum detection circuit 213 and the maximum / minimum search circuit 411.

最大/最小検出回路213は、このデコードデータ単位パルスS412をロードパルスとして、最大値検索データS411aと最小値検索データS411bとをサンプリングすることにより、ディジタル映像信号S140の最大値と最小値とを検出し、最大値検出データS213aと最小値検出データS213bとを出力する。また、最大/最小検索回路411にデコードデータ単位パルスS412が入力されると、最大/最小検索回路411は検索したデータをリセットし、新たな期間のディジタル映像信号S140の最大値および最小値を検索する。そして、平均/振幅算出回路311は、最大値検出データS213aと最小値検出データS213bより算出したディジタル映像信号S140の振幅の平均値を基準スライスレベルデータS311aとしてスライスレベルオフセット値算出回路157とデータスライス部160とに出力し、振幅を振幅レベルデータS311cとしてスライスレベルオフセット値算出回路157に出力する。スライスレベルオフセット値算出回路157は、振幅レベルデータS311cよりオフセット値を算出し、基準スライスレベルデータS311aにオフセット値を加算した上側スライスレベルデータS157aと、基準スライスレベルデータS311aからオフセット値を減算した下側スライスレベルデータS157bと、を出力する。   The maximum / minimum detection circuit 213 detects the maximum value and the minimum value of the digital video signal S140 by sampling the maximum value search data S411a and the minimum value search data S411b using the decoded data unit pulse S412 as a load pulse. The maximum value detection data S213a and the minimum value detection data S213b are output. When the decoded data unit pulse S412 is input to the maximum / minimum search circuit 411, the maximum / minimum search circuit 411 resets the searched data and searches for the maximum value and the minimum value of the digital video signal S140 in a new period. To do. Then, the average / amplitude calculation circuit 311 uses the average value of the amplitude of the digital video signal S140 calculated from the maximum value detection data S213a and the minimum value detection data S213b as the reference slice level data S311a and the slice level offset value calculation circuit 157 and the data slice. The amplitude is output to the slice level offset value calculation circuit 157 as amplitude level data S311c. The slice level offset value calculation circuit 157 calculates an offset value from the amplitude level data S311c, and subtracts the offset value from the upper slice level data S157a obtained by adding the offset value to the reference slice level data S311a and the reference slice level data S311a. Side slice level data S157b.

テキストデータ信号Eを含んだディジタル映像信号S140がデータスライス部160に入力されると、フレーミングコード信号Dと同様に、2値化回路161は、上側スライスレベルデータS157aと、基準スライスレベルデータS311aと、下側スライスレベルデータS157bとを用いて、ディジタル映像信号S140を2値化し、2値化データS161a〜S161cを生成する。そして、抜き取り回路163において、抜き取りパルスS162で、2値化データS161a〜S161cから文字放送シリアルデータを抜き取り、抜き取りシリアルデータS163a〜S163cを出力する。デコード回路420は、抜き取りシリアルデータS163a〜163cをパラレルデータに変換し、フレーミングコードに示された文字放送の種類に応じたデコード処理を行い、デコードデータS420a〜S420cを出力する。さらにデコード回路420は、デコード処理を行っている期間に、デコードデータ検出期間ゲートパルスS420dを、最大/最小検索回路411とデコードデータ単位パルス生成回路412とに出力する。そして、デコードデータ選択回路182は、エラー検出信号S321bに基づいて、デコードデータS420a〜S420cよりデコードエラーのないものを選択し、最終デコードデータS182として出力する。エラー検出回路321は、この最終デコードデータS182よりエラーを検出すると、エラー検出信号S321bをエラー数カウント回路331に出力する。コントローラ332は、エラー検出信号S321bよりデコードエラーの数をカウントしたエラー数カウントデータS331に基づき、最適なCRI振幅判定値を検出し、最適振幅判定値S332をスライスレベル算出部410に出力する。すると、振幅判定回路312は、この最適振幅判定値S332によりCRI振幅判定値を更新する。   When the digital video signal S140 including the text data signal E is input to the data slice unit 160, the binarization circuit 161, like the framing code signal D, includes the upper slice level data S157a, the reference slice level data S311a, Using the lower slice level data S157b, the digital video signal S140 is binarized to generate binarized data S161a to S161c. In the extraction circuit 163, the character broadcast serial data is extracted from the binarized data S161a to S161c by the extraction pulse S162, and the extracted serial data S163a to S163c are output. The decoding circuit 420 converts the extracted serial data S163a to 163c into parallel data, performs a decoding process according to the type of character broadcast indicated in the framing code, and outputs the decoded data S420a to S420c. Further, the decode circuit 420 outputs the decode data detection period gate pulse S420d to the maximum / minimum search circuit 411 and the decode data unit pulse generation circuit 412 during the period of performing the decoding process. Based on the error detection signal S321b, the decode data selection circuit 182 selects one having no decode error from the decode data S420a to S420c, and outputs it as final decode data S182. When the error detection circuit 321 detects an error from the final decoded data S182, it outputs an error detection signal S321b to the error count circuit 331. The controller 332 detects an optimal CRI amplitude determination value based on the error count data S331 obtained by counting the number of decoding errors from the error detection signal S321b, and outputs the optimal amplitude determination value S332 to the slice level calculation unit 410. Then, the amplitude determination circuit 312 updates the CRI amplitude determination value with the optimum amplitude determination value S332.

一方、最大/最小検索回路411にデコードデータ検出期間ゲートパルスS420dが入力されると、最大/最小検索回路411は、テキストデータ信号Eを含んだディジタル映像信号S140の最大値および最小値を検索し、最大値検索データS411aおよび最小値検索データS411bを出力する。また、パルス選択回路413は、デコードデータ単位パルス生成回路412が出力するデコードデータ単位パルスS412を選択し、最大/最小検出回路213と最大/最小検索回路411とに出力する。最大/最小検出回路213は、このデコードデータ単位パルスS412をロードパルスとして最大値検索データS411aと最小値検索データS411bとをサンプリングし、最大値検出データS213aと最小値検出データS213bとを出力する。また、デコードデータ単位パルスに基づいて、最大/最小検索回路411は検索したデータをリセットし、新たな期間のディジタル映像信号S140の最大値および最小値を検索する。平均/振幅算出回路311は、最大値検出データS213aと最小値検出データS213bとに基づいて、基準スライスレベルデータS311aと振幅レベルデータS311cとを算出する。スライスレベルオフセット値算出回路157は、振幅レベルデータS311cより算出したオフセット値に基づいて、上側スライスレベルデータS157aと、下側スライスレベルデータS157bと、を算出する。   On the other hand, when the decode data detection period gate pulse S420d is input to the maximum / minimum search circuit 411, the maximum / minimum search circuit 411 searches for the maximum and minimum values of the digital video signal S140 including the text data signal E. The maximum value search data S411a and the minimum value search data S411b are output. The pulse selection circuit 413 selects the decode data unit pulse S412 output from the decode data unit pulse generation circuit 412 and outputs it to the maximum / minimum detection circuit 213 and the maximum / minimum search circuit 411. The maximum / minimum detection circuit 213 samples the maximum value search data S411a and the minimum value search data S411b using the decoded data unit pulse S412 as a load pulse, and outputs the maximum value detection data S213a and the minimum value detection data S213b. Further, based on the decoded data unit pulse, the maximum / minimum search circuit 411 resets the searched data, and searches for the maximum value and the minimum value of the digital video signal S140 in a new period. The average / amplitude calculation circuit 311 calculates reference slice level data S311a and amplitude level data S311c based on the maximum value detection data S213a and the minimum value detection data S213b. The slice level offset value calculation circuit 157 calculates upper slice level data S157a and lower slice level data S157b based on the offset value calculated from the amplitude level data S311c.

そして、2値化回路161は、テキストデータ信号Eを含んだディジタル映像信号S140に基づき設定した基準スライスレベルデータS311a、および上側スライスレベルデータS157a、下側スライスレベルデータS157bを用いて、ディジタル映像信号S140を2値化し、2値化データS161a〜S161cを生成する。抜き取り回路163は、2値化データS161a〜S161cから文字放送シリアルデータを抜き取り、デコード回路420は、抜き取り回路163が出力する抜き取りシリアルデータS163a〜S163cに対してデコード処理を行い、デコードデータS420a〜S420cを出力する。そして、デコードデータ選択回路182は、エラー検出信号S321bに基づいて、デコードデータS420a〜S420cよりデコードエラーのないものを選択し、最終デコードデータS182として出力する。エラー検出回路321は、この最終デコードデータS182よりエラーを検出すると、エラー検出信号S321bをエラー数カウント回路331に出力する。コントローラ332は、エラー数カウント回路においてカウントしたエラー数カウントデータS331に基づいて、最適なCRI振幅判定値を検出し、最適振幅判定値S332をスライスレベル算出部410に出力する。すると、振幅判定回路312は、この最適振幅判定値S332によりCRI振幅判定値を更新する。   Then, the binarization circuit 161 uses the reference slice level data S311a, the upper slice level data S157a, and the lower slice level data S157b set based on the digital video signal S140 including the text data signal E, to generate a digital video signal. S140 is binarized and binarized data S161a to S161c are generated. The extraction circuit 163 extracts the character broadcast serial data from the binarized data S161a to S161c, and the decoding circuit 420 performs a decoding process on the extraction serial data S163a to S163c output from the extraction circuit 163, and decodes the data S420a to S420c. Is output. Based on the error detection signal S321b, the decode data selection circuit 182 selects one having no decode error from the decode data S420a to S420c, and outputs it as final decode data S182. When the error detection circuit 321 detects an error from the final decoded data S182, it outputs an error detection signal S321b to the error count circuit 331. The controller 332 detects an optimal CRI amplitude determination value based on the error number count data S331 counted by the error number count circuit, and outputs the optimal amplitude determination value S332 to the slice level calculation unit 410. Then, the amplitude determination circuit 312 updates the CRI amplitude determination value with the optimum amplitude determination value S332.

以上のように、本実施の形態4によるデータスライス装置300によれば、最大/最小検索回路411を、CRI信号Cのみでなく、フレーミングコード信号Dおよびテキストデータ信号Eの最大値および最小値をも検索するようにし、CRI信号Cのみでなく、フレーミングコード信号Dおよびテキストデータ信号Eをも用いてスライスレベルの算出処理を行うようにしたことにより、CRI信号C以降の信号において信号の形状が変化した場合でも、その信号形状に対応したスライスレベルデータを算出することができるので、デコードエラーの発生率を更に低く抑えることができる。   As described above, according to the data slicing device 300 according to the fourth embodiment, the maximum / minimum search circuit 411 determines not only the CRI signal C but also the maximum and minimum values of the framing code signal D and the text data signal E. And the slice level calculation process is performed using not only the CRI signal C but also the framing code signal D and the text data signal E, so that the shape of the signal in the signals after the CRI signal C can be obtained. Even if it changes, slice level data corresponding to the signal shape can be calculated, so that the rate of occurrence of decoding errors can be further reduced.

本発明による振幅判定値設定方法は、振幅判定値を、ディジタル信号の信号形状に適した値に更新することにより、信号形状に適した振幅判定値を用いて所望の信号を検出し、スライスレベルデータを算出することができるので、ディジタル信号の歪みが変化する場合でも、デコードエラーの発生を抑制することができ、データスライス装置等に有用である。   In the amplitude determination value setting method according to the present invention, a desired signal is detected using an amplitude determination value suitable for the signal shape by updating the amplitude determination value to a value suitable for the signal shape of the digital signal, and the slice level Since data can be calculated, the occurrence of a decoding error can be suppressed even when the distortion of the digital signal changes, which is useful for a data slicer or the like.

本実施の形態1に係るデータスライス装置の構成を示すブロック図である。It is a block diagram which shows the structure of the data slice apparatus which concerns on this Embodiment 1. FIG. 本実施の形態1に係るデータスライス装置に、減衰した信号が入力された場合の動作を示すタイミング図である。FIG. 10 is a timing diagram illustrating an operation when an attenuated signal is input to the data slicing device according to the first embodiment. 本実施の形態2に係るデータスライス装置の構成を示すブロック図である。It is a block diagram which shows the structure of the data slice apparatus which concerns on this Embodiment 2. FIG. 本実施の形態2に係るデータスライス装置に、減衰した信号が入力された場合の動作を示すタイミング図である。FIG. 10 is a timing diagram illustrating an operation when an attenuated signal is input to the data slicing device according to the second embodiment. 本実施の形態3に係るデータスライス装置の構成を示すブロック図である。It is a block diagram which shows the structure of the data slice apparatus which concerns on this Embodiment 3. CRI振幅判定値を設定する際に用いる、CRI振幅判定値とエラー数との関係を表した図である。It is a figure showing the relationship between a CRI amplitude judgment value and the number of errors used when setting a CRI amplitude judgment value. 本実施の形態3に係るデータスライス装置に、減衰した信号が入力された場合の動作を示すタイミング図である。FIG. 10 is a timing diagram illustrating an operation when an attenuated signal is input to the data slicing device according to the third embodiment. 本実施の形態3に係るデータスライス装置において、CRI振幅判定値を設定する方法を説明するフローチャートである。10 is a flowchart illustrating a method for setting a CRI amplitude determination value in the data slicing device according to the third embodiment. 本実施の形態4に係るデータスライス装置の構成を示すブロック図である。It is a block diagram which shows the structure of the data slice apparatus which concerns on this Embodiment 4. 従来のデータスライス装置の構成を示すブロック図である。It is a block diagram which shows the structure of the conventional data slice device. 従来のデータスライス装置に、正常な信号が入力された時の動作を示すタイミング図である。It is a timing diagram which shows operation | movement when a normal signal is input into the conventional data slice device. 従来のデータスライス装置に、減衰した信号が入力された場合の動作を示すタイミング図である。It is a timing diagram which shows operation | movement when the attenuated signal is input into the conventional data slice device.

符号の説明Explanation of symbols

110 映像信号入力端子
S110 アナログ映像信号
120 A/D変換器
S120、S140 ディジタル映像信号
130 CRI検出部
131同期分離回路
S131a 垂直同期信号
S131b 水平同期信号
132 CRI検出範囲信号生成回路
S132 CRI検出範囲信号
140 LPF
150、210、310、410、510 スライスレベル算出部
151 立下り検出回路
S151 立下り検出パルス
152 周波数検出回路
S152 周波数データ
153 周波数判定回路
S153 周波数判定ゲートパルス
151、211 CRI判定回路
S154、S211a 周波数判定パルス
S211b 振幅判定パルス
155、212、411 最大/最小検索回路
155a、S212a、S411a 最大値検索データ
155b、S212b、S411b 最小値検索データ
213 最大/最小検出回路
S213a 最大値検出データ
S213b 最小値検出データ
156、214、311 平均/振幅算出回路
511 平均算出回路
S156a、S311a 基準スライスレベルデータ
S214a、S511 スライスレベルデータ
S156b、S214b、S311b 振幅検出データ
S311c 振幅レベルデータ
215、312 振幅判定回路
S215、S312 振幅判定ゲートパルス
412 デコードデータ単位パルス生成回路
S412 デコードデータ単位パルス
413 パルス判定回路
S413 平均/振幅算出単位判定パルス
157 スライスレベルオフセット値算出回路
S157a 上側スライスレベルデータ
S157b 下側スライスレベルデータ
160、220 データスライス部
161、221 2値化回路
S161a、S161b、S161c、S221 2値化データ
162 抜き取りパルス生成回路
S162 抜き取りパルス
163、222 抜き取り回路
S163a、S163b、S163c、S222 抜き取りシリアルデータ
170、230、420 デコード回路
S170a、S170b、S170c、S230、S420a、S420b、
S420c デコードデータ
S420d デコードデータ検出期間ゲートパルス
180、320 データ選択部
181、321 エラー検出回路
S181、S321a デコードデータ選択信号
S321b エラー検出信号
182 デコードデータ選択回路
S182 最終デコードデータ
S230 デコードデータ
190 映像信号出力端子
330 振幅判定値設定部
331 エラー数カウント回路
S331 エラー数カウントデータ
332 コントローラ
S332 最適振幅判定値
110 Video signal input terminal S110 Analog video signal 120 A / D converters S120, S140 Digital video signal 130 CRI detector 131 Sync separation circuit S131a Vertical sync signal S131b Horizontal sync signal 132 CRI detection range signal generation circuit S132 CRI detection range signal 140 LPF
150, 210, 310, 410, 510 Slice level calculation unit 151 Falling detection circuit S151 Falling detection pulse 152 Frequency detection circuit S152 Frequency data 153 Frequency determination circuit S153 Frequency determination gate pulse 151, 211 CRI determination circuit S154, S211a Frequency determination Pulse S211b Amplitude determination pulses 155, 212, 411 Maximum / minimum search circuits 155a, S212a, S411a Maximum value search data 155b, S212b, S411b Minimum value search data 213 Maximum / minimum detection circuit S213a Maximum value detection data S213b Minimum value detection data 156 214, 311 Average / amplitude calculation circuit 511 Average calculation circuits S156a, S311a Reference slice level data S214a, S511 Slice level data S156b, S2 4b, S311b Amplitude detection data S311c Amplitude level data 215, 312 Amplitude determination circuits S215, S312 Amplitude determination gate pulse 412 Decode data unit pulse generation circuit S412 Decode data unit pulse 413 Pulse determination circuit S413 Average / amplitude calculation unit determination pulse 157 Slice level Offset value calculation circuit S157a Upper slice level data S157b Lower slice level data 160, 220 Data slice units 161, 221 Binarization circuits S161a, S161b, S161c, S221 Binary data 162 Extraction pulse generation circuit S162 Extraction pulses 163, 222 Extraction circuits S163a, S163b, S163c, S222 Extraction serial data 170, 230, 420 Decoding circuit S170a, 170b, S170c, S230, S420a, S420b,
S420c Decode data S420d Decode data detection period gate pulses 180, 320 Data selection units 181, 321 Error detection circuit S181, S321a Decode data selection signal S321b Error detection signal 182 Decode data selection circuit S182 Final decode data S230 Decode data 190 Video signal output terminal 330 Amplitude determination value setting unit 331 Error number count circuit S331 Error number count data 332 Controller S332 Optimal amplitude determination value

Claims (1)

シリアルで伝送されるデータを含んだ入力信号が所望する信号であるか判定するための振幅判定値に、開始値を設定する開始値設定ステップと、
所定の期間、上記振幅判定値に基いて、上記入力信号の振幅が所望の信号であるか判定し、所望の信号を検出する信号検出ステップと、
所望の信号を検出すると、該検出された信号に基づき、上記入力信号を2値化するためのスライスレベルデータを算出するスライスレベルデータ算出ステップと、
上記入力信号を、上記スライスレベルデータにより2値化して2値化信号に変換する2値化ステップと、
上記2値化信号より上記データを抜き取ったシリアルデータをデコードし、デコードデータを生成するデコードステップと、
上記デコードデータのエラーの数をカウントし、上記振幅判定値と該エラーの数とを記憶するエラー数取得ステップと、
所定の期間、上記入力信号を2値化およびデコードして、上記デコードデータのエラーの数をカウントすると、上記振幅判定値に対して、所定のステップ値で終了値に近づくように演算処理を行い、上記振幅判定値を更新する振幅判定値更新ステップと、
開始値から終了値まで所定のステップ値で上記振幅判定値を変更しながら取得した、上記振幅判定値を各値とした場合のエラーの数より、エラーの数が最小となる振幅判定値を最適な振幅判定値として選択する振幅判定値選択ステップと、
を備えたことを特徴とする振幅判定値設定方法。
A start value setting step for setting a start value to an amplitude determination value for determining whether an input signal including data transmitted serially is a desired signal;
A signal detection step of determining whether the amplitude of the input signal is a desired signal based on the amplitude determination value for a predetermined period, and detecting the desired signal;
When a desired signal is detected, a slice level data calculating step for calculating slice level data for binarizing the input signal based on the detected signal;
A binarization step for binarizing the input signal with the slice level data and converting it to a binarized signal;
A decoding step for decoding serial data obtained by extracting the data from the binarized signal and generating decoded data;
An error number acquisition step of counting the number of errors in the decoded data and storing the amplitude determination value and the number of errors;
When the input signal is binarized and decoded for a predetermined period and the number of errors in the decoded data is counted, the amplitude determination value is subjected to arithmetic processing so as to approach the end value at a predetermined step value. An amplitude determination value update step for updating the amplitude determination value;
The amplitude decision value that minimizes the number of errors is optimal than the number of errors when the amplitude decision value is set to each value obtained while changing the amplitude decision value at a predetermined step value from the start value to the end value. An amplitude determination value selection step to select as a proper amplitude determination value;
An amplitude judgment value setting method characterized by comprising:
JP2007107384A 2007-04-16 2007-04-16 Amplitude judgment value setting method Expired - Fee Related JP4646944B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007107384A JP4646944B2 (en) 2007-04-16 2007-04-16 Amplitude judgment value setting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007107384A JP4646944B2 (en) 2007-04-16 2007-04-16 Amplitude judgment value setting method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2002192954A Division JP4091360B2 (en) 2002-07-02 2002-07-02 Data slicing apparatus and data slicing method

Publications (2)

Publication Number Publication Date
JP2007235987A JP2007235987A (en) 2007-09-13
JP4646944B2 true JP4646944B2 (en) 2011-03-09

Family

ID=38556028

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007107384A Expired - Fee Related JP4646944B2 (en) 2007-04-16 2007-04-16 Amplitude judgment value setting method

Country Status (1)

Country Link
JP (1) JP4646944B2 (en)

Also Published As

Publication number Publication date
JP2007235987A (en) 2007-09-13

Similar Documents

Publication Publication Date Title
JP4091360B2 (en) Data slicing apparatus and data slicing method
US7046298B2 (en) Data signal extraction apparatus
US6909467B2 (en) Broadcast text data sampling apparatus and broadcast text data sampling method
US8471960B2 (en) Method capable of avoiding data error from incorrect sampling points
KR100789680B1 (en) Clock generation circuit and teletext broadcasting data sampling circuit
US7321637B2 (en) Data slice control device and control method
JP4353828B2 (en) False detection prevention circuit
JP4646944B2 (en) Amplitude judgment value setting method
JP2003274373A (en) Digital information signal reproducing method and digital information signal decoder
EP2790403B1 (en) Video signal decoding apparatus and associated method
US8761267B2 (en) Noise estimator device of video decoder and related method
JP4902886B2 (en) Teletext receiving circuit and teletext receiving method
JP3781590B2 (en) Noise reduction signal processing device
KR0167903B1 (en) Data detecting circuit
JP2007266682A (en) Video signal conversion device
JP3116677B2 (en) HDTV signal level determination circuit
JP2009152840A (en) Synchronizing signal detecting circuit and synchronizing signal detection method
JP3670985B2 (en) Data service signal detector
KR0185937B1 (en) Method & apparatus for detecting noise level of image signals
KR20090128020A (en) Prevention device for horizontal synchronizing signal of error sensing is followed by error movement and method same
JPH06209485A (en) Signal processing unit
JP2005244708A (en) Sampling circuit
JP2006339800A (en) Slicing device for extracting multiplex data
JP2000134508A (en) Ghost removing device

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20101109

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20101207

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131217

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees