An apparatus to maintain a voltage-controlled oscillator (VCO) close to a desired operating point, the voltage-controlled oscillator (VCO) providing a variable frequency output that depends, in part on an analog control input signal, and in part on a capacitance connected to a capacitor input, the apparatus comprising:
- a switchable bank of capacitors connected to said capacitor input and having a switch input to provide a selectable range of operating frequencies for the VCO;
- a sensor connected to the control input of the VCO providing a measurement that varies as the magnitude of the control signal, the sensor providing an analog output;
- and
- a digital controller connected to the switch input and accepting the control signal magnitude indication, the controller accepting a digital input and providing control to the switchable capacitor bank to maintain the operating point of the VCO close to the desirable operating point;
- a temperature sensor to provide an indication of temperature to the digital controller;
- and
- an analog to digital converter (ADC) to convert the analog sensor output to the magnitude indication accepted by the digital controller;
- wherein the digital controller detects when the temperature changes by more than a temperature threshold and generates the control to the switchable capacitor bank when the temperature threshold is exceeded.