Clock compensation for GPS receivers. A receiver in accordance with the
present invention comprises a Radio Frequency (RF) portion, and a
baseband portion, coupled to the RF portion, wherein the baseband portion
comprises a crystal, an oscillator, coupled to the crystal, wherein the
oscillator generates a clock signal based on a signal received from the
crystal, a counter, coupled to the oscillator via the clock signal, a
comparator, coupled to the counter, a controller, at least one logic
gate, coupled to the comparator and the controller, and a combiner,
coupled to the at least one logic gate, the controller, and the counter
and producing an accurate clock signal therefrom.