The present invention concerns, in embodiments, capacitive detection in case of proximity sensors, such as used in capacitive touch screens. In particular, the capacitor to detect stands between one electrode of the electronic circuit measuring it and for instance a finger or pen approaching the screen, so that the second electrode may be considered as referred to external ground.
It is known in the art to detect capacitance variations in capacitive elements of touch screens by varying the voltage across them and measuring the charge or current flowing through the element itself. Such an arrangement is illustrated in
Assuming that the input capacitor to be detected in this known arrangement is Cin, and the feedback capacitor Cfb, that the voltage variation at inputs and at output of amplifier are respectively ΔVin and ΔVout, then the variation of charge on the feedback capacitor is equal to Cfb·(ΔVout·Δvin) which should be equal to the charge variation Cin·ΔVin on the input capacitor. Thus:
Cfb(ΔVout−ΔVin)=CinΔVin
and
ΔVout=ΔVin(1+Cin/Cfb),
yielding in this manner a measurement of the input capacitor Cin.
The problem with this approach is that the measurement is very sensitive to parasitic capacitors. As all the measurement circuit is referred to ground, any parasitic capacitor on chip on the input node is referred to ground and cannot be distinguished from the input capacitor, since the voltage across it varies the same way and the corresponding charge is also injected into the charge amplifier. The voltage variation at the output of the amplifier then becomes:
ΔVout=ΔVin(1+(Cin+Cpar)/Cfb)
The measured capacitor is thus not Cin alone but the sum of Cin with all the lumped parasitic capacitors on the input node. If, as it is often the case, the capacitance that must be detected is smaller compared to the undefined parasitic ones, the quality of the measurement is drastically reduced.
To mitigate this issue, patent FR2756048 proposes to refer the whole measurement circuitry to a voltage floating with respect to ground, this floating voltage being generated by a well-defined varying voltage source, as illustrated in
Notice that in a fully integrated approach, the varying voltage between ground and floating voltage could also be taken on board of the chip (or measurement circuitry), as illustrated in
Notice that the connection between the input of the charge amplifier and the capacitor Cin to be detected can be protected by a guard forced to VF or a voltage related to VF in order to avoid parasitic capacitors on this node polluting the capacitor measurement.
In patent FR2756048, a modulation signal (typically a sinusoid) is applied between ground and floating voltage VF, and the corresponding charge injected through the input capacitor is compensated by a charge injected through another capacitor Cex (excitation capacitor), see
In another aspect of patent FR2756048, the amplitude of the modulating signal applied on Cex is fixed but the amplitude of the varying voltage applied between Vf (floating voltage) and ground is changed in feedback (feedback 2), In this case, the amplitude of the modulation signal applied in feedback is a measurement of the inverse of the input capacitor Cin.
Notice that in the arrangement illustrated by
It is difficult to realize a low-power and low-cost implementation of the floating detection circuit that is exemplified in
Another aim attained by the claimed invention is the compensation of the noise on the reference voltage, which in turn allows relaxing the requirements on this voltage while still aiming at a high resolution, and have a well-controlled gain for the conversion.
Another aim of this invention is the compensation of systematic offset and perturbations common to all channels, which may be referred to as common mode perturbations.
The invention will be better understood with the aid of the description of an embodiment given by way of example and illustrated by the figures, in which:
a and 6b show, schematically the input and outputs, and corresponding waveforms, of the arrangement illustrated by
a-d and 8 illustrate schematically the elements that contribute to the proper biasing of the charge amplifier.
a-d illustrate schematically the elements that contribute, according to an aspect of the present invention, to the reset of the charge amplifier.
a-c show schematically diverse arrangements relating to the power supply of the floating part of the circuit of the invention;
a-b illustrate other means of resetting the charge amplifier of the invention;
a and 19b show schematically a sampler suitable for the invention and elements contributing to the filtering of noise;
a-c show diverse arrangement of flying capacitors that can be used, in the invention, to achieve a supply voltage transformation from the fixed voltage domain towards the floating voltage domain.
a-b illustrate schematically a tandem arrangement of measuring circuits according to a variant of the invention.
The main principle of the invention consists into a measurement circuitry for detection of capacitors with respect to ground, in which the input stage is referred to a floating voltage Vf in order to avoid parasitic capacitors with respect to ground, with the following characteristics:
The modulation signal is a pure square wave signal
The demodulation is performed by measuring the output voltage of the charge amplifier before and after the edge and performing the difference. This difference, thus the voltage step at the output of the charge amplifier, is proportional to the voltage step applied between Vf and ground (amplitude of the square wave signal) and to the input capacitor Cin, and inversely proportional to the feedback capacitor Cfb.
The principle is illustrated in
The circuit proposed in
by the fact that there is no excitation capacitor in the charge amplifier, so no feedback loop, excepted the capacitor Cfb in feedback of the amplifier itself.
Instead of performing a full modulation and demodulation, only a simple square wave signal is applied, while the demodulation simply consists into measuring the voltage steps amplitude. Thanks to this feature, the output signal does not need any more to be monitored continuously, but can be sampled at well-defined discrete time, making this approach compatible with a switched capacitor implementation. Namely, one measures the output voltage once before a voltage step is applied on floating voltage and once after the voltage step, The second measurement should however wait until the whole input charge has been transferred to the charge amplifier and its output has settled to its final value (or close enough to it).
The present description presents examples of the invention in which the voltage source Vin generates a square voltage. The invention is not however limited to this case and includes also variants in which the voltage generated by Vin has a more complex structure. For example Vin could generate a ternary voltage (either +V, 0, or −V, with sharp transitions therebetween) or exponentially decaying pulses, or any other waveform that exhibiting essentially constant or slow-varying intervals separated by voltage steps.
This main principle will however be completed by several improvements that are presented in the following embodiments of the invention.
In an improvement of this invention, the measurement is improved by averaging both rising and falling edges of the square wave modulation signal, in order to have a better rejection of low frequency perturbing signals, such as 50 or 60 Hz perturbations. Such a perturbation can be modelled by a voltage source Vpert between ground and the capacitor to detect, see FIGS. 6a, 6b. These figures also show the square wave input signal Vin applied between ground and floating voltage Vf, and the resulting output voltage Vout between output of amplifier and virtual ground.
The output signal is sampled slightly before each edge, and also after the edge, with sufficient delay in order to let the output voltage Vout settle to its final value. For example, as
Assuming in a first time that there is no perturbation signal, the amplitude of the output signal should be equal to
Vout(T2)−Vout(T1)=Vout(T3)−Vout(T4)=(Cin/Cfb)(Vin_high−Vin_low)=(Cin/Cfb)−Vin_square
with
Vin_square=Vin_high−Vin_low
being the amplitude of the square wave input signal.
As Vout(T2)−Vout(TI)=Vout(T3)−Vout(T4), both edges of output signal have the same amplitude and by averaging both output edges, one still obtains the same result, with less noise due to the averaging. Averaging of rising and falling edges is mainly advantageous in order to filter out low frequency perturbation. Let us consider now the effect of the perturbation voltage. In this case, one has
Vout(T2)−Vout(Tl)=(Cin/Cfb)(Vin_square+Vper(T1)−Vper(T2))
Vout(T3)−Vout(T4)=(Cin/Cfb)(Vin_square+Vper(T4)−Vper(T3))
By averaging:
((Vout(T2)−Vout(Tl))+(Vout(T3)−Vout(T4)))/2=(Cin/Cfb)(Vin_square+Verror)
with
Verror=((Vper(Tl)−Vper(T2))−(Vper(T3)−Vper(T4)))/2
For low frequency perturbation signals, that means for frequencies much lower than the modulation frequency, the slope of the perturbation signal can be considered as approximately constant between two edges of the square modulating signal and one can approximate
Vper(Tl)−Vper(T2)≈Vper(T3)−Vper(T4)
Indeed, naming Vper′ and Vper″ the first and second order derivatives of the perturbing signal, one has
With Tmod/2 being the time between two edges of the square wave input signal, and ΔT being the time between the two samples, before and after each edge, as per
As such, the principle schematic of
The classical way to achieve this is to have a biasing resistor in feedback of the amplifier, in parallel with Cfb, as illustrated in
With all these solutions, the output voltage of the amplifier tends to a steady state value Vout_dc, which is independent of the input signal. The amplifier has thus a high pass filter characteristics, with cut off frequency fc=1/(2 π Rfb Cfb) (cases of
As the signal is transferred at the modulation frequency (frequency of the square wave applied on the floating node Vf), the cut-off frequency of the high-pass filter must be much lower than the modulation frequency. This implies to have either a sufficiently large value of Rb or a sufficiently low value of gmfb. These conditions (large Rfb value or small gmfb value, thus very high impedance on virtual ground) are also favourable in order to limit their contribution to the output noise of the amplifier. But unfortunately they make the system very intolerant to high voltage perturbations such as 50 or 60 Hz perturbations, which can saturate the amplification chain. These perturbations can indeed be of amplitude (typ. 220 V, 380 V) much higher than the supply voltage of the amplifier (maximum a few volts) and can easily saturate the charge amplifier if the peak to peak amplitude of the perturbation multiplied by the gain Cin/Cfb becomes comparable to the output range of the charge amplifier.
Let us consider for instance
In the previous section we saw that a good rejection of the low frequency interferers such as 50 or 60 Hz was achieved by averaging both rising and falling edges of the modulation cycle. This however assumed that the interferers do not saturate the charge amplifier; otherwise there is no more compensation.
The solution proposed with this invention consists into resetting the charge amplifier before an edge of the modulation signal, by forcing the voltage on the virtual ground and the voltage across the feedback capacitor through one or several switches. This can be achieved by the replacing the feedback resistor Rfb of
d is an alternate scheme to
By using reset switches, a small time constant can be obtained during the reset time, due to the low switch resistance (assuming also a large gmfb in case of
Once the reset switch is opened, the circuit becomes sensitive to the perturbation, but only to the variation of the perturbation voltage since the opening of the reset switch. Thus by periodically resetting the amplifier, large perturbations can be tolerated without saturation, provided the variation since the opening of the switch is small enough. Thus maximum tolerance to large perturbations can be obtained by resetting the amplifier at a high frequency, typically before each rising or falling edge of the modulation signal (thus twice the modulation frequency). However, lower frequency of the reset signal could also be possible, (for instance resetting every two edges, every four edges, only before rising edges or before falling edges . . . ,) though leading to less tolerance with respect to large perturbations.
The charge amplifier is reset in this case between each edge, after the second sample of the previous edge has been acquired (for instance at T2) and before the first sample of the next edge is acquired (for instance at T3). Notice that after the reset has been released, a sufficient time is required in order to let the charge amplifier stabilize before performing the first sample of the next edge. Indeed the operation mode of the charge amplifier is changed by releasing the reset, so some time is required to let it settle to its final value.
Notice also that theoretically assuming that the charge amplifier is reset or initialized to a well-defined output value before each edge, there should theoretically be no need to measure again the voltage before the next edge, as this voltage is not supposed to vary significantly after the reset. The problem is that the reset operation is very noisy due to the thermal noise (kT/C noise due to the input and parasitic capacitors). So that the voltage after the reset is different from the ideal value Vinit, not only due to noise, but also due to charge injection and other parasitic effects. But in fact the initialization voltage does not need to be precise if the output voltage is measured after the reset and before the edge, as the information is only in the amplitude of the edge, and not in the absolute voltages. By performing this double measurement (first sample after the reset and before the edge, and second sample after the edge), the noise contribution of the reset phase is removed, this noise being already taken into account by the first sample and compensated when performing the difference between both samples.
Looking at
An improvement proposed in this invention report consists into initializing the output of the charge amplifier to different values dependent on the amplitude and/or direction of the modulation steps generated by the voltage source Vin. Indeed, before a rising edge of the modulating signal, the output of the charge amplifier is expected to increase, so it should be initialized rather to a lower value Vinit_low, thus closer to the lower limit of the output range. And conversely, before a falling edge of the modulating signal, the output of the charge amplifier is expected to decrease, so it should be initialized rather to a higher value Vinit_high, closer to the upper limit of the output range. This improvement allows increasing by up to a factor of 2 the gain of the amplifier, thus improving noise performance. It is illustrated in
As already pointed out, by using a principle such as illustrated in
Let us first consider the schematic of
The negative and positive supply voltages may be generated with a fixed voltage difference (DC voltage source), with respect to the floating voltage source, Vf, as illustrated in
Anyway, all these schematics require different voltage sources for positive input as for supplies.
However, as the reset phase is not critical (it should just put roughly the initialization conditions of the charge amplifier, the negative input (virtual ground) can be shorted to the positive input, which can then be one of the supply, while the other side of the feedback capacitor is initialized at the desired value Vinit, as illustrated in
The measurement of the capacitors may be affected by ambient noise and perturbing signals. One has already mentioned the low frequency perturbing signals, such as 50 or 60 Hz, and shown that the effect of such signals is at first order compensated by averaging rising and falling edges of the modulation signal. Indeed, the contribution of these perturbations to the capacitor measurement is in opposite phase with respect to the signal for rising and falling edges.
In a first embodiment of this invention, one has means in order to average the rising and falling edges (Vout(T2)−Vout(Tl)) and (Vout(T3)−Vout(T4)) of the charge amplifier output signal related to the modulation signals in order to eliminate (or at least strongly attenuate) the effect of low frequency perturbations. This basically corresponds to the operation
((Vout(T2)−Vout(Tl))+(Vout(T3)−Vout(T4)))/2
which is equal to
(−Vout(Tl)+Vout(T2)+Vout(T3)−Vout(T4))/2
as illustrated in
In a second embodiment of this invention, one has the option to consider separately only the rising edges or only the falling edges, in order to detect the presence of low frequency noise and evaluate the noise of the environment. In a third embodiment, one has the option to evaluate the difference (or half the difference) of rising and falling edges, instead of the average, in order to have a pure measurement of the low frequency noise perturbation, This basically corresponds to the operation
((Vout(T2)−Vout(Tl))−(Vout(T3)−Vout(T4)))/2
which is equal to
(−Vout(Tl)+Vout(T2)−Vout(T3)+Vout(T4))/2
With this last measurement, the contribution of the capacitor to be detected is eliminated, but the contributions of the low frequency noise at both edges are summed together.
After the charge amplifier, the output edges should be measured. Different operations remain to be done:
According to this invention, both operations can be performed in any order. In a first implementation (
In a second implementation (
In a third implementation of this invention (
The averaging and ADC conversion are thus performed simultaneously.
The advantage of this approach is that it does not require very large capacitors in order to accumulate the charge corresponding to the voltage edge. Indeed, as soon as the accumulated charges exceed a given level, a charge corresponding to the output code is subtracted by the feedback path. By this fact, a limited amount of charge is accumulated even after a large number of samples, so that the capacitor sizes can be reduced.
More generally the ADC conversion can be performed by means of any architecture of oversampled ADC converters or sigma delta modulator. Namely but in a non-limiting way, a sigma delta modulator of arbitrary order can be selected. The modulator can have a single loop or different cascaded loops (multistage or Mash sigma delta architectures). The quantization at the output of each sigma delta loop can be single bit or multi-bit, and so on.
Sigma-delta modulators include in general integrators or other state-retention means for storing information. Preferably, all the integrators or the internal variables of the sigma delta modulator used to quantify the edges are reset (or forced to a predetermined value) synchronously with the voltage source Vin before performing the averaging or weighted averaging of the different edges, so that there is no additional errors due to the unknown initial conditions of the measurement. This basically corresponds to the family of the incremental ADC's. In another preferred variant, the states of the integrator(s) or internal variable(s) of the sigma delta modulator are sampled and/or quantified after the last conversion, typically by a supplementary Nyquist rate ADC (such as for instance but not limited to a successive approximation ADC). Indeed the state of the integrator(s) of the sigma delta is some image of the accumulated error. Thus by quantifying the final state of the sigma delta modulator, the estimation of the sigma delta modulator can be further refined.
Notice also that there are two different kinds of averaging.
The averaging of rising and falling edges
The averaging of the edges over different modulation cycles.
Here again, these two averaging can be performed into an arbitrary order
For instance, but in a non-limiting way
In the invention as proposed here above, the output of the charge amplifier is sampled periodically, 2 times per edges, once before the edge and once after the edge, in order to perform the difference. Thus only 2 or 4 samples are available per modulation cycles, according to a single edge is taken into account or both edges. By this fact, noise components at frequencies higher than the modulation frequency may not be distinguished from frequencies below the sampling frequency, due to the well-known aliasing effect. It is thus desirable to eliminate these high frequency noise components before sampling.
The sampling is basically performed by storing the voltage of the charge amplifier onto a capacitor and freezing the charge stored onto the capacitor by opening a switch, as illustrated in
In a further embodiment of this invention, the high frequency noise components (high frequency environment noise or wide band noise (thermal noise) of the charge amplifier namely) can then be filtered out by inserting a resistive element in series with the sampling capacitor, as illustrated in
The principle described above may be generalized to applications for which several capacitive inputs have to be monitored simultaneously. This can be achieved.
However the test of such acquisition chain is painful and time consuming because it depends on external capacitors which are difficult to control precisely and moreover the parasitic interconnections may not easily be distinguished from the controlled input capacitance.
Different possibilities exist in order to facilitate the test, all proposed methods being based on using internal test capacitors in order to emulate the external capacitors. These capacitors can be
Now the input of the charge amplifier is a charge, thus in test mode the charge is the product of a test capacitor by a voltage. The test charge can thus be varied:
According to another variant, the invention comprises a floating unipolar or bipolar power supply for the charge amplifier, for example based on flying capacitors that are switched in a cycle comprising in general at least a charge phase, in which the flying capacitor is tied to a power supply and a supply phase in which the flying capacitor is isolated from said power supply and generates the floating power supply.
In order to work properly, the described invention requires that the input stage (charge amplifier at least) is supplied with completely floating voltage sources with respect to the ground, but fix voltage with respect to Vf or VfN, as illustrated namely in previous 2, 3, 5, and 12. A first solution to realize this is to use a flying capacitor Cf, which is connected during one phase (phase 1 in
This circuit may be understood as a fixed-to-floating transformer (or non-floating-to-floating transformer) with transformation ratio of 1. The amplitude of the ripple on Vfp−Vfn is inversely proportional to Cfilter and fsw, while the impedance is inversely proportional to Cf and fsw, with fsw being the switching frequency of the transformer. Most of the time, Cf can be selected relatively small by choosing a high switching frequency.
Without departing from the scope of the present invention, the flying capacitor and the set of four switches connecting it to Vdd, Vss, Vfp and Vfn could be replaced by a capacitive voltage multiplier or divider. For instance, one could also realize a voltage doubler by connecting two different capacitors Cf1 and Cf2 in parallel between Vdd and Vss during phase 1, and connecting both capacitors in series between Vfn and Vfp in phase 2 in order to obtain a (Vfp−Vfn) voltage equal to twice (Vdd−Vss). A voltage tripler could be used using the same principle with 3 capacitors instead of 2. By connecting the capacitors in series between Vdd and Vss and in parallel between Vfp and Vfn, it is possible to attain voltage reductions by a factor 2 or 3. These are just examples, but many architectures achieving different voltage ratios (for instance 2/3, 3/2, 3/4, 4/3, . . . ) may also be used in order to perform the non-floating to floating voltage conversion.
Let us now consider again
Let us now moreover assume
Under these assumptions, and according to
Now considering
Notice that as Cf is directly in parallel with Cfilter, it can be replaced by a single (eventually of higher value) capacitor, allowing sparing one component. This implementation should also be part of the invention.
As already mentioned, the simplification proposed here above implies that the switching frequency of the transformer must be selected the same as the modulation frequency, which could limit the impedance, as the impedance is inversely proportional to this switching frequency.
However the single resulting capacitor now not only plays the role of filtering capacitor (Cfilter) but also of flying capacitor Cf which is extremely favourable in order to lower the impedance. Thus by selecting a high enough capacitor, one can simultaneously obtain a low ripple and low impedance, though the switching frequency is limited to the modulation frequency.
Of course a similar approach could have been obtained by switching the node Vfp between two different fixed voltages, for instance Vdd and Vss2, and having the capacitor Cfilter pre-charged between one Vdd and one Vss during one phase and the electrode Vfn being disconnected from the fixed voltage domain during the other phase.
The invention also includes implementations in which the supply voltage is further regulated, namely in order to attenuate the ripple on the Cfilter capacitor due to its discharge caused by the current consumption of the circuit. For instance, the voltage Vfp generated with respect to Vfn may be regulated into a voltage Vfpr, more constant with respect to Vfn.
Preferably, the measuring circuit of the invention comprises also a guard output (visible in
a and b illustrate a variant of the invention in which an arbitrary number (here 2 to simplify the drawings) of the measuring circuit of the invention can be operated in tandem by foreseeing a selectable high-impedance state for the voltage source Vin. In this case, a measuring system could, if necessary, include two or several measuring circuits (Chip 1, Chip 2) each connected to a variable capacity Cin1, Cin2 or to a group of variable capacities, that are activated sequentially and one at a time for measuring the capacities connected at the respective inputs. The variable voltage of the floating domain is therefore determined by the voltage source of the circuit that is active at any given instant, whereby the variable voltage sources of the circuits that are not active are set in the high-impedance state.
a illustrates the case in which the circuits ‘Chip 1’ and ‘Chip 2’ are connected in tandem for reading the capacities Cin1 and Cin2, with the guard terminals in parallel. ‘Chip 1’ is active, and reads the capacity Cin1. The floating voltage source of Chip 1 is active and determines also the potential of the guard electrodes. Chip 2 is inactive, its internal voltage source and its guard terminal are in a high-impedance state.
The present invention includes also embodiments that allow an improved and more precise detection of variations in the value of an external capacitor Cin (such as a change caused by the proximity of a finger in the case of a touch-sensitive interface) with respect to an external ground, by using special noise compensation techniques that allow accounting for variations of gain and offset in a plurality of channels, and also a measure of noise rejection, as it will be explained in the following.
The channel compensation can usefully be coupled with the sampling that was discussed in relation to the previous embodiment, in which the excitation voltage has steps and the output signal is sampled synchronously with the excitation voltage, for example before and after each step. They could however be used as well with different sampling units implementing other sampling schemes, and with excitation voltages of any waveform.
The invention assumes that the circuit has several parallel channels in order to be able to measure several input capacitors simultaneously, as is generally true for capacitive touch screens. This is illustrated in
In a possible embodiment of the invention, the circuit has several parallel channels as illustrated in
ΔVout—i=vrefCin—i/Cfb
ΔVout—ref=vrefCref/Cfb
and
Code—i=k(vref/Vref—ad)Cin—i/Cfb
Code—ref=k(vref/Vref—ad)Cref/Cfb
The dependency on Vref, Vref_ad and other parameters common to all the channels and defining their gain can then be eliminated by computing the ratio of the measurement on any channel over the measurement of the reference channel.
ΔVout—i/ΔVout—ref=Cin—i/Cref
or
Code—i/Code—ref=Cin—i/Cref.
The result is thus simply a measurement of Cin_i/Cref, and does not depend any more on vref, vref_ad . . . . By this fact, the noise contribution of Vref, vref_ad to the measurement is eliminated. The advantage is that the precision and noise specifications on the reference voltage are then drastically relaxed. The quotients code_i/code_ref can be computed in straightforward way in the digital part.
The quotient ΔVout_i/ΔVout_ref can also be computed by any analog means performing a division. Another possibility to compute this difference is to use an ADC for each output excepted for the reference channel, and use the voltage ΔVOUT_ref generated by the integrator of the reference stage as reference voltage for the ADC on the other measurement channels. Since the codes generated by the ADCs are proportional to the input signal and inversely proportional to the voltage used as reference, this arrangement, schematically represented in
According to a further embodiment, the invention uses a supplementary channel (or sacrifices an existing channel) disconnected from any external capacitor in order to provide offset cancellation. Such channel may be used in order to remove offset sources and perturbations, which are systematic and identical to all channels. These offset sources and perturbations may be of different natures. Some examples are charge injection, which should be the same for every channel, assuming the switches responsible of this charge injection are matched from one channel to another. Other examples may be due to power supply perturbations.
Such examples are illustrated in
One way to get rid of this common mode offset is to use one channel which is not connected to any external capacitor, for instance by disconnecting it from the pad. We will refer to this channel as the offset channel, with charge amplifier output vout_off and output code code_off, see
Indeed, for the different active channels, taking into the input referred offset equivalent to a capacitor Coff, the voltage step at the output of the charge amplifier is given by
ΔVout—i=vref(Cin—i−Coff)/Cfb,
while for the offset channel (with Cin=0), one has
ΔVout_off=−vrefCoff/Cfb
At the output of the ADC of each active channel, one has
Code—i=k(vref/Vref—ad)(Cin—i−Coff)/Cfb,
while the offset channel provides
Code_off=−k(vref/Vref—ad)Coff/Cfb
The systematic offset or common noise can then be compensated for by subtracting from the result on any active channel the result from the offset channel. This can be done either in the analog or in the digital domain.
In the analog domain, subtracting the voltage edges on Vout_i and Vout_off, one has
ΔVout—i−ΔVout_off=vrefCin—i/Cfb,
while in the digital domain, subtracting the code of the offset channel from the code of the other channels, one has
Code—i−Code_off=k(vref/Vref—ad)Cin—i/Cfb.
In each case, the term corresponding to offset or common mode noise has been removed.
It is also possible to combine both gain and offset compensations, by sacrificing two channels, one connected to a reference capacitor Cref as in
The offset and gain can then be compensated by first subtracting from every channel, including the reference channel, the result from the offset channel, and then dividing by the corrected result (ref−off) from the reference channel.
Considering for instance the digital results, the relation between input capacitor and output code is given by
Code=k(vref/Vref—ad)(Cin−Coff)/Cfb.
Thus for every active channel, which Cin=Cin_i:
Code—i=k(vref/Vref—ad)(Cin—i−Coff)/Cfb,
while for the offset channel (Cin=0), one has
Code_off=−k(vref/Vref—ad)Coff/Cfb,
and for the reference channel (Cin=Cref), one has
Code—ref=k(vref/Vref—ad)(Cref−Coff)/Cfb.
The code on each channel can then be compensated in gain and offset by performing the operation
(code—i−code_off)/(code—ref−code_off)
as
code—i−code_off=k(vref/Vref—ad)Cin—i/Cfb
and
code—ref−code_off=k(vref/Vref—ad)Cref/Cfb
which yields
(code—i−code_off)/(code—ref−code_off)=Cin—i/Cref.
irrespective from common mode offset and of the internal reference voltages. This operation corresponds to a linear interpolation between code_off, corresponding to Cin=0, and code_ref, corresponding to Cin=Cref.
Without departing from the scope of the invention, similar operations could also be done in the analog domain in order to compensate for offset and gain.
In a touch screen application, typically for smartphones or tablets, the capacitive electrodes the capacitance of which with respect to ground through finger has to be measured are placed on top of an LCD display. However, only the capacitance on the upper side, with respect to fingers, is of interest, while the capacitance with respect to LCD and parasitics signals from LCD are undesirable. For this reason, a conducting guard layer is inserted between the capacitive electrodes and the LCD display, see
As the capacitive electrodes are tied to negative inputs (virtual grounds) of the charge amplifies, the guard must thus be tied to the voltage VF corresponding to the positive input of the charge amplifier, thus the excitation voltage, on which a well-defined voltage variation vref is applied. Assuming that the charge amplifiers are ideal, both positive and negative are at the same voltage and hence the parasitic capacitors between capacitive electrodes and guard exhibit no voltage variation and transfer no charge.
The guard electrode, also corresponding to the non-inverting input of charge amplifier, thus also acts as a reference electrode, as voltage variation of well-defined amplitude vref are applied through the excitation voltage source.
However practically the excitation voltage source may be noisy, namely due to thermal noise and 1/f noise of transistors used to generate or buffer this voltage, and due to other noise sources.
Moreover, assuming that this excitation voltage source has a non-zero impedance, then the guard will be polluted by the parasitic coupling capacitors between LCD and guard. This will also be seen as a noise on guard voltage. In order to keep this noise sources low, a very low impedance and low noise amplifier is required in order to drive the guard, which requires a high current consumption.
The advantage of the present invention is that all noise sources polluting the VF node (guard voltage), and in particular the coupling to the LCD, are taken into account and compensated for by measuring the effective reference voltage variation on the guard through a channel with reference capacitor with respect to ground, and making the ratio of measurement of any other channel over the measurement of the channel with reference capacitor, as already described in the previous chapter.
This application is a Continuation-in-Part of U.S. patent application Ser. No. 14/089,837, filed Nov. 26, 2013. The entire disclosure of which is incorporated by reference herein.
Number | Date | Country | |
---|---|---|---|
Parent | 14089837 | Nov 2013 | US |
Child | 14560574 | US |