Patent ID: 8692626

Claim:
An oscillation device, compensating a setting signal for setting an output frequency based on a detection result of an ambient temperature, the oscillation device comprising: a first quartz-crystal oscillator, structured by providing first electrodes on a quartz-crystal piece; a second quartz-crystal oscillator, structured by providing second electrodes on a quartz-crystal piece; a first oscillation circuit and a second oscillation circuit, connected to the first quartz-crystal oscillator and the second quartz-crystal oscillator respectively; a frequency difference detecting unit, when an oscillation frequency of the first oscillation circuit is set to f 1 , an oscillation frequency of the first oscillation circuit at a reference temperature is set to f 1 r , an oscillation frequency of the second oscillation circuit is set to f 2 , and an oscillation frequency of the second oscillation circuit at the reference temperature is set to f 2 r , the frequency difference detecting unit determines a difference corresponding value x which is corresponding to a difference value between a value corresponding to a difference between f 1 and f 1 r , and a value corresponding to a difference between f 2 and f 2 r ; and a compensation value obtaining unit, obtaining a frequency compensation value of f 1 resulting from the ambient temperature being different from the reference temperature based on the difference corresponding value x detected in the frequency difference detection unit, wherein the compensation value obtaining unit is structured to include a function for calculating the frequency compensation value of f 1 for X, and X is a value corresponding to x/k by calculating an n th -order polynomial, n is not less than 4, where k is a divide coefficient specific to a device introduced in order to set a coefficient of the polynomial to small value; the divide coefficient k is a value previously set according to a maximum value of the difference corresponding value x previously detected in a measurement temperature range; an output of the oscillation device is structured to be generated by utilizing an output of the first oscillation circuit; and the setting signal is structured to be compensated based on the frequency compensation value determined by the compensation value obtaining unit.