Search

US-20260128745-A1 - CLOCK SIGNAL TEMPERATURE DRIFT CORRECTION METHOD, CIRCUIT, CHIP, AND ELECTRONIC DEVICE

US20260128745A1US 20260128745 A1US20260128745 A1US 20260128745A1US-20260128745-A1

Abstract

A clock signal temperature drift correction method, a circuit, a chip, and an electronic device are provided. The method includes: determining if a temperature drift is presented in a first clock signal and a second clock signal; when a temperature drift is presented in the first clock signal and the second clock signal, adjusting a frequency of the first clock signal and a frequency of the second clock signal; wherein a first temperature coefficient of the first clock signal is different from a second temperature coefficient of the second clock signal, and when the frequency of the first clock signal and the frequency of the second clock signal maintain the predetermined relationship, the frequency of the first clock signal is equal to a first set frequency at a set temperature, and the frequency of the second clock signal is equal to a second set frequency at the set temperature.

Inventors

  • Xiao Li

Assignees

  • CHIPSEA TECHNOLOGIES (SHENZHEN) CORP.

Dates

Publication Date
20260507
Application Date
20251230
Priority Date
20231204

Claims (17)

  1. 1 . A clock signal temperature drift correction method, applied to a clock signal generation circuit, the clock signal generation circuit comprising a first clock module generating a first clock signal and a second clock module generating a second clock signal, and the method comprising: determining if a temperature drift is presented in the first clock signal and the second clock signal; and when a temperature drift is presented in the first clock signal and the second clock signal, adjusting a frequency of the first clock signal and a frequency of the second clock signal so that the frequency of the first clock signal and the frequency of the second clock signal maintain a predetermined relationship; wherein a first temperature coefficient of the first clock signal is different from a second temperature coefficient of the second clock signal, and when the frequency of the first clock signal and the frequency of the second clock signal maintain the predetermined relationship, the frequency of the first clock signal is equal to a first set frequency at a set temperature, and the frequency of the second clock signal is equal to a second set frequency at the set temperature.
  2. 2 . The clock signal temperature drift correction method according to claim 1 , wherein after the step of adjusting the frequency of the first clock signal and the frequency of the second clock signal, the frequency of the first clock signal has a first variation ratio relative to the first set frequency, and the frequency of the second clock signal has a second variation ratio relative to the second set frequency; wherein a first ratio of the first variation ratio to the first temperature coefficient is equal to a second ratio of the second variation ratio to the second temperature coefficient.
  3. 3 . The clock signal temperature drift correction method according to claim 2 , wherein the step of when a temperature drift is presented in the first clock signal and the second clock signal, adjusting the frequency of the first clock signal and the frequency of the second clock signal comprises: determining a first deviation value based on a ratio of the actual frequency of the first clock signal to the actual frequency of the second clock signal and a ratio between the first set frequency and the second set frequency; determining the first variation ratio based on the first deviation value, the first temperature coefficient, and the second temperature coefficient; and determining the second variation ratio based on the first deviation value, the first temperature coefficient, and the second temperature coefficient.
  4. 4 . The clock signal temperature drift correction method according to claim 2 , wherein the first variation ratio comprises a first sub-variation ratio and a second sub-variation ratio, the second variation ratio comprises a third sub-variation ratio and a fourth sub-variation ratio, the first sub-variation ratio and the third sub-variation ratio are influenced by a first-order temperature coefficient, and the second sub-variation ratio and the fourth sub-variation ratio are influenced by a higher-order temperature; the step of when a temperature drift is presented in the first clock signal and the second clock signal, adjusting the frequency of the first clock signal and the frequency of the second clock signal comprises: determining a first deviation value based on a ratio of the actual frequency of the first clock signal to the actual frequency of the second clock signal and a ratio between the first set frequency and the second set frequency; determining the first sub-variation ratio and the third sub-variation ratio based on the first deviation value, the first temperature coefficient, and the second temperature coefficient; determining the second sub-variation ratio based on the ratio of the actual frequencies and a first preset mapping relationship between the second sub-variation ratio and the ratio of the actual frequencies; and determining the fourth sub-variation ratio based on the ratio of the actual frequencies and a second preset mapping relationship between the fourth sub-variation ratio and the ratio of the actual frequencies.
  5. 5 . The clock signal temperature drift correction method according to claim 3 , wherein the step of when a temperature drift is presented in the first clock signal and the second clock signal, adjusting the frequency of the first clock signal and the frequency of the second clock signal further comprises: determining a first step length variation ratio of the first clock signal; determining a first trimming step count based on the first step length variation ratio and the first variation ratio; and stepwise adjusting the frequency of the first clock signal relative to the first set frequency to change by the first variation ratio based on the first step length variation ratio and the first trimming step count.
  6. 6 . The clock signal temperature drift correction method according to claim 4 , wherein the step of when a temperature drift is presented in the first clock signal and the second clock signal, adjusting the frequency of the first clock signal and the frequency of the second clock signal further comprises: determining a first step length variation ratio of the first clock signal; determining a first trimming step count based on the first step length variation ratio and the first variation ratio; and stepwise adjusting the frequency of the first clock signal relative to the first set frequency to change by the first variation ratio based on the first step length variation ratio and the first trimming step count.
  7. 7 . The clock signal temperature drift correction method according to claim 5 , wherein the step of when a temperature drift is presented in the first clock signal and the second clock signal, adjusting the frequency of the first clock signal and the frequency of the second clock signal further comprises: determining a second step length variation ratio of the second clock signal; determining a second trimming step count based on the second step length variation ratio and the second variation ratio; and stepwise adjusting the frequency of the second clock signal relative to the second set frequency to change by the second variation ratio based on the second step length variation ratio and the second trimming step count.
  8. 8 . The clock signal temperature drift correction method according to claim 6 , wherein the step of when a temperature drift is presented in the first clock signal and the second clock signal, adjusting the frequency of the first clock signal and the frequency of the second clock signal further comprises: determining a second step length variation ratio of the second clock signal; determining a second trimming step count based on the second step length variation ratio and the second variation ratio; and stepwise adjusting the frequency of the second clock signal relative to the second set frequency to change by the second variation ratio based on the second step length variation ratio and the second trimming step count.
  9. 9 . The clock signal temperature drift correction method according to claim 7 , wherein the first trimming step count is equal to the second trimming step count.
  10. 10 . The clock signal temperature drift correction method according to claim 8 , wherein the first trimming step count is equal to the second trimming step count.
  11. 11 . The clock signal temperature drift correction method according to claim 1 , wherein the step of determining if a temperature drift is presented in the first clock signal and the second clock signal comprises: determining if a temperature drift is presented in the first clock signal and the second clock signal based on a ratio of the actual frequency of the first clock signal to the actual frequency of the second clock signal and a ratio between the first set frequency and the second set frequency.
  12. 12 . The clock signal temperature drift correction method according to claim 1 , wherein one of the first clock signal and the second clock signal has a positive temperature coefficient, and the other has a negative temperature coefficient.
  13. 13 . The clock signal temperature drift correction method according to claim 1 , wherein a frequency of the first clock signal exceeds a frequency of the second clock signal.
  14. 14 . The clock signal temperature drift correction method according to claim 1 , wherein the predetermined relationship comprises a ratio of the actual frequency of the first clock signal to the actual frequency of the second clock signal equal to a set frequency ratio, and the set frequency ratio is equal to a ratio between the first set frequency and the second set frequency; or the predetermined relationship comprises a difference between the actual frequency of the first clock signal and the actual frequency of the second clock signal equal to a set frequency difference, and the set frequency difference is equal to a difference between the first set frequency and the second set frequency.
  15. 15 . A clock signal temperature drift correction circuit, comprising: a clock signal generation circuit comprising a first clock module generating a first clock signal and a second clock module generating a second clock signal; and a temperature drift correction circuit configured to determine if a temperature drift is presented in the first clock signal and the second clock signal, wherein when a temperature drift is presented in the first clock signal and the second clock signal, the temperature drift correction circuit adjusts a frequency of the first clock signal and a frequency of the second clock signal so that the frequency of the first clock signal and the frequency of the second clock signal maintain a predetermined relationship; wherein a first temperature coefficient of the first clock signal is different from a second temperature coefficient of the second clock signal, and when the frequency of the first clock signal and the frequency of the second clock signal maintain the predetermined relationship, the frequency of the first clock signal is equal to a first set frequency at a set temperature, and the frequency of the second clock signal is equal to a second set frequency at the set temperature.
  16. 16 . A chip, comprising the clock signal temperature drift correction circuit according to claim 15 .
  17. 17 . An electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program in the memory to perform steps in the clock signal temperature drift correction method according to claim 1 .

Description

The present application is a continuation-in-part application of International Application No. PCT/CN2024/132775 filed on Nov. 18, 2024, which claims priority to the Chinese patent application No. 202311639080.0 with the invention title “CLOCK SIGNAL TEMPERATURE DRIFT CORRECTION METHOD, CIRCUIT, CHIP, AND ELECTRONIC DEVICE”, filed with the China National Intellectual Property Administration (CNIPA) on Dec. 4, 2023, the entire contents of which are incorporated herein by reference. FIELD OF INVENTION The present application relates to the field of electronic technology, and in particular to a clock signal temperature drift correction method, circuit, chip, and electronic device. BACKGROUND OF INVENTION Currently, a clock signal serves as a foundation for sequential logic and is used to determine when states in logic units are updated, thereby ensuring synchronized operation of related electronic components. However, when an ambient temperature of a clock circuit changes (for example, due to heat generated by a chip), a period and a frequency of the clock signal vary, causing timing errors or malfunctions in sequential logic circuits. In the related art, to reduce temperature drift of the clock signal, a conventional approach involves minimizing temperature drift of electronic elements in the clock circuit. For example, in a classic RC oscillator clock, elements affecting a clock period include a resistor and a capacitor, so reducing temperature drift of the resistor and/or the capacitor can weaken the temperature drift of the clock signal. In the related art, a temperature variation value may also be measured by a temperature sensor, and then a period of the clock signal is corrected according to a relationship between temperature and frequency based on the temperature variation value. However, the above approaches are significantly affected by objective factors such as circuit fabrication processes and accuracy of the temperature sensor, and the temperature drift of the clock signal cannot be completely avoided. SUMMARY OF INVENTION Embodiments of the present application provide a clock signal temperature drift correction method, circuit, chip, and electronic device to address the temperature drift of the clock signal. Technical Solution The technical solution of the present application is as follows: In a first aspect, the present application provides a clock signal temperature drift correction method applied to a clock signal generation circuit, wherein the clock signal generation circuit comprises a first clock module generating a first clock signal and a second clock module generating a second clock signal, and the method comprises: determining if a temperature drift is presented in the first clock signal and the second clock signal; andwhen the temperature drift is presented in the first clock signal and the second clock signal, adjusting a frequency of the first clock signal and a frequency of the second clock signal so that the frequency of the first clock signal and the frequency of the second clock signal maintain a predetermined relationship;wherein a first temperature coefficient of the first clock signal is different from a second temperature coefficient of the second clock signal, and when the frequency of the first clock signal and the frequency of the second clock signal maintain the predetermined relationship, the frequency of the first clock signal is equal to a first set frequency at a set temperature, and the frequency of the second clock signal is equal to a second set frequency at the set temperature. In a second aspect, the present application provides a clock signal temperature drift correction circuit, comprising: a clock signal generation circuit, wherein the clock signal generation circuit comprises a first clock module generating a first clock signal and a second clock module generating a second clock signal; anda temperature drift correction circuit, wherein the temperature drift correction circuit is configured to determine if a temperature drift is presented in the first clock signal and the second clock signal, and when the temperature drift is presented in the first clock signal and the second clock signal, the temperature drift correction circuit adjusts a frequency of the first clock signal and a frequency of the second clock signal so that the frequency of the first clock signal and the frequency of the second clock signal maintain a predetermined relationship;wherein a first temperature coefficient of the first clock signal is different from a second temperature coefficient of the second clock signal, and when the frequency of the first clock signal and the frequency of the second clock signal maintain the predetermined relationship, the frequency of the first clock signal is equal to a first set frequency at a set temperature, and the frequency of the second clock signal is equal to a second set frequency at the set temperature. In a third aspect, the present application