A method for adjusting a reference frequency and a reference voltage level, the method applicable for an apparatus including an oscillator, a storage for storing data of the reference frequency and data of the reference voltage level of a voltage to be applied to the oscillator for causing the oscillator to generate a clock having the reference frequency, an oscillator controlling means for causing the oscillator to generate a clock having a required frequency by applying a voltage determined on the basis of the data of the reference frequency and the data of the reference voltage level to the oscillator, and a frequency counter for counting a frequency of a clock, the method comprising;
- generating a clock for examination by applying a voltage to the oscillator, the voltage being corresponding to the reference voltage level stored in the storage;
- measuring an examination frequency of the clock for examination generated by the oscillator;
- generating a plurality of clocks for adjustment by applying a voltage to the oscillator, the voltage being corresponding to an adjustment voltage level, the adjustment voltage level being varied when a difference between the reference frequency and the examination frequency measured by the frequency counter is out of a predetermined range;
- measuring a frequency of the clock for adjustment by the frequency counter;
- storing in the storage data of the adjustment voltage level instead of the data of the reference voltage level when a difference between the frequency of the clock for adjustment and the reference frequency is within a predetermined range.