An oscillator and a self-calibration method thereof are provided. The oscillator includes: an oscillation unit for generating an oscillation signal; a converting unit for converting frequency of the oscillation signal into a voltage signal; a comparison unit for comparing the voltage signal with a first voltage corresponding to a higher frequency and a second voltage corresponding to a lower frequency, and outputting a comparison result signal; an adjusting unit for storing a calibration value, adjusting the calibration value based on the comparison result signal and outputting a calibration signal corresponding to the adjusted calibration value; and a calibration unit for calibrating the frequency of the oscillation signal based on the calibration signal. Self-calibration for the frequency of the oscillation signal may be achieved, which may ensure the stability of the frequency of the oscillation signal.
|
7. A self-calibration method for an oscillator, comprising:
generating an oscillation signal;
converting frequency of the oscillation signal into a voltage signal;
comparing the voltage signal with a first voltage corresponding to a higher frequency and a second voltage corresponding to a lower frequency, and outputting a comparison result signal;
adjusting a calibration value based on the comparison result signal and outputting a calibration signal corresponding to the adjusted calibration value;
calibrating the frequency of the oscillation signal based on the calibration signal; and
determining whether there is a time window for calibration before calibrating the frequency of the oscillation signal based on the calibration signal, if yes, calibrating the frequency of the oscillation signal based on the calibration signal, and if no, latching the calibration signal.
1. An oscillator, comprising:
an oscillation unit for generating an oscillation signal;
a converting unit for converting frequency of the oscillation signal into a voltage signal;
a comparison unit for comparing the voltage signal with a first voltage corresponding to a higher frequency and a second voltage corresponding to a lower frequency, and outputting a comparison result signal;
an adjusting unit for storing a calibration value, adjusting the calibration value based on the comparison result signal and outputting a calibration signal corresponding to the adjusted calibration value;
a calibration unit for calibrating the frequency of the oscillation signal based on the calibration signal;
a control unit for generating a time window for calibration; and
a latch unit for latching the calibration signal, wherein the calibration unit is configured to determine whether there is a time window for calibration, and if yes, the calibration unit calibrates the frequency of the oscillation signal based on the calibration signal, and if not, the latch unit latches the calibration signal.
2. The oscillator according to
3. The oscillator according to
4. The oscillator according to
5. The oscillator according to
6. The oscillator according to
8. The method according to
9. The method according to
10. The method according to
11. The method according to
|
The present application claims priority to Chinese Patent Application No. 201210559559.9, filed on Dec. 20, 2012 and entitled “OSCILLATOR AND SELF-CALIBRATION METHOD THEREOF”, the entire disclosure of which is incorporated herein by reference.
The present disclosure generally relates to the field of integrated circuit, and more particularly, to an oscillator and a self-calibration method thereof.
Clock signals are essential elements in large-scale digital integrated circuits. In these digital systematic circuits, normally there are three kinds of clock signal generation circuits: RC (resistance-capacitance) oscillators, ring oscillators and crystal oscillators. Ring oscillators have a wide range of oscillation frequency and relatively high stability, but have less resistance to power supply noises and may occupy relatively large layout areas. Crystal oscillators have an accurate oscillation frequency and may work stably since the precision thereof may only be related to the intrinsic frequency of selected crystal components. However, crystal oscillators have drawbacks like larger power consumption, higher price. Besides, it is difficult for a crystal oscillator to be integrated in a chip. RC oscillators, due to their characteristics like simple structure, lower power consumption, low cost, convenience for being integrated, and the like, are widely used in oscillation circuits of integrated circuits.
However, output frequency of RC oscillators may be greatly influenced by work voltages and environmental temperatures. Besides, characteristics of RC oscillators may be highly related to manufacturing processes. For example, due to the limitations of semiconductor manufacturing, oscillators formed at different positions of a same wafer may have disparity in oscillation frequencies. Therefore, conventional oscillators may need to be calibrated to output more precise frequencies.
According to an embodiment of the present disclosure, an oscillator is provided, including: an oscillation unit for generating an oscillation signal; a converting unit for converting frequency of the oscillation signal into a voltage signal; a comparison unit for comparing the voltage signal with a first voltage corresponding to a higher frequency and a second voltage corresponding to a lower frequency, and outputting a comparison result signal; an adjusting unit for storing a calibration value, adjusting the calibration value based on the comparison result signal and outputting a calibration signal corresponding to the adjusted calibration value; and a calibration unit for calibrating the frequency of the oscillation signal based on the calibration signal. The higher frequency and the lower frequency may set an acceptable range of frequency variation of the oscillator.
Optionally, the comparison unit is configured to: output a first comparison result signal if the voltage signal is lower than the second voltage, output a second comparison result signal if the voltage signal is higher than the second voltage and lower than the first voltage, and output a third comparison result signal if the voltage signal is higher than the first voltage.
Optionally, the adjusting unit is configured to: add 1 to the calibration value if the comparison unit outputs the first comparison result signal, keep the calibration value unchanged if the comparison unit outputs the second comparison result signal, and subtract 1 from the calibration value if the comparison unit outputs the third comparison result signal.
Optionally, the oscillator further includes a control unit for generating a time window for calibration and a latch unit for latching the calibration signal. Accordingly, the calibration unit is configured to: determine whether there is a time window for calibration, and if yes, calibrate the frequency of the oscillation signal based on the calibration signal. If there is no time window for calibration, the latch unit latches the calibration signal.
Optionally, the control unit is a pulse counter which generates the time window for calibration by counting the number of the oscillation signal.
Optionally, the converting unit includes a frequency-to digital converting unit for converting the frequency of the oscillation signal into a digital signal, and a digital-to-analogue converting unit for converting the digital signal into the voltage signal.
Optionally, the comparison unit includes: a first operational amplifier, a second operational amplifier and a first inverter, where positive terminals of the first and second operational amplifiers are coupled to the voltage signal, a negative terminal of the first operational amplifier is coupled to the first voltage, a negative terminal of the second operational amplifier is coupled to the second voltage, an output terminal of the second operational amplifier is coupled to an input terminal of the first inverter, and the comparison result signal is outputted based on signals from output terminals of the first operational amplifier and the first inverter.
A self-calibration method for an oscillator is provided according to one embodiment of the present disclosure, including: generating an oscillation signal; converting frequency of the oscillation signal into a voltage signal; comparing the voltage signal with a first voltage corresponding to a higher frequency and a second voltage corresponding to a lower frequency, and outputting a comparison result signal; adjusting a calibration value based on the comparison result signal and outputting a calibration signal corresponding to the adjusted calibration value; and calibrating the frequency of the oscillation signal based on the calibration signal.
Optionally, comparing the voltage signal with the first voltage and the second voltage, and outputting the comparison result signal includes: outputting a first comparison result signal if the voltage signal is lower than the second voltage, outputting a second comparison result signal if the voltage signal is higher than the second voltage and lower than the first voltage, and outputting a third comparison result signal if the voltage signal is higher than the first voltage.
Optionally, adjusting the calibration value based on the comparison result signal includes: adding 1 to the calibration value if the comparison unit outputs the first comparison result signal, keeping the calibration value unchanged if the comparison unit outputs the second comparison result signal, and subtracting 1 from the calibration value if the comparison unit outputs the third comparison result signal.
Optionally, the method further includes determining whether there is a time window for calibration before calibrating the frequency of the oscillation signal based on the calibration signal, if yes, calibrating the frequency of the oscillation signal based on the calibration signal, and if no, latching the calibration signal.
Optionally, the time window for calibration is generated by counting the number of the oscillation signal.
Optionally, converting the frequency of the oscillation signal into the voltage signal includes: converting the frequency of the oscillation signal into a digital signal; and converting the digital signal into the voltage signal.
Compared with conventional techniques, the oscillator provided in embodiments of the present disclosure may have a more accurate and stable output. Specifically, the converting unit may convert the oscillation signal generated by the oscillation unit into the voltage signal based on the frequency of the oscillation signal. The voltage signal may be compared by the comparison unit with the first and second voltages respectively corresponding to two ends of an acceptable variation range of the output frequency of the oscillator. The comparison unit may output the comparison result signal based on which the adjusting unit may adjust the calibration value and output the calibration signal. The calibration unit may calibrate the frequency of the oscillation signal based on the calibration signal. In such way, a self-calibration may be implemented, which may keep the frequency of the output oscillation signal more accurate and stable.
Further, the oscillator may include the control unit and the latch unit. The control unit may generate the time window for calibration by counting the number of the oscillation signal generated by the oscillation unit. Within the time window, the calibration unit may calibrate the frequency of the oscillation signal based on the calibration signal. Out of the time window, the latch unit may latch the calibration signal and the calibration unit may suspend calibrating the frequency of the oscillation signal. Therefore, periodic checks and calibrations of the frequency of the oscillation signals can be achieved.
Signal frequencies outputted from conventional oscillators are likely to change with work voltages, environmental temperatures and manufacturing processes, and thus are unstable. Therefore, calibrations for oscillation frequencies are required to obtain stable output frequencies.
Referring to
The frequency of the oscillation signal may drift due to the changes of work voltage and environmental temperature during working. In the oscillator in the embodiment described above, the converting unit 102 may convert the oscillation signal generated by the oscillation unit 101 into the voltage signal based on the frequency of the oscillation signal. The voltage signal may be compared by the comparison unit 103 with the first and second voltages respectively corresponding to the higher voltage and the lower voltage. The higher voltage and the lower voltage may set two ends of an acceptable variation range of the output frequency of the oscillator. The comparison unit 103 may output the comparison result signal based on which the adjusting unit 104 may adjust the calibration value and output the calibration signal corresponding to the adjusted calibration value. The calibration unit 105 may calibrate the frequency of the oscillation signal based on the calibration signal. In such way, a self-calibration may be implemented, which may keep the frequency of the output oscillation signal more accurate and stable.
Specific embodiments of the present disclosure will be illustrated in detail with reference to accompanying drawings.
The oscillation unit 201 is used to generate oscillation signals.
In some embodiments, the oscillation unit 201 may be a RC oscillator which is basically an oscillation circuit including a capacitance and a resistance. Oscillation signals are generated through interconversions between electric field energy and magnetic field energy, so that DC signals can be converted into AC oscillation signals. However, the frequency of the signal outputted by the RC oscillator may be greatly influenced by work voltage and environmental temperature, and thus is unstable. Therefore, calibration is needed.
The converting unit 202 is used to convert an oscillation signal generated by the oscillation unit 201 into a voltage signal based on the frequency f the oscillation signal.
To calibrate the frequency of the oscillation signal, the oscillation signal may need to be converted into a voltage or current signal corresponding to its frequency. The voltage or current signal may be compared with a voltage or current corresponding to a standard frequency to determine whether a drift of the frequency of the oscillation signal occurs. In some embodiments, the converting unit 202 may include a frequency-to-digital unit 202a for converting the oscillation signal into a digital signal based on the frequency of the oscillation signal, and a digital-to-analogue unit 202b for converting the digital signal into the voltage signal. Thereafter, the comparison unit 203 may compare the voltage signal obtained by the converting unit 202 with reference voltages, such that whether a drift of the frequency of the oscillation signal occurs may be determined.
The comparison unit 203 is used to compare the voltage signal with a first voltage VH corresponding to a higher frequency and a second voltage VL corresponding to a lower frequency, and output a comparison result signal.
The higher voltage and the lower voltage are predefined voltage values, which may decide an acceptable variation range of the frequency of the oscillation signal. The higher voltage is higher than the lower voltage. If the frequency of the oscillation signal drifts, due to changes of the work voltage or the environmental temperature, out of the acceptable variation range between the higher voltage and the lower voltage, a calibration may be performed to the frequency of the oscillation signal.
Specifically, the comparison unit 203 may be configured to: if the voltage signal is lower than the second voltage VL, output a first comparison result signal; if the voltage signal is lower than the first voltage VH and higher than the second voltage VL, output a second comparison result signal; and if the voltage signal is higher than the first voltage VH, output a third comparison result signal.
In some embodiments, the comparison unit 203 may include: a first operational amplifier 203a, a second operational amplifier 203b and a first inverter 203c. A positive terminal of the first operational amplifier 203a and a positive terminal of the second operational amplifier 203b may be coupled to the voltage signal outputted by the converting unit 202. A negative terminal of the first operational amplifier 203a may be coupled to the first voltage VH. A negative terminal of the second operational amplifier 203b may be coupled to the second voltage VL. An output terminal of the second operational amplifier 203b may be coupled to an input terminal of the first inverter 203c. Comparison results V1 and V2 may be outputted from an output terminal of the first operational amplifier 203a and an output terminal of the first inverter 203c, respectively.
After the voltage signal outputted from the converting unit 202 is inputted to the comparison unit 203 and compared with the first voltage and the second voltage, the comparison results V1 and V2 may be configured as follows. If the voltage signal is lower than the second voltage VL, the first operational amplifier 203a may output a comparison result V1=0, and the first inverter 203a may output a comparison result V2=1, corresponding to the first comparison result signal. If the voltage signal is lower than the first voltage VH and higher than the second voltage VL, the first operational amplifier 203a may output a comparison result V1=0, and the first inverter 203c may output a comparison result V2=0, corresponding to the second comparison result signal. If the voltage signal is higher than the first voltage VH, the first operational amplifier 203a may output a comparison result V1=1, and the first inverter 203c may output a comparison result V2=0, corresponding to the third comparison result signal.
The adjusting unit 204 is used to store a calibration value, adjust the calibration value based on the comparison result signal outputted by the comparison unit 203, and output a calibration signal based on the adjusted calibration value.
The calibration value may be a binary numerical value which may have 4 bits, 8 bits, 16 bits or the like. The number of the bits may be adjusted based on the calibration precision required by the oscillator. An initial value of the calibration value may be set when the oscillator is initialized and may be corresponding to the predetermined oscillation frequency of the oscillator. Specifically, the adjusting unit 204 may be configured to: add 1 to the calibration value if the comparison unit 203 outputs the first comparison result signal, keep the calibration value unchanged if the comparison unit 203 outputs the second comparison result signal, and subtract 1 from the calibration value if the comparison unit 203 outputs the third comparison result signal.
In some embodiments, the adjusting unit 204 may be an add-subtract counter which may be inputted with the comparison results V1 and V2 outputted by the comparison unit 203, and adjust the calibration value based on the values of V1 and V2. Specifically, if the comparison result outputted by the first operational amplifier 203a is V1=0, and the comparison result outputted by the first inverter 203c is V2=1, the adjusting unit 204 may add 1 to the calibration value. If the comparison result outputted by the first operational amplifier 203a is V1=0, and the comparison result outputted by the first inverter 203c is V2=0, the adjusting unit 204 may keep the calibration value unchanged. If the comparison result outputted by the first operational amplifier 203a is V1=1, and the comparison result outputted by the first inverter 203c is V2=0, the adjusting unit 204 may subtract 1 from the calibration value.
The calibration unit 205 is used to calibrate the frequency of the oscillation signal based on the calibration signal outputted by the adjusting unit 204.
The calibration unit 205 may feed the calibration signal obtained from the adjusting unit 204 back to the oscillation unit 201 to calibrate the frequency of the oscillation signal. In the RC oscillator, adjusting the frequency of the oscillation signal may be implemented by changing charging and discharging currents of the capacitance. The charging and discharging currents are controlled by charging and discharging power supplies which are controlled by a plurality of switches. Turning on and turning off the switches may influence the currents injected into the capacitance, thereby altering the frequency of the oscillation signal.
In some embodiments, the calibration value may be a binary numerical value, i.e., each bit thereof may be 0 or 1. The calibration unit 204 may control the switches in the oscillation unit 201 to be turned on or turned off based on the calibration value corresponding to the calibration signal. That is to say, the bits 0 and 1 in the calibration value may correspond to the switches, and changes of the calibration value may turn on or turn off corresponding switches. Therefore, the charging and discharging currents may be changed and thus the frequency of the oscillation signal may be calibrated.
The oscillator further includes the control unit 206 and the latch unit 207. The control unit 206 is used to generate a time window for calibration. The latch unit 207 is used to latch the calibration signal. The calibration unit 206 may be configured to: determine whether there is a time window for calibration, and if yes, calibrate the frequency of the oscillation signal based on the calibration signal. If there is no time window for calibration, the latch unit 207 may latch the calibration signal, and the calibration unit 206 may suspend calibrating the frequency of the oscillation signal.
In some embodiments, an input terminal of the control unit 206 may be coupled to an output terminal of the oscillation unit 201, an output terminal of the control unit 206 may be coupled to the latch unit 207, so as to transmit a latch signal to the latch unit 207. An input terminal of the latch unit 207 may be coupled to an output terminal of the adjusting unit 204, and an output terminal of the latch unit 207 may be coupled to an input terminal of the calibration unit 205. The control unit 206 may be a pulse counter which generates the time window for calibration by counting the number of oscillation signal. When the number of the oscillation signal reaches a predefined number, the time window is generated. Therefore, the time point and frequency of the generations of the time windows can be controlled by adjusting the predefined number. The latch unit 207 may be a latch. In the latch, the state of the output terminal would not change with the state of the input terminal, unless a latch signal is valid. When the latch signal is valid, the state of the input terminal would be stored into the output terminal and would not change until a next latch signal is received. During the time window of calibration, the control unit 206 may generate a latch signal, and accordingly, the latch unit 207 may transmit the calibration signal outputted by the adjusting unit 204 into the calibration unit 205. Therefore, the frequency of the oscillation signal generated by the oscillation unit 201 may be calibrated. Out of the time window, the state of the output terminal may not change, so that the calibration signal may be latched, and the calibration unit 205 may suspend working.
The control unit 206 may generate the time window for calibration by counting the number of the oscillation signal generated by the oscillation unit 201. Within the time window, the calibration unit 205 may calibrate the frequency of the oscillation signal based on the calibration signal. Out of the time window, the latch unit 207 may latch the calibration signal and the calibration unit 205 may suspend calibrating the frequency of the oscillation signal. Therefore, periodic checks and calibrations of the frequency of the oscillation signals can be achieved.
A self-calibration method for an oscillator is provided according to one embodiment of the present disclosure. Referring to
In S201, generating an oscillation signal.
In S202, converting the oscillation signal into a voltage signal based on a frequency of the oscillation signal. Converting the oscillation signal into the voltage signal based on the frequency of the oscillation signal may include: converting the oscillation signal into a digital signal based on the frequency of the oscillation signal; and converting the digital signal into the voltage signal.
In S203, comparing the voltage signal with a first voltage corresponding to a higher frequency and a second voltage corresponding to a lower frequency, and outputting a comparison result signal. Comparing the voltage signal with the first voltage and the second voltage, and outputting the comparison result signal may include: outputting a first comparison result signal if the voltage signal is lower than the second voltage, outputting a second comparison result signal if the voltage signal is higher than the second voltage and lower than the first voltage, and outputting a third comparison result signal if the voltage signal is higher than the first voltage.
In S204, adjusting a calibration value based on the comparison result signal and outputting a calibration signal based on the adjusted calibration value. Adjusting the calibration value based on the comparison result signal may include: adding 1 to the calibration value if the comparison unit outputs the first comparison result signal, keeping the calibration value unchanged if the comparison unit outputs the second comparison result signal, and subtracting 1 from the calibration value if the comparison unit outputs the third comparison result signal.
In S205, determining whether there is a time window for calibration. If yes, goes to S207, if no, goes to S206.
In S206, latching the calibration signal and going back to S205.
In S207, calibrating the frequency of the oscillation signal based on the calibration signal.
The invention is disclosed, but not limited, by preferred embodiments as above. Based on the disclosure of the invention, those skilled in the art can make any variation and modification without departing from the scope of the invention. Therefore, any simple modification, variation and polishing based on the embodiments described herein is within the scope of the present invention.
Patent | Priority | Assignee | Title |
Patent | Priority | Assignee | Title |
5786733, | Dec 04 1995 | NEC Corporation | Phase-locked oscillating circuit with a frequency fluctuation detecting circuit |
5949281, | Dec 19 1996 | Texas Instruments Incorporated | Self aligning PLL demodulator |
6643347, | Oct 29 1997 | JVC Kenwood Corporation | Clock signal generation apparatus |
6747519, | Jun 28 2002 | GLOBALFOUNDRIES U S INC | Phase-locked loop with automatic frequency tuning |
7049866, | Mar 24 2004 | AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE LIMITED | Compensating for leakage currents in loop filter capacitors in PLLs and the like |
7133485, | Jun 25 2001 | RPX Corporation | Feedback system incorporating slow digital switching for glitch-free state changes |
7940129, | May 21 2008 | CAVIUM INTERNATIONAL; MARVELL ASIA PTE, LTD | Low KVCO phase-locked loop with large frequency drift handling capability |
8010072, | Jun 18 2008 | Qualcomm Incorporated | Charge pump current compensation for phase-locked loop frequency synthesizer systems |
8140040, | Sep 11 2009 | Qualcomm Incorporated | Method and apparatus for a temperature compensated phase locked loop supporting a continuous stream receiver in an integrated circuit |
8179174, | Jun 15 2010 | Mstar Semiconductor, Inc.; MStar Software R&D (Shenzhen) Ltd.; MStar France SAS; MStar Semiconductor, Inc. (Cayman Islands) | Fast phase locking system for automatically calibrated fractional-N PLL |
8274339, | Apr 29 2010 | Intel Corporation | Automatic frequency control architecture with digital temperature compensation |
8421542, | May 28 2010 | MARVELL INTERNATIONAL LTD; CAVIUM INTERNATIONAL; MARVELL ASIA PTE, LTD | Method and apparatus for drift compensation in PLL |
20090219100, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Jan 24 2013 | Grace Semiconductor Manufacturing Corporation | Shanghai Huahong Grace Semiconductor Manufacturing Corporation | MERGER SEE DOCUMENT FOR DETAILS | 032885 | /0010 | |
Aug 26 2013 | CHEN, ADA | Grace Semiconductor Manufacturing Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 031252 | /0154 | |
Aug 26 2013 | YU, EMIR | Grace Semiconductor Manufacturing Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 031252 | /0154 | |
Sep 20 2013 | Shanghai Huahong Grace Semiconductor Manufacturing Corporation | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Dec 23 2018 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Dec 23 2022 | M1552: Payment of Maintenance Fee, 8th Year, Large Entity. |
Date | Maintenance Schedule |
Jun 30 2018 | 4 years fee payment window open |
Dec 30 2018 | 6 months grace period start (w surcharge) |
Jun 30 2019 | patent expiry (for year 4) |
Jun 30 2021 | 2 years to revive unintentionally abandoned end. (for year 4) |
Jun 30 2022 | 8 years fee payment window open |
Dec 30 2022 | 6 months grace period start (w surcharge) |
Jun 30 2023 | patent expiry (for year 8) |
Jun 30 2025 | 2 years to revive unintentionally abandoned end. (for year 8) |
Jun 30 2026 | 12 years fee payment window open |
Dec 30 2026 | 6 months grace period start (w surcharge) |
Jun 30 2027 | patent expiry (for year 12) |
Jun 30 2029 | 2 years to revive unintentionally abandoned end. (for year 12) |