Patent ID: 8138846

Claim:
An apparatus, comprising: an oscillator to provide a first signal having a first untuned frequency; and a frequency-control circuit coupled to receive the first signal from the oscillator and to provide an output clock signal having an output frequency, wherein the frequency-control circuit is configured to alter one or more pulses of the first signal to tune the output frequency of the output clock signal to have an average frequency over time at a desired target frequency, the frequency-control circuit comprising: a counter configured to receive the first signal with the untuned first frequency in the same form as it is provided by the oscillator, the counter being further configured to count a number of pulses within the first untuned frequency of the first signal as it is received from the oscillator, and a pulse-altering circuit coupled to receive the number of pulses from the counter and being configured to alter the one or more pulses of the first signal to tune the output frequency based on the counted number of pulses in the first signal as it is received from the oscillator; wherein the frequency-control circuit is configured to receive a measured temperature from a temperature sensor and to alter the one or more pulses of the first signal based on the measured temperature to tune the output frequency of the output clock signal to have the average frequency over time at the desired target frequency over a range of temperatures.