JP3339542B2 - Sampling clock cycle control method and device - Google Patents

Sampling clock cycle control method and device

Info

Publication number
JP3339542B2
JP3339542B2 JP09799096A JP9799096A JP3339542B2 JP 3339542 B2 JP3339542 B2 JP 3339542B2 JP 09799096 A JP09799096 A JP 09799096A JP 9799096 A JP9799096 A JP 9799096A JP 3339542 B2 JP3339542 B2 JP 3339542B2
Authority
JP
Japan
Prior art keywords
sampling
video signal
clock cycle
sampling clock
digital video
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
JP09799096A
Other languages
Japanese (ja)
Other versions
JPH09281944A (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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP09799096A priority Critical patent/JP3339542B2/en
Publication of JPH09281944A publication Critical patent/JPH09281944A/en
Application granted granted Critical
Publication of JP3339542B2 publication Critical patent/JP3339542B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、アナログ映像信号
をディジタル映像信号に変換するサンプリング手段を有
した映像情報装置に係わり、特にパソコン(以後PCと
記す)やワークステーション(以後WSと記す)などの
1画素単位のアナログ映像信号を正確にディジタル映像
信号に変換するための装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a video information apparatus having a sampling means for converting an analog video signal into a digital video signal, and more particularly to a personal computer (hereinafter abbreviated as PC), a workstation (hereinafter abbreviated as WS) and the like. The present invention relates to an apparatus for accurately converting an analog video signal of one pixel unit into a digital video signal.

【0002】[0002]

【従来の技術】近年、グラフィカルユーザーインタフェ
ースの進歩とともに、パソコンが急速に普及してきてお
り、パソコンの映像信号を液晶プロジェクタなどに表示
してプレゼンテーションしたり、ビデオプリンタでプリ
ントアウトするなど各種映像情報機器と接続して使用す
るすることが多くなってきている。
2. Description of the Related Art In recent years, personal computers have rapidly become widespread with the progress of graphical user interfaces, and various video information devices such as displaying video signals of the personal computer on a liquid crystal projector or the like, or printing out with a video printer. It is increasingly used to connect with.

【0003】一方、パソコンなどの出力映像信号は、1
画素周期に信号レベルが変化しており、マトリクス表示
装置に表示する場合やメモリへ書き込んで信号処理を行
なう場合には、上記画素周期に一致したサンプリングク
ロックが必要になる。ところが、パソコンなどでこのク
ロック出力端子を持つものは少ないため、映像情報機器
側で水平同期信号をPLLなどで逓倍してサンプリング
クロックを再生する必要がある。
On the other hand, an output video signal of a personal computer or the like is 1
The signal level changes in the pixel cycle, and when displaying on a matrix display device or performing signal processing by writing to a memory, a sampling clock that matches the pixel cycle is required. However, since few personal computers have this clock output terminal, it is necessary to reproduce the sampling clock by multiplying the horizontal synchronizing signal by a PLL or the like on the video information device side.

【0004】[0004]

【発明が解決しようとする課題】PLL回路で水平同期
信号を逓倍してサンプリングクロックを再生するには、
あらかじめ逓倍数が既知でなければならない。ところ
が、PCやWSによっては、バックポーチやフロンとポ
ーチの期間が既知値と異なるため、バックポーチ、フロ
ントポーチ、有効表示エリアなどの画素数の既定値に基
づいて再生したサンプリングクロック周期と、入力した
アナログ映像信号の画素周期が異なってしまい、1画素
を正確にサンプリングできないといった問題があった。
In order to reproduce a sampling clock by multiplying a horizontal synchronizing signal by a PLL circuit,
The multiplier must be known in advance. However, depending on the PC or WS, the period of the back porch or front and porch is different from the known value. Therefore, the sampling clock cycle reproduced based on the default number of pixels of the back porch, front porch, effective display area, etc. There is a problem that the pixel cycle of the analog video signal thus obtained is different, and one pixel cannot be sampled accurately.

【0005】これに対して、特開平1−237689号
公報には、PCやWSに1ライン分の有効表示エリアに
基準信号を発生させておき、再生したサンプリングクロ
ックでその映像信号をサンプリングしサンプリング個数
から再生したサンプリングクロック総数の過不足を判断
する手法が開示されている。
On the other hand, Japanese Patent Application Laid-Open No. 1-237689 discloses a method in which a reference signal is generated in an effective display area for one line in a PC or WS, and a video signal is sampled by a reproduced sampling clock. There is disclosed a method of determining whether the total number of sampling clocks reproduced from the number is sufficient or not.

【0006】しかし、この従来技術では、PCやWSに
基準信号発生用の特別なプログラムをインストールする
必要があり、PCやWSが特定のプログラムで動作する
よう設定されている場合など、わざわざその実行を中断
しなければならず、そのため専門家の助けを借りなけれ
ばならないなど使い勝手の点で問題があった。
However, in this conventional technique, it is necessary to install a special program for generating a reference signal in a PC or WS, and when the PC or WS is set to operate with a specific program, the execution of the program is bothersome. Had to be interrupted, so that there was a problem in terms of usability such as the necessity of obtaining the help of an expert.

【0007】本発明の目的は、PCやWSに基準信号を
発生させるなどの特殊操作なしに、PCやWSの出力ア
ナログ映像信号を1画素毎正確にサンプリングするサン
プリングクロックを再生することにある。
An object of the present invention is to reproduce a sampling clock for accurately sampling an analog video signal output from a PC or WS for each pixel without a special operation such as generating a reference signal in the PC or WS.

【0008】[0008]

【課題を解決するための手段】上記目的を達成するため
に、異なるタイミングでサンプリングしたディジタル映
像信号間の相関値を演算する手段を設け、画面の複数箇
所毎でサンプリングタイミングを±1画素相当ずらして
相関値データ列を求める。上記相関値データ列から画面
の複数箇所での局部的なサンプリングポイントを求め
て、画面の複数箇所でのサンプリングポイントの位置ず
れから再生したサンプリングクロック周期と入力映像信
号の画素周期のずれを検出し、そのずれがなくなるよう
PLLの逓倍数を制御する。これにより、入力アナログ
映像信号に応じてサンプリングクロック周期を自動的に
最適値に設定でき正確なサンプリングを実現する。
In order to achieve the above object, means for calculating a correlation value between digital video signals sampled at different timings are provided, and the sampling timing is shifted by ± 1 pixel for each of a plurality of positions on the screen. To obtain a correlation value data string. The local sampling points at a plurality of points on the screen are obtained from the correlation value data sequence, and the deviation between the sampling clock cycle reproduced from the displacement of the sampling points at the plurality of points on the screen and the pixel cycle of the input video signal is detected. , The number of PLL multiplications is controlled so as to eliminate the deviation. As a result, the sampling clock cycle can be automatically set to an optimum value according to the input analog video signal, and accurate sampling is realized.

【0009】[0009]

【発明の実施の形態】以下、本発明の実施の形態につい
て、図面を用いて説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0010】図1は本発明に係るサンプリングクロック
周期を一致させるための装置の第1の実施形態を示すブ
ロック図であって、1はAD変換器、2はメモリ、3は
比較器、11〜18はカウンタ、4は制御回路、20は
メモリ書込/読出信号発生回路、21〜28はカウンタ
クロック発生回路、5はPLL回路、6は遅延回路であ
る。
FIG. 1 is a block diagram showing a first embodiment of an apparatus for matching sampling clock periods according to the present invention, wherein 1 is an AD converter, 2 is a memory, 3 is a comparator, and 11 to 11. 18 is a counter, 4 is a control circuit, 20 is a memory write / read signal generation circuit, 21 to 28 are counter clock generation circuits, 5 is a PLL circuit, and 6 is a delay circuit.

【0011】同図においてこの実施例は、アナログ映像
信号をディジタル変換するAD変換器1と、ディジタル
映像データを遅延するメモリ2(以下では、遅延時間は
1フレーム以上とする)と、データの大きさを比較する
比較器3と比較結果をカウントするカウンタ11〜18
と、メモリ書込/読出信号発生回路20とカウンタクロ
ック発生回路21〜28とからなる制御回路4と、水平
同期信号HsyncからサンプリングクロックDotCKを
再生するPLL回路5と、このサンプリングクロックD
otCKを所定の時間遅延する遅延回路6と、これら各
回路ブロックなどを制御するマイコン7とで構成されて
いる。
Referring to FIG. 1, an embodiment includes an AD converter 1 for digitally converting an analog video signal, a memory 2 for delaying digital video data (hereinafter, the delay time is one frame or more), and a data size. And counters 11 to 18 for counting the comparison result.
A control circuit 4 including a memory write / read signal generation circuit 20 and counter clock generation circuits 21 to 28; a PLL circuit 5 for reproducing a sampling clock DotCK from the horizontal synchronization signal Hsync;
It is composed of a delay circuit 6 for delaying otCK for a predetermined time, and a microcomputer 7 for controlling each of these circuit blocks.

【0012】マイコン7は、入力アナログ映像信号の水
平同期信号Hsysncと垂直同期信号Vsyncとの周期を測
定演算し、内蔵したROMデータなどと照らし合わせて
入力アナログ映像信号の画素周期などの既定値を求め
る。そして、この結果より、PLL回路5の分周器50
の分周比やVCO51の中心発振周波数などの条件を設
定し、この条件に基づいてサンプリングクロックDot
CKをPLL回路5から発生させる。このサンプリング
クロックDotCKは、遅延回路6で遅延された後、A
D変換器1にサンプリングクロックとして供給され、ま
た、制御回路4に供給される。
The microcomputer 7 measures and calculates the cycle of the horizontal synchronizing signal Hsysnc and the vertical synchronizing signal Vsync of the input analog video signal, and sets a predetermined value such as a pixel cycle of the input analog video signal against the built-in ROM data. Ask. From the result, the frequency divider 50 of the PLL circuit 5 is obtained.
, And the conditions such as the center oscillation frequency of the VCO 51, and the sampling clock Dot is set based on these conditions.
CK is generated from the PLL circuit 5. After the sampling clock DotCK is delayed by the delay circuit 6,
The signal is supplied to the D converter 1 as a sampling clock and to the control circuit 4.

【0013】一方、制御回路4では、メモリ書込/読出
信号発生回路20で表示画面中の所望部分データをメモ
リ3に書込み、読出しを行なう。カウンタクロック発生
回路20〜28は、上記表示画面中の所望部分の内の特
定期間だけカウンタ10〜18が動作するようにする。
On the other hand, in the control circuit 4, the memory write / read signal generation circuit 20 writes desired data in the display screen to the memory 3 and reads it. The counter clock generation circuits 20 to 28 enable the counters 10 to 18 to operate only for a specific period in a desired portion of the display screen.

【0014】次に、図2に示すフローチャートに従っ
て、この第1の実施例の動作を詳細に説明する。なお、
図2はこの第1の実施例の全体動作を示すフローチャー
トである。また、この第1の実施例の動作が開始するの
は、映像情報機器の電源投入時、または入力アナログ映
像信号が他の仕様の異なるアナログ映像信号に変更され
たとき、あるいはユーザからの要求があったときなどで
ある。
Next, the operation of the first embodiment will be described in detail with reference to the flowchart shown in FIG. In addition,
FIG. 2 is a flowchart showing the overall operation of the first embodiment. The operation of the first embodiment starts when the power of the video information device is turned on, when the input analog video signal is changed to an analog video signal having a different specification, or when a request from the user is received. Such as when there was.

【0015】まず、マイコン7で遅延回路6の遅延量を
基本遅延量にセットし(ステップ1001)、制御回路
4を介してAD変換器1でサンプリングした映像データ
列をメモリ2に書き込む(ステップ1002)。このデ
ータ列は、例えば、1ライン分の映像データでもよい
し、数ライン分または1フレーム分などの映像データで
もよい。取り込みエリアはメモリ書込/読出信号発生回
路20で決められる。
First, the microcomputer 7 sets the delay amount of the delay circuit 6 to the basic delay amount (step 1001), and writes the video data string sampled by the AD converter 1 to the memory 2 via the control circuit 4 (step 1002). ). This data string may be, for example, video data for one line or video data for several lines or one frame. The capture area is determined by the memory write / read signal generation circuit 20.

【0016】次に、次フレーム以降でメモリ2に格納し
たデータ列を読み出しの状態にする(ステップ100
3)。そして、遅延回路6の遅延量を基準遅延量からマ
イナス1画素分からプラス1画素分まで一定刻みで変え
ていき、AD変換器1の出力とメモリ2の読み出しデー
タを比較器3で比較し、一致したデータの個数をカウン
タ11〜18でカウントして各カウンタ11〜18の結
果をマイコン11に取り込む(ステップ1004)。
Next, the data sequence stored in the memory 2 in the next and subsequent frames is brought into a read state (step 100).
3). Then, the delay amount of the delay circuit 6 is changed from the reference delay amount by −1 pixel to 1 pixel at regular intervals, and the output of the AD converter 1 and the read data of the memory 2 are compared by the comparator 3 and coincidence is made. The number of data obtained is counted by the counters 11 to 18, and the results of the counters 11 to 18 are taken into the microcomputer 11 (step 1004).

【0017】カウンタ11〜18でカウントする範囲
は、カウンタクロック発生回路21〜28で決められ、
本実施例では例えば図3に示すように、画面を水平方向
に8分割してエリア1はカウンタ11、エリア2はカウ
ンタ12、エリア3はカウンタ13、エリア4はカウン
タ14、エリア5はカウンタ15、エリア6はカウンタ
16、エリア7はカウンタ17、エリア8はカウンタ1
8に対応するものとして説明する。すなわち、カウンタ
11〜18で各エリア毎の比較累積した結果を求める事
になる。
The range counted by the counters 11 to 18 is determined by the counter clock generation circuits 21 to 28.
In this embodiment, for example, as shown in FIG. 3, the screen is divided into eight in the horizontal direction, area 1 is a counter 11, area 2 is a counter 12, area 3 is a counter 13, area 4 is a counter 14, and area 5 is a counter 15. , Area 6 is counter 16, area 7 is counter 17, area 8 is counter 1.
8 will be described. That is, the results of comparison and accumulation for each area are obtained by the counters 11 to 18.

【0018】サンプリングタイミングをずらしながらA
D変換したデータの例を図5に示す。同図の順番とは、
サンプリングした順番であり番号の小さい方から大きい
方に時間が経過している。遅延とはサンプリングの基準
タイミングを“0”としてそれからのサンプリングタイ
ミングのずれ量であり、±1画素分の範囲にしている。
ここで、例えば遅延量0のデータをメモリ2に格納して
おき、遅延量0のデータと遅延量±1画素分のデータと
の比較演算を行うと図6の様になり、これが比較器3の
出力に相当する(一致の場合は“1”、不一致の場合は
“0”)。さらに図6の順番1〜5番目、6〜10番
目、11〜15番目、16〜20番目、21〜25番
目、26〜30番目、31〜35番目、36〜40番目
のそれぞれの区間で“1”の個数を累積すると図7の様
になる。図6の順番1〜5番目はエリア1、6〜10番
目はエリア2、11〜15番目はエリア3、16〜20
番目はエリア4、21〜25番目はエリア5、26〜3
0番目はエリア6、31〜35番目はエリア7、36〜
40番目はエリア8に対応し、それぞれカウンタ11〜
18の出力に相当する。すなわち各エリアでの相関値と
なり、マイコン7にはこのデータ列が取り込まれてい
る。図7に基づき、各エリアの相関値を遅延量を横軸に
して示したのが図8である。なお、図8では相関値の最
大値で正規化して表している。
A while shifting the sampling timing
FIG. 5 shows an example of D-converted data. The order in the figure is
The order of sampling is that the time has elapsed from the smaller number to the larger number. The delay is the amount of deviation of the sampling timing from the reference timing of sampling "0", which is within a range of ± 1 pixel.
Here, for example, when the data of the delay amount 0 is stored in the memory 2 and the comparison operation of the data of the delay amount 0 and the data of the delay amount ± 1 pixel is performed, the result becomes as shown in FIG. (“1” if matched, “0” if mismatched). Further, in the respective sections of the order 1 to 5, 6 to 10, 11 to 15, 16 to 20, 21 to 25, 26 to 30, 31 to 35, and 36 to 40 in FIG. When the number of 1 "is accumulated, the result is as shown in FIG. In FIG. 6, the first to fifth areas are area 1, the sixth to tenth areas are area 2, the eleventh to fifteenth areas are three, and 16 to 20.
The area is area 4, 21-25 The area is area 5, 26-3
The 0th is area 6, 31-35 is the area 7, 36-
The 40th corresponds to the area 8 and the counters 11 to 11 respectively.
18 outputs. That is, the correlation value is obtained for each area, and the microcomputer 7 receives this data string. FIG. 8 shows the correlation value of each area based on FIG. 7 with the delay amount on the horizontal axis. In FIG. 8, the correlation value is normalized by the maximum value.

【0019】図2に戻って、マイコン7(図1)は図8
の各エリアの相関値列のピーク部分の長さ(すなわちピ
ーク幅)を求め(ステップ1006)、このピーク幅が
許容範囲内にあるか否か判定する(ステップ100
7)。この許容範囲の最大値は1画素周期に相当し、最
小値は例えば10分の1画素周期相当とすればよい。最
大値については原理上1画素周期以下でなければならな
いが、最小値については0以上であればよく信号波形の
なまりなどを考慮して適当な値に決めればよい。なお、
サンプリングタイミングが映像信号の1画素周期幅の中
央付近にあり、そのタイミングでの映像信号データを基
準データとしてメモリ2に書き込んで上記ピーク部分を
求めると、ピーク部分の長さは波形のなまり等がない場
合1画素周期相当になり、遅延量0を中心にピークの長
さが遅延量プラス方向とマイナス方向でほぼ等しくな
る。逆にいえば、本実施例を実行しサンプリングクロッ
ク周期を一致した後すなわち図8の状態になった後で、
上記のようにピーク部分の長さが1画素周期相当で、遅
延量0を中心にピークの長さが遅延量プラス方向とマイ
ナス方向でほぼ等しくなるよう基準タイミングをずらせ
ば、そのサンプリングタイミングがサンプリング最適ポ
イントになる。
Returning to FIG. 2, the microcomputer 7 (FIG. 1)
The length (ie, peak width) of the peak portion of the correlation value sequence of each area is determined (step 1006), and it is determined whether or not this peak width is within an allowable range (step 100).
7). The maximum value of this allowable range corresponds to one pixel period, and the minimum value may correspond to, for example, one tenth pixel period. In principle, the maximum value must be equal to or less than one pixel period, but the minimum value may be equal to or greater than 0, and may be determined to an appropriate value in consideration of the rounding of the signal waveform. In addition,
When the sampling timing is near the center of the one-pixel cycle width of the video signal, and the video signal data at that timing is written in the memory 2 as the reference data and the above-described peak portion is obtained, the length of the peak portion may be distorted. In the case where there is no delay amount, it is equivalent to one pixel period, and the length of the peak with the delay amount 0 as the center is substantially equal in the plus direction and the minus direction of the delay amount. Conversely, after the embodiment is executed and the sampling clock cycle is matched, that is, after the state of FIG.
If the reference timing is shifted so that the length of the peak portion is equivalent to one pixel period and the length of the peak is substantially equal in the plus direction and the minus direction with the delay amount 0 as the center, the sampling timing becomes Be the best point.

【0020】再び図2に戻って、ステップ1007でピ
ーク幅が許容範囲内にあれば、ピーク幅の中央部に相当
する遅延量を求めて配列CENT[j]に代入する(ス
テップ1008)。ここで、ピーク期間がステップ10
07の判定で許容範囲を満たさないエリアは演算対象か
らはずす。ステップ1006からステップ1009を各
エリア毎に行うと、ピーク幅が許容範囲内にあるエリア
での中心値(遅延量)が求まり、それぞれ線で結ぶと図
8のようになる。
Returning to FIG. 2, if the peak width is within the allowable range in step 1007, a delay amount corresponding to the center of the peak width is obtained and assigned to array CENT [j] (step 1008). Here, the peak period is set at step 10
Areas that do not satisfy the allowable range in the determination of 07 are excluded from the calculation target. When steps 1006 to 1009 are performed for each area, the center value (delay amount) in the area where the peak width is within the allowable range is obtained.

【0021】実は、図8はサンプリングクロック周期と
入力映像信号の画素周期が一致している場合の様子であ
る。サンプリングクロック周期と入力映像信号の画素周
期が不一致の場合の様子を図9〜図12に示す。図9は
サンプリングクロック周期が入力映像信号の画素周期に
対し長く、入力映像信号の1ライン当たりの全画素数に
対してサンプリングクロック総数が2個不足、図10は
入力映像信号のライン当たりの全画素数に対してサンプ
リングクロック総数が1個不足、図11は入力映像信号
の1ライン当たりの全画素数に対してサンプリングクロ
ック総数が1個過剰、図12は入力映像信号の1ライン
当たりの全画素数に対してサンプリングクロック総数が
2個過剰の場合である。
In fact, FIG. 8 shows a case where the sampling clock cycle matches the pixel cycle of the input video signal. FIGS. 9 to 12 show the case where the sampling clock cycle and the pixel cycle of the input video signal do not match. 9 shows that the sampling clock cycle is longer than the pixel cycle of the input video signal, and the total number of sampling clocks is two short of the total number of pixels per line of the input video signal. FIG. 11 shows that the total number of sampling clocks is one less than the total number of pixels per line of the input video signal, and FIG. 12 shows that the total number of sampling clocks is one more than the total number of pixels per line of the input video signal. This is a case where the total number of sampling clocks is two more than the number of pixels.

【0022】図8〜図12からサンプリングクロック総
数の過不足と中心値の変化が連動している事がわかる。
この関係を定量化してサンプリングクロック総数の過不
足を判定する。
FIGS. 8 to 12 show that the excess and deficiency of the total number of sampling clocks and the change of the central value are linked.
This relationship is quantified to determine whether the total number of sampling clocks is excessive or insufficient.

【0023】図2に戻って隣り合うエリアとの中心値の
差分を求める(ステップ1011)。なお、最も左に位
置するエリア(例えばエリア1)と最も右に位置するエ
リア(例えばエリア8)ではそれらの差を求めている
(ステップ1012)。また、前に述べたように、ピー
ク期間がステップ1007の判定で許容範囲を満たさな
いエリアは演算対象からはずしている。
Returning to FIG. 2, the difference between the center values of adjacent areas is determined (step 1011). The difference between the leftmost area (for example, area 1) and the rightmost area (for example, area 8) is calculated (step 1012). Further, as described above, the area whose peak period does not satisfy the allowable range in the determination in step 1007 is excluded from the calculation target.

【0024】これらの演算過程と結果を図13に示す。
図8から図12までの結果に基づく表である。例えば2
個不足の部分を見ると図9のエリア2からエリア4に移
るとき差分の値の符号がマイナスになっている。エリア
6からエリア8に移るときもマイナスになっている。そ
の外の差分値はプラスである。差分の符号がマイナスが
2個、プラスが4個である。一方、1個過剰の部分を見
ると図11のエリア8からエリア2に移るとき差分の値
の符号がプラスになっている。その外の差分値はマイナ
スである。差分の符号がプラスが1個、マイナスが6個
である。すなわち、少ない符号が変化点を表しサンプリ
ングクロック総数の過不足数に相当し、変化点の符号が
サンプリングクロック総数の過不足を表している。
FIG. 13 shows the calculation process and the result.
13 is a table based on the results of FIGS. 8 to 12. For example, 2
Looking at the part where the number is insufficient, the sign of the value of the difference becomes negative when moving from area 2 to area 4 in FIG. When moving from area 6 to area 8, the value is also negative. Other difference values are positive. The sign of the difference is two for minus and four for plus. On the other hand, when looking at an excess portion, the sign of the value of the difference is positive when moving from area 8 to area 2 in FIG. Other difference values are negative. The sign of the difference is one plus and six minus. That is, a small code indicates a change point and corresponds to the excess or deficiency of the total number of sampling clocks.

【0025】この考え方に乗っ取って、図2のフローの
説明を続ける。ステップ1015で差分の符号判定を行
い、正の符号の個数を変数Posiに代入(ステップ1
016)し、負の符号の個数を変数negaに代入(ス
テップ1017)する。ただし、差分値0は正として扱
う。もし、負の符号の個数が0ならばサンプリングクロ
ック総数は過不足なし、すなわち一致しているのでその
まま終了し、負の符号の個数が0でないならば、サンプ
リングクロック総数は過不足があるとして処理を続ける
(ステップ1018)。ステップ1019では正の符号
の個数と負の符号の個数を比較する。もし、符号の個数
が同じならば、過不足判定不可能なのでエラー出力を行
う。これは、サンプリングクロック総数の過不足が多い
ため、本実施例の8個のエリアでは判定できないため
で、さらに細かく分割すればこの問題は解決できる。こ
の詳細については後述する。ここでは複雑な説明を避け
エラー出力を行う事としておく。
Taking this idea into account, the description of the flow of FIG. 2 will be continued. In step 1015, the sign of the difference is determined, and the number of positive signs is substituted into the variable Posi (step 1).
016), and substitute the number of negative signs for the variable nega (step 1017). However, the difference value 0 is treated as positive. If the number of negative signs is 0, the total number of sampling clocks is not excessive or insufficient, that is, it is the same, so the process is terminated. If the number of negative signs is not 0, it is determined that the total number of sampling clocks is excessive or insufficient. (Step 1018). In step 1019, the number of positive signs is compared with the number of negative signs. If the number of codes is the same, an error is output because it is impossible to determine whether the number is excessive or insufficient. This is because the total number of sampling clocks is often too large or small, so that the determination cannot be made in the eight areas of the present embodiment. The details will be described later. Here, an error output is performed to avoid complicated explanation.

【0026】ステップ1019で符号の個数が同じでな
いならば、符号の個数の少ない方を判定(ステップ10
21)し、正の符号が多ければ変数dnに負の符号の個
数を代入し(ステップ1022)、負の符号が多ければ
変数dnに正の符号の個数にマイナス符号をつけた値を
代入する(ステップ1023)。最後にPLL5の分周
器50にすでに設定されている値Nにdnを加えた値を
設定する。図13で述べたようにdnには過不足を是正
する値が代入されているので、PLL5が発振する周波
数は、入力した映像信号の画素周期に一致したものとな
る。
If the number of codes is not the same in step 1019, the smaller number of codes is determined (step 1019).
21) Then, if the number of positive signs is large, the number of negative signs is substituted for the variable dn (step 1022). If the number of negative signs is large, a value obtained by adding the minus sign to the number of positive signs is substituted for the variable dn. (Step 1023). Finally, a value obtained by adding dn to the value N already set in the frequency divider 50 of the PLL 5 is set. As described with reference to FIG. 13, a value for correcting excess or deficiency is assigned to dn, so that the frequency at which the PLL 5 oscillates matches the pixel period of the input video signal.

【0027】上記手法では、ユーザに対して静止画表示
要求や多少なりとも柄のある調整向き画像を要求するこ
とはあるが、PCやWSなどに特別なドラバソフトなど
をインストールする必要はなく、簡単に調整することが
できる。
In the above method, the user may be requested to display a still image or an image for adjustment with a certain pattern, but it is not necessary to install special driver software or the like on a PC or WS. It can be easily adjusted.

【0028】なお、比較器3は、量子化誤差を考慮し
て、比較入力の差が±1以内ならば一致しているとす
る。比較器3としては、例えば、図4に示すように、全
加算器30,31などを用いて構成すればよい。図4で
は、一例として、4ビットの場合を示しているが、全加
算器を増設すれば、より多くの任意のビット数にも対応
できることはいうまでもない。
It is assumed that the comparator 3 agrees if the difference between the comparison inputs is within ± 1 in consideration of the quantization error. The comparator 3 may be configured using, for example, full adders 30 and 31, as shown in FIG. FIG. 4 shows a case of 4 bits as an example, but it goes without saying that if a full adder is added, it is possible to cope with a larger arbitrary number of bits.

【0029】以上のようにして入力アナログ映像信号に
応じてサンプリングクロック周期を自動的に最適値に設
定でき、正確なサンプリングを実現できる。
As described above, the sampling clock cycle can be automatically set to the optimum value according to the input analog video signal, and accurate sampling can be realized.

【0030】図14は本発明によるサンプリングクロッ
ク周期一致方法および装置の第2の実施例を示すブロッ
ク図であって、図1に対応する部分には同一符号をつけ
ている。
FIG. 14 is a block diagram showing a second embodiment of the sampling clock cycle matching method and apparatus according to the present invention, in which parts corresponding to those in FIG.

【0031】この実施例の特徴は、カウンタの数を減ら
し回路構成を簡単化した事である。これに伴い制御回路
104も簡単になりカウンタクロック発生回路も1系統
となる。
The feature of this embodiment is that the number of counters is reduced and the circuit configuration is simplified. As a result, the control circuit 104 is simplified, and the counter clock generation circuit becomes one system.

【0032】この構成で複数のエリアの相関値を求める
には、マイコン107でカウンタクロック発生回路12
1のクロック発生期間を個別に設定すれば良いだけで、
あとは第1実施例と同じである。
In order to obtain the correlation values of a plurality of areas in this configuration, the microcomputer 107 uses the counter clock generation circuit 12
You only need to set one clock generation period individually,
The rest is the same as in the first embodiment.

【0033】この実施例では相関期間を任意に選べるの
で例えば第一実施例の図2のステップ1020のエラー
出力があった場合でも、相関区間すなわちエリアをより
多く求めるようにしてサンプリングクロック総数の過不
足数が大きな値にも容易に対応できる。また、複数個の
相関区間はそれぞれ重なり合っていてもよい。
In this embodiment, since the correlation period can be arbitrarily selected, for example, even if there is an error output in step 1020 of FIG. It can easily cope with a large shortage. Further, the plurality of correlation sections may overlap each other.

【0034】以上のようにしてより、簡単な構成で入力
アナログ映像信号に応じてサンプリングクロック周期を
自動的に最適値に設定でき、正確なサンプリングを実現
できる。
As described above, the sampling clock cycle can be automatically set to the optimum value according to the input analog video signal with a simple configuration, and accurate sampling can be realized.

【0035】図15は本発明によるサンプリングクロッ
ク周期一致方法および装置の第3の実施例を示すブロッ
ク図であって、図1に対応する部分には同一符号をつけ
ている。
FIG. 15 is a block diagram showing a third embodiment of the sampling clock cycle matching method and apparatus according to the present invention, in which parts corresponding to those in FIG.

【0036】この実施例の特徴は、比較器とカウンタの
機能をマイコン207で実行し、比較器とカウンタ回路
を無くして回路構成を簡単化した事である。これに伴い
制御回路104も簡単になりメモリ書き込み読み出し信
号発生回路120だけとなる。
The feature of this embodiment is that the functions of the comparator and the counter are executed by the microcomputer 207, and the circuit configuration is simplified by eliminating the comparator and the counter circuit. Accordingly, the control circuit 104 is simplified, and only the memory write / read signal generation circuit 120 is used.

【0037】AD変換器1でAD変換されたディジタル
映像信号データは、メモリ書き込み読み出し信号発生回
路の制御でメモリ103に書き込まれ、マイコン207
からの司令に基づき上記データを読み出してマイコン2
07に入力する。マイコン207は遅延回路6の遅延量
を変えながら、上記要領でディジタル映像信号を取り込
む。取り込んだデータは例えば図5に示す値となる。こ
のデータのうち遅延量0のデータを基準データとして、
遅延量0のデータ列と遅延量±1画素分のデータとの比
較演算を行うと図6の様になる。この比較演算は図1に
おける比較器3の動作に相当する。この比較演算結果を
順番1〜5番目、6〜10番目、11〜15番目、16
〜20番目、21〜25番目、26〜30番目、31〜
35番目、36〜40番目のそれぞれの区間で“1”の
個数を累積すると図7の様になる。図7をグラフ化する
と図8〜図12となる。これ以降の動作は第一実施例と
同じでよくここでの説明は省略する。
The digital video signal data that has been A / D converted by the A / D converter 1 is written into the memory 103 under the control of the memory write / read signal generation circuit.
Reads the above data based on the command from
07. The microcomputer 207 takes in the digital video signal in the above manner while changing the delay amount of the delay circuit 6. The captured data has, for example, the values shown in FIG. Of the data, the data of delay amount 0 is used as reference data,
FIG. 6 shows a comparison operation performed between the data sequence of the delay amount 0 and the data of the delay amount ± 1 pixel. This comparison operation corresponds to the operation of the comparator 3 in FIG. The results of this comparison operation are described in the order 1-5, 6-10, 11-15, 16
20th, 21st to 25th, 26th to 30th, 31st to 31st
FIG. 7 shows the result of accumulating the number of "1" in each of the 35th and 36th to 40th sections. FIG. 7 is a graph of FIG. 8 to FIG. Subsequent operations are the same as in the first embodiment, and description thereof will be omitted.

【0038】この実施例でも相関期間を任意に選べるの
で例えば第一実施例の図2のステップ1020のエラー
出力があった場合でも、相関区間すなわちエリアをより
多く求めるようにしてサンプリングクロック総数の過不
足数が大きな値にも容易に対応できる。また、複数個の
相関区間はそれぞれ重なり合っていてもよい。
In this embodiment as well, the correlation period can be arbitrarily selected. For example, even if there is an error output in step 1020 in FIG. It can easily cope with a large shortage. Further, the plurality of correlation sections may overlap each other.

【0039】以上のようにしてより、簡単な構成で入力
アナログ映像信号に応じてサンプリングクロック周期を
自動的に最適値に設定でき、正確なサンプリングを実現
できる。
As described above, the sampling clock cycle can be automatically set to an optimum value according to the input analog video signal with a simple configuration, and accurate sampling can be realized.

【0040】図16は本発明によるサンプリングクロッ
ク周期一致方法および装置の第4の実施例を示すブロッ
ク図であって、図1に対応する部分には同一符号をつけ
ている。
FIG. 16 is a block diagram showing a fourth embodiment of the sampling clock cycle matching method and device according to the present invention, in which parts corresponding to those in FIG.

【0041】この実施例の特徴はAD変換した映像デー
タを直列並列変換して取り込むことにある。図16は並
列数2の例である。この場合、入力映像信号の画素周期
が短く(すなわち入力映像信号の周波数が高く)なって
も、映像データを取り込むこれらメモリ202,302
などの回路の動作周波数はその入力映像信号の周波数の
1/2になり、安定に動作させることができる。また、
第3実施例と同様に、比較器やカウンタなどのハードウ
ェアを省いているので、部品点数が少なくて低コストで
実現できる。なお、ここでは、並列数を2として説明し
ているが、これに限定されるものではなく、並列数は2
以上の値であってもよい。また、メモリとしてデータラ
ッチ回路(すなわち1ビットのメモリ)を用いてもよく
より高速の映像信号にも対応できる。もちろん1ビット
毎データを取り込むため図5の特定遅延量でのデータ取
り込みには複数フレームを要する。
The feature of this embodiment resides in that the AD-converted video data is converted into serial-parallel data and taken in. FIG. 16 shows an example in which the number of parallel operations is two. In this case, even if the pixel period of the input video signal is short (that is, the frequency of the input video signal is high), these memories 202 and 302 that take in video data are used.
The operating frequency of such a circuit becomes 1/2 of the frequency of the input video signal, and the circuit can be operated stably. Also,
As in the third embodiment, hardware such as a comparator and a counter is omitted, so that the number of components is small and the cost can be reduced. Here, the number of parallel operations is described as two, but the present invention is not limited to this, and the number of parallel operations is two.
The above values may be used. Further, a data latch circuit (that is, a 1-bit memory) may be used as a memory, and higher-speed video signals can be handled. Of course, since data is taken in bit by bit, a plurality of frames are required to take in the data with the specific delay amount in FIG.

【0042】メモリ202,302からマイコン307
に入力されたデータは直列並列変換されているため、再
び並列直列する。これにより図5と同等のデータが生成
できる。これ以降の動作は第3実施例と同じなので説明
は省略する。
From the memories 202 and 302 to the microcomputer 307
Are serial-to-parallel converted, so they are parallel-serial again. Thereby, data equivalent to FIG. 5 can be generated. Subsequent operations are the same as in the third embodiment, and a description thereof will be omitted.

【0043】以上のようにしてより、入力映像信号周波
数が高くなっても、少ないハードウェア構成で入力アナ
ログ映像信号に応じてサンプリングクロック周期を自動
的に最適値に設定でき、正確なサンプリングを実現でき
る。
As described above, even if the input video signal frequency becomes high, the sampling clock cycle can be automatically set to an optimum value in accordance with the input analog video signal with a small hardware configuration, thereby realizing accurate sampling. it can.

【0044】なお、この実施例でも相関期間を任意に選
べるので例えば第一実施例の図2のステップ1020の
エラー出力があった場合でも、相関区間すなわちエリア
をより多く求めるようにしてサンプリングクロック総数
の過不足数が大きな値にも容易に対応できる。また、複
数個の相関区間はそれぞれ重なり合っていてもよい。以
上のようにしてより、簡単な構成で入力アナログ映像信
号に応じてサンプリングクロック周期を自動的に最適値
に設定でき、正確なサンプリングを実現できる。
In this embodiment, the correlation period can be arbitrarily selected. Therefore, for example, even if there is an error output in step 1020 of FIG. Can easily cope with a large value of the excess or deficiency. Further, the plurality of correlation sections may overlap each other. As described above, the sampling clock cycle can be automatically set to the optimum value according to the input analog video signal with a simple configuration, and accurate sampling can be realized.

【0045】図17〜図21は本発明によるサンプリン
グクロック周期一致方法および装置の第5の実施例を示
す図であって、第1実施例とは比較演算するデータの組
み合わせが異なる。第1〜第4実施例では図5に示す遅
延量0のデータと遅延量±1画素分のデータを比較演算
したが、本実施例では遅延量が一定間隔のデータ同志を
比較演算する。例えば遅延量−1のデータと遅延量−
0.85のデータ、遅延量−0.95のデータと遅延量
−0.8のデータ……という要領で比較演算し、その結
果は図22の様になる。ここで、遅延量−1のデータと
遅延量−0.85の比較演算結果を図22の遅延量−1
に、遅延量−0.95のデータと遅延量−0.8のデー
タの比較演算結果を図22の遅延量−0.95に、……
なる。ただし、上記演算において当然遅延量1以上のデ
ータも必要である。図5を利用して説明したので特に図
示していないが、遅延量1以上のデータも存在している
事を付け加える。
FIGS. 17 to 21 show a fifth embodiment of the sampling clock cycle matching method and apparatus according to the present invention, which differs from the first embodiment in the combination of data to be compared and calculated. In the first to fourth embodiments, the data of the delay amount 0 shown in FIG. 5 is compared with the data of the delay amount ± 1 pixel, but in the present embodiment, the data of the delay amount is compared and calculated at a constant interval. For example, delay-1 data and delay-
A comparison operation is performed in such a manner that data of 0.85, data of delay amount -0.95 and data of delay amount -0.8..., And the result is as shown in FIG. Here, the result of the comparison between the data of the delay amount -1 and the delay amount -0.85 is shown in FIG.
The result of the comparison between the data of the delay amount -0.95 and the data of the delay amount -0.8 is shown in FIG.
Become. However, the above calculation naturally requires data having a delay amount of 1 or more. Although not particularly shown because it has been described with reference to FIG. 5, it is added that data having a delay amount of 1 or more also exists.

【0046】上記比較演算結果を順番1〜5番目、6〜
10番目、11〜15番目、16〜20番目、21〜2
5番目、26〜30番目、31〜35番目、36〜40
番目のそれぞれの区間で“1”の個数を累積すると図2
3の様になる。図23をグラフ化すると図17〜図21
となる。
The results of the above comparison operation are described in the order of 1st to 5th, 6th to 6th.
10th, 11th to 15th, 16th to 20th, 21st to 2nd
Fifth, 26-30, 31-35, 36-40
When the number of “1” s is accumulated in each of the third sections, FIG.
It looks like 3. FIGS. 17 to 21 are graphs of FIG.
Becomes

【0047】なお、上記機能を実現する回路構成は図
1、図14、図15、図16のいずれの構成でよく、遅
延量が一定間隔で比較できるよう遅延回路6の遅延量を
設定すればよい。
Note that the circuit configuration for realizing the above function may be any of the configurations shown in FIGS. 1, 14, 15, and 16. If the delay amount of the delay circuit 6 is set so that the delay amounts can be compared at regular intervals. Good.

【0048】また、図17〜図21では相関値の谷間と
谷間の間の中央を中心値としている事が第1実施例と異
なるだけである。一定間隔でサンプリングするため、そ
のサンプリング間隔の間に映像信号の変化点がある場合
比較結果は不一致となり、相関値は低くなる。逆にいえ
ば谷間の部分が信号変化点にあたるので谷間と谷間の中
央がちょうどサンプリングタイミングの合っているポイ
ントになる。よって、本実施例を実行しサンプリングク
ロック周期を一致した後すなわち図17の状態になった
後で、上記のように谷間と谷間の中央に遅延量を設定す
れば、そのサンプリングタイミングがサンプリング最適
ポイントになる。
Further, FIGS. 17 to 21 differ from the first embodiment only in that the center between the valleys of the correlation values is set as the center value. Since sampling is performed at regular intervals, if there is a change point in the video signal during the sampling interval, the comparison result will be inconsistent, and the correlation value will be low. Conversely, since the valley portion corresponds to the signal change point, the center between the valley and the valley is a point where the sampling timing is exactly matched. Therefore, after the present embodiment is executed and the sampling clock period is matched, that is, after the state of FIG. 17 is reached, if the delay amount is set at the center between the valleys as described above, the sampling timing becomes the optimal sampling point. become.

【0049】この中央値を求めてからの処理は第一実施
例と同様なので、詳細の説明は省略する。なお、上記中
央値を求めるために谷間を検出する必要があるが、例え
ば図18のエリア3のように完全な谷間になっていない
ものもある。この場合は相関値がピーク値より下がって
いる事を判定して谷間とする。また、例えば図18のエ
リア3のように谷間と判定できる個所が複数個あって中
央値が複数存在し得るときは、遅延量の少ない方を選択
する事とする。
The processing after obtaining the median value is the same as that in the first embodiment, and a detailed description thereof will be omitted. Although it is necessary to detect a valley in order to find the median, there are some valleys that are not completely valleys, such as area 3 in FIG. In this case, it is determined that the correlation value is lower than the peak value, and the valley is determined. In addition, for example, when there are a plurality of locations that can be determined to be valleys and a plurality of medians can exist as in area 3 in FIG. 18, the one with the smaller delay amount is selected.

【0050】中央値が求められた後の処理は第1実施例
と同じなので詳細の説明は省略する。
The processing after the median is obtained is the same as that of the first embodiment, so that the detailed description will be omitted.

【0051】以上のようにして入力アナログ映像信号に
応じてサンプリングクロック周期を自動的に最適値に設
定でき、正確なサンプリングを実現できる。
As described above, the sampling clock cycle can be automatically set to the optimum value according to the input analog video signal, and accurate sampling can be realized.

【0052】図24は本発明によるサンプリングクロッ
ク周期一致方法および装置の第6の実施例を示すブロッ
ク図であって、図1に対応する部分には同一符号をつけ
ている。
FIG. 24 is a block diagram showing a sixth embodiment of the sampling clock cycle matching method and apparatus according to the present invention, in which parts corresponding to those in FIG.

【0053】図24は2個のAD変換器を用いて遅延量
を一定量ずらしたデータ同志を比較するもので相関値を
求める際にメモリを必要としない特徴がある。
FIG. 24 compares two data obtained by shifting the delay amount by a fixed amount by using two AD converters, and has a feature that no memory is required for obtaining a correlation value.

【0054】図24のAD変換器101には、AD変換
器1のサンプリングクロックより、遅延回路106の固
定遅延量dtだけ遅延されたサンプリングクロックを入
力し、AD変換器1、101の出力を比較器3に入力す
る。制御回路404はカウント制御信号を生成してカウ
ンタ11〜18のカウント期間を制御する。
24, a sampling clock delayed from the sampling clock of the AD converter 1 by the fixed delay amount dt of the delay circuit 106 is input, and the outputs of the AD converters 1 and 101 are compared. Input to the container 3. The control circuit 404 generates a count control signal to control the count period of the counters 11 to 18.

【0055】全体動作は第1実施例の図8〜図12に基
づく手法か、第5実施例の図17〜図21に基づく手法
かいずれかを用いればよい。前者の場合、遅延回路6
(または遅延回路106)を基準の値に設定しておき、
遅延回路106(または遅延回路6)を基準の値から1
画素分増減しながら、各エリアの相関値(カウンタ11
〜18の出力)を求め第1実施例と同様に処理すればよ
い。後者の場合、遅延回路6と遅延回路106の遅延量
を一定量ずらしておき、その一定遅延量を保ったまま遅
延回路6と遅延回路106の遅延量を1画素分増減して
各エリアの相関値(カウンタ11〜18の出力)を求め
第5実施例と同様にし処理すればよい。それぞれの処理
の詳細は第1実施例および第5実施例で述べたので説明
は省略する。
The whole operation may use either the method based on FIGS. 8 to 12 of the first embodiment or the method based on FIGS. 17 to 21 of the fifth embodiment. In the former case, the delay circuit 6
(Or delay circuit 106) is set to a reference value,
The delay circuit 106 (or the delay circuit 6) is set at 1
While increasing or decreasing by the number of pixels, the correlation value of each area (counter 11
-18) and then processed in the same manner as in the first embodiment. In the latter case, the delay amount between the delay circuit 6 and the delay circuit 106 is shifted by a fixed amount, and the delay amount between the delay circuit 6 and the delay circuit 106 is increased or decreased by one pixel while maintaining the fixed delay amount. The values (outputs of the counters 11 to 18) may be obtained and processed in the same manner as in the fifth embodiment. The details of each process have been described in the first embodiment and the fifth embodiment, and a description thereof will be omitted.

【0056】以上のようにして入力アナログ映像信号に
応じてサンプリングクロック周期を自動的に最適値に設
定でき、正確なサンプリングを実現できる。なお、以上
の機能は図25の構成でも実現できることを付け加えて
おく、比較器3までの処理は上記第6実施例と同じでよ
く、比較結果後の処理は第2実施例(図14)と同じで
よいので詳細説明は省略する。
As described above, the sampling clock cycle can be automatically set to the optimum value according to the input analog video signal, and accurate sampling can be realized. It should be added that the above functions can be realized also with the configuration of FIG. 25. The processing up to the comparator 3 may be the same as that of the sixth embodiment, and the processing after the comparison result is the same as that of the second embodiment (FIG. 14). The details may be omitted since they may be the same.

【0057】図26は本発明によるサンプリングクロッ
ク周期一致方法および装置の第7の実施例を示すブロッ
ク図であって、図24に対応する部分には同一符号をつ
けている。この実施例の全体動作は第6の実施例と同様
であり、AD変換器の代りにサンプルホールド回路を使
用して実現する。
FIG. 26 is a block diagram showing a seventh embodiment of the sampling clock cycle matching method and apparatus according to the present invention, in which parts corresponding to those in FIG. The overall operation of this embodiment is the same as that of the sixth embodiment, and is realized by using a sample-and-hold circuit instead of the AD converter.

【0058】図26は2個のサンプルホールド回路(以
下S/H回路と記す)を用いて遅延量を一定量ずらせた
データ同志を比較するもので相関値を求める際にメモリ
を必要としない特徴がある。なお、比較器103の比較
入力はアナログ信号で出力は比較結果が一致した場合に
“1”、不一致の場合に“0”のディジタル出力を備え
るものである。
FIG. 26 shows a comparison between data obtained by shifting the delay amount by a fixed amount using two sample-hold circuits (hereinafter referred to as S / H circuits). A feature that does not require a memory when obtaining a correlation value is shown. There is. The comparison input of the comparator 103 is an analog signal, and the output is a digital output of "1" when the comparison result matches, and "0" when the comparison result does not match.

【0059】図26のS/H回路106には、S/H回
路60のドットクロックより、遅延回路106の固定遅
延量dtだけ遅延されたサンプリングクロックを入力
し、S/H回路60,106の出力を比較器103に入
力する。制御回路404はカウント制御信号を生成して
カウンタ11〜18のカウント期間を制御する。
The sampling clock delayed by the fixed delay amount dt of the delay circuit 106 from the dot clock of the S / H circuit 60 is input to the S / H circuit 106 of FIG. The output is input to the comparator 103. The control circuit 404 generates a count control signal to control the count period of the counters 11 to 18.

【0060】全体動作は第1実施例の図8〜図12に基
づく手法か、第5実施例の図17〜図21に基づく手法
かいずれかを用いればよく、第6実施例で説明したこと
と同じで良いので説明は省略する。なお、上記機能は図
27の回路構成でも実現できることを付け加えておく、
比較器103以降の処理も第6実施例と同じでよく詳細
説明は省略する。
The whole operation may use either the method based on FIGS. 8 to 12 of the first embodiment or the method based on FIGS. 17 to 21 of the fifth embodiment, as described in the sixth embodiment. The description may be omitted because it may be the same as described above. It should be added that the above function can also be realized by the circuit configuration of FIG.
The processing after the comparator 103 is the same as in the sixth embodiment, and the detailed description is omitted.

【0061】ところで、図1、図14〜図16、図24
〜27で示した実施例では、PLL回路5の出力を遅延
回路6や遅延回路106で遅延させるようにしたが、入
力される水平同期信号Hsyncを、遅延回路6や遅延回路
106で遅延させてから、PLL回路5に供給してサン
プリングクロックDotCKを生成するようにしてもよ
い。これは、PLL回路5の出力信号の周波数が高い
と、信号の受渡はECLレベルになり、汎用的なTTL
レベル対応の遅延回路を使用することができなくなるた
めであり、水平同期信号Hsyncを遅延させることによっ
て等価な効果を得ることができる。但し、水平同期信号
Hsyncの遅延はPLL回路5の入力信号を変えることに
なるので、水平同期信号Hsyncの遅延量を変更した後、
PLL回路5の出力信号が整定するまで各種処理の開始
は待つ必要がある。
Incidentally, FIGS. 1, 14 to 16, and 24
27, the output of the PLL circuit 5 is delayed by the delay circuit 6 or the delay circuit 106. However, the input horizontal synchronization signal Hsync is delayed by the delay circuit 6 or the delay circuit 106. Therefore, the sampling clock DotCK may be supplied to the PLL circuit 5 to generate the sampling clock DotCK. This is because if the frequency of the output signal of the PLL circuit 5 is high, the signal transfer becomes the ECL level and the general-purpose TTL
This is because a level-dependent delay circuit cannot be used, and an equivalent effect can be obtained by delaying the horizontal synchronization signal Hsync. However, since the delay of the horizontal synchronization signal Hsync changes the input signal of the PLL circuit 5, after changing the delay amount of the horizontal synchronization signal Hsync,
It is necessary to wait for the start of various processes until the output signal of the PLL circuit 5 is settled.

【0062】[0062]

【発明の効果】以上説明したように、本発明によると、
入力アナログ映像信号に応じてサンプリングクロック周
期を自動的に最適値に設定でき、正確なサンプリングを
実現できる。
As described above, according to the present invention,
The sampling clock cycle can be automatically set to an optimum value according to the input analog video signal, and accurate sampling can be realized.

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

【図1】本発明によるサンプリングクロック周期一致方
法および装置の第1の実施例を示すブロック図である。
FIG. 1 is a block diagram showing a first embodiment of a sampling clock cycle matching method and device according to the present invention.

【図2】図1に示した第1の実施例の動作を示すフロー
チャートである。
FIG. 2 is a flowchart showing the operation of the first embodiment shown in FIG.

【図3】図1に示した第1の実施例の相関演算区間(エ
リア)を示す図である。
FIG. 3 is a diagram showing a correlation operation section (area) of the first embodiment shown in FIG. 1;

【図4】図1に示した第1の実施例の比較器3の具体例
を示すブロック図である。
FIG. 4 is a block diagram showing a specific example of a comparator 3 of the first embodiment shown in FIG.

【図5】図1に示した第1の実施例のサンプリングタイ
ミングをずらしながらサンプリングした映像データの具
体例を示す図である。
FIG. 5 is a diagram showing a specific example of video data sampled while shifting the sampling timing in the first embodiment shown in FIG. 1;

【図6】第1の実施例における図5で示したサンプリン
グ映像データの比較演算結果の具体例を示す図である。
FIG. 6 is a diagram showing a specific example of a comparison operation result of the sampled video data shown in FIG. 5 in the first embodiment.

【図7】第1の実施例における図6の比較演算結果を図
3に示す各エリア毎に累積演算した結果の具体例を示す
図である。
FIG. 7 is a diagram showing a specific example of the result obtained by cumulatively calculating the comparison calculation results of FIG. 6 for each area shown in FIG. 3 in the first embodiment.

【図8】第1の実施例においてサンプリングクロック総
数が、入力映像信号の1ライン当たりの画素数と一致す
る場合の図7をグラフ化した図である。
FIG. 8 is a graph of FIG. 7 in a case where the total number of sampling clocks in the first embodiment is equal to the number of pixels per line of the input video signal.

【図9】第1の実施例においてサンプリングクロック総
数が、入力映像信号の1ライン当たりの画素数より2個
不足する場合の図7をグラフ化した図である。
FIG. 9 is a graph of FIG. 7 in the case where the total number of sampling clocks is two short of the number of pixels per line of the input video signal in the first embodiment.

【図10】第1の実施例においてサンプリングクロック
総数が、入力映像信号の1ライン当たりの画素数より1
個不足する場合の図7をグラフ化した図である。
FIG. 10 shows that in the first embodiment, the total number of sampling clocks is one more than the number of pixels per line of the input video signal.
FIG. 8 is a diagram in which FIG.

【図11】第1の実施例においてサンプリングクロック
総数が、入力映像信号の1ライン当たりの画素数より1
個過剰の場合の図7をグラフ化した図である。
FIG. 11 shows a case where the total number of sampling clocks in the first embodiment is one more than the number of pixels per line of the input video signal.
It is the figure which made FIG. 7 in the case of an excessive number into a graph.

【図12】第1の実施例においてサンプリングクロック
総数が、入力映像信号の1ライン当たりの画素数より2
個過剰の場合の図7をグラフ化した図である。
FIG. 12 shows a case where the total number of sampling clocks in the first embodiment is two times smaller than the number of pixels per line of the input video signal.
It is the figure which made FIG. 7 in the case of an excessive number into a graph.

【図13】図8〜図12の結果をもとに画素数検出の考
え方を示す図である。
13 is a diagram showing a concept of detecting the number of pixels based on the results of FIGS. 8 to 12. FIG.

【図14】本発明によるサンプリングクロック周期一致
方法および装置の第2の実施例を示すブロック図であ
る。
FIG. 14 is a block diagram showing a second embodiment of a sampling clock cycle matching method and device according to the present invention.

【図15】本発明によるサンプリングクロック周期一致
方法および装置の第3の実施例を示すブロック図であ
る。
FIG. 15 is a block diagram showing a third embodiment of a sampling clock cycle matching method and device according to the present invention.

【図16】本発明によるサンプリングクロック周期一致
方法および装置の第4の実施例を示すブロック図であ
る。
FIG. 16 is a block diagram showing a fourth embodiment of a sampling clock cycle matching method and device according to the present invention.

【図17】第5の実施例においてサンプリングクロック
総数が、入力映像信号の1ライン当たりの画素数と一致
する場合の図23をグラフ化した図である。
FIG. 17 is a graph of FIG. 23 in the case where the total number of sampling clocks in the fifth embodiment matches the number of pixels per line of the input video signal.

【図18】第5の実施例においてサンプリングクロック
総数が、入力映像信号の1ライン当たりの画素数より2
個不足する場合の図23をグラフ化した図である。
FIG. 18 shows that the total number of sampling clocks in the fifth embodiment is two times smaller than the number of pixels per line of the input video signal.
FIG. 24 is a graph of FIG. 23 in a case where the number is insufficient.

【図19】第5の実施例においてサンプリングクロック
総数が、入力映像信号の1ライン当たりの画素数より1
個不足する場合の図23をグラフ化した図である。
FIG. 19 shows that in the fifth embodiment, the total number of sampling clocks is one more than the number of pixels per line of the input video signal.
FIG. 24 is a graph of FIG. 23 in a case where the number is insufficient.

【図20】第5の実施例においてサンプリングクロック
総数が、入力映像信号の1ライン当たりの画素数より1
個過剰の場合の図23をグラフ化した図である。
FIG. 20 shows that the total number of sampling clocks is one more than the number of pixels per line of the input video signal in the fifth embodiment.
FIG. 24 is a graph of FIG. 23 in the case of excess.

【図21】第5の実施例においてサンプリングクロック
総数が、入力映像信号の1ライン当たりの画素数より2
個過剰の場合の図23をグラフ化した図である。
FIG. 21 shows a case where the total number of sampling clocks in the fifth embodiment is two times smaller than the number of pixels per line of the input video signal.
FIG. 24 is a graph of FIG. 23 in the case of excess.

【図22】第5の実施例におけるサンプリング映像デー
タの比較演算結果の具体例を示す図である。
FIG. 22 is a diagram showing a specific example of a comparison operation result of sampling video data in the fifth embodiment.

【図23】第5の実施例における図22の比較演算結果
を図3に示す各エリア毎に累積演算した結果の具体例を
示す図である。
FIG. 23 is a diagram showing a specific example of the result obtained by cumulatively calculating the comparison calculation results of FIG. 22 for each area shown in FIG. 3 in the fifth embodiment.

【図24】本発明によるサンプリングクロック周期一致
方法および装置の第6の実施例を示すブロック図であ
る。
FIG. 24 is a block diagram showing a sixth embodiment of a sampling clock cycle matching method and device according to the present invention.

【図25】本発明によるサンプリングクロック周期一致
方法および装置の第6の実施例の別構成を示すブロック
図である。
FIG. 25 is a block diagram showing another configuration of the sixth embodiment of the sampling clock cycle matching method and device according to the present invention.

【図26】本発明によるサンプリングクロック周期一致
方法および装置の第7の実施例を示すブロック図であ
る。
FIG. 26 is a block diagram showing a seventh embodiment of a sampling clock cycle matching method and device according to the present invention.

【図27】本発明によるサンプリングクロック周期一致
方法および装置の第7の実施例の別構成を示すブロック
図である。
FIG. 27 is a block diagram showing another configuration of the seventh embodiment of the sampling clock cycle matching method and device according to the present invention.

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

1,101…AD変換器、 2,102,202,302…メモリ、 3,103…比較器、 4,104,204,304,404…制御回路、 5…PLL回路、 6,106…遅延回路、 7,107,207,307…マイコン、 11〜18…カウンタ、 20,120,220…メモリ書込/読出信号発生回
路、 50…分周器、 51…VCO 21〜28,121…カウンタクロック発生回路、 30,31…全加算器、 60,106…サンプルホールド回路、 409,410,411…メモリ。
1,101: AD converter, 2, 102, 202, 302: memory, 3,103: comparator, 4, 104, 204, 304, 404: control circuit, 5: PLL circuit, 6, 106: delay circuit, 7, 107, 207, 307 microcomputer, 11-18 counter, 20, 120, 220 memory write / read signal generation circuit, 50 frequency divider, 51 VCO 21-28, 121 counter clock generation circuit , 30, 31 ... full adder, 60, 106 ... sample and hold circuit, 409, 410, 411 ... memory.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 中 一隆 神奈川県横浜市戸塚区吉田町292番地株 式会社日立製作所映像情報メディア事業 部内 (56)参考文献 特開 平7−295533(JP,A) 特開 平5−249942(JP,A) 特開 平5−199481(JP,A) 特開 平9−149291(JP,A) (58)調査した分野(Int.Cl.7,DB名) G09G 3/00 - 5/42 H04N 5/14,5/66 ──────────────────────────────────────────────────続 き Continuing on the front page (72) Inventor Kazutaka Naka 292 Yoshida-cho, Totsuka-ku, Yokohama-shi, Kanagawa Pref. Hitachi, Ltd. Visual Information Media Division (56) References JP-A-5-249942 (JP, A) JP-A-5-199481 (JP, A) JP-A-9-149291 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) G09G 3/00-5/42 H04N 5 / 14,5 / 66

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】アナログ映像信号をディジタル映像信号に
変換するサンプリング手段を有する映像情報装置におけ
るサンプリングクロック周期の制御方法において、 該サンプリング手段は第1、第2、……、第nのサンプ
リングタイミングを有しており、 該アナログ映像信号をn個の該サンプリングタイミング
でサンプリングして第1、第2、……、第nのディジタ
ル映像信号データ列を生成し、 第1のディジタル映像信号データ列と第iのディジタル
映像信号データ列(但し、i=1,2,……,n)との
相関値を、画面を水平方向にm個(mは2以上)に分割
した各相関演算区間で別々に生成してC1(i),C2
(i),……,Cm(i)とし、 m個の相関値のデータ列C1(1),C1(2),…
…,C1(n);C2(1),C2(2),……,C2
(n)Cm(1),Cm(2),……,Cm(n)を生
成し、 該m個の相関値のデータ列から該アナログ映像信号の画
素周期と、該サンプリング手段のサンプリングクロック
周期のずれを検出し、該ずれを解消するように該サンプ
リング手段のサンプリングクロック周期を制御すること
を特徴とするサンプリングクロック周期の制御方法。
1. A method of controlling a sampling clock cycle in a video information device having a sampling means for converting an analog video signal into a digital video signal, wherein the sampling means sets first, second,... .., The n-th digital video signal data stream is generated by sampling the analog video signal at the n sampling timings, and a first digital video signal data stream is generated. The correlation value with the i-th digital video signal data sequence (where i = 1, 2,..., N) is separately calculated for each correlation operation section obtained by dividing the screen horizontally into m pieces (m is 2 or more). And C1 (i), C2
(I),..., Cm (i), and a data sequence C1 (1), C1 (2),.
, C1 (n); C2 (1), C2 (2), ..., C2
(N) Cm (1), Cm (2),..., Cm (n) are generated, and the pixel cycle of the analog video signal and the sampling clock cycle of the sampling means are calculated from the m correlation value data strings. A method of controlling a sampling clock cycle, characterized by detecting a shift of the sampling clock and controlling a sampling clock cycle of the sampling means so as to eliminate the shift.
【請求項2】アナログ映像信号をディジタル映像信号に
変換するサンプリング手段を有する映像情報装置におい
て、 該サンプリング手段は第1、第2、……、第nのサンプ
リングタイミングを有しており、 該アナログ映像信号をn個の該サンプリングタイミング
でサンプリングして第1、第2、……、第nのディジタ
ル映像信号データ列を生成し、 第1のディジタル映像信号データ列と第iのディジタル
映像信号データ列(但し、i=1,2,……,n)との
相関値を、画面を水平方向にm個(mは2以上)に分割
した各相関演算区間で別々に生成してC1(i),C2
(i),……,Cm(i)とし、 m個の相関値のデータ列C1(1),C1(2),…
…,C1(n);C2(1),C2(2),……,C2
(n)Cm(1),Cm(2),……,Cm(n)を生
成し、 該m個の相関値のデータ列から該アナログ映像信号の画
素周期と、該サンプリング手段のサンプリングクロック
周期のずれを検出し、該ずれを解消するように該サンプ
リング手段のサンプリングクロック周期を制御すること
を特徴とする映像情報装置。
2. An image information apparatus having sampling means for converting an analog video signal into a digital video signal, wherein said sampling means has first, second,..., N-th sampling timings, The video signal is sampled at n sampling timings to generate first, second,..., N-th digital video signal data sequences, and the first digital video signal data sequence and the i-th digital video signal data Correlation values with columns (where i = 1, 2,..., N) are separately generated in each correlation operation section obtained by dividing the screen horizontally into m (m is 2 or more), and C1 (i ), C2
(I),..., Cm (i), and a data sequence C1 (1), C1 (2),.
, C1 (n); C2 (1), C2 (2), ..., C2
(N) Cm (1), Cm (2),..., Cm (n) are generated, and the pixel cycle of the analog video signal and the sampling clock cycle of the sampling means are calculated from the m correlation value data strings. The video information device detects a shift of the sampling means and controls a sampling clock cycle of the sampling means so as to eliminate the shift.
【請求項3】アナログ映像信号をディジタル映像信号に
変換するサンプリング手段を有する映像情報装置におけ
るサンプリングクロック周期の制御方法において、 該サンプリング手段は第1、第2、……、第n、……、
第n+k(kは1以上の整数)のサンプリングタイミン
グを有しており、 該アナログ映像信号をn+k個の該サンプリングタイミ
ングでサンプリングして第1、第2、……、第n、…
…、第n+kのディジタル映像信号データ列を生成し、 第iのディジタル映像信号データ列(但し、i=1,
2,……,n)と第j(j=i+k)のディジタル映像
信号データ列との相関値を、画面を水平方向にm個(m
は2以上)に分割した各相関演算区間で別々に生成して
C1(i),C2(i),……,Cm(i)とし、 m個の相関値のデータ列C1(1),C1(2),……
C1(n);C2(1),C2(2),……,C2
(n)Cm(1),Cm(2),……,Cm(n)を生
成し、 該m個の相関値のデータ列から該アナログ映像信号の画
素周期と、該サンプリング手段のサンプリングクロック
周期のずれを検出し、該ずれを解消するように該サンプ
リング手段のサンプリングクロック周期を制御すること
を特徴とするサンプリングクロック周期の制御方法。
3. A method of controlling a sampling clock cycle in a video information device having a sampling means for converting an analog video signal into a digital video signal, wherein the sampling means comprises first, second,..., N-th ,.
(The k 1 or more integer) the n + k has a sampling timing of the first sampling the analog video signal at n + k-number of the sampling timing, the second, ..., the n, ...
, Generate an ( n + k ) th digital video signal data sequence, and generate an i-th digital video signal data sequence (where i = 1,
,..., N) and the j-th (j = i + k) digital video signal data sequence are represented by m (m
, C2 (i), C2 (i),..., Cm (i) are generated separately in each of the correlation calculation sections divided into 2), and m correlation value data strings C1 (1), C1 (2), ...
C1 (n); C2 (1), C2 (2),..., C2
(N) Cm (1), Cm (2),..., Cm (n) are generated, and the pixel cycle of the analog video signal and the sampling clock cycle of the sampling means are calculated from the m correlation value data strings. A method of controlling a sampling clock cycle, characterized by detecting a shift of the sampling clock and controlling a sampling clock cycle of the sampling means so as to eliminate the shift.
【請求項4】アナログ映像信号をディジタル映像信号に
変換するサンプリング手段を有する映像情報装置におい
て、 該サンプリング手段は第1、第2、……、第n、……、
第n+k(kは1以上の整数)のサンプリングタイミン
グを有しており、 該アナログ映像信号をn+k個の該サンプリングタイミ
ングでサンプリングして第1、第2、……、第n、…
…、第n+kのディジタル映像信号データ列を生成し、 第iのディジタル映像信号データ列(但し、i=1,
2,……,n)と第j(j=i+k)のディジタル映像
信号データ列との相関値を、画面を水平方向にm個(m
は2以上)に分割した各相関演算区間で別々に生成して
C1(i),C2(i),……,Cm(i)とし、 m個の相関値のデータ列C1(1),C1(2),……
C1(n);C2(1),C2(2),……,C2
(n)Cm(1),Cm(2),……,Cm(n)を生
成し、 該m個の相関値のデータ列から該アナログ映像信号の画
素周期と、該サンプリング手段のサンプリングクロック
周期のずれを検出し、該ずれを解消するように該サンプ
リング手段のサンプリングクロック周期を制御すること
を特徴とする映像情報装置。
4. A video information apparatus having a sampling means for converting an analog video signal into a digital video signal, wherein the sampling means comprises first, second,..., N-th ,.
(The k 1 or more integer) the n + k has a sampling timing of the first sampling the analog video signal at n + k-number of the sampling timing, the second, ..., the n, ...
, Generate an ( n + k ) th digital video signal data sequence, and generate an i-th digital video signal data sequence (where i = 1,
,..., N) and the j-th (j = i + k) digital video signal data sequence are represented by m (m
, C2 (i), C2 (i),..., Cm (i) are generated separately in each of the correlation calculation sections divided into 2), and m correlation value data strings C1 (1), C1 (2), ...
C1 (n); C2 (1), C2 (2),..., C2
(N) Cm (1), Cm (2),..., Cm (n) are generated, and the pixel cycle of the analog video signal and the sampling clock cycle of the sampling means are calculated from the m correlation value data strings. The video information device detects a shift of the sampling means and controls a sampling clock cycle of the sampling means so as to eliminate the shift.
JP09799096A 1996-04-19 1996-04-19 Sampling clock cycle control method and device Expired - Fee Related JP3339542B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP09799096A JP3339542B2 (en) 1996-04-19 1996-04-19 Sampling clock cycle control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP09799096A JP3339542B2 (en) 1996-04-19 1996-04-19 Sampling clock cycle control method and device

Publications (2)

Publication Number Publication Date
JPH09281944A JPH09281944A (en) 1997-10-31
JP3339542B2 true JP3339542B2 (en) 2002-10-28

Family

ID=14207114

Family Applications (1)

Application Number Title Priority Date Filing Date
JP09799096A Expired - Fee Related JP3339542B2 (en) 1996-04-19 1996-04-19 Sampling clock cycle control method and device

Country Status (1)

Country Link
JP (1) JP3339542B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100433526B1 (en) * 2001-09-28 2004-05-31 삼성전자주식회사 Method and apparatus for generating coast signal for image processing
JP2009110284A (en) * 2007-10-30 2009-05-21 Fujitsu Ltd Signal processor, card type device, and fault reproduction method

Also Published As

Publication number Publication date
JPH09281944A (en) 1997-10-31

Similar Documents

Publication Publication Date Title
JPH10153989A (en) Dot clock circuit
TW424218B (en) A method and apparatus for recovering clock in a digital display unit
KR100303723B1 (en) Image upscale method and apparatus
JP2000122624A (en) Automatic clock phase adjusting device and automatic clock phase adjusting method and display unit using it
JP2002049362A (en) Picture processor and picture processing method
JP3339542B2 (en) Sampling clock cycle control method and device
JP3302202B2 (en) Display control device
JPH09219845A (en) Time code generation circuit
US7710501B1 (en) Time base correction and frame rate conversion
JPH1165542A (en) Image signal processor
JP3756203B2 (en) Memory circuit and flat panel drive circuit
JP3338198B2 (en) Liquid crystal display
JP2547687B2 (en) Motion vector detection circuit
JP4291618B2 (en) Synchronization control method and image display apparatus
JPH11219157A (en) Sampling clock control device
JP2001013481A (en) Liquid crystal display device
US6856358B1 (en) Phase-increase induced backporch decrease (PIBD) phase recovery method for video signal processing
JPH1063219A (en) Display device and its driving method
JPH09149291A (en) Video information unit and sampling point optimizing circuit
JP3484958B2 (en) Liquid crystal display device sampling phase adjustment method
JPH07219486A (en) Liquid crystal display device
JP4041955B2 (en) Signal processing apparatus and method, imaging apparatus, recording medium, and program
JPH1049103A (en) Display controller
JP3449405B2 (en) Time code signal generation device and time code signal generation method
JP2001013944A (en) Sampling clock generating device, storage medium stored with control program for generation of sampling clock

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070816

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20080816

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20080816

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090816

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100816

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100816

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110816

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120816

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20130816

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees