Patent ID: 8305368

Claim:
A data driver for driving image data to be displayed on a panel of a display device, comprising: a receiver sampling the image data on a data bus from a timing controller in the display device according to a processed pixel clock signal, wherein the image data comprises pixel data during a plurality of active periods and a test pattern repeatedly inserted in the image data by the timing controller during a plurality of blanking periods; a skew adjusting circuit receiving a pixel clock signal and adjusting a clock phase of the pixel clock signal by delaying the pixel clock signal with a controllable skew according to a feedback control signal so as to generate the processed pixel clock signal; and a processing device storing a predetermined test pattern synchronized with the inserted test pattern, determining an optimum skew by comparing the sampled test patterns with the predetermined test pattern, and generating the feedback control signal comprising information indicating the optimum skew; wherein the test pattern is repeatedly sampled with different skews to generate the sampled test patterns, the processing device further compares the sampled test patterns with the predetermined test pattern to finds ones, which are equivalent to the predetermined test pattern, in the sampled test patterns, obtains a margin defined by a minimum skew and a maximum skew according to the found sampled test patterns, and determines the optimum skew according to the margin.