Patent attributes
The present invention relates to a method and an apparatus for automatic skew compensation. The apparatus according to the present invention comprises: a skew compensating part configured to receive a high speed data signal and output a plurality of delay data signals having different delay times; a start code detecting part configured to detect a start code from the plurality of delay data signals; and a control part configured to determine a skew delay time depending on signal reception quality which is determined on the basis of the number of start codes normally detected for each different delay time. The apparatus may further comprise a packet start detecting part configured to receive an LP signal separated from an MIPI D-PHY and count the number of received packets. The packet start detecting part receives the LP signal separated from the MIPI D-PHY, and counts the number of packets received at every preset quality evaluation time by detecting the start location of a packet according to the state of the LP signal. The signal reception quality is obtained using the number of normally detected start codes and the number of received packets received and counted at every quality evaluation time. The present invention can automatically compensate the skew between a data signal and a clock signal in an MIPI D-PHY reception system.