METHOD OF BUILDING OSCILLATOR FREQUENCY ADJUSTMENT LOOKUP TABLE AND ASSOCIATED TRANSCEIVER
20230131944 · 2023-04-27
Inventors
Cpc classification
G06F1/08
PHYSICS
H03B2201/0208
ELECTRICITY
H03B2200/004
ELECTRICITY
International classification
Abstract
The application discloses a method, for building an oscillator frequency adjustment lookup table in a transceiver, wherein the transceiver generates a clock according to a crystal oscillator external to the transceiver for transceiving data. The transceiver includes adjustable capacitor arrays assembly connected to the crystal oscillator, wherein when an equivalent capacitance of the adjustable capacitor assembly is a reference value, the crystal oscillator has a reference frequency, and when the equivalent capacitance changes relative to the reference value, the crystal oscillator correspondingly has a frequency offset relative to the reference frequency. The method includes: performing an interpolation operation according to a first value, a second value, and a third value of the equivalent capacitance, and the corresponding frequency variations, so as to obtain the frequency variations corresponding to a first sub-value between the first value and the second values.
Claims
1. A method for building an oscillator frequency adjustment lookup table in a transceiver or a large-scale integrated circuit, wherein the transceiver or the large-scale integrated circuit generates a clock according to a crystal oscillator external to the transceiver for transceiving, and the transceiver comprises an adjustable capacitor set coupled to the crystal oscillator, wherein when an equivalent capacitance of the adjustable capacitor set is a reference value, the crystal oscillator has a reference frequency, and when the equivalent capacitance changes in relative to the reference value, the crystal oscillator correspondingly generates a frequency variation relative to the reference frequency, the method comprising: obtaining the frequency variations corresponding to a first value, a second value and a third value of the equivalent capacitance; performing interpolation according to the first value, the second value and the third value of the equivalent capacitance and the corresponding frequency variations to obtain the frequency variation corresponding to a first sub-value between the first value and the second value of the equivalent capacitance and obtain the frequency variation corresponding to a second sub-value between the second value and the third value of the equivalent capacitance; and storing the first value, the first sub-value, the second value, the second sub-value and the third value of the equivalent capacitance and the corresponding frequency variations in the oscillator frequency adjustment lookup table in a memory cell of the transceiver.
2. The method of claim 1, wherein the step of performing interpolation according to the first value, the second value and the third value of the equivalent capacitance and the corresponding frequency variations comprises: obtaining a first univariate quadratic polynomial of the equivalent capacitance according to the first value, the second value and the third value of the equivalent capacitance and the corresponding frequency variations.
3. The method of claim 2, wherein the first univariate quadratic polynomial is used to approximate a relationship between the crystal oscillator and the equivalent capacitance within the range between the first value and the third value.
4. The method of claim 1, wherein the second value of the equivalent capacitance is an average value of the first value and the third value.
5. The method of claim 2, further comprising: performing interpolation according to the third value, a fourth value and a fifth value of the equivalent capacitance and the corresponding frequency variations to obtain the frequency variation corresponding to a third sub-value between the third value and the fourth value of the equivalent capacitance and obtain the frequency variation corresponding to a fourth sub-value between the fourth value and the fifth value of the equivalent capacitance; and storing the third value, the third sub-value, the fourth value, the fourth sub-value and the fifth value of the equivalent capacitance and the corresponding frequency variations in the oscillator frequency adjustment lookup table in a memory cell of the transceiver.
6. The method of claim 5, wherein the step of performing interpolation according to the third value, the fourth value and the fifth value of the equivalent capacitance and the corresponding frequency variations comprises: obtaining a second univariate quadratic polynomial of the equivalent capacitance according to the third value, the fourth value and the fifth value and the corresponding frequency variations.
7. The method of claim 6, wherein the second univariate quadratic polynomial and the first univariate quadratic polynomial are different.
8. The method of claim 6, wherein the second univariate quadratic polynomial is used to approximate a relationship between the crystal oscillator and the equivalent capacitance within the range between the third value and the fifth value.
9. The method of claim 5, wherein the fourth value of the equivalent capacitance is an average value of the third value and the fifth value.
10. The method of claim 1, wherein the adjustable capacitor set includes a first adjustable capacitor and a second adjustable capacitor equivalently connected in series with each other.
11. A transceiver, configured to generate a clock for transceiving according to a crystal oscillator external to the transceiver, the transceiver comprising: an adjustable capacitor set, coupled to the crystal oscillator, wherein when the equivalent capacitance of the adjustable capacitor set is a reference value, the has a reference frequency, and when the equivalent capacitance changes relative to the reference value, the crystal oscillator correspondingly generates a frequency variation relative to the reference frequency; perform interpolation according to the first value, the second value and the third value of the equivalent capacitance and the corresponding frequency variations to obtain the frequency variation corresponding to a first sub-value between the first value and the second value of the equivalent capacitance having and obtain the frequency variation corresponding to a second sub-value between the second value and the third value of the equivalent capacitance having oscillator frequency adjustment lookup table, the oscillator frequency adjustment lookup table includes the first value, the first sub-value, the second value, the second sub-value and the third value of the equivalent capacitance and the corresponding frequency variations.
12. The transceiver of claim 11, wherein the computing unit obtains a first univariate quadratic polynomial of the equivalent capacitance according to the first value, the second value and the third value of the equivalent capacitance and the corresponding frequency variations.
13. The transceiver of claim 12, wherein the first univariate quadratic polynomial is used to approximate a relationship between the crystal oscillator and the equivalent capacitance within the range between the first value and the third value.
14. The transceiver of claim 11, wherein the second value of the equivalent capacitance is an average value of the first value and the third value.
15. The transceiver of claim 12, wherein the computing unit is further configured to perform interpolation according to the third value, a fourth value and a fifth value of the equivalent capacitance and the corresponding frequency variations to obtain the frequency variation corresponding to a third sub-value between the third value and the fourth value of the equivalent capacitance and obtain the frequency variation corresponding to a fourth sub-value between the fourth value and the fifth value of the equivalent capacitance; and the third value, the third sub-value, the fourth value, the fourth sub-value and the fifth value of the equivalent and the corresponding frequency variations.
16. The transceiver of claim 15, wherein the computing unit further obtain a second univariate quadratic polynomial of the equivalent capacitance according to the third value, the fourth value and the fifth value and the corresponding frequency variations.
17. The transceiver of claim 16, wherein the second univariate quadratic polynomial and the first univariate quadratic polynomial are different.
18. The transceiver of claim 16, wherein the second univariate quadratic polynomial is used to approximate a relationship between the crystal oscillator and the equivalent capacitance within the range between the third value and the fifth value.
19. The transceiver of claim 15, wherein the fourth value of the equivalent capacitance is an average value of the third value and the fifth value.
20. The transceiver of claim 11, wherein the adjustable capacitor se includes a first adjustable capacitor and a second adjustable capacitor equivalently connected in series with each other.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0007] Various aspects of the present application can best be understood upon reading the detailed description below and accompanying drawings. It should be noted that the various features in the drawings are not drawn to scale in accordance with standard practice in the art. In fact, the size of some features may be deliberately enlarged or reduced for the purpose of discussion.
[0008]
[0009]
[0010]
[0011]
DETAILED DESCRIPTION
[0012]
[0013] The transceiver 100 includes an adjustable capacitor set 102 coupled to the crystal oscillator 200, wherein the adjustable capacitor set 102 includes a first adjustable capacitor CIA and a second adjustable capacitor C.sub.L2, one terminal of the first adjustable capacitor CLI is coupled to one terminal of the crystal oscillator 200, and another terminal of the first adjustable capacitor C.sub.L1 is coupled to the ground; one terminal of the second adjustable capacitor C.sub.L2 is coupled to another terminal of the crystal oscillator 200, and another terminal of the second adjustable capacitor C.sub.L2 is coupled to the ground. Therefore, the first adjustable capacitor C.sub.L1 and the second adjustable capacitor C.sub.L2 are equivalently, connected in series with each other through the ground terminal, and the first adjustable capacitor C.sub.L1 and the second adjustable capacitor C.sub.L2 that are serially connected have an equivalent capacitance C. By adjusting the equivalent capacitance C, the resonant frequency of the crystal oscillator 200 can be changed.
[0014] Generally, the equivalent capacitance value C is adjusted before shipping from the factory to reduce the error between the resonant frequency of the crystal oscillator 200 and the target frequency to within the range allowed by the specification. However, in actual use, it is possible that the temperature change may cause the above error to exceed the range allowed by the specification. As shown in
[0015] Therefore, the transceiver 100 needs to monitor the resonant frequency of the crystal oscillator 200 dynamically and control the error of the crystal oscillator 200 at any time by adjusting the adjustable capacitance set 102. However, the equivalent capacitance value C and the resonant frequency of the crystal oscillator 200 are not linearly related, so the correspondence between the capacitance C and the resonant frequency of the crystal oscillator 200 must be recorded in an oscillator frequency adjustment lookup table (hereinafter referred to as the lookup table) in the memory cell 106 of the transceiver 100 in order to know how to adjust the adjustable capacitor set 102 to generate the desired frequency change to compensate the above error.
[0016] Referring to
[0017] However,
[0018] Returning to
To simplify the calculation, the present application proposes to use Taylor expansion to simplify the above relationship into a univariate n-degree polynomial related to the equivalent capacitance C, wherein n is a positive integer, i.e., the oscillation frequency f(C)=α.sub.0+(C−C.sub.a)+α.sub.2(C−C.sub.α).sup.2+ . . . +α.sub.n(C−C.sub.α).sup.n, where C.sub.2 is the expansion point of the polynomial, α.sub.0 is the coefficient of the constant term, α.sub.1 is the coefficient of the first term, and so on so forth for α.sub.2 to α.sub.n. Theoretically, the larger the n, the better the curve approximating the curve shown in
[0019] In the present embodiment, the transceiver 100 shown in
[0020] Next, the computing unit 104 obtains a first univariate quadratic polynomial as the model representing the curve between the first value C.sub.1 and the third value C.sub.3 according to the first value C.sub.1, the second value C.sub.2 and the third value C.sub.3 and the corresponding frequency variation Δf.sub.1, frequency variation Δf.sub.2 and frequency variation Δf.sub.3, in other words, the first univariate quadratic polynomial is used to approximate the relationship between the crystal oscillator 200 and the equivalent capacitance C within the range between the first value C and the third value C. In this embodiment, the second value C.sub.2 is the average of the first value C.sub.1 and the third value C.sub.3 in order to reduce the complexity of the computation and to obtain better results; however, the present disclosure is not limited thereto; in some embodiments, the distances between the first value Cr, the second value C.sub.2 and the third value C.sub.3 may also be unequal.
[0021] Therefore, the frequency variation corresponding to any value of the equivalent capacitance C between the first value C.sub.1 and the third value C.sub.3 can be obtained immediately by using the first univariate quadratic polynomial without further measurement and the frequency variation can be recorded in the lookup table of the memory unit 106. Thus, most of the measurement time in the process of building the lookup table can be saved.
[0022] Similarly, the computing unit 104 can adjust the equivalent capacitance value of the adjustable capacitor group 102 to a fourth value C.sub.4 and then perform measurement to obtain the frequency variation Δf.sub.4; then it can adjust the equivalent capacitance value of the adjustable capacitor group 102 to a fifth value C.sub.5 and then perform measurement to obtain the frequency variation Δf.sub.5. Then, the computing unit 104 obtains a second univariate quadratic polynomial as the model representing the curve between the third value C.sub.3 and the fifth value C.sub.5 according to the third value C.sub.3, the fourth value C.sub.4 and the fifth value C.sub.5 and the corresponding frequency variation Δf.sub.3 (that has been measured previously), frequency variation Δf.sub.4 and frequency variation Δf.sub.5. In other words, the second univariate quadratic polynomial is used to approximate the relationship between the crystal oscillator 200 and the equivalent capacitance C within the range between the third value C.sub.3 and the fifth value C.sub.5. Thus, the frequency variation corresponding to any value of the equivalent capacitance C between the third value C.sub.3 and the fifth value C.sub.5 can be obtained immediately by using the second univariate quadratic polynomial without further measurement and the frequency variation can be recorded in the lookup table of the memory unit 106. Thus, most of the measurement time in the process of building the lookup table can be saved.
[0023] In this way, computing unit 104 can obtain a third univariate quadratic polynomial as a model for the curve between the fifth value C.sub.5 and the seventh value C.sub.7 and obtain a fourth univariate quadratic polynomial as a model for the curve between the seventh value C.sub.7 and the ninth value C.sub.9 to cover the desired range of frequency variation.
[0024] The foregoing embodiments are not intended to limit the scope of the present application. In some embodiments, more than four univariate quadratic polynomials can be used to form the curve between the frequency variation Δf.sub.1 to the frequency variation Δf.sub.9 in