Clock calibration method and system, low-temperature-drift adjustable calibration clock oscillator, chip

CN115857621BActive Publication Date: 2026-10-30SHANGHAI EASTSOFT MICROELECTRONICS
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211501258.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-28
Publication Date
2026-10-30
Estimated Expiration
2042-11-28

AI Technical Summary

Technical Problem

通常片内HRC会在出厂时进行校准校验,从而保证常温下高精度;如果出厂时进行全温度校准校验,非常耗时、成本昂贵,一般会考虑实际应用时实时进行调校

Benefits of technology

[0040]本发明实施例提供的时钟校准方法及系统、通过实时感应环境温度,并根据所述环境温度生成温感电压;通过将所述温感电压与可调且等分的分压电压进行比较,根据比较结果确定误差补偿值;根据所述误差补偿值确定实时校准值;根据所述实时校准值对时钟振荡器进行校准。本发明方案通过将所述温感电压与可调且等分的分压电压进行比较的方式,使得在方案的实现上更灵活,可以方便地通过数字控制逻辑对时钟振荡器实现实时校准,校准系统可靠稳定,具有较佳的可移植性,相对于现有其它方式,校准系统的成本也更低。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115857621B_ABST
    Figure CN115857621B_ABST
Patent Text Reader

Abstract

The application discloses a clock calibration method and system, a low-temperature-drift adjustable calibration clock oscillator and a chip. The method comprises the following steps: sensing an environmental temperature in real time, and generating a temperature sensing voltage according to the environmental temperature; comparing the temperature sensing voltage with a divided voltage which is adjustable and equal, and determining an error compensation value according to a comparison result; determining a real-time calibration value according to the error compensation value; and calibrating a clock oscillator according to the real-time calibration value. By using the application, real-time calibration of a high-speed clock in a chip with temperature change can be realized, the stability of a chip clock main frequency is improved, and the reliability of a digital module in a chip system is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of oscillator technology, specifically to a clock calibration method and system, and also to a low-temperature drift adjustable clock oscillator and a chip. Background Technology

[0002] The performance of digital modules in a chip system is significantly related to the clock; a faster clock usually means faster performance. Currently, many applications prefer to use the high-speed RC oscillator (HRC) inside the MCU (Microcontroller Unit) as the system clock. However, the stability of an internal HRC is generally lower than that of an external crystal oscillator, especially in terms of temperature drift. Therefore, designing a clock circuit with low temperature drift and high accuracy is of great significance. Typically, the on-chip HRC is calibrated at the factory to ensure high accuracy at room temperature. However, performing full-temperature calibration at the factory is very time-consuming and expensive; therefore, real-time calibration during actual application is generally considered.

[0003] However, many current solutions for real-time calibration of the on-chip HRC clock in applications use an ADC (Analog-to-digital converter) to sample the temperature sensing signal and convert the digital value as a calibration reference. This solution has a high chip cost and generally requires software intervention in the calibration process, making it inconvenient to use. Summary of the Invention

[0004] One embodiment of the present invention provides a clock calibration method and system that can perform real-time calibration of the on-chip high-speed clock, ensuring the reliability of the operation of digital modules in the chip system.

[0005] Another aspect of the present invention provides a low-temperature drift adjustable clock oscillator and a chip to ensure clock stability and thus ensure the reliability of the chip system.

[0006] Therefore, the embodiments of the present invention provide the following technical solutions:

[0007] On one hand, embodiments of the present invention provide a clock calibration method, the method comprising:

[0008] The system senses the ambient temperature in real time and generates a temperature-sensing voltage based on the ambient temperature.

[0009] The error compensation value is determined by comparing the temperature sensing voltage with an adjustable and equally divided voltage divider.

[0010] The real-time calibration value is determined based on the error compensation value;

[0011] The clock oscillator is calibrated based on the real-time calibration value.

[0012] Optionally, the step of comparing the temperature-sensing voltage with an adjustable voltage divider and determining the error compensation value based on the comparison result includes:

[0013] The reference voltage is divided into equal parts to obtain the individual voltages.

[0014] The temperature sensing voltage is compared with the voltage divider voltage, and the voltage divider factor is adjusted to determine the voltage divider factor before the comparison result changes;

[0015] Calculate the difference between the previous voltage division factor and the initial factor;

[0016] The error compensation value is determined based on the difference.

[0017] Optionally, determining the error compensation value based on the difference includes:

[0018] The error compensation value is determined based on the difference and the preset mapping relationship; or

[0019] The error compensation value is determined based on the difference and the preset calculation formula.

[0020] Optionally, determining the real-time calibration value based on the error compensation value includes: calculating the real-time calibration value based on the error compensation value and the factory calibration value of the clock oscillator.

[0021] On the other hand, embodiments of the present invention also provide a clock calibration system, the system comprising:

[0022] A temperature sensing module is used to sense the ambient temperature in real time and convert the ambient temperature into a temperature sensing voltage output.

[0023] An adjustable voltage divider is used to generate an adjustable and equally divided voltage.

[0024] A comparator is used to compare the temperature sensing voltage with the voltage divided by the adjustable voltage divider, and output the comparison result.

[0025] A control unit is used to perform a calibration process, the calibration process including: adjusting the voltage division factor of the adjustable voltage divider, determining an error compensation value based on the comparison result, determining a real-time calibration value based on the error compensation value, and calibrating the clock oscillator based on the real-time calibration value.

[0026] Optionally, the control unit includes:

[0027] A controller is used to adjust the voltage division ratio of the adjustable voltage divider to obtain the previous voltage division ratio that causes the comparison result to jump.

[0028] The data processing unit is used to calculate the difference between the previous voltage divider and the initial voltage divider, determine the error compensation value based on the difference, determine the real-time calibration value based on the error compensation value, and output the real-time calibration value to the calibration interface of the clock oscillator.

[0029] Optionally, the controller is further configured to set the range of the adjustable voltage divider, the range including a coarse adjustment range and a fine adjustment range; when adjusting the voltage division ratio of the adjustable voltage divider, the controller first adjusts it in the coarse adjustment range; after the comparison result changes, it switches to the fine adjustment range for adjustment.

[0030] Optionally, the coarse adjustment level includes one or more levels; when there are multiple coarse adjustment levels, the controller adjusts the coarse adjustment level by decreasing the level one by one.

[0031] Optionally, the data processor determines the error compensation value based on the difference and a preset mapping relationship, or determines the error compensation value based on the difference and a preset calculation formula.

[0032] Optionally, the data processing unit calculates the real-time calibration value based on the error compensation value and the factory calibration value of the clock oscillator.

[0033] Optionally, the system further includes a timer for triggering the control unit to periodically execute the calibration process.

[0034] Optionally, the comparator is continuously enabled during the operation of the clock calibration system, or is enabled by the timer.

[0035] Optionally, the controller, the data processing unit, and the timer all use the clock output by the clock oscillator as their operating clock.

[0036] On the other hand, embodiments of the present invention also provide a low-temperature drift adjustable clock oscillator, comprising: a clock oscillator and a clock calibration system as described above; the clock oscillator has a calibration interface;

[0037] The clock calibration system is used to sense the ambient temperature in real time, determine the real-time calibration value, and transmit the real-time calibration value to the clock oscillator through the calibration interface.

[0038] The clock oscillator changes its oscillation frequency according to the real-time calibration value.

[0039] On the other hand, embodiments of the present invention also provide a chip, characterized in that it includes the aforementioned low-temperature drift adjustable clock oscillator.

[0040] The clock calibration method and system provided in this invention involve sensing the ambient temperature in real time and generating a temperature-sensing voltage based on the ambient temperature; comparing the temperature-sensing voltage with an adjustable and equally divided voltage divider, and determining an error compensation value based on the comparison result; determining a real-time calibration value based on the error compensation value; and calibrating the clock oscillator based on the real-time calibration value. This invention's method of comparing the temperature-sensing voltage with an adjustable and equally divided voltage divider makes the implementation more flexible, allowing for convenient real-time calibration of the clock oscillator through digital control logic. The calibration system is reliable and stable, has good portability, and is less expensive than other existing methods.

[0041] Accordingly, the low-temperature drift adjustable clock oscillator and chip, including those in the aforementioned clock calibration system, can achieve better operational stability and reliability. Attached Figure Description

[0042] Figure 1 This is a flowchart of a clock calibration method provided in an embodiment of the present invention;

[0043] Figure 2 This is a schematic diagram of a clock calibration system provided in an embodiment of the present invention;

[0044] Figure 3 This is another structural schematic diagram of the clock calibration system provided in this embodiment of the invention;

[0045] Figure 4 This is a flowchart of the calibration process controlled by the controller in the clock calibration system provided in this embodiment of the invention;

[0046] Figure 5 This is another structural schematic diagram of the clock calibration system provided in the embodiments of the present invention. Detailed Implementation

[0047] To make the above-mentioned objectives, features and beneficial effects of the present invention more apparent and understandable, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0048] This invention addresses the issue of clock signal drift in on-chip high-speed clock oscillators due to ambient temperature changes, which can affect the stability of on-chip digital modules, especially in MCU (Microcontroller Unit) applications where high clock circuit specifications are crucial as the main control chip. Furthermore, MCU chips are small in size, have low power consumption, and their operating temperature is relatively close to that of the ambient temperature. The clock calibration method and system provided in this invention involve: sensing the ambient temperature in real time and generating a temperature-sensing voltage based on the ambient temperature; comparing the temperature-sensing voltage with an adjustable and equally divided voltage divider to determine an error compensation value; determining a real-time calibration value based on the error compensation value; and calibrating the clock oscillator based on the real-time calibration value.

[0049] like Figure 1 The diagram shown is a flowchart of a clock calibration method provided in an embodiment of the present invention. The clock calibration method of this embodiment includes the following steps:

[0050] Step 101: Real-time sensing of ambient temperature, and generation of temperature sensing voltage based on the ambient temperature.

[0051] Step 102: By comparing the temperature sensing voltage with an adjustable and equally divided voltage divider, an error compensation value is determined based on the comparison result.

[0052] Specifically, the error compensation value can be determined by comparing it with different voltage values. In a non-limiting embodiment, a reference voltage can be divided into equal voltages to obtain the individual voltage values.

[0053] It should be noted that the reference voltage VREF can be the system power supply voltage VDD, or a voltage generated in other ways, and this embodiment of the invention does not limit the specific voltage.

[0054] Specifically, the reference voltage VREF can be divided into n equal parts, where n can be 32, 64, 128, etc. In practical applications, the value of n can be set according to the adjustment accuracy requirements.

[0055] When calibrating the clock, the temperature-sensing voltage is compared with each voltage divider, and the voltage divider factor is adjusted sequentially. That is, the voltage divider voltage compared with the temperature-sensing voltage is changed, and the voltage divider factor before the comparison result changes is determined.

[0056] The voltage divider voltage compared with the temperature sensing voltage is Where x is the voltage division factor. For example, if the reference voltage VREF = 2.048V and n = 128, then each voltage division is: 2.048V / 128 = 0.016V = 16mV. If the voltage division factor x = 80, then the current output voltage is 16mV × 80 = 1280mV.

[0057] Assuming the voltage divider is When the comparison result is low, the voltage divider is adjusted to... When the comparison result changes from low to high, or vice versa, it changes from high to low.

[0058] The above changes in the comparison results indicate that the voltage divider voltage... It is closer to the temperature-sensing voltage. Therefore, the voltage divider factor before the change in the comparison result can be determined, i.e., XRun.

[0059] It should be noted that the above adjustments to the partial voltage ratios are made in ascending order. In practical applications, adjustments can also be made in descending order. If this method is used, then the partial voltage ratio prior to the change in the comparison result should be XRun+1.

[0060] After obtaining the previous voltage divider factor XRun, calculate the difference Dx between the previous voltage divider factor XRun and the initial factor XIni, and then determine the error compensation value EC based on the difference Dx.

[0061] The initial multiple XIni refers to the initial multiple of the corresponding equipment or system at the time of its manufacture. That is, it is the initial multiple after calibration before the corresponding equipment or system is put into operation, and it is a factory parameter. When determining the error compensation value based on the difference Dx, the error compensation value can be determined according to the difference and a preset mapping relationship; or it can be determined according to the difference and a preset calculation formula. This embodiment of the invention does not limit the specific method used.

[0062] It should be noted that in practical applications, after the clock oscillator has been calibrated at the factory, the temperature drift calibration process provided by this invention should be performed immediately during factory production testing to obtain the corresponding initial multiple XIin as the calibration reference for subsequent actual operation.

[0063] Additionally, it should be noted that in practical applications, to determine the error compensation value corresponding to the temperature-sensing voltage more quickly and accurately, voltage dividers of different granularities can be set. Accordingly, when adjusting the voltage divider compared to the temperature-sensing voltage, a coarse adjustment can be performed first to find the voltage divider closest to the temperature-sensing voltage at the corresponding granularity. Then, within the range of this coarse-grained voltage divider, a fine adjustment is performed to determine the voltage divider even closer to the temperature-sensing voltage. Furthermore, based on the current voltage divider granularity and the previous voltage divider multiple at the current granularity, the previous voltage divider multiple XRun is calculated.

[0064] Step 103: Determine the real-time calibration value based on the error compensation value.

[0065] Specifically, the real-time calibration value is calculated based on the error compensation value EC and the factory calibration value of the clock oscillator. The factory calibration value refers to the parameter value obtained by calibrating the clock oscillator before it leaves the factory.

[0066] Step 104: Calibrate the clock oscillator according to the real-time calibration value.

[0067] Typically, clock oscillators have a calibration interface that allows for real-time calibration. By modifying the calibration value through this interface, the clock output frequency can be changed in real time, thus calibrating the clock oscillator. Therefore, the real-time calibration value obtained in step 103 can be input into the clock oscillator's calibration interface, thereby changing its calibration value and causing the clock oscillator to calibrate according to that real-time calibration value.

[0068] The clock calibration method provided in this invention involves sensing the ambient temperature in real time and generating a temperature-sensing voltage based on that temperature. This temperature-sensing voltage is then compared with an adjustable and equally divided voltage divider, and an error compensation value is determined based on the comparison result. A real-time calibration value is then determined based on the error compensation value, and the clock oscillator is calibrated using the real-time calibration value. This invention's method of comparing the temperature-sensing voltage with an adjustable and equally divided voltage divider makes the implementation more flexible. It allows for convenient real-time calibration of the clock oscillator using digital control logic. The calibration system is reliable and stable, has good portability, and is less expensive than other existing methods. Furthermore, the consistency and accuracy requirements of the temperature-sensing voltage and the voltage divider are achieved by the calibration of the corresponding module circuit itself, and this invention does not limit this aspect.

[0069] Accordingly, embodiments of the present invention also provide a clock calibration system, such as... Figure 2 The diagram shown is a structural schematic of the system.

[0070] The clock calibration system of this embodiment includes the following parts:

[0071] Temperature sensing module 201 is used to sense the ambient temperature in real time and convert the ambient temperature into a temperature sensing voltage output.

[0072] Adjustable voltage divider 202 is used to generate adjustable and equally divided voltages;

[0073] Comparator 203 is used to compare the temperature sensing voltage with the voltage divided by the adjustable voltage divider, and output the comparison result;

[0074] The control unit 204 is used to perform a calibration process, which includes: adjusting the voltage division factor of the voltage divider, determining an error compensation value based on the comparison result, determining a real-time calibration value based on the error compensation value, and calibrating the clock oscillator 300 based on the real-time calibration value. The clock oscillator 300 may be an on-chip clock oscillator.

[0075] One input terminal of the comparator 203 is connected to the output terminal of the temperature sensing module 201, and the other input terminal is connected to the output terminal of the adjustable voltage divider 202. That is, the two input terminals of the comparator 203 receive the temperature-sensing voltage and the voltage divider voltage, respectively. It should be noted that the output terminal of the temperature sensing module 201 can be connected to the positive input terminal of the comparator 203, and correspondingly, the output terminal of the adjustable voltage divider 202 can be connected to the negative input terminal of the comparator 203. Alternatively, the reverse is also possible. For ease of description, Figure 2 In the embodiments described below and in the following embodiments, the first connection method described above will be used as an example for explanation.

[0076] exist Figure 2 In the illustrated embodiment, the temperature sensing module 201 senses the ambient temperature in real time during system operation and outputs the converted temperature sensing voltage to the negative input terminal of the comparator. For example, the temperature sensing voltage range can be 0.8V to 1.4V, corresponding to a temperature range of -40℃ to 105℃, approximately 4.1mV / ℃.

[0077] The adjustable voltage divider 202 divides the reference voltage VREF into n equal parts. The reference voltage can be the system power supply voltage VDD or a voltage generated in other ways.

[0078] The actual output voltage of the adjustable voltage divider 202, i.e., the divided voltage, can be set by the control unit 204. x represents the multiple of the voltage divider's output voltage per division. For example, if VREF is 2.048V and n is 128, then each division voltage is 2.048V / 128 = 0.016V = 16mV. If control unit 204 is configured with x = 80, then the voltage divider's output voltage is 16mV × 80 = 1280mV.

[0079] exist Figure 2In the illustrated embodiment, the temperature sensing voltage is input to the positive input terminal of comparator 203, and the voltage divided by the adjustable voltage divider 202 is input to the negative input terminal. Comparator 203 outputs a high level when the voltage at the positive input terminal is higher than the voltage at the negative input terminal; otherwise, it outputs a low level. The level signal output by the comparator is sent to control unit 204 for judgment and calculation.

[0080] The control unit 204 calculates the real-time calibration value based on the comparison result output by the comparator 203, and outputs the real-time calibration value to the calibration interface of the clock oscillator 300 so that the clock oscillator 300 can be calibrated according to the real-time calibration value.

[0081] The clock calibration system provided in this embodiment of the invention makes the implementation of the scheme more flexible by comparing the temperature sensing voltage with adjustable and equally divided voltage dividers. It can easily achieve real-time calibration of the clock oscillator through digital control logic. The calibration system is reliable and stable, has good portability, and is also less expensive than other existing methods.

[0082] In one non-limiting embodiment, the control and calculation functions of the control unit 204 can be implemented by a corresponding controller and a data processing unit, respectively.

[0083] like Figure 3 The diagram shown is a schematic diagram of another structure of the clock calibration system provided in an embodiment of the present invention.

[0084] In this embodiment, the control unit 204 includes a controller 241 and a data processing unit 242. Wherein:

[0085] The controller 241 is used to adjust the voltage division factor of the adjustable voltage divider to obtain the previous voltage division factor that causes the comparison result output by the comparator 203, i.e., the level signal, to jump.

[0086] The data processing unit 242 is used to calculate the difference between the previous voltage divider and the initial voltage divider, determine the error compensation value based on the difference, determine the real-time calibration value based on the error compensation value, and output the real-time calibration value to the calibration interface of the clock oscillator.

[0087] In the clock calibration system of this invention, the controller 241 is a purely digital module used to control the entire clock temperature compensation process. A major task of the controller 241 is to modify the voltage division factor x of the adjustable voltage divider 202, so that when the voltage is a multiple of x, the comparator 203 outputs a high level, and when the voltage is a multiple of x+1, the comparator 203 outputs a low level.

[0088] In practical applications, the controller 241 can configure the voltage divider multiplier x at regular time intervals, such as 100ms or 500ms. The specific control method is as follows: first coarse adjustment, then fine adjustment. Coarse adjustment involves increasing the multiplier by 16 levels each time until the comparator outputs a low level for the first time. Fine adjustment involves decreasing the multiplier by 1 level each time until the comparator outputs a high level again.

[0089] Furthermore, in order to determine the error compensation value corresponding to the temperature sensing voltage more quickly and accurately, different ranges can be set for the adjustable voltage divider 202 to output voltages with different granularities.

[0090] Accordingly, the controller 241 can set the range of the adjustable voltage divider 202. The specific control method is: first coarse adjustment and then fine adjustment. For example, coarse adjustment can increase the range by 16 levels each time until the comparator 203 outputs a low level for the first time. Fine adjustment can decrease the range by 1 level each time until the comparator 203 outputs a high level again.

[0091] For example, if the current temperature sensing voltage is 1.08V, after the controller 241 starts, it first starts from x=16, that is, sets x to 16. At this time, the output voltage of the adjustable voltage divider 202 is 16mV×16=256mV. The temperature sensing voltage is greater than the voltage divided by the voltage divider, so the comparator 203 outputs a high level. Then the controller 241 sets x to 32, and the comparator 203 still outputs a high level until x=80. At this time, the output voltage of the adjustable voltage divider 202 is 16mV×80=1280mV, and the comparator 203 will output a low level for the first time. Then, fine-tuning begins, decreasing x from 80. Controller 241 sets x = 79. At this point, comparator 203 will still output a low level. Controller 241 continues to set x = 78... until x = 67. At this point, the adjustable voltage divider 202 outputs a voltage of 16mV × 67 = 1072mV, and comparator 203 will output a high level again. Controller 241 then stops this round of setting.

[0092] After a complete set of adjustments and calibrations, the controller 241 outputs the result x = 67 to the data processor 242.

[0093] Similarly, after the next calibration begins, the controller 241 repeats the above adjustment operation to complete another calibration process.

[0094] Accordingly, the calibration process controlled by controller 241 is as follows: Figure 4 As shown in the figure, "D" refers to the number of increments added each time the coarse adjustment is performed. In the previous example, D was 16.

[0095] It should be noted that in specific applications, one or more coarse adjustment levels can be set to achieve different granularities of pressure adjustment, and this embodiment of the invention does not limit this.

[0096] The data processing unit 242 obtains a difference value Dx based on the voltage division multiple XRun of the adjustable voltage divider 202 output by the controller 241 and the factory initial multiple XIni. This difference value is used to obtain the error compensation value EC of the clock oscillator 300 calibration value through an internal mapping relationship or calculation formula. The data processing unit 242 then calculates the real-time calibration value by combining the factory initial calibration value of the clock oscillator 300 with the error compensation value EC. The real-time calibration value is then output to the adjustment interface of the clock oscillator 300, so that the frequency of the clock oscillator 300 can be calibrated in real time with temperature, greatly reducing the impact of temperature drift.

[0097] Furthermore, considering that ambient temperature typically does not change drastically over a certain period of time, in a non-limiting embodiment of the clock calibration system of the present invention, the controller 241 can periodically or sequentially perform the aforementioned calibration process on the clock oscillator 300, thereby reducing system power consumption. Accordingly, in specific applications, the controller 241 can set an internal timer to control the duration of each calibration, or as... Figure 5 As shown, the calibration process can also be triggered by an external timer 205.

[0098] When not being calibrated, the controller 241 can also shut down the temperature sensing module 201, the data processing unit 242, the comparator 203 and the adjustable voltage divider 202. At the same time, the controller 241 will also enter a low-power mode until it is woken up at a timer and resumes operation, thereby effectively reducing system power consumption.

[0099] It should be noted that in the clock calibration system of the present invention, the timer 205, controller 241, and data processing unit 242 all use the clock output by the clock oscillator 300 as their operating clock. Furthermore, the comparator 203 can be continuously enabled during system operation; alternatively, its enable can be controlled periodically by the timer 205, allowing for time-sharing enable of the comparator 203 and further saving power consumption.

[0100] Typically, the temperature sensing module 201 and the adjustable voltage divider 202 need to be calibrated during the factory testing phase to ensure that the linearity of these two modules meets the application requirements. Additionally, in specific applications, it should be ensured that the above temperature drift calibration procedure is performed immediately after the clock oscillator factory calibration during factory production testing to obtain the corresponding initial voltage multiple XIin of the adjustable voltage divider 202, which will serve as the calibration reference for subsequent actual operation.

[0101] The clock calibration system provided in this invention significantly improves the flexibility of system design and the accuracy of calibration results by controlling the real-time calibration process with digital logic. Typically, a voltage divider multiplier XRun measured by an adjustable voltage divider within ±1% accuracy can guarantee a measurement accuracy within ±100℃. Therefore, using this invention, the normal temperature drift deviation of the clock oscillator can be reduced from over ±2% to within ±0.2%, basically meeting various application requirements. Furthermore, compared to the existing technology that converts the temperature sensing signal into voltage using an ADC, the calibration process in this invention can be entirely implemented in hardware, requiring low hardware costs and offering high reliability.

[0102] It should be noted that the clock calibration method and system provided in this embodiment of the invention can be applied to the calibration of various clock oscillators, especially to on-chip high-speed clock oscillators. It can effectively protect the impact of ambient temperature on on-chip high-speed clock oscillators and ensure the stability and reliability of chip operation.

[0103] Accordingly, embodiments of the present invention also provide a low-temperature drift adjustable clock oscillator, comprising: a clock oscillator and the aforementioned clock calibration system; the clock oscillator has an adjustment interface;

[0104] The clock calibration system is used to sense the ambient temperature in real time, determine the real-time calibration value, and transmit the real-time calibration value to the clock oscillator through the calibration interface.

[0105] The clock oscillator changes its oscillation frequency according to the real-time calibration value.

[0106] Accordingly, embodiments of the present invention also provide a chip including the above-described low-temperature drift adjustable clock oscillator.

[0107] Regarding the modules / units included in the various devices and products described in the above embodiments, they can be software modules / units, hardware modules / units, or a combination of both. For example, for devices and products applied to or integrated into a chip, all modules / units can be implemented using hardware methods such as circuits, or at least some modules / units can be implemented using software programs running on a processor integrated within the chip, while the remaining (if any) modules / units can be implemented using hardware methods such as circuits. For devices and products applied to or integrated into a chip module, all modules / units can be implemented using hardware methods such as circuits. Different modules / units can be located in the same component (e.g., chip, circuit module, etc.) or different components of the chip module, or at least some modules / units can be implemented using hardware methods such as circuits. The implementation is achieved through a software program that runs on a processor integrated within the chip module. The remaining modules / units (if any) can be implemented using hardware methods such as circuits. For various devices and products applied to or integrated into terminal equipment, each of their modules / units can be implemented using hardware methods such as circuits. Different modules / units can be located in the same component (e.g., chip, circuit module, etc.) or different components within the terminal equipment. Alternatively, at least some modules / units can be implemented using a software program that runs on a processor integrated within the terminal equipment, while the remaining modules / units (if any) can be implemented using hardware methods such as circuits.

[0108] It should be noted that "multiple" in the embodiments of this application refers to two or more.

[0109] The descriptions of "first," "second," etc., appearing in the embodiments of this application are for illustrative purposes and to distinguish the objects being described. They have no order and do not indicate any special limitation on the number of devices in the embodiments of this application, nor do they constitute any limitation on the embodiments of this application.

[0110] The above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any other combination thereof. When implemented using software, the above embodiments can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer program are loaded or executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means.

[0111] It should be understood that in the various embodiments of this application, the order of the above-mentioned processes does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0112] In the several embodiments provided in this application, it should be understood that the disclosed methods, apparatuses, and systems can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for example, the division of units is merely a logical functional division, and other division methods may exist in actual implementation; for example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0113] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0114] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can be physically included separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional units.

[0115] The integrated unit implemented as a software functional unit described above can be stored in a computer-readable storage medium. This software functional unit, stored in a storage medium, includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute some steps of the methods described in the various embodiments of this application.

[0116] While this application discloses the above information, it is not limited thereto. Any person skilled in the art can make various modifications and alterations without departing from the spirit and scope of this application; therefore, the scope of protection of this application shall be determined by the scope defined in the claims.

Claims

1. A clock calibration method, characterized in that, The method includes: The system senses the ambient temperature in real time and generates a temperature-sensing voltage based on the ambient temperature. The error compensation value is determined by comparing the temperature sensing voltage with an adjustable and equally divided voltage divider. The real-time calibration value is determined based on the error compensation value; The clock oscillator is calibrated based on the real-time calibration value; The step of comparing the temperature-sensing voltage with an adjustable voltage divider and determining the error compensation value based on the comparison result includes: The reference voltage is divided into equal parts to obtain the individual voltages. The temperature sensing voltage is compared with the voltage divider voltage, and the voltage divider factor is adjusted to determine the voltage divider factor before the comparison result changes; Calculate the difference between the previous voltage division factor and the initial factor; The error compensation value is determined based on the difference. The step of determining the real-time calibration value based on the error compensation value includes: calculating the real-time calibration value based on the error compensation value and the factory calibration value of the clock oscillator; The calibration of the clock oscillator based on the real-time calibration value includes: modifying the calibration value through the calibration interface to change the clock output frequency in real time, thereby calibrating the clock oscillator.

2. The method according to claim 1, characterized in that, Determining the error compensation value based on the difference includes: The error compensation value is determined based on the difference and the preset mapping relationship; or The error compensation value is determined based on the difference and the preset calculation formula.

3. A clock calibration system, characterized in that, The system includes: A temperature sensing module is used to sense the ambient temperature in real time and convert the ambient temperature into a temperature sensing voltage output. An adjustable voltage divider is used to generate an adjustable and equally divided voltage. A comparator is used to compare the temperature sensing voltage with the voltage divided by the adjustable voltage divider, and output the comparison result. A control unit is configured to perform a calibration process, the calibration process including: adjusting the voltage division factor of the adjustable voltage divider, determining an error compensation value based on the comparison result, determining a real-time calibration value based on the error compensation value, and calibrating a clock oscillator based on the real-time calibration value; The control unit includes: A controller is used to adjust the voltage division ratio of the adjustable voltage divider to obtain the previous voltage division ratio that causes the comparison result to jump. The data processing unit is used to calculate the difference between the previous voltage divider and the initial voltage divider, and determine the error compensation value based on the difference. Based on the error compensation value and the factory calibration value of the clock oscillator, a real-time calibration value is calculated, and the real-time calibration value is output to the adjustment interface of the clock oscillator. The clock output frequency is changed in real time by modifying the calibration value through the adjustment interface, thereby realizing the calibration of the clock oscillator.

4. The system according to claim 3, characterized in that, The controller is also used to set the gears of the adjustable voltage divider, the gears including: a coarse adjustment gear and a fine adjustment gear; When adjusting the voltage division ratio of the adjustable voltage divider, the controller first adjusts it in the coarse adjustment position; after the comparison result changes, it switches to the fine adjustment position for further adjustment.

5. The system according to claim 4, characterized in that, The coarse adjustment settings include one or more settings; When the controller has multiple coarse adjustment levels, it adjusts the coarse adjustment levels by decreasing the level by level.

6. The system according to claim 3, characterized in that, The data processor determines the error compensation value based on the difference and a preset mapping relationship, or it determines the error compensation value based on the difference and a preset calculation formula.

7. The system according to any one of claims 3 to 6, characterized in that, The system also includes: A timer is used to trigger the control unit to perform the calibration process at regular intervals.

8. The system according to claim 7, characterized in that, The comparator is continuously enabled during the operation of the clock calibration system, or is enabled by the timer.

9. The system according to claim 7, characterized in that, The controller, the data processing unit, and the timer all use the clock output by the clock oscillator as their operating clock.

10. A low-temperature drift adjustable clock oscillator, characterized in that, include: A clock oscillator, and a clock calibration system as described in any one of claims 3 to 9; The clock oscillator has a calibration interface; The clock calibration system is used to sense the ambient temperature in real time, determine the real-time calibration value, and transmit the real-time calibration value to the clock oscillator through the calibration interface. The clock oscillator changes its oscillation frequency according to the real-time calibration value.

11. A chip, characterized in that, Includes the low-temperature drift adjustable clock oscillator as described in claim 10.

Citation Information

Patent Citations

  • Real-time clock compensation circuit as well as calibration method and device

    CN106292839A

  • Temperature detector circuit for timepiece

    US4465379A