Patent ID: 8717114

Claim:
A system for calibrating a variable frequency generator, comprising: a circuit configured to generate a clock signal; a reference oscillator configured to generate a reference clock signal; a pulse-width modulation circuit configured to generate a pulse-width modulated signal; a calibration control circuit configured to: generate and output a control signal to the pulse-width modulation circuit in order for the pulse-width modulation circuit to generate the pulse-width modulated signal with a pulse width corresponding to the control signal; receive the clock signal and the reference clock signal; determine whether to store information indicative of the control signal or output an adjusted control signal to the pulse-width modulation circuit for generation of the pulse-width modulated signal with an adjusted pulse width corresponding to the adjusted control signal, the determination based on whether a frequency of the clock signal is within a predetermined margin of error with respect to a frequency of the reference clock signal; when the frequency of the clock signal is within the predetermined margin of error, output the information indicative of the control signal for storage; when the frequency of the clock signal is not within the predetermined margin of error, output the adjusted control signal to the pulse width modulation circuit for generation of the pulse-width modulation signal with the adjusted pulse width; a variable capacitance circuit configured to adjust an associated variable capacitance in response to receipt of the pulse-width modulated signal with the adjusted pulse width, the associated variable capacitance, when adjusted, is adapted to correspondingly adjust the frequency of the clock signal; and a memory configured to store the information indicative of the control signal output for storage by the calibration control circuit.