JPH06301487A - Sample clock phase adjusting device - Google Patents

Sample clock phase adjusting device

Info

Publication number
JPH06301487A
JPH06301487A JP10985793A JP10985793A JPH06301487A JP H06301487 A JPH06301487 A JP H06301487A JP 10985793 A JP10985793 A JP 10985793A JP 10985793 A JP10985793 A JP 10985793A JP H06301487 A JPH06301487 A JP H06301487A
Authority
JP
Japan
Prior art keywords
circuit
signal
sampling
edge
amplitude
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP10985793A
Other languages
Japanese (ja)
Inventor
Satoru Kondo
悟 近藤
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.)
Fujitsu General Ltd
Original Assignee
Fujitsu General 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 Fujitsu General Ltd filed Critical Fujitsu General Ltd
Priority to JP10985793A priority Critical patent/JPH06301487A/en
Publication of JPH06301487A publication Critical patent/JPH06301487A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To automatically adjust the phase of a sample clock to the optimum phase against a sampling subject signal even when the waveform of the sampling subject signal of a sampling circuit (A/D converter, etc.) becomes dull by an LPF, etc. CONSTITUTION:A sample clock phase control device is provided with a programmable delay line 32 which variably controls the phase delay of a reference clock and acquires a sample clock to be supplied to an A/D converter 22, an edge detecting circuit 36 which detects the edge of a subject signal AV2 based on the sampling data obtained by the converter 22, an amplitude measuring circuit 38 which measures the amplitude of the edge detected by the circuit 36, and a signal processing circuit 34 which controls the clock phase delay of the line 32 in order to acquire the largest amplitude measured by the circuit 38. In such a constitution, the automatic control is carried out so that the sampling point is approximately coincident with the changing apex of the signal AV2.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、サンプリング回路(例
えば、アナログ信号をディジタル信号に変換するA/D
(アナログ/ディジタル)変換回路)のサンプル・クロ
ック(またはサンプリング・クロックともいう)の位相
を調整するサンプル・クロック位相調整装置に関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a sampling circuit (for example, an A / D which converts an analog signal into a digital signal).
The present invention relates to a sample clock phase adjusting device for adjusting the phase of a sample clock (or also referred to as a sampling clock) of an (analog / digital) conversion circuit.

【0002】[0002]

【従来の技術】パソコン(パーソナルコンピュータ)か
ら出力するアナログ映像信号(例えばビデオ信号)を異
なる周波数のアナログ映像信号(例えばビデオ信号)に
変換する場合、一般的には、図4に示すようなビデオ走
査周波数変換装置(スキャン・コンバータ)によって行
なわれていた。
2. Description of the Related Art When converting an analog video signal (for example, a video signal) output from a personal computer (personal computer) into an analog video signal (for example, a video signal) having a different frequency, generally, a video as shown in FIG. It was performed by a scanning frequency conversion device (scan converter).

【0003】すなわち、パソコン10側では、D/A
(ディジタル/アナログ)変換回路12がコントローラ
14からのドット・クロックDCkを用いてディジタル
映像信号DV1をアナログ映像信号AV1に変換し、この
アナログ映像信号AV1をEMI(電磁妨害)対策用の
LPF(ローパスフィルタ)16を介しアナログ映像信
号AV2としてビデオ走査周波数変換装置20側に出力
する。
That is, on the personal computer 10 side, the D / A
The (digital / analog) conversion circuit 12 uses the dot clock DCk from the controller 14 to convert the digital video signal DV 1 into an analog video signal AV 1 , and the analog video signal AV 1 is used for EMI (electromagnetic interference) measures. An analog video signal AV 2 is output to the video scanning frequency conversion device 20 side via an LPF (low pass filter) 16.

【0004】ビデオ走査周波数変換装置20側では、A
/D(アナログ/ディジタル)変換回路22がPLL
(フェーズ・ロックド・ループ)回路24からのサンプ
ル・クロックでパソコン10側からのアナログ映像信号
AV2をサンプリングしてディジタル映像信号DV2に変
換し、このディジタル映像信号DV2をPLL回路24
からのメモリ制御信号を用いてメモリ26に書き込む。
ついで、コントローラ28からのメモリ制御信号を用い
て異なる速度でメモリ26から読み出したディジタル映
像信号DV2を、コントローラ28からの再生クロック
を用いてD/A変換回路30でアナログ映像信号AV3
に変換する。
On the video scanning frequency conversion device 20 side, A
A / D (analog / digital) conversion circuit 22 is a PLL
(Phase locked loop) samples an analog video signal AV 2 from the PC 10 side in the sample clock from circuit 24 into a digital video signal DV 2, the the digital video signal DV 2 PLL circuit 24
Write to the memory 26 using the memory control signal from.
Then, using the memory control signal from the controller 28, the digital video signal DV 2 read from the memory 26 at different speeds is converted into an analog video signal AV 3 by the D / A conversion circuit 30 using the reproduction clock from the controller 28.
Convert to.

【0005】パソコン10側のコントローラ14は、内
蔵するメモリへのメモリ制御信号を出力するとともに、
ビデオ走査周波数変換装置20側のPLL回路24へH
D(水平同期)信号、VD(垂直同期)信号を出力して
いる。また、ビデオ走査周波数変換装置20側のコント
ローラ28はHD信号、VD信号を出力している。
The controller 14 on the personal computer 10 side outputs a memory control signal to a built-in memory, and
H to the PLL circuit 24 on the video scanning frequency conversion device 20 side
It outputs a D (horizontal synchronization) signal and a VD (vertical synchronization) signal. Further, the controller 28 on the video scanning frequency conversion device 20 side outputs an HD signal and a VD signal.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、図4に
示した従来例では、ビデオ走査周波数変換装置20側の
A/D変換回路22が、PLL回路24からのサンプル
・クロックによって、パソコン10側からのアナログ映
像信号AV2をサンプリングしてディジタル映像信号D
2に変換し、そのPLL回路24がサンプル・クロッ
クをパソコン10側からの同期信号(HD信号、VD信
号)と位相同期させていたので、この同期信号(HD信
号、VD信号)とアナログ映像信号AV2との位相関係
が適切でないと、ビデオ走査周波数変換装置20で変換
したアナログ映像信号AV3が元のアナログ映像信号A
1を正しく再生しないという問題点があった。
However, in the conventional example shown in FIG. 4, the A / D conversion circuit 22 on the video scanning frequency conversion device 20 side is switched from the personal computer 10 side by the sample clock from the PLL circuit 24. Of the analog video signal AV 2 of
Since the PLL circuit 24 converts the sample clock into V 2 and the sample clock is phase-synchronized with the synchronizing signal (HD signal, VD signal) from the personal computer 10 side, this synchronizing signal (HD signal, VD signal) and analog video If the phase relationship with the signal AV 2 is not appropriate, the analog video signal AV 3 converted by the video scanning frequency conversion device 20 will be the original analog video signal A.
There is a problem that does not correctly play the V 1.

【0007】例えば、図5の(a)の(ロ)に示すよう
に、元のアナログ映像信号AV1が1ドット、若しくは
1ドットの縦線に相当する場合、または、図5の(b)
の(ロ)に示すように、元のアナログ映像信号AV1
画面のある部分から明るくなっている状態に相当する場
合、アナログ映像信号AV1とサンプル・クロックとの
位相関係が適切でないと、画質劣化が生じるという問題
点があった。図5の(a)および(b)の(イ)はドッ
ト・クロックDCkを表わす。
For example, as shown in (b) of (a) of FIG. 5, when the original analog video signal AV 1 corresponds to 1 dot or a vertical line of 1 dot, or (b) of FIG.
When the original analog video signal AV 1 corresponds to a state where the screen is brighter than a certain part as shown in (b) of (2), if the phase relationship between the analog video signal AV 1 and the sample clock is not appropriate, There is a problem that image quality is deteriorated. 5 (a) and 5 (b) shows the dot clock DCk.

【0008】すなわち、図4においてLPF16の出力
側に現われるアナログ映像信号AV2が、図5の(a)
の(ハ)に示すように波形が鈍っている場合、ドット・
クロックDCkと同じ周波数のサンプル・クロックによ
るサンプリング点が図中の下向矢印↓で示す最適の点の
ときは、A/D変換回路22、メモリ26およびD/A
変換回路30を介して出力するアナログ映像信号AV3
の波形は、図5の(a)の(ニ)に示すように、元のア
ナログ映像信号AV1とほとんど変わらないが、サンプ
リング点がずれて図中の上向矢印↑で示す最悪の点のと
きは、アナログ映像信号AV3の波形は、図5の(a)
の(ホ)に示すように、2ドット、若しくは2ドットの
縦線で振幅が小さいものに相当する信号となり、画質が
劣化してしまう。
That is, the analog video signal AV 2 appearing at the output side of the LPF 16 in FIG.
If the waveform is blunt as shown in (c) of
When the sampling point by the sample clock having the same frequency as the clock DCk is the optimum point indicated by the downward arrow ↓ in the figure, the A / D conversion circuit 22, the memory 26 and the D / A
Analog video signal AV 3 output via the conversion circuit 30
The waveform of is almost the same as the original analog video signal AV 1 as shown in (d) of (a) of FIG. 5, but the sampling point is shifted and the worst point of the worst arrow indicated by the upward arrow ↑ is shown. At this time, the waveform of the analog video signal AV 3 is as shown in FIG.
As shown in (e), a signal corresponding to a 2-dot vertical line or a 2-dot vertical line having a small amplitude results in deterioration of image quality.

【0009】また、図4においてLPF16の出力側に
現われるアナログ映像信号AV2が、図5の(b)の
(ハ)に示すように波形が鈍っている場合、ドット・ク
ロックDCkと同じ周波数のサンプル・クロックによる
サンプリング点が図中の下向矢印↓で示す最適の点のと
きは、アナログ映像信号AV3の波形は、図5の(b)
の(ニ)に示すように、元のアナログ映像信号AV1
ほとんど変わらないが、サンプリング点がずれて図中の
上向矢印↑で示す最悪の点のときは、アナログ映像信号
AV3の波形は、図5の(b)の(ホ)に示すように、
信号の変化が緩やかなものに相当する信号となり、画質
が劣化してしまう。
Further, when the analog video signal AV 2 appearing at the output side of the LPF 16 in FIG. 4 has a blunt waveform as shown in FIG. 5 (b) (c), it has the same frequency as the dot clock DCk. When the sampling point by the sample clock is the optimum point indicated by the downward arrow ↓ in the figure, the waveform of the analog video signal AV 3 is as shown in FIG.
Of, as shown in (d), but almost the same as the original analog video signal AV 1, when the worst point indicated displaced sampling points upward arrow ↑ in the figure, an analog video signal AV 3 waveforms Is, as shown in (e) of FIG.
The signal corresponds to a signal having a gentle change, and the image quality deteriorates.

【0010】本発明は上述の問題点に鑑みなされたもの
で、パソコンのアナログ映像信号(例えばビデオ信号)
のように、LPF等で波形が鈍った場合でも、サンプル
・クロックの位相をサンプリング対象のアナログ映像信
号に対して最適な位相に自動的に調整することのでき
る、サンプル・クロック位相調整装置を提供することを
目的とするものである。
The present invention has been made in view of the above problems, and an analog video signal (for example, a video signal) of a personal computer.
Provide a sample clock phase adjustment device that can automatically adjust the phase of the sample clock to the optimum phase for the analog video signal to be sampled, even if the waveform becomes dull due to LPF, etc. The purpose is to do.

【0011】[0011]

【課題を解決するための手段】本発明によるサンプル・
クロック位相調整装置は、基準となるクロックの位相遅
れを可変制御してサンプリング回路へのサンプル・クロ
ックとするプログラマブル・ディレイラインと、前記サ
ンプリング回路によるサンプリング・データに基づいて
サンプリング対象信号のエッジを検出するエッジ検出回
路と、前記エッジ検出回路で検出したエッジの振幅を測
定する振幅測定回路と、前記振幅測定回路で測定した振
幅が最大値となるように前記プログラマブル・ディレイ
ラインのクロック位相遅れを制御する制御回路とを具備
してなることを特徴とするものである。
Means for Solving the Problems Samples according to the present invention
The clock phase adjusting device detects an edge of a signal to be sampled based on a programmable delay line that variably controls a phase delay of a reference clock and uses it as a sample clock to a sampling circuit, and sampling data by the sampling circuit. An edge detection circuit, an amplitude measurement circuit that measures the amplitude of the edge detected by the edge detection circuit, and a clock phase delay of the programmable delay line so that the amplitude measured by the amplitude measurement circuit becomes a maximum value. And a control circuit that operates.

【0012】[0012]

【作用】プログラマブル・ディレイラインは、基準とな
るクロックの位相遅れを可変制御しサンプル・クロック
としてサンプリング回路(例えばA/D変換回路)へ出
力する。このため、サンプリング回路は、サンプリング
対象信号(例えばアナログ映像信号)をサンプル・クロ
ックでサンプリングしたサンプリング・データを出力す
る。
The programmable delay line variably controls the phase delay of the reference clock and outputs it as a sample clock to the sampling circuit (for example, A / D conversion circuit). Therefore, the sampling circuit outputs sampling data obtained by sampling the sampling target signal (for example, analog video signal) with the sample clock.

【0013】エッジ検出回路はサンプリング回路による
サンプリング・データに基づいてサンプリング対象信号
のエッジを検出し、振幅測定回路はエッジ検出回路で検
出したエッジの振幅を測定し、制御回路は振幅測定回路
で測定した振幅が最大値となるようにプログラマブル・
ディレイラインのクロック位相遅れを制御する。このた
め、サンプル・クロックの位相は、サンプリング点がサ
ンプリング対象信号(例えばアナログ映像信号)の変化
の頂点とほぼ一致するように、自動的に調整される。
The edge detection circuit detects the edge of the signal to be sampled based on the sampling data by the sampling circuit, the amplitude measurement circuit measures the amplitude of the edge detected by the edge detection circuit, and the control circuit measures the amplitude measurement circuit. The programmable amplitude is set to the maximum value.
Controls the clock phase delay of the delay line. Therefore, the phase of the sample clock is automatically adjusted so that the sampling point substantially coincides with the peak of the change of the sampling target signal (for example, analog video signal).

【0014】[0014]

【実施例】以下、本発明によるサンプル・クロック位相
調整装置の一実施例を図1および図2を用いて説明す
る。図1および図2において、図4と同一部分は同一符
号とする。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the sample clock phase adjusting device according to the present invention will be described below with reference to FIGS. 1 and 2, the same parts as those in FIG. 4 are designated by the same reference numerals.

【0015】図1は本発明の一実施例の基本的な構成を
示すもので、この図1において、22はサンプリング回
路の一例としてのA/D変換回路である。このA/D変
換回路22は、図4のパソコン10などから出力するア
ナログ映像信号(例えばビデオ信号)AV2を、後述す
るプログラマブル・ディレイライン32を介して入力す
るサンプル・クロックでサンプリングすることによって
サンプリング・データとしてのディジタル映像信号DV
2に変換し、図4のビデオ走査周波数変換装置20のメ
モリ26などへ出力するように構成されている。
FIG. 1 shows a basic configuration of an embodiment of the present invention. In FIG. 1, reference numeral 22 is an A / D conversion circuit as an example of a sampling circuit. The A / D conversion circuit 22 samples an analog video signal (for example, a video signal) AV 2 output from the personal computer 10 shown in FIG. 4 with a sample clock input via a programmable delay line 32 described later. Digital video signal DV as sampling data
It is configured to be converted into 2 and output to the memory 26 or the like of the video scanning frequency conversion device 20 of FIG.

【0016】前記プログラマブル・ディレイライン32
は、後述する信号処理回路34からのディレイ量制御信
号に基づいて基準となるクロックの位相遅れを可変制御
し、前記A/D変換回路22へのサンプル・クロックと
して出力するように構成されている。
The programmable delay line 32
Is configured to variably control the phase delay of a reference clock based on a delay amount control signal from a signal processing circuit 34, which will be described later, and output the sample clock to the A / D conversion circuit 22. .

【0017】36は前記A/D変換回路22から出力す
るディジタル映像信号DV2に基づいてサンプリング対
象信号のエッジを検出するエッジ検出回路である。38
は前記エッジ検出回路36で検出したエッジの振幅を測
定する振幅測定回路である。前記信号処理回路34は、
前記振幅測定回路38から出力する振幅データが最大値
となるように、前記プログラマブル・ディレイライン3
2へディレイ量制御信号を出力するように構成されてい
る。
Reference numeral 36 denotes an edge detection circuit for detecting the edge of the sampling target signal based on the digital video signal DV 2 output from the A / D conversion circuit 22. 38
Is an amplitude measuring circuit for measuring the amplitude of the edge detected by the edge detecting circuit 36. The signal processing circuit 34 is
The programmable delay line 3 is configured so that the amplitude data output from the amplitude measuring circuit 38 has a maximum value.
2 is configured to output a delay amount control signal.

【0018】つぎに、図1の作用を説明する。プログラ
マブル・ディレイライン32は、基準となるクロックの
位相遅れを可変制御しサンプル・クロックとしてA/D
変換回路22へ出力する。このため、A/D変換回路2
2は、サンプリング対象信号(例えばアナログのビデオ
信号)をサンプル・クロックでサンプリングしたサンプ
リング・データを出力する。
Next, the operation of FIG. 1 will be described. The programmable delay line 32 variably controls the phase delay of the reference clock and A / D as a sample clock.
Output to the conversion circuit 22. Therefore, the A / D conversion circuit 2
2 outputs sampling data obtained by sampling a sampling target signal (for example, an analog video signal) with a sample clock.

【0019】エッジ検出回路36は、A/D変換回路2
2によるサンプリング・データに基づいてサンプリング
対象信号のエッジを検出し、振幅測定回路38はエッジ
検出回路36で検出したエッジの振幅を測定し、信号処
理回路34は振幅測定回路38で測定した振幅が最大値
となるようにプログラマブル・ディレイライン32のク
ロック位相遅れを制御する。このため、サンプル・クロ
ックの位相は、サンプリング点がサンプリング対象信号
の変化の頂点とほぼ一致するように、自動的に調整され
る。
The edge detection circuit 36 is the A / D conversion circuit 2
The edge of the signal to be sampled is detected based on the sampling data by 2, the amplitude measuring circuit 38 measures the amplitude of the edge detected by the edge detecting circuit 36, and the signal processing circuit 34 determines the amplitude measured by the amplitude measuring circuit 38. The clock phase delay of the programmable delay line 32 is controlled so as to have the maximum value. Therefore, the phase of the sample clock is automatically adjusted so that the sampling point substantially coincides with the peak of the change of the signal to be sampled.

【0020】図2は本発明の一実施例の具体的な構成を
示すもので、この図2において図1と同一部分は同一符
号とする。図2において、22はA/D変換回路、32
はプログラマブル・ディレイライン、36はエッジ検出
回路、38は振幅測定回路、40は前記信号処理回路3
4の一例としてのマイコン、42は測定ライン指定回
路、44は測定期間指定回路である。
FIG. 2 shows a concrete structure of an embodiment of the present invention. In FIG. 2, the same parts as those in FIG. In FIG. 2, 22 is an A / D conversion circuit, 32 is
Is a programmable delay line, 36 is an edge detecting circuit, 38 is an amplitude measuring circuit, and 40 is the signal processing circuit 3.
4 is a microcomputer as an example, 42 is a measurement line designating circuit, and 44 is a measurement period designating circuit.

【0021】前記エッジ検出回路36は、前記A/D変
換回路22から出力するディジタル映像信号のデータD
2を1サンプル・クロック分遅らせるためのDラッチ
回路46と、前記A/D変換回路22からの出力データ
DV2と前記Dラッチ回路46からの出力データとの差
を演算する減算回路48と、この減算回路48の出力デ
ータの絶対値を出力する絶対値回路50とからなり、前
記A/D変換回路22のサンプリング対象信号のエッジ
の傾き(すなわち変化の傾き)に相当するエッジ傾きデ
ータを出力するように構成されている。
The edge detection circuit 36 outputs the digital video signal data D output from the A / D conversion circuit 22.
A D latch circuit 46 for delaying V 2 by one sample clock, and a subtraction circuit 48 for calculating the difference between the output data DV 2 from the A / D conversion circuit 22 and the output data from the D latch circuit 46. And an absolute value circuit 50 that outputs the absolute value of the output data of the subtraction circuit 48, and outputs edge slope data corresponding to the slope (that is, the slope of change) of the edge of the sampling target signal of the A / D conversion circuit 22. It is configured to output.

【0022】例えば、1サンプル・クロック期間におけ
るサンプリング対象信号の変化量が100のときの傾き
データを、その1/10の10として表わすと、1サン
プル・クロック期間におけるサンプリング対象信号の変
化量が50のときの傾きデータは、その1/10の5と
なる。
For example, if the slope data when the amount of change of the sampling object signal in one sample clock period is 100 is expressed as 10 of 1/10, the amount of change of the sampling object signal in one sample clock period is 50. The inclination data at this time is 5 which is 1/10 of that.

【0023】前記測定ライン指定回路42は、HD(水
平同期)信号をCp(クロックパルス)入力とし、反転
したVD(垂直同期)信号の反転信号をR(リセット)
入力とするカウンタ52と、このカウンタ52のQ出力
信号(A)と前記マイコン40からの計測ライン指定信
号KLS(B)とを比較して両者が一致(A=B)した
ときに一致信号を出力するコンパレータ54とからなっ
ている。
The measurement line designating circuit 42 receives the HD (horizontal synchronization) signal as a Cp (clock pulse) input, and the inverted signal of the inverted VD (vertical synchronization) signal is R (reset).
The counter 52 which is an input, the Q output signal (A) of the counter 52, and the measurement line designation signal KLS (B) from the microcomputer 40 are compared, and when they match (A = B), a match signal is given. It comprises an output comparator 54.

【0024】前記測定期間指定回路44は、前記コンパ
レータ54からの一致信号をCp入力としHレベル信号
をD(データ)入力とする第1のD-FF(フリップフ
ロップ)56と、前記コンパレータ54からの一致信号
の反転信号をCp入力とし前記第1D-FF56の反転
Q出力信号をD入力とする第2のD-FF58と、前記
第1D-FF56のQ出力信号と前記第2D-FF58の
Q出力信号との論理積信号をゲート信号Gとして出力す
るアンド回路60とからなり、前記コンパレータ54か
らの一致信号の立ち上がりから立ち下がりまでの測定期
間の間、前記アンド回路60から前記振幅測定回路38
へHレベルのゲート信号Gを出力し、前記第2D-FF
58のQ出力端子から前記マイコン40へ計測終了信号
を出力するように構成されている。
The measurement period designating circuit 44 includes a first D-FF (flip-flop) 56 which receives the coincidence signal from the comparator 54 as a Cp input and an H level signal as a D (data) input, and the comparator 54. Second D-FF 58 having an inverted signal of the coincidence signal of Cp as an input and an inverted Q output signal of the first D-FF 56 as a D input, a Q output signal of the first D-FF 56 and a Q of the second D-FF 58. An AND circuit 60 that outputs a logical product signal with the output signal as a gate signal G. During the measurement period from the rising edge to the falling edge of the coincidence signal from the comparator 54, the AND circuit 60 outputs the amplitude measuring circuit 38.
And outputs an H level gate signal G to the second D-FF
The Q output terminal of 58 outputs a measurement end signal to the microcomputer 40.

【0025】前記振幅測定回路38は、前記エッジ検出
回路36からのエッジ傾きデータ(A)と前記マイコン
からの基準値データRD(B)とを比較して、前者が後
者より大きい(A>B)ときに検出信号としてのパルス
信号を出力するコンパレータ62と、このコンパレータ
62の出力信号と前記測定期間指定回路44からのゲー
ト信号Gとの論理積信号を出力するアンド回路64と、
このアンド回路64の出力信号をCp入力とするカウン
タ66とからなり、前記エッジ検出回路36から出力す
るエッジ傾きデータのうちの基準値データRDを超える
数をカウントし、その計数値をエッジ検出数信号EKと
して前記マイコン40に出力するように構成されてい
る。
The amplitude measuring circuit 38 compares the edge inclination data (A) from the edge detecting circuit 36 with the reference value data RD (B) from the microcomputer, and the former is larger than the latter (A> B). ), A comparator 62 that outputs a pulse signal as a detection signal, and an AND circuit 64 that outputs a logical product signal of the output signal of the comparator 62 and the gate signal G from the measurement period designating circuit 44,
A counter 66 that receives the output signal of the AND circuit 64 as a Cp input, counts the number of the edge inclination data output from the edge detection circuit 36 that exceeds the reference value data RD, and counts the count value as the edge detection number. The signal EK is output to the microcomputer 40.

【0026】前記マイコン40は、調整指令信号に基づ
いて、前記測定ライン指定回路42に計測ライン指定信
号KLSを、前記振幅測定回路38に基準値データRD
を、前記測定期間指定回路44内の第1D-FF56と
前記振幅測定回路38内のカウンタ66とに計測開始用
のリセット信号を、前記測定期間指定回路44内の第2
D-FF58に計測開始用のセット信号を出力するよう
に構成されている。
Based on the adjustment command signal, the microcomputer 40 sends a measurement line designating signal KLS to the measurement line designating circuit 42 and reference value data RD to the amplitude measuring circuit 38.
A measurement start reset signal is sent to the first D-FF 56 in the measurement period designating circuit 44 and the counter 66 in the amplitude measurement circuit 38, and a second reset signal for the measurement period designating circuit 44 is supplied.
The D-FF 58 is configured to output a set signal for starting measurement.

【0027】前記マイコン40は、さらに、前記測定期
間指定回路44から計測終了信号が入力する毎に、前記
振幅測定回路38から出力するエッジ検出数信号EKを
取り込み、この取り込んだエッジ検出数信号EKを順次
比較し、その比較出力に応じてディレイ量制御信号DS
を変化させて前記プログラマブル・ディレイラインに出
力する動作を繰り返しながら、前記振幅測定回路38か
ら出力するエッジ検出数が最大となる点を探し、最大点
が見つかったらその時のディレイ量制御信号DSを固定
するとともに、調整終了信号を外部へ出力するように構
成されている。
The microcomputer 40 further takes in the edge detection number signal EK output from the amplitude measuring circuit 38 every time the measurement end signal is inputted from the measurement period designating circuit 44, and takes in the edge detection number signal EK. Are sequentially compared, and the delay amount control signal DS is output according to the comparison output.
Is repeated and the operation of outputting to the programmable delay line is repeated to find a point at which the number of detected edges output from the amplitude measuring circuit 38 is maximum, and when the maximum point is found, the delay amount control signal DS at that time is fixed. In addition, the adjustment end signal is output to the outside.

【0028】つぎに、前記図2に示す実施例の作用を図
3を併用して説明する。 (イ)外部からマイコン40に調整指令信号が入力する
と、マイコン40は、まず計測開始用のリセット信号を
計測期間指令回路44の第1D-FF56と振幅測定回
路38のカウンタ66とに出力してリセットするととも
に、計測開始用のセット信号を計測期間指令回路44の
第2D-FF58に出力してセットする。
Next, the operation of the embodiment shown in FIG. 2 will be described with reference to FIG. (B) When an adjustment command signal is input to the microcomputer 40 from the outside, the microcomputer 40 first outputs a measurement start reset signal to the first D-FF 56 of the measurement period command circuit 44 and the counter 66 of the amplitude measurement circuit 38. At the same time as resetting, a set signal for starting measurement is output to the second D-FF 58 of the measurement period command circuit 44 to be set.

【0029】ついで、マイコン40は、プログラマブル
・ディレイライン32にディレイ量制御信号DSの初期
値DS1(例えばディレイ量0)を、振幅測定回路38
のコンパレータ62に基準値データRDの初期値RD1
をそれぞれ出力する。この初期値RD1は、これに限る
ものでないが、例えば低めに設定する。
Next, the microcomputer 40 supplies the programmable delay line 32 with the initial value DS 1 of the delay amount control signal DS (for example, delay amount 0) and the amplitude measuring circuit 38.
Initial value RD 1 of reference value data RD to comparator 62 of
Are output respectively. The initial value RD 1 is not limited to this, but is set to a low value, for example.

【0030】すると、エッジ検出回路36の減算回路4
8は、A/D変換回路22から出力するデータDV2
Dラッチ回路46から出力するデータとの差を演算し、
絶対値回路50は減算回路48の出力の絶対値を出力す
るので、エッジ検出回路36はA/D変換回路22のサ
ンプリング対象信号のエッジの傾きに相当するエッジ傾
きデータを出力する。例えば、1サンプル・クロック期
間におけるサンプリング対象信号の変化量が100のと
きは、エッジ傾きデータ10を出力する。
Then, the subtraction circuit 4 of the edge detection circuit 36
8 calculates the difference between the data DV 2 output from the A / D conversion circuit 22 and the data output from the D latch circuit 46,
Since the absolute value circuit 50 outputs the absolute value of the output of the subtraction circuit 48, the edge detection circuit 36 outputs edge slope data corresponding to the slope of the edge of the sampling target signal of the A / D conversion circuit 22. For example, when the amount of change in the sampling target signal in one sample clock period is 100, the edge slope data 10 is output.

【0031】また、測定ライン指定回路42のカウンタ
52は1フィールド毎(1VD毎)にHD信号の数を計
数して計数値を出力し、コンパレータ54はその計数値
が計測ライン指定信号KLSで設定された設定数と一致
したときに一致信号を出力するので、マイコン40から
の計測ライン指定信号KLSによって1フィールド中の
任意の水平走査ラインを設定することができる。
The counter 52 of the measurement line designating circuit 42 counts the number of HD signals for each field (every 1VD) and outputs a count value, and the comparator 54 sets the count value by the measurement line designating signal KLS. Since the coincidence signal is output when the number matches the set number, it is possible to set an arbitrary horizontal scanning line in one field by the measurement line designating signal KLS from the microcomputer 40.

【0032】また、測定期間指定回路44の第1D-F
F56と第2D-FF58とは、測定ライン指定回路4
2のコンパレータ54の一致信号の立ち上がりと立ち下
がりとでラッチとして動作するので、一致信号の立ち上
がりから立ち下がりまでの期間の間、測定期間指定回路
44のアンド回路60はHレベルのゲート信号Gを振幅
測定回路38のアンド回路64に出力する。
The first D-F of the measurement period designating circuit 44
The F56 and the second D-FF58 are the measurement line designating circuit 4
Since it operates as a latch at the rising and falling edges of the coincidence signal of the second comparator 54, the AND circuit 60 of the measurement period specifying circuit 44 outputs the H level gate signal G during the period from the rising edge to the falling edge of the coincidence signal. It is output to the AND circuit 64 of the amplitude measuring circuit 38.

【0033】また、振幅測定回路38のコンパレータ6
2は、エッジ検出回路36からのエッジ傾きデータ
(A)とマイコンからの初期の基準値データRD
1(B)とを比較して前者が後者より大きい(A>B)
ときにパルス信号を出力し、このパルス信号は測定期間
指定回路44からのゲート信号Gで開閉するアンド回路
64を介してカウンタ66に入力し、このカウンタ66
はエッジ傾きデータのうちの基準値データRD1を超え
る数をカウントし、その計数値をエッジ検出数信号EK
としてマイコン40に出力する
Further, the comparator 6 of the amplitude measuring circuit 38
2 is the edge inclination data (A) from the edge detection circuit 36 and the initial reference value data RD from the microcomputer.
Compared with 1 (B), the former is larger than the latter (A> B)
At this time, a pulse signal is output, and this pulse signal is input to a counter 66 via an AND circuit 64 that opens and closes with a gate signal G from the measurement period designating circuit 44, and this counter 66
Counts the number of the edge inclination data that exceeds the reference value data RD 1, and uses the counted value as the edge detection number signal EK.
Output to the microcomputer 40 as

【0034】(ロ)ついで、前記(イ)の初期値DS1
およびRD1を固定した状態で、マイコン40は、測定
ライン指定回路42のコンパレータ54に出力する計測
ライン指定信号KLSを1フィールド毎に少しづつ変化
させながら、振幅測定回路38から出力するエッジ検出
数信号EKを検出し、その検出したエッジ検出数がカウ
ンタ66で計数し易い適当なところを探して決定する。
(B) Next, the initial value DS 1 of (a) above
With RD 1 and RD 1 fixed, the microcomputer 40 slightly changes the measurement line designation signal KLS output to the comparator 54 of the measurement line designation circuit 42 for each field, and outputs the number of edge detections output from the amplitude measurement circuit 38. The signal EK is detected, and the detected edge detection number is determined by searching for an appropriate place where the counter 66 is easy to count.

【0035】すなわち、マイコン40からの計測ライン
指定信号KLSで1フィールド中の任意の水平走査ライ
ンを設定することができ、測定期間指定回路44によっ
て測定ライン指定回路42で指定された計測ライン(水
平走査ライン)の間、Hレベルのゲート信号Gを振幅測
定回路38のアンド回路64に出力しているので、マイ
コン40は、測定期間指定回路44からの計測終了信号
(すなわち第2D-FF58のQ出力がHレベルからL
レベルに変化するタイミング信号)に基づいて、振幅測
定回路38から出力するエッジ検出数信号EKを取り込
む(すなわち、エッジ検出数を取り込む)。
That is, an arbitrary horizontal scanning line in one field can be set by the measurement line designating signal KLS from the microcomputer 40, and the measurement line (horizontal line designated by the measurement line designating circuit 42 by the measurement period designating circuit 44 (horizontal line) can be set. During the scanning line), the H-level gate signal G is output to the AND circuit 64 of the amplitude measuring circuit 38. Therefore, the microcomputer 40 sends the measurement end signal from the measurement period designating circuit 44 (that is, Q of the second D-FF 58). Output is from H level to L
The edge detection number signal EK output from the amplitude measuring circuit 38 is fetched (that is, the edge detection number is fetched) based on the timing signal which changes to the level).

【0036】そして、マイコン40は、この取り込んだ
エッジ検出数を予め設定した設定値と比較することによ
って、エッジ検出数が予め設定した範囲内にあると判断
すればカウンタ66で計数し易い範囲であるとして計測
ラインを決定する。例えば、図3の点線KLで示すよう
な表示画面70のほぼ中央部の計測ラインを決定する。
すなわち、一定数以上のエッジ検出が可能で、かつカウ
ンタ66の最大計数値の半分位のエッジ検出数が得られ
るような計測ライン(例えば1フレーム525本の水平
走査ラインのほぼ真中の262本目の水平走査ライン)
を探して決定する。表示画面70の上端部のように変化
の少なすぎる画面の計測ラインでは一定数以上のエッジ
検出ができないからである。
Then, the microcomputer 40 compares the fetched number of detected edges with a preset value, and if it judges that the number of detected edges is within the preset range, it is easily counted by the counter 66. Determine the measurement line as if it exists. For example, the measurement line at the substantially central portion of the display screen 70 as indicated by the dotted line KL in FIG. 3 is determined.
That is, it is possible to detect a certain number of edges or more and obtain the number of detected edges that is half the maximum count value of the counter 66 (for example, the 262th line in the middle of the 525 horizontal scanning lines in one frame). Horizontal scan line)
Search for and decide. This is because a certain number or more of edges cannot be detected in the measurement line on the screen that changes too little like the upper end of the display screen 70.

【0037】(ハ)前記(ロ)で計測ラインが決定した
ら、マイコン40は、振幅測定回路38のコンパレータ
62に出力する基準値データRDを、振幅測定回路38
から出力するエッジ検出数が少な目となるように設定し
直す。
(C) When the measurement line is determined in (b), the microcomputer 40 sets the reference value data RD output to the comparator 62 of the amplitude measuring circuit 38 to the amplitude measuring circuit 38.
Set again so that the number of detected edges output from will be small.

【0038】(ニ)ついで、マイコン40は、プログラ
マブル・ディレイライン32に出力するディレイ量制御
信号DSを1フィールド毎に少しずつ変化させて、プロ
グラマブル・ディレイライン32におけるディレイ量を
0から少しずつ増やしながら振幅測定回路38から出力
するエッジ検出数信号EKを検出し、ディレイ量変化の
前後におけるエッジ検出数の比較を繰り返しながら、エ
ッジ検出数が最大となる点を探す。
(D) Next, the microcomputer 40 gradually changes the delay amount control signal DS output to the programmable delay line 32 for each field, and gradually increases the delay amount in the programmable delay line 32 from 0. While detecting the edge detection number signal EK output from the amplitude measuring circuit 38, the edge detection number before and after the delay amount change is repeatedly compared to search for the point at which the edge detection number becomes maximum.

【0039】(ニ)前記(ハ)でエッジ検出数が最大と
なるディレイ量が見つかったら、マイコン40はプログ
ラマブル・ディレイライン32に出力するディレイ量制
御信号を固定してディレイ量に決定し、かつ外部に調整
終了信号を出力して最適なサンプル・クロック位相の調
整が終わったことを報知する。
(D) When the delay amount that maximizes the number of detected edges is found in (c) above, the microcomputer 40 fixes the delay amount control signal output to the programmable delay line 32 to determine the delay amount, and An adjustment end signal is output to the outside to notify that the optimum sample clock phase adjustment is completed.

【0040】前記実施例では、プログラマブル・ディレ
イライン32における初期のディレイ量を0とし、この
ディレイ量を0から少しずつ増やしながら計測を繰り返
し、エッジ検出数が最大となる点を探すようにしたが、
本発明はこれに限るものでなく、例えば、プログラマブ
ル・ディレイライン32における初期のディレイ量を0
以外の値とし、この初期値からディレイ量を少しずつ増
やすか減らすかしながら計測を繰り返してエッジ検出数
が最大となる点を探すようにしてもよい。
In the above-described embodiment, the initial delay amount in the programmable delay line 32 is set to 0, the measurement is repeated while gradually increasing the delay amount from 0, and the point at which the number of detected edges is maximized is searched for. ,
The present invention is not limited to this, and for example, the initial delay amount in the programmable delay line 32 is set to 0.
Other values may be used, and the point at which the number of detected edges is maximized may be searched for by repeating the measurement while gradually increasing or decreasing the delay amount from this initial value.

【0041】[0041]

【発明の効果】本発明によるサンプル・クロック位相調
整装置は、上記のように、基準となるクロックの位相遅
れを可変制御してサンプリング回路へのサンプル・クロ
ックとするプログラマブル・ディレイラインと、サンプ
リング回路によるサンプリング・データに基づいてサン
プリング対象信号のエッジを検出するエッジ検出回路
と、この検出エッジの振幅を測定する振幅測定回路と、
この測定した振幅が最大値となるようにプログラマブル
・ディレイラインのクロック位相遅れを制御する制御回
路とを具備し、サンプル・クロックの位相が、サンプリ
ング点がサンプリング対象信号(例えばアナログ映像信
号)の変化の頂点とほぼ一致するように、自動的に調整
されるように構成した。
As described above, the sample clock phase adjusting device according to the present invention includes a programmable delay line for variably controlling the phase delay of the reference clock to be used as the sample clock for the sampling circuit, and the sampling circuit. An edge detection circuit that detects the edge of the sampling target signal based on the sampling data by, and an amplitude measurement circuit that measures the amplitude of this detection edge,
A control circuit that controls the clock phase delay of the programmable delay line so that the measured amplitude becomes the maximum value, and the phase of the sample clock changes at the sampling point at the sampling target signal (for example, analog video signal). It is configured to be adjusted automatically so that it almost coincides with the apex of.

【0042】このため、サンプリング回路でサンプリン
グする信号が、パソコンのアナログ映像信号のように、
LPF等で波形が鈍った場合でも、サンプル・クロック
の位相をサンプリング対象信号に対して最適なものに自
動的に調整することができる。したがって、サンプリン
グ対象信号がパソコンのビデオ信号の場合、サンプル位
相の違いによる画質劣化を回避することができる。
Therefore, the signal sampled by the sampling circuit is like an analog video signal of a personal computer.
Even if the waveform is blunted by an LPF or the like, the phase of the sample clock can be automatically adjusted to the optimum one for the signal to be sampled. Therefore, when the sampling target signal is a video signal of a personal computer, it is possible to avoid image quality deterioration due to the difference in sample phase.

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

【図1】本発明によるサンプル・クロック位相調整装置
の一実施例を示す基本的な概略構成図である。
FIG. 1 is a basic schematic configuration diagram showing an embodiment of a sample clock phase adjusting device according to the present invention.

【図2】本発明によるサンプル・クロック位相調整装置
の一実施例を示す具体的な概略構成図である。
FIG. 2 is a specific schematic configuration diagram showing an embodiment of a sample clock phase adjusting device according to the present invention.

【図3】図2の計測ライン指定回路で指定する計測ライ
ンの一例を説明する説明図である。
FIG. 3 is an explanatory diagram illustrating an example of a measurement line designated by a measurement line designation circuit of FIG.

【図4】従来装置の概略構成を示すもので、ビデオ走査
周波数変換装置(スキャン・コンバータ)側のA/D変
換回路(サンプリング回路の一例)において、パソコン
側から出力したアナログ映像信号(例えばビデオ信号)
AV2を、PLL回路からのサンプル・クロックでサン
プリングしディジタル映像信号DV2に変換して出力す
る装置と、その周辺装置を示す従来の概略構成図であ
る。
FIG. 4 is a diagram showing a schematic configuration of a conventional device in which an analog video signal (for example, a video signal) output from a personal computer side in an A / D conversion circuit (an example of a sampling circuit) on the video scanning frequency conversion device (scan converter) side signal)
FIG. 1 is a conventional schematic configuration diagram showing a device for sampling AV 2 with a sample clock from a PLL circuit, converting it into a digital video signal DV 2 and outputting it, and its peripheral devices.

【図5】図4の作用を説明する説明図である。5A and 5B are explanatory views illustrating the operation of FIG.

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

22…A/D変換回路(サンプリング回路の一例)、3
2…プログラマブルディレイライン、34…信号処理回
路(制御回路の一例)36…エッジ検出回路、 38…
振幅測定回路、40…マイコン(制御回路の一例)、
42…計測ライン指定回路、44…測定期間指定回路、
46…Dラッチ回路、48、54、62…コンパレー
タ、 52、66…カウンタ、56、58…D-FF、
60、64…アンド回路、DS…ディレイ量制御信
号、 HD…水平同期信号、G…ゲート信号、 KLS
…計測ライン指定信号、RD…基準値データ、 VD…
垂直同期信号。
22 ... A / D conversion circuit (an example of sampling circuit), 3
2 ... Programmable delay line 34 ... Signal processing circuit (an example of control circuit) 36 ... Edge detection circuit 38 ...
Amplitude measurement circuit, 40 ... Microcomputer (an example of control circuit),
42 ... Measurement line designation circuit, 44 ... Measurement period designation circuit,
46 ... D latch circuit, 48, 54, 62 ... Comparator, 52, 66 ... Counter, 56, 58 ... D-FF,
60, 64 ... AND circuit, DS ... Delay amount control signal, HD ... Horizontal synchronization signal, G ... Gate signal, KLS
... measurement line designation signal, RD ... reference value data, VD ...
Vertical sync signal.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】基準となるクロックの位相遅れを可変制御
してサンプリング回路へのサンプル・クロックとするプ
ログラマブル・ディレイラインと、前記サンプリング回
路によるサンプリング・データに基づいてサンプリング
対象信号のエッジを検出するエッジ検出回路と、前記エ
ッジ検出回路で検出したエッジの振幅を測定する振幅測
定回路と、前記振幅測定回路で測定した振幅が最大値と
なるように前記プログラマブル・ディレイラインのクロ
ック位相遅れを制御する制御回路とを具備してなること
を特徴とするサンプル・クロック位相調整装置。
1. A programmable delay line that variably controls a phase delay of a reference clock to be a sampling clock for a sampling circuit, and detects an edge of a sampling target signal based on sampling data by the sampling circuit. An edge detection circuit, an amplitude measurement circuit that measures the amplitude of the edge detected by the edge detection circuit, and a clock phase delay of the programmable delay line is controlled so that the amplitude measured by the amplitude measurement circuit becomes a maximum value. A sample clock phase adjusting device comprising a control circuit.
【請求項2】エッジ検出回路は、サンプリング回路によ
るサンプリング・データと、このサンプリング・データ
を1サンプル・クロック分遅らせたデータとの差を演算
して、サンプリング対象信号のエッジの傾きを出力する
減算回路を主体としてなり、振幅測定回路は、前記減算
回路の出力値が予め設定した基準値を超えたか否かを検
出する比較器と、一定期間内における前記比較器からの
出力数(エッジ傾き値が基準値を超えたエッジの出現
数)を計数するカウンタとを主体としてなる請求項1記
載のサンプル・クロック位相調整装置。
2. An edge detection circuit calculates a difference between sampling data obtained by the sampling circuit and data obtained by delaying the sampling data by one sample clock, and outputs the inclination of the edge of the sampling target signal. The amplitude measuring circuit is mainly composed of a circuit, and the amplitude measuring circuit detects whether the output value of the subtracting circuit exceeds a preset reference value, and the number of outputs from the comparator within a certain period (edge slope value). 2. The sample clock phase adjuster according to claim 1, wherein the counter mainly comprises a counter for counting the number of appearances of edges exceeding a reference value.
JP10985793A 1993-04-13 1993-04-13 Sample clock phase adjusting device Pending JPH06301487A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10985793A JPH06301487A (en) 1993-04-13 1993-04-13 Sample clock phase adjusting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10985793A JPH06301487A (en) 1993-04-13 1993-04-13 Sample clock phase adjusting device

Publications (1)

Publication Number Publication Date
JPH06301487A true JPH06301487A (en) 1994-10-28

Family

ID=14520960

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10985793A Pending JPH06301487A (en) 1993-04-13 1993-04-13 Sample clock phase adjusting device

Country Status (1)

Country Link
JP (1) JPH06301487A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011062057A (en) * 2009-09-14 2011-03-24 Fuji Electric Systems Co Ltd Digital control switching power supply device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011062057A (en) * 2009-09-14 2011-03-24 Fuji Electric Systems Co Ltd Digital control switching power supply device

Similar Documents

Publication Publication Date Title
JP3220023B2 (en) Liquid crystal display
US6097444A (en) Automatic image quality adjustment device adjusting phase of sampling clock for analog video signal to digital video signal conversion
JP3622270B2 (en) Video signal processing apparatus, information processing system, and video signal processing method
KR100259265B1 (en) Flat panel display apparatus having auto course control function
CA2321291C (en) Video signal processor
US4905085A (en) Synchronous sampling system
US6753926B1 (en) Circuit for generating sampling clock to stably sample a video signal and display apparatus having the circuit
US4713690A (en) Sampling clock phase correction circuit of video signal
KR100265710B1 (en) Flat panel display apparatus having auto tracking control function
JPH06301487A (en) Sample clock phase adjusting device
KR100466553B1 (en) A delay correction circuit
US7180550B2 (en) Video reproducing apparatus and method and apparatus and method for adjusting horizontal synchronous signal
KR100242972B1 (en) Tracking control circuit of panel display device
JP2889037B2 (en) Shutter speed control circuit
JP2957989B1 (en) Display device
JP3960716B2 (en) Automatic clock phase adjustment device for pixel-compatible display device
JP4310679B2 (en) Display drive control device
JPH1039838A (en) Driving circuit for liquid crystal display device
KR0160118B1 (en) Automatic gain controlling circuit
JP3661497B2 (en) Automatic adjustment device and video projector
KR920008625Y1 (en) Auto-recording control apparatus
JPH10105110A (en) Image adjusting circuit for matraix type display element
JPH09146502A (en) Automatic display adjusting method of liquid crystal display device
JPH02309784A (en) Video signal processing circuit
JPH09191430A (en) Video signal take-in device