CN107579723B - Method and device for calibrating clock frequency - Google Patents

Method and device for calibrating clock frequency Download PDF

Info

Publication number
CN107579723B
CN107579723B CN201710659545.7A CN201710659545A CN107579723B CN 107579723 B CN107579723 B CN 107579723B CN 201710659545 A CN201710659545 A CN 201710659545A CN 107579723 B CN107579723 B CN 107579723B
Authority
CN
China
Prior art keywords
clock
parameter
adjustable oscillator
frequency
count value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710659545.7A
Other languages
Chinese (zh)
Other versions
CN107579723A (en
Inventor
齐佩佩
高洪福
李军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Datang Microelectronics Technology Co Ltd
Original Assignee
Datang Microelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Datang Microelectronics Technology Co Ltd filed Critical Datang Microelectronics Technology Co Ltd
Priority to CN201710659545.7A priority Critical patent/CN107579723B/en
Publication of CN107579723A publication Critical patent/CN107579723A/en
Application granted granted Critical
Publication of CN107579723B publication Critical patent/CN107579723B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a method and a device for calibrating clock frequency, comprising the following steps: the clock detection circuit is used for counting the clock signals output by the parameter adjustable oscillator at regular time to obtain a count value, judging that the absolute value of the difference between the obtained count value and an expected count value is greater than or equal to a preset threshold value, and outputting a first enabling signal to the calibration circuit to control the calibration circuit to enter a working state; the calibration circuit is used for entering a working state when receiving the first enabling signal and outputting a control signal to the parameter adjustable oscillator according to the obtained counting value so that the parameter adjustable oscillator adjusts the frequency of the clock signal; and the parameter adjustable oscillator is used for outputting the output clock signal to a clock detection circuit and other circuits working based on the clock signal and adjusting the frequency of the clock signal according to the control signal. The embodiment of the invention reduces the influence of the change of the ambient environment and the application temperature on the clock frequency of the oscillator, and improves the frequency precision of the oscillator; and power consumption is reduced.

Description

Method and device for calibrating clock frequency
Technical Field
The present invention relates to the field of integrated circuits, and more particularly, to a method and apparatus for calibrating clock frequency.
Background
In recent years, the application of electronic technology in the fields of medical treatment, finance, internet of things and the like provides a new direction for the development of integrated circuits, and also drives the rapid development of the integrated circuit industry. Consumer electronics have evolved from traditional electronics, such as computers, mobile phones, home appliances, etc., to new types of electronics, such as one-card-pass, non-contact Integrated Circuit (IC) cards, smart hardware, etc. At present, the clock frequency of an integrated circuit chip is higher and higher, and meanwhile, the requirement for the clock signal of the whole system is higher and higher. When the operating frequency of an integrated circuit chip reaches gigahertz (GHz), the stability of the clock signal directly affects the performance of the chip and even functional errors can occur. An oscillator plays a very important role as a frequency source in electronic and communication equipment.
The precision of the clock frequency output by the oscillator is determined by parameters such as internal resistance, capacitance and the like, the parameters are easily influenced by a semiconductor manufacturing process, and in the implementation process of the process, the resistance and the capacitance may have large process deviation, so that the frequency of the clock signal output by the oscillator has large deviation, and the normal work of a digital circuit is influenced.
At present, by calibrating the frequency of the clock signal output by the oscillator in the wafer test stage, the oscillator can also output the clock signal with the frequency meeting the precision requirement. However, as the oscillator continues to operate, the clock frequency of the oscillator may deviate from the original oscillation frequency due to the change of the ambient environment and the application temperature, which may cause a large error in the frequency of the oscillator and may affect the function of the circuit.
Disclosure of Invention
Embodiments of the present invention provide a method and an apparatus for calibrating a clock frequency, which can reduce the influence of changes in ambient environment and application temperature on the clock frequency of an oscillator, thereby improving the frequency accuracy of the oscillator.
The embodiment of the invention provides a device for calibrating clock frequency, which is characterized by comprising the following components:
the clock detection circuit is used for counting the clock signals output by the parameter adjustable oscillator at regular time to obtain a count value, judging that the absolute value of the difference between the obtained count value and an expected count value is greater than or equal to a preset threshold value, and outputting a first enabling signal to the calibration circuit to control the calibration circuit to enter a working state;
the calibration circuit is used for entering a working state when receiving the first enabling signal and outputting a control signal to the parameter adjustable oscillator according to the obtained counting value so that the parameter adjustable oscillator adjusts the frequency of the clock signal;
and the parameter adjustable oscillator is used for outputting the output clock signal to a clock detection circuit and other circuits working based on the clock signal and adjusting the frequency of the clock signal according to the control signal.
Optionally, the clock detection circuit is further configured to:
judging that the absolute value of the difference between the obtained count value and the expected count value is smaller than a preset threshold value, and outputting a second enabling signal to the calibration circuit to control the calibration circuit to enter a non-working state;
the calibration circuit is further configured to:
and entering a non-working state when the second enabling signal is received.
Optionally, the method further includes:
a reference clock circuit for generating periodic detection pulses;
the clock detection circuit is specifically configured to count the clock signal output by the parameter-adjustable oscillator by the timing to obtain a count value in the following manner:
when receiving the detection pulse from the reference clock circuit in a non-counting state, starting to count the clock signal output by the parameter adjustable oscillator; and when the counting state receives the detection pulse from the reference clock circuit, stopping counting the clock signal output by the parameter adjustable oscillator and obtaining a count value.
Optionally, the calibration circuit is specifically configured to output the control signal to the parameter-adjustable oscillator according to the obtained count value by using the following method:
judging that the obtained count value is larger than the expected count value, and outputting a control signal for indicating the parameter adjustable oscillator to reduce the frequency of a clock signal to the parameter adjustable oscillator;
the parameter-adjustable oscillator is specifically configured to:
and outputting the output clock signal to a clock detection circuit and other circuits working based on the clock signal, and reducing the frequency of the clock signal according to a control signal for instructing the parameter-adjustable oscillator to reduce the frequency of the clock signal.
Optionally, the calibration circuit is specifically configured to output the control signal to the parameter-adjustable oscillator according to the obtained count value by using the following method:
judging that the obtained count value is smaller than the expected count value, and outputting a control signal for indicating the parameter adjustable oscillator to increase the frequency of a clock signal to the parameter adjustable oscillator;
the parameter-adjustable oscillator is specifically configured to:
and outputting the output clock signal to a clock detection circuit and other circuits operating based on the clock signal, and increasing the frequency of the clock signal according to a control signal for indicating the parameter-adjustable oscillator to increase the frequency of the clock signal.
The embodiment of the invention also provides a method for calibrating the clock frequency, which comprises the following steps:
the parameter adjustable oscillator outputs the output clock signal to a clock detection circuit and other circuits working based on the clock signal;
the clock detection circuit counts clock signals output by the parameter adjustable oscillator in a timing mode to obtain a count value, judges that the absolute value of the difference between the obtained count value and an expected count value is larger than or equal to a preset threshold value, and outputs a first enabling signal to the calibration circuit to control the calibration circuit to enter a working state;
the calibration circuit enters a working state when receiving the first enabling signal, and outputs a control signal to the parameter adjustable oscillator according to the obtained counting value so that the parameter adjustable oscillator adjusts the frequency of the clock signal;
the parameter adjustable oscillator adjusts the frequency of the clock signal according to the control signal.
Optionally, the method further includes:
the clock detection circuit judges that the absolute value of the difference between the obtained count value and the expected count value is smaller than a preset threshold value, and outputs a second enabling signal to the calibration circuit so as to control the calibration circuit to enter a non-working state;
and the calibration circuit enters a non-working state when receiving the second enabling signal.
Optionally, the counting the clock signal output by the parameter-adjustable oscillator to obtain the count value by the clock detection circuit at regular time includes:
a reference clock circuit generates periodic detection pulses;
when the clock detection circuit receives a detection pulse from the reference clock circuit in a non-counting state, the clock detection circuit starts to count the clock signal output by the parameter adjustable oscillator; and when the counting state receives the detection pulse from the reference clock circuit, stopping counting the clock signal output by the parameter adjustable oscillator and obtaining a count value.
Optionally, the outputting, by the calibration circuit, the control signal to the parameter-adjustable oscillator according to the obtained count value includes:
the calibration circuit judges that the obtained count value is larger than the expected count value, and outputs a control signal for indicating the parameter adjustable oscillator to reduce the frequency of a clock signal to the parameter adjustable oscillator;
the parameter-adjustable oscillator adjusting the frequency of the clock signal according to the control signal includes:
and reducing the frequency of the clock signal according to a control signal for instructing the parameter-adjustable oscillator to reduce the frequency of the clock signal.
Optionally, the outputting, by the calibration circuit, the control signal to the parameter-adjustable oscillator according to the obtained count value includes:
judging that the obtained count value is smaller than the expected count value, and outputting a control signal for indicating the parameter adjustable oscillator to increase the frequency of a clock signal to the parameter adjustable oscillator;
the parameter-adjustable oscillator adjusting the frequency of the clock signal according to the control signal includes:
the frequency of the clock signal is increased according to a control signal for instructing the parameter adjustable oscillator to increase the frequency of the clock signal.
The embodiment of the present invention further provides a chip, which includes all modules of any one of the above devices for calibrating a clock frequency, and further includes:
the configuration module is used for configuring parameters of the parameter-adjustable oscillator when the chip is powered on;
the other circuits work based on the clock signals and are used for working according to the clock signals output by the parameter adjustable oscillator;
the tunable parameter oscillator is further configured to:
and after the configuration module performs parameter configuration, outputting a clock signal with a frequency corresponding to the configured parameter.
Compared with the related art, the embodiment of the invention comprises the following steps: the clock detection circuit is used for counting the clock signals output by the parameter adjustable oscillator at regular time to obtain a count value, judging that the absolute value of the difference between the obtained count value and an expected count value is greater than or equal to a preset threshold value, and outputting a first enabling signal to the calibration circuit to control the calibration circuit to enter a working state; the calibration circuit is used for entering a working state when receiving the first enabling signal and outputting a control signal to the parameter adjustable oscillator according to the obtained counting value so that the parameter adjustable oscillator adjusts the frequency of the clock signal; and the parameter adjustable oscillator is used for outputting the output clock signal to a clock detection circuit and other circuits working based on the clock signal and adjusting the frequency of the clock signal according to the control signal. According to the scheme of the embodiment of the invention, the frequency of the clock signal output by the parameter-adjustable oscillator is adjusted in real time according to the count value of the clock signal output by the parameter-adjustable oscillator, so that the influence of the change of the ambient environment and the application temperature on the clock frequency of the oscillator is reduced, and the frequency precision of the oscillator is improved; and the clock detection circuit sends an enable signal to the calibration circuit to control the working state of the calibration circuit, so that the power consumption is reduced.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
FIG. 1 is a schematic diagram illustrating a structure of an apparatus for calibrating a clock frequency according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a clock detection circuit according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for calibrating a clock frequency according to an embodiment of the invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
Referring to fig. 1, an embodiment of the present invention provides an apparatus for calibrating a clock frequency, including:
the clock detection circuit is used for counting the clock signals output by the parameter adjustable oscillator at regular time to obtain a count value, judging that the absolute value of the difference between the obtained count value and an expected count value is greater than or equal to a preset threshold value, and outputting a first enabling signal to the calibration circuit to control the calibration circuit to enter a working state;
the calibration circuit is used for entering a working state when receiving the first enabling signal and outputting a control signal to the parameter adjustable oscillator according to the obtained counting value so that the parameter adjustable oscillator adjusts the frequency of the clock signal;
and the parameter adjustable oscillator is used for outputting the output clock signal to a clock detection circuit and other circuits working based on the clock signal and adjusting the frequency of the clock signal according to the control signal.
Optionally, the clock detection circuit is further configured to:
judging that the absolute value of the difference between the obtained count value and the expected count value is smaller than a preset threshold value, and outputting a second enabling signal to the calibration circuit to control the calibration circuit to enter a non-working state;
the calibration circuit is further configured to:
and entering a non-working state when the second enabling signal is received.
In the above device, the first enable signal EN is 0, and the second enable signal EN is 1;
alternatively, the first enable signal EN is 1, and the second enable signal EN is 0.
Depending on the implementation of the calibration circuit.
Optionally, the method further includes:
a reference clock circuit for generating periodic detection pulses;
the clock detection circuit is specifically used for counting the clock signals output by the parameter-adjustable oscillator in a timed mode to obtain a count value by adopting the following modes:
when receiving the detection pulse from the reference clock circuit in a non-counting state, starting to count the clock signal output by the parameter adjustable oscillator; and when the counting state receives the detection pulse from the reference clock circuit, stopping counting the clock signal output by the parameter adjustable oscillator and obtaining a count value.
Wherein the time interval between adjacent three detection pulses is equal to one calibration period.
For example, the clock detection circuit starts counting when the first detection pulse is received, stops counting when the second detection pulse is received, starts counting when the third detection pulse is received, stops counting when the fourth detection pulse is received, … …, and so on.
The clock detection circuit counts the clock signals output by the parameter-adjustable oscillator, which means that the pulses of the clock signals output by the parameter-adjustable oscillator are counted.
Specifically, referring to fig. 2, the clock detection circuit includes a counter and a state control circuit;
the counter is used for counting clock signals output by the parameter adjustable oscillator to obtain a count value;
the state control circuit is used for judging that the absolute value of the difference between the obtained count value and the expected count value is greater than or equal to a preset threshold value, and outputting a first enabling signal to the calibration circuit so as to control the calibration circuit to enter a working state; and judging that the absolute value of the difference between the obtained count value and the expected count value is smaller than a preset threshold value, and outputting a second enabling signal to the calibration circuit to control the calibration circuit to enter a non-working state.
Wherein, the counter is specifically used for:
when receiving the detection pulse from the reference clock circuit in a non-counting state, starting to count the clock signal output by the parameter adjustable oscillator; and when the counting state receives the detection pulse from the reference clock circuit, stopping counting the clock signal output by the parameter adjustable oscillator and obtaining a count value.
Optionally, the calibration circuit is specifically configured to output the control signal to the parameter-adjustable oscillator according to the obtained count value by using the following method:
judging that the obtained count value is larger than the expected count value, and outputting a control signal for indicating the parameter adjustable oscillator to reduce the frequency of the clock signal to the parameter adjustable oscillator;
the tunable parameter oscillator is specifically configured to:
and outputting the output clock signal to a clock detection circuit and other circuits operating based on the clock signal, and reducing the frequency of the clock signal according to a control signal for instructing the parameter-tunable oscillator to reduce the frequency of the clock signal.
Optionally, the calibration circuit is specifically configured to output the control signal to the parameter-adjustable oscillator according to the obtained count value by using the following method:
judging that the obtained count value is smaller than the expected count value, and outputting a control signal for indicating the parameter adjustable oscillator to increase the frequency of the clock signal to the parameter adjustable oscillator;
the tunable parameter oscillator is specifically configured to:
the output clock signal is output to a clock detection circuit and other circuits operating based on the clock signal, and the frequency of the clock signal is lowered in accordance with a control signal for instructing a parameter-tunable oscillator to raise the frequency of the clock signal.
The frequency of the clock signal is adjusted by adjusting an adjustable parameter in the parameter-adjustable oscillator, where the adjustable parameter may be a resistance value, a capacitance value, an inductance value, or the like.
For example, when the frequency of the clock signal is adjusted by the resistance value, the resistance may be set to have a plurality of adjustable gears, and each gear corresponds to one resistance value; when a control signal for indicating the parameter-adjustable oscillator to reduce the frequency of the clock signal is received, reducing a resistance gear; when a control signal is received instructing the parameter adjustable oscillator to increase the frequency of the clock signal, a resistance step is increased.
Of course, other adjustment manners may also be adopted, and the embodiment of the present invention is not limited thereto.
Other circuits operating based on the clock signal may be digital circuits, analog circuits, or the like.
According to the scheme of the embodiment of the invention, the frequency of the clock signal output by the parameter-adjustable oscillator is adjusted in real time according to the count value of the clock signal output by the parameter-adjustable oscillator, so that the influence of the change of the ambient environment and the application temperature on the clock frequency of the oscillator is reduced, and the frequency precision of the oscillator is improved; and the clock detection circuit sends an enable signal to the calibration circuit to control the working state of the calibration circuit, so that the power consumption is reduced.
Referring to fig. 3, an embodiment of the present invention further provides a method for calibrating a clock frequency, including:
and step 300, outputting the output clock signal to a clock detection circuit and other circuits working based on the clock signal by the parameter adjustable oscillator.
Step 301, the clock detection circuit counts the clock signal output by the parameter-adjustable oscillator at regular time to obtain a count value, determines that the absolute value of the difference between the obtained count value and the expected count value is greater than or equal to a preset threshold value, and outputs a first enable signal to the calibration circuit to control the calibration circuit to enter a working state.
In this step, the clock detection circuit counts the clock signal output by the parameter-adjustable oscillator at regular time to obtain a count value, which includes:
a reference clock circuit generates periodic detection pulses;
when the clock detection circuit receives a detection pulse from the reference clock circuit in a non-counting state, the clock detection circuit starts to count the clock signal output by the parameter adjustable oscillator; and when the counting state receives the detection pulse from the reference clock circuit, stopping counting the clock signal output by the parameter adjustable oscillator and obtaining a count value.
Wherein the time interval between adjacent three detection pulses is equal to one calibration period.
For example, the clock detection circuit starts counting when the first detection pulse is received, stops counting when the second detection pulse is received, starts counting when the third detection pulse is received, stops counting when the fourth detection pulse is received, … …, and so on.
The clock detection circuit counts the clock signals output by the parameter-adjustable oscillator, which means that the pulses of the clock signals output by the parameter-adjustable oscillator are counted.
Step 302, the calibration circuit enters a working state when receiving the first enable signal, and outputs a control signal to the parameter-adjustable oscillator according to the obtained count value, so that the parameter-adjustable oscillator adjusts the frequency of the clock signal.
In this step, the outputting, by the calibration circuit, the control signal to the parameter-adjustable oscillator according to the obtained count value includes:
the calibration circuit judges that the obtained count value is larger than the expected count value, and outputs a control signal for indicating the parameter adjustable oscillator to reduce the frequency of the clock signal to the parameter adjustable oscillator;
and outputting a control signal for indicating the parameter-adjustable oscillator to increase the frequency of the clock signal to the parameter-adjustable oscillator when the obtained count value is judged to be smaller than the expected count value.
And step 303, adjusting the frequency of the clock signal by the parameter adjustable oscillator according to the control signal. The method comprises the following steps:
reducing the frequency of the clock signal according to a control signal for instructing the parameter-tunable oscillator to reduce the frequency of the clock signal;
the frequency of the clock signal is increased in accordance with a control signal that instructs the parameter adjustable oscillator to increase the frequency of the clock signal. The adjusted parameter adjustable oscillator outputs the output clock signal to a clock detection circuit and other circuits working based on the clock signal, and enters the next round of detection and calibration under the control of detection pulses.
The frequency of the clock signal is adjusted by adjusting an adjustable parameter in the parameter-adjustable oscillator, where the adjustable parameter may be a resistance value, a capacitance value, an inductance value, or the like.
For example, when the frequency of the clock signal is adjusted by the resistance value, the resistance may be set to have a plurality of adjustable gears, and each gear corresponds to one resistance value; when a control signal for indicating the parameter-adjustable oscillator to reduce the frequency of the clock signal is received, reducing a resistance gear; when a control signal is received instructing the parameter adjustable oscillator to increase the frequency of the clock signal, a resistance step is increased.
Of course, other adjustment manners may also be adopted, and the embodiment of the present invention is not limited thereto.
Optionally, the method further includes:
the clock detection circuit judges that the absolute value of the difference between the obtained count value and the expected count value is smaller than a preset threshold value, and outputs a second enabling signal to the calibration circuit so as to control the calibration circuit to enter a non-working state;
and the calibration circuit enters a non-working state when receiving the second enabling signal.
In the method, the first enable signal EN is 0, and the second enable signal EN is 1;
alternatively, the first enable signal EN is 1, and the second enable signal EN is 0.
Depending on the implementation of the calibration circuit.
The embodiment of the present invention further provides a chip, which includes all modules of any one of the above devices for calibrating a clock frequency, and further includes:
the configuration module is used for configuring parameters of the parameter-adjustable oscillator when the chip is powered on;
the other circuits work based on the clock signals and are used for working according to the clock signals output by the parameter adjustable oscillator;
the tunable parameter oscillator is further configured to:
and after the configuration module performs parameter configuration, outputting a clock signal with a frequency corresponding to the configured parameter.
Wherein the configuration module may be a CPU.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (9)

1. An apparatus for calibrating a clock frequency, comprising:
the clock detection circuit is used for counting the clock signals output by the parameter adjustable oscillator at regular time to obtain a count value, judging that the absolute value of the difference between the obtained count value and an expected count value is greater than or equal to a preset threshold value, and outputting a first enabling signal to the calibration circuit to control the calibration circuit to enter a working state;
the calibration circuit is used for entering a working state when receiving the first enabling signal and outputting a control signal to the parameter adjustable oscillator according to the obtained counting value so that the parameter adjustable oscillator adjusts the frequency of the clock signal;
the parameter adjustable oscillator is used for outputting the output clock signal to a clock detection circuit and other circuits working based on the clock signal and adjusting the frequency of the clock signal according to a control signal;
a reference clock circuit for generating periodic detection pulses;
the clock detection circuit is specifically configured to count the clock signal output by the parameter-adjustable oscillator by the timing to obtain a count value in the following manner:
when receiving the detection pulse from the reference clock circuit in a non-counting state, starting to count the clock signal output by the parameter adjustable oscillator; and when the counting state receives the detection pulse from the reference clock circuit, stopping counting the clock signal output by the parameter adjustable oscillator and obtaining a count value.
2. The apparatus of claim 1, wherein the clock detection circuit is further configured to:
judging that the absolute value of the difference between the obtained count value and the expected count value is smaller than a preset threshold value, and outputting a second enabling signal to the calibration circuit to control the calibration circuit to enter a non-working state;
the calibration circuit is further configured to:
and entering a non-working state when the second enabling signal is received.
3. The apparatus according to claim 1 or 2, wherein the calibration circuit is specifically configured to implement the outputting of the control signal to the parameter-adjustable oscillator according to the obtained count value by:
judging that the obtained count value is larger than the expected count value, and outputting a control signal for indicating the parameter adjustable oscillator to reduce the frequency of a clock signal to the parameter adjustable oscillator;
the parameter-adjustable oscillator is specifically configured to:
and outputting the output clock signal to a clock detection circuit and other circuits working based on the clock signal, and reducing the frequency of the clock signal according to a control signal for instructing the parameter-adjustable oscillator to reduce the frequency of the clock signal.
4. The apparatus according to claim 1 or 2, wherein the calibration circuit is specifically configured to implement the outputting of the control signal to the parameter-adjustable oscillator according to the obtained count value by:
judging that the obtained count value is smaller than the expected count value, and outputting a control signal for indicating the parameter adjustable oscillator to increase the frequency of a clock signal to the parameter adjustable oscillator;
the parameter-adjustable oscillator is specifically configured to:
and outputting the output clock signal to a clock detection circuit and other circuits operating based on the clock signal, and increasing the frequency of the clock signal according to a control signal for indicating the parameter-adjustable oscillator to increase the frequency of the clock signal.
5. A method of calibrating a clock frequency, comprising:
the parameter adjustable oscillator outputs the output clock signal to a clock detection circuit and other circuits working based on the clock signal;
the clock detection circuit counts clock signals output by the parameter adjustable oscillator in a timing mode to obtain a count value, judges that the absolute value of the difference between the obtained count value and an expected count value is larger than or equal to a preset threshold value, and outputs a first enabling signal to the calibration circuit to control the calibration circuit to enter a working state;
the calibration circuit enters a working state when receiving the first enabling signal, and outputs a control signal to the parameter adjustable oscillator according to the obtained counting value so that the parameter adjustable oscillator adjusts the frequency of the clock signal;
the parameter adjustable oscillator adjusts the frequency of the clock signal according to the control signal;
the clock detection circuit is used for counting the clock signals output by the parameter adjustable oscillator to obtain a count value at regular time and comprises the following steps:
a reference clock circuit generates periodic detection pulses;
when the clock detection circuit receives a detection pulse from the reference clock circuit in a non-counting state, the clock detection circuit starts to count the clock signal output by the parameter adjustable oscillator; and when the counting state receives the detection pulse from the reference clock circuit, stopping counting the clock signal output by the parameter adjustable oscillator and obtaining a count value.
6. The method of claim 5, further comprising:
the clock detection circuit judges that the absolute value of the difference between the obtained count value and the expected count value is smaller than a preset threshold value, and outputs a second enabling signal to the calibration circuit so as to control the calibration circuit to enter a non-working state;
and the calibration circuit enters a non-working state when receiving the second enabling signal.
7. The method of claim 5 or 6, wherein outputting a control signal to a parametrically adjustable oscillator by the calibration circuit based on the derived count value comprises:
the calibration circuit judges that the obtained count value is larger than the expected count value, and outputs a control signal for indicating the parameter adjustable oscillator to reduce the frequency of a clock signal to the parameter adjustable oscillator;
the parameter-adjustable oscillator adjusting the frequency of the clock signal according to the control signal includes:
and reducing the frequency of the clock signal according to a control signal for instructing the parameter-adjustable oscillator to reduce the frequency of the clock signal.
8. The method of claim 5 or 6, wherein outputting a control signal to a parametrically adjustable oscillator by the calibration circuit based on the derived count value comprises:
judging that the obtained count value is smaller than the expected count value, and outputting a control signal for indicating the parameter adjustable oscillator to increase the frequency of a clock signal to the parameter adjustable oscillator;
the parameter-adjustable oscillator adjusting the frequency of the clock signal according to the control signal includes:
the frequency of the clock signal is increased according to a control signal for instructing the parameter adjustable oscillator to increase the frequency of the clock signal.
9. A chip comprising all modules of the apparatus for calibrating a clock frequency according to any one of claims 1 to 4, further comprising:
the configuration module is used for configuring parameters of the parameter-adjustable oscillator when the chip is powered on;
the other circuits work based on the clock signals and are used for working according to the clock signals output by the parameter adjustable oscillator;
the tunable parameter oscillator is further configured to:
and after the configuration module performs parameter configuration, outputting a clock signal with a frequency corresponding to the configured parameter.
CN201710659545.7A 2017-08-04 2017-08-04 Method and device for calibrating clock frequency Active CN107579723B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710659545.7A CN107579723B (en) 2017-08-04 2017-08-04 Method and device for calibrating clock frequency

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710659545.7A CN107579723B (en) 2017-08-04 2017-08-04 Method and device for calibrating clock frequency

Publications (2)

Publication Number Publication Date
CN107579723A CN107579723A (en) 2018-01-12
CN107579723B true CN107579723B (en) 2020-11-13

Family

ID=61035638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710659545.7A Active CN107579723B (en) 2017-08-04 2017-08-04 Method and device for calibrating clock frequency

Country Status (1)

Country Link
CN (1) CN107579723B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI668962B (en) * 2018-10-02 2019-08-11 新唐科技股份有限公司 Clock adjustable device and transmission system and method thereof
CN109586691B (en) * 2018-11-19 2022-12-30 珠海市杰理科技股份有限公司 Clock calibration method, device, system, storage medium and computer equipment
CN112514255B (en) * 2019-05-31 2024-03-19 京东方科技集团股份有限公司 Signal frequency adjustment method and device, display device and storage medium
CN110365335A (en) * 2019-08-12 2019-10-22 兆讯恒达微电子技术(北京)有限公司 A kind of piece internal clock calibration method in technical process and calibration circuit
CN110504959A (en) * 2019-08-12 2019-11-26 兆讯恒达微电子技术(北京)有限公司 The calibration method and calibration circuit of a kind of internal clock
CN110492848A (en) * 2019-08-15 2019-11-22 成都锐成芯微科技股份有限公司 The number adjustment device and its method of adjustment of RC oscillator
CN112149368A (en) * 2020-09-16 2020-12-29 北京中电华大电子设计有限责任公司 Circuit and method for self calibration of clock
CN112150962B (en) * 2020-10-23 2024-04-05 维沃移动通信有限公司 Chip clock frequency adjusting method and device, chip and electronic equipment
CN112596578A (en) * 2020-12-08 2021-04-02 北京地平线机器人技术研发有限公司 Clock monitoring circuit and monitoring method
CN112636752A (en) * 2020-12-29 2021-04-09 北京奕斯伟计算技术有限公司 Oscillator device and oscillator frequency calibration method
CN112327596B (en) * 2021-01-04 2021-04-13 南京芯视界微电子科技有限公司 Clock system for single photon detection chip and calibration method thereof
CN112910461A (en) * 2021-01-20 2021-06-04 上海华虹宏力半导体制造有限公司 Self-calibration method and self-calibration circuit of RC oscillator
CN113641214A (en) * 2021-08-24 2021-11-12 维沃移动通信有限公司 Clock calibration circuit, clock calibration method and related equipment
CN113757932B (en) * 2021-08-27 2022-12-13 Tcl空调器(中山)有限公司 Air conditioner communication fault processing method and device, computer equipment and storage medium
CN113970698A (en) * 2021-10-22 2022-01-25 思澈科技(上海)有限公司 Method and system for calibrating off-chip crystal oscillator

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7612624B2 (en) * 2006-10-31 2009-11-03 Samsung Electro-Mechanics Co., Ltd. Resistor-capacitor oscillation circuit capable of adjusting oscillation frequency and method of the same
CN102195646A (en) * 2010-03-18 2011-09-21 上海华虹Nec电子有限公司 Automatic clock oscillator calibration method and circuit
CN102339014A (en) * 2010-05-13 2012-02-01 玛克西姆综合产品公司 Synchronization of a generated clock
CN102638225A (en) * 2012-04-01 2012-08-15 北京集创北方科技有限公司 On-chip clock frequency regulating circuit and regulating method
CN103701437A (en) * 2013-12-10 2014-04-02 浙江大学 Clock generator integrated in power electronic chip
CN106130547A (en) * 2016-06-20 2016-11-16 大唐微电子技术有限公司 A kind of clock frequency calibration steps and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7612624B2 (en) * 2006-10-31 2009-11-03 Samsung Electro-Mechanics Co., Ltd. Resistor-capacitor oscillation circuit capable of adjusting oscillation frequency and method of the same
CN102195646A (en) * 2010-03-18 2011-09-21 上海华虹Nec电子有限公司 Automatic clock oscillator calibration method and circuit
CN102339014A (en) * 2010-05-13 2012-02-01 玛克西姆综合产品公司 Synchronization of a generated clock
CN102638225A (en) * 2012-04-01 2012-08-15 北京集创北方科技有限公司 On-chip clock frequency regulating circuit and regulating method
CN103701437A (en) * 2013-12-10 2014-04-02 浙江大学 Clock generator integrated in power electronic chip
CN106130547A (en) * 2016-06-20 2016-11-16 大唐微电子技术有限公司 A kind of clock frequency calibration steps and device

Also Published As

Publication number Publication date
CN107579723A (en) 2018-01-12

Similar Documents

Publication Publication Date Title
CN107579723B (en) Method and device for calibrating clock frequency
CN106130547A (en) A kind of clock frequency calibration steps and device
US8564374B2 (en) Oscillator calibration apparatus and oscillator calibration method
WO2015143993A1 (en) Time-domain integrated temperature sensor
CN111443587B (en) External clock calibration method and system
CN104584431A (en) System and method of adjusting a clock signal
CN104378093A (en) Power-on reset method and circuit using MIPI standard circuit
US9019018B2 (en) Integrated circuit with an internal RC-oscillator and method for calibrating an RC-oscillator
US9413370B2 (en) Anti process variation self-adjustable on-chip oscillator
US20180302073A1 (en) Duty cycle calibration circuit and frequency synthesizer using the same
EP2978133A1 (en) Calibration unit for calibrating an oscillator, oscillator arrangement and method for calibrating an oscillator
US20110156821A1 (en) Circuit and method for generating a clock signal
CN103354448B (en) Based on the high resolution time interval generation system of FPGA
CN104541330A (en) System and method to perform scan testing using a pulse latch with a blocking gate
CN113641214A (en) Clock calibration circuit, clock calibration method and related equipment
CN205901711U (en) Accurate digital frequency divider based on GPS pulse signal second
US8917109B2 (en) Method and device for pulse width estimation
CN116155243A (en) Ultra-narrow pulse stretching circuit, method and electronic equipment
US20060164153A1 (en) Characteristic adjustment circuit for logic circuit, circuit, and method of adjusting a characteristic of circuit
CN111026232A (en) Clock calibration method, chip and electronic equipment
CN102638225A (en) On-chip clock frequency regulating circuit and regulating method
CN104917508B (en) The method and system of capacitance key sensitivity adjustment
US9000850B2 (en) Method and apparatus for self-calibrating driving capability and resistance of on-die termination
US20110012651A1 (en) Power-on reset circuit, module including same, and electronic device including same
US20120013414A1 (en) Crystal oscillator circuit for adjusting resonant frequency of crystal oscillator

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant