Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0379715B2 - - Google Patents
[go: Go Back, main page]

JPH0379715B2 - - Google Patents

Info

Publication number
JPH0379715B2
JPH0379715B2 JP60081807A JP8180785A JPH0379715B2 JP H0379715 B2 JPH0379715 B2 JP H0379715B2 JP 60081807 A JP60081807 A JP 60081807A JP 8180785 A JP8180785 A JP 8180785A JP H0379715 B2 JPH0379715 B2 JP H0379715B2
Authority
JP
Japan
Prior art keywords
video
signal
circuit
raster
sampling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP60081807A
Other languages
Japanese (ja)
Other versions
JPS61240284A (en
Inventor
Susumu Matsukura
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP60081807A priority Critical patent/JPS61240284A/en
Publication of JPS61240284A publication Critical patent/JPS61240284A/en
Publication of JPH0379715B2 publication Critical patent/JPH0379715B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、ビデオ信号送出装置からのビデオ入
力信号を、サンプリングクロツクでタイミングを
とつてサンプリングし、ビデオ出力信号として出
力するビデオインタフエイス装置に関するもので
ある。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a video interface device that samples a video input signal from a video signal sending device using a sampling clock and outputs the sample as a video output signal. It is related to.

〔従来の技術〕[Conventional technology]

ビデオインタフエイス装置は、ビデオ信号送出
装置から送られたビデオ入力信号を、サンプリン
グロツクでタイミングをとりながらサンプリング
して、ビデオ出力信号としてカラープリンタ等に
送るものである。このようなビデオインタフエイ
ス装置では、サンプリングクロツクとビデオ入力
信号が適切な位相関係にないと、ビデオ入力信号
がサンプリング回路に正しくラツチングされなく
なり、正確なサンプリングができなくなる。例え
ば、プリンタのビデオインタフエイス装置では、
ドツト落ち、ドツトずれが生じ、カラープリンタ
では色ずれが生じる。このことから、ビデオイン
タフエイス装置では、サンプリングクロツクとビ
デオ入力信号を適切な位相関係に調整する対策が
必要となる。
A video interface device samples a video input signal sent from a video signal sending device while keeping timing with a sampling lock, and sends the sample as a video output signal to a color printer or the like. In such a video interface device, if the sampling clock and the video input signal do not have an appropriate phase relationship, the video input signal will not be properly latched into the sampling circuit, and accurate sampling will not be possible. For example, in a printer's video interface device,
Dropped dots and misaligned dots occur, and in color printers, color misalignment occurs. For this reason, video interface devices require measures to adjust the sampling clock and video input signal to have an appropriate phase relationship.

このような対策が施されたビデオインタフエイ
ス装置としては、本出願人による特願昭59−
239900号の「ビデオインタフエイス装置」があつ
た。このビデオインタフエイス装置では、フリツ
プフロツプ回路と論理回路からなる位相同期回路
により、サンプリングクロツクを、ビデオ入力信
号に対して一定範囲内の位相差にするものであ
る。
A video interface device equipped with such measures is disclosed in the patent application filed in 1983 by the present applicant.
No. 239900 "Video Interface Device" was published. In this video interface device, a phase synchronization circuit consisting of a flip-flop circuit and a logic circuit makes the sampling clock have a phase difference within a certain range with respect to the video input signal.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

しかし、このビデオインタフエイス装置でも、
サンプリングクロツクとビデオ信号送出装置のド
ツトクロツクパルスの周波数の差や、ビデオ入力
信号の波形の乱れ等のために、未だサンプリング
が不完全である。そのため、このビデオインタフ
エイス装置に接続したプリンタでも、印字にドツ
トずれ、色ずれ等が生じるという問題点があつ
た。
However, even with this video interface device,
Sampling is still incomplete due to the frequency difference between the sampling clock and the dot clock pulse of the video signal transmitting device, the waveform disturbance of the video input signal, and the like. As a result, printers connected to this video interface device also have problems in that dot misalignment, color misalignment, etc. occur in printing.

本発明は上述した問題点を除去するためになさ
れたものであり、エラーしてサンプリングしたビ
デオ入力信号を再びサンプリングし直し、サンプ
リングをより完全に行なうことができるビデオイ
ンタフエイス装置を実現することを目的とする。
The present invention has been made in order to eliminate the above-mentioned problems, and it is an object of the present invention to realize a video interface device that can re-sample a video input signal that has been sampled in error and perform sampling more completely. purpose.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は、ビデオ信号送出装置から送られるビ
デオ入力信号を、サンプリングクロツクでタイミ
ングをとつてサンプリングし、ビデオ出力信号と
して出力するビデオインタフエイス装置におい
て、サンプリングクロツクをビデオ入力信号に対
して一定範囲内の位相差にする疑似同期クロツク
発生回路と、サンプリングされたビデオ入力信号
が格納されるメモリと、ビデオ入力信号とビデオ
出力信号が入力され、ビデオ入力信号の遅延信号
の立上り時と立下り時におけるビデオ出力信号の
状態をもとにしてサンプリングのエラーを1ラス
タ分のデータごとにチエツクするエラー検出回路
と、各ラスタのデータについて、サンプリングの
エラーがチエツクされるまで、そのデータのラス
タアドレスがセツトされているラスタカウンタ
と、前記エラー検出回路でエラーが検出されたと
きに、前記ラスタカウンタにセツトされたラスタ
アドレスをもとにして、エラーしてサンプリング
したデータを次以降のフレーム周期で再びサンプ
リングする制御回路、とを具備したことを特徴と
するビデオインタフエイス装置である。
The present invention provides a video interface device that samples a video input signal sent from a video signal transmission device using a sampling clock and outputs the sample as a video output signal. A pseudo synchronous clock generation circuit that generates a phase difference within a range, a memory in which a sampled video input signal is stored, a video input signal and a video output signal are input, and a delay signal of the video input signal is input at the rising and falling edges. An error detection circuit that checks sampling errors for each raster of data based on the state of the video output signal at the time, and an error detection circuit that checks the raster address of each raster until the sampling error is checked. is set in the raster counter, and the raster address set in the raster counter when an error is detected by the error detection circuit, the data sampled in error is processed in the next and subsequent frame cycles. A video interface device characterized by comprising a control circuit for resampling.

〔実施例〕〔Example〕

以下、図面により本発明を説明する。 The present invention will be explained below with reference to the drawings.

第1図は本発明にかかるビデオインタフエイス
装置の一実施例の構成ブロツク図である。
FIG. 1 is a block diagram of an embodiment of a video interface device according to the present invention.

第1図で、10はクロツク発振器、20は疑似
同期クロツク発生回路、30はサンプリング回
路、40はメモリ、50はバツフア、60はアド
レスカウンタ、70は書込み/読出し制御回路、
80はラスタカウンタ回路、90はエラー検出回
路、100はエラー信号送出回路、110は制御
回路である。
In FIG. 1, 10 is a clock oscillator, 20 is a pseudo synchronous clock generation circuit, 30 is a sampling circuit, 40 is a memory, 50 is a buffer, 60 is an address counter, 70 is a write/read control circuit,
80 is a raster counter circuit, 90 is an error detection circuit, 100 is an error signal sending circuit, and 110 is a control circuit.

VSYNC、HSYNC及びVIDEO INは、垂直同
期信号、水平同期信号及びビデオ入力信号であ
り、これらはビデオ信号送出装置から与えられ
る。
VSYNC, HSYNC, and VIDEO IN are a vertical synchronization signal, a horizontal synchronization signal, and a video input signal, which are provided from a video signal transmission device.

クロツク発振器10は、サンプリングクロツク
CLKIを出力する。
The clock oscillator 10 is a sampling clock.
Output CLKI.

疑似同期クロツク発生回路20は、サンプリン
グクロツクCLK1を、ビデオ入力信号VIDEO IN
(以下、単にVIDEO INとする)に対して一定範
囲内の位相差のクロツク信号CLK2にして出力す
る。
The pseudo synchronous clock generation circuit 20 converts the sampling clock CLK1 into the video input signal VIDEO IN.
(hereinafter simply referred to as VIDEO IN), a clock signal CLK2 with a phase difference within a certain range is output.

サンプリング回路30は、VIDEO INを、ク
ロツク信号CLK2でタイミングをとつてサンプリ
ングし、ビデオ出力信号VIDEO OUT(以下、単
にVIDEO OUTとする)として出力する。
The sampling circuit 30 samples VIDEO IN in accordance with the clock signal CLK2, and outputs it as a video output signal VIDEO OUT (hereinafter simply referred to as VIDEO OUT).

メモリ40には、サンプリングされたデータが
格納される。
The sampled data is stored in the memory 40.

バツフア50は、メモリ40へ書き込まれるデ
ータの流れと、メモリ40から読み出されるデー
タの流れを調整する。
Buffer 50 regulates the flow of data written to memory 40 and the flow of data read from memory 40.

アドレスカウンタ60には、メモリ40に対し
て読み書きするアドレスがセツトされる。
The address counter 60 is set with an address for reading and writing to the memory 40.

書込み/読出し制御回路70は、水平同期信号
HSYNC、クロツク信号CLK2、ラスタカウンタ
80から書込み要求信号(以下、WR信号とす
る)及び制御回路110からの書込みクロツク信
号(以下、RDCLK信号とする)をもとにして、
アドレスカウンタ80へ信号を送つてメモリ40
の書込みと読出しを制御する。
The write/read control circuit 70 receives a horizontal synchronization signal
Based on HSYNC, clock signal CLK2, write request signal (hereinafter referred to as WR signal) from raster counter 80, and write clock signal (hereinafter referred to as RDCLK signal) from control circuit 110,
Sends a signal to the address counter 80 and sends a signal to the memory 40.
control writing and reading.

ラスタカウンタ回路80には、制御回路110
によりラスタアドレスがセツトされる。また、ラ
スタカウンタ回路80は、垂直同期信号
VSYNC、水平同期信号HSYNC及び書込み信号
(以下、WRITE信号とする)をもとにして、書
込み/読出し制御回路70にWR信号を、メモリ
40にはライトネーブル信号(以下、WE信号と
する)を、制御回路110には書込み終了信号
(以下、WREND信号とする)をそれぞれ送る。
ここで、ラスタアドレスは、ビデオ信号送出装置
の画面上における走査線の番号に対応したもので
ある。
The raster counter circuit 80 includes a control circuit 110.
The raster address is set by The raster counter circuit 80 also receives a vertical synchronization signal.
Based on VSYNC, the horizontal synchronization signal HSYNC, and a write signal (hereinafter referred to as WRITE signal), a WR signal is sent to the write/read control circuit 70, and a write enable signal (hereinafter referred to as WE signal) is sent to the memory 40. , a write end signal (hereinafter referred to as a WREND signal) is sent to the control circuit 110, respectively.
Here, the raster address corresponds to the number of scanning lines on the screen of the video signal sending device.

エラー検出回路90は、VIDEO INとVIDEO
OUTが入力され、これらの信号をもとにしてサ
ンプリングエラーをチエツクする。
The error detection circuit 90 connects VIDEO IN and VIDEO
OUT is input, and sampling errors are checked based on these signals.

エラー信号検出回路100において、101は
アンドゲート、102はDタイプのフリツプフロ
ツプである。アンドゲート101には、エラー検
出回路101の出力とWE信号が入力される。フ
リツプフロツプ102は、D端子には所定のレベ
ルの電圧が印加され、またCK端子にはアンドゲ
ート101の出力が、CLK端子にはWRITE信号
がそれぞれ与えられる。サンプリングエラーが生
じたときは、フリツプフロツプ102のQ端子か
ら発生するエラー信号(以下、単にERROR信号
とする)がTrue(High Level)になる。この
ERROR信号が制御回路110に送られると、制
御回路110はエラーしてサンプリングされたデ
ータがメモリ40から読み出されるのを阻止す
る。
In the error signal detection circuit 100, 101 is an AND gate, and 102 is a D type flip-flop. The AND gate 101 receives the output of the error detection circuit 101 and the WE signal. In the flip-flop 102, a voltage at a predetermined level is applied to the D terminal, the output of the AND gate 101 is applied to the CK terminal, and the WRITE signal is applied to the CLK terminal. When a sampling error occurs, the error signal (hereinafter simply referred to as the ERROR signal) generated from the Q terminal of the flip-flop 102 becomes true (High Level). this
When the ERROR signal is sent to control circuit 110, control circuit 110 prevents the erroneously sampled data from being read from memory 40.

制御回路110は、CPU、メモリ及びI/O
ポートからなる。
The control circuit 110 includes a CPU, memory and I/O
Consists of ports.

I/Oポートには例えばプリンタが接続されて
いる。
For example, a printer is connected to the I/O port.

CPUは、エラー検出回路90でエラーが検出
されたときに、エラーしてサンプリングされたビ
デオ入力信号のラスタアドレスを読み、そのビデ
オ入力信号を次以降のフレーム周期で再びサンプ
リングする。各ラスタのビデオ入力信号につい
て、エラー検出回路でエラーがチエツクされるま
で、そのビデオ入力信号のラスタアドレスは、ラ
スタカウンタ回路80にセツトされている。この
ため、エラー検出回路90でエラーが検出された
ときは、ラスタカウンタ回路80にセツトされた
ラスタアドレスをもとにして、再びサンプリング
すべきビデオ入力信号を判別する。
When an error is detected by the error detection circuit 90, the CPU reads the raster address of the erroneously sampled video input signal and samples the video input signal again in the next and subsequent frame periods. For each raster video input signal, the raster address of that video input signal is set in the raster counter circuit 80 until the error detection circuit checks for errors. Therefore, when an error is detected by the error detection circuit 90, the video input signal to be sampled again is determined based on the raster address set in the raster counter circuit 80.

サンプリングのエラーが検出された場合は、制
御回路110は、次のサンプリングを行なう前
に、WRITE信号を僅かな時間だけLow Levelに
してフリツプフロツプ102をリセツトする。
If a sampling error is detected, the control circuit 110 resets the flip-flop 102 by setting the WRITE signal to a low level for a short period of time before performing the next sampling.

第2図は第1図の要部構成を示した図である。
第2図で、第1図と同一のものは同同一符号を付
ける。以下、図において同様とする。
FIG. 2 is a diagram showing the main part configuration of FIG. 1.
Components in FIG. 2 that are the same as those in FIG. 1 are given the same reference numerals. The same applies to the following figures.

疑似同期クロツク発生回路20において、21
はフリツプフロツプ回路、22は論理回路であ
る。
In the pseudo synchronous clock generation circuit 20, 21
2 is a flip-flop circuit, and 22 is a logic circuit.

フリツプフロツプ回路21はDタイプのフリツ
プフロツプ回路であり、D端子にはクロツク発振
器10からのサンプリングクロツクCLK1が与え
られ、T端子には水平同期信号HSYNCが与えら
れている。
The flip-flop circuit 21 is a D-type flip-flop circuit, and the sampling clock CLK1 from the clock oscillator 10 is applied to the D terminal, and the horizontal synchronizing signal HSYNC is applied to the T terminal.

論理回路22は、排他的論理和ゲートであり、
サンプリングクロツクCLK1とフリツプフロツプ
回路21のQ端子の出力の排他的論理和をとつて
出力する。排他的論理和ゲート22の出力CLK2
はサンプリング回路30と書込み/読出し制御回
路70に与えられる。
The logic circuit 22 is an exclusive OR gate,
The exclusive OR of the sampling clock CLK1 and the output of the Q terminal of the flip-flop circuit 21 is calculated and output. Output CLK2 of exclusive OR gate 22
is applied to sampling circuit 30 and write/read control circuit 70.

サンプリング回路30は、Dタイプのフリツプ
フロツプ回路であり、D端子にはVIDEO IN、
T端子には疑似同期クロツク発生回路20からの
クロツク信号CLK2が与えられ、Q端子からは
VIDEO OUTが出力される。
The sampling circuit 30 is a D-type flip-flop circuit, and the D terminal has VIDEO IN,
The clock signal CLK2 from the pseudo synchronous clock generation circuit 20 is given to the T terminal, and the clock signal CLK2 from the Q terminal is given.
VIDEO OUT is output.

エラー検出回路90において、91は遅延回路
であり、VIDEO INに遅延時間τを与える。以
下、この遅延時間が与えられた信号を
DELAYED VIDEOとする。92及び93はD
タイプのフリツプフロツプ回路である。フリツプ
フロツプ回路92は、D端子にはVIDEO OUT、
T端子には遅延回路91からの信号がそれぞれ与
えられ、端子からは信号e1が出力される。フリ
ツプフロツプ回路93は、D端子にはVIDEO
OUT、T端子には遅延回路91からの信号がそ
れぞれ与えられ、Q端子からは信号e2が出力され
る。94は論理和ゲートであり、信号e1とe2の論
理和をとつて出力する。
In the error detection circuit 90, 91 is a delay circuit that provides a delay time τ to VIDEO IN. Below, the signal given this delay time is
DELAYED VIDEO. 92 and 93 are D
This is a type of flip-flop circuit. The flip-flop circuit 92 has VIDEO OUT and
Signals from the delay circuit 91 are applied to the T terminals, and a signal e1 is output from the terminals. The flip-flop circuit 93 has VIDEO on the D terminal.
Signals from the delay circuit 91 are applied to the OUT and T terminals, respectively, and a signal e 2 is output from the Q terminal. 94 is an OR gate, which calculates the OR of signals e 1 and e 2 and outputs the result.

第3図は第1図のラスタカウンタ回路80の具
体的な構成を示した図である。
FIG. 3 is a diagram showing a specific configuration of the raster counter circuit 80 of FIG. 1.

第3図で、81はプリセツタブルラスタカウン
タ、82は第1のフリツプフロツプ回路、83は
ゲート回路、84は第2のフリツプフロツプ回路
である。
In FIG. 3, 81 is a presettable raster counter, 82 is a first flip-flop circuit, 83 is a gate circuit, and 84 is a second flip-flop circuit.

プリセツタブルラスタカウンタ(以下、単にラ
スタカウンタとする)81は、セツト値が可変な
アツプカウンタである。このラスタカウンタ81
にはA〜Iの端子からラスタアドレスが制御回路
110によりセツトされる。このラスタアドレス
は、ラスタカウンタ81のLD端子に垂直同期信
号VSYNCが与えられることによつてロードされ
る。そして、ラスタカウンタ81はCK端子に水
平同期信号HSYNCが与えられるごとにカウント
アツプする。
A presettable raster counter (hereinafter simply referred to as raster counter) 81 is an up counter whose set value is variable. This raster counter 81
A raster address is set by the control circuit 110 from the terminals A to I. This raster address is loaded by applying the vertical synchronization signal VSYNC to the LD terminal of the raster counter 81. The raster counter 81 counts up each time the horizontal synchronizing signal HSYNC is applied to the CK terminal.

第1のフリツプフロツプ回路82は、Dタイプ
のフリツプフロツプであり、D端子にはWRITE
信号が与えられ、CK端子には垂直同期信号
VSYNCが与えられ、WR信号が出力される。
WR信号は書込み/読出し制御回路70とゲート
回路90に与えられる。
The first flip-flop circuit 82 is a D-type flip-flop, and the D terminal has a WRITE
signal is given, and the CK terminal receives a vertical synchronization signal.
VSYNC is applied and the WR signal is output.
The WR signal is applied to write/read control circuit 70 and gate circuit 90.

ゲート回路83はナンドゲートであり、ラスタ
カウンタ81の出力QA〜QIとWR信号の論理積を
反転したものを出力する。この出力信号がWE信
号である。
The gate circuit 83 is a NAND gate, and outputs the inverted logical product of the outputs Q A to Q I of the raster counter 81 and the WR signal. This output signal is the WE signal.

第2のフリツプフロツプ回路84はDタイプフ
リツプフロツプであり、D端子にはHIGHレベル
の電圧が印加され、CK端子にはWE信号が、PR
端子にはWRITE信号がそれぞれ与えられ、Q端
子からはWREND信号が出力される。この
WREND信号は制御回路110のI/Qポート
に与えられる。
The second flip-flop circuit 84 is a D-type flip-flop, and a HIGH level voltage is applied to the D terminal, a WE signal is applied to the CK terminal, and a PR signal is applied to the CK terminal.
A WRITE signal is given to each terminal, and a WREND signal is output from the Q terminal. this
The WREND signal is applied to the I/Q port of control circuit 110.

第1のフリツプフロツプ回路82、ゲート回路
83及び第2のフリツプフロツプ回路84により
書込みタイミング監視部を構成している。
The first flip-flop circuit 82, the gate circuit 83, and the second flip-flop circuit 84 constitute a write timing monitoring section.

次に、このようなビデオインタフエイス装置の
動作について説明する。
Next, the operation of such a video interface device will be explained.

最初に、疑似同期クロツク発生回路20の動作
について説明する。
First, the operation of the pseudo synchronous clock generation circuit 20 will be explained.

第4図及び第5図は疑似同期クロツク発生回路
20の動作説明用のタイムチヤートである。
4 and 5 are time charts for explaining the operation of the pseudo synchronous clock generating circuit 20. FIG.

これらのタイムチヤートで、第4図は水平同期
信号の立上り時にタイミングクロツクCLK1が
HIGH状態にある場合、第5図はLOW状態にあ
る場合を示したものである。
In these time charts, Figure 4 shows that timing clock CLK1 is activated at the rising edge of the horizontal synchronization signal.
In the case of being in the HIGH state, FIG. 5 shows the case of being in the LOW state.

サンプリングクロツクCLK1の周波数は、ビデ
オ信号を生成するためのビデオ信号送出装置側の
基本クロツクの周波数と同じ値とするが、実際に
はどんな発振器でも周波数に誤差があることか
ら、基本クロツクの周波数と完全に一致するもの
ではない。また、水平同期信号HSYNCの周波数
は、理想的にはサンプリングクロツクCLK1の周
波数の1/n(nは整数)の値であるが、実際に
は前記理由により水平同期信号HSYNCとサンプ
リングクロツクCLK1の位相は完全に一致するも
のではない。
The frequency of the sampling clock CLK1 is the same as the frequency of the basic clock on the video signal transmission device side that generates the video signal, but since any oscillator actually has an error in frequency, the frequency of the basic clock does not completely match. In addition, the frequency of the horizontal synchronizing signal HSYNC is ideally a value of 1/n (n is an integer) of the frequency of the sampling clock CLK1, but in reality, for the above-mentioned reason, the frequency of the horizontal synchronizing signal HSYNC and the sampling clock CLK1 are The phases of are not completely matched.

第4図に示す場合は、水平同期信号HSYNCの
立上り時刻t1を境にしてサンプリングクロツク
CLK1の位相が反転してサンプリングクロツク
CLK2となる。
In the case shown in Figure 4, the sampling clock starts at the rise time t1 of the horizontal synchronization signal HSYNC.
The phase of CLK1 is reversed and the sampling clock
It becomes CLK2.

一方、第5図に示す場合は、時刻t1を境にして
サンプリングクロツクCLK1とCLK2が同位相に
なる。
On the other hand, in the case shown in FIG. 5, sampling clocks CLK1 and CLK2 become in phase after time t1 .

時刻t1から、サンプリングクロツクCLK2が
LOW状態からHIGH状態に遷移するまでの時間
をDとすると、この時間Dについての最大値
DMAX及び最小値DMINは第4図と第5図に示す場
合では次のようになる。
From time t1 , sampling clock CLK2
If the time required to transition from the LOW state to the HIGH state is D, then the maximum value for this time D is
D MAX and minimum value D MIN are as follows in the cases shown in FIGS. 4 and 5.

第4図の場合は、次のとおりである。 In the case of Figure 4, the situation is as follows.

DMIN=tDH(MIN)+d (1) DMAX=tWH−tDS(MIN)+d (2) ここで、 tDH:フリツプフロツプ回路21の最小データ
ホールド時間 tDS:フリツプフロツプ回路21の最小データ
セツトアツプ時間 tWH:サンプリングクロツクCLK1がHIGH状態
にある時間 d:排他的論理和ゲート22のデータ伝搬遅延
時間 一方、第5図の場合は、次のとおりである。
D MIN = t DH (MIN) + d (1) D MAX = t WH - t DS (MIN) + d (2) Here, t DH : Minimum data hold time of flip-flop circuit 21 t DS : Minimum data of flip-flop circuit 21 Setup time tWH : Time during which sampling clock CLK1 is in HIGH state d: Data propagation delay time of exclusive OR gate 22 On the other hand, in the case of FIG. 5, the following is true.

DMIN=tDH(MIN)+d (3) DMAX=tWL−tDS(MIN)+d (4) ここで、 tWL:サンプリングクロツクCLK2がLOW状態
にある時間 今、理想状態として、tWH=tWL=tc1/2(tc1はサン
プリングクロツクCLK1の周期)、 tDS(MIN)=tDH(MIN)=0とすると、(1)式と(3)
式、(2)式と(4)式は同じ値となり、第4図と第5図
のいずれの場合も、 DMIN=d (5) DMAX=(tc1/2)+d (6) であるから、(5)式と(6)式より DMAX−DMIN=tc1/2 (7) となる。(7)式に示すように、本来ランダムであつ
た水平同期信号HSYNCに対するサンプリングク
ロツクCLK1の位相は、疑似同期クロツク発生回
路20により180゜以内の位相差にすることができ
る。
D MIN = t DH (MIN) + d (3) D MAX = t WL - t DS (MIN) + d (4) Here, t WL : Time that the sampling clock CLK2 is in the LOW state Now, as an ideal state, t If WH = t WL = t c1/2 (t c1 is the period of sampling clock CLK1), t DS (MIN) = t DH (MIN) = 0, then equations (1) and (3)
Equations (2) and (4) have the same value, and in both Figures 4 and 5, D MIN = d (5) D MAX = (t c1/2 ) + d (6) Therefore, D MAX − D MIN =t c1/2 (7) from equations (5) and (6). As shown in equation (7), the phase of the sampling clock CLK1 with respect to the originally random horizontal synchronization signal HSYNC can be made to have a phase difference within 180° by the pseudo synchronization clock generation circuit 20.

ここで実際にはtDH(MIN)、tDS(MIN)は0以
上の値となるが、フリツプフロツプ回路として高
速の素子例えばシヨツトキーTTL等を用いると
周期tc1に比して十分小さくすることができる。
また、tWHとtWLは、発振回路の調整によりtWH
tWLとすることは十分できる。
In reality, t DH (MIN) and t DS (MIN) are values greater than 0, but if a high-speed element such as a shot key TTL is used as a flip-flop circuit, it is possible to make them sufficiently smaller than the period t c1 . can.
In addition, t WH and t WL are adjusted by adjusting the oscillation circuit so that t WH
t WL is fully possible.

第6図は水平同期信号HSYNCとビデオ信号
VIDEOのタイムチヤートである。
Figure 6 shows horizontal synchronization signal HSYNC and video signal
This is a time chart of the VIDEO.

第6図(a)と(b)に示すように、ビデオ信号
VIDEOの表示期間のスタートは水平同期信号
HSYNCの立上りから一定時間L後となる。ここ
で、ビデオ信号送出装置側のクロツク周期をtc2
とすると、L=n tc2(nは整数)となつてい
る。これによつてサンプリングクロツクCLK2は
VIDEO INに対しても一定範囲内の位相差にあ
る。
As shown in Figure 6(a) and (b), the video signal
The start of the VIDEO display period is the horizontal synchronization signal
This occurs a certain period of time L after the rise of HSYNC. Here, the clock cycle on the video signal transmission device side is t c2
Then, L=n t c2 (n is an integer). This causes the sampling clock CLK2 to be
The phase difference with respect to VIDEO IN is also within a certain range.

次に、サンプリング回路30とエラー検出回路
90の動作について説明する。
Next, the operations of the sampling circuit 30 and the error detection circuit 90 will be explained.

第7図及び第8図は、サンプリング回路30と
エラー検出回路90の動作説明用のタイムチヤー
トである。
FIGS. 7 and 8 are time charts for explaining the operations of the sampling circuit 30 and the error detection circuit 90.

フリツプフロツプ回路30に入力される
VIDEO INとサンプリングクロツクCLKの立上
りエツジの位相が、第7図に示すようにEの範囲
内にないときは、VIDEO INは正しく伝達され、
第8図に示すようにEの範囲内にあるときには正
しく伝達されない。ここで、Eの範囲はフリツプ
フロツプ回路30のデータセツトアツプ時間tDS
とデータホールド時間tDHによつて占められる。
input to flip-flop circuit 30
When the phases of VIDEO IN and the rising edge of sampling clock CLK are not within the range E as shown in Figure 7, VIDEO IN is transmitted correctly;
As shown in FIG. 8, if it is within the range of E, it will not be transmitted correctly. Here, the range of E is the data setup time t DS of the flip-flop circuit 30
and the data hold time tDH .

信号伝達の正否は次のようにして検出する。 The correctness or failure of signal transmission is detected as follows.

VIDEO INのHIGH状態及びLOW状態にある
時間をtWH及びtWLとすると、遅延回路91の遅延
時間τはtWH−tDSよりも短い時間になる。
Assuming that the times during which VIDEO IN is in the HIGH state and the LOW state are t WH and t WL , the delay time τ of the delay circuit 91 is shorter than t WH - t DS .

ここでは、フリツプフロツプ回路30のデータ
伝搬遅延時間と、フリツプフロツプ回路92及び
93のデータセツトアツプ時間とデータホールド
時間は無視して考える。
Here, the data propagation delay time of flip-flop circuit 30 and the data set-up time and data hold time of flip-flop circuits 92 and 93 are ignored.

フリツプフロツプ回路92は、VIDEO OUT
をDELAYED VIDEOの立上りエツジで端子
へ伝達する。また、フリツプフロツプ回路93は
VIDEO OUTをDELAYED VIDEOの立下りエ
ツジで端子Qへ伝達する。すなわち、フリツプフ
ロツプ回路92はDELAYED VIDEOの立上り
が入力されたときにVIDEO OUTがHIGH状態
である場合はLOW信号を端子から出力し、フ
リツプフロツプ回路93はDELAYED VIDEO
の立下りが入力されたときにVIDEO OUTが
LOW状態である場合にはLOWレベル信号をQ端
子から出力する。
The flip-flop circuit 92 connects the VIDEO OUT
is transmitted to the terminal at the rising edge of DELAYED VIDEO. Moreover, the flip-flop circuit 93 is
Transmit VIDEO OUT to terminal Q at the falling edge of DELAYED VIDEO. That is, the flip-flop circuit 92 outputs a LOW signal from the terminal if VIDEO OUT is in the HIGH state when the rising edge of DELAYED VIDEO is input, and the flip-flop circuit 93 outputs a LOW signal from the terminal when the rising edge of DELAYED VIDEO is input.
VIDEO OUT is input when the falling edge of
When in the LOW state, a LOW level signal is output from the Q terminal.

第7図のタイムチヤートに示すように、
VIDEO INが正しく伝達された場合は、
DELAYED VIDEOの立上り時にVIDEO OUT
はHIGH状態になつていて、DELAYED VIDEO
の立下り時にVIDEO OUTはLOW状態になつて
いる。これによつて、信号e1とe2はLOW状態を
保ち、論理和ゲート94の出力がLOWレベルで
エラーは検出されない。
As shown in the time chart in Figure 7,
If VIDEO IN is transmitted correctly,
VIDEO OUT at the start of DELAYED VIDEO
is in HIGH state and DELAYED VIDEO
VIDEO OUT is in the LOW state when the signal falls. As a result, the signals e 1 and e 2 remain in the LOW state, and the output of the OR gate 94 is at the LOW level, so no error is detected.

一方、第8図のタイムチヤートに示すように、
VIDEO INが正しく伝達されない場合は、破線
で示す本来伝達されるべき信号が伝達されないた
め、DELAYED VIDEOの立上り時t2にVIDEO
OUTはLOW状態にあるため、信号e1はHIGH状
態にある。これによつて、論理和ゲート94の出
力信号はHIGH状態になる。
On the other hand, as shown in the time chart of Figure 8,
If VIDEO IN is not transmitted correctly, the signal shown by the broken line that should be transmitted is not transmitted, so VIDEO
Since OUT is in the LOW state, the signal e1 is in the HIGH state. As a result, the output signal of the OR gate 94 becomes HIGH.

このようなエラー検出は、DELAYED
VIDEOの変化点(立上りと立下り)ごとに行な
われる。
Such error detection can be done using DELAYED
This is done at each change point (rise and fall) of the VIDEO.

動作説明用のタイムチヤートでVIDEO INの
周期はtWH+tWLに等しい。通常のTTLレベルのビ
デオ信号ではtWH=tWLであるため、本発明でもそ
のような場合について説明している。
In the time chart for explaining operation, the period of VIDEO IN is equal to t WH + t WL . Since t WH =t WL in a normal TTL level video signal, such a case is also explained in the present invention.

次に、ラスタカウンタ回路80の動作について
説明する。
Next, the operation of the raster counter circuit 80 will be explained.

第9図はラスタカウンタ回路80の動作説明図
のフローチヤートである。
FIG. 9 is a flowchart illustrating the operation of the raster counter circuit 80.

データを利用する側例えばプリンタ等から制御
回路110のI/Oポートを通じて送られる信号
によりラスタカウンタ81にラスタアドレスがセ
ツトされる。このセツト値nは、ラスタカウンタ
81としてアツプカウンタを用いているため、指
定ラインの番号をl、ラスタカウンタ81のオー
バーフロー値をcとすると、 n=c−l となる。このラスタアドレスは、ラスタカウンタ
81にVSYNCが与えられることによつてラスタ
カウンタ81にロードされる。
A raster address is set in the raster counter 81 by a signal sent through the I/O port of the control circuit 110 from a side that uses data, such as a printer. Since this set value n uses an up counter as the raster counter 81, n=cl, where l is the designated line number and c is the overflow value of the raster counter 81. This raster address is loaded into the raster counter 81 by applying VSYNC to the raster counter 81.

ここで、書き込み命令が発生すると、WRITE
信号がHIGHレベルになる。
Here, when a write instruction occurs, WRITE
The signal becomes HIGH level.

この状態で、ラスタカウンタ81はVSYNCの
立上りエツジ(時刻t3)からHSYNCが送られる
ごとにカウントアツプしていく。1個のHSYNC
に従つて送られる信号は、画面上の1走査線分の
データに相当している。
In this state, the raster counter 81 counts up every time HSYNC is sent from the rising edge of VSYNC (time t 3 ). 1 HSYNC
The signal sent accordingly corresponds to data for one scanning line on the screen.

やがて、指定ラインのHSYNCがラスタカウン
タに到達すると、ラスタカウンタ81はオーバー
フローし(QA〜QIの全てがHIGHレベルにな
る)、ナンドゲード83が出力するWE信号は
LOWレベルになる。このときが時刻t5である。
このときに、書込み/読出し制御回路70からの
信号によりアドレスカウンタ60が画面の水平方
向のドツトアドレスをカウント出力し、これによ
つて指定ラインのデータはサンプリング回路30
を通じてメモリ50へ書き込まれる。
Eventually, when the HSYNC of the specified line reaches the raster counter, the raster counter 81 overflows (all Q A to Q I become HIGH level), and the WE signal output by the Nandogade 83 becomes
becomes LOW level. This time is time t5 .
At this time, the address counter 60 counts and outputs dot addresses in the horizontal direction of the screen in response to a signal from the write/read control circuit 70, and thereby the data of the designated line is transferred to the sampling circuit 30.
The data is written to the memory 50 through the process.

指定ラインの走査が終了すると、WE信号は再
びHIGHレベルになり、メモリ40への書込みは
不可能になる。このときが時刻t5である。これと
同時に、第2のフリツプフロツプ回路84が出力
するWREND信号はLOWレベルになる。
When the scanning of the designated line is completed, the WE signal becomes HIGH level again, and writing to the memory 40 becomes impossible. This time is time t5 . At the same time, the WREND signal output from the second flip-flop circuit 84 becomes LOW level.

データを利用する側は制御回路110のI/O
ポートを通じてLOWレベルのWREND信号を受
けることによつてメモリ40への書込みが終了し
たことを検知する。その後、データを利用する側
は、任意の時間にWRITE信号をLOWレベルに
し、読出しクロツクを送出し、読出しアドレスを
順次指定しながらメモリ40の内容を読み出す。
The side that uses data is the I/O of the control circuit 110
Completion of writing to the memory 40 is detected by receiving a LOW level WREND signal through the port. Thereafter, the side using the data sets the WRITE signal to LOW level at an arbitrary time, sends out a read clock, and reads the contents of the memory 40 while sequentially specifying read addresses.

なお、VIDEO INは、R,G,Bのカラービ
デオ信号であつてもよい。
Note that VIDEO IN may be an R, G, B color video signal.

次に、制御回路110の動作について説明す
る。
Next, the operation of the control circuit 110 will be explained.

第10図は制御回路110の動作手順を示した
フローチヤートである。この動作は、制御回路1
10内のフアームウエアに基づいて行なわれる。
FIG. 10 is a flowchart showing the operation procedure of the control circuit 110. This operation is performed by the control circuit 1
This is done based on the firmware in 10.

VIDEO INは、1ラスタ(ビデオ信号送出装
置の画面における1走査線)分のデータごとにサ
ンプリングされ、メモリ40に書き込まれる。
VIDEO IN is sampled for each raster (one scanning line on the screen of the video signal transmitting device) and written to the memory 40.

1走査線分のデータが書き込まれたところで、
エラー信号送出回路100からの信号をもとにし
て、サンプリングエラーのチエツクを行なう。サ
ンプリングエラーの有無についての判断がXであ
る。
Once one scanning line worth of data has been written,
A sampling error is checked based on the signal from the error signal sending circuit 100. The determination as to whether or not there is a sampling error is X.

サンプリングエラーがない場合すなわち判断X
がYESである場合は、次の走査線のデータの書
き込みを行なう。
If there is no sampling error, that is, judgment
If is YES, data for the next scanning line is written.

サンプリングエラーがある場合すなわち判断X
がNOである場合は、次以降のフレーム周期(次
以降の垂直同期信号VSYNCの周期)でエラーし
たデータを再びサンプリングする。判断Xが行な
われた時点ではエラーしたデータのラスタアドレ
スがまだラスタカウンタ81にセツトされている
ため、再びサンプリングすべきデータは判別でき
る。
If there is a sampling error, that is, judgment
If is NO, the error data is sampled again in the next and subsequent frame cycles (the next and subsequent cycles of the vertical synchronization signal VSYNC). Since the raster address of the erroneous data is still set in the raster counter 81 at the time when judgment

サンプリングの再試行時には、VIDEO INと
クロツク信号CLK2の位相関係は前回と同じでは
ない。このため、何回かサンプリングを試行する
うちに、サンプリングエラーのないデータがメモ
リ40に書き込まれる。このエラーのないデータ
がメモリ40から読み出されて、ビデオインタフ
エイス装置に接続されたプリンタでプリントアウ
トされる。
When sampling is retried, the phase relationship between VIDEO IN and clock signal CLK2 is not the same as the previous time. Therefore, after sampling is attempted several times, data without sampling errors is written to the memory 40. This error-free data is read from memory 40 and printed out on a printer connected to the video interface device.

〔効果〕〔effect〕

本発明にかかるビデオインタフエイス装置によ
れば、次のような効果が得られる。
According to the video interface device according to the present invention, the following effects can be obtained.

すなわちサンプリングのエラーが発生したとき
は、エラーありの信号が制御回路110へ送られ
る。このときに、制御回路110は、ラスタカウ
ンタにセツトされたラスタアドレスをもとにし
て、次以降のフレーム周期で、エラーしてサンプ
リングしたデータを再びサンプリングする。これ
によつて、サンプリングをより完全に行なうこと
ができ、ビデオ信号送出装置の画面の再現性が良
好になる。
That is, when a sampling error occurs, a signal indicating that there is an error is sent to the control circuit 110. At this time, the control circuit 110 samples the erroneously sampled data again in the next and subsequent frame cycles based on the raster address set in the raster counter. This allows more complete sampling and improves the reproducibility of the screen of the video signal sending device.

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

第1図は本発明にかかるビデオインタフエイス
装置の一実施例の構成ブロツク図、第2図及び第
3図は第1図装置の具体的構成を示した図、第4
図〜第10図は第1図装置の動作説明図である。 10…クロツク発振器、20…疑似同期クロツ
ク発生回路、30…サンプリング回路、40…メ
モリ、80…ラスタカウンタ回路、81…ラスタ
カウンタ、90…エラー検出回路、100…エラ
ー信号送出回路、110…制御回路。
FIG. 1 is a block diagram of the configuration of an embodiment of the video interface device according to the present invention, FIGS. 2 and 3 are diagrams showing the specific configuration of the device shown in FIG. 1, and FIG.
1 to 10 are explanatory views of the operation of the apparatus shown in FIG. 1. DESCRIPTION OF SYMBOLS 10... Clock oscillator, 20... Pseudo synchronous clock generation circuit, 30... Sampling circuit, 40... Memory, 80... Raster counter circuit, 81... Raster counter, 90... Error detection circuit, 100... Error signal sending circuit, 110... Control circuit .

Claims (1)

【特許請求の範囲】 1 ビデオ信号送出装置から送られるビデオ入力
信号を、サンプリングクロツクでタイミングをと
つてサンプリングし、ビデオ出力信号として出力
するビデオインタフエイス装置において、 サンプリングクロツクをビデオ入力信号に対し
て一定範囲内の位相差にする疑似同期クロツク発
生回路と、 サンプリングされたビデオ入力信号が格納され
るメモリと、 ビデオ入力信号とビデオ出力信号が入力され、
ビデオ入力信号の遅延信号の立上り時と立下り時
におけるビデオ出力信号の状態をもとにしてサン
プリングのエラーを1ラスタ分のデータごとにチ
エツクするエラー検出回路と、 各ラスタのデータについて、サンプリングのエ
ラーがチエツクされるまで、そのデータのラスタ
アドレスがセツトされているラスタカウンタと、 前記エラー検出回路でエラーが検出されたとき
に、前記ラスタカウンタにセツトされたラスタア
ドレスをもとにして、エラーしてサンプリングし
たデータを次以降のフレーム周期で再びサンプリ
ングする制御回路、 とを具備したことを特徴とするビデオインタフエ
イス装置。
[Claims] 1. In a video interface device that samples a video input signal sent from a video signal sending device using a sampling clock and outputs the sample as a video output signal, the sampling clock is used as the video input signal. A pseudo synchronous clock generation circuit which maintains a phase difference within a certain range, a memory in which a sampled video input signal is stored, and a video input signal and a video output signal are input,
An error detection circuit that checks sampling errors for each raster of data based on the state of the video output signal at the rise and fall of the delayed signal of the video input signal; Until an error is checked, an error is detected based on the raster counter in which the raster address of the data is set, and the raster address set in the raster counter when an error is detected by the error detection circuit. A video interface device comprising: a control circuit that samples the sampled data again in the next and subsequent frame cycles.
JP60081807A 1985-04-17 1985-04-17 Video interface unit Granted JPS61240284A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60081807A JPS61240284A (en) 1985-04-17 1985-04-17 Video interface unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60081807A JPS61240284A (en) 1985-04-17 1985-04-17 Video interface unit

Publications (2)

Publication Number Publication Date
JPS61240284A JPS61240284A (en) 1986-10-25
JPH0379715B2 true JPH0379715B2 (en) 1991-12-19

Family

ID=13756758

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60081807A Granted JPS61240284A (en) 1985-04-17 1985-04-17 Video interface unit

Country Status (1)

Country Link
JP (1) JPS61240284A (en)

Also Published As

Publication number Publication date
JPS61240284A (en) 1986-10-25

Similar Documents

Publication Publication Date Title
US6041417A (en) Method and apparatus for synchronizing data received in an accelerated graphics port of a graphics memory system
US4390969A (en) Asynchronous data transmission system with state variable memory and handshaking protocol circuits
CA2111264A1 (en) System and method for peripheral data transfer
KR940002144B1 (en) Data transmission method
JPH0329438A (en) Digital data transfer circuit
US6087867A (en) Transaction control circuit for synchronizing transactions across asynchronous clock domains
JP2641276B2 (en) Two-stage synchronizer
JP3278621B2 (en) Data transmission equipment
JPH0379715B2 (en)
KR0174853B1 (en) Asynchronous Serial Communication Transmit / Receive Device Between Two Processors Using Other Memory
US8284881B2 (en) Data interface and method of seeking synchronization
JP3121448B2 (en) Clock generation circuit
US6424684B1 (en) Method and apparatus for receiving synchronous data
JPH0379714B2 (en)
JP2698287B2 (en) Receiver circuit for asynchronous communication
US6408353B1 (en) Microcomputer having sampling function of retry requesting signal in syncronization with strobe signal
JP2994906B2 (en) Data receiving circuit
JP2783495B2 (en) Clock transfer circuit
JP2642108B2 (en) Synchronous circuit
JP3006426B2 (en) FM multiplex encoder
JPH091848A (en) Data transfer circuit to print head
JPH0560134B2 (en)
KR890003109Y1 (en) Parity Error Detection Circuit of Computer System
JPH01146442A (en) Video data transmission system
JP3088144B2 (en) FIFO reset circuit