TWI395465B - Method and system of automatically correcting a sampling clock in a digital video system - Google Patents

Method and system of automatically correcting a sampling clock in a digital video system Download PDF

Info

Publication number
TWI395465B
TWI395465B TW98121366A TW98121366A TWI395465B TW I395465 B TWI395465 B TW I395465B TW 98121366 A TW98121366 A TW 98121366A TW 98121366 A TW98121366 A TW 98121366A TW I395465 B TWI395465 B TW I395465B
Authority
TW
Taiwan
Prior art keywords
sampling clock
digital video
automatically correcting
video system
phase
Prior art date
Application number
TW98121366A
Other languages
Chinese (zh)
Other versions
TW201101804A (en
Inventor
Yin Ho Chiang
Shih Chou Yang
Original Assignee
Himax Media Solutions Inc
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 Himax Media Solutions Inc filed Critical Himax Media Solutions Inc
Priority to TW98121366A priority Critical patent/TWI395465B/en
Publication of TW201101804A publication Critical patent/TW201101804A/en
Application granted granted Critical
Publication of TWI395465B publication Critical patent/TWI395465B/en

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Picture Signal Circuits (AREA)

Description

於數位視訊系統中自動校正取樣時脈的方法及系統Method and system for automatically correcting sampling clock in digital video system

本發明係有關類比至數位轉換(ADC),特別是關於一種適用於數位視訊系統之數位至類比轉換,用以自動校正取樣時脈之相位或頻率。The present invention relates to analog to digital conversion (ADC), and more particularly to a digital to analog conversion suitable for digital video systems for automatically correcting the phase or frequency of the sampling clock.

當數位視訊系統(例如數位顯示器或數位板(graphics digitizer))接收及處理類比視訊信號時,必須先將類比視訊信號轉換為數位形式,便於信號得以在數位領域中進行處理。第一圖之方塊圖顯示類比視訊源10(例如電腦的圖形卡)及數位視訊系統12(例如液晶顯示器)。類比視訊源10經由電纜14A傳送類比視訊信號(例如類比RGB(紅綠藍)或YPbPr色差信號)至數位視訊系統12。接收之類比視訊信號藉由類比至數位轉換器(ADC)120被轉換為數位視訊信號。在傳送類比視訊信號的同時,電纜14B也傳送同步信號(例如水平同步信號Hsyn 及垂直同步信號Vsyn )。接收之同步信號藉由時脈產生器122的處理,因而產生取樣時脈(或像素時脈),用以觸發類比至數位轉換器(ADC)120進行轉換。When a digital video system (such as a digital display or a graphics digitizer) receives and processes an analog video signal, the analog video signal must first be converted to digital form to facilitate processing of the signal in the digital domain. The block diagram of the first figure shows an analog video source 10 (such as a computer graphics card) and a digital video system 12 (such as a liquid crystal display). The analog video source 10 transmits an analog video signal (e.g., analog RGB (Red Green Blue) or YPbPr color difference signal) to the digital video system 12 via cable 14A. The received analog video signal is converted to a digital video signal by an analog to digital converter (ADC) 120. While transmitting the analog video signal, cable 14B also transmits synchronization signals (e.g., horizontal sync signal H syn and vertical sync signal V syn ). The received sync signal is processed by clock generator 122, thereby generating a sample clock (or pixel clock) for triggering analog to digital converter (ADC) 120 for conversion.

由於電纜14A和電纜14B之間阻抗及長度的差異性,類比視訊信號及同步向號可能會於稍微不同的時間到達數位視訊系統12。換句話說,控制類比至數位轉換器(ADC)120的取樣時脈之相位或甚至頻率可能無法和類比視訊源10中用以產生類比視訊信號的像素時脈之相位/頻率互相同步。因而造成數位視訊系統12之輸出(例如顯示影像)品質的降低。Due to the difference in impedance and length between cable 14A and cable 14B, analog video signals and sync marks may arrive at digital video system 12 at slightly different times. In other words, the phase or even the frequency of the sampling clock of the analog analog to digital converter (ADC) 120 may not be synchronized with the phase/frequency of the pixel clock of the analog video source 10 used to generate the analog video signal. This results in a degradation in the quality of the output (e.g., display image) of the digital video system 12.

為了改進傳統數位視訊系統的缺點,因而有人提出一些改良機制。例如,美國專利第5,767,916號(題為”Method and Apparatus for Automatic Pixel Clock Phase and Frequency Correction in Analog to Digital Video Signal Conversion”)提出一種技術,其藉由比較視訊影像的實際寬度與一預期影像寬度,用以調整像素時脈頻率。然而,當視訊影像具有相當的空白區域時,此技術無法準確及有效產生像素時脈頻率。In order to improve the shortcomings of traditional digital video systems, some improvements have been proposed. For example, U.S. Patent No. 5,767,916 ("Method and Apparatus for Automatic Pixel Clock Phase and Frequency Correction in Analog to Digital Video Signal Conversion") proposes a technique for comparing the actual width of a video image with an expected image width, Used to adjust the pixel clock frequency. However, when the video image has a relatively large blank area, this technique cannot accurately and efficiently generate the pixel clock frequency.

美國專利第6,268,848號(題為”Method and Apparatus Implemented in an Automatic Sampling Phase Control System for Digital Monitors”)提出一種技術,其藉由收集水平線之數位取樣值並尋找其峰值和谷值,用以控制取樣相位。U.S. Patent No. 6,268,848 ("Method and Apparatus Implemented in an Automatic Sampling Phase Control System for Digital Monitors") proposes a technique for controlling sampling by collecting digital samples of horizontal lines and finding their peaks and valleys. Phase.

美國專利申請案第2006/0274207號(題為”Method and Apparatus for Analog Graphics Sample Clock Frequency Verification”)提出一種技術,其藉由量測連續影像圖框(frame)之差值,用以自動選擇取樣頻率。然而,此技術必須儲存整個圖框的影像資料才能據以量測其差值。US Patent Application No. 2006/0274207 (titled "Method and Apparatus for Analog Graphics Sample Clock Frequency Verification") proposes a technique for automatically selecting a sample by measuring the difference between successive image frames. frequency. However, this technique must store the image data of the entire frame in order to measure the difference.

上述傳統技術無法有效或簡便地解決取樣時脈之相位/頻率問題,因此亟需提出一種新穎機制,以有效方式且使用最少的資源或時間,用以校正取樣時脈的相位/頻率。The above conventional techniques cannot effectively or simply solve the phase/frequency problem of the sampling clock, so there is a need to propose a novel mechanism for correcting the phase/frequency of the sampling clock in an efficient manner and with minimal resources or time.

鑑於上述,本發明實施例的目的之一在於提出一種方法及系統,有效且簡便地校正取樣時脈的相位或/且頻率,用以執行類比至數位轉換(ADC)。In view of the foregoing, it is an object of embodiments of the present invention to provide a method and system for efficiently and simply correcting the phase or/and frequency of a sampling clock for performing analog to digital conversion (ADC).

根據本發明實施例之一,產生具一期望頻率及具不同相位之複數取樣時脈,並依序傳送至類比至數位轉換器(ADC)。針對每一相位,決定類比至數位轉換器(ADC)所輸出相鄰資料之絕對差之和(SAD)。決定一最大差值,並產生對應於最大差值之相位的取樣時脈。According to one of the embodiments of the present invention, a complex sampling clock having a desired frequency and different phases is generated and sequentially transmitted to an analog to digital converter (ADC). For each phase, the sum of the absolute differences (SAD) of the adjacent data output from the analog to digital converter (ADC) is determined. A maximum difference is determined and a sampling clock corresponding to the phase of the maximum difference is generated.

根據本發明另一實施例,產生具複數候選頻率及具不同相位之複數取樣時脈,並依序傳送至類比至數位轉換器(ADC)。針對每一相位及每一候選頻率,決定類比至數位轉換器(ADC)所輸出相鄰資料之絕對差之和(SAD)。決定一最大差值,並產生對應於最大差值之相位及頻率的取樣時脈。According to another embodiment of the present invention, a complex sampling clock having a plurality of candidate frequencies and having different phases is generated and sequentially transmitted to an analog to digital converter (ADC). For each phase and each candidate frequency, the sum of the absolute differences (SAD) of the adjacent data output from the analog to digital converter (ADC) is determined. A maximum difference is determined and a sampling clock corresponding to the phase and frequency of the largest difference is generated.

第二圖顯示本發明實施例的系統2方塊圖,其適用於數位視訊系統以自動校正取樣時脈(或像素時脈)。第三圖顯示本發明第一實施例的方法流程圖,其適用於數位視訊系統以自動校正取樣時脈。雖然本實施例以數位顯示器(例如液晶顯示器)作為例子,然而本發明也可適用於其他數位視訊系統,例如數位板(graphics digitizer)。The second figure shows a block diagram of a system 2 of an embodiment of the invention that is suitable for use with a digital video system to automatically correct the sampling clock (or pixel clock). The third figure shows a flow chart of a method according to a first embodiment of the invention, which is suitable for use in a digital video system to automatically correct the sampling clock. Although the present embodiment is exemplified by a digital display (for example, a liquid crystal display), the present invention is also applicable to other digital video systems, such as a graphics digitizer.

參閱第二圖,類比至數位轉換器(ADC)20自類比視訊源(例如第一圖的10,如電腦圖形卡)接收類比視訊信號。接著,類比至數位轉換器(ADC)20將類比視訊信號(例如類比RGB(紅綠藍)或YPbPr色差信號)轉換為數位視訊信號。Referring to the second figure, an analog to digital converter (ADC) 20 receives an analog video signal from an analog video source (e.g., 10 of the first figure, such as a computer graphics card). Next, an analog to digital converter (ADC) 20 converts analog video signals (eg, analog RGB (red green blue) or YPbPr color difference signals) into digital video signals.

另一方面,時脈產生器22也自類比視訊源接收同步信號,例如水平同步信號Hsyn 及垂直同步信號Vsyn 。時脈產生器22根據所接收的同步信號及系統2的系統時脈,據以產生取樣時脈(或像素時脈),用以觸發類比至數位轉換器(ADC)20進行轉換。第四A圖顯示本發明實施例之時脈產生器22的詳細方塊圖。首先,以間隔量測單元220量測掃描線間隔(scan line interval),其以每一線之系統時脈數來計數(步驟31,第三圖)。第四B圖例示一掃描線間隔Htotal ,其始於水平同步信號Hsyn 的升緣而終於下一個水平同步信號Hsyn 的升緣。接著,於步驟32,量測得到之掃描線間隔藉由查表(LUT)222而映射至對應的預期取樣時脈,其具頻率f0。在本實施例中,查表(LUT)222的內容包含多筆資料,每一筆資料包含掃描線間隔及其對應之具個別頻率的取樣時脈。這些資料可以由實驗獲得。在另一實施例中,取樣時脈則是同時根據水平同步信號Hsyn 及垂直同步信號Vsyn 映射而得。值得注意的是,間隔量測單元220和查表(LUT)222不一定要實施於時脈產生器22內。On the other hand, the clock generator 22 also receives synchronization signals from the analog video source, such as the horizontal sync signal H syn and the vertical sync signal V syn . The clock generator 22 generates a sampling clock (or pixel clock) for triggering an analog to digital converter (ADC) 20 to convert based on the received synchronization signal and the system clock of the system 2. The fourth A diagram shows a detailed block diagram of the clock generator 22 of the embodiment of the present invention. First, the scan line interval is measured by the interval measuring unit 220, which is counted by the number of system clocks per line (step 31, third figure). The fourth B diagram illustrates a scan line interval H total which starts from the rising edge of the horizontal synchronizing signal H syn and finally the rising edge of the next horizontal synchronizing signal H syn . Next, in step 32, the measured scan line interval is mapped to the corresponding expected sampling clock by the look-up table (LUT) 222, which has a frequency f0. In the present embodiment, the contents of the lookup table (LUT) 222 include a plurality of pieces of data, each of which includes a scan line interval and a corresponding sampling clock having an individual frequency. These materials can be obtained experimentally. In another embodiment, the sampling clock is simultaneously mapped according to the horizontal synchronizing signal H syn and the vertical synchronizing signal V syn . It should be noted that the interval measurement unit 220 and the look up table (LUT) 222 are not necessarily implemented in the clock generator 22.

於下一步驟33,時脈產生器22產生多個具頻率f0但不同相位的取樣時脈,並依序傳送至類比至數位轉換器(ADC)20。時脈產生器22根據相位控制器24所提供的相位資訊,以產生不同相位(例如p1、p2...pm)的取樣時脈。該相位控制器24再由控制器26的相位控制信號PCS所控制。第五圖例示類比視訊信號及具不同相位p1-pm之取樣時脈的時序圖,其中,An代表輸入至類比至數位轉換器(ADC)20的類比視訊信號位準,而Dn代表從類比至數位轉換器(ADC)20輸出之取樣資料(或數位視訊信號)。此圖式顯示出,類此視訊信號無法由相位p1正確地取樣。In the next step 33, the clock generator 22 generates a plurality of sampling clocks having frequencies f0 but different phases, and sequentially transmits them to an analog to digital converter (ADC) 20. The clock generator 22 generates phase clocks of different phases (e.g., p1, p2, ... pm) based on the phase information provided by the phase controller 24. The phase controller 24 is in turn controlled by the phase control signal PCS of the controller 26. The fifth diagram illustrates a timing diagram of an analog video signal and a sampling clock having different phases p1-pm, where An represents an analog video signal level input to an analog to digital converter (ADC) 20, and Dn represents an analogy to The sampled data (or digital video signal) output by the digital converter (ADC) 20. This pattern shows that this video signal cannot be correctly sampled by phase p1.

接著,針對每一相位,由差值單元28決定類比至數位轉換器(ADC)20所輸出的至少一組相鄰資料之差值(步驟34)。在一實施例中,針對每一相位pn(n=1至m),計算(部分或完整)掃描線(或圖場或圖框)的相鄰資料之絕對差之和(sum of absolute differences,SAD)Sn(n=1至m),如第六A圖所示。SAD值S可以由下式表示:Next, for each phase, the difference unit 28 determines the difference between at least one set of adjacent data output by the analog to digital converter (ADC) 20 (step 34). In one embodiment, for each phase pn (n = 1 to m), the sum of absolute differences of the adjacent data of the (partial or complete) scan line (or field or frame) is calculated (sum of absolute differences, SAD) Sn (n = 1 to m) as shown in Figure 6A. The SAD value S can be expressed by:

其中,Di 代表掃描線(或圖場或圖框)的第i個資料。Where D i represents the i-th data of the scan line (or field or frame).

第六B圖顯示差值單元28(或SAD單元)的詳細方塊圖,用以計算相鄰R、G、B(紅、綠、藍)資料的SAD值。其中,目前資料(例如R(紅))及儲存在暫存器280的前一資料傳送至絕對差值單元282,用以計算其絕對差值。絕對差值經由累積器284針對整條掃描線予以累積後,因而得到絕對差之和(SAD)。不同視訊組成(例如本例中的R、G、B)經由加法器286予以加總,因而產生相位pn所對應的最終SAD值。雖然本實施例以視訊資料R、G、B作為例示,然而本發明也可適用於其他色彩空間(例如YUV)。Figure 6B shows a detailed block diagram of the difference unit 28 (or SAD unit) for calculating the SAD values of adjacent R, G, B (red, green, blue) data. The current data (eg, R (red)) and the previous data stored in the register 280 are transferred to the absolute difference unit 282 for calculating the absolute difference. The absolute difference is accumulated for the entire scan line via the accumulator 284, thus obtaining the sum of absolute differences (SAD). Different video components (e.g., R, G, B in this example) are summed via adder 286, thus producing a final SAD value corresponding to phase pn. Although the present embodiment is exemplified by video data R, G, B, the present invention is also applicable to other color spaces (for example, YUV).

計算得到的SAD值Sn依序傳送至控制器26。當所有相位(p1-pm)的資料都處理完畢後(步驟35),控制器26即決定最大SAD值(步驟36)。控制器26接著發出相位控制信號PCS用以控制相位控制器24,其根據相位控制信號PCS以控制相位偏移量。相位控制器24再送出相位資訊給時脈產生器22,使得時脈產生器22所產生之取樣時脈的相位對應至最大SAD值(步驟37)。鑑於相位的正確性會正比於SAD值,因此步驟37所獲取之取樣時脈即可以正確地對類比視訊信號進行取樣。再者,由於SAD係一種極為快速且簡便的度量,因此取樣時脈可以有效且簡便地得到校正。The calculated SAD value Sn is sequentially transmitted to the controller 26. When all of the phase (p1-pm) data has been processed (step 35), the controller 26 determines the maximum SAD value (step 36). The controller 26 then issues a phase control signal PCS for controlling the phase controller 24, which controls the phase offset based on the phase control signal PCS. The phase controller 24 then sends the phase information to the clock generator 22 such that the phase of the sampling clock generated by the clock generator 22 corresponds to the maximum SAD value (step 37). Since the correctness of the phase is proportional to the SAD value, the sampling clock obtained in step 37 can correctly sample the analog video signal. Furthermore, since the SAD is an extremely fast and simple metric, the sampling clock can be corrected efficiently and easily.

雖然本實施例以SAD作為例子,然而也可以使用其他的差值度量,例如平方差之和(sum of squared differences,SSD)。再者,並不需要計算所有相位的SAD值。例如,在另一實施例中,可針對某一相位(例如中間相位p3)以計算其SAD值。如果計算所得的SAD值大於一預設參考值,則將取樣時脈的相位校正對應至目前SAD值;否則,針對另一相位繼續計算其SAD值。此程序可依照二元搜尋(binary search)方式來進行,直到所得到之SAD值大於預設參考值為止。Although the present embodiment takes SAD as an example, other difference metrics such as sum of squared differences (SSD) may be used. Furthermore, it is not necessary to calculate the SAD values of all phases. For example, in another embodiment, the SAD value can be calculated for a certain phase (eg, intermediate phase p3). If the calculated SAD value is greater than a predetermined reference value, the phase correction of the sampling clock is mapped to the current SAD value; otherwise, the SAD value is continuously calculated for the other phase. This procedure can be performed in a binary search manner until the obtained SAD value is greater than the preset reference value.

第七圖顯示本發明第二實施例的方法流程圖,其適用於數位視訊系統以自動校正取樣時脈。本實施例(第七圖)類似於前一實施例(第三圖),兩者不同之處將說明如下。在本(第二)實施例中,於量測掃描線間隔(步驟31)之後,映射產生多個候選頻率fr(r=0至s-1)(例如,六個候選頻率f0至f5)(步驟32B)。Figure 7 is a flow chart showing the method of the second embodiment of the present invention, which is suitable for use in a digital video system to automatically correct the sampling clock. This embodiment (seventh figure) is similar to the previous embodiment (third figure), and the differences between them will be explained as follows. In the present (second) embodiment, after measuring the scan line interval (step 31), the mapping generates a plurality of candidate frequencies fr (r=0 to s-1) (for example, six candidate frequencies f0 to f5) ( Step 32B).

時脈產生器22首先產生多個具頻率f0但不同相位的取樣時脈,並依序傳送至類比至數位轉換器(ADC)20。接著,時脈產生器22依序產生多個具頻率f1但不同相位的取樣時脈。繼續此程序,直到所有候選頻率皆依序產生為止(步驟38),如第八圖所示。The clock generator 22 first generates a plurality of sampling clocks having frequencies f0 but different phases, and sequentially transmits them to an analog to digital converter (ADC) 20. Next, the clock generator 22 sequentially generates a plurality of sampling clocks having frequencies f1 but different phases. This procedure continues until all candidate frequencies are generated sequentially (step 38), as shown in the eighth figure.

於決定出最大SAD值(步驟36)之後,控制器26接著發出相位控制信號PCS用以控制相位控制器24,其再送出相位資訊給時脈產生器22。控制器26也發出頻率控制信號FCS用以控制時脈產生器22。藉此,使得時脈產生器22所產生之取樣時脈的相位及頻率對應至最大SAD值(步驟37B)。因此,步驟37B所獲取之取樣時脈即可以正確地對類比視訊信號進行取樣。After determining the maximum SAD value (step 36), controller 26 then issues a phase control signal PCS for controlling phase controller 24, which in turn sends phase information to clock generator 22. The controller 26 also issues a frequency control signal FCS for controlling the clock generator 22. Thereby, the phase and frequency of the sampling clock generated by the clock generator 22 are made to correspond to the maximum SAD value (step 37B). Therefore, the sampling clock acquired in step 37B can correctly sample the analog video signal.

以上所述僅為本發明之較佳實施例而已,並非用以限定本發明之申請專利範圍;凡其它未脫離發明所揭示之精神下所完成之等效改變或修飾,均應包含在下述之申請專利範圍內。The above description is only the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention; all other equivalent changes or modifications which are not departing from the spirit of the invention should be included in the following Within the scope of the patent application.

10...類比視訊源10. . . Analog video source

12...數位視訊系統12. . . Digital video system

120...類比至數位轉換器(ADC)120. . . Analog to digital converter (ADC)

122...時脈產生器122. . . Clock generator

14A、14B...電纜14A, 14B. . . cable

2...自動校正取樣時脈之系統2. . . System for automatically correcting the sampling clock

20...類比至數位轉換器(ADC)20. . . Analog to digital converter (ADC)

22...時脈產生器twenty two. . . Clock generator

220...間隔量測單元220. . . Interval measurement unit

222...查表(LUT)222. . . Lookup table (LUT)

24...相位控制器twenty four. . . Phase controller

26...控制器26. . . Controller

28...差值單元(SAD單元)28. . . Difference unit (SAD unit)

280...暫存器280. . . Register

282...絕對差值單元282. . . Absolute difference unit

284...累積器284. . . Accumulator

286...加法器286. . . Adder

31-37B...步驟31-37B. . . step

第一圖之方塊圖顯示類比視訊源及數位視訊系統。The block diagram of the first figure shows an analog video source and a digital video system.

第二圖顯示本發明實施例的系統方塊圖,其適用於數位視訊系統以自動校正取樣時脈。The second figure shows a system block diagram of an embodiment of the invention that is suitable for use with a digital video system to automatically correct the sampling clock.

第三圖顯示本發明第一實施例的方法流程圖,其適用於數位視訊系統以自動校正取樣時脈。The third figure shows a flow chart of a method according to a first embodiment of the invention, which is suitable for use in a digital video system to automatically correct the sampling clock.

第四A圖顯示本發明實施例之時脈產生器的詳細方塊圖。Figure 4A shows a detailed block diagram of the clock generator of an embodiment of the present invention.

第四B圖例示一掃描線間隔。The fourth B diagram illustrates a scan line interval.

第五圖例示類比視訊信號及具不同相位之取樣時脈的時序圖。The fifth diagram illustrates the timing diagram of the analog video signal and the sampling clock with different phases.

第六A圖顯示針對每一相位以計算其SAD值。Figure 6A shows the calculation of its SAD value for each phase.

第六B圖顯示SAD單元的詳細方塊圖。Figure 6B shows a detailed block diagram of the SAD unit.

第七圖顯示本發明第二實施例的方法流程圖,其適用於數位視訊系統以自動校正取樣時脈。Figure 7 is a flow chart showing the method of the second embodiment of the present invention, which is suitable for use in a digital video system to automatically correct the sampling clock.

第八圖顯示針對每一相位及頻率以計算其SAD值。The eighth graph shows the SAD value calculated for each phase and frequency.

2...自動校正取樣時脈之系統2. . . System for automatically correcting the sampling clock

20...類比至數位轉換器(ADC)20. . . Analog to digital converter (ADC)

22...時脈產生器twenty two. . . Clock generator

220...間隔量測單元220. . . Interval measurement unit

222...查表(LUT)222. . . Lookup table (LUT)

24...相位控制器twenty four. . . Phase controller

26...控制器26. . . Controller

28...差值單元(SAD單元)28. . . Difference unit (SAD unit)

Claims (20)

一種於數位視訊系統中自動校正取樣時脈的方法,包含:產生該取樣時脈,用以觸發類比至數位轉換(ADC);產生具不同相位之複數取樣時脈;針對每一該相位,決定該類比至數位轉換(ADC)所輸出的至少一組相鄰資料之差值;決定一最大差值;及產生對應於該最大差值之相位的該取樣時脈;其中上述產生取樣時脈之步驟包含:根據一同步信號及一系統時脈,以量測掃描線間隔;及根據該量測所得之掃描線間隔,獲取該取樣時脈的至少一頻率。 A method for automatically correcting a sampling clock in a digital video system, comprising: generating the sampling clock to trigger an analog to digital conversion (ADC); generating a complex sampling clock having different phases; for each phase, determining Comparing the analog to the difference between at least one set of adjacent data output by the digital conversion (ADC); determining a maximum difference; and generating the sampling clock corresponding to the phase of the maximum difference; wherein the generating the sampling clock The step includes: measuring a scan line interval according to a synchronization signal and a system clock; and acquiring at least one frequency of the sampling clock according to the measured scan line interval. 如申請專利範圍第1項所述於數位視訊系統中自動校正取樣時脈的方法,其中上述之數位視訊系統為數位顯示器。 The method for automatically correcting a sampling clock in a digital video system as described in claim 1, wherein the digital video system is a digital display. 如申請專利範圍第1項所述於數位視訊系統中自動校正取樣時脈的方法,其中上述之同步信號為一水平同步信號。 A method for automatically correcting a sampling clock in a digital video system as described in claim 1, wherein the synchronization signal is a horizontal synchronization signal. 如申請專利範圍第1項所述於數位視訊系統中自動校正取樣時脈的方法,獲取該取樣時脈之一預期頻率。 The method for automatically correcting the sampling clock in the digital video system as described in claim 1 of the patent application, obtains an expected frequency of the sampling clock. 如申請專利範圍第4項所述於數位視訊系統中自動校正取樣時脈的方法,針對每一該相位,計算至少部分掃描線的該相鄰資料之絕對差之和(SAD)。 A method for automatically correcting a sampling clock in a digital video system as described in claim 4, for each phase, calculating a sum of absolute differences (SAD) of the adjacent data of at least a portion of the scanning lines. 如申請專利範圍第1項所述於數位視訊系統中自動校正取樣時脈的方法,獲取該取樣時脈之複數候選頻率。 The method for automatically correcting the sampling clock in the digital video system as described in claim 1 of the patent application section acquires the complex candidate frequency of the sampling clock. 如申請專利範圍第6項所述於數位視訊系統中自動校正取樣時脈的方法,更針對每一該候選頻率,決定該差值。 The method of automatically correcting the sampling clock in the digital video system as described in claim 6 of the patent application, and determining the difference for each of the candidate frequencies. 如申請專利範圍第7項所述於數位視訊系統中自動校正取樣時脈的方法,更產生對應於該最大差值之頻率的該取樣時脈。 The method of automatically correcting the sampling clock in the digital video system as described in claim 7 of the patent application further generates the sampling clock corresponding to the frequency of the maximum difference. 如申請專利範圍第6項所述於數位視訊系統中自動校正取樣時脈的方法,針對每一該相位及該候選頻率,計算至少部分掃描線的該相鄰資料之絕對差之和(SAD)。 For automatically correcting the sampling clock in the digital video system as described in claim 6, the sum of the absolute differences of the adjacent data of at least part of the scanning lines (SAD) is calculated for each of the phases and the candidate frequencies. . 一種於數位視訊系統中自動校正取樣時脈的系統,包含: 一類比至數位轉換器(ADC),用以轉換一類比視訊信號至一數位視訊信號;一時脈產生器,其根據一同步信號及一系統信號,用以產生該取樣時脈,其產生具不同相位之複數取樣時脈,並傳送至該類比至數位轉換器(ADC);一差值單元,針對每一該相位,決定該類比至數位轉換器(ADC)所輸出的至少一組相鄰資料之差值;及一控制器,用以決定一最大差值,並控制該時脈產生器以產生對應於該最大差值之相位的該取樣時脈其中上述之時脈產生器包含:一間隔量測單元,其根據該同步信號及該系統時脈,以量測掃描線間隔;及一查表,用以映射該量測所得之掃描線間隔,以獲取該取樣時脈的至少一頻率。 A system for automatically correcting a sampling clock in a digital video system, comprising: A type of analog to digital converter (ADC) for converting a analog video signal to a digital video signal; a clock generator for generating the sampling clock according to a synchronization signal and a system signal, the generation of which is different The complex phase samples the clock and transmits to the analog to digital converter (ADC); a difference unit, for each phase, determines at least one set of adjacent data output by the analog to digital converter (ADC) And a controller for determining a maximum difference and controlling the clock generator to generate the sampling clock corresponding to the phase of the maximum difference, wherein the clock generator comprises: an interval The measuring unit is configured to measure the scan line interval according to the synchronization signal and the system clock; and a look-up table for mapping the measured scan line interval to obtain at least one frequency of the sampling clock. 如申請專利範圍第10項所述於數位視訊系統中自動校正取樣時脈的系統,其中上述之數位視訊系統為數位顯示器。 A system for automatically correcting a sampling clock in a digital video system as described in claim 10, wherein the digital video system is a digital display. 如申請專利範圍第10項所述於數位視訊系統中自動校正取樣時脈的系統,其中上述之同步信號為一水平同步信號。 A system for automatically correcting a sampling clock in a digital video system as described in claim 10, wherein the synchronization signal is a horizontal synchronization signal. 如申請專利範圍第10項所述於數位視訊系統中自動校正取樣時脈的系統,獲取該取樣時脈之一預期頻率。 The system for automatically correcting the sampling clock in the digital video system as described in claim 10 of the patent application acquires an expected frequency of the sampling clock. 如申請專利範圍第13項所述於數位視訊系統中自動校正取樣時脈的系統,其中上述之差值單元為一絕對差之和(SAD)單元,其針對每一該相位,計算至少部分掃描線的該相鄰資料之絕對差之和(SAD)。 A system for automatically correcting a sampling clock in a digital video system as described in claim 13 wherein said difference unit is a sum of absolute difference (SAD) units for calculating at least partial scanning for each of said phases. The sum of the absolute differences (SAD) of the adjacent data of the line. 如申請專利範圍第10項所述於數位視訊系統中自動校正取樣時脈的系統,獲取該取樣時脈之複數候選頻率。 The system for automatically correcting the sampling clock in the digital video system as described in claim 10 of the patent application acquires the complex candidate frequency of the sampling clock. 如申請專利範圍第15項所述於數位視訊系統中自動校正取樣時脈的系統,更針對每一該候選頻率,決定該差值。 The system for automatically correcting the sampling clock in the digital video system as described in claim 15 of the patent application determines the difference for each of the candidate frequencies. 如申請專利範圍第16項所述於數位視訊系統中自動校正取樣時脈的系統,其中上述之控制器更發出一頻率控制信號,用以控制該時脈產生器。 A system for automatically correcting a sampling clock in a digital video system as described in claim 16 wherein the controller further issues a frequency control signal for controlling the clock generator. 如申請專利範圍第17項所述於數位視訊系統中自動校正取樣時脈的系統,更產生對應於該最大差值之頻率的該取樣時脈。 The system for automatically correcting the sampling clock in the digital video system as described in claim 17 of the patent application further generates the sampling clock corresponding to the frequency of the maximum difference. 如申請專利範圍第15項所述於數位視訊系統中自動校正取樣時脈的系統,其中上述之差值單元為一絕對差之和(SAD)單元,其針對每一該相位及該候選頻率,計算至少部分掃描線的該相鄰資料之絕對差之和(SAD)。 A system for automatically correcting a sampling clock in a digital video system as described in claim 15 wherein said difference unit is a sum of absolute difference (SAD) units for each of said phase and said candidate frequency. Calculating a sum of absolute differences (SAD) of the neighboring data of at least a portion of the scan lines. 如申請專利範圍第10項所述於數位視訊系統中自動校正取樣時脈的系統,更包含一相位控制器,其根據該控制器所發出之相位控制信號以提供相位資訊給該時脈產生器,用以控制相位偏移量。A system for automatically correcting a sampling clock in a digital video system as described in claim 10, further comprising a phase controller for providing phase information to the clock generator according to a phase control signal sent by the controller To control the phase offset.
TW98121366A 2009-06-25 2009-06-25 Method and system of automatically correcting a sampling clock in a digital video system TWI395465B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW98121366A TWI395465B (en) 2009-06-25 2009-06-25 Method and system of automatically correcting a sampling clock in a digital video system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW98121366A TWI395465B (en) 2009-06-25 2009-06-25 Method and system of automatically correcting a sampling clock in a digital video system

Publications (2)

Publication Number Publication Date
TW201101804A TW201101804A (en) 2011-01-01
TWI395465B true TWI395465B (en) 2013-05-01

Family

ID=44837132

Family Applications (1)

Application Number Title Priority Date Filing Date
TW98121366A TWI395465B (en) 2009-06-25 2009-06-25 Method and system of automatically correcting a sampling clock in a digital video system

Country Status (1)

Country Link
TW (1) TWI395465B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8832338B2 (en) * 2013-01-08 2014-09-09 Silicon Image, Inc. Mechanism for facilitating dynamic timestamp-less clock generation for transmitting media streams over shared channels

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001029637A (en) * 1999-07-23 2001-02-06 Heiwa Corp Reporting device for game machine and reporting system for game machine
TW502240B (en) * 2000-06-15 2002-09-11 Nec Mitsubishi Electric Visual Image display apparatus
JP2004004376A (en) * 2002-05-31 2004-01-08 Matsushita Electric Ind Co Ltd Dot clock reproducing device
JP2007017864A (en) * 2005-07-11 2007-01-25 Mitsubishi Electric Corp Control method of image display device and image display device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001029637A (en) * 1999-07-23 2001-02-06 Heiwa Corp Reporting device for game machine and reporting system for game machine
TW502240B (en) * 2000-06-15 2002-09-11 Nec Mitsubishi Electric Visual Image display apparatus
JP2004004376A (en) * 2002-05-31 2004-01-08 Matsushita Electric Ind Co Ltd Dot clock reproducing device
JP2007017864A (en) * 2005-07-11 2007-01-25 Mitsubishi Electric Corp Control method of image display device and image display device

Also Published As

Publication number Publication date
TW201101804A (en) 2011-01-01

Similar Documents

Publication Publication Date Title
TWI397055B (en) Mode detection circuit and method
US7502076B2 (en) Method and apparatus for a digital display
JP2007028573A (en) Image processing apparatus and image-pickup device
US8502919B2 (en) Video display device and video display method
US8310431B2 (en) Image display apparatus and frequency adjustment method thereof
US20190037188A1 (en) Unevenness correction system, unevenness correction apparatus and panel drive circuit
JP2009182779A (en) Signal processing method and circuit
JP2001166766A (en) Dot clock adjusting method for image display device and dot clock adjusting device
JP2017076969A (en) Flicker detection apparatus and method
US8107008B2 (en) Method and system of automatically correcting a sampling clock in a digital video system
JP2014198147A (en) Image processing device, image processing device control method, and program
TWI395465B (en) Method and system of automatically correcting a sampling clock in a digital video system
JP6361375B2 (en) Image processing apparatus, image processing method, and image display apparatus
JP2003202828A (en) Display device
US20050275436A1 (en) Methods and devices for obtaining sampling clocks
WO2012111120A1 (en) Image display device and clock frequency adjustment method thereof
TWI462574B (en) Vertical sync singal separating apparatus and method thereof
CN101989417B (en) Method and system for automatically correcting sampling clocks in digital video system
JP2014219724A (en) Image processor, method for controlling image processor, and program
JP2011164356A (en) Display device and display method
KR100531382B1 (en) Method of fixing sampling phase in Analog-Digital Converter and Apparatus of the same
JP2001028711A (en) Correction device for defect pixel data for solid-state image pickup element
JP6140933B2 (en) Display device and control method thereof
JP3896368B2 (en) Image display device
JP2009267793A (en) Video signal processor

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees