CAPACITANCE TO CODE CONVERTER WITH SIGMA-DELTA MODULATOR
An apparatus and method of converting a capacitance measured on a sensor element to a digital value. The apparatus may include a matrix-scanning device including drive lines and sense lines. A sense element is located at an intersection of one of the drive lines and one of the sense lines. The apparatus also includes a modulation circuit coupled to the drive lines and the sense lines, and a switching circuit having first switches controlled by a clock. The modulation circuit is configured to measure a mutual capacitance on the sense element and to convert the measured mutual capacitance to a first digital value. The modulation circuit is configured to measure a self-capacitance on at least one of the drive lines and to convert the measured self-capacitance to a second digital value.
This application is a continuation of U.S. application Ser. No. 13/049,798, filed on Mar. 16, 2011, which is a continuation of U.S. application Ser. No. 11/600,255, filed on Nov. 14, 2006, the entire contents of both are hereby incorporated by reference.
TECHNICAL FIELDThis invention relates to the field of user interface devices and, in particular, to capacitive touch-sensor devices.
BACKGROUNDComputing devices, such as notebook computers, personal data assistants (PDAs), and mobile handsets, have user interface devices, which are also known as human interface device (HID). One user interface device that has become more common is a touch-sensor pad. A basic notebook touch-sensor pad emulates the function of a personal computer (PC) mouse. A touch-sensor pad is typically embedded into a PC notebook for built-in portability. A touch-sensor pad replicates mouse x/y movement by using two defined axes which contain a collection of sensor elements that detect the position of a conductive object, such as a finger. Mouse right/left button clicks can be replicated by two mechanical buttons, located in the vicinity of the touchpad, or by tapping commands on the touch-sensor pad itself. The touch-sensor pad provides a user interface device for performing such functions as positioning a pointer, or selecting an item on a display. These touch-sensor pads may include multi-dimensional sensor arrays for detecting movement in multiple axes. The sensor array may include a one-dimensional sensor array, detecting movement in one axis. The sensor array may also be two dimensional, detecting movements in two axes.
Another user interface device that has become more common is a touch screen. Touch screens, also known as touchscreens, touch panels, or touchscreen panels are display overlays which are typically either pressure-sensitive (resistive), electrically-sensitive (capacitive), acoustically-sensitive (SAW—surface acoustic wave) or photo-sensitive (infra-red). The effect of such overlays allows a display to be used as an input device, removing the keyboard and/or the mouse as the primary input device for interacting with the display's content. Such displays can be attached to computers or, as terminals, to networks. There are a number of types of touch screen technology, such as optical imaging, resistive, surface wave, capacitive, infrared, dispersive signal, and strain gauge technologies. Touch screens have become familiar in retail settings, on point of sale systems, on ATMs, on mobile handsets, on game consoles, and on PDAs where a stylus is sometimes used to manipulate the graphical user interface (GUI) and to enter data.
One difference between touch-sensor sliders and touch-sensor pads may be how the signals are processed after detecting the conductive objects. Another difference is that the touch-sensor slider is not necessarily used to convey absolute positional information of a conducting object (e.g., to emulate a mouse in controlling pointer positioning on a display) but, rather, may be used to actuate one or more functions associated with the sensing elements of the sensing device.
In general, capacitive touch sensors are intended to replace mechanical buttons, knobs, and other similar mechanical user interface controls. Capacitive sensor allows eliminating the complicated mechanical switches and buttons, providing the reliable operation under harsh conditions. Also, capacitive sensors are widely used in the modern customer applications, providing new user interface options in the existing products.
Many conventional methods exist for capacitance sensing or measuring. Some conventional methods have been briefly described below.
Using either conventional relaxation oscillators described above, the capacitance change causes the output frequency variation, which can be easily detected, such as using a digital counter. The disadvantage of using these conventional relaxation oscillators is that they operate at a fixed frequency and include high-impedance signal paths (for example, current source that charges small sensing capacitor Cx.
Two other conventional capacitive measuring schemes are the resistor-capacitor charge timing, capacitive bridge divider. The resistor-capacitor charge timing may include charging the capacitor through a fixed resistor and measuring timing on the voltage ramp. Small capacitor values may require very large resistors for reasonable timing. The capacitive bridge divider may include driving the capacitor under test through a fixed reference capacitor. The reference capacitor and the capacitor under test form a voltage divider. The voltage signal is recovered with a synchronous demodulator, which may be done in a processing device.
Another class of methods for measuring capacitance on a sensor element is switching capacitor methods. In these methods, the sensing capacitor is charged at one phase and is discharged to some charge reception device at a second stage. A subclass of this class is charge accumulation. Methods of charge accumulation methods include transferring charge accumulated on the sensing capacitor to the charge-accumulation capacitor or integrator with capacitor in the feedback loop. These methods may have a key advantage in that charge-accumulation circuits have low sensitivity for radio-frequency (RF) fields and noise because the sensing capacitor is charged from a low-impedance source and charge is transferred to a low-impedance accumulator (e.g., integrator capacitor or charge-accumulation capacitor).
where the term VCint is the voltage on the integration capacitor Cint 195, the term N is the cycle count, the term Cx is the sensing capacitance value, the term Cint is the integrator capacitor value, and the term Vdd is the power supply voltage.
The charge-accumulation circuit 199 of
Other convention charge-accumulation circuits are described in U.S. Pat. No. 6,888,536, U.S. Pat. No. 6,288,707, U.S. Pat. No. 6,570,557, U.S. Pat. No. 6,535,200, U.S. Pat. No. 6,466,036, and U.S. Pat. No. 6,452,514.
The conventional charge-accumulation circuits and methods described above operate in a cycle-based mode (e.g.,
Most conventional charge accumulation methods have several stages that are executed in series: reset, integrate, and measure. Therefore, in order to track the faster capacitance changes, the conversion time can be reduced by using smaller integration capacitor, which reduces the accuracy as well. Also, the conventional charge accumulation methods cannot provide its output to different digital filters at the same time.
Another conventional charge accumulation design includes a sigma-delta modulator for capacitance measurement, as described in U.S. Patent No. 6,970,126. This design is illustrated in
The present invention is illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings.
Described herein is a method and apparatus converting a capacitance measured on a sensor element to a digital code. The following description sets forth numerous specific details such as examples of specific systems, components, methods, and so forth, in order to provide a good understanding of several embodiments of the present invention. It will be apparent to one skilled in the art, however, that at least some embodiments of the present invention may be practiced without these specific details. In other instances, well-known components or methods are not described in detail or are presented in simple block diagram format in order to avoid unnecessarily obscuring the present invention. Thus, the specific details set forth are merely exemplary. Particular implementations may vary from these exemplary details and still be contemplated to be within the spirit and scope of the present invention.
Embodiments of a method and apparatus are described to convert a capacitance measured on a sensor element to a digital code. In one embodiment, the method may include measuring a capacitance on a sensor element of a sensing device using a sigma-delta modulator, and converting the capacitance measured on the sensor element to a digital code. In one embodiment, the apparatus may include a switching capacitor as a sensor element of a sensing device, and a sigma-delta modulator coupled to the sensor element to convert a capacitance measured on the sensor element to a digital code. The switching capacitor is in a feedback loop of the sigma-delta modulator. The output of the sigma-delta modulator is used to control the switching operation of the switching capacitor, instead of using an external switching signal generator, as done conventionally. Also, the switching capacitor is place between the inputs of the sigma-delta modulator and ground, instead of between an excitation source and the inputs of the sigma-delta modulator, as done conventionally. The embodiments described herein may use a one-wire configuration for exciting the sensing capacitor and one wire for sensing the capacitance, instead of a two-wire configuration as done conventionally in the configurations where both ends of the sensing capacitor are used. The proposed invention uses the sigma-delta modulator with sensing capacitor, connected by one terminal to ground. Also, unlike the conventional capacitance sensing methods that utilize a sigma-delta modulator, the embodiments described herein do not include an operational amplifier with feedback capacitors (e.g., integrator), and a separate comparator. In addition, the embodiments described herein do not include a separate terminal for excitation voltage supply, as done conventionally.
Most conventional charge accumulation methods have several stages that are executed in series: reset, integrate, and measure. Therefore, in order to track the faster capacitance changes, the conversion time can be reduced by using smaller integration capacitor, which reduces the accuracy as well. In the embodiments described herein, the delta-sigma modulator operates continuously, permitting adjustments to the conversion time versus resolution. Also, the modulator bit stream data can be passed to different digital filters at same time, one can track the fast capacitance changes at low resolution, second perform high-precision absolute values measurement, which is not possible with the conventional charge accumulation methods described above.
In one embodiment, the method includes measuring the capacitance on a sensor element. This may include charging the capacitance on the sensor element on a line coupled to one end of the switching capacitor, measuring the capacitance using the same line that is coupled to the one end of the switching capacitor. In one embodiment, the switching capacitor is switched in and out of the feedback loop of the sigma-delta modulator using a switching circuit. The switching circuit may be controlled by the output of the sigma-delta modulator. Alternatively, the switching circuit may be controlled by a clock source, such as a spread spectrum clock source, in conjunction with the output of the sigma-delta modulator.
The processing device 210 may also include an analog block array (not illustrated). The analog block array is also coupled to the system bus. Analog block array also may be configured to implement a variety of analog circuits (e.g., ADC, analog filters, etc.) using, in one embodiment, configurable UMs. The analog block array may also be coupled to the GPIO 207.
As illustrated, capacitance sensor 201 may be integrated into processing device 210. Capacitance sensor 201 may include analog I/O for coupling to an external component, such as touch-sensor pad 220, touch-sensor slider 230, touch-sensor buttons 240, and/or other devices. Capacitance sensor 201 and processing device 202 are described in more detail below.
It should be noted that the embodiments described herein are not limited to touch-sensor pads for notebook implementations, but can be used in other capacitive sensing implementations, for example, the sensing device may be a touch screen, a touch-sensor slider 230, or a touch-sensor button 240 (e.g., capacitance sensing button). It should also be noted that the embodiments described herein may be implemented in other sensing technologies than capacitive sensing, such as resistive, optical imaging, surface wave, infrared, dispersive signal, and strain gauge technologies. Similarly, the operations described herein are not limited to notebook pointer operations, but can include other operations, such as lighting control (dimmer), volume control, graphic equalizer control, speed control, or other control operations requiring gradual or discrete adjustments. It should also be noted that these embodiments of capacitive sensing implementations may be used in conjunction with non-capacitive sensing elements, including but not limited to pick buttons, sliders (ex. display brightness and contrast), scroll-wheels, multi-media control (ex. volume, track advance, etc.) handwriting recognition and numeric keypad operation.
In one embodiment, the electronic system 200 includes a touch-sensor pad 220 coupled to the processing device 210 via bus 221. Touch-sensor pad 220 may include a multi-dimension sensor array. The multi-dimension sensor array includes multiple sensor elements, organized as rows and columns. In another embodiment, the electronic system 200 includes a touch-sensor slider 230 coupled to the processing device 210 via bus 231. Touch-sensor slider 230 may include a single-dimension sensor array. The single-dimension sensor array includes multiple sensor elements, organized as rows, or alternatively, as columns. In another embodiment, the electronic system 200 includes a touch-sensor button 240 coupled to the processing device 210 via bus 241. Touch-sensor button 240 may include a single-dimension or multi-dimension sensor array. The single- or multi-dimension sensor array includes multiple sensor elements. For a touch-sensor button, the sensor elements may be coupled together to detect a presence of a conductive object over the entire surface of the sensing device. Alternatively, the touch-sensor button 240 has a single sensor element to detect the presence of the conductive object. In one embodiment, the touch-sensor button 240 may be a capacitance sensor element. Capacitance sensor elements may be used as non-contact sensor elements. These sensor elements, when protected by an insulating layer, offer resistance to severe environments.
The electronic system 200 may include any combination of one or more of the touch-sensor pad 220, touch-sensor slider 230, and/or touch-sensor button 240. In another embodiment, the electronic system 200 may also include non-capacitance sensor elements 270 coupled to the processing device 210 via bus 271. The non-capacitance sensor elements 270 may include buttons, light emitting diodes (LEDs), and other user interface devices, such as a mouse, a keyboard, or other functional keys that do not require capacitance sensing. In one embodiment, buses 271, 241, 231, and 221 may be a single bus. Alternatively, these buses may be configured into any combination of one or more separate buses.
The processing device may also provide value-added functionality such as keyboard control integration, LEDs, battery charger and general purpose I/O, as illustrated as non-capacitance sensor elements 270. Non-capacitance sensor elements 270 are coupled to the GPIO 207.
Processing device 210 may include internal oscillator/clocks 206 and communication block 208. The oscillator/clocks block 206 provides clock signals to one or more of the components of processing device 210. Communication block 208 may be used to communicate with an external component, such as a host processor 250, via host interface (I/F) line 251. Alternatively, processing block 210 may also be coupled to embedded controller 260 to communicate with the external components, such as host 250. Interfacing to the host 250 can be through various methods. In one exemplary embodiment, interfacing with the host 250 may be done using a standard PS/2 interface to connect to an embedded controller 260, which in turn sends data to the host 250 via low pin count (LPC) interface. In some instances, it may be beneficial for the processing device 210 to do both touch-sensor pad and keyboard control operations, thereby freeing up the embedded controller 260 for other housekeeping functions. In another exemplary embodiment, interfacing may be done using a universal serial bus (USB) interface directly coupled to the host 250 via host interface line 251. Alternatively, the processing device 210 may communicate to external components, such as the host 250 using industry standard interfaces, such as USB, PS/2, inter-integrated circuit (I2C) bus, or system packet interfaces (SPI). The host 250 and/or embedded controller 260 may be coupled to the processing device 210 with a ribbon or flex cable from an assembly, which houses the sensing device and processing device.
In one embodiment, the processing device 210 is configured to communicate with the embedded controller 260 or the host 250 to send and/or receive data. The data may be a command or alternatively a signal. In an exemplary embodiment, the electronic system 200 may operate in both standard-mouse compatible and enhanced modes. The standard-mouse compatible mode utilizes the HID class drivers already built into the Operating System (OS) software of host 250. These drivers enable the processing device 210 and sensing device to operate as a standard pointer control user interface device, such as a two-button PS/2 mouse. The enhanced mode may enable additional features such as scrolling (reporting absolute position) or disabling the sensing device, such as when a mouse is plugged into the notebook. Alternatively, the processing device 210 may be configured to communicate with the embedded controller 260 or the host 250, using non-OS drivers, such as dedicated touch-sensor pad drivers, or other drivers known by those of ordinary skill in the art.
In one embodiment, the processing device 210 may operate to communicate data (e.g., commands or signals) using hardware, software, and/or firmware, and the data may be communicated directly to the processing device of the host 250, such as a host processor, or alternatively, may be communicated to the host 250 via drivers of the host 250, such as OS drivers, or other non-OS drivers. It should also be noted that the host 250 may directly communicate with the processing device 210 via host interface 251.
In one embodiment, the data sent to the host 250 from the processing device 210 includes click, double-click, movement of the pointer, scroll-up, scroll-down, scroll-left, scroll-right, step Back, and step Forward. In another embodiment, the data sent to the host 250 include the position or location of the conductive object on the sensing device. Alternatively, other user interface device commands may be communicated to the host 250 from the processing device 210. These commands may be based on gestures occurring on the sensing device that are recognized by the processing device, such as tap, push, hop, and zigzag gestures. Alternatively, other commands may be recognized. Similarly, signals may be sent that indicate the recognition of these operations.
In particular, a tap gesture, for example, may be when the finger (e.g., conductive object) is on the sensing device for less than a threshold time. If the time the finger is placed on the touchpad is greater than the threshold time it may be considered to be a movement of the pointer, in the x- or y-axes. Scroll-up, scroll-down, scroll-left, and scroll-right, step back, and step-forward may be detected when the absolute position of the conductive object is within a pre-defined area, and movement of the conductive object is detected.
Processing device 210 may reside on a common carrier substrate such as, for example, an integrated circuit (IC) die substrate, a multi-chip module substrate, or the like. Alternatively, the components of processing device 210 may be one or more separate integrated circuits and/or discrete components. In one exemplary embodiment, processing device 210 may be the Programmable System on a Chip (PSoC®) processing device, manufactured by Cypress Semiconductor Corporation, San Jose, Calif. Alternatively, processing device 210 may be one or more other processing devices known by those of ordinary skill in the art, such as a microprocessor or central processing unit, a controller, special-purpose processor, digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or the like. In an alternative embodiment, for example, the processing device may be a network processor having multiple processors including a core unit and multiple microengines. Additionally, the processing device may include any combination of general-purpose processing device(s) and special-purpose processing device(s).
It should also be noted that the embodiments described herein are not limited to having a configuration of a processing device coupled to a host, but may include a system that measures the capacitance on the sensing device and sends the raw data to a host computer where it is analyzed by an application. In effect, the processing that is done by processing device 210 may also be done in the host.
In one embodiment, the method and apparatus described herein may be implemented in a fully self-contained touch-sensor pad, which outputs fully processed x/y movement and gesture data signals or data commands to a host. In another embodiment, the method and apparatus may be implemented in be a touch-sensor pad, which outputs x/y movement data and also finger presence data to a host, and where the host processes the received data to detect gestures. In another embodiment, the method and apparatus may be implemented in a touch-sensor pad, which outputs raw capacitance data to a host, where the host processes the capacitance data to compensate for quiescent and stray capacitance, and calculates x/y movement and detects gestures by processing the capacitance data. Alternatively, the method and apparatus may be implemented in a touch-sensor pad, which outputs pre-processed capacitance data to a host, where the touchpad processes the capacitance data to compensate for quiescent and stray capacitance, and the host calculates x/y movement and detects gestures from the pre-processed capacitance data.
In one embodiment, the electronic system that includes the embodiments described herein may be implemented in a conventional laptop touch-sensor pad. Alternatively, it may be implemented in a wired or wireless keyboard integrating a touch-sensor pad, which is itself connected to a host. In such an implementation, the processing described above as being performed by the “host” may be performed in part or in whole by the keyboard controller, which may then pass fully processed, pre-processed or unprocessed data to the system host. In another embodiment, the embodiments may be implemented in a mobile handset (e.g., cellular phone or mobile phone) or other electronic devices where the touch-sensor pad may operate in one of two or more modes. For example, the touch-sensor pad may operate either as a touch-sensor pad for x/y positioning and gesture recognition, or as a keypad or other array of touch-sensor buttons and/or sliders.
Capacitance sensor 201 may be integrated into the IC of the processing device 210, or alternatively, in a separate IC. Alternatively, descriptions of capacitance sensor 201 may be generated and compiled for incorporation into other integrated circuits. For example, behavioral level code describing capacitance sensor 201, or portions thereof, may be generated using a hardware descriptive language, such as VHDL or Verilog, and stored to a machine-accessible medium (e.g., CD-ROM, hard disk, floppy disk, etc.). Furthermore, the behavioral level code can be compiled into register transfer level (“RTL”) code, a netlist, or even a circuit layout and stored to a machine-accessible medium. The behavioral level code, the RTL code, the netlist, and the circuit layout all represent various levels of abstraction to describe capacitance sensor 201.
It should be noted that the components of electronic system 200 may include all the components described above. Alternatively, electronic system 200 may include only some of the components described above.
In one embodiment, electronic system 200 may be used in a notebook computer. Alternatively, the electronic device may be used in other applications, such as a mobile handset, a personal data assistant (PDA), a keyboard, a television, a remote control, a monitor, a handheld multi-media device, a handheld video player, a handheld gaming device, or a control panel.
In one embodiment, capacitance sensor 201 may be a capacitance-to-code converter with a sigma-delta modulator (CCSD). The CCSD may have an array of capacitive touch sensor elements using a sigma-delta modulator, an analog multiplexer, digital counting functions, and high-level software routines to compensate for environmental and physical sensor element variations. The sensor array may include combinations of independent sensor elements, sliding sensor elements (e.g., touch-sensor slider), and touch-sensor sensor element pads (e.g., touch pad) implemented as a pair of orthogonal sliding sensor elements. The CCSD may include physical, electrical, and software components. The physical component may include the physical sensor element itself, typically a pattern constructed on a printed circuit board (PCB) with an insulating cover, a flexible membrane, or a transparent overlay. The electrical component may include an oscillator or other means to convert a charged capacitance into a measured signal. The electrical component may also include a counter or timer to measure the oscillator output. The software component may include detection and compensation software algorithms to convert the count value into a sensor element detection decision (also referred to as switch detection decision). For example, in the case of slider sensor elements or X-Y touch-sensor sensor element pads, a calculation for finding position of the conductive object to greater resolution than the physical pitch of the sensor elements may be used.
In another embodiment, capacitance sensor element is able to operate without surrounding ground plane because human has own relatively large capacitance that can be considered connected between sensing electrode and some internal net that has fixed potential.
The conductive object 303 in this embodiment has been illustrated as a finger. Alternatively, this technique may be applied to any conductive object, for example, a conductive door switch, position sensor, or conductive pen in a stylus tracking system (e.g., stylus).
In one embodiment, the capacitance sensor 201 includes a selection circuit (not illustrated). The selection circuit is coupled to the sensor elements 355(1)-355(N) and the sigma-delta modulator of the capacitance sensor 201. Selection circuit may be used to allow the sigma-delta modulator to measure capacitance on multiple sensor elements (e.g., rows or columns). The selection circuit may be configured to sequentially select a sensor element of the multiple sensor elements to provide the charge current and to measure the capacitance of each sensor element. In one exemplary embodiment, the selection circuit is a multiplexer array. Alternatively, selection circuit may be other circuitry inside or outside the capacitance sensor 201 to select the sensor element to be measured. In another embodiment, the capacitance sensor 201 may include one sigma-delta modulator for measuring capacitance on all of the sensor elements of the sensor array. Alternatively, capacitance sensor 201 may include multiple sigma-delta modulator to measure capacitance on the sensor elements of the sensor array, for example, one sigma-delta modulator per sensor array. The multiplexer array may also be used to ground the sensor elements that are not being measured. This may be done in conjunction with a dedicated pin in the GP10 port 207.
In another embodiment, the capacitance sensor 201 may be configured to simultaneously scan the sensor elements, as opposed to being configured to sequentially scan the sensor elements as described above. For example, the sensing device may include a sensor array having multiple rows and columns. The rows may be scanned simultaneously, and the columns may be scanned simultaneously.
In one exemplary embodiment, the voltages on all of the rows of the sensor array are simultaneously moved, while the voltages of the columns are held at a constant voltage, with the complete set of sampled points simultaneously giving a profile of the conductive object in a first dimension. Next, the voltages on all of the rows are held at a constant voltage, while the voltages on all the rows are simultaneously moved, to obtain a complete set of sampled points simultaneously giving a profile of the conductive object in the other dimension.
In another exemplary embodiment, the voltages on all of the rows of the sensor array are simultaneously moved in a positive direction, while the voltages of the columns are moved in a negative direction. Next, the voltages on all of the rows of the sensor array are simultaneously moved in a negative direction, while the voltages of the columns are moved in a positive direction. This technique doubles the effect of any transcapacitance between the two dimensions, or conversely, halves the effect of any parasitic capacitance to the ground. In both methods, the capacitive information from the sensing process provides a profile of the presence of the conductive object to the sensing device in each dimension. Alternatively, other methods for scanning known by those of ordinary skill in the art may be used to scan the sensing device.
In one embodiment, the processing device 210 further includes a decision logic block 402. The operations of decision logic block 402 may be implemented in firmware; alternatively, it may be implemented in hardware or software. The decision logic block 402 may be configured to receive the digital code or counts from the capacitance sensor 201, and to determine the state of the sensor array 410, such as whether a conductive object is detected on the sensor array, where the conductive object was detected on the sensor array (e.g., determining the X-, Y-coordinates of the presence of the conductive object), determining absolute or relative position of the conductive object, whether the conductive object is performing a pointer operation, whether a gesture has been recognized on the sensor array 410 (e.g., click, double-click, movement of the pointer, scroll-up, scroll-down, scroll-left, scroll-right, step Back, step Forward, tap, push, hop, zigzag gestures, or the like), or the like.
In another embodiment, instead of performing the operations of the decision logic 402 in the processing device 210, the processing device 201 may send the raw data to the host 250, as described above. Host 250, as illustrated in
In another embodiment, the processing device 210 may also include a non-capacitance sensing actions block 403. This block may be used to process and/or receive/transmit data to and from the host 250. For example, additional components may be implemented to operate with the processing device 210 along with the sensor array 410 (e.g., keyboard, keypad, mouse, trackball, LEDs, displays, or the like).
In one embodiment, the sigma-delta modulator 420 may also include a comparator. The output of the comparator may be configured to toggle when the voltage on the modulator capacitor crosses a reference voltage. The reference voltage may be a pre-programmed value, and may be configured to be adjustable. In another embodiment, the sigma-delta modulator 420 may also include a latch coupled to the output of the comparator. The latch may be configured to latch the output of the comparator based on a clock signal from the clock generation circuit 440. In another embodiment, the sigma-delta modulator 420 may include a synchronized latch that operates to latch an output of the comparator for a length of time. The output of the comparator may be latched for measuring or sampling the output signal of the comparator by the digital filter 430. The latch may be used to set the sigma-delta modulator sample frequency. The sigma-delta modulator 420 may also include additional components as described below in the various embodiments.
Clock source circuit 440 is configured to provide the clock to the switching circuit for the switching operation of the switching capacitor. The clock generation circuit 440 may also provide a clock signal to the sigma-delta modulator 420 for latching the output of the comparator. The clock circuit 440 may be configured to set a sample frequency and/or an output bitstream frequency of the sigma-delta modulator. The clock circuit 440 may include a clock source, such as an oscillator, or a pseudo-random signal (PRS) counter. The clock circuit 440 may also include additional components as described below in the various embodiments. In one embodiment, to minimize noise, the same number of switching capacitor cycles can be implemented in each conversion cycle. This may be achieved by using a single clock source for the modulator and the switching capacitor circuit, without requiring any synchronization circuit.
The modulator output is single bit bit-stream, which can be filtered and converted to the numerical values using a digital filter. The digital filter 430 is coupled to receive the output 421 of the sigma-delta modulator 420. The digital filter 430 is configured to obtain desired characteristics, such as resolution, sample rate, low-pass or high-pass type filtering, or the like. The output 421 may be a single bit bit-stream, which can be filtered and/or converted by the digital filter 430 to numerical values, such as multi-bit values. In one embodiment, the digital filter is a single integrator (e.g., counter). Alternatively, other standard ADC digital filters can be used, for example, SincN filter (where N is the order of the Sinc filter), or the like.
When a finger or other type of conductive object is placed on or near the switch, the capacitance increases from Cp to Cp+Cx which cause a change in the output 421. In one embodiment, the sigma-delta modulator 420 operates as a capacitance-to-duty-cycle converter. As the capacitance on the switching capacitor increase or decrease, the duty-cycle of the sigma-delta modulator subsequently changes. The duty cycle of the sigma-delta modulator 420 may be measured by the digital filter to provide a digital code 431.
The sigma-delta modulator 430 includes the comparator 621, latch 622, modulator capacitor Cmod 623, modulator feedback resistor 625, which may also be referred to as bias resistor 625, and voltage source 626. The output of the comparator may be configured to toggle when the voltage on the modulator capacitor 623 crosses a reference voltage 624. The reference voltage 624 may be a pre-programmed value, and may be configured to be adjustable. The sigma-delta modulator 420 also includes a latch 622 coupled to the output of the comparator 621 to latch the output of the comparator 621 for a given amount of time, and provide as an output, output 421. The latch may be configured to latch the output of the comparator based on a clock signal from the gate circuit 440 (e.g., oscillator signal from the oscillator 641). In another embodiment, the sigma-delta modulator 420 may include a synchronized latch that operates to latch an output of the comparator for a pre-determined length of time. The output of the comparator may be latched for measuring or sampling the output signal of the comparator 621 by the digital filter 430.
Sigma-delta modulator 420 is configured to keep the voltage on the modulator capacitor 623 close to reference voltage Vref 624 by alternatively connecting the switching capacitor resistor (e.g., switches Sw1 651 and Sw2 652 and sensing capacitor Cx 611) to the modulator capacitor 623. The output 421 of the sigma-delta modulator 420 (e.g., output of latch 622) is feedback to the gate circuit 440, which controls the timing of the switching operations of switches Sw1 651 and Sw2 652 of switching circuit 450. For example, in this embodiment, the clock source circuit 440 includes an oscillator 641 and gate 642. The output 421 of the sigma-delta modulator 420 is used with an oscillator signal to gate a control signal 643, which switches the switches Sw1 651 and Sw2 652 in a non-overlapping manner (e.g., two, non-overlapping phases). The output 421 of the sigma-delta modulator 420 is also output to digital filter 430, which filters and/or converts the output into the digital code 431.
In one embodiment of the method of operation, at power on, the modulator capacitor 623 has zero voltage and switching capacitor resistor (formed by sensing capacitor Cx 611, and switches Sw1 651 and Sw2 652) is connected between Vdd line 626 and modulator capacitor 623. This connection allows the voltage on the modulator capacitor 623 to rise. When this voltage reaches the comparator reference voltage, Vref 624, the comparator 621 toggles and gates the control signal 643 of the switches Sw1 651 and Sw2 652, stopping the charge current. Because the current via bias resistors Rb 625 continues to flow, the voltage on modulator capacitor 623 starts dropping. When it drops below the reference voltage 624, the output of the comparator 621 switches again, enabling the modulator 623 to start charging. As previously mentioned, the latch 622 and the comparator 621 set sample frequency of the sigma-delta modulator 420.
The digital filter 430 is coupled to receive the output 421 of the sigma-delta modulator 420. The output 421 of the sigma-delta modulator 420 may be a single bit bit-stream, which can be filtered and/or converted to the numerical values using a digital filter 430. In one embodiment, the digital filter 430 is a counter. In the other embodiment, the standard Sinc digital filter can be used. Alternatively, other digital filters may be used for filtering and/or converting the output 421 of the sigma-delta modulator 420 to provide the digital code 431. It should also be noted that the output 421 may be output to the decision logic 402 or other components of the processing device 210, or to the decision logic 451 or other components of the host 250 to process the bitstream output of the sigma-delta modulator 420.
Described below are the mathematical equations that represent the operations of
The sensing capacitor Cx 611 in the switched-capacitor mode has equivalent resistance:
where fs is the operation frequency of the switches (e.g., switching circuit 450). If the output 421 of the sigma-delta modulator 420 has a duty cycle of dmod, the average current of the switching capacitor 611 can be expressed in the following equation (4):
In the operation mode,
or taking into account that the reference voltage 624 is part of supply voltage:
The Equation (5) can be rewritten in the following form:
The Equation (7) determines the minimum sensing capacitance value, which can be measured with the proposed method at given parameters set:
The resolution of this method may be determined by the sigma-delta modulator duty cycle measurement resolution, which is represented in the following equations:
or after rewriting relatively ΔCx, we obtain:
In one exemplary embodiment, the resistance of the bias resistor 625 is 20K Ohms (Rb=20 k), the operation frequency of the switches is 12 MHz (fs=12 MHz), the capacitance on the switching capacitor 611 is 15 picofarads (Cx=15 pF), and the ratio between Vdd 626 and the voltage reference 624 is 0.25 (kd=0.25), the duty cycle has a 12-bit resolution and the capacitance resolution is 0.036 pF.
In some embodiments of capacitive sensing applications, it may be important to get fast data measurements. For example, the modulator can operate at sample frequency 10 MHz (period is 0.1 microseconds (us)), for the 12-bit resolution sample, and digital filter as single-type integrator/counter the measurement time is approximately 410 us (e.g., 212*0.1 us=410 us). For faster measurement speeds at same resolutions, other types of digital filters may be used, for example, by using the Sinc2 filter, the scanning time at the same resolution may be reduced approximately 4 times. To do this the sensing method should have suitable measurement speed. In one embodiment, a good measurement rate may be accomplished by using a double integrator as the digital filter 430.
It should also be noted that the embodiments of
Described below are the mathematical equations that represent the operations of
Ic=Cxfs(Vdd−VC int) (11)
The averaged current via bias resistor Rb 625 is:
sigma-delta modulator 420 keeps these currents equal in the average by keeping the voltage on the modulator capacitor 623 equal to, or close to, the reference voltage Vref 624. By Ic=IRb and taking into account the equation (6) we can obtain:
The Equation (13) determines the maximum sensing capacitance value, which can be measured with the proposed method at given parameters set: dmod≦1, or:
The resolution for this configuration can be evaluated by the following Equation (15):
In one exemplary embodiment, by substituting the following values: kd=0.25, Rb=1.6 k, fs=12 MHz, the capacitance on switching capacitor 611 is measured with 12-bits resolution, the maximum sensing capacitance value is equal to 17 pF (Cxmax=17 pF), and the resolution is 0.005 pF.
The embodiment described with respect to
In one embodiment, the control signal 643 is from a spread source, such as the PRS source 644, to provide some electromagnetic interference (EMI) immunity. EMI may be an electrical disturbance in a system due to natural phenomena, low-frequency waves from electromechanical devices or high-frequency waves (RFI) from chips and other electronic devices. Alternatively, other spread-clock sources can be used, such as voltage-controlled oscillators with an analog noise source, or the like.
In one embodiment, the bias resistor 625 or 627 and the modulator capacitor 623 are external components to the sigma-delta modulator 420, which resides in the processing device 210. This may allow modifications to be made to these components without modifications to the processing device 210. In another embodiment, these components reside within the sigma-delta modulator 420 and the sigma-delta modulator 420 may reside external to the processing device 210. Alternatively, all components reside in the processing device 210. Similarly, in other embodiments, the components described herein may reside on a common carrier substrate such as, for example, an integrated circuit (IC) die substrate, a multi-chip module substrate, or the like. Alternatively, the components of circuits of
It should be noted that the reference voltage 624 of
It should be noted that
It should be noted that the bias resistor (e.g., bias resistor 625 or 627 of
In other embodiments, one of the switches 651 or 652 can be replaced by a resistor. This however, may result in performance degradation, but allows the circuit to be implemented on a processing device with limited resources.
The digital filter 430 includes the PWM 745, a gate 831, and counter 832. The digital filter 430 may be a simple single integrator, based on the counter 832 with enabled input. The gate receives, as inputs, the output of the sigma-delta modulator 420 (e.g., from latch 622) and the output of the PWM 745, and provides, as output, an enable signal for the counter 832. The counter 832 is clocked by the clock signal received from the VC1 842 of the synchronizing circuit 440. The counter 832 provides, as output, the digital code 643 to the decision logic, such as decision logic 402 or 451.
In the embodiments of
Embodiments described herein may include one or more of the following advantages. The embodiments may include higher sensitivity and higher resolution than conventional capacitance measuring techniques (e.g., relaxation oscillator), and better noise immunity than conventional designs because the switching capacitor 611 is charged from low-impedance source (voltage source 626) at one phase, which output impedance is less than approximately 1K Ohm, and is discharged to the low-impedance current recipient (e.g., modulator capacitor 623 is a larger value capacitor than the switching capacitor 611) at second phase. The embodiments described herein may have the ability to operate with thicker overlays than the conventional capacitance measuring techniques (e.g., thicknesses greater than approximately 5 mm). The embodiments described herein may have an improved EMI immunity than conventional designs when a spread spectrum source is used for the switching capacitor operation. The spread spectrum source allows the system to operate in a wide frequency range with the presence of noise, as compared to the fixed operation frequency systems of the conventional designs that can easily be disturbed by noise when the noise frequency is close to the operation frequency. The embodiments described herein may have low sensitivity to the sensing element resistance in series, which allows operations with high-resistive conductive materials (e.g., larger than 100 Ω/square, for example ITO panels. For example, ITO panels which have a larger sensing zone can be used because the summarized resistance is less than 1K Ohms, as compared to a thin and long ITO line that has a resistance about 30-100K Ohms, which makes capacitance sensing more difficult, especially when a high operational frequency is used. The embodiments described herein may also be expandable to the linear position sensing through conductive materials (e.g., two-wire touch-sensor sliders, three-wire rotation wheel touch-sensor slider, or a four-wire touch-sensor pad).
The embodiments of the method described herein may also include advantages over the conventional capacitance sensing methods, such as flexible configuration measurement resolution versus conversion time, flexible capacitance measurement resolution versus time, such as by properly configuring the digital filter for “decimation” ratio; provides continuous type operation. Another advantage may include filtering the modulator bitstream in the parallel by several digital filters, one can be integration digital filter with long accumulation interval for high-resolution absolute values capacitance measurements, and a second can be digital filter for tracking fast capacitance change, for example. Due to the integration nature of operation of the sigma-delta modulator 420, the sigma-delta modulator output bit-stream is passed to through a low-pass digital filter, which attenuates the noise during measurement phase, which may provide an additional advantage over conventional methods. In other embodiments that include spread-spectrum operations, even if only the counter-based clock source is used, the switching signal is modulated by sigma-delta modulator output, providing some spectrum spreading in the circuit of
In addition, the embodiments described herein may be configured so that no precision external capacitors are used, and there may be no demands for the stable charge-accumulation capacitor to be resistant to the sharp temperature changes, as in the existing charge transfer methods.
In one embodiment, a threshold operation mode may be supported. For example, in the circuits 600 and 625 of
The embodiments described herein may be easy to manufacture on silicon (e.g., Easy to silicon implementations), for example, for the analog resources may be minimal (e.g., only one analog comparator with couple resistors). Also, the additional components, such as the PRS (or other spread spectrum sources), counters, decimators may be easy to manufacture using modern silicon process. In one exemplary embodiment, the embodiments are implemented in one digital block and one analog block of the (PSoC®) processing device, manufactured by Cypress Semiconductor Corporation, San Jose, Calif. Also, by selecting the switching frequency properly, good environmental factor compensation may be possible, such as for humidity, water films, or the like). For example, the water influence can be reduced by using the higher operation frequencies (12 MHz or more), where water dielectric constant is reduced.
The embodiments described herein may be implemented in various capacitance sensing applications, such as linear slider sensing, plane sensing, key matrix switches implementation, and the like. Some of these embodiments have been described in additional detail below. The embodiments described herein may be implemented in a one-dimensional position sensing device, such as two-pin sliders, three-pin rotation wheel slider, keyboards by connection keys, level sensing devices (e.g., water level sensing, etc.), and other one-dimensional position sensing devices. The embodiments described herein may also be implemented in multi-dimensional position sensing devices, such as various touch-sensor pads, transparent touch screens, keyboards (e.g., personal computer (PC) keyboards, industrial controller keyboards, remotes, or the like), game accessories, or other multi-dimensional position sensing devices. Alternatively, the embodiments described herein may be implemented to measure capacitance on a single sensor element, such as a touch-sensor button.
The embodiments described herein may be with conductive materials of position sensing, such as ITO materials for both single and multi-dimensional sensing devices. For example, the embodiments may be implemented in a dual layer, matrix-scanning application, such as illustrate in
In one embodiment, the operational frequency of the switching circuit should be selected in such a way as to provide complete row or column line re-charge each switching cycle. For example, the operation frequency can be selected to be less than 1 MHz, such as 300-400 kHz for a 50×50 mm panel with 10 mils connection and inter-segment tracks, made from 400 Ω/square ITO material. Alternatively, other higher receptivity materials can be used, which use lower operation frequency.
Described below are embodiments of applications that may be implemented using the embodiments described above.
Some applications of capacitance sensing devices require the reliable operation in the presence of the water films or drops on the sensing device. For example, various applications, such as household appliances, automotive applications, industrial application, need sensor elements that do not provide false triggering when the presence of water, ice, humidity, or the like exists and/or changes on the sensor elements. In one embodiment, a separate shielding electrode can be used.
When a water drop or water film is present on the overlay of the sensing device, the coupling between the shielding electrode 902 and the sensor elements 901 is increased. For example, when water drops are located between shielding and sensing electrodes, the Cp is increased and modulator current is reduced. The increase of coupling between the sensor elements and the shielding electrode may increase the raw counts measured by the processing device. This may result in false triggering of button activation when no button has been pressed. In one embodiment, in response to the presence of water drops, the modulator reference voltage is increased by an API in such way that the raw count increase caused from the water drops can be corrected (e.g., calibrated to be close to zero, or alternatively, slightly negative).
In this example shielding electrode plane covers button. As alternative placement example the shielding electrode can be located at the opposite PCB layer, including the plane under button. In one embodiment, a hatch pattern, as illustrated in
In one embodiment, the shield electrode may be in a transparent touchpad device. This may be useful to block the noise influence of the LCD drive electrodes and reduce the stray capacitance at the same time.
Imod=IC−ICpar=fsCx(Vdd−VC mod)−fsCparVC mod (16)
As seen from equation (16), the modulator current is reduced with coupling increasing between electrodes, which allows separate signals from water and conductive object 303 (e.g., finger). Water drops may decrease the modulator current, and the finger touch may increase the modulator current. This may simplify the decision logic operation.
To find the touch position regardless its capacitance, the slider ends are reversed and measurement cycle is repeated. These stages are called Stage 1 and Stage 2. In the Stage 1, the A edge of conductive material is connected to the fixed potential net at Ph2 operation cycle and current is sensed from side B of conductive strip. In the Stage 2, the B edge of conductive material is connected to the fixed voltage net and signal from edge A is passed to the modulator filtering capacitor. The touch position can be found by doing relatively simple math calculations as described below.
Capacitor Cx indicates the capacity of slider and capacity introduced by finger in the touch point. This discussion, however does not consider the slider distributed parasitic capacitance and its influence on the measurement results for math simplification. It should be noted that the influence of the parasitic capacitance should be constant over one-dimensional strip during measurement cycle.
At the Ph1, the capacitor Cx is charged by fixed voltage Vdd. Charge time should be enough for transient process finalization. At the Ph2 the Cx is discharged. Discharge time is limited by Ph2 duration period, mark as tr. The sigma-delta modulator keeps the input voltage close to Vref and this voltage can be assumed constant during operation. Quantity of charge, passed through resistor Rx will be equal to integral of current passed through this resistor, as represented in the following equations:
The process of capacitor discharging is described by the following first order differential equation:
For the initial conditions: VCx(0)=Vdd, Vref=constant, the solution of equation (19) will be:
The following equation includes the resistive divider on Rx, Rx1. We can simplify it by using the following substitutions:
Now, changing equation 21, taking into account equation 20 for resistive tap, the following equation is derived:
By substituting the equation 22 in equation 18 and integrating over cycle time tr we can get the following equation for charge, transferred each switching cycle with duration tr:
By dividing the equation (23) on Ph2 duration time tr, one can determine the current value via switching capacitor slider, as represented in the following equation:
This equation represents two components. One component covers the resistive strip DC current (left term, that is inversely proportional to the R), and second component is caused by the presence of the conductive object (e.g., touch influence). The sigma-delta modulator converts the Isw current in the duty cycle.
It should be noted that the description above may be extended for two dimension operation by increasing the number of parallel operation channels (e.g., using two or more sigma-delta modulators, operating in parallel) or by sensing the two dimensional panel as a set of one dimension sliders. In this embodiment, the two panel edges effectively are a one-dimensional slider with A,B terminals. The left two edge connectors can be left non-connected or be connected to the modulator reference voltage source, forming the different measurement schemes.
For example, a 4-wire ITO panel configuration may include four modulators with four separate digital filters, which are used at same time. If two sigma-delta modulators are running in parallel, slider touch position may be determined in one single stage, eliminating the need for two separate stages, Stage 1 and Stage 2. Running several modulators in parallel may reduce scan time and improve SNR. One disadvantage may be an increase in cost of hardware resources. Alternatively, other configurations are possible.
The embodiments described herein may be implemented in a matrix-scanning device, such as a keyboard.
In one embodiment, the DC voltage source (Vdc) is used for parasitic capacitance compensation. The value of Vdc may be adjusted such that there is minimal or no modulator current when there is no presence of the conductive object (e.g., no touch is being detected). In another embodiment, the DC source voltage can be selected to be equal to zero, or alternatively, equal to Vdd (e.g., bottom lead of the third switch Sw3 is connected to ground or Vdd). Alternatively, the DC source voltage may be equal to the reference voltage Vref. In one exemplary embodiment, the switch can be connected to the Vdd or Vss lines of the PSoC® processing device, manufactured by Cypress Semiconductor Corporation, San Jose, Calif. In another embodiment, DC voltage source to the first switch Sw1, which may allow offset compensation in a circuit that includes two analog buses, such as the PSoC® processing device, manufactured by Cypress Semiconductor Corporation, San Jose, Calif.
In another embodiment, an insulated sensor element and a sigma-delta modulator may be used a liquid level metering device. The insulated sensor element may be placed inside a tank with liquid. The sensor capacitance may be configured to increase linearly in response to an increase in level of the liquid in the tank.
As described above, the embodiments described herein describe a capacitance-to-code converter that allows continuous type operation by providing a continuous output bitstream that can be filtered by one or more filters, (e.g., parallel multiple digital filters) to obtain desired characteristics, such as resolution, sample rate, low-pass or high-pass filtering, or the like. The embodiments describe herein may also be configured to provide a direct capacitance-to-code conversion using a sigma-delta modulator with linear transfer characteristic and fixed measurement time, for example, using a decimator, whose output code is directly proportional to the capacitance.
The embodiments described herein may have the advantage of keeping all benefits of existing charge transfer/accumulation methods (especially in the high immunity for RF/EMI noise signals), and may be configured for easy implementation in existing devices from hardware and software perspectives, as well as in future devices.
Embodiments of the present invention, described herein, include various operations. These operations may be performed by hardware components, software, firmware, or a combination thereof. As used herein, the term “coupled to” may mean coupled directly or indirectly through one or more intervening components. Any of the signals provided over various buses described herein may be time multiplexed with other signals and provided over one or more common buses. Additionally, the interconnection between circuit components or blocks may be shown as buses or as single signal lines. Each of the buses may alternatively be one or more single signal lines and each of the single signal lines may alternatively be buses.
Certain embodiments may be implemented as a computer program product that may include instructions stored on a machine-readable medium. These instructions may be used to program a general-purpose or special-purpose processor to perform the described operations. A machine-readable medium includes any mechanism for storing or transmitting information in a form (e.g., software, processing application) readable by a machine (e.g., a computer). The machine-readable medium may include, but is not limited to, magnetic storage medium (e.g., floppy diskette); optical storage medium (e.g., CD-ROM); magneto-optical storage medium; read-only memory (ROM); random-access memory (RAM); erasable programmable memory (e.g., EPROM and EEPROM); flash memory; electrical, optical, acoustical, or other form of propagated signal (e.g., carrier waves, infrared signals, digital signals, etc.); or another type of medium suitable for storing electronic instructions.
Additionally, some embodiments may be practiced in distributed computing environments where the machine-readable medium is stored on and/or executed by more than one computer system. In addition, the information transferred between computer systems may either be pulled or pushed across the communication medium connecting the computer systems.
Although the operations of the method(s) herein are shown and described in a particular order, the order of the operations of each method may be altered so that certain operations may be performed in an inverse order or so that certain operation may be performed, at least in part, concurrently with other operations. In another embodiment, instructions or sub-operations of distinct operations may be in an intermittent and/or alternating manner.
In the foregoing specification, the invention has been described with reference to specific exemplary embodiments thereof. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader spirit and scope of the invention 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.
Claims
1. A method comprising:
- measuring a mutual capacitance on a sense element of a matrix-scanning device using a modulation circuit, wherein the matrix-scanning device comprises a plurality of drive lines and a plurality of sense lines and the sense element is located at an intersection of one of the plurality of drive lines and one of the plurality of sense lines; and
- switching the sense element to be coupled and decoupled to a capacitor of the modulation circuit using a first plurality of switches, wherein the first plurality of switches are controlled by a clock;
- converting the mutual capacitance measured on the sense element to a first digital value;
- measuring a self-capacitance on at least one of the plurality of drive lines;
- switching the at least one of the plurality of drive lines to be coupled and decoupled to the capacitor using a second plurality of switches, wherein the second plurality of switches are controlled by the clock; and
- converting the self-capacitance measured on the at least one of the plurality of drive lines to a second digital value.
2. The method of claim 1, wherein the matrix-scanning device comprises a plurality of sense elements comprising the sense element, wherein the plurality of sense elements are located at intersections between the plurality of drive lines and plurality of sense lines, and wherein said measuring comprises:
- applying one or more drive signals to the plurality of drive lines; and
- sensing one or more signals on one or more of the plurality of sense lines.
3. The method of claim 2, wherein the applying the one or more drive signals comprises applying the one or more drive signals in sequentially.
4. The method of claim 3, wherein the sensing the one or more signals comprises sensing the one or more signals on the plurality of sense lines in parallel.
5. The method of claim 2, wherein the applying the one or more drive signals comprises applying the one or more drive signal in parallel.
6. The method of claim 2, wherein the sensing the one or more signals on one or more of the plurality of sense lines comprises multiplexing two or more of the plurality of sense lines to the modulation circuit.
7. The method of claim 2, further comprising a plurality of modulation circuits coupled to the plurality of sense lines.
8. The method of claim 1, wherein the first digital value is commensurate to the measured mutual capacitance of the sense element.
9. The method of claim 1, wherein the first plurality of switches and the second plurality of switches are the same switches.
10. An apparatus, comprising:
- a matrix-scanning device comprising a plurality of drive lines and a plurality of sense lines and a sense element is located at an intersection of one of the plurality of drive lines and one of the plurality of sense lines;
- a modulation circuit selectively coupled to the plurality of drive lines and the plurality of sense lines; and
- a switching circuit having a first plurality of switches and a second plurality of switches controlled in response to a clock, wherein the modulation circuit is configured to measure a mutual capacitance on the sense element using the first plurality of switches, wherein the modulation circuit is configured to convert the measured mutual capacitance to a first digital value, wherein the modulation circuit is configured to measure a self-capacitance on at least one of the plurality of drive lines using the second plurality of switches, and wherein the modulation circuit is configured to convert the self-capacitance to a second digital value.
11. The apparatus of claim 10, further comprising a clock circuit configured to provide at least one of a pseudo-random clock or a dithered clock as the clock to control the switching circuit.
12. The apparatus of claim 11, wherein the clock circuit comprises a pseudo-random signal (PRS) counter.
13. The apparatus of claim 10, further comprising:
- an oscillator configured to provide an oscillator signal; and
- a pseudo-random signal (PRS) circuit, comprising a PRS generator configured to receive the oscillator signal and to generate a PRS as the clock to control the switching circuit.
14. The apparatus of claim 10, further comprising a voltage-controlled oscillator (VCO) to provide the clock to control the switching circuit.
15. The apparatus of claim 10, further comprising a clock circuit to provide the clock to control the switching circuit.
16. The apparatus of claim 10, wherein the matrix-scanning device comprises a plurality of sense elements comprising the sense element, wherein the plurality of sense elements are located at intersections between the plurality of drive lines and plurality of sense lines.
17. The apparatus of claim 10, wherein the modulation circuit comprises a sigma-delta modulator.
18. The apparatus of claim 10, further comprising one or more digital filters coupled to receive an output of the modulation circuit, wherein the output of the modulation circuit is a digital output bitstream, and wherein the one or more digital filters are configured to convert the digital output bitstream into the digital value.
19. The apparatus of claim 10, wherein the first plurality of switches and the second plurality of switches are the same switches.
20. A system, comprising:
- a matrix-scanning device comprising a plurality of sense elements, wherein the plurality of sense elements are intersections between a plurality of drive lines and a plurality of sense lines of the matrix-scanning device;
- a processing device coupled to the matrix-scanning device, the processing device comprising: a switching circuit having a first plurality of switches and a second plurality of switches, wherein the processing device is configured to control the first and second plurality of switches using a clock; and a modulation circuit configured to be coupled to the plurality of drive lines and the plurality of sense lines, wherein the modulation circuit is configured to measure a mutual capacitance on the one sense element using the first plurality of switches, wherein the modulation circuit is configured to convert the measured mutual capacitance to a first digital value, wherein the modulation circuit is configured to measure a self-capacitance on at least one of the plurality of drive line using the second plurality of switches, and wherein the modulation circuit is configured to convert the measured self-capacitance to a second digital value.
21. The system of claim 20, wherein the processing device further comprises a pseudo-random signal (PRS) circuit coupled to the switching circuit and the modulation circuit, wherein the PRS circuit is configured to provide a PRS as the clock to control the switching circuit.
22. The system of claim 20, wherein the modulation circuit is a capacitance-to-duty-cycle converter, wherein the modulator duty cycle of the modulation circuit changes when a presence of a conductive object is detected on the one sense element.
23. The system of claim 20, wherein the first plurality of switches and the second plurality of switches are the same switches.
Type: Application
Filed: Jun 13, 2013
Publication Date: Oct 24, 2013
Patent Grant number: 9166621
Inventor: Viktor Kremin (Lviv)
Application Number: 13/917,528
International Classification: H03M 11/02 (20060101);