Frequency-controlled crystal oscillator