Circuit device and oscillator
The oscillation circuit optimizes memory usage and accuracy by converting temperature data to adjust frequency through a lookup table with varying address allocation, addressing inefficiencies in existing temperature-compensated oscillation circuits.
Patent Information
- Application Number
- JP2020165276
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-09-30
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-09-30
AI Technical Summary
Existing temperature-compensated oscillation circuits inefficiently use memory due to varying temperature sensitivity, leading to decreased accuracy in temperature compensation.
An oscillation circuit that adjusts frequency based on temperature data conversion, using a lookup table with varying address allocation per unit temperature to match temperature sensitivity, and a frequency adjustment circuit to maintain constant oscillation frequency.
Achieves highly accurate temperature compensation while efficiently utilizing memory capacity by optimizing address allocation based on temperature sensitivity.
Smart Images

Figure 0007540275000006 
Figure 0007540275000001 
Figure 0007540275000010
Abstract
Description
[Technical field]
[0001] The present invention relates to a circuit device, an oscillator, and the like. [Background technology]
[0002] Patent Document 1 discloses a temperature-compensated oscillator circuit that includes a temperature measurement unit that outputs the temperature measurement result as a digital signal, a counter that outputs the upper bits of the digital signal as an address value, a memory unit that outputs a correction value corresponding to the address value, and a capacitance array that adjusts the oscillation frequency by being set to a capacitance value corresponding to the correction value. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2007-67675 A Summary of the Invention [Problem to be solved by the invention]
[0004] In Patent Document 1, the upper bits of a digital signal are used as address values, and the address values correspond to temperature points at approximately regular intervals. In other words, correction values corresponding to temperature points at approximately regular intervals are stored in the memory unit, and the temperature sensitivity in the temperature characteristics of the oscillation frequency is not taken into consideration. This causes a problem that the memory usage efficiency decreases in a temperature range with low temperature sensitivity, while the accuracy of temperature compensation decreases in a temperature range with high temperature sensitivity. [Means for solving the problem]
[0005] One aspect of the present disclosure relates to a circuit device including an oscillation circuit that generates an oscillation signal using an oscillator, a frequency adjustment circuit that adjusts an oscillation frequency of the oscillation circuit based on frequency adjustment data, a temperature sensor circuit that outputs temperature data, an arithmetic circuit that outputs the converted temperature data by performing a conversion process on the temperature data in which the slope of the converted temperature data relative to the temperature data in a first temperature range is different from the slope of the converted temperature data relative to the temperature data in a second temperature range, and a memory circuit that stores a lookup table showing the correspondence between the converted temperature data and the frequency adjustment data.
[0006] Another aspect of the present disclosure relates to an oscillator including the circuit device described above and the resonator. [Brief description of the drawings]
[0007] [Figure 1] The relationship between the temperature characteristics of the oscillation frequency and address assignment when the temperature data output by the temperature sensor is used directly as an address for the lookup table. [Diagram 2] 1 shows an example of the configuration of an oscillator and a circuit device. [Diagram 3] 13 shows an example of conversion from temperature data to converted temperature data in the first configuration example of the arithmetic circuit. [Figure 4] 1 shows a first example of an arithmetic circuit configuration. [Diagram 5] A detailed configuration example of the start point setting circuit and multiplication circuit. [Figure 6] 2 shows a second example of a multiplication circuit. [Figure 7] 13 shows an example of conversion from temperature data to converted temperature data in the third configuration example of the arithmetic circuit. [Figure 8] 3 shows a third example of an arithmetic circuit configuration. [Figure 9] A detailed example of the temperature sensor circuit. [Figure 10] 1 shows a detailed configuration example of an adjustment circuit and a connection configuration example of a vibrator, an oscillation circuit, and an adjustment circuit. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] A preferred embodiment of the present disclosure will be described in detail below. Note that the embodiment described below does not unduly limit the contents described in the claims, and all of the configurations described in the embodiment are not necessarily essential configurations.
[0009] 1. Circuit device and oscillator Figure 1 shows the relationship between the temperature characteristic of the oscillation frequency and address assignment when the temperature data output by the temperature sensor is used as an address for the lookup table. Here, an example is shown in which the temperature data is linear with respect to temperature, but it is sufficient if the temperature data is approximately linear with respect to temperature. Also, an example is shown in which the temperature characteristic of the oscillation frequency is quadratic with respect to temperature, but it is sufficient if the temperature characteristic changes the temperature sensitivity of the oscillation frequency depending on the temperature.
[0010] The temperature characteristic shown in Figure 1 is a quadratic characteristic that is convex upwards with the apex near room temperature. UT1 to UT3 are temperature ranges within a unit temperature span. Temperature range UT1 is near room temperature, and the frequency change per unit temperature FW1 is small. Temperature range UT2 is slightly away from room temperature, and the frequency change per unit temperature FW2 is medium. Temperature range UT3 is even further away from room temperature than temperature range UT2, and the frequency change per unit temperature FW3 is large. The frequency change per unit temperature corresponds to the temperature sensitivity of the oscillation frequency, which means that the further away from room temperature the temperature, the greater the temperature sensitivity.
[0011] The temperature ranges UT1 to UT3 of the unit temperature width correspond to the address ranges AW1 to AW3 of the lookup table, and frequency change amounts FW1 to FW3 per unit temperature are assigned to these address ranges AW1 to AW3. Because the temperature data is linear and the number of addresses included in each of the address ranges AW1 to AW3 is the same, the frequency change amount per address is small in temperature range UT1 and large in temperature range UT3.
[0012] In order to realize highly accurate temperature compensation while efficiently using a memory with a limited capacity, it is desirable that the frequency change per address is uniform. However, as described above, there are too many addresses in the temperature range UT1, and there are not enough addresses in the temperature range UT3. For example, if the number of addresses per unit temperature is reduced, the allocation in the temperature range UT1 can be optimized, but the frequency change per address is large in the temperature range UT3, so the accuracy of the temperature compensation decreases. On the other hand, if the number of addresses per unit temperature is increased, the accuracy of the temperature compensation in the temperature range UT3 can be improved, but the frequency change in the temperature range UT1 is small, but the address allocation increases, so the memory utilization efficiency decreases. In this way, if the temperature data output by the temperature sensor is used as an address for the lookup table, there is a problem that it is difficult to realize highly accurate temperature compensation while efficiently using a memory with a limited capacity.
[0013] 2 shows an example of the configuration of an oscillator 200 and a circuit device 100 according to this embodiment. The oscillator 200 includes a resonator 10 and a circuit device 100.
[0014] The vibrator 10 is an element that generates mechanical vibration by an electrical signal. The vibrator 10 can be realized by a vibrating piece such as a quartz crystal vibrating piece. For example, the vibrator 10 is a tuning fork type quartz crystal vibrating piece. Alternatively, the vibrator 10 can be realized by a quartz crystal vibrating piece with a thickness shear vibration such as an AT cut or SC cut cut angle. The vibrator 10 of this embodiment can be realized by various vibrating pieces such as a vibrating piece other than a tuning fork type or a thickness shear vibration type, or a piezoelectric vibrating piece formed of a material other than quartz. For example, the vibrator 10 may be a SAW resonator or a MEMS vibrator as a silicon vibrator formed using a silicon substrate. SAW is an abbreviation for Surface Acoustic Wave, and MEMS is an abbreviation for Micro Electro Mechanical Systems.
[0015] The circuit device 100 is electrically connected to the vibrator 10, and drives the vibrator 10 to oscillate the vibrator 10. Note that the connection in this embodiment is an electrical connection. An electrical connection is a connection that allows an electrical signal to be transmitted, and is a connection that allows information to be transmitted by an electrical signal. The electrical connection may be a connection via a passive element or an active element. The circuit device 100 also performs a temperature compensation process that keeps the oscillation frequency of the oscillator 200 constant regardless of temperature. The circuit device 100 is an integrated circuit device called an IC. The circuit device 100 is an IC manufactured by a semiconductor process, and is a semiconductor chip in which circuit elements are formed on a semiconductor substrate.
[0016] The circuit device 100 includes a temperature sensor circuit 110, an arithmetic circuit 120, a memory circuit 130, a frequency adjustment circuit 150, an oscillation circuit 160, and a register 170. Note that this embodiment is not limited to the configuration in Fig. 2, and various modifications are possible, such as omitting some of the components or adding other components.
[0017] The temperature sensor circuit 110 measures the environmental temperature of the resonator 10 and outputs the result as temperature data TD. The temperature data TD is data that monotonically increases or decreases with respect to temperature in the operating temperature range of the circuit device 100. As described later, the temperature sensor circuit 110 is a temperature sensor that utilizes the fact that the oscillation frequency of a ring oscillator has temperature dependency. In this case, the temperature sensor circuit 110 includes a ring oscillator and a counter. The counter counts the oscillation signal of the ring oscillator during an enable period defined by the clock signal CLK output by the oscillation circuit 160, and outputs the count value as temperature data TD. However, the temperature sensor circuit 110 is not limited to this, and may include, for example, an analog temperature sensor that outputs a temperature detection voltage by utilizing the fact that the forward voltage of a PN junction has temperature dependency, and an A / D converter that A / D converts the temperature detection voltage and outputs the temperature data TD.
[0018] The arithmetic circuit 120 is a logic circuit that converts the temperature data TD output by the temperature sensor circuit 110 into converted temperature data ETD. The converted temperature data ETD is data that monotonically increases or decreases with respect to temperature, like the temperature data TD, but the slope of the converted temperature data ETD is converted from the slope of the temperature data TD according to the temperature range. In the following, it is assumed that n is an integer equal to or greater than 1, and the converted temperature data ETD is n+1-bit data ETD[n:0].
[0019] The register 170 stores parameters for the conversion performed by the arithmetic circuit 120. The parameters stored in the register 170 are input to the arithmetic circuit 120, and the arithmetic circuit 120 converts the temperature data TD into converted temperature data ETD[n:0] based on the parameters.
[0020] The memory circuit 130 stores a lookup table 131 that indicates the correspondence between the converted temperature data ETD[n:0] and the frequency adjustment data. Specifically, the upper bits ETD[n:i+1] of the converted temperature data ETD[n:0] are input to the memory circuit 130 as an address of the lookup table 131. i is an integer between 1 and n. The lookup table 131 stores frequency adjustment data at each address, and the memory circuit 130 outputs the frequency adjustment data CLa of the address specified by the upper bits ETD[n:i+1] and the frequency adjustment data CLb of the adjacent address. The memory circuit 130 is, for example, a semiconductor memory such as a nonvolatile memory or a RAM, or a register configured with a latch circuit or the like. The nonvolatile memory is, for example, an OTP memory such as a FAMOS memory, but is not limited thereto, and may be an EEPROM such as a MONOS memory or a fuse-type ROM. FAMOS is an abbreviation for Floating gate Avalanche injection Metal Oxide Semiconductor. MONOS stands for Metal-Oxide-Nitride-Oxide-Silicon.
[0021] The frequency adjustment circuit 150 adjusts the oscillation frequency of the oscillation circuit 160 based on the lower bits ETD[i:0] of the converted temperature data ETD[n:0] and the frequency adjustment data CLa, CLb. Specifically, the frequency adjustment circuit 150 includes an interpolation circuit 152 and an adjustment circuit 154.
[0022] The interpolation circuit 152 outputs the adjustment data QCL by interpolating between the frequency adjustment data CLa and the frequency adjustment data CLb based on the lower bits ETD[i:0] of the conversion temperature data ETD[n:0]. The adjustment circuit 154 is connected to the oscillation circuit 160 and adjusts the oscillation frequency of the oscillation circuit to an oscillation frequency corresponding to the adjustment data QCL. The frequency adjustment data stored in the lookup table 131 is data that reduces the temperature dependency of the oscillation frequency of the oscillation circuit 160 and the vibrator 10, and the oscillation frequency is adjusted using the frequency adjustment data, so that the oscillation frequency becomes constant regardless of temperature. The adjustment circuit 154 is a capacitor array circuit connected to one end or the other end of the vibrator 10, as described later. Alternatively, the adjustment circuit 154 may include a D / A converter that D / A converts the adjustment data QCL, and a variable capacitor connected to one end or the other end of the vibrator 10. The capacitance value of the variable capacitor is controlled according to the output voltage of the D / A converter.
[0023] 2, for example, the interpolation circuit 152 may be omitted. In this case, the memory circuit 130 outputs frequency adjustment data CLa corresponding to the converted temperature data ETD[n:0], and the adjustment circuit 154 adjusts the oscillation frequency of the oscillation circuit to an oscillation frequency corresponding to the frequency adjustment data CLa.
[0024] The oscillator circuit 160 generates an oscillation signal using the oscillator 10. Specifically, the oscillator circuit 160 drives the oscillator 10 to oscillate the oscillator 10, and generates an oscillation signal by the oscillation. An example of the oscillator circuit 160 is a Colpitts type oscillator circuit described later, but is not limited to this. Various types of oscillator circuits may be used as long as the oscillation frequency can be adjusted by the frequency adjustment circuit 150. The clock signal CLK is output based on the oscillation signal. For example, the oscillator circuit 160 may output the oscillation signal as the clock signal CLK, or the circuit device 100 may include an output circuit that outputs the clock signal CLK by buffering or dividing the oscillation signal.
[0025] 3 is an example of conversion from temperature data TD to converted temperature data ETD in a first configuration example of the arithmetic circuit 120. The solid line indicates the converted temperature data ETD in this embodiment, and the dotted line indicates the converted temperature data ETD when the temperature data TD is used as is as the converted temperature data ETD. In FIG. 3, the temperature data TD and the converted temperature data ETD are expressed in decimal numbers. Also, the upper bits ETD[n:i+1] of the converted temperature data ETD are shown as integers, and one integer value corresponds to one address.
[0026] 3, a larger value of the temperature data TD corresponds to a higher temperature, and the range of 0 to 72 of the temperature data TD corresponds to the operating temperature range of the circuit device 100. In the first configuration example, the operating temperature range is divided into a temperature range RTC corresponding to a range of 0 to 24 of the temperature data TD, a temperature range RTE corresponding to a range of 24 to 32 of the temperature data TD, and a temperature range RTA corresponding to a range of 32 to 72 of the temperature data TD. The temperature range RTE is near room temperature, and is a temperature range in which the temperature sensitivity is small in the temperature characteristics of the oscillation frequency. The temperature ranges RTC and RTA are temperature ranges in which the temperature sensitivity is larger than room temperature in the temperature characteristics of the oscillation frequency.
[0027] The arithmetic circuit 120 outputs the converted temperature data ETD by not changing the slope of the temperature data TD corresponding to the temperature range RTE near room temperature and by performing an offset addition process on the temperature data TD. The arithmetic circuit 120 also multiplies the slope of the temperature data TD corresponding to the temperature ranges RTC and RTA with high temperature sensitivity by 1.5 and performs an offset addition process to output the converted temperature data ETD. The offset value added in the offset addition process is set so that the lower limit of the converted temperature data ETD in the operating temperature range is not negative. In FIG. 3, the offset value is set so that the lower limit of the converted temperature data ETD is zero, but it is sufficient that the offset value is set so that the lower limit of the converted temperature data ETD is greater than zero. The offset value is EQOF, which will be described later in FIG. 4.
[0028] In the above embodiment, the circuit device 100 includes an oscillation circuit 160 that generates an oscillation signal using the resonator 10, a frequency adjustment circuit 150 that adjusts the oscillation frequency of the oscillation circuit 160 based on frequency adjustment data CLa, CLb, a temperature sensor circuit 110 that outputs temperature data TD, an arithmetic circuit 120, and a memory circuit 130. The arithmetic circuit 120 outputs converted temperature data ETD by performing a conversion process on the temperature data TD in which the slope of the converted temperature data ETD relative to the temperature data TD in a first temperature range is different from the slope of the converted temperature data ETD relative to the temperature data TD in a second temperature range. The memory circuit 130 stores a lookup table 131 that indicates the correspondence between the converted temperature data ETD and the frequency adjustment data CLa, CLb.
[0029] 3, the temperature range RTA or RTC corresponds to the first temperature range, and the temperature range RTE corresponds to the second temperature range. In the temperature ranges RTA and RTC, the slope of the converted temperature data ETD is 1.5, and in the temperature range RTE, the slope of the converted temperature data ETD is 1. That is, the slope in the first temperature range is different from the slope in the second temperature range.
[0030] According to this embodiment, the temperature data TD is converted into the converted temperature data ETD so that the gradient of the converted temperature data ETD varies depending on the temperature range. This makes it possible to adjust the gradient of the converted temperature data ETD depending on the temperature sensitivity in the temperature characteristic of the oscillation frequency. Specifically, the absolute value of the gradient of the converted temperature data ETD can be increased in a temperature range where the temperature sensitivity is high, and the absolute value of the gradient of the converted temperature data ETD can be decreased in a temperature range where the temperature sensitivity is low. Since the address of the lookup table 131 is specified by the converted temperature data ETD, the number of addresses per unit temperature increases as the absolute value of the gradient of the converted temperature data ETD increases. This makes it possible to increase the address allocation per unit temperature in a temperature range where the temperature sensitivity is high, and to decrease the address allocation per unit temperature in a temperature range where the temperature sensitivity is low, thereby realizing highly accurate temperature compensation while efficiently using a memory with a finite capacity.
[0031] In addition, in this embodiment, the arithmetic circuit 120 outputs the converted temperature data ETD so that the number of data per unit temperature of the frequency adjustment data output from the lookup table 131 based on the converted temperature data ETD corresponding to the first temperature range is different from the number of data per unit temperature of the frequency adjustment data output from the lookup table 131 based on the converted temperature data ETD corresponding to the second temperature range.
[0032] As described above, the larger the absolute value of the slope of the converted temperature data ETD, the larger the number of addresses per unit temperature, and therefore the larger the number of data per unit temperature of the frequency adjustment data output from lookup table 131 by the converted temperature data ETD. The larger the number of data per unit temperature, the smaller the temperature increments at which the frequency adjustment data is stored in lookup table 131, making it possible to perform highly accurate temperature compensation even in a temperature range with high temperature sensitivity. On the other hand, the smaller the number of data per unit temperature, the larger the temperature increments at which the frequency adjustment data is stored in lookup table 131, improving memory utilization efficiency in a temperature range with low temperature sensitivity.
[0033] Fig. 4 shows a first example of the configuration of the arithmetic circuit 120 that performs the conversion in Fig. 3. The arithmetic circuit 120 includes starting point setting circuits KSA and KSC, multiplication circuits MLA and MLC, and an adder circuit 126.
[0034] The start point setting circuit KSA sets the start temperature Ta of the temperature range RTA in FIG. 3. The start temperature Ta is the boundary between the adjacent temperature ranges RTE and RTA, and is the lower limit of the temperature range RTA. Specifically, the start temperature Ta is set by the temperature data TD=32 corresponding to the start temperature Ta. When the temperature data TD is 32 or more, the start point setting circuit KSA outputs the differential temperature data KSAQ=TD-32 obtained by subtracting 32 from the temperature data TD, and when the temperature data TD is smaller than 32, it outputs the differential temperature data KSAQ=0. The multiplication circuit MLA multiplies the differential temperature data KSAQ by a gain of 0.5 and outputs the output data MLAQ=KSAQ×0.5=(TD-32)×0.5. When TD<32, MLAQ=0.
[0035] The start point setting circuit KSC sets the start temperature Tc of the temperature range RTC in FIG. 3. The start temperature Tc is the boundary between the adjacent temperature ranges RTE and RTC, and is the upper limit of the temperature range RTC. Specifically, the start temperature Tc is set by the temperature data TD=24 corresponding to the start temperature Tc. When the temperature data TD is 24 or less, the start point setting circuit KSC subtracts 24 from the temperature data TD and outputs differential temperature data KSCQ=-(TD-24) with an inverted sign, and when the temperature data TD is greater than 24, outputs differential temperature data KSCQ=0. The multiplication circuit MLC multiplies the differential temperature data KSCQ by a gain of 0.5 and outputs output data MLCQ=-(KSCQ×0.5)=(TD-24)×0.5 with an inverted sign. When TD>24, MLCQ=0.
[0036] The adder circuit 126 adds the temperature data TD, the output data MLAQ, the output data MLCQ, and the offset value EQOF, and outputs the result as the converted temperature data ETD. In the temperature range RTE, ETD=TD+EQOF, and the slope of the converted temperature data ETD is 1. In the temperature range RTA, ETD=TD+(TD-32)×0.5+EQOF=1.5×TD-16+EQOF, and in the temperature range RTC, ETD=TD+(TD-24)×0.5+EQOF=1.5×TD-12+EQOF. The coefficient of the temperature data TD is 1.5, which is the gain 0.5 plus 1, so that the slope of the converted temperature data ETD is 1.5. The offset value EQOF is set so that the lower limit of the converted temperature data ETD in the operating temperature range is not negative. That is, the offset value EQOF is set so that the lower limit of the converted temperature data ETD is zero or greater than zero.
[0037] In the above embodiment, the arithmetic circuit 120 multiplies the temperature data TD in the first temperature range by the first coefficient, and does not multiply the temperature data TD in the second temperature range by the coefficient.
[0038] In the example of Fig. 3, the temperature range RTA or RTC corresponds to the first temperature range, and the temperature range RTE corresponds to the second temperature range. As described in Fig. 3 and Fig. 4, the arithmetic circuit 120 multiplies the temperature data TD of the temperature ranges RTA and RTC by the coefficient 1.5, and does not multiply the temperature data TD of the temperature range RTE by a coefficient. In this example, the coefficient 1.5 corresponds to the first coefficient.
[0039] According to this embodiment, the slope of the converted temperature data ETD in the first temperature range is set by the first coefficient, and the slope of the converted temperature data ETD in the second temperature range is 1. This allows the arithmetic circuit 120 to execute a conversion process in which the slope of the converted temperature data ETD in the first temperature range is different from the slope of the converted temperature data ETD in the second temperature range.
[0040] In this embodiment, the absolute value of the slope of the frequency-temperature characteristic of the vibrator 10 in the first temperature range is greater than the absolute value of the slope of the frequency-temperature characteristic in the second temperature range. At this time, the first coefficient is greater than 1. Note that the frequency-temperature characteristic is the temperature characteristic of the oscillation frequency. The absolute value of the slope of the frequency-temperature characteristic corresponds to the temperature sensitivity of the frequency-temperature characteristic.
[0041] In the example of Fig. 3, the temperature range RTE corresponding to the second temperature range corresponds to the vicinity of room temperature where the absolute value of the slope of the frequency-temperature characteristics is small in Fig. 1. Also, the temperature range RTA or RTC corresponding to the first temperature range corresponds to the temperature range in Fig. 1 where the absolute value of the slope of the frequency-temperature characteristics is larger than that in the vicinity of room temperature.
[0042] According to this embodiment, the temperature data TD in the first temperature range in which the absolute value of the slope of the frequency temperature characteristics is large is multiplied by the first coefficient larger than 1, so that the absolute value of the slope of the converted temperature data ETD in the first temperature range is larger than 1. This allows the address allocation of the lookup table 131 to be larger in a temperature range in which the absolute value of the slope of the frequency temperature characteristics is large.
[0043] In this embodiment, the first temperature range is adjacent to the second temperature range and is higher than the second temperature range. The arithmetic circuit 120 includes a first start point setting circuit that sets a first start temperature of the first temperature range, a first multiplication circuit that multiplies a first gain by difference temperature data KSAQ that indicates an increase in temperature data TD relative to temperature data TD at the first start temperature, and an addition circuit 126 that adds the temperature data TD and an output of the first multiplication circuit.
[0044] In the example of Fig. 3, the temperature range RTA corresponds to the first temperature range, the temperature range RTE corresponds to the second temperature range, the start temperature Ta corresponds to the first start temperature, and TD = 32 corresponds to the temperature data TD at the first start temperature. In Fig. 4, the start point setting circuit KSA corresponds to the first start point setting circuit, the multiplication circuit MLA corresponds to the first multiplication circuit, and the gain 0.5 corresponds to the first gain.
[0045] According to this embodiment, the temperature data TD corresponding to a temperature higher than the first start temperature is multiplied by the first gain, and the temperature data TD is added to the multiplied data, which is equivalent to multiplying the temperature data TD in the first temperature range by the first coefficient. That is, the first coefficient is a value obtained by adding 1 to the first gain. Moreover, the temperature data TD in the second temperature range is simply output from the adder circuit 126 as the converted temperature data ETD, and therefore the temperature data TD in the second temperature range is not multiplied by a coefficient.
[0046] FIG. 5 shows a detailed configuration example of the start point setting circuits KSA and KSC and the multiplication circuits MLA and MLC.
[0047] The starting point setting circuit KSA includes an addition circuit ADa, a sign inversion circuit SRa1, a selector SLa1, and a ReLU circuit RLa.
[0048] The adder circuit ADa adds an offset OFFa to the temperature data TD. The sign inverter circuit SRa1 inverts the sign of the output data of the adder circuit ADa. The selector SLa1 selects the output data of the adder circuit ADa when the sign selection signal ISGa is 0, and selects the output data of the sign inverter circuit SRa1 when the sign selection signal ISGa is 1. The ReLU circuit RLa outputs 0 when the output data of the selector SLa1 is less than 0, and outputs the data as is when the output data of the selector SLa1 is 0 or greater. The offset OFFa and the sign selection signal ISGa are stored in the register 170.
[0049] In the example of FIG. 3, the offset OFFa is set to -32, and the code selection signal ISGa is set to 0. At this time, the output data of the addition circuit ADa is TD-32, the selector SLa1 selects TD-32, and the ReLU circuit RLa outputs KSAQ=TD-32 when TD≧32, and outputs KSAQ=0 when TD<32. The start temperature Ta of the temperature range RTA is specified by the offset OFFa=-32, and the absolute value of the offset OFFa, 32, is the temperature data corresponding to the start temperature Ta. In this manner, the operation of the start point setting circuit KSA described in FIG. 4 is realized.
[0050] The multiplication circuit MLA includes a bit shift circuit BSa, a sign inversion circuit SRa2, and a selector SLa2.
[0051] The bit shift circuit BSa multiplies the differential temperature data KSAQ from the start point setting circuit KSA by a gain by bit-shifting the differential temperature data KSAQ. The bit shift direction and the shift amount are specified by the bit shift value GAa. The shift direction is the LSB direction or the MSB direction, and the shift amount is the number of bits to be shifted. The bit shift gain is 2, 4, 8, . . . in the MSB direction, and 0.5, 0.25, 0.125, . . . in the LSB direction. When the shift amount is zero, the bit shift gain is 1. The sign inversion circuit SRa2 inverts the sign of the output data of the bit shift circuit BSa. The selector SLa2 selects the output data of the bit shift circuit BSa when the sign selection signal QSGa is 0, and selects the output data of the sign inversion circuit SRa2 when the sign selection signal QSGa is 1. The bit shift value GAa and the sign selection signal QSGa are stored in the register 170.
[0052] In the example of FIG. 3, the shift direction of the bit shift value GAa is set to the LSB direction, and the shift amount is set to 1 bit. That is, the bit shift gain is 0.5. Also, the code selection signal QSGa is set to 0. At this time, the output data of the bit shift circuit BSa is (TD-32)×0.5, and the selector SLa2 selects (TD-32)×0.5. As a result, when TD≧32, MSAQ=(TD-32)×0.5 is output, and when TD<32, MSAQ=0 is output. In this manner, the operation of the multiplication circuit MLA described in FIG. 4 is realized.
[0053] The start point setting circuit KSC includes an adder circuit ADc, a sign inversion circuit SRc1, a selector SLc1, and a ReLU circuit RLc. The multiplication circuit MLC includes a bit shift circuit BSc, a sign inversion circuit SRc2, and a selector SLc2. The operation of the start point setting circuit KSC and the multiplication circuit MLC is similar to that of the start point setting circuit KSA and the multiplication circuit MLA, so the explanation is omitted and only the case where it is applied to the example of FIG.
[0054] In the example of FIG. 3, the offset OFFc is set to -24, and the code selection signal ISGc is set to 1. At this time, the output data of the adder circuit ADc is TD-24, the selector SLc1 selects -(TD-24), and the ReLU circuit RLc outputs KSCQ=-(TD-24) when TD≦24, and outputs KSCQ=0 when TD>24. The start temperature Tc of the temperature range RTC is specified by the offset OFFc=-24, and the absolute value of the offset OFFc, 24, is the temperature data corresponding to the start temperature Tc. In this manner, the operation of the start point setting circuit KSC described in FIG. 4 is realized.
[0055] The shift direction of the bit shift value GAc is set to the LSB direction, and the shift amount is set to 1 bit. That is, the bit shift gain is 0.5. Also, the code selection signal QSGc is set to 1. At this time, the output data of the bit shift circuit BSc is -(TD-24) x 0.5, and the selector SLc2 selects (TD-24) x 0.5. As a result, when TD≦24, MSCQ=(TD-24) x 0.5 is output, and when TD>24, MSCQ=0 is output. In this way, the operation of the multiplication circuit MLC described in FIG. 4 is realized.
[0056] In the above embodiment, the first multiplier circuit multiplies the temperature data TD by the first gain using the first bit shift.
[0057] In FIG. 5, the multiplication circuit MLA corresponds to the first multiplication circuit, the bit shift performed by the bit shift circuit BSa corresponds to the first bit shift, and the gain of the bit shift specified by the bit shift value GAa corresponds to the first gain.
[0058] According to this embodiment, the calculation load of the multiplication can be reduced by using a bit shift to multiply the temperature data TD by the first gain. For example, in an oscillator that requires low power consumption, such as a real-time clock device, it is possible to improve the temperature compensation accuracy while suppressing an increase in power consumption.
[0059] 2. Second configuration example 6 shows a second configuration example of the multiplication circuit MLA. The multiplication circuit MLA includes bit shift circuits BSa1 and BSa2, sign inversion circuits SRa21 and SRa22, and selectors SLa21 and SLa22. The multiplication circuit MLC can also be configured in a similar manner.
[0060] The operation of each component is the same as in FIG. 5, so the description will be omitted. Since the gain of the bit shift circuit BSa1 and the gain of the bit shift circuit BSa2 are set independently, the coefficient multiplied by the temperature data TD can be set more precisely. Specifically, if the gain specified by the bit shift value GAa1 is Gain1 and the gain specified by the bit shift value GAa2 is Gain2, MLAQ1=±Gain1×KSAQ and MLAQ2=±Gain2×KSAQ. Since MLAQ1 and MLAQ2 are added by the adder circuit 126, MLAQ1+MLAQ2=±(Gain1+Gain2)×KSAQ. For example, if Gain1=0.5 and Gain2=0.25, Gain1+Gain2=0.75. Compared to the case where one bit shift circuit is used, it is possible to set a more appropriate gain according to the slope of the temperature characteristic of the oscillation frequency.
[0061] 3.Third configuration example Fig. 7 is an example of conversion from temperature data TD to converted temperature data ETD in the third configuration example of the arithmetic circuit 120. The solid line indicates the converted temperature data ETD in this embodiment, and the dotted line indicates the converted temperature data ETD when the temperature data TD is used as the converted temperature data ETD as is. In Fig. 7, the temperature data TD and the converted temperature data ETD are expressed in decimal numbers. Also, the upper bits ETD[n:i+1] of the converted temperature data ETD are shown as integers, and one integer value corresponds to one address.
[0062] In FIG. 7, a larger value of the temperature data TD corresponds to a higher temperature, and the range of 0 to 256 of the temperature data TD corresponds to the operating temperature range of the circuit device 100. In the third configuration example, the operating temperature range is divided into temperature ranges RTD, RTC, RTE, RTA, and RTB. The temperature range RTD corresponds to the range of 0 to 64 of the temperature data TD. The temperature range RTC corresponds to the range of 64 to 128 of the temperature data TD. The temperature range RTE corresponds to the range of 128 to 160 of the temperature data TD. The temperature range RTA corresponds to the range of 160 to 224 of the temperature data TD. The temperature range RTB corresponds to the range of 224 to 256 of the temperature data TD. The temperature range RTE is near room temperature, and is a temperature range in which the temperature sensitivity is small in the temperature characteristics of the oscillation frequency. The temperature ranges RTC and RTA are temperature ranges in which the temperature sensitivity is larger than room temperature in the temperature characteristics of the oscillation frequency. The temperature ranges RTD and RTB are temperature ranges in which the temperature sensitivity of the oscillation frequency is greater than that of the temperature ranges RTC and RTA.
[0063] The arithmetic circuit 120 outputs the converted temperature data ETD by not changing the slope of the temperature data TD corresponding to the temperature range RTE near room temperature and by performing an offset addition process on the temperature data TD. The arithmetic circuit 120 also multiplies the slope of the temperature data TD corresponding to the temperature ranges RTC and RTA by 1.5 and performs an offset addition process to output the converted temperature data ETD. The arithmetic circuit 120 also multiplies the slope of the temperature data TD corresponding to the temperature ranges RTD and RTB by 2.5 and performs an offset addition process to output the converted temperature data ETD. The offset value is set so that the lower limit of the converted temperature data ETD in the operating temperature range is not negative. In FIG. 7, the offset value is set so that the lower limit of the converted temperature data ETD is zero, but it is sufficient that the offset value is set so that the lower limit of the converted temperature data ETD is greater than zero.
[0064] Fig. 8 shows a third configuration example of the arithmetic circuit 120 that performs the conversion in Fig. 7. The arithmetic circuit 120 includes start point setting circuits KSA-KSD, multiplication circuits MLA-MLD, and an adder circuit 126. Note that the detailed configuration of the start point setting circuits KSA-KSD is similar to that of the start point setting circuits KSA, KSC in Fig. 5. Also, the detailed configuration of the multiplication circuits MLA-MLD is similar to that of the multiplication circuits MLA, MLC in Fig. 5 or the multiplication circuit MLA in Fig. 6.
[0065] The start point setting circuit KSA sets the start temperature Ta of the temperature range RTA in FIG. 7. The start temperature Ta is the boundary between the adjacent temperature ranges RTE and RTA, and is the lower limit of the temperature range RTA. Specifically, the start temperature Ta is set by the temperature data TD=160 corresponding to the start temperature Ta. When TD is 160 or more, the start point setting circuit KSA outputs the differential temperature data KSAQ=TD-160, and when the temperature data TD is smaller than 160, the differential temperature data KSAQ=0. The multiplication circuit MLA multiplies the differential temperature data KSAQ by a gain of 0.5 to output the output data MLAQ=(TD-160)×0.5. When TD<160, MLAQ=0.
[0066] The start point setting circuit KSB sets the start temperature Tb of the temperature range RTB in FIG. 7. The start temperature Tb is the boundary between the adjacent temperature ranges RTA and RTB, and is the lower limit of the temperature range RTB. Specifically, the start temperature Tb is set by the temperature data TD=224 corresponding to the start temperature Tb. When TD is 224 or more, the start point setting circuit KSB outputs the differential temperature data KSBQ=TD-224, and when the temperature data TD is smaller than 224, it outputs the differential temperature data KSBQ=0. The multiplication circuit MLB outputs the output data MLBQ=(TD-224)×1 obtained by multiplying the differential temperature data KSBQ by a gain of 1. When TD<224, MLBQ=0.
[0067] The start point setting circuit KSC sets the start temperature Tc of the temperature range RTC in FIG. 7. The start temperature Tc is the boundary between the adjacent temperature ranges RTE and RTC, and is the upper limit of the temperature range RTC. Specifically, the start temperature Tc is set by the temperature data TD=128 corresponding to the start temperature Tc. When the temperature data TD is 128 or less, the start point setting circuit KSC subtracts 128 from the temperature data TD and outputs differential temperature data KSCQ=-(TD-128) with the sign reversed, and when the temperature data TD is greater than 128, outputs differential temperature data KSCQ=0. The multiplication circuit MLC multiplies the differential temperature data KSCQ by a gain of 0.5 and outputs output data MLCQ=(TD-128)×0.5 with the sign reversed. When TD>128, MLCQ=0.
[0068] The start point setting circuit KSD sets the start temperature Td of the temperature range RTD in FIG. 7. The start temperature Td is the boundary between the adjacent temperature ranges RTC and RTD, and is the upper limit of the temperature range RTD. Specifically, the start temperature Td is set by the temperature data TD=64 corresponding to the start temperature Td. When the temperature data TD is 64 or less, the start point setting circuit KSD subtracts 64 from the temperature data TD and outputs differential temperature data KSDQ=-(TD-64) with an inverted sign, and when the temperature data TD is greater than 64, it outputs differential temperature data KSDQ=0. The multiplication circuit MLD multiplies the differential temperature data KSDQ by a gain of 1 and outputs output data MLDQ=(TD-64)×1 with an inverted sign. When TD>64, MLDQ=0.
[0069] The adder circuit 126 adds the temperature data TD, the output data MLAQ, the output data MLBQ, the output data MLCQ, the output data MLDQ, and the offset value EQOF, and outputs the result as the converted temperature data ETD. In the temperature range RTE, ETD=TD+EQOF, and the slope of the converted temperature data ETD is 1. In the temperature range RTA, ETD=TD+(TD-160)×0.5+EQOF=1.5×TD-80+EQOF, and in the temperature range RTC, ETD=TD+(TD-128)×0.5+EQOF=1.5×TD-64+EQOF. The coefficient of the temperature data TD is 1.5, which is the gain 0.5 plus 1, so the slope of the converted temperature data ETD is 1.5. For the temperature range RTB, ETD = TD + (TD-160) x 0.5 + (TD-224) x 1 + EQOF = 2.5 x TD-304 + EQOF, and for the temperature range RTD, ETD = TD + (TD-128) x 0.5 + (TD-64) x 1 + EQOF = 2.5 x TD-128 + EQOF. The coefficient of the temperature data TD is 2.5, which is the sum of the gain 0.5 and the gain 1 plus 1, so the slope of the converted temperature data ETD is 2.5.
[0070] In the above embodiment, the arithmetic circuit 120 multiplies the temperature data TD in the first temperature range by a first coefficient, and multiplies the temperature data TD in the second temperature range by a second coefficient different from the first coefficient.
[0071] In the example of Fig. 7, the temperature range RTA corresponds to the first temperature range, and the temperature range RTB corresponds to the second temperature range. Or, the temperature range RTC corresponds to the first temperature range, and the temperature range RTD corresponds to the second temperature range. As described in Fig. 8, the arithmetic circuit 120 multiplies the temperature data TD of the temperature ranges RTA and RTC by a coefficient 1.5, and multiplies the temperature data TD of the temperature ranges RTB and RTD by a coefficient 2.5. In this example, the coefficient 1.5 corresponds to the first coefficient, and the coefficient 2.5 corresponds to the second coefficient.
[0072] According to this embodiment, the slope of the converted temperature data ETD in the first temperature range is set by the first coefficient, and the slope of the converted temperature data ETD in the second temperature range is set by the second coefficient, so that the arithmetic circuit 120 can execute a conversion process in which the slope of the converted temperature data ETD in the first temperature range is different from the slope of the converted temperature data ETD in the second temperature range.
[0073] In this embodiment, the absolute value of the slope of the frequency-temperature characteristics of the vibrator 10 in the second temperature range is greater than the absolute value of the slope of the frequency-temperature characteristics in the first temperature range. At this time, the second coefficient is greater than the first coefficient.
[0074] The temperature range RTE in Fig. 7 corresponds to the vicinity of room temperature where the absolute value of the slope of the frequency-temperature characteristics is small in Fig. 1. The temperature range RTA or RTC corresponding to the first temperature range corresponds to a temperature range where the absolute value of the slope of the frequency-temperature characteristics is larger than that of the vicinity of room temperature, and the temperature range RTB or RTD corresponding to the second temperature range corresponds to a temperature range where the absolute value of the slope of the frequency-temperature characteristics is even larger than that of the temperature range RTA or RTC.
[0075] According to this embodiment, the temperature data TD in the first temperature range is multiplied by the first coefficient, and the temperature data TD in the second temperature range in which the absolute value of the slope of the frequency-temperature characteristic is larger than that of the first temperature range is multiplied by the second coefficient larger than the first coefficient. This allows the address allocation of the lookup table 131 to be larger for a temperature range in which the absolute value of the slope of the frequency-temperature characteristic is larger.
[0076] In this embodiment, the second temperature range is adjacent to the first temperature range and is higher than the first temperature range. The arithmetic circuit 120 includes a first start point setting circuit that sets a first start temperature of the first temperature range, a first multiplication circuit that multiplies a first difference temperature data indicating an increase in the temperature data TD relative to the temperature data TD at the first start temperature by a first gain, a second start point setting circuit that sets a second start temperature of the second temperature range, a second multiplication circuit that multiplies a second difference temperature data indicating an increase in the temperature data TD relative to the temperature data TD at the second start temperature by a second gain, and an addition circuit that adds the temperature data TD, the output of the first multiplication circuit, and the output of the second multiplication circuit.
[0077] In the example of FIG. 7, the temperature range RTA corresponds to the first temperature range, the temperature range RTB corresponds to the second temperature range, the start temperature Ta corresponds to the first start temperature, and the start temperature Tb corresponds to the second start temperature. TD=160 corresponds to the temperature data TD at the first start temperature, and TD=224 corresponds to the temperature data TD at the second start temperature. In FIG. 8, the start point setting circuit KSA corresponds to the first start point setting circuit, the multiplication circuit MLA corresponds to the first multiplication circuit, the start point setting circuit KSB corresponds to the second start point setting circuit, and the multiplication circuit MLB corresponds to the second multiplication circuit. The difference temperature data KSAQ corresponds to the first difference temperature data, and the difference temperature data KSBQ corresponds to the second difference temperature data. The gain 0.5 multiplied by the multiplication circuit MLA corresponds to the first gain, and the gain 1 multiplied by the multiplication circuit MLB corresponds to the second gain.
[0078] According to this embodiment, the temperature data TD corresponding to a temperature higher than the first start temperature and lower than the second temperature is multiplied by the first gain, and the result is added to the temperature data TD, which is equivalent to multiplying the temperature data TD in the first temperature range by the first coefficient. That is, the first coefficient is a value obtained by adding 1 to the first gain. Also, the temperature data TD corresponding to a temperature higher than the second temperature is multiplied by the first gain and the second gain, and the result is added to the temperature data TD, which is equivalent to multiplying the temperature data TD in the second temperature range by the second coefficient. That is, the second coefficient is a value obtained by adding 1 to the first gain and the second gain.
[0079] In this embodiment, the first multiplier circuit multiplies the first gain by the first bit shift, and the second multiplier circuit multiplies the second gain by the second bit shift.
[0080] 8, the multiplication circuit MLA includes a bit shift circuit, the bit shift performed by the bit shift circuit corresponds to a first bit shift, and the gain of the bit shift corresponds to a first gain. Also, the multiplication circuit MLB includes a bit shift circuit, the bit shift performed by the bit shift circuit corresponds to a second bit shift, and the gain of the bit shift corresponds to a second gain.
[0081] According to this embodiment, the calculation load of the multiplication can be reduced by using a bit shift for multiplication of the temperature data TD by the first gain and for multiplication of the temperature data TD by the second gain. For example, in an oscillator that requires low power consumption such as a real-time clock device, it is possible to improve the temperature compensation accuracy while suppressing an increase in power consumption.
[0082] 4. Temperature sensor circuit 9 shows a detailed configuration example of the temperature sensor circuit 110. The temperature sensor circuit 110 includes an enable counter 111, a ring oscillator 112, and a counter 113.
[0083] The enable counter 111 outputs an enable signal ENR that becomes active during an enable period based on the clock signal CLK output by the oscillation circuit 160. Specifically, the enable counter 111 changes the enable signal ENR from inactive to active when the count starts, counts the number of clocks of the clock signal CLK, and changes the enable signal ENR from active to inactive when the count value reaches a set value CTSET. The set value CTSET is stored in, for example, the register 170 in Fig. 2, and it is possible to change the detection resolution of the temperature sensor circuit 110 by changing the set value CTSET.
[0084] The ring oscillator 112 oscillates during the enable period and outputs an oscillation signal RNGQ. The ring oscillator 112 includes, for example, a NAND circuit and an even number of inverters connected in series between the output of the NAND circuit and a first input. An enable signal ENR is input to a second input of the NAND circuit. In this case, a high level corresponds to active, and when the enable signal ENR is at a high level, the ring oscillator 112 oscillates, and when the enable signal ENR is at a low level, the oscillation of the ring oscillator 112 stops. Note that the above configuration is just an example, and the configuration of the ring oscillator 112 is not limited to the above.
[0085] The counter 113 performs a counting operation based on the oscillation signal RNGQ of the ring oscillator 112, and outputs temperature data TD based on the count value. Specifically, the counter 113 counts the number of pulses of the oscillation signal RNGQ output during the enable period, and outputs the count value as the temperature data TD. Note that the counter 113 only needs to perform a counting operation based on the oscillation signal RNGQ, and may, for example, count the number of pulses of a signal obtained by dividing the oscillation signal RNGQ. Also, the counter 113 only needs to output the temperature data TD based on the count value, and may, for example, output the temperature data TD by smoothing the count value.
[0086] The temperature sensor circuit 110 measures the temperature intermittently by intermittent operation. Specifically, an enable period and a disable period are set alternately, and the temperature sensor circuit 110 outputs temperature data TD measured during each enable period. The disable period is a period during which the enable signal ENR is inactive. The length of the disable period is, for example, sufficiently longer than the enable period. The temperature sensor circuit 110 may measure the temperature continuously. For example, the ring oscillator 112 may oscillate continuously, and the counter 113 may be reset at regular intervals defined by the clock signal CLK, and the count value during each regular interval may be output as temperature data.
[0087] By configuring the temperature sensor circuit 110 using the ring oscillator 112 as described above, it is possible to reduce power consumption and layout area compared to the temperature sensor circuit using the above-mentioned analog temperature sensor and A / D converter.
[0088] Furthermore, in a temperature sensor circuit using an analog temperature sensor and an A / D converter, in order to increase the detection resolution, it is necessary to reduce noise in the analog temperature sensor or increase the resolution of the A / D converter. In this regard, according to this embodiment, it is possible to increase the detection resolution simply by extending the enable period.
[0089] Moreover, by the temperature sensor circuit 110 performing intermittent operation, the power consumption of the temperature sensor circuit 110 can be further reduced.
[0090] 5. Oscillation circuits, frequency adjustment circuits 10 shows a detailed configuration example of the adjustment circuit 154 included in the frequency adjustment circuit 150, and a connection configuration example of the vibrator 10, the oscillation circuit 160, and the adjustment circuit 154. The adjustment circuit 154 includes capacitor array circuits CAC1 and CAC2.
[0091] One end of the vibrator 10 is connected to a terminal TX1, and the other end of the vibrator 10 is connected to a terminal TX2. The terminals TX1 and TX2 are terminals of the circuit device 100, and are, for example, pads provided on a semiconductor substrate. One end of a capacitor CX1 is connected to the terminal TX1, and the other end of the capacitor CX1 is connected to a ground node. One end of a capacitor CX2 is connected to the terminal TX2, and the other end of the capacitor CX2 is connected to the ground node. The capacitors CX1 and CX2 are provided, for example, as external components of the circuit device 100.
[0092] The oscillator circuit 160 generates a drive signal SDR by inverting and amplifying a signal SIN input from the other end of the vibrator 10 via a terminal TX2, and outputs the drive signal SDR to one end of the vibrator 10 via a terminal TX1. The oscillator circuit 160 is, for example, an inverter, and an input node of the inverter is connected to the terminal TX2, and an output node is connected to the terminal TX1. However, the oscillator circuit 160 is not limited to this, and may be various amplifier circuits such as an amplifier circuit using a bipolar transistor. The oscillation signal is, for example, the drive signal SDR, but is not limited to this, and the oscillation signal may be a signal in an oscillation loop formed by the oscillator circuit 160 and the vibrator 10. In addition, the drive signal SDR may be output as the clock signal CLK in FIG. 2, and the circuit device 100 may include an output circuit that outputs the clock signal CLK by buffering or dividing the drive signal SDR.
[0093] The capacitor array circuit CAC1 is connected to a terminal TX1, and the capacitor array circuit CAC2 is connected to a terminal TX2. The configuration of the capacitor array circuit CAC1 will be described below as an example, but the capacitor array circuit CAC2 has a similar configuration.
[0094] The capacitor array circuit CAC1 includes 1st to mth capacitors and 1st to mth switches, where m is an integer equal to or greater than 2. The jth capacitor and the jth switch are connected in series between the terminal TX1 and the ground node. j=1, 2, . . . , m. Each of the 1st to mth switches is controlled to be on or off by adjustment data QCL from the interpolator 152. As a result, the capacitance value of the capacitor array circuit CAC1 is controlled in accordance with the adjustment data QCL, and the oscillation frequency is adjusted.
[0095] The circuit device of the present embodiment described above includes an oscillation circuit that generates an oscillation signal using a vibrator, a frequency adjustment circuit that adjusts the oscillation frequency of the oscillation circuit based on frequency adjustment data, a temperature sensor circuit that outputs temperature data, an arithmetic circuit, and a memory circuit. The arithmetic circuit outputs converted temperature data by performing a conversion process on the temperature data in which the slope of the converted temperature data relative to the temperature data in a first temperature range is different from the slope of the converted temperature data relative to the temperature data in a second temperature range. The memory circuit stores a lookup table that indicates the correspondence between the converted temperature data and the frequency adjustment data.
[0096] According to this embodiment, the temperature data is converted into converted temperature data so that the slope of the converted temperature data varies depending on the temperature range. This makes it possible to adjust the slope of the converted temperature data depending on the temperature sensitivity in the temperature characteristics of the oscillation frequency. Since the converted temperature data specifies an address in the lookup table, the greater the slope of the converted temperature data, the greater the number of addresses per unit temperature. This makes it possible to realize highly accurate temperature compensation while efficiently using a memory with a finite capacity.
[0097] In addition, in this embodiment, the arithmetic circuit may output the converted temperature data so that the number of data per unit temperature of the frequency adjustment data output from the lookup table using the converted temperature data corresponding to the first temperature range is different from the number of data per unit temperature of the frequency adjustment data output from the lookup table using the converted temperature data corresponding to the second temperature range.
[0098] The larger the number of data points per unit temperature, the smaller the temperature intervals at which frequency adjustment data is stored in the lookup table, enabling highly accurate temperature compensation even in a temperature range with high temperature sensitivity. On the other hand, the smaller the number of data points per unit temperature, the larger the temperature intervals at which frequency adjustment data is stored in the lookup table, improving memory utilization efficiency in a temperature range with low temperature sensitivity.
[0099] Furthermore, in this embodiment, the arithmetic circuit may multiply the temperature data in the first temperature range by a first coefficient, but may not multiply the temperature data in the second temperature range by a coefficient.
[0100] According to this embodiment, the slope of the converted temperature data in the first temperature range is set by the first coefficient, and the slope of the converted temperature data in the second temperature range is 1. This allows the arithmetic circuit to execute a conversion process in which the slope of the converted temperature data in the first temperature range differs from the slope of the converted temperature data in the second temperature range.
[0101] In this embodiment, the absolute value of the slope of the frequency-temperature characteristic of the vibrator in the first temperature range may be greater than the absolute value of the slope of the frequency-temperature characteristic in the second temperature range.
[0102] According to this embodiment, the temperature data in the first temperature range in which the absolute value of the slope of the frequency-temperature characteristic is large is multiplied by the first coefficient larger than 1, so that the absolute value of the slope of the converted temperature data in the first temperature range is larger than 1. This allows the address allocation of the lookup table to be larger in the temperature range in which the absolute value of the slope of the frequency-temperature characteristic is large.
[0103] In this embodiment, the first temperature range may be adjacent to the second temperature range and higher than the second temperature range. The arithmetic circuit may include a first start point setting circuit that sets a first start temperature of the first temperature range, a first multiplication circuit that multiplies differential temperature data indicating an increase in temperature data with respect to temperature data at the first start temperature by a first gain, and an addition circuit that adds the temperature data and an output of the first multiplication circuit.
[0104] According to this embodiment, the temperature data corresponding to a temperature higher than the first start temperature is multiplied by the first gain, and the temperature data is added to the multiplied data, which is equivalent to multiplying the temperature data in the first temperature range by the first coefficient. That is, the first coefficient is a value obtained by adding 1 to the first gain. Moreover, the temperature data in the second temperature range is simply output from the adder circuit as converted temperature data, and therefore the temperature data in the second temperature range is not multiplied by a coefficient.
[0105] In this embodiment, the first multiplier circuit may multiply the temperature data by a first gain using a first bit shift.
[0106] According to this embodiment, the calculation load of the multiplication can be reduced by using a bit shift to multiply the temperature data by the first gain, which makes it possible to improve the accuracy of temperature compensation while suppressing an increase in power consumption.
[0107] In this embodiment, the arithmetic circuit may multiply the temperature data in the first temperature range by a first coefficient, and multiply the temperature data in the second temperature range by a second coefficient different from the first coefficient.
[0108] According to this embodiment, the slope of the converted temperature data in the first temperature range is set by the first coefficient, and the slope of the converted temperature data in the second temperature range is set by the second coefficient, so that the arithmetic circuit can execute a conversion process in which the slope of the converted temperature data in the first temperature range is different from the slope of the converted temperature data in the second temperature range.
[0109] In this embodiment, the absolute value of the slope of the frequency-temperature characteristic of the vibrator in the second temperature range may be greater than the absolute value of the slope of the frequency-temperature characteristic in the first temperature range. The second coefficient may be greater than the first coefficient.
[0110] According to this embodiment, the temperature data in the first temperature range is multiplied by the first coefficient, and the temperature data in the second temperature range, in which the absolute value of the slope of the frequency-temperature characteristic is larger than that of the first temperature range, is multiplied by the second coefficient larger than the first coefficient. This allows the address allocation of the lookup table to be larger for a temperature range in which the absolute value of the slope of the frequency-temperature characteristic is larger.
[0111] In this embodiment, the second temperature range may be adjacent to the first temperature range and higher than the first temperature range. The arithmetic circuit may include a first start point setting circuit that sets a first start temperature of the first temperature range, and a first multiplication circuit that multiplies first difference temperature data indicating an increase in temperature data relative to temperature data at the first start temperature by a first gain. The arithmetic circuit may also include a second start point setting circuit that sets a second start temperature of the second temperature range, and a second multiplication circuit that multiplies second difference temperature data indicating an increase in temperature data relative to temperature data at the second start temperature by a second gain. The arithmetic circuit may also include an adder circuit that adds the temperature data, an output of the first multiplication circuit, and an output of the second multiplication circuit.
[0112] According to this embodiment, the temperature data corresponding to a temperature higher than the first start temperature and lower than the second temperature is multiplied by the first gain, and the result is added to the temperature data, which is equivalent to multiplying the temperature data in the first temperature range by the first coefficient. That is, the first coefficient is a value obtained by adding 1 to the first gain. Also, the temperature data corresponding to a temperature higher than the second temperature is multiplied by the first gain and the second gain, and the result is added to the temperature data, which is equivalent to multiplying the temperature data in the second temperature range by the second coefficient. That is, the second coefficient is a value obtained by adding 1 to the first gain and the second gain.
[0113] In this embodiment, the first multiplier circuit may multiply the temperature data by a first gain using a first bit shift, and the second multiplier circuit may multiply the temperature data by a second gain using a second bit shift.
[0114] According to this embodiment, the calculation load of the multiplication can be reduced by using a bit shift for multiplication of the temperature data by the first gain and for multiplication of the temperature data by the second gain, thereby improving the accuracy of temperature compensation while suppressing an increase in power consumption.
[0115] In the present embodiment, the temperature sensor circuit may include a ring oscillator and a counter. The counter may perform a counting operation based on an oscillation signal of the ring oscillator and output temperature data based on a count value.
[0116] According to this embodiment, power consumption and layout area can be reduced compared to a temperature sensor circuit using an analog temperature sensor and an A / D converter. Also, since the detection resolution can be increased simply by lengthening the enable period, the detection resolution can be improved with a simpler method compared to a temperature sensor circuit using an analog temperature sensor and an A / D converter.
[0117] Moreover, an oscillator of the present embodiment includes any one of the circuit devices described above and a resonator.
[0118] Although the present embodiment has been described in detail as above, it will be readily understood by those skilled in the art that many modifications are possible that do not substantially deviate from the novel matters and effects of the present disclosure. Therefore, all such modifications are intended to be included in the scope of the present disclosure. For example, a term described at least once in the specification or drawings together with a different term having a broader meaning or synonymy can be replaced with that different term anywhere in the specification or drawings. In addition, all combinations of the present embodiment and modifications are also included in the scope of the present disclosure. In addition, the configurations and operations of the circuit device, resonator, and oscillator are not limited to those described in the present embodiment, and various modifications are possible. [Explanation of symbols]
[0119] 10... resonator, 100... circuit device, 110... temperature sensor circuit, 111... enable counter, 112... ring oscillator, 113... counter, 120... arithmetic circuit, 126... adder circuit, 130... memory circuit, 131... lookup table, 150... frequency adjustment circuit, 152... interpolator circuit, 154... adjustment circuit, 160... oscillation circuit, 170... register, 200... oscillator, CLa, CLb... frequency adjustment data, EQOF... offset, ETD... conversion temperature data, KSA, KSB, KSC, KSD... start point setting circuit, KSAQ, KSBQ, KSCQ, KSDQ... differential temperature data, MLA, MLB, MLC, MLD... multiplier circuit, RTA, RTB, RTC, RTD, RTE... temperature range, TD... temperature data, Ta, Tb, Tc, Td... start temperature
Claims
1. an oscillator circuit for generating an oscillation signal using an oscillator; a frequency adjustment circuit that adjusts an oscillation frequency of the oscillation circuit based on frequency adjustment data; a temperature sensor circuit that outputs temperature data; a slope of the converted temperature data relative to the temperature data in a first temperature range and a slope of the converted temperature data relative to the temperature data in a second temperature range The temperature data is converted into a different gradient from the gradient of the converted temperature data. a calculation circuit for converting the temperature data into the converted temperature data and outputting the converted temperature data; A look-up table representing the correspondence between the conversion temperature data and the frequency adjustment data is stored. A memory circuit for storing the Including, The arithmetic circuit multiplies the temperature data in the first temperature range by a first coefficient, The temperature data in the second temperature range is not multiplied by a coefficient; The first temperature range is adjacent to the second temperature range and is higher than the second temperature range. degree range, The arithmetic circuit includes: a first start point setting circuit that sets a first start temperature of the first temperature range; A difference indicating an increase in the temperature data relative to the temperature data at the first start temperature. a first multiplication circuit that multiplies the temperature data by a first gain; an adder circuit that adds the temperature data and an output of the first multiplier circuit; A circuit device comprising:
2. 2. The circuit device according to claim 1, The arithmetic circuit calculates the lookup table by the converted temperature data corresponding to the first temperature range. The number of data per unit temperature of the frequency adjustment data output from the up-up table and The converted temperature data corresponding to the second temperature range is output from the look-up table. The number of data per unit temperature of the frequency adjustment data inputted is different from the number of data per unit temperature of the frequency adjustment data inputted. A circuit device that outputs temperature data.
3. 3. The circuit device according to claim 1, The absolute value of the slope of the frequency-temperature characteristic of the vibrator in the first temperature range is the absolute value of the slope of the frequency-temperature characteristic in a temperature range of The circuit device is characterized in that the first coefficient is greater than one.
4. 4. The circuit device according to claim 1, The first multiplication circuit calculates the first gain by a first bit shift on the temperature data. A circuit device for multiplying
5. An oscillator circuit for generating an oscillation signal using an oscillator; a frequency adjustment circuit that adjusts an oscillation frequency of the oscillation circuit based on frequency adjustment data; a temperature sensor circuit that outputs temperature data; a slope of the converted temperature data relative to the temperature data in a first temperature range and a slope of the converted temperature data relative to the temperature data in a second temperature range The temperature data is converted into a different gradient from the gradient of the converted temperature data. a calculation circuit for converting the temperature data into the converted temperature data and outputting the converted temperature data; A look-up table representing the correspondence between the conversion temperature data and the frequency adjustment data is stored. A memory circuit for storing the Including, The arithmetic circuit multiplies the temperature data in the first temperature range by a first coefficient, multiplying the temperature data in a second temperature range by a second coefficient different from the first coefficient; The second temperature range is adjacent to the first temperature range and is higher than the first temperature range. is the range, The arithmetic circuit includes: a first start point setting circuit that sets a first start temperature of the first temperature range; A second temperature data indicating an increase in the temperature data relative to the temperature data at the first start temperature a first multiplication circuit that multiplies one differential temperature data by a first gain; a second start point setting circuit that sets a second start temperature of the second temperature range; A second temperature data indicating an increase in the temperature data relative to the temperature data at the second start temperature a second multiplication circuit that multiplies the second difference temperature data by a second gain; An adder that adds the temperature data, the output of the first multiplier circuit, and the output of the second multiplier circuit. A computation circuit, A circuit device comprising:
6. 6. The circuit device according to claim 5, The absolute value of the slope of the frequency-temperature characteristic of the vibrator in the second temperature range is the absolute value of the slope of the frequency-temperature characteristic in a temperature range of The second coefficient is greater than the first coefficient.
7. 7. The circuit device according to claim 5, The first multiplication circuit calculates the first gain by a first bit shift on the temperature data. Multiply by The second multiplication circuit calculates the second gain by a second bit shift on the temperature data. A circuit device for multiplying
8. 8. The circuit device according to claim 1, The temperature sensor circuit includes: A ring oscillator and The counting operation is performed based on the oscillation signal of the ring oscillator, and based on the count value, A counter for outputting the temperature data based on the temperature data; A circuit device comprising:
9. A circuit arrangement according to any one of claims 1 to 8; The oscillator; 13. An oscillator comprising:
Citation Information
Patent Citations
Temperature compensation device for output frequency
JP1982145409A
Temperature compensating circuit
JP1988272225A
Temperature compensation crystal oscillator
JP1991126304A
Temperature compensation type crystal oscillator
JP1993347512A
Digital temperature compensated oscillator and temperature compensating method for the same
JP1998308630A
