Capacitance adjustment method and capacitance adjustment device
10794943 ยท 2020-10-06
Assignee
Inventors
Cpc classification
H04B1/18
ELECTRICITY
H04B1/0458
ELECTRICITY
H03H7/40
ELECTRICITY
International classification
G01R27/26
PHYSICS
Abstract
A capacitance adjustment method for enabling or disabling a first set of capacitors to an n.sub.th set of capacitors of n sets of capacitors, includes generating a base count according to base capacitance, generating a first count to an n.sub.th count according to the first set of capacitors to the n.sub.th set of capacitors respectively, obtaining a first ratio to an n.sub.th ratio according to the base count and the first count to the n.sub.th count, indicating a target count, obtaining a target ratio according to the base count and the target count, and obtaining a first control signal to an n.sub.th control signal according to the target ratio and the first ratio to the n.sub.th ratio so as to enable or disable the first set of capacitors to the n.sub.th set of capacitors accordingly.
Claims
1. A capacitance adjustment method used to enable or disable a first set of capacitors to an n.sub.th set of capacitors of n sets of capacitors, comprising: generating a base count according to base capacitance; generating a first count to an n.sub.th count according to the first set of capacitors to the n.sub.th set of capacitors respectively; obtaining a first ratio to an n.sub.th ratio according to the base count and the first count to the n.sub.th count; indicating a target count; obtaining a target ratio according to the base count and the target count; and obtaining a first control signal to an n.sub.th control signal according to the target ratio and the first ratio to the n.sub.th ratio to enable or disable the first set of capacitors to the n.sub.th set of capacitors accordingly; wherein n is a positive integer larger than zero.
2. The method of claim 1, wherein: generating the base count according to the base capacitance comprises: generating a base count signal according to the base capacitance; and generating the base count according to the base count signal; and generating the first count to the n.sub.th count according to the first set of capacitors to the n.sub.th set of capacitors respectively comprises: enabling the first set of capacitors to the n.sub.th set of capacitors respectively to generate a first count signal to an n.sub.th count signal; and generating the first count to the n.sub.th count according to the first count signal to the n.sub.th count signal respectively.
3. The method of claim 1, further comprising: generating n count signals according to capacitances of the n sets of capacitors for generating n counts; sorting the n counts to obtain a first count to an n.sub.th count; and sorting the n sets of capacitors to obtain a sequence of the first set of capacitors to the n.sub.th set of capacitors according to a sequence of the a first count to the n.sub.th count; wherein capacitance of an i.sub.th set of capacitors is smaller than capacitance of an (i+1).sub.th set of capacitors, n>i>0 and i is an integer.
4. The method of claim 1, wherein the base capacitance is parasitic capacitance when the n sets of capacitors are all disabled.
5. The method of claim 1, wherein the obtaining the first control signal to the n.sub.th control signal according to the target ratio and the first ratio to the n.sub.th ratio comprises: setting a residual parameter; when the residual parameter is larger than or equal to a reciprocal of an x.sub.th ratio of the first ratio to the n.sub.th ratio, subtracting the reciprocal of the x.sub.th ratio from the residual parameter to update the residual parameter, and setting an x.sub.th control signal of the first control signal to the n.sub.th control signal to an enabling level; and when the residual parameter is larger than or equal to a reciprocal of an (x1).sub.th ratio of the first ratio to the n.sub.th ratio, subtracting the reciprocal of the (x1).sub.th ratio from the residual parameter to update the residual parameter, and setting an (x1).sub.th control signal of the first control signal to the n.sub.th control signal to the enabling level; wherein an initial value of the residual parameter is equal to a reciprocal of the target ratio, x is an integer, and nx2.
6. The method of claim 5, wherein the obtaining the first control signal to the n.sub.th control signal according to the target ratio and the first ratio to the n.sub.th ratio further comprises: when the residual parameter is larger than or equal to a product of a reciprocal of the first ratio and an adjustment parameter, setting the first control signal to an enabling level.
7. The method of claim 1, wherein the obtaining the first control signal to the n.sub.th control signal according to the target ratio and the first ratio to the n.sub.th ratio comprises: setting a residual parameter; when the residual parameter is less than a reciprocal of an x.sub.th ratio of the first ratio to the n.sub.th ratio, setting an x.sub.th control signal of the first control signal to the n.sub.th control signal to a disabling level; and when the residual parameter is larger than or equal to a reciprocal of an (x1).sub.th ratio of the first ratio to the n.sub.th ratio, subtracting the reciprocal of the (x1).sub.th ratio from the residual parameter to update the residual parameter, and setting an (x1).sub.th control signal of the first control signal to the n.sub.th control signal to an enabling level; wherein an initial value of the residual parameter is equal to a reciprocal of the target ratio, x is an integer, and nx2.
8. The method of claim 7, wherein the obtaining the first control signal to the n.sub.th control signal according to the target ratio and the first ratio to the n.sub.th ratio further comprises: when the residual parameter is larger than or equal to a product of a reciprocal of the first ratio and an adjustment parameter, setting the first control signal to an enabling level.
9. The method of claim 1, wherein the obtaining the first control signal to the n.sub.th control signal according to the target ratio and the first ratio to the n.sub.th ratio comprises: setting a residual parameter; when the residual parameter is less than a reciprocal of an x.sub.th ratio of the first ratio to the n.sub.th ratio, setting an x.sub.th control signal of the first control signal to the n.sub.th control signal to a disabling level; and when the residual parameter is less than a reciprocal of an (x1).sub.th ratio of the first ratio to the n.sub.th ratio, setting an (x1).sub.th control signal of the first control signal to the n.sub.th control signal to the disabling level; wherein an initial value of the residual parameter is equal to a reciprocal of the target ratio, x is an integer, and nx2.
10. The method of claim 9, wherein the obtaining the first control signal to the n.sub.th control signal according to the target ratio and the first ratio to the n.sub.th ratio further comprises: when the residual parameter is larger than or equal to a product of a reciprocal of the first ratio and an adjustment parameter, setting the first control signal to an enabling level.
11. The method of claim 1, wherein the obtaining the first control signal to the n.sub.th control signal according to the target ratio and the first ratio to the n.sub.th ratio comprises: setting a residual parameter; when the residual parameter is larger than or equal to a reciprocal of an x.sub.th ratio of the first ratio to the n.sub.th ratio, subtracting the reciprocal of the x.sub.th ratio from the residual parameter to update the residual parameter, and setting an x.sub.th control signal of the first control signal to the n.sub.th control signal to an enabling level; and when the residual parameter is less than a reciprocal of an (x1).sub.th ratio of the first ratio to the n.sub.th ratio, setting an (x1).sub.th control signal of the first control signal to the n.sub.th control signal to a disabling level; wherein an initial value of the residual parameter is equal to a reciprocal of the target ratio, x is an integer, and nx2.
12. The method of claim 11, wherein the obtaining the first control signal to the n.sub.th control signal according to the target ratio and the first ratio to the n.sub.th ratio further comprises: when the residual parameter is larger than or equal to a product of a reciprocal of the first ratio and an adjustment parameter, setting the first control signal to an enabling level.
13. The method of claim 1, wherein the first set of capacitors to the n.sub.th set of capacitors are enabled or disabled by using an m.sub.th control signal of the first control signal to the n.sub.th control signal to enable or disable an m.sub.th switch being coupled to an m.sub.th set of capacitors of the first set of capacitors to the n.sub.th set of capacitors, wherein m is an integer, and nm1.
14. A capacitance adjustment device comprising: a controllable capacitance array configured to generate equivalent capacitance according to a set of control signals, the controllable capacitance array comprising a set of control terminals configured to receive the set of control signals, a first terminal, and n sets of capacitors, wherein the controllable capacitance array is further configured to enable or disable a first set of capacitors to an n.sub.th set of capacitors of the n sets of capacitors; a count generation circuit configured to generate a count according to the equivalent capacitance of the controllable capacitance array, the count generation circuit comprising an input terminal coupled to the first terminal of the controllable capacitance array, and at least one output terminal configured to output the count, wherein the count generation circuit is further configured to generate a base count according to base capacitance and generate a first count to an n.sub.th count according to the first set of capacitors to the n.sub.th set of capacitors respectively; and a processing unit configured to generate the set of control signals according to the count, the processing unit comprising at least one input terminal coupled to the at least one output terminal of the count generation circuit and configured to receive the count, and a set of output terminals coupled to the set of control terminals of the controllable capacitance array and configured to output the set of control signals, wherein the processing unit is further configured to obtain a first ratio to an n.sub.th ratio according to the base count and the first count to the n.sub.th count, indicate a target count, obtain a target ratio according to the base count and the target count, and obtain a first control signal to an n.sub.th control signal according to the target ratio and the first ratio to the n.sub.th ratio to enable or disable the first set of capacitors to the n.sub.th set of capacitors accordingly, and n is a positive integer larger than zero.
15. The capacitance adjustment device of claim 14, wherein the count generation circuit further comprises: a functional circuit configured to generate a count signal and comprising an input terminal coupled to the input terminal of the count generation circuit, and an output terminal configured to output the count signal; and a counting circuit configured to generate the count and comprising an input terminal coupled to the output terminal of the functional circuit and configured to receive the count signal, and at least one output terminal correspondingly coupled to the at least one output terminal of the count generation circuit.
16. The capacitance adjustment device of claim 14, wherein: generating the base count according to the base capacitance comprises: generating a base count signal according to the base capacitance; and generating the base count according to the base count signal; and generating the first count to the n.sub.th count according to the first set of capacitors to the n.sub.th set of capacitors respectively comprises: enabling the first set of capacitors to the n.sub.th set of capacitors respectively to generate a first count signal to an n.sub.th count signal; and generating the first count to the n.sub.th count according to the first count signal to the n.sub.th count signal respectively.
17. The capacitance adjustment device of claim 14, wherein: generating n count signals according to capacitances of the n sets of capacitors for generating n counts; sorting the n counts to obtain a first count to an n.sub.th count; and sorting the n sets of capacitors to obtain a sequence of the first set of capacitors to the n.sub.th set of capacitors according to a sequence of the a first count to the n.sub.th count; wherein capacitance of an i.sub.th set of capacitors is smaller than capacitance of an (i+1).sub.th set of capacitors, n>i>0 and i is an integer.
18. The capacitance adjustment device of claim 14, wherein the base capacitance is parasitic capacitance when the n sets of capacitors are all disabled.
19. The capacitance adjustment device of 14, wherein the first set of capacitors to the n.sub.th set of capacitors are enabled or disabled by using an m.sub.th control signal of the first control signal to the n.sub.th control signal to enable or disable an m.sub.th switch being coupled to an m.sub.th set of capacitors of the first set of capacitors to the n.sub.th set of capacitors, wherein m is an integer, and nm1.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
DETAILED DESCRIPTION
(10) Below, exemplary embodiments will be described in detail with reference to accompanying drawings so as to be easily realized by a person having ordinary knowledge in the art. The inventive concept may be embodied in various forms without being limited to the exemplary embodiments set forth herein. Descriptions of well-known parts are omitted for clarity, and like reference numerals refer to like elements throughout.
(11)
(12) The controllable capacitance array 110 may be used to generate equivalent capacitance according to a set of control signals Sc. The controllable capacitance array 110 may include a first terminal and a set of control terminals, where the set of control terminals is used to receive the set of control signals Sc.
(13) The count generation circuit 120 may be used to generate a count CT according to the equivalent capacitance of the controllable capacitance array 110. The count generation circuit 120 may include an input terminal and at least one output terminal, where the input terminal may be coupled to the first terminal of the controllable capacitance array 110, and the at least one output terminal may be used to output the count CT.
(14) The processing unit 130 may be used to generate the set of control signals Sc according to the count CT. The processing unit 130 may include at least one input terminal and a set of output terminals, where the at least one input terminal may be coupled to the at least one output terminal of the count generation circuit 120 and used to receive the count CT, and the set of output terminals may be coupled to the set of control terminals of the controllable capacitance array 110 and used to output the set of control signals Sc.
(15)
(16) In the capacitors C1 to Cn, a capacitor may be enabled when a corresponding switch is enabled, and a capacitor may be disabled when a corresponding switch is disabled. By controlling the switches using the control signals Sc1 to Scn, a portion of the capacitors C1 to Cn may be selected and electrically connected in parallel for controlling capacitance provided by the controllable capacitance array 110.
(17)
(18)
(19) Step 410: generate a base count CT.sub.B according to base capacitance C.sub.B;
(20) Step 420: generate a first count CT1 to an n.sub.th count CTn according to the first set of capacitors C1 to the n.sub.th set of capacitors Cn respectively;
(21) Step 430: obtain a first ratio R1 to an n.sub.th ratio Rn according to the base count CT.sub.B and the first count CT1 to the n.sub.th count CTn;
(22) Step 440: indicate a target count CT.sub.TAR;
(23) Step 450: obtain a target ratio R.sub.TAR according to the base count CT.sub.B and the target count CT.sub.TAR; and
(24) Step 460: obtain a first control signal Sc1 to an n.sub.th control signal Scn according to the target ratio R.sub.TAR and the first ratio R1 to the n.sub.th ratio Rn to enable or disable the first set of capacitors C1 to the n.sub.th set of capacitors Cn accordingly.
(25) The abovementioned Step 410, Step 420 and Step 430 may be calibration steps performed by calculating the ratios of capacitances for reducing influences caused by errors of circuitry layout and/or manufacture process. The abovementioned Step 440, Step 450 and Step 460 may be matching steps performed for adjusting the capacitance of the controllable capacitance array 110. The setting of the adjusted controllable capacitance array 110 may be used in subsequent manufacture process, for example, a mass production process. In the example of
(26) In Step 410, the base capacitance C.sub.B may correspond to minimum capacitance of the controllable capacitance array 110, for example, parasitic capacitance when the n sets of capacitors C1 to Cn are all disabled. Step 410 may be performed by generating a base count signal Sosc.sub.B according to the base capacitance C.sub.B, and generating the base count CT.sub.B according to the base count signal Sosc.sub.B.
(27) Step 420 may be performed by enabling the first set of capacitors C1 to the n.sub.th set of capacitors Cn respectively to generate a first count signal Sosc1 to an n.sub.th count signal Soscn, and generating the first count CT1 to the n.sub.th count CTn according to the first count signal CT1 to the n.sub.th count signal CTn respectively. According to an embodiment, in Step 430, the first ratio R1 may be expresses as R1=(CT.sub.B/CT1){circumflex over ()}21, and the n.sub.th ratio Rn may be expressed as Rn=(CT.sub.B/CTn){circumflex over ()}21.
(28) In Step 440 and Step 450, the target ratio R.sub.TAR may be determined according to an operation frequency of a channel to be used. In Step 440, the target count CT.sub.TAR may be indicated according to an application. In Step 450, the target ratio R.sub.TAR may be expressed as R.sub.TAR=(CT.sub.B/CT.sub.TAR) 21, where the target count CT.sub.TAR may be a value determined according to a channel to be used.
(29) As described above, under different conditions, the count signal Sosc in
(30) For performing subsequent steps, the capacitors Cn to C1 in Step 420 and
(31) Step 510: generate n count signals according to capacitances of the n sets of capacitors for generating n counts;
(32) Step 520: sort the n counts to obtain a first count CT1 to an n.sub.th count CTn; and
(33) Step 530: sort the n sets of capacitors to obtain a sequence of the first set of capacitors C1 to the n.sub.th set of capacitors Cn according to a sequence of the first count CT1 to the n.sub.th count CTn.
(34) For example, the flow of
(35) TABLE-US-00001 TABLE 1 The n.sub.th set of capacitors Cn . . . The first set of capacitors C1 With maximum capacitance . . . With minimum capacitance Corresponding to the n.sub.th count . . . Corresponding to the signal Soscn first count signal Sosc1 Corresponding to a lowest . . . Corresponding to a frequency highest frequency Corresponding to the . . . Corresponding to the smallest count CTn largest count CT1 Being enabled or disabled . . . Being enabled or through a switch which is disabled through a controlled by the n.sub.th control switch which is signal Scn of the control controlled by the first signals Sc control signal Sc1 of the control signals Sc
(36) As described above, the sequence number corresponding to a first set of capacitors or a first signal may be 1, but sometimes a first set of capacitors or a first signal may be assigned a sequence number 0. In addition, the sequence of the sequence numbers may be reasonably adjusted. For example, n sets of capacitors may be assigned sequence numbers according to capacitances from small to large. The n sets of capacitors may be assigned numbers according to capacitances from large to small, and related steps described above may be correspondingly adjusted. Such reasonable changes are still within the scope of embodiments.
(37)
(38) Step 610: set a residual parameter Rr;
(39) Step 620: determine whether the residual parameter Rr is larger than or equal to a reciprocal of an x.sub.th ratio 1/Rx of the first ratio R1 to the n.sub.th ratio Rn; if so, enter Step 630; else, enter Step 640;
(40) Step 630: subtract the reciprocal of the x.sub.th ratio 1/Rx from the residual parameter Rr to update the residual parameter Rr, and set an x.sub.th control signal Scx of the first control signal Sc1 to the n.sub.th control signal Scn to an enabling level; enter Step 650;
(41) Step 640: set the x.sub.th control signal Scx of the first control signal Sc1 to the n.sub.th control signal Scn to a disabling level; enter Step 650;
(42) Step 650: determine whether the residual parameter Rr is larger than or equal to a reciprocal of an (x1).sub.th ratio 1/R(x1) of the first ratio R1 to the n.sub.th ratio Rn; if so, enter Step 660; else enter Step 670;
(43) Step 660: subtract the reciprocal of the (x1).sub.th ratio 1/R(x1) from the residual parameter Rr to update the residual parameter Rr, and set an (x1).sub.th control signal Sc(x1) of the first control signal Sc1 to the n.sub.th control signal Scn to the enabling level.
(44) Step 670: set the (x1).sub.th control signal Sc(x1) of the first control signal Sc1 to the n.sub.th control signal Scn to the disabling level.
(45) In
(46) In
(47)
(48) Step 710: determine whether the residual parameter Rr is larger than or equal to a product of a reciprocal of the first ratio R1 1/R1 and an adjustment parameter Ap; if so, enter Step 720; else enter Step 730;
(49) Step 720: set the first control signal Sc1 to the enabling level.
(50) Step 730: keep a level of the first control signal Sc1.
(51) The steps in
(52) In
(53) Step 8510: generate 3 count signals according to capacitance of 3 sets of capacitors for generating 3 counts;
(54) Step 8520: sort the 3 counts to obtain a first count CT1 to a third count CT3;
(55) Step 8530: sort the 3 sets of capacitors to obtain a sequence of a first set of capacitors C1 to a third set of capacitors C3 according to a sequence of the first count CT1 to the third count CT3;
(56) Step 8615: set a residual parameter Rr; enter Step 8620;
(57) Step 8620: determine whether the residual parameter Rr is larger than or equal to a reciprocal of a third ratio 1/R3; if so, enter Step 8625; else enter Step 8630;
(58) Step 8625: subtract the reciprocal of the third ratio 1/R3 from the residual parameter Rr to update the residual parameter Rr, and set a third control signal Sc3 to an enabling level; enter Step 8640;
(59) Step 8630: set the third control signal Sc3 to a disabling level; enter Step 8640;
(60) Step 8640: determine whether the residual parameter Rr is larger than or equal to a reciprocal of a second ratio 1/R2; if so, enter Step 8645; else, enter Step 8650;
(61) Step 8645: subtract the reciprocal of the second ratio 1/R2 from the residual parameter Rr to update the residual parameter Rr, and set a second control signal Sc2 to the enabling level; enter Step 8660;
(62) Step 8650: set the second control signal Sc2 to the disabling level;
(63) Step 8660: determine whether the residual parameter Rr is larger than or equal to a reciprocal of a first ratio 1/R1; if so, enter Step 8665; else enter Step 8670;
(64) Step 8665: subtract the reciprocal of the first ratio 1/R1 from the residual parameter Rr to update the residual parameter Rr, and set a first control signal Sc1 to the enabling level; enter Step 8710;
(65) Step 8670: set the first control signal Sc1 to the disabling level; enter Step 8710;
(66) Step 8710: determine whether the residual parameter Rr is larger than or equal to a product of the reciprocal of the first ratio 1/R1 and an adjustment parameter Ap; if so, enter Step 8720; else enter Step 8730;
(67) Step 8720: set the first control signal Sc1 to the enabling level; enter Step 8810;
(68) Step 8730: keep a level of the first control signal Sc1; and
(69) Step 8810: enable or disable the sets of capacitors C1 to C3 using the obtained control signal Sc (including Sc3, Sc2 and Sc1).
(70) Steps 8510, 8520 and 8530 above may correspond to
(71)
(72) As shown in
(73) Regarding a P.sub.th AND-gate ANDp, a first terminal may be coupled to an output terminal of a (p1).sub.th AND-gate AND(p1), a second terminal may be coupled to an output terminal of a (p+1).sub.th flip-flop FF(p+1), and an output terminal may be coupled to a set of control terminals of a (p+2) flip-flop FF(p+2). The parameters p, h and q may be positive integers, 2<h<(q+1), and 1<p<(q1). Algebraic expressions are used to describe the coupling of the components shown in
(74) In summary, a plurality of sets of capacitors of a controllable capacitance array may be sorted and calibrated according to capacitance by performing the foresaid steps repeatedly. Matching capacitance may be adjusted and compensated according to an operation frequency of an antenna. Errors caused by circuit layout and/or manufacture process may be reduced, and the adjusted capacitance may be closer to a required frequency. In addition, by means of methods and devices provided by embodiments, extra workload caused by repeated measurements, and the inaccuracy caused by interpolation may be avoided. Hence, solutions provided by embodiments are helpful in the field.
(75) Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.