Analog front end (AFE) for quantization noise-limited sensor apparatus
10382054 ยท 2019-08-13
Assignee
Inventors
Cpc classification
H03M3/464
ELECTRICITY
H03M3/32
ELECTRICITY
H03M3/322
ELECTRICITY
H03K2217/960705
ELECTRICITY
G06F3/0418
PHYSICS
H03M3/494
ELECTRICITY
International classification
H03M3/00
ELECTRICITY
G06F3/041
PHYSICS
Abstract
An analog front end (AFE) for an input device includes a current conveyor and an analog-to-digital converter (ADC) switchably coupled to the current conveyor. The current conveyor is configured to receive an input signal from a plurality of sensor electrodes. The ADC generates an output value corresponding to a digital representation of the input signal when the ADC is coupled to the current conveyor. Further, the ADC may selectively adjust the output value based at least in part on a state of the ADC when the ADC is decoupled from the current conveyor. In some implementations, the ADC may include a delta-sigma modulator configured to generate an additional sample when the ADC is decoupled from the current conveyor. The ADC may determine an amount of quantization error in the output value based on the additional sample, and adjust the output value when the quantization error exceeds a threshold amount.
Claims
1. An analog front end (AFE) for an input device, comprising: a current conveyor comprising an amplifier configured to receive an input signal from a plurality of sensor electrodes; and an analog-to-digital converter (ADC) switchably coupled to the current conveyor, the ADC configured to: generate an output value corresponding to a digital representation of the input signal when the ADC is coupled to the current conveyor; and selectively adjust the output value based at least in part on a state of the ADC when the ADC is decoupled from the current conveyor, wherein the input signal is not provided to the ADC when the ADC is decoupled from the current conveyor.
2. The AFE of claim 1, further comprising switching circuitry configured to: couple the ADC to the current conveyor during a sampling interval; and decouple the ADC from the current conveyor upon termination of the sampling interval.
3. The AFE of claim 2, wherein the sampling interval coincides with a low power mode of the AFE.
4. The AFE of claim 1, wherein the ADC includes: a delta-sigma modulator configured to generate a series of samples based at least in part on the received input signal; and a decimation filter configured to convert the series of samples to the output value when the ADC is coupled to the current conveyor.
5. The AFE of claim 4, wherein the delta-sigma modulator is further configured to generate an additional sample when the ADC is decoupled from the current conveyor.
6. The AFE of claim 5, wherein the ADC is configured to selectively adjust the output value by: determining an amount of quantization error in the output value based on the additional sample; and adjusting the output value when the amount of quantization error exceeds a threshold amount.
7. The AFE of claim 6, wherein the decimation filter comprises an up-down counter, and wherein the ADC is further configured to selectively adjust the output value by: incrementing the output value when the amount of quantization error exceeds the threshold amount; and maintaining the output value when the amount of quantization error does not exceed the threshold amount.
8. The AFE of claim 4, wherein the delta-sigma modulator includes an integrator and a feedback digital-to-analog converter (DAC), and wherein the ADC is further configured to decouple the feedback DAC from the integrator prior to generating a first sample in the series of samples.
9. The AFE of claim 8, wherein the ADC is configured to couple the feedback DAC to the integrator a threshold period after receiving the input signal from the current conveyor.
10. The AFE of claim 9, wherein the threshold period is based at least in part on a sampling frequency of the delta-sigma modulator and a return-to-zero time of a clock signal used to control the sampling frequency.
11. A method of operating an analog front end (AFE) switchably coupled to a plurality of sensor electrodes, the method comprising: receiving an input signal from the plurality of sensor electrodes; generating an output value corresponding to a digital representation of the input signal when the AFE is coupled to the plurality of sensor electrodes, the output value being generated by an analog-to-digital converter (ADC); and selectively adjusting the output value based at least in part on a state of the AFE when the AFE is decoupled from the plurality of sensor electrodes, wherein the input signal is not provided to the ADC when the AFE is decoupled from the plurality of sensor electrodes.
12. The method of claim 11, further comprising: coupling the AFE to the plurality of sensor electrodes during a sampling interval; and decoupling the AFE from the plurality of sensor electrodes upon termination of the sampling interval.
13. The method of claim 12, wherein the sampling interval coincides with a low power mode of the AFE.
14. The method of claim 11, further comprising: generating a series of samples based at least in part on the received input signal; and converting the series of samples to the output value when the AFE is coupled to the plurality of sensor electrodes.
15. The method of claim 14, wherein the selectively adjusting comprises: generating an additional sample when the AFE is decoupled from the plurality of sensor electrodes; determining an amount of quantization error in the output value based on the additional sample; and adjusting the output value when the amount of quantization error exceeds a threshold amount.
16. The method of claim 15, wherein the selectively adjusting further comprises: incrementing the output value when the amount of quantization error exceeds the threshold amount; and maintaining the output value when the amount of quantization error does not exceed the threshold amount.
17. The method of claim 14, wherein the AFE includes a delta-sigma modulator, the method further comprising: decoupling a feedback digital-to-analog converter (DAC) of the delta-sigma modulator from an integrator of the delta-sigma modulator prior to generating a first sample in the series of samples.
18. The method of claim 17, further comprising: coupling the feedback DAC to the integrator a threshold period after receiving the input signal from the plurality of sensor electrodes.
19. The method of claim 18, wherein the threshold period is based at least in part on a sampling frequency of the delta-sigma modulator and a return-to-zero time of a clock signal used to control the sampling frequency.
20. An input device, comprising: a plurality of sensor electrodes; and an analog front end (AFE) switchably coupled to the plurality of sensor electrodes, the AFE configured to: receive an input signal from the plurality of sensor electrodes; generate an output value corresponding to a digital representation of the input signal when the AFE is coupled to the plurality of sensor electrodes, the output value being generated by an analog-to-digital converter (ADC); and selectively adjust the output value based at least in part on a state of the AFE when the AFE is decoupled from the plurality of sensor electrodes, wherein the input signal is not provided to the ADC when the AFE is decoupled from the plurality of sensor electrodes.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) The present embodiments are illustrated by way of example and are not intended to be limited by the figures of the accompanying drawings.
(2)
(3)
(4)
(5)
(6)
(7)
(8)
DETAILED DESCRIPTION
(9) In the following description, numerous specific details are set forth such as examples of specific components, circuits, and processes to provide a thorough understanding of the present disclosure. The term coupled as used herein means connected directly to or connected through one or more intervening components or circuits. Also, in the following description and for purposes of explanation, specific nomenclature is set forth to provide a thorough understanding of the aspects of the disclosure. However, it will be apparent to one skilled in the art that these specific details may not be required to practice the example embodiments. In other instances, well-known circuits and devices are shown in block diagram form to avoid obscuring the present disclosure. Some portions of the detailed descriptions which follow are presented in terms of procedures, logic blocks, processing and other symbolic representations of operations on data bits within a computer memory. The interconnection between circuit elements or software blocks may be shown as buses or as single signal lines. Each of the buses may alternatively be a single signal line, and each of the single signal lines may alternatively be buses, and a single line or bus may represent any one or more of a myriad of physical or logical mechanisms for communication between components.
(10) Unless specifically stated otherwise as apparent from the following discussions, it is appreciated that throughout the present application, discussions utilizing the terms such as accessing, receiving, sending, using, selecting, determining, normalizing, multiplying, averaging, monitoring, comparing, applying, updating, measuring, deriving or the like, refer to the actions and processes of a computer system, or similar electronic computing device, that manipulates and transforms data represented as physical (electronic) quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system memories or registers or other such information storage, transmission or display devices.
(11) The techniques described herein may be implemented in hardware, software, firmware, or any combination thereof, unless specifically described as being implemented in a specific manner. Any features described as modules or components may also be implemented together in an integrated logic device or separately as discrete but interoperable logic devices. If implemented in software, the techniques may be realized at least in part by a non-transitory computer-readable storage medium comprising instructions that, when executed, performs one or more of the methods described above. The non-transitory computer-readable storage medium may form part of a computer program product, which may include packaging materials.
(12) The non-transitory processor-readable storage medium may comprise random access memory (RAM) such as synchronous dynamic random access memory (SDRAM), read only memory (ROM), non-volatile random access memory (NVRAM), electrically erasable programmable read-only memory (EEPROM), FLASH memory, other known storage media, and the like. The techniques additionally, or alternatively, may be realized at least in part by a processor-readable communication medium that carries or communicates code in the form of instructions or data structures and that can be accessed, read, and/or executed by a computer or other processor.
(13) The various illustrative logical blocks, modules, circuits and instructions described in connection with the embodiments disclosed herein may be executed by one or more processors. The term processor, as used herein may refer to any general purpose processor, conventional processor, controller, microcontroller, and/or state machine capable of executing scripts or instructions of one or more software programs stored in memory.
(14)
(15) In some aspects, the input device 100 may be implemented as a physical part of the corresponding electronic system. Alternatively, the input device 100 may be physically separated from the electronic system. The input device 100 may be coupled to (and communicate with) components of the electronic system using various wired and/or wireless interconnection and communication technologies, such as buses and networks. Example technologies may include Inter-Integrated Circuit (I.sup.2C), Serial Peripheral Interface (SPI), PS/2, Universal Serial bus (USB), Bluetooth?, Infrared Data Association (IrDA), and various radio frequency (RF) communication protocols defined by the IEEE 802.11 standard.
(16) In the example of
(17) In some embodiments, the sensing region 120 may extend from a surface of the input device 100 in one or more directions in space, for example, until a signal-to-noise ratio (SNR) of the sensors falls below a threshold suitable for object detection. For example, the distance to which the sensing region 120 extends in a particular direction may be on the order of less than a millimeter, millimeters, centimeters, or more, and may vary with the type of sensing technology used and/or accuracy desired. In some embodiments, the sensing region 120 may detect inputs involving no physical contact with any surfaces of the input device 100, contact with an input surface (e.g., a touch surface and/or screen) of the input device 100, contact with an input surface of the input device 100 coupled with some amount of applied force or pressure, and/or any combination thereof.
(18) In some embodiments, input surfaces may be provided by, and/or projected on, one or more surfaces of a housing of the input device 100 (e.g., as an image). For example, the sensing region 120 may have a rectangular shape when projected onto an input surface of the input device 100. In some aspects, inputs may be provided through images spanning one, two, three, or higher dimensional spaces in the sensing region 120. In some other aspects, inputs may be provided through projections along particular axes or planes in the sensing region 120. Still further, in some aspects, inputs may be provided through a combination of images and projections in the sensing region 120.
(19) The input device 100 may utilize various sensing technologies to detect user input. Example sensing technologies may include capacitive, elastive, resistive, inductive, magnetic, acoustic, ultrasonic, and optical sensing technologies. In some embodiments, the input device 100 may utilize capacitive sensing technologies to detect user inputs. For example, the sensing region 120 may include one or more capacitive sensing elements 121 (e.g., sensor electrodes) to create an electric field. The input device 100 may detect inputs based on changes in capacitance of the sensing elements 121. For example, an object in contact with (or close proximity to) the electric field may cause changes in the voltage and/or current in the sensing elements 121. Such changes in voltage and/or current may be detected as signals indicative of user input. The sensing elements 121 may be arranged in arrays or other configurations to detect inputs at multiple points within the sensing region 120. In some aspects, some sensing elements 121 may be ohmically shorted together to form larger sensor electrodes. Some capacitive sensing technologies may utilize resistive sheets that provide a uniform layer of resistance.
(20) Example capacitive sensing technologies may be based on self-capacitance(also referred to as absolute capacitance) and/or mutual capacitance (also referred to as transcapacitance). Absolute capacitance sensing methods detect changes in the capacitive coupling between one or more of the sensing elements 121 and an input object. For example, an input object near one or more of the sensing elements 121 may alter the electric field near the sensing elements 121, thus changing the measured capacitive coupling between two or more sensor electrodes of the sensing elements 121. In some embodiments, the input device 100 may implement absolute capacitance sensing by modulating sensor electrodes with respect to a reference voltage and detecting the capacitive coupling between the sensor electrodes and input objects. The reference voltage may be substantially constant or may vary. In some aspects, the reference voltage may correspond to a ground potential.
(21) Transcapacitance sensing methods detect changes in the capacitive coupling between sensor electrodes. The change in capacitive coupling may be between sensor electrodes in two different sensing elements 121 or between two different sensor electrodes in the same sensing element 121. For example, an input object near the sensor electrodes may alter the electric field between the sensor electrodes, thus changing the measured capacitive coupling of the sensor electrodes. In some embodiments, the input device 100 may implement transcapacitance sensing by detecting the capacitive coupling between one or more transmitter sensor electrodes and one or more receiver sensor electrodes. Transmitter sensor electrodes may be modulated relative to the receiver sensor electrodes. For example, the transmitter sensor electrodes may be modulated relative to a reference voltage to transmit signals, while the receiver sensor electrodes may be held at a relatively constant voltage to receive the transmitted signals. The signals received by the receiver sensor electrodes may be affected by environmental interference (e.g., from other electromagnetic signals and/or objects in contact with, or in close proximity to, the sensor electrodes). In some aspects, each sensor electrode may either be a dedicated transmitter or a dedicated receiver. In other aspects, each sensor electrode may be configured to transmit and receive.
(22) The processing system 110 may be configured to operate the hardware of the input device 100 to detect input in the sensing region 120. In some embodiments, the processing system 110 may control one or more sensor electrodes to detect objects in the sensing region 120. For example, the processing system 110 may be configured to transmit signals via one or more transmitter sensor electrodes and receive signals via one or more receiver sensor electrodes. In some aspects, one or more components of the processing system 110 may be co-located, for example, in close proximity to the sensing elements of the input device 100. In other aspects, one or more components of the processing system 110 may be physically separated from the sensing elements of the input device 100. For example, the input device 100 may be a peripheral coupled to a computing device, and the processing system 100 may be implemented as software executed by a central processing unit (CPU) of the computing device. In another example, the input device 100 may be physically integrated in a mobile device, and the processing system 110 may correspond, at least in part, to a CPU of the mobile device.
(23) In some embodiments, the processing system 110 may be implemented as a set of modules that are implemented in firmware, software, or a combination thereof. Example modules include hardware operation modules for operating hardware such as sensor electrodes and display screens; data processing modules for processing data such as sensor signals and positional information; and reporting modules for reporting information. In some embodiments, the processing system 110 may include sensor operation modules configured to operate sensing elements to detect user input in the sensing region 120; identification modules configured to identify gestures such as mode changing gestures; and mode changing modules for changing operation modes of the input device 100 and/or electronic system.
(24) The processing system 110 may respond to user input in the sensing region 120 by triggering one or more actions. Example actions include changing an operation mode of the input device 110 and/or graphical user interface (GUI) actions such as cursor movement, selection, menu navigation, and the like. In some embodiments, the processing system 110 may provide information about the detected input to the electronic system (e.g., to a CPU of the electronic system). The electronic system may then process information received from the processing system 110 to carry out additional actions (e.g., changing a mode of the electronic system and/or GUI actions).
(25) The processing system 110 may operate the sensing elements of the input device 100 to produce electrical signals indicative of input (or lack of input) in the sensing region 120. The processing system 110 may perform any appropriate amount of processing on the electrical signals to translate or generate the information provided to the electronic system. For example, the processing system 110 may digitize analog signals received via the sensor electrodes and/or perform filtering or conditioning on the received signals. In some aspects, the processing system 110 may subtract or otherwise account for a baseline associated with the sensor electrodes. For example, the baseline may represent a state of the sensor electrodes when no user input is detected. In some embodiments, the processing system 110 may further determine positional information for a detected input. The term positional information, as used herein, refers to any information describing or otherwise indicating a position or location of the detected input (e.g., within the sensing region 120). Example positional information may include absolute position, relative position, velocity, acceleration, and/or other types of spatial information.
(26) It is noted that the input device 100 may experience long idle periods during which no input object is detected in the sensing region 120. To conserve power, the input device 100 may operate in a low power mode during such periods of inactivity. For example, the input device 100 may deactivate its capacitive sensing circuitry (including the sensor electrodes 121 and/or various components of the processing system 110) when no user inputs have been detected for at least a threshold duration. However, the input device 100 may periodically reactivate the sensor electrodes 121 for at least a brief (e.g., burst) duration to ensure that it does not miss any input objects that may have entered the sensing region 120. If no input object is detected by the end of the burst, the input device 100 may return to the low power mode. However, if the input device 100 detects an input object in the sensing region 120, the input device 100 may exit the low power mode (e.g., by maintaining the capacitive sensing circuitry in a constant-on state and/or reactivating any additional sensor-related circuitry). Thus, in some embodiments, the low power mode may be referred to as a wake-on-finger (WOF) mode.
(27) As described above, one of the primary motivations behind the WOF mode is to reduce power consumption. Since the greatest amount of power is consumed during the short bursts when the capacitive sensing circuitry is reactivated, it may be desirable to reduce and/or minimize the duration of the bursts. However, the capacitive sensing circuitry may be quantization noise-limited when operating in the WOF mode. For example, there may be a minimum or threshold resolution at which the capacitive sensing circuitry should sample the sensor electrodes 121 to detect an input object in the sensing region 120. Since reducing the sampling duration also reduces the resolution of the capacitive sensing information (e.g., as fewer samples are taken), conventional input devices must typically remain active for a threshold burst duration to achieve the given resolution. However, aspects of the present disclosure may enable the input device 100 to achieve the same resolution while remaining active for less than the threshold burst duration. Thus, the input device 100 may achieve even greater power savings when operating in the WOF mode.
(28) In some embodiments, the input device 100 may maintain a threshold quantization noise (or resolution) while performing a capacitive sensing operation in less time than that of a conventional input device. In some other embodiments, the input device 100 may achieve a lower quantization noise (or higher resolution) when performing a capacitive sensing operation in the same amount of time as a conventional input device. More specifically, aspects of the present disclosure may leverage existing capacitive sensing circuitry of the input device 100 to convert an analog input signal to a digital output value. In some aspects, the input device 100 may determine an amount of quantization error in the digital output value by switchably coupling and decoupling an analog front end (AFE) from the sensor electrodes 121, and may selectively adjust the digital output value based at least in part on the amount of quantization error.
(29)
(30) The AFE 210 includes a current conveyor 212, a mixer 214, an analog-to-digital converter (ADC) 216, and a filter 218. In some embodiments, the current conveyor 212 may be an operation amplifier (op amp) having an inverting input (?) terminal coupled to the sensor electrode 205.sub.B and a non-inverting input (+) terminal coupled to a voltage source V.sub.C. The output terminal of the op amp is coupled to the inverting input terminal (e.g., in a negative feedback configuration). Thus, the output of the current conveyor 212 may be an amplified (or attenuated) signal provided across the voltage supply terminals of the op amp. The mixer 214 may be coupled to receive an output signal form the current conveyor 212, and may be configured to down-convert or demodulate the received signal to a lower frequency by mixing the received signal with a reference signal generated by a local oscillator (LO). The ADC 216 may be configured to receive the demodulated signal from the mixer 214 and convert the analog input signal to a digital bit stream. In some embodiments, the ADC 216 may include a delta-sigma (??) modulator that generates a single-bit stream at a sampling frequency of its internal clock (e.g., 20 MHz). The ADC 216 may further include a decimation filter to convert the digital bit stream to a quantized value.
(31) In some embodiments, the filter 218 may be configured to filter quantization noise from the output of the ?? modulator to produce a higher-resolution quantized value at the output of the AFE 210. For example, the filter 218 may determine an amount of quantization error in the digital output from the ADC 216, and may selectively adjust the output based on the amount of quantization error. In some embodiments, the filter 218 may measure the quantization error based, at least in part, on a state of the ADC 216 when the AFE 210 (and/or the ADC 216) is decoupled from the sensor electrodes 205.sub.A and 205.sub.B. The filter 218 may then use the quantization error to improve the resolution of the digital output for a given sampling (or burst) duration.
(32) The AFE 210 may be configured to generate capacitive sensing information by sampling an input current (I.sub.IN) received from the sensor electrodes 205.sub.A and 205.sub.B. More specifically, the input current I.sub.IN may be generated based on a voltage bias applied across the sensor electrodes 205.sub.A and 205.sub.B. For example, the voltage at sensor electrode 205.sub.A may be provided by the voltage source V.sub.S and the voltage at sensor electrode 205.sub.B may be provided by the inverting terminal of the current conveyor 212. Since the voltage at the non-inverting terminal of the current conveyor 212 is provided by the adjustable voltage source V.sub.C, the voltage at the inverting terminal of the current conveyor 212 will also be equal to V.sub.C (e.g., as the op amp tries to equalize the voltages at its input terminals). Thus, the biasing of the sensor electrodes 205.sub.A and 205.sub.B may correspond to the difference in voltage between the voltage source V.sub.S and the adjustable voltage source V.sub.C (e.g., V.sub.AB=V.sub.S?V.sub.C).
(33) At least one of the voltages V.sub.S and/or V.sub.C may be programmable (e.g., controlled or adjusted by a controller or processor of the AFE 210). More specifically, the biasing of the voltages V.sub.S and V.sub.C may affect the voltage that is transmitted to the sensor electrodes 205.sub.A and 205.sub.B (e.g., the results of which are received by the AFE 210 as an input current I.sub.IN). In some aspects, the voltage supply V.sub.S may provide a fixed supply voltage whereas the voltage source V.sub.C may provide a variable control voltage that may be controlled or adjusted by a controller or processor of the AFE 310. For example, one of the voltages V.sub.S or V.sub.C may be a ground potential. In other aspects, each of the voltages V.sub.S and V.sub.C may be controlled or adjusted by a controller or processor of the AFE 210. Because the current conveyor 212 has a limited dynamic range, the voltages V.sub.C and/or V.sub.S may be selected to ensure that the input current I.sub.IN does not exceed the dynamic range of the current conveyor 212.
(34) In some embodiments, the AFE 210 may further include switching circuitry 202 configured to switchably couple and/or decouple the sensor electrodes 205.sub.A and 205.sub.B from at least a portion of the AFE 210. More specifically, the switching circuitry 202 may be configured to couple the current conveyor 212 to the mixer 214 at the start of a sampling duration (e.g., when operating in the low power or WOF mode), and decouple the current conveyor 212 from the mixer 214 at the end of the sampling duration (e.g. when operating in the lower power or WOF mode). In the example of
(35) When performing a capacitive sensing operation, the End_Burst signal is deasserted and the switching circuitry 202 is closed. A time-varying voltage (such as provided by an alternating current (AC) voltage source) may be applied to the sensor electrodes 205.sub.A and 205.sub.B. For example, the time-varying voltage may be generated by varying the amplitude of the adjustable voltage source V.sub.C relative to the voltage source V.sub.S. The time-varying voltage produces a corresponding time-varying input current I.sub.IN having a frequency corresponding to a rate of the voltage change. The input current I.sub.IN is amplified by the current conveyor 212 based on a gain (A). Since the switching circuitry 202 is closed, the mixer 214 receives the amplified input current A.Math.I.sub.IN from the current conveyor 212 and demodulates the received input current A.Math.I.sub.IN using the local oscillator signal. The ADC 216 converts the demodulated signal into a digital stream of bits, and the filter 218 filters the bits to improve the resolution of the digital bit stream at the output of the AFE 210. Accordingly, the digital (quantized) representation of the input current I.sub.IN (e.g., at the output of the AFE 210) may be used to derive the capacitance CT across the sensor electrodes 205.sub.A and 205.sub.B
(36)
(37) At the end of the sampling (burst) duration, the End_Burst signal is asserted and the switching circuitry 202 is opened. This prevents the input current I.sub.IN from entering the mixer 214 and/or being sampled by the ADC 216. In some embodiments, the ADC 216 may continue sampling when the mixer 214 is decoupled from the current conveyor 212. As described in greater detail below, the extended sampling may reflect an amount of quantization error in the digital output of the ADC 216. In some embodiments, the filter 218 may receive the additional sample as a quantization error (Q_Error) signal from the ADC 216. The filter 218 may then selectively adjust the output of the ADC 216 based at least in part on the received quantization error. For example, in some aspects, the filter 218 may increment (or decrement) the value output of the ADC 216 if the quantization error exceeds a threshold amount. In other aspects, the filter 218 may maintain the output of the ADC 216 (e.g., without any adjustment) if the quantization error does not exceed the threshold amount.
(38) Among other advantages, knowledge of the quantization error (e.g., when the mixer 214 is decoupled from the current conveyor 212) allows the filter 218 to increase the resolution at the output of the ADC 216. More specifically, the AFE 210 may achieve a 1-bit increase in resolution by capturing just one additional sample in the ADC 216. In contrast, a conventional ADC would need to acquire twice as many samples to achieve an equivalent 1-bit increase in resolution. Accordingly, the AFE 210 may maintain a threshold level of quantization noise while performing a capacitive sensing operation in half the time it would take a conventional ADC to achieve the same level of quantization noise. This allows the AFE 210 to perform a WOF sensing operation in a shorter burst duration, thus reducing the overall power consumption of the input device 200.
(39)
(40) The delta-sigma modulator 310 may be configured to generate a series of samples (or pulses) based on an amplitude of the input signal I.sub.IN at any given time. In some embodiments, the delta-sigma modulator 310 may include a differencing circuit 312, an integrator 314, a comparator 316, and a feedback digital-to-analog converter (DAC) 318. The differencing circuit 312 is configured to output a difference between the input signal I.sub.IN and a feedback signal (FB) generated by the feedback DAC 318. The integrator 314 is configured to sum or integrate the differences output by the differencing circuit 312 over a period of time. The comparator 316 is configured to compare the value stored by the integrator 314 with a threshold value (V.sub.REF) and generate a binary output (??.sub.OUT) based on the comparison. For example, the comparator 316 may output a logic 1 if the value stored by the integrator 314 exceeds the threshold value, and may output a logic 0 if the value stored by the integrator 314 does not exceed the threshold value. The feedback DAC 318 is configured to convert the binary output ??.sub.OUT to an analog voltage or current, which is provided to the differencing circuit 312 (e.g., as the feedback signal FB).
(41) In some embodiments, the feedback DAC 318 may be switchably coupled to the differencing circuit 312 via switching circuitry 302. More specifically, the switching circuitry 302 may be configured to prevent the feedback signal FB from interfering with the input signal I.sub.IN before a first sample has been taken by the delta-sigma modulator 310. For example, the integrator 314 may store a residual charge at the start of a sampling interval. As a result, the comparator 316 (and the feedback DAC 318) may output a value that is not representative of the actual input signal I.sub.IN. By decoupling the feedback DAC 318 from the differencing circuit 312, the switching circuitry 302 may prevent the initial feedback signal FB from interfering with the input signal I.sub.IN, thus ensuring that the first sample generated by the delta-sigma modulator 310 accurately reflects the current state of the input signal I.sub.IN. This may further improve the accuracy and/or resolution of the output of the ADC 300.
(42) In the example of
(43) The decimation filter 320 is coupled to receive the output of the delta-sigma modulator 310, and configured to convert the binary output ??.sub.OUT to a quantized value (ADC.sub.OUT). In some embodiments, the decimation filter 320 may be implemented as an up/down counter. For example, the decimation filter 320 may count the number of pulses (e.g., 1's) output by the delta-sigma modulator 310 to determine a digital representation of the input signal I.sub.IN for a given sampling interval (e.g., burst duration). More specifically, the decimation filter 320 may increment the count value for each 1 output by the delta-sigma modulator 310, and may decrement the count value for each 0 (or ?1) output by the delta-sigma modulator 310. The final count value stored by the decimation filter 320 at the end of the sampling interval may be output as a digital representation (ADC.sub.OUT) of the input signal I.sub.IN.
(44) As described above, the ADC 300 may be prevented from receiving the input signal I.sub.IN at the end of a sampling or burst duration (e.g., when the mixer 214 is decoupled from the current conveyor 212 via the open switch 202). In some embodiments, the ADC 300 may be configured to generate an additional sample when no input signal I.sub.IN is received. As described in greater detail below, the voltage stored on the integrator 314 at the end of the burst duration may correspond to an analog measure of the quantization error in ADC.sub.OUT. Thus, the output of the comparator 316 may indicate whether the quantization error exceeds a threshold level (e.g., such that the least significant bit (LSB) of ADC.sub.OUT should be adjusted). In some embodiments, the output of the comparator 316 may be provided (e.g., as a Q_Error signal) to a quantization noise adjustment circuit (such as the filter 218 of
(45)
(46) The current conveyor 410 may be an example embodiment of (and perform substantially the same functions as) the current conveyor 212 of
(47) The component currents I.sub.P and I.sub.M may be stored (e.g., as charge) on the capacitors C.sub.D, C.sub.P and C.sub.M, respectively. In some embodiments, the capacitors C.sub.D, C.sub.P and C.sub.M may function as integrators (such as the integrator 314 of
(48) The flip-flop 432 stores the output of the comparator 431, and may adjust the voltages V.sub.P and V.sub.M based on the comparison. For example, the output (Q) of the flip-flop 432 may be coupled to an AND logic gate 433 that outputs a charge-up (Chg.sub.up) signal based on respective logic states of the output Q, a clock signal (Clk), and a first-sample (1st_Sample) signal. In the example of
(49) The Chg.sub.up signal controls a first set of switches 404A and 404B configured to couple current sources 435 and 436 to the capacitors C.sub.M and C.sub.P, respectively. For example, activation of the Chg.sub.up signal may cause the switches 404A and 404B to close. As a result, current source 435 may charge capacitor C.sub.M (e.g., using reference current I.sub.REF) while current source 436 may concurrently discharge capacitor C.sub.P (e.g., using reference current I.sub.REF), causing the lower voltage V.sub.M to increase relative to the upper voltage V.sub.P as current flows through C.sub.D from V.sub.M to V.sub.P. The Chg.sub.dn signal controls a second set of switches 403A and 403B configured to couple current sources 435 and 436 to the capacitors C.sub.P and C.sub.M, respectively. For example, activation of the Chg.sub.dn signal may cause the switches 403A and 403B to close. As a result, current source 435 may charge capacitor C.sub.P while current source 436 may concurrently discharge capacitor C.sub.M, causing the upper voltage V.sub.P to increase relative to the lower voltage V.sub.M as current flows through C.sub.D from V.sub.P to V.sub.M. Thus, the circuit components 432-436 may function as a feedback DAC (such as the feedback DAC 318 of
(50) The up/down counter 440 is configured to convert the output Q of the flip-flop 432 to a quantized value (ADC.sub.OUT). In some embodiments, the up/down counter 440 may count the number of logic 1's output by the flip-flop 432 to determine a digital representation of the input signal I.sub.IN for a given sampling interval (e.g., burst duration). More specifically, the up/down counter 440 may increment the count value for each 1 output by the flip-flop 432, and may decrement the count value for each 0 (or ?1) output by the flip-flop 432. The final count value stored by the up/down counter 440 at the end of the sampling interval may be output as a digital representation (ADC.sub.OUT) of the input signal I.sub.IN.
(51) In some embodiments, the AFE 400 may include additional switching circuitry 402A, 402B, 405A, and 405B that may be used to increase the resolution of ADC.sub.OUT. For example, the switches 402A and 402B may switchably couple and/or decouple the current conveyor 410 to the mixer 420 based at least in part on an End_Burst signal. The switches 405A and 405B may switchably couple and/or decouple the current sources 435 and 436, respectively, from the integrators (C.sub.D, C.sub.P, and C.sub.M) based at least in part on the 1st_Sample signal. An example operation of the AFE 400 is described below with reference to the timing diagram 500 of
(52) In the example of
(53) Then, at time t.sub.1, the 1st_Sample signal transitions to a logic-low state as the clock signal transitions to a logic-high state. As a result, switches 405A and 405B are opened, whereas switches 406A and 406B are closed. Because switches 406A and 406B are closed, the current sources 435 and 436 remain coupled to V.sub.CM. Thus, the reference current I.sub.REF is still prevented from integrating with the component currents I.sub.P and I.sub.M at this time. In some embodiments, the duration of the 1st_Sample signal may be based at least in part on a sampling frequency (f.sub.S) of the delta-sigma modulator and a return-to-zero time (?) of the clock signal (e.g., T(1st_Sample)=?/f.sub.S). This allows the feedback DAC to begin adjusting the charges on the integrator as soon as the comparator 431 has sampled the voltages V.sub.P and V.sub.M (e.g., with no interference from I.sub.REF).
(54) From times t.sub.1 to t.sub.2, the AFE 400 may sample the input current I.sub.IN (e.g., in a conventional manner). For example, the delta-sigma modulator may convert the input current I.sub.IN to a series of digital pulses, and the up/down counter 440 may generate a quantized representation of the pulses as a digital output ADC.sub.OUT.
(55) At time t.sub.2, the burst duration terminates, and the End_Burst signal is asserted as the clock signal transitions to a logic-low state. As a result, switch 402B is opened whereas switch 402A is closed, causing the current conveyor 410 to become decoupled from the mixer 420 (e.g., and the input current A.Math.I.sub.IN to flow to V.sub.CM). Since the clock signal is in a logic-low state at this time, switches 406A and 406B may also be open. Thus, the current state (e.g., charge) of the capacitors C.sub.P and C.sub.M may indicate the accuracy of the least significant bit (LSB) of ADC.sub.OUT. In other words, the capacitors C.sub.P and C.sub.M currently hold a measure of the quantization error (e.g., at time t.sub.2).
(56) For example, the voltage produced from integrating I.sub.IN over the burst duration (T.sub.BURST) may be represented by:
(57)
where T.sub.BURST is the duration from t.sub.0 to t.sub.2 and Cc is the capacitance of each of the capacitors C.sub.P and C.sub.M. By expressing T.sub.BURST in terms of the total number (N) of samples taken within the burst duration (e.g., T.sub.BURST=N/f.sub.S), the equation above can be reduced to:
(58)
For every sample in which the feedback DAC is in the loop, the current sources 435 and 436 produce the same magnitude of voltage change on the integrator
(59)
Thus, the voltage change on the integrator over the entire burst duration T.sub.BURST can be represented as:
(60)
where Q.sub.i corresponds to the output of the 1-bit stream for the i.sup.th sample (e.g., output by the flip-flop 432). Thus, the voltage on the output of the integrator at the end of T.sub.BURST (e.g., due to I.sub.IN and I.sub.REF) can be expressed as:
(61)
which may be reduced to:
(62)
where ADC.sub.OUT is the output of the up/down counter 440 and Q.sub.N is the N.sup.th sample of the 1-bit stream. Assuming
(63)
the above equation can be reduced to:
(64)
If the output of the feedback DAC (e.g., based on the state of Q.sub.N) is integrated with I.sub.IN=0 (e.g., at the end of the burst), then this extended sampling can be expressed as:
(65)
It is noted that the above equation represents the quantization noise of a non-oversampled ADC. Thus, the equation indicates that the integrator holds a measure of the quantization error based on the extra sample taken at the end of the burst duration (e.g., when the current conveyor 410 is decoupled from the mixer 420). In some embodiments, the quantization error may be used to halve the quantization noise in ADC.sub.OUT:
ADC.sub.OUT.sub._.sub.EXTENDED=ADC.sub.OUT+0.5.Math.(1+sign(V.sub.INT.sub._.sub.EXTENDED))
(66) Thus, at time t.sub.3, the output of the comparator 431 may be sampled to determine a measure of the quantization error (Q_Error) in ADC.sub.OUT. For example, if Q_Error is a logic 0 then the quantization error may be below a threshold level (e.g., for the LSB). Thus, the output of the AFE 400 may be left unadjusted. However, if Q_Error is a logic 1 then the quantization error may be above the threshold level. Thus, the output of the AFE may be incremented by 1 bit. In some embodiments, the quantization-noise adjustment may be implemented, at least in part, by the up/down counter 440. In other embodiments, the quantization-noise adjustment may be implemented by other circuitry in the AFE 400 (e.g., the filter 218 of
(67)
(68) The sensor interface 610 may be coupled to a plurality of sensor electrodes configured for capacitive sensing (such as sensor electrodes 121 of
(69) The memory 630 may include a non-transitory computer-readable medium (e.g., one or more nonvolatile memory elements, such as EPROM, EEPROM, Flash memory, a hard drive, etc.) that may store at least the following software (SW) modules: a wake-on-finger (WOF) SW module 631 to operate the input device 600 in a low power mode when no user inputs (or input objects) are detected by the sensor electrodes; a capacitive sensing SW module 632 to measure a capacitance of the sensor electrodes when operating in the capacitive sensing mode, the capacitive sensing SW module 632 including: an analog-to-digital conversion (ADC) submodule 633 to convert an analog input signal received from the sensor electrodes to a digital output value (e.g., corresponding to a quantized representation of the input signal); and a quantization noise (QN) adjustment SW module 634 to selectively adjust the digital output value based at least in part on a measure of the quantization noise in the analog-to-digital conversion, the QN adjustment SW module 634 including: a quantization error submodule 635 to measure an amount of quantization error in the digital output value when the input device 600 is decoupled from the sensor electrodes; and an output correction submodule 636 to increment or maintain the digital output value based at least in part on the amount of quantization error.
Each software module includes instructions that, when executed by the processor 620, cause the input device 600 to perform the corresponding functions. The non-transitory computer-readable medium of memory 630 thus includes instructions for performing all or a portion of the operations described below with respect to
(70) Processor 620 may be any suitable one or more processors capable of executing scripts or instructions of one or more software programs stored in the input device 600 (e.g. within memory 630). For example, the processor 620 may execute the WOF SW module 631 to operate the input device 600 in a low power mode when no user inputs (or input objects) are detected by the sensor electrodes. The processor 620 may also execute the capacitive sensing SW module 632 to measure a capacitance of the sensor electrodes when operating in the capacitive sensing mode. In executing the capacitive sensing SW module 632, the processor 620 may further execute the ADC submodule 633 to convert an analog input signal received from the sensor electrodes to a digital output value (e.g., corresponding to a quantized representation of the input signal).
(71) The processor 620 may also execute the QN adjustment SW module 634 to selectively adjust the digital output value based at least in part on a measure of the quantization noise in the analog-to-digital conversion. In executing the QN adjustment SW module 634, the processor 620 may further execute the quantization error submodule 635 and the output correction submodule 636. For example, the processor 620 may execute the quantization error submodule 635 to measure an amount of quantization error in the digital output value when the input device 600 is decoupled from the sensor electrodes. The processor 620 may further execute the output correction submodule 636 to increment or maintain the digital output value based at least in part on the amount of quantization error.
(72)
(73) The input device 200 may couple an analog front end (AFE) to one or more sensor electrodes (710). For example, the AFE 210 may include a current conveyor 212 having an output switchably coupled to the input of a mixer 214 (e.g., and ADC 216) via switching circuitry 202. The input of the current conveyor may be coupled to a sensor electrode (such as sensor electrode 205.sub.B). When a capacitive sensing operation is to be performed, the switching circuitry 202 couples the current conveyor 212 to the mixer 214 (e.g., when the End_Burst signal is deasserted). This allows the mixer 214 and ADC 216 to receive an amplified (or attenuated) input signal A.Math.I.sub.IN from the current conveyor 212.
(74) The input device 200 may then receive an input signal from the one or more sensor electrodes (720). In some embodiments, the current conveyor 212 may transmit and receive signals across the sensor electrodes 205.sub.A and 205.sub.B by biasing the voltages V.sub.S and V.sub.C. For example, the current conveyor 212 may transmit a signal from sensor electrode 205.sub.A to sensor electrode 205.sub.B by varying at least one of the voltages V.sub.S and/or V.sub.C relative to the other. This AC voltage creates a time-varying input current I.sub.IN that across the sensor electrodes 205.sub.A and 205.sub.B. The current conveyor 212 may receive the input current I.sub.IN via the sensor electrode 205.sub.B, and may output an amplified (or attenuated) version of the input current I.sub.IN.
(75) The input device 200 may generate an output value corresponding to a digital representation of the input signal (730). For example, the ADC 216 may receive and sample the input current I.sub.IN from the mixer 214. In some embodiments, the ADC 216 may first convert the analog input current to a digital bit stream and then convert the digital bit stream to a quantized value. For example, the ADC 216 may comprise a delta-sigma modulator and a decimation filter. The delta-sigma modulator generates a single-bit stream by sampling the input current I.sub.IN at a sampling frequency of its internal clock. The decimation filter may count the number of pulses (or bits) in the series of samples generated by the delta-sigma modulator to convert the digital bit stream to a quantized value.
(76) The input device 200 may then decouple the AFE 210 from the sensor electrodes (740). For example, the switching circuitry 202 may decouple the current conveyor 212 form the mixer 214 at the end of a sampling (or burst) duration (e.g., when the End_Burst signal is asserted). This prevents the input current I.sub.IN from entering the mixer 214 and/or being sampled by the ADC 216 once the sampling interval has terminated. In some embodiments, the ADC 216 may continue to generate additional samples even after the mixer 214 has been decoupled from the current conveyor 212. With reference for example to
(77) The input device 200 may selectively adjust the output value based at least in part on the state of the AFE 210 when decoupled from the sensor electrodes (750). As described above, the extended sampling performed by the ADC 216 (e.g., after the mixer 214 has been decoupled from the current conveyor 212) may reflect an amount of quantization error in the digital output of the ADC 216. In some embodiments, the filter 218 may receive the additional sample as a Q_Error signal from the ADC 216. The filter 218 may then selectively adjust the output of the ADC 216 based at least in part on the received quantization error. For example, in some aspects, the filter 218 may increment (or decrement) the output value if the quantization error exceeds a threshold amount. In other aspects, the filter 218 may maintain the output value (e.g., without any adjustment) if the quantization error does not exceed the threshold amount.
(78) Those of skill in the art will appreciate that information and signals may be represented using any of a variety of different technologies and techniques. For example, data, instructions, commands, information, signals, bits, symbols, and chips that may be referenced throughout the above description may be represented by voltages, currents, electromagnetic waves, magnetic fields or particles, optical fields or particles, or any combination thereof.
(79) Further, those of skill in the art will appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the aspects disclosed herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosure.
(80) The methods, sequences or algorithms described in connection with the aspects disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such that the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor.
(81) In the foregoing specification, embodiments have been described with reference to specific examples thereof. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader scope of the disclosure as set forth in the appended claims. The specification and drawings are, accordingly, to be regarded in an illustrative sense rather than a restrictive sense.