Parasitic capacitance cancellation in capacitive measurement
09709614 ยท 2017-07-18
Assignee
Inventors
- Frederick Johannes BRUWER (Paarl, ZA)
- Johann Swanepoel (Paarl, ZA)
- Dieter Sydney-Charles MELLET (Paarl, ZA)
- Douw Gerbrandt Van Der Merwe (Paarl, ZA)
Cpc classification
International classification
G01R27/26
PHYSICS
Abstract
An integrated circuit compensates for parasitic capacitance in a capacitive measuring apparatus wherein a capacitance measurement is done by repeatedly transferring charge from a capacitor to be measured to a reference capacitor.
Claims
1. An integrated circuit for measuring an inductance of a structure, wherein said integrated circuit comprises: charge transfer circuitry for transferring charge during each of a plurality of measurement cycles from said structure to a reference capacitor, and wherein the charge accumulated in the reference capacitor is reduced during every cycle in the inductance measurement by a predetermined amount of charge, and wherein the charge being transferred for measurement is scaled using at least one current mirror structure.
2. The integrated circuit of claim 1, wherein said integrated circuit further comprises at least one current mirror structure for scaling the amount of charge reduction during every cycle.
3. The integrated circuit of claim 1, wherein the reference capacitor is located on-chip in the integrated circuit.
4. The integrated circuit of claim 1 further including a number of selectable on-chip capacitors and wherein the selection of said on-chip capacitors determines the amount of charge reduction during every cycle.
5. The integrated circuit of claim 1, wherein the current mirror structure or structures includes a selection of scaling ratios that can be selected in accordance with an algorithm to optimize the inductance measurement for sensitivity.
6. The integrated circuit of claim 1, wherein the current mirror structure or structures includes a selection of scaling ratios that can be selected in accordance with an algorithm to optimize the inductance measurement for speed.
7. The integrated circuit of claim 1, wherein the current mirror structure or structures includes a selection of scaling ratios that can be selected in accordance with an algorithm to optimize the inductance measurement for stability.
8. The integrated circuit of claim 2, wherein the current mirror structure or structures includes a selection of scaling ratios that can be selected in accordance with an algorithm to optimize the inductance measurement for sensitivity.
9. The integrated circuit of claim 2, wherein the current mirror structure or structures includes a selection of scaling ratios that can be selected in accordance with an algorithm to optimize the inductance measurement for speed.
10. The integrated circuit of claim 2, wherein the current mirror structure or structures includes a selection of scaling ratios that can be selected in accordance with an algorithm to optimize the inductance measurement for stability.
11. The integrated circuit of claim 2, wherein the reduction of charge is independent of the voltage across said reference capacitor.
12. The integrated circuit of claim 1, wherein a reference current which flows for a defined period of time is used to reduce said charge by said predetermined amount.
13. A method to measure an inductance of a structure, wherein said method comprises the steps of transferring charge during each of a plurality of cycles of the measurement from said structure to a reference capacitor, of reducing the amount of charge accumulated in said reference capacitor by a predetermined amount and of scaling the charge being transferred by using at least one current mirror structure.
14. The method of claim 13, further including a step wherein at least one current mirror structure is used to scale the amount of charge reduction during every cycle of said measurement.
15. The method of claim 14, further including a step wherein scaling ratios for said current mirror or mirrors are selected according to an algorithm which optimizes said inductance measurement for sensitivity.
16. The method of claim 14, further including a step wherein scaling ratios for said current mirror or mirrors are selected according to an algorithm which optimizes said inductance measurement for speed.
17. The method of claim 14, further including a step wherein scaling ratios for said current mirror or mirrors are selected according to an algorithm which optimizes said inductance measurement for stability.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) The invention is further described by way of examples with reference to the accompanying drawings in which:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
DESCRIPTION OF PREFERRED EMBODIMENTS
(15)
(16) Before a measurement period a reference capacitor (C.sub.R) is initialized to a known voltage Va (e.g. 0V) by closing a switch S1.
(17) The Charge Transfer Cycle consists of at least 4 phases, viz the Charge Phase (UP), the Transfer Phase (PASS) and two Deadtime Phases (
(18) During the Transfer Phase the switches S.sub.2, S.sub.4 and S.sub.6 are closed and the switches S.sub.3, S.sub.5 and S.sub.7 are open. Capacitors C.sub.M and C.sub.P are connected to the reference capacitor (C.sub.R) and charge is transferred from C.sub.M and C.sub.P to C.sub.R. The voltage on C.sub.R at the end of the Transfer Phase is V.sub.CR.
(19) Thus, during each Charge Transfer Cycle, the parasitic capacitance (C.sub.P) adds C.sub.p (VddV.sub.CR) charge to C.sub.R. This is the amount of charge that the parasitic capacitance cancellation circuit must remove during each Charge Transfer Cycle.
(20) During the Transfer Phase (
(21) During the Charge Phase (
(22) Thus if C.sub.p=C.sub.c, the additional charge that the parasitic capacitance (C.sub.P) adds to C.sub.R during each Charge Transfer Cycle, is removed by the compensation capacitor (C.sub.C) in the next Charge Transfer Cycle and the net gain of charge on C.sub.R is only because of C.sub.M. The effect of the parasitic capacitance C.sub.P is thus cancelled.
(23)
(24) In
(25) The values of n and k can be chosen to meet certain objectives, for example to limit the value of C.sub.R due to size or cost considerations e.g. if k=0.1 and n=0.01 then the charge transfer is reduced by a factor of 1000.
(26) The current mirror can be a single current mirror or use can be made of two or more current mirrors. This does not affect the implementation of the invention. The two stage implementation is merely an example that works well in practice.
(27)
(28) Through switches S6, S7 and S8 the capacitors are charged. The capacitors are discharged through the switches S.sub.3, S.sub.4 and S.sub.5 to ground, creating a reference current. The mirrored and scaled currents then flow through the secondary nodes of the current mirror structure resulting in charge being removed from C.sub.R.
(29) During very low voltage levels on C.sub.R, the structure does not operate well and the charge removed will not reflect the desired parasitic capacitance to be removed. However, in this application it is believed that the negative effect is negligible and is far outweighed by the positives.
(30) The switching selection of the capacitors can be done under software control to automatically calibrate products for optimum operation. For example, a product can be designed and the PCC (parasitic capacitance cancellation) can be used to tune automatically for, say, 4000 transfers, when no touch is present. In this way manufacturing variations can be compensated for.
(31) This means a sensor can be tuned to have a certain capacitance and hence a standard level of performance can be achieved over production. It is thus possible to use various current mirror ratios, different size reference capacitors, various capacitance cancellation values and an algorithm to adjust these to obtain specific transfer counts for a fixed trip level with various objectives such as sensitivity (proximity distance), stability, noise immunity, reaction time and number of charge transfer cycles, to reach a specific voltage level (trip level) and sample frequency. These features can be achieved on a single integrated circuit coupled with a sense plate without the need for external capacitors.
(32) The adjustment of a trip level can also be used in an equivalent way to adjusting the C.sub.R value. Moving the trip level higher is equivalent to enlarging the C.sub.R and vice versa.
(33)
(34) Currents are in general more stable and noise immune than voltages. On silicon (CMOS) it is also possible to generate a range of current references, using mirror structures and other techniques, that are well matched and less affected by layout parasitic effect than, for example, capacitors. The use of currents to remove charge from the C.sub.R can also have advantages for the capacitive cancellation implementation in the sense that switching every Charge Transfer Cycle is not needed for the cancellation circuit. The cancellation current can flow continuously and as long as the charge transfer frequency is stable a fixed ratio between charge added from the C.sub.M to C.sub.R and the charge removed from C.sub.R will be maintained. If C.sub.M changes, the ratio will also change to reflect the changed capacitance measured.
(35)
(36) The integrated circuit (U2) (IQS127 from Azoteq (Pty) Ltd) comprises all the building blocks for the capacitive measurement circuit including the current mirror for scaling the charge transferred from the sense plate (which is connected to pad SNS_PLT) to U2 and the capacitive cancellation circuit that contains several capacitors to select from to predetermine the capacitance that is removed. An external resistor R.sub.1 is used to increase protection against electrostatic discharge (ESD) from the sense plate to U2. Capacitors C.sub.1 and C.sub.2 are for voltage regulation and help to assure a good, stable and noise free supply voltage to the IC U2. The device (U2) provides two outputs namely an indication of proximity detection on POUT, and a touch (i.e. much stronger capacitance variation detected) on TOUT.
(37)
(38) Explanation of ATI Terms
(39) TABLE-US-00001 ATI Antenna Tuning Implementation. C.sub.R Reference Capacitor (Four size selections) CC Bits Capacitance Cancellation size selection (0 to 256) Current Sample The number of charge transfers for the current sense channel ATI Target The preselected number of charge transfers that the ATI algorithm aims for CRI_DIV The C.sub.R current mirror divider ratio (0 = 32/1 = 128) ATI_BUSY Flag that indicates the ATI is in progress for the current sense channel CRI_DIV Select flag Flag to indicate the C.sub.R current mirror divider ratio must be selected CR Select flag Flag to indicate the C.sub.R size must be selected ATI_INIT flag Flag to indicate the initial difference (with all the PCC bits set to zero) between the current sample and the ATI target must be stored ATI_AT_MIN flag Flag to indicate the current sample cannot be adjusted lower ATI_AT_MAX flag Flag to indicate the current sample cannot be adjusted higher Long Term Average A filtered value of the current sample Reseed Flag Flag to indicate the long term average must be loaded with the current sample value
Explanation of the ATI Algorithm
(40) The aim of the ATI algorithm is to adjust the relevant parameters (C.sub.R size, C.sub.R current mirror ratio and the PCC bits) to get the current sample as close as possible to the ATI target count value. This will ensure that the circuit adjusts itself to obtain repeatable performance despite manufacturing and other tolerances.
(41) The ATI algorithm can be implemented in a number of ways. Two possible algorithms are presented. The first algorithm in
(42) Algorithm 1 (Stability Enhancement)
(43) During initialization for ATI [102], the ATI_BUSY flag is set to indicate to the system that ATI is in progress. The CC bits are set to zero, the current mirror divider ratio is set to a higher value and the C.sub.R size is set to a maximum value. The CRI_DIV Select flag is also set to force the system to do a determination if the higher value is the optimal selection.
(44) The system then completes a charge transfer cycle [104]. If it is determined that the CRI_DIV Select flag is set [106] a test is done to check whether the current sample is bigger than the ATI target [138]. If it is bigger the current mirror divider ratio is changed to the lower value [136], the CRI_DIV Select flag is cleared and the CR Select flag is set [134] to force the selection of the appropriate C.sub.R size.
(45) After the next charge transfer cycle is completed the CR Select flag is set [108]. The current sample is checked against the ATI target [142]. If the current sample is smaller than the ATI target the CR Select flag is cleared and the ATI_INIT flag is set [140] to start the process of determining the appropriate CC value to get the current sample the closest to the ATI target.
(46) If the current sample is bigger than the ATI target the C.sub.R size is reduced [144] to the next smaller value until the current sample is smaller than the ATI target. If the minimum value of C.sub.R size is reached [146] the ATI_AT_MIN flag is set [148] to indicate the current sample cannot be adjusted any lower than its current value.
(47) After the next charge transfer cycle is completed the ATI_INIT flag is set [110]. The current CC value (zero) is stored together with the difference between the current sample and the target [134]. The ATI_INIT flag is also cleared.
(48) The algorithm will then keep increasing the CC value [120] and storing the smallest difference value and the CC value that yielded the smallest difference value [118] until either the current sample is at double the target value [112] or the maximum value for the CC is reached [122]. On either of these conditions the CC value that yielded the smallest difference in relation to the target is loaded and a reseed is forced [130].
(49) Algorithm 2 (Sensitivity Enhancement)
(50) During initialization for ATI [202], the ATI_BUSY flag is set to indicate to the system that ATI is in progress. The CC bits are set to a third of the maximum value. This will result in the algorithm selecting a smaller C.sub.R value with a higher CC value resulting in higher sensitivity. The current mirror divider ratio is set to the lower value and the C.sub.R size is set to the maximum value. The CRI_DIV Select flag is also set to force the system to do a determination if the lower value is the optimal selection.
(51) The system then completes a charge transfer cycle [204]. If it is determined that the CRI_DIV Select flag is set [206] a test is done to check whether the current sample is smaller than the ATI target [238]. If it is smaller, the current mirror divider ratio is changed to the higher value [236], the CRI_DIV Select flag is cleared and the CR Select flag is set [234] to force the selection of the appropriate C.sub.R size.
(52) After the next charge transfer cycle is completed the CR Select flag will be set [208]. The current sample is checked against the ATI target [242]. If the current sample is smaller than the ATI target the CR Select flag is cleared and the ATI_INIT flag is set [240] to start the process of determining the appropriate CC value to get the current sample the closest to the ATI target. The CC value is also set to zero.
(53) If the current sample is bigger than the ATI target the C.sub.R size is reduced [244] to the next smaller value until the current sample is smaller than the ATI target. If the minimum value of C.sub.R size is reached the ATI_AT_MIN flag is set [248] to indicate the current sample cannot be adjusted any lower than its current value.
(54) After the next charge transfer cycle is completed the ATI_INIT flag is set [210]. The current CC value (zero) is stored together with the difference between the current sample and the target [234]. The ATI_INIT flag is also cleared.
(55) The algorithm will then keep increasing the CC value [220] and storing the smallest difference value and the CC value that yielded the smallest difference value [218] until either the current sample is at double the target value [212] or the maximum value for the CC is reached [222]. On either of these conditions the CC value that yielded the smallest difference in relation to the target is loaded and a reseed is forced [230]
(56)
(57) It is possible but not essential for the internal and external measurements to work concurrently. For example, when one is in the UP phase, the other can do the PASS phase and vice versa. An additional trip circuit is required for the internal measurements. Detection of a step or change in measurement on the internal C.sub.RI indicates a change in the transfer function of the capacitance measurement circuit 320. This is then used for the filtering of the measurement data.
(58) In one embodiment the detection of RTS noise in accordance with the preceding description triggers an analysis of the normal measurement data and an automatic learning algorithm is then implemented to model the noise manifestation from these measurements. It is then possible to remove the effects of this noise automatically from the measurement signal when the noise occurs or when it disappears.
(59) In another embodiment the size (amplitude) of the internal noise is used to derive an effect (through scaling etc) of the noise on the normal measurement and the effect of the noise can be removed.
(60) Various levels of complexity can be involved and this will depend on the requirements in the application and also on the processing resources available to the designers. In a simple form the indication or triggering of a proximity event detection is inhibited for a period when noise is detected.
(61) In analysis it has been found that noise is introduced into the current mirror structures and that when the capacitance cancellation is then performed this noise is amplified.
(62) A switch S.sub.1 is a PASS switch that transfers the charge from the Sense Plate (C.sub.M) to the current mirror (M1) that mirrors the charge which is transferred as per the ratio (1:X) into the C.sub.R where the charge is accumulated to be measured in some way. For example, a fixed trip level may be set and the number of transfers may be counted, or a fixed number of transfers may be done and then the voltage level may be measured with an ND converter.
(63) Essentially the charge from the sense plate is used to change the capacitors C.sub.1 to C.sub.X, (those connected) before the rest of the charge flows into the current mirror. When S.sub.1 is later opened, a switch S.sub.2 is closed to dump the charge that was accumulated in the capacitance cancellation capacitors. These capacitors must then be charged each time a charge transfer occurs.
(64) In the measurement of small capacitance values the parasitic capacitance inherent in the capacitance cancellation structure may have a negative effect. In this case the structure may be pre-charged (but no cancellation capacitor is switched in) before the charge transfer cycle, to eliminate unwanted parasitic capacitance.
(65) The capacitors C.sub.1 to C.sub.X are not effectively used because the input to the current mirror only allows the current mirror to be charged to a threshold value at its input (0.7V), whereas the sense plate is charged to a much higher voltage. Hence if these capacitors are pre-charged to a negative voltage it will help to improve size efficiency.
(66) Experience has shown that noise is introduced through the current mirror structures. It has not been determined if higher ratios exacerbate this issue, but in another embodiment (shown in
(67) When S.sub.1 is closed, S.sub.3 is open and S.sub.4 is closed the charge from C.sub.M is divided between C.sub.M and C.sub.DIV. In the next operation S.sub.1 is opened and S.sub.3 closed. The circuit then operates as before but the charge will have been divided according to the ratio of C.sub.M and C.sub.DIV. When S.sub.1 is opened the process to charge C.sub.M through S.sub.2 can start again. It is also preferable that C.sub.DIV is chosen so that when the charge division is done, the voltage on C.sub.DIV is still higher than the input to the current mirror structure (typically a diode voltage drop). This can also be ensured by not discharging C.sub.DIV between each charge transfer cycle. This will change the ratio of charge division but can easily be calculated and accounted for.
(68) The use of the C.sub.DIV approach reduces the sensitivity at very high values of C.sub.M but provides a large input range.