A system and method is shown for automatic frequency correction in a
receiver, where the number of clock cycles in a baseband data signal,
such as an I or Q channel of the receiver or an XOR of the I and Q
channels, for a "1" state and a "0" state of a received data signal are
each determined and the difference between the two is used to calculate a
subsequent frequency offset correction value. The subsequent frequency
offset correction value is added to a current offset correction value to
obtain an actual offset correction value. The actual offset correction
value is then used to adjust the frequency of the receiver clock.