Increasing the dynamic range of an integrator based mutual-capacitance measurement circuit
10082922 ยท 2018-09-25
Assignee
Inventors
Cpc classification
H03K2217/960745
ELECTRICITY
G06F3/038
PHYSICS
G06F3/04182
PHYSICS
G06F3/045
PHYSICS
International classification
G06F3/045
PHYSICS
G01R27/26
PHYSICS
G06F3/041
PHYSICS
Abstract
In one embodiment, a device includes one or more processors and one or more memory units. The one or more memory units collectively store logic configured to cause the one or more processors to perform operations including obtaining a first measurement associated with a first voltage, the first voltage output by the mutual-capacitance measurement circuit in response to a first change in capacitance, and obtaining a second measurement associated with a second voltage, the second voltage output by the mutual-capacitance measurement circuit in response to a second change in capacitance. The operations further include calculating a differential measurement using a difference between the first measurement and the second measurement and determining whether a touch or proximity event has occurred based at least in part on the calculated differential measurement.
Claims
1. A device, comprising: one or more processors; and one or more memory units coupled to the one or more processors, the one or more memory units collectively storing logic configured to, when executed by the one or more processors, cause the one or more processors to perform operations comprising: obtaining a first measurement associated with a first voltage, the first voltage output by a mutual-capacitance measurement circuit in response to a first change in capacitance; obtaining a second measurement associated with a second voltage, the second voltage output by the mutual-capacitance measurement circuit in response to a second change in capacitance; calculating a differential measurement using a difference between the first measurement and the second measurement; and determining whether a touch or proximity event has occurred based at least in part on the calculated differential measurement; wherein: obtaining the first measurement comprises measuring the first change in capacitance of a sensor capacitor; and obtaining the second measurement comprises measuring the second change in capacitance of the sensor capacitor.
2. The device of claim 1, wherein calculating the differential measurement further comprises using measurements obtained during calibration phases performed when the device is initially powered on.
3. The device of claim 1, wherein: the first voltage flows hack through an inverting input of an op-amp until a voltage at the inverting input of the op-amp is rebalanced to a first reference voltage; and the second voltage flows back through the inverting input of the op-amp until the voltage at the inverting input of the op-amp is rebalanced to a second reference voltage.
4. The device of claim 1, wherein the first measurement and the second measurement are obtained by converting the first voltage and the second voltage, respectively, into a corresponding digital value.
5. The device of claim 1, wherein the first and second measurements are obtained, respectively, while the mutual-capacitance measurement circuit is configured in integration mode.
6. The device of claim 1, wherein: measuring the first change in capacitance of the sensor capacitor is measuring the first change in capacitance of the sensor capacitor at a first polarity; and measuring the second change in capacitance of the sensor capacitor is measuring the second change in capacitance of the sensor capacitor with the first polarity reversed.
7. The device of claim 1, wherein the mutual-capacitance measurement circuit comprises: the sensor capacitor; a compensation capacitor; an integrator circuit comprising an integration capacitor, an op-amp, and a feedback loop; and an analog-to-digital converter.
8. A non-transitory computer-readable storage medium embodying logic configured to, when executed by one or more processors, cause the one or more processors to perform operations comprising: obtaining a first measurement associated with a first voltage, the first voltage output by a mutual-capacitance measurement circuit in response to a first change in capacitance; obtaining a second measurement associated with a second voltage, the second voltage output by the mutual-capacitance measurement circuit in response to a second change in capacitance; calculating a differential measurement using a difference between the first measurement and the second measurement; and determining whether a touch or proximity event has occurred based at least in part on the calculated differential measurement; wherein: obtaining first measurement comprises measuring the first change in capacitance of a sensor capacitor; and obtaining the second measurement comprises measuring the second change in capacitance of the sensor capacitor.
9. The non-transitory computer-readable medium of claim 8, wherein calculating the differential measurement further comprises using measurements obtained during calibration phases performed when the device is initially powered on.
10. The non-transitory computer-readable medium of claim 8, wherein: the first voltage flows back through an inverting input of an op-amp until a voltage at the inverting input of the op-amp is rebalanced to a first reference voltage; and the second voltage flows back through the inverting input of the op-amp until the voltage at the inverting input of the op-amp is rebalanced to a second reference voltage.
11. The non-transitory computer-readable medium of claim 8, wherein the first measurement and the second measurement are obtained by converting the first voltage and the second voltage, respectively, into a corresponding digital value.
12. The non-transitory computer-readable medium of claim 8, wherein the first and second measurements are obtained, respectively, while the mutual-capacitance measurement circuit is configured in integration mode.
13. The non-transitory computer-readable medium of claim 8, wherein; measuring the first change in capacitance of the sensor capacitor is measuring the first change in capacitance of the sensor capacitor at a first polarity; and measuring the second change in capacitance of the sensor capacitor is measuring the second change in capacitance of the sensor capacitor with the first polarity reversed.
14. The non-transitory computer-readable medium of claim 8, wherein the mutual-capacitance measurement circuit comprises: the sensor capacitor; a compensation capacitor; an integrator circuit comprising an integration capacitor, an op-amp, and a feedback loop; and an analog-to-digital converter.
15. A method, comprising: obtaining a first measurement associated with a first voltage, the first voltage output by a mutual-capacitance measurement circuit in response to a first change in capacitance; obtaining a second measurement associated with a second voltage, the second voltage output by the mutual-capacitance measurement circuit in response to a second change in capacitance; calculating a differential measurement using a difference between the first measurement and the second measurement; and determining whether a touch or proximity event has occurred based at least in part on the calculated differential measurement; wherein: obtaining the first measurement comprises measuring the first change in capacitance of a sensor capacitor; and obtaining the second measurement comprises measuring the second change in capacitance of the sensor capacitor.
16. The method of claim 15, wherein calculating the differential measurement further comprises using measurements obtained during calibration phases performed when the device is initially powered on.
17. The method of claim 15, wherein: the first voltage flows back through an inverting input of an op-amp until a voltage at the inverting input of the op-amp is rebalanced to a first reference voltage; and the second voltage flows back through the inverting input of the op-amp until the voltage at the inverting input of the op-amp is rebalanced to the second voltage.
18. The method of claim 15, wherein the first measurement and the second measurement are obtained by converting the first voltage and the second voltage, respectively, into a corresponding digital value.
19. The method of claim 15, wherein the first and second measurements are obtained, respectively, while the mutual-capacitance measurement circuit is configured in integration mode.
20. The method of claim 15, wherein: measuring the first change in capacitance of the sensor capacitor is measuring the first change in capacitance of the sensor capacitor at a first polarity; and measuring the second change in capacitance of the sensor capacitor is measuring the second change in capacitance of the sensor capacitor with the first polarity reversed.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
DESCRIPTION OF EXAMPLE EMBODIMENTS
(12)
(13) An electrode (whether a ground electrode, a guard electrode, a drive electrode, or a sense electrode) may be an area of conductive material forming a shape, such as for example a disc, square, rectangle, thin line, other suitable shape, or suitable combination of these. One or more cuts in one or more layers of conductive material may (at least in part) create the shape of an electrode, and the area of the shape may (at least in part) be bounded by those cuts. In particular embodiments, the conductive material of an electrode may occupy approximately 100% of the area of its shape. As an example and not by way of limitation, an electrode may be made of indium tin oxide (ITO) and the ITO of the electrode may occupy approximately 100% of the area of its shape (sometimes referred to as 100% fill), where appropriate. In particular embodiments, the conductive material of an electrode may occupy substantially less than 100% of the area of its shape. As an example and not by way of limitation, an electrode may be made of fine lines of metal or other conductive material (FLM), such as for example copper, silver, or a copper- or silver-based material, and the fine lines of conductive material may occupy approximately 5% of the area of its shape in a hatched, mesh, or other suitable pattern. Herein, reference to FLM encompasses such material, where appropriate. Although this disclosure describes or illustrates particular electrodes made of particular conductive material forming particular shapes with particular fill percentages having particular patterns, this disclosure contemplates any suitable electrodes made of any suitable conductive material forming any suitable shapes with any suitable fill percentages having any suitable patterns.
(14) Where appropriate, the shapes of the electrodes (or other elements) of a touch sensor may constitute in whole or in part one or more macro-features of the touch sensor. One or more characteristics of the implementation of those shapes (such as, for example, the conductive materials, fills, or patterns within the shapes) may constitute in whole or in part one or more micro-features of the touch sensor. One or more macro-features of a touch sensor may determine one or more characteristics of its functionality, and one or more micro-features of the touch sensor may determine one or more optical features of the touch sensor, such as transmittance, refraction, or reflection.
(15) A mechanical stack may contain the substrate (or multiple substrates) and the conductive material forming the drive or sense electrodes of touch sensor 10. As an example and not by way of limitation, the mechanical stack may include a first layer of optically clear adhesive (OCA) beneath a cover panel. The cover panel may be clear and made of a resilient material suitable for repeated touching, such as for example glass, polycarbonate, or poly(methyl methacrylate) (PMMA). This disclosure contemplates any suitable cover panel made of any suitable material. The first layer of OCA may be disposed between the cover panel and the substrate with the conductive material forming the drive or sense electrodes. The mechanical stack may also include a second layer of OCA and a dielectric layer (which may be made of PET or another suitable material, similar to the substrate with the conductive material forming the drive or sense electrodes). As an alternative, where appropriate, a thin coating of a dielectric material may be applied instead of the second layer of OCA and the dielectric layer. The second layer of OCA may be disposed between the substrate with the conductive material making up the drive or sense electrodes and the dielectric layer, and the dielectric layer may be disposed between the second layer of OCA and an air gap to a display of a device including touch sensor 10 and touch-sensor controller 12. As an example only and not by way of limitation, the cover panel may have a thickness of approximately 1 mm; the first layer of OCA may have a thickness of approximately 0.05 mm; the substrate with the conductive material forming the drive or sense electrodes may have a thickness of approximately 0.05 mm; the second layer of OCA may have a thickness of approximately 0.05 mm; and the dielectric layer may have a thickness of approximately 0.05 mm. Although this disclosure describes a particular mechanical stack with a particular number of particular layers made of particular materials and having particular thicknesses, this disclosure contemplates any suitable mechanical stack with any suitable number of any suitable layers made of any suitable materials and having any suitable thicknesses. As an example and not by way of limitation, in particular embodiments, a layer of adhesive or dielectric may replace the dielectric layer, second layer of OCA, and air gap described above, with there being no air gap to the display.
(16) One or more portions of the substrate of touch sensor 10 may be made of polyethylene terephthalate (PET) or another suitable material. This disclosure contemplates any suitable substrate with any suitable portions made of any suitable material. In particular embodiments, the drive or sense electrodes in touch sensor 10 may be made of ITO in whole or in part. In particular embodiments, the drive or sense electrodes in touch sensor 10 may be made of fine lines of metal or other conductive material. As an example and not by way of limitation, one or more portions of the conductive material may be copper or copper-based and have a thickness of approximately 5 m or less and a width of approximately 10 m or less. As another example, one or more portions of the conductive material may be silver or silver-based and similarly have a thickness of approximately 5 m or less and a width of approximately 10 m or less. This disclosure contemplates any suitable electrodes made of any suitable material.
(17) Touch sensor 10 may implement a capacitive form of touch sensing. In a mutual-capacitance implementation, touch sensor 10 may include an array of drive and sense electrodes forming an array of capacitive nodes. A drive electrode and a sense electrode may form a capacitive node. The drive and sense electrodes forming the capacitive node may come near each other, but not make electrical contact with each other. Instead, the drive and sense electrodes may be capacitively coupled to each other across a space between them. A pulsed or alternating voltage applied to the drive electrode (by touch-sensor controller 12) may induce a charge on the sense electrode, and the amount of charge induced may be susceptible to external influence (such as a touch or the proximity of an object). When an object touches or comes within proximity of the capacitive node, a change in capacitance may occur at the capacitive node and touch-sensor controller 12 may measure the change in capacitance. By measuring changes in capacitance throughout the array, touch-sensor controller 12 may determine the position of the touch or proximity within the touch-sensitive area(s) of touch sensor 10.
(18) In a self-capacitance implementation, touch sensor 10 may include an array of electrodes of a single type that may each form a capacitive node. When an object touches or comes within proximity of the capacitive node, a change in self-capacitance may occur at the capacitive node and touch-sensor controller 12 may measure the change in capacitance, for example, as a change in the amount of charge needed to raise the voltage at the capacitive node by a pre-determined amount. As with a mutual-capacitance implementation, by measuring changes in capacitance throughout the array, touch-sensor controller 12 may determine the position of the touch or proximity within the touch-sensitive area(s) of touch sensor 10. This disclosure contemplates any suitable form of capacitive touch sensing, where appropriate.
(19) In particular embodiments, one or more drive electrodes may together form a drive line running horizontally or vertically or in any suitable orientation. Similarly, one or more sense electrodes may together form a sense line running horizontally or vertically or in any suitable orientation. In particular embodiments, drive lines may run substantially perpendicular to sense lines. Herein, reference to a drive line may encompass one or more drive electrodes making up the drive line, and vice versa, where appropriate. Similarly, reference to a sense line may encompass one or more sense electrodes making up the sense line, and vice versa, where appropriate.
(20) Touch sensor 10 may have drive and sense electrodes disposed in a pattern on one side of a single substrate. In such a configuration, a pair of drive and sense electrodes capacitively coupled to each other across a space between them may form a capacitive node. For a self-capacitance implementation, electrodes of only a single type may be disposed in a pattern on a single substrate. In addition or as an alternative to having drive and sense electrodes disposed in a pattern on one side of a single substrate, touch sensor 10 may have drive electrodes disposed in a pattern on one side of a substrate and sense electrodes disposed in a pattern on another side of the substrate. Moreover, touch sensor 10 may have drive electrodes disposed in a pattern on one side of one substrate and sense electrodes disposed in a pattern on one side of another substrate. In such configurations, an intersection of a drive electrode and a sense electrode may form a capacitive node. Such an intersection may be a location where the drive electrode and the sense electrode cross or come nearest each other in their respective planes. The drive and sense electrodes do not make electrical contact with each otherinstead they are capacitively coupled to each other across a dielectric at the intersection. Although this disclosure describes particular configurations of particular electrodes forming particular nodes, this disclosure contemplates any suitable configuration of any suitable electrodes forming any suitable nodes. Moreover, this disclosure contemplates any suitable electrodes disposed on any suitable number of any suitable substrates in any suitable patterns.
(21) As described above, a change in capacitance at a capacitive node of touch sensor 10 may indicate a touch or proximity input at the position of the capacitive node. Touch-sensor controller 12 may detect and process the change in capacitance to determine the presence and location of the touch or proximity input. Touch-sensor controller 12 may then communicate information about the touch or proximity input to one or more other components (such one or more central processing units (CPUs)) of a device that includes touch sensor 10 and touch-sensor controller 12, which may respond to the touch or proximity input by initiating a function of the device (or an application running on the device). Although this disclosure describes a particular touch-sensor controller having particular functionality with respect to a particular device and a particular touch sensor, this disclosure contemplates any suitable touch-sensor controller having any suitable functionality with respect to any suitable device and any suitable touch sensor.
(22) Touch-sensor controller 12 may be one or more integrated circuits (ICs), such as for example general-purpose microprocessors, microcontrollers, programmable logic devices or arrays, application-specific ICs (ASICs). In particular embodiments, touch-sensor controller 12 comprises analog circuitry, digital logic, and digital non-volatile memory. In particular embodiments, touch-sensor controller 12 is disposed on a flexible printed circuit (FPC) bonded to the substrate of touch sensor 10, as described below. The FPC may be active or passive, where appropriate. In particular embodiments, multiple touch-sensor controllers 12 are disposed on the FPC. Touch-sensor controller 12 may include a processor unit, a drive unit, a sense unit, and a storage unit. The drive unit may supply drive signals to the drive electrodes of touch sensor 10. The sense unit may sense charge at the capacitive nodes of touch sensor 10 and provide measurement signals to the processor unit representing capacitances at the capacitive nodes. The processor unit may control the supply of drive signals to the drive electrodes by the drive unit and process measurement signals from the sense unit to detect and process the presence and location of a touch or proximity input within the touch-sensitive area(s) of touch sensor 10. The processor unit may also track changes in the position of a touch or proximity input within the touch-sensitive area(s) of touch sensor 10. The storage unit may store programming for execution by the processor unit, including programming for controlling the drive unit to supply drive signals to the drive electrodes, programming for processing measurement signals from the sense unit, and other suitable programming, where appropriate. Although this disclosure describes a particular touch-sensor controller having a particular implementation with particular components, this disclosure contemplates any suitable touch-sensor controller having any suitable implementation with any suitable components.
(23) Tracks 14 of conductive material disposed on the substrate of touch sensor 10 may couple the drive or sense electrodes of touch sensor 10 to connection pads 16, also disposed on the substrate of touch sensor 10. As described below, connection pads 16 facilitate coupling of tracks 14 to touch-sensor controller 12. Tracks 14 may extend into or around (e.g. at the edges of) the touch-sensitive area(s) of touch sensor 10. Particular tracks 14 may provide drive connections for coupling touch-sensor controller 12 to drive electrodes of touch sensor 10, through which the drive unit of touch-sensor controller 12 may supply drive signals to the drive electrodes. Other tracks 14 may provide sense connections for coupling touch-sensor controller 12 to sense electrodes of touch sensor 10, through which the sense unit of touch-sensor controller 12 may sense charge at the capacitive nodes of touch sensor 10. Tracks 14 may be made of fine lines of metal or other conductive material. As an example and not by way of limitation, the conductive material of tracks 14 may be copper or copper-based and have a width of approximately 100 m or less. As another example, the conductive material of tracks 14 may be silver or silver-based and have a width of approximately 100 m or less. In particular embodiments, tracks 14 may be made of ITO in whole or in part in addition or as an alternative to fine lines of metal or other conductive material. Although this disclosure describes particular tracks made of particular materials with particular widths, this disclosure contemplates any suitable tracks made of any suitable materials with any suitable widths. In addition to tracks 14, touch sensor 10 may include one or more ground lines terminating at a ground connector (which may be a connection pad 16) at an edge of the substrate of touch sensor 10 (similar to tracks 14).
(24) Connection pads 16 may be located along one or more edges of the substrate, outside the touch-sensitive area(s) of touch sensor 10. As described above, touch-sensor controller 12 may be on an FPC. Connection pads 16 may be made of the same material as tracks 14 and may be bonded to the FPC using an anisotropic conductive film (ACF). Connection 18 may include conductive lines on the FPC coupling touch-sensor controller 12 to connection pads 16, in turn coupling touch-sensor controller 12 to tracks 14 and to the drive or sense electrodes of touch sensor 10. In another embodiment, connection pads 16 may be connected to an electro-mechanical connector (such as a zero insertion force wire-to-board connector); in this embodiment, connection 18 may not need to include an FPC. This disclosure contemplates any suitable connection 18 between touch-sensor controller 12 and touch sensor 10.
(25)
(26) Mutual-capacitance measurement circuit 20 of
(27) In particular embodiments, the change in capacitance of sensor capacitor C.sub.X may be determined using differential measurements to minimize common-mode noise. A differential measurement cycle may involve obtaining two measurements of the change in capacitance of sensor capacitor C.sub.X. The first half of a differential measurement cycle may involve measuring the change in capacitance of sensor capacitor C.sub.X at a first polarity and the second half of the differential measurement cycle may involve measuring the change in capacitance of sensor capacitor C.sub.X with the polarity reversed. A differential measurement of the change in capacitance of sensor capacitor C.sub.X may be calculated, for example, using the following equation 40:
ADC.sub.DIFF=(ADC.sub.1ADC.sub.REF1)+(ADC.sub.REF2ADC.sub.2)
(28) In this equation, ADC.sub.REF1 and ADC.sub.1 may be digital values obtained from ADC 34 during the first half of the differential measurement cycle, and ADC.sub.REF2 and ADC.sub.2 may be digital values obtained from ADC 34 during the second half of the differential measurement cycle when the polarity is reversed. ADC.sub.REF1 and ADC.sub.REF2 may be reference measurements from the respective halves of the differential measurement cycle that represent the output voltage V.sub.OUT when mutual-capacitance measurement circuit 20 is balanced. ADC.sub.1 and ADC.sub.2 may be measurements from the respective halves of the differential measurement cycle that represent the output voltage V.sub.OUT when the capacitance of sensor capacitor C.sub.X has been altered by a touch or proximity event. Accordingly, the change in capacitance of sensor capacitor C.sub.X during the first half of the differential measurement cycle may be computed as the difference between ADC.sub.1 and ADC.sub.REF1, and the change in capacitance of sensor capacitor C.sub.X during the second half of the differential measurement cycle may be computed as the difference between ADC.sub.REF2 and ADC.sub.2.
(29) When a touch sensor is initially powered on, a touch-sensor controller may continuously cycle through various phases in order to obtain the necessary measurements required for calculating a differential measurement according to equation 40 above. The first and second phases may involve obtaining the requisite ADC measurements during the first half of the differential measurement cycle (i.e., ADC.sub.REF1 and ADC.sub.1) and the third and fourth phases may involve obtaining the requisite ADC measurements during the second half of the differential measurement cycle (i.e., ADC.sub.REF2 and ADC.sub.2). For example, the first phase may involve obtaining the first ADC reference measurement (i.e., ADC.sub.REF1 from equation 40) by measuring the output of ADC 34 during the first half of the differential measurement cycle while mutual-capacitance measurement circuit 20 is configured in emitter-follower mode. The second phase may involve obtaining the first ADC measurement (i.e., ADC.sub.1 from equation 40) by measuring the output of ADC 34 during the first half of the differential measurement cycle while mutual-capacitance measurement circuit 20 is configured in integration mode. The third phase may involve obtaining the second ADC reference measurement (i.e., ADC.sub.REF2 from equation 40) by measuring the output of ADC 34 during the second half of the differential measurement cycle while mutual-capacitance measurement circuit 20 is configured in emitter-follower mode. The fourth phase may involve obtaining the second ADC measurement (i.e., ADC.sub.2 from equation 40) by measuring the output of ADC 34 during the second half of the differential measurement cycle while mutual-capacitance measurement circuit 20 is configured in integration mode. After completing these phases, a differential measurement may be calculated according to equation 40. For subsequent differential measurements, the ADC reference measurements obtained during the first and third phases may be re-used. Thus, subsequent differential measurements may be calculated by repeating the second and fourth phases without having to repeat the first and third phases. This is because the first and third phases may be calibration phases that only need to be performed when a touch sensor is initially powered on, or upon determining that mutual-capacitance measurement circuit 20 needs to be re-calibrated. A touch-sensor controller may continuously calculate differential measurements in this manner in order to detect touch and proximity events.
(30) A more detailed discussion of the first, second, third, and fourth phases of a differential measurement calculation may be found below in the description of
(31)
(32) As illustrated by
(33) After mutual-capacitance measurement circuit 20 is configured for the first phase of the differential measurement calculation, voltage source V.sub.DD may be driven from the top plate of compensation capacitor C.sub.C across sensor capacitor C.sub.X, resulting in a charge share between C.sub.C and C.sub.X and a voltage at the midpoint M between C.sub.C and C.sub.X that is proportional to the values of C.sub.C and C.sub.X. Because mutual-capacitance measurement circuit 20 is configured in emitter-follower mode, output voltage V.sub.OUT may remain at a constant voltage equal to V.sub.REF1, which is the voltage supplied at the non-inverting input (+) of op-amp 32. This is illustrated by the graph of
(34) After obtaining the first ADC reference measurement during the first half of the differential measurement cycle, the first phase of the differential measurement calculation may be complete. Mutual-capacitance measurement circuit 20 may then be configured for the second phase of the differential measurement calculation, as described, for example, with respect to
(35)
(36) As illustrated by
(37) After mutual-capacitance measurement circuit 20 is configured for the second phase of the differential measurement calculation, voltage source V.sub.DD may be driven from the lower plate of sensor capacitor C.sub.X across compensation capacitor C.sub.C, resulting in a charge share between C.sub.X and C.sub.C and a voltage at the midpoint M between C.sub.X and C.sub.C that is proportional to the values of C.sub.X and C.sub.C. If compensation capacitor C.sub.C has not already been calibrated for the second phase, at this time compensation capacitor C.sub.C may be adjusted until mutual-capacitance measurement circuit 20 is balanced and the midpoint M between C.sub.C and C.sub.X is equal to reference voltage V.sub.REF1. Once compensation capacitor C.sub.C has been calibrated, output voltage V.sub.OUT may remain constant at reference voltage V.sub.REF1 until the capacitance of sensor capacitor C.sub.X is altered by a touch or by an object entering its proximity. When the capacitance of sensor capacitor C.sub.X changes, the voltage at the midpoint M between C.sub.X and C.sub.C may be offset by a certain amount, causing op-amp 32 to output a voltage proportional to the change in capacitance of sensor capacitor C.sub.X. The output voltage of op-amp 32 may flow through integration capacitor C.sub.INT and may be fed back through the inverting input () of op-amp 32 until the voltage at the inverting input () of op-amp 32 is re-balanced at reference voltage V.sub.REF1. Accordingly, output voltage V.sub.OUT may rise by an amount proportional to the change in capacitance of sensor capacitor C.sub.X, as represented by the following expression:
(38)
(39) This is illustrated by the graph of
(40) After obtaining the first ADC measurement during the first half of the differential measurement cycle, the second phase of the differential measurement calculation may be complete. Mutual-capacitance measurement circuit 20 may then be configured for either the third or fourth phase of the differential measurement calculation, depending on whether the third phase has previously been completed. If the third phase has not previously been completed, mutual-capacitance measurement circuit 20 may be configured for the third phase of the differential measurement calculation, as described, for example, with respect to
(41)
(42) As illustrated by
(43) After mutual-capacitance measurement circuit 20 is configured for the third phase of the differential measurement calculation, voltage source V.sub.DD may be driven from the lower plate of sensor capacitor C.sub.X across compensation capacitor C.sub.C, resulting in a charge share between C.sub.X and C.sub.C and a voltage at the midpoint M between C.sub.X and C.sub.C that is proportional to the values of C.sub.X and C.sub.C. Because mutual-capacitance measurement circuit 20 is configured in emitter-follower mode, output voltage V.sub.OUT may remain at a constant voltage equal to V.sub.REF2, which is the voltage supplied at the non-inverting input (+) of op-amp 32. This is illustrated by the graph of
(44) After obtaining the second ADC reference measurement during the second half of the differential measurement cycle, the third phase of the differential measurement calculation may be complete. Mutual-capacitance measurement circuit 20 may then be configured for the fourth phase of the differential measurement calculation, as described, for example, with respect to
(45)
(46) As illustrated by
(47) After mutual-capacitance measurement circuit 20 is configured for the fourth phase of the differential measurement calculation, voltage source V.sub.DD may be driven from the top plate of compensation capacitor C.sub.C across sensor capacitor C.sub.X, resulting in a charge share between C.sub.X and C.sub.C and a voltage at the midpoint M between C.sub.X and C.sub.C that is proportional to the values of C.sub.X and C.sub.C. If compensation capacitor C.sub.C has not already been calibrated for the fourth phase, at this time compensation capacitor C.sub.C may be adjusted until mutual-capacitance measurement circuit 20 is balanced and the midpoint M between C.sub.C and C.sub.X is equal to reference voltage V.sub.REF2. Once compensation capacitor C.sub.C has been calibrated, output voltage V.sub.OUT may remain constant at reference voltage V.sub.REF2 until the capacitance of sensor capacitor C.sub.X is altered by a touch or by an object entering its proximity. When the capacitance of sensor capacitor C.sub.X changes, the voltage at the midpoint M between C.sub.X and C.sub.C may be offset by a certain amount, causing op-amp 32 to output a voltage proportional to the change in capacitance of sensor capacitor C.sub.X. The output voltage of op-amp 32 may flow through integration capacitor C.sub.INT and may be fed back through the inverting input () of op-amp 32 until the voltage at the inverting input () of op-amp 32 is re-balanced at reference voltage V.sub.REF2. Accordingly, output voltage V.sub.OUT may decrease by an amount proportional to the change in capacitance of sensor capacitor C.sub.X, as represented by the following expression:
(48)
(49) This is illustrated by the graph of
(50) After obtaining the second ADC measurement during the second half of the differential measurement cycle, the fourth phase of the differential measurement calculation may be complete. Once the fourth phase is complete, a differential measurement may then be calculated as described above with respect to equation 40 of
(51)
(52) The method may start at step 702, where the variable reference voltage input may be adjusted to increase the dynamic range of the mutual-capacitance measurement circuit for the first half of a differential measurement cycle. For example, in the first half of the differential measurement cycle, the variable reference voltage input may be adjusted to less than half of the supply voltage of the mutual-capacitance measurement circuit, but far enough above zero to avoid low level noise. In this manner, the output voltage of the mutual-capacitance measurement circuit may range from the variable reference voltage input to the supply voltage. After adjusting the variable reference voltage input, the method may proceed to step 704, where it may be determined whether an ADC reference measurement has already been obtained for the first half of the differential measurement cycle. If the first ADC reference measurement has already been obtained, it may be re-used and the method may proceed to step 708. If the first ADC reference measurement has not already been obtained, the method may proceed to step 706 to obtain the first ADC reference measurement. The first ADC reference measurement may be obtained at step 706, for example, by configuring the mutual-capacitance measurement circuit in emitter-follower mode. In addition, the mutual-capacitance measurement circuit may also be configured with the appropriate voltage configuration for obtaining the first ADC reference measurement. After configuring the mutual-capacitance measurement circuit in this manner, a supply voltage may be applied to the mutual-capacitance measurement circuit. Because the mutual-capacitance measurement circuit is configured in emitter-follower mode, the output voltage may remain at a constant voltage equal to variable reference voltage input. The ADC reference measurement for the first half of the differential measurement cycle may now be obtained, for example, by converting the output voltage of the mutual-capacitance measurement circuit into a corresponding digital value using an analog-to-digital converter (ADC). After obtaining the first ADC reference measurement, the method may proceed step 708.
(53) At step 708, the ADC measurement for the first half of the differential measurement cycle may be obtained. This step may involve configuring the mutual-capacitance measurement circuit for integration mode by activating the integrator of the mutual-capacitance measurement circuit. Integration mode may cause the output voltage of the mutual-capacitance measurement circuit to respond to changes in the input voltage of the integrator over time. If the mutual-capacitance measurement circuit was already configured for integration mode, it may be necessary to discharge the integration capacitor of the integrator to release any remaining charge on the integration capacitor. After configuring integration mode, the compensation capacitor may then be tuned to a previously calibrated value for the first half of the differential measurement cycle, if available. If the compensation capacitor has not yet been calibrated for the first half of the differential measurement cycle, the compensation capacitor may need to be calibrated in the manner described below. The mutual-capacitance measurement circuit may also be configured with the appropriate voltage configuration for obtaining the ADC measurement for the first half of the differential measurement cycle. After configuring the mutual-capacitance measurement circuit in this manner, the supply voltage may be applied. If the compensation capacitor has not already been calibrated for this half of the differential measurement cycle, it may be calibrated by adjusting it until the mutual-capacitance measurement circuit is balanced and the midpoint between the compensation capacitor and the sensor capacitor is equal to the variable reference voltage input. At this point, the output voltage of the mutual-capacitance measurement circuit may remain constant at the variable reference voltage input until the capacitance of the sensor capacitor is altered by a touch or by an object entering its proximity. Because the mutual-capacitance measurement circuit is configured in integration mode, it may output a voltage proportional to the change in capacitance of the sensor capacitor. The ADC measurement for the first half of the differential measurement cycle may now be obtained, for example, by converting the output voltage into a corresponding digital value using the analog-to-digital converter. At this point, the first half of the differential measurement cycle may be complete, and the method may proceed to step 710 where the second half of the differential measurement cycle may begin.
(54) At step 710 the variable reference voltage input may be adjusted to increase the dynamic range of the mutual-capacitance measurement circuit for the second half of the differential measurement cycle. For example, the variable reference voltage input may be adjusted to a value over half of the supply voltage of the mutual-capacitance measurement circuit, but far enough below the supply voltage to avoid low level noise. In this manner, the dynamic range of the output voltage may range from the variable reference voltage input to zero. After adjusting the variable reference voltage input, the method may proceed to step 712, where it may be determined whether an ADC reference measurement has already been obtained for the second half of the differential measurement cycle. If an ADC reference measurement has already been obtained for the second half of the differential measurement cycle, it may be re-used and the method may proceed to step 716. If the ADC reference measurement has not already been obtained for the second half of the differential measurement cycle, the method may proceed to step 714 to obtain the second ADC reference measurement. Obtaining the second ADC reference at step 714 may involve, for example, configuring the mutual-capacitance measurement circuit in emitter-follower mode. In addition, the mutual-capacitance measurement circuit may also be configured with the appropriate voltage configuration for obtaining the second ADC reference measurement. After configuring the mutual-capacitance measurement circuit in this manner, a supply voltage may be applied. Because the mutual-capacitance measurement circuit is configured in emitter-follower mode, the output voltage may remain at a constant voltage equal to variable reference voltage input. The ADC reference measurement for the second half of the differential measurement cycle may now be obtained, for example, by converting the output voltage into a corresponding digital value using the analog-to-digital converter. After obtaining the second ADC reference measurement, the method may proceed to step 716.
(55) At step 716, the ADC measurement for the second half of the differential measurement cycle may be obtained. This step may first involve configuring the mutual-capacitance measurement circuit for integration mode. If the mutual-capacitance measurement circuit was already configured for integration mode, it may be necessary to discharge, the integration capacitor of the integrator to release any remaining charge on the integration capacitor. After configuring integration mode, the compensation capacitor may then be tuned to a previously calibrated value for the second half of the differential measurement cycle, if available. If the compensation capacitor has not yet been calibrated for the second half of the differential measurement cycle, the compensation capacitor may need to be calibrated in the manner described below. The mutual-capacitance measurement circuit may also be configured with the appropriate voltage configuration for obtaining the ADC measurement for the second half of the differential measurement cycle. After configuring the mutual-capacitance measurement circuit in this manner, the supply voltage may be applied. If the compensation capacitor has not already been calibrated for this half of the differential measurement cycle, it may be calibrated by adjusting it until the mutual-capacitance measurement circuit is balanced and the midpoint between the compensation capacitor and the sensor capacitor is equal to the variable reference voltage input. At this point, the output voltage of the mutual-capacitance measurement circuit may remain constant at the variable reference voltage input until the capacitance of the sensor capacitor is altered by a touch or by an object entering its proximity. Because the mutual-capacitance measurement circuit is configured in integration mode, it may output a voltage proportional to the change in capacitance of the sensor capacitor. The ADC measurement for the second half of the differential measurement cycle may now be obtained, for example, by converting the output voltage into a corresponding digital value using the analog-to-digital converter. At this point, the second half of the differential measurement cycle may be complete.
(56) The method may then proceed to step 718 where a differential measurement may be calculated, for example, as described above with respect to equation 40 of
(57) Particular embodiments may repeat the steps of the method of
(58) Herein, reference to a computer-readable non-transitory storage medium or media may include one or more semiconductor-based or other integrated circuits (ICs) (such, as for example, a field-programmable gate array (FPGA) or an application-specific IC (ASIC)), hard disk drives (HDDs), hybrid hard drives (HHDs), optical discs, optical disc drives (ODDs), magneto-optical discs, magneto-optical drives, floppy diskettes, floppy disk drives (FDDs), magnetic tapes, solid-state drives (SSDs), RAM-drives, SECURE DIGITAL cards, SECURE DIGITAL drives, any other suitable computer-readable non-transitory storage medium or media, or any suitable combination of two or more of these, where appropriate. A computer-readable non-transitory storage medium or media may be volatile, non-volatile, or a combination of volatile and non-volatile, where appropriate.
(59) Herein, or is inclusive and not exclusive, unless expressly indicated otherwise or indicated otherwise by context. Therefore, herein, A or B means A, B, or both, unless expressly indicated otherwise or indicated otherwise by context. Moreover, and is both joint and several, unless expressly indicated otherwise or indicated otherwise by context. Therefore, herein, A and B means A and B, jointly or severally, unless expressly indicated otherwise or indicated otherwise by context.
(60) The scope of this disclosure encompasses all changes, substitutions, variations, alterations, and modifications to the example embodiments described or illustrated herein that a person having ordinary skill in the art would comprehend. The scope of this disclosure is not limited to the example embodiments described or illustrated herein. Moreover, although this disclosure describes and illustrates respective embodiments herein as including particular components, elements, functions, operations, or steps, any of these embodiments may include any combination or permutation of any of the components, elements, functions, operations, or steps described or illustrated anywhere herein that a person having ordinary skill in the art would comprehend. Furthermore, reference in the appended claims to an apparatus or system or a component of an apparatus or system being adapted to, arranged to, capable of, configured to, enabled to, operable to, or operative to perform a particular function encompasses that apparatus, system, component, whether or not it or that particular function is activated, turned on, or unlocked, as long as that apparatus, system, or component is so adapted, arranged, capable, configured, enabled, operable, or operative.