A method for compensating phase shift is provided. The method includes sweeping a transmitter (TX) clock frequency over a frequency range and sampling resistance values at a receiver (RX) circuit while sweeping the TX clock frequency. A first frequency in the frequency range is determined which corresponds to a maximum resistance value sampled at the RX circuit. Using a look-up table (LUT), a phase adjust value is determined based on the first frequency. A phase of the TX clock is adjusted based on the phase adjust value.
展开▼