Abstract:
The present invention provides a method for reducing analog PLL (Phase-lock loop) jitter in video ADC application. The HSync/CSync is replaced with a faked HSync signal to be inputted to PLL during vertical blank period. Therefore the analog PLL will only see the faked HSync signal of fixed period as a line-lock trigger signal, while no COAST signal is required. Also, the faked HSync is fine-tuned to match with the external HSync/CSync leading edge to minimize PLL jitter.

Description:
FIELD OF THE INVENTION  
       [0001]     The present invention relates to analog video application, and more particularly to method for reducing analog PLL (Phase-lock loop) jitter in video application.  
       BACKGROUND OF THE INVENTION  
       [0002]     Analog video signal application is still popular everywhere, and using a line-lock analog PLL (Phase-lock loop) for tracking line period (H-Sync period) to recover data clock with low jitter is very important to capture the analog video.  
         [0003]     Conventional method is to use HSync, either input from RGB video stream or from the voltage sliced CSync (Composite Sync, from YPbPr component video) to feed into the analog PLL, and use vertical blank period as the PLL COAST signal to maintain PLL speed.  
         [0004]     However, the HSync or CSync do not maintain the same period during vertical blank. Even with the help from the COAST signal, the clock generated by the analog PLL still will decay slightly and/or accumulate.  
         [0005]     The present invention has arisen to mitigate and/or obviate the afore-described disadvantages.  
       SUMMARY OF THE INVENTION  
       [0006]     The primary objective of the present invention is to replace the HSync/CSync with faked HSync to PLL during vertical blank period. Therefore the analog PLL will only see the fixed period HSync as line-lock trigger signal, while no COAST signal is required. Also, the faked HSync is fine-tuned to match with the external HSync/CSync leading edge to minimize PLL jitter.  
         [0007]     The present invention will become more obvious from the following description when taken in connection with the accompanying drawings, which show, for purpose of illustrations only, the preferred embodiment in accordance with the present invention. 
     
    
     BRIEF DESCRIPTION OF THE DRAWINGS  
       [0008]      FIG. 1  shows a block diagram of prior art ADC clock generating, in which the PLL has no COAST function.  
         [0009]      FIG. 2  shows a graphic distortion result of the PLL in  FIG. 1 .  
         [0010]      FIG. 3  shows a block diagram of prior art ADC clock generating, in which the PLL has the COAST function.  
         [0011]      FIG. 4  shows a graphic distortion result of the PLL in  FIG. 3 .  
         [0012]      FIG. 5  shows a block diagram of ADC clock generating in PLL in accordance with the present invention.  
         [0013]      FIG. 6  shows a graphic result of the PLL in  FIG. 5 .  
         [0014]      FIG. 7  shows some types of CSync, separated VSync and a generated COAST.  
         [0015]      FIG. 8  shows the last Fake_HSync is monitored in accordance with the present invention.  
         [0016]      FIGS. 9, 10 ,  11  show how the Fake_HSync is fine-tuned. 
     
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT  
       [0000]     What is Line-Locked PLL? 
         [0017]     Analog Video inputs do not have data clock coming with their video data. But they do have Sync information to inform the Video capture/display device when the video image is changing line or changing field as well.  
         [0018]     Some types of sync information are as below: 
    1. Separated sync RGB input: it has VSync and HSync both.     2. Composite Sync RGB input: it has CSync only, which combines VSync into HSync signal.     3. Sync_On_Green RGB input or YC separated Video (Sync Tip on Luminance channel): it needs a voltage slicing to separate sync tips from analog video signal, and then generate a CSync signal. 
 
 How does Line-Locked PLL Work and Jitter?
   
 
         [0022]     Line-Locked analog PLL tracks the period trigger signal, such as HSync, and be programmed with a divisor such that for every one HSync trigger, the PLL will generate as many clocks as the divisor.  
         [0023]     As long as the HSync keeps exactly the same period, the analog PLL will generate accurate clocks with no jitter.  
         [0024]     However, the HSync can not keep exactly the same period, the issues are: 
    1. HSync edge may vary a little due to IC pad sampling, especially when the HSync signal rises/falls slowly. Even with the Schmitt Trigger pad, the improvement is limited.     2. When in non-separated sync mode, the HSync in the CSync may be disappeared or double frequency or shift around VSync, and Some PLLs do not have COAST function.     3. Even most of the Analog PLLs have COAST function, but HSync still decay a little during COAST period.    
 
         [0028]     The present invention has arisen to solve the second and the third issues.  
         [0000]     Sync and Clock Block Diagram  
         [0029]     Some analog PLLs do not have COAST function.  FIG. 1  shows a block diagram of prior art ADC clock generating, in which the PLL has no COAST function. Such PLL is unable to support CSync (Composite Sync.) due to it is too slow in recovering PLL clock after Vertical Blank period. A graphic distortion result is shown in  FIG. 2 .  
         [0030]     Some other PLLs do have COAST function, as shown in  FIG. 3 . Such PLLs, if it is recovered fast, then there is no problem. But if PLL decays clocks soon and is recovered slowly, then it will have a little distortion as shown in  FIG. 4 .  
         [0031]     The present invention is shown in  FIG. 5 , in which an “Emulate HSync” block is added. Besides generating a faked HSync for non-COAST PLLs, the invention also has a fine-tune mechanism to reduce HSync period variation. And the image does not have distortion as shown in  FIG. 6 .  
         [0000]     VSync Separation  
         [0032]     The purpose of VSync Separation is to extract the VSync and generate COAST from the CSync signal.  
         [0033]     Referring to  FIG. 7 , some types of CSync, separated VSync and a generated COAST are shown.  
         [0034]     The extracted VSync is for timing measurement or for informing the display device a video filed change, and the extracted COAST can be used in PLL if it has COAST function to keep maintain the same PLL output speed.  
         [0035]     But some analog PLLs do not have COAST function, it will cost a lot of time to vibrate clock back to normal clock speed or even unable to recover back since it is disturbed by the vertical blank of CSync. Therefore the present invention is to generate a faked HSync to replace the CSync during COAST period.  
         [0000]     Generation of Faked HSync and Emulate_HSync  
         [0036]     The present invention is to use clock counters (PLL_Clk in  FIG. 5 ) to track the High/Low width of CSync during non-COAST period, and therefore an HSync similar signal (Fake_HSync) can be periodically generated to keep stimulating PLL in COAST period. The Fake_HSync has exactly the same clock numbers as the original normal HSync (or CSync), when CSync is in non-COAST period.  
         [0037]     Firstly, referring to  FIG. 5 , the CSync trailing edge is used to re-synchronize the COAST from VSync_Separator to produce a Fake_HSync_Select signal.  
         [0038]     Secondly, even it has the same counter values for tracking, but the Fake_HSync still relies on the PLL_Clk that is outputted by PLL. Once the PLL decay, it still will affect the Fake_HSync to shift a little. So we cannot guarantee the last Faked HSync pulse will match with the external CSync or not when the end of the COAST period is existed (as shown in  FIG. 8 ). So, a compensative logic is required to let the COAST exit sequence smoothly. This can be achieved by monitoring the last Fake_HSync. Referring to  FIG. 8 , when the last Fake_HSync is slower a little (for example slower below ¼ period), then generating the next HSync pulse as predicted; when the last Fake_HSync is slower too much (for example slower more than ¼ period), then the last Fake_HSync is omitted.  
         [0000]     Fine Tune of the Faked HSync  
         [0039]     Some PLLs have build-in COAST function. It supposes to have internal re-trigger pulse which works as Fake_HSync during COAST is enabled. However, during COAST active, the PLL ignore any CSync signal. This will cause PLL slightly decay, and has bigger phase jitter. Based on the above Fake_HSync, we have another method to fine tune it for reducing jitter.  
         [0040]     The method is performed when generating next Fake_HSync pulse, we have −1T and +1T clock window (where T means clock period) to monitor whether the external CSync has leading edge transition? If no, then just do the same way to generate next faked HSync pulse. If yes, then depends on which window (−1T) or (+1T), to adjust next Fake_HSync counter by +1 clock period or −1 clock period, after that return to same period.  
         [0041]     In  FIG. 9 , when clock decays very very little, the drawing shows no fine tune is required due to the jitter is too small to affect PLL operation.  
         [0042]     In  FIG. 10 , when clock is faster a little, the drawing shows that the clock will be decreased by 1T (1 clock period). In  FIG. 11 , when clock is slower a little, the drawing shows that the clock will be increased by 1T (1 clock period).  
         [0043]     While we have shown and described various embodiments in accordance with the present invention, it should be clear to those skilled in the art that further embodiments may be made without departing from the scope of the present invention.