Resetting the controlled oscillator when its frequency is outside a predetermined limit