Electronic device
10372283 ยท 2019-08-06
Assignee
Inventors
Cpc classification
G06F2203/04103
PHYSICS
G06K19/0723
PHYSICS
G06F3/04166
PHYSICS
International classification
G09G5/00
PHYSICS
G06F3/041
PHYSICS
Abstract
According to a first aspect of the present disclosure, an electronic device for use in a touch-based user interface is provided, the electronic device comprising a first capacitor, a second capacitor, a third capacitor, and an analog-to-digital converter, wherein: the first capacitor and the second capacitor are switchably coupled to each other; the first capacitor is switchably coupled to an input of the analog-to-digital converter; the second capacitor is coupled to the input of the analog-to-digital converter; the third capacitor is coupled to the first capacitor; the third capacitor is switchably coupled to the second capacitor; the third capacitor is switchably coupled to the input of the analog-to-digital converter. According to a second aspect of the present disclosure, a corresponding method of manufacturing an electronic device for use in a touch-based user interface is conceived.
Claims
1. An electronic device for use in a touch-based user interface, the electronic device comprising a set of first capacitors, a second capacitor, a third capacitor, and an analog-to-digital converter, wherein: the set of first capacitors and the second capacitor each have a first terminal that are coupled to each other through a set of first switches; the first terminal of each capacitor of the set of first capacitors is coupled to an input of the analog-to-digital converter through a first switch of the set of first switches, the first terminal of each of the first capacitors is coupled to a voltage input terminal through a second switch, a second terminal of each of the first capacitors is coupled to the voltage input terminal through a third switch, and the second terminal of each of the first capacitors is coupled to a voltage reference terminal through a fourth switch, and wherein the set of first capacitors are sensing capacitors and each capacitor of the set of first capacitors corresponds to a position in an array of sensing elements which represent a multi-channel touch sensor; the first terminal of the second capacitor is coupled to the input of the analog-to-digital converter, and a second terminal of the second capacitor is coupled to the voltage reference terminal; a first terminal of the third capacitor is coupled to the first terminal of each of the first capacitor, and a second terminal of the third capacitor is coupled to the voltage reference terminal; the third capacitor is coupled to the second capacitor through the first switch; the third capacitor is coupled to the input of the analog-to-digital converter through the first switch.
2. The electronic device of claim 1, wherein the third capacitor is implemented as a printed circuit board capacitor made from neighboring tracks on the printed circuit board.
3. The electronic device of claim 1, being configured to derive individual capacitances on the first capacitors from partial sum values, wherein said partial sum values are obtained by measuring and adding together combined capacitances on subsets of the set of first capacitors.
4. The electronic device of claim 3, further being configured to measure capacitances on mutually different subsets of the set of first capacitors.
5. The electronic device of claim 3, further being configured to apply a weighting factor to the partial sum values.
6. The electronic device of claim 5, further being configured to regroup the weighted partial sum values, thereby yielding high-pass filter terms.
7. The electronic device of claim 3, further being configured to filter the partial sum values.
8. The electronic device of claim 7, further being configured to use an infinite-impulse-response filter for filtering the partial sum values.
9. The electronic device of claim 1, wherein the first capacitors are coupled to general-purpose input/output pins.
10. The electronic device of claim 9, wherein the general-purpose input/output pins, the analog-to-digital converter and the second capacitor form part of a microcontroller unit.
11. A smart card comprising the electronic device of claim 1.
12. A method of manufacturing an electronic device for use in a touch-based user interface, the method comprising providing the electronic device with a first capacitor, a second capacitor, a third capacitor, and an analog-to-digital converter, wherein: the set of first capacitors and the second capacitor each have a first terminal that are coupled to each other through a first switch; the first terminal of each capacitor of the set of first capacitors is coupled to an input of the analog-to-digital converter through the first switch, the first terminal of each of the first capacitors is coupled to a voltage input terminal through a second switch, a second terminal of each of the first capacitors is coupled to the voltage input terminal through a third switch, and the second terminal of each of the first capacitors is coupled to a voltage reference terminal through a fourth switch; the first terminal of the second capacitor is coupled to the input of the analog-to-digital converter, and a second terminal of the second capacitor is coupled to the voltage reference terminal; a first terminal of the third capacitor is coupled to the first terminal of the first capacitor, and a second terminal of the third capacitor is coupled to the voltage reference terminal; the third capacitor is coupled to the second capacitor through the first switch; the third capacitor is coupled to the input of the analog-to-digital converter through the first switch.
Description
DESCRIPTION OF DRAWINGS
(1) Embodiments will be described in more detail with reference to the appended drawings, in which:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
DESCRIPTION OF EMBODIMENTS
(13)
(14) In particular, when switch Sa 112 and switch Sadc 116 are closed, capacitor Chold 110 may be charged to a supply voltage V.sub.DD received on the voltage input 102. Then, switch Sadc 112 may be opened and the voltage level V.sub.DD may be held on capacitor Chold 110. In a next step, switch Sb 114 may be closed, which causes capacitor Csense 108 to discharge to zero. When capacitor Csense 108 is completely discharged switch Sb 114 may be opened. Then, switch Sadc 116 may be closed, so that charge sharing among capacitor Chold 110 and capacitor Csense 108 occurs. The resulting voltage at the input of the ADC 104 is indicative of the capacitance on the capacitor Csense 108. Then, switch Sadc 116 may be opened and the voltage held on capacitor Chold 110 may now be converted into a digital representation (Dig Out) by means of the ADC 104. The capacitance on the capacitor Csense 108 may change under the influence of an external object, e.g. a human finger. As a consequence, the voltage at the input of the ADC 104 and its digital representation (Dig Out) changes; this change can be used to detect the presence of the external object. The sense capacitor 108 may correspond to a certain position in an array of sensing elements (sense capacitors), and if the voltage at the input of the ADC 104 and its digital representation (Dig Out) changes, it is concluded that a touch event takes place at this position (this process is referred to as position capturing herein). Since the capacitor Csense 108 is used to sense the presence of, for example, the human finger, it may be referred to as a sense capacitor. Table 1 shows an example of a switching sequence of the electronic device 100.
(15) TABLE-US-00001 TABLE 1 Step Sa Sb Sadc Effect 1 Closed Open Closed Charge C.sub.HOLD to V.sub.DD (=sampled noise is related to V.sub.DD) 2 Closed Open Open Disconnect C.sub.HOLD 3 Open Closed Open Reset Csense (shortcut to Gnd for best noise behavior) 4 Open Open Open Stop resetting Csense 5 Open Open Closed Charge sharing C.sub.SENSE||C.sub.HOLD 6 Open Open Open Hold + A/D conversion
(16) The electronic device 100 shown in
(17) According to a first aspect of the present disclosure, an electronic device for use in a touch-based user interface is provided, the electronic device comprising a first capacitor, a second capacitor, a third capacitor, and an analog-to-digital converter, wherein: the first capacitor and the second capacitor are switchably coupled to each other; the first capacitor is switchably coupled to an input of the analog-to-digital converter; the second capacitor is coupled to the input of the analog-to-digital converter; the third capacitor is coupled to the first capacitor; the third capacitor is switchably coupled to the second capacitor; the third capacitor is switchably coupled to the input of the analog-to-digital converter. In particular, the third capacitor may be used to keep a voltage across the second capacitor within an optimal conversion range of the analog-to-digital converter. This, in turn, may enable a fast and accurate touch position capturing and calculation, thereby reducing the power consumption of sensing systems that comprise the presently disclosed electronic device.
(18)
(19) In particular, when the switches Sa 112, Sb 114 and Sadc 116 are closed, capacitors Cshare 202 and Chold 110 may be charged to a supply voltage V.sub.DD while Csense 108 may be discharged. Discharging of Csense 108 as well as charging Cshare 202 and Chold 110 may be stopped by opening switches Sa 112 and Sb 114. When closing switch Sc 204, charge sharing among Chold 110 and Csense 108 may occur. The resulting voltage at the input of the ADC 104 is indicative of the capacitance on capacitor Csense 108. Switch Sadc 116 may be opened and thus the ADC input voltage may be held on Chold 110 for conversion into a digital representation by means of the ADC 104. By adding more sense capacitors Csense and more switches Sb and Sc a multi-channel touch sensor is obtained, as will be explained with reference to
(20) TABLE-US-00002 TABLE 2 Step Sa Sb Sc Sadc Effect 1 Closed Closed Open Closed Discharge C.sub.SENSE, charge C.sub.SHARE || C.sub.HOLD to V.sub.DD (=sampled noise related to V.sub.DD), 2 Open Open Open Closed Disconnect C.sub.SENSE 3 Open Open Closed Closed Charge sharing C.sub.SENSE||C.sub.SHARE||C.sub.HOLD 4 Open Open Open Open Hold + A/D conversion
(21)
(22) In particular, in the embodiment shown in
(23) TABLE-US-00003 TABLE 3 Step GPIOx GPIOy Sadc Effect 1 H H Closed Discharge C.sub.SENSE.sub.
(24) In one or more embodiments, the electronic device 300 is configured to derive individual capacitances on the sense capacitors Csense_1 310, Csense_2 312, Csense_3 314, from partial sum values. In particular, the partial sum values are obtained by measuring and adding capacitances on subsets of the set of sense capacitors Csense_1 310, Csense_2 312, Csense_3 314. Table 4 shows an example of this principle. In particular, it shows how individual capacitances on the three sense capacitors shown in
(25) TABLE-US-00004 TABLE 4 Scan X.sub.1 X.sub.2 X.sub.3 Comment 1 X X .sub.1 = 0 + Xn.sub.2 + Xn.sub.3 2 X X .sub.2 = Xn.sub.1 + 0 + Xn.sub.3 3 X X .sub.3 = Xn.sub.1 + Xn.sub.2 + 0 1-3 = 2*Xn.sub.1 + 2*Xn.sub.2 + 2*Xn.sub.3 2*Xn.sub.1 = 2*.sub.1 2*Xn.sub.2 = 2*.sub.2 2*Xn.sub.3 = 2*.sub.3
(26) In some embodiments a microcontroller may be used that does not have a sample-and-hold stage preceding the analog-to-digital converter. In this case switch Sadc is kept closed during all steps and capacitor Cshare is used as sample-and-hold capacitor as shown in Table 5.
(27) TABLE-US-00005 TABLE 5 Step GPIOx GPIOy Sadc Effect 1 H H Closed Discharge C.sub.SENSE.sub.
(28)
(29)
(30) The evaluation of the five sense capacitors is illustrated in Table 6. After five evaluations of different subsets of the sense capacitors the capacitances of each individual sense capacitor may be obtained by means of a calculation. In a consecutive step the x- and y-position of the touch event may be calculated. In a following step the x- and y-positions may be low-pass filtered in order to remove position noise.
(31) TABLE-US-00006 TABLE 6 Scan X.sub.1 X.sub.2 X.sub.3 X.sub.3 X.sub.3 Comment 1 X X X X .sub.1 = 0 + Xn.sub.2 + Xn.sub.3 + Xn.sub.4 + Xn.sub.5 2 X X X X .sub.2 = Xn.sub.1 + 0 + Xn.sub.3 + Xn.sub.4 + Xn.sub.5 3 X X X X .sub.3 = Xn.sub.1 + Xn.sub.2 + 0 + Xn.sub.4 + Xn.sub.5 4 X X X X .sub.4 = Xn.sub.1 + Xn.sub.2 + Xn.sub.3 + 0 + Xn.sub.5 5 X X X X .sub.5 = Xn.sub.1 + Xn.sub.2 + Xn.sub.3 + Xn.sub.4 + 0 1-5 = .sub.1 + .sub.2 + .sub.3 + .sub.4 + .sub.5 = 4*Xn.sub.1 + 4*Xn.sub.2 + 4*Xn.sub.3 + 4*Xn.sub.4 + 4*Xn.sub.5 4*Xn.sub.1 = 4*.sub.1 4*Xn.sub.2 = 4*.sub.2 4*Xn.sub.3 = 4*.sub.3 4*Xn.sub.4 = 4*.sub.4 4*Xn.sub.5 = 4*.sub.5
(32) In accordance with the present disclosure, the position calculation method may be improved so as achieve higher position sample rates. In particular, the x- and y-positions may be calculated directly from the sum samples .sub.1 to .sub.n in case of an n-field sensor. As an example, the x- and y-positions of a finger on a 5-field sensor may be directly obtained from weighted filter components .sub.1 to .sub.5 as shown below:
(33)
(34) The weighted sums may be regrouped, yielding the two high-pass filter terms (.sub.1.sub.4) and (.sub.3.sub.2). These high-pass filter terms may remove DC-components from the position components. Only two divisions and a few subtraction, addition and shift operations may be required to obtain one x/y-position from the position components. Thus, in one or more embodiments, the partial sum values may be weighted and the weighted partial sum values may be regrouped. Thereby, hardware savings may be achieved.
(35)
(36)
(37)
(38) TABLE-US-00007 TABLE 7 Scan X.sub.1 X.sub.2 X.sub.3 X.sub.4 X.sub.5 X.sub.6 Comment 1 X X X X X .sub.1 = 0 + Xn.sub.2 + Xn.sub.3 + 0 + 0 + 0 2 X X X X X .sub.2 = Xn.sub.1 + 0 + Xn.sub.3 + 0 + 0 + 0 3 X X X X X .sub.3 = Xn.sub.1 + Xn.sub.2 + 0 + 0 + 0 + 0 4 X X X X X .sub.4 = 0 + 0 + 0 + 0 + Xn.sub.5 + Xn.sub.6 5 X X X X X .sub.5 = 0 + 0 + 0 + Xn.sub.4 + 0 + Xn.sub.6 6 X X X X X .sub.6 = 0 + 0 + 0 + Xn.sub.4 + Xn.sub.5+ 0 1-6 .sub.13 = .sub.1 + .sub.2 + .sub.3 .sub.46 = .sub.4 + .sub.5 + .sub.6 = .sub.13 + .sub.46
(39) The calculation of the x- and y-positions may be performed as follows. The x-position may be obtained by assigning the x-position-weights to the partial sums:
Pos.sub.x=2*(.sub.1.sub.3+.sub.4.sub.6)/(.sub.13+.sub.46)
(40) The y-position may be obtained by assigning the y-position-weights to the partial sums .sub.13 and .sub.46:
Pos.sub.y=.sub.13/(.sub.13+.sub.46)
(41)
(42)
(43) TABLE-US-00008 TABLE 8 Scan X.sub.1 X.sub.2 X.sub.3 X.sub.4 X.sub.5 X.sub.6 X.sub.7 X.sub.8 X.sub.9 Comment 1 X X X X X X X X .sub.1 = 0 + Xn.sub.2 + Xn.sub.3 + Xn.sub.4 + Xn.sub.5 + Xn.sub.6 + Xn.sub.7 + Xn.sub.8 + Xn.sub.9 2 X X X X X X X X .sub.2 = Xn.sub.1 + 0 + Xn.sub.3 + Xn.sub.4 + Xn.sub.5 + Xn.sub.6 + Xn.sub.7 + Xn.sub.8 + Xn.sub.9 3 X X X X X X X X .sub.3 = Xn.sub.1 + Xn.sub.2 + 0 + Xn.sub.4 + Xn.sub.5 + Xn.sub.6 + Xn.sub.7 + Xn.sub.8 + Xn.sub.9 4 X X X X X X X X .sub.4 = Xn.sub.1 + Xn.sub.2 + Xn.sub.3 + 0 + Xn.sub.5 + Xn.sub.6 + Xn.sub.7 + Xn.sub.8 + Xn.sub.9 5 X X X X X X X X .sub.5 = Xn.sub.1 + Xn.sub.2 + Xn.sub.3 + Xn.sub.4 + 0 + Xn.sub.6 + Xn.sub.7 + Xn.sub.8 + Xn.sub.9 6 X X X X X X X X .sub.6 = Xn.sub.1 + Xn.sub.2 + Xn.sub.3 + Xn.sub.4 + Xn.sub.5 + 0 + Xn.sub.7 + Xn.sub.8 + Xn.sub.9 7 X X X X X X X X .sub.7 = Xn.sub.1 + Xn.sub.2 + Xn.sub.3 + Xn.sub.4 + Xn.sub.5 + Xn.sub.6 + 0 + Xn.sub.8 + Xn.sub.9 8 X X X X X X X X .sub.8 = Xn.sub.1 + Xn.sub.2 + Xn.sub.3 + Xn.sub.4 + Xn.sub.5 + Xn.sub.6 + Xn.sub.7 + 0 + Xn.sub.9 9 X X X X X X X X .sub.9 = Xn.sub.1 + Xn.sub.2 + Xn.sub.3 + Xn.sub.4 + Xn.sub.5 + Xn.sub.6 + Xn.sub.7 + Xn.sub.8 + 0 1-9 = .sub.1 + .sub.2 + .sub.3 + .sub.4 + .sub.5 + .sub.6 + .sub.7 + .sub.8 + .sub.9 = 8*Xn.sub.1 + 8*Xn.sub.2 +8*Xn.sub.3 + 8*Xn.sub.4 + 8*Xn.sub.5 + 8*Xn.sub.6 + 8*Xn.sub.7 + 8*Xn.sub.8 + 8*Xn.sub.9
(44) In this example, the x/y-position may be obtained directly from the partial sums .sub.1 to .sub.9 as shown below:
Pos.sub.X=8*(.sub.1.sub.3+.sub.4.sub.6+.sub.7.sub.9)/
Pos.sub.X=8*((.sub.1.sub.9)+(.sub.7.sub.3)+(.sub.4.sub.6))/
Pos.sub.y=8*(.sub.1.sub.2.sub.3+.sub.7+.sub.8+.sub.9)/
Pos.sub.y=8*((.sub.1.sub.9)+(.sub.7.sub.3)+(.sub.8.sub.2))/
(45) In this example, only two divisions and a few subtraction, addition and shift operations are required for obtaining one x/y-position. In case IIR-filtering as shown in
(46)
(47) The general calculation of the x/y-position directly from the partial sums .sub.1 to .sub.n is given below. In order to avoid the effort of two-dimensional position noise filtering it may be advantageous to apply filtering (for an n-field sensor) only to the following three components before position calculation:
.sub.x=(2.sup.n)*[Wx.sub.1*.sub.1+Wx.sub.2*.sub.2+ . . . +Wx.sub.n*.sub.n]
.sub.y=(2.sup.n)*[Wy.sub.1*.sub.1+Wy.sub.2*.sub.2+ . . . +Wy.sub.n*.sub.n]
=.sub.1+.sub.2+ . . . +.sub.n
(48) Herein, Wx.sub.n and Wy.sub.n are the position weight factors for weighted averaging; Wx.sub.i/Wy.sub.i practically define the position of the center of sensor i in a reference plane.
(49) The presently disclosed electronic device may be used to advantage in a smart card. For instance, a typical application of a five-sensor structure is a keypad or PIN pad for smart cards, e.g. for authentication purposes in banking and payment applications. In case of a touch by a human finger the identified touch position may be communicated to a secure element embedded in the smart card, for personal identification number (PIN) decoding and PIN matching. Another implementation of the touch processing sequence may be the physical integration as a hardware component into a microcontroller, because the simplicity of the sequence of processing steps may support an efficient implementation with an economic gate-count. Furthermore, a 33 sensor structure may also be applied as a user input interface for a wide range of consumer devices with touchpad sizes of up to 6060 mm.
(50) It is noted that the embodiments above have been described with reference to different subject-matters. In particular, some embodiments may have been described with reference to method-type claims whereas other embodiments may have been described with reference to apparatus-type claims. However, a person skilled in the art will gather from the above that, unless otherwise indicated, in addition to any combination of features belonging to one type of subject-matter also any combination of features relating to different subject-matters, in particular a combination of features of the method-type claims and features of the apparatus-type claims, is considered to be disclosed with this document.
(51) Furthermore, it is noted that the drawings are schematic. In different drawings, similar or identical elements are provided with the same reference signs. Furthermore, it is noted that in an effort to provide a concise description of the illustrative embodiments, implementation details which fall into the customary practice of the skilled person may not have been described. It should be appreciated that in the development of any such implementation, as in any engineering or design project, numerous implementation-specific decisions must be made in order to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another. Moreover, it should be appreciated that such a development effort might be complex and time consuming, but would nevertheless be a routine undertaking of design, fabrication, and manufacture for those of ordinary skill.
(52) Finally, it is noted that the skilled person will be able to design many alternative embodiments without departing from the scope of the appended claims. In the claims, any reference sign placed between parentheses shall not be construed as limiting the claim. The word comprise(s) or comprising does not exclude the presence of elements or steps other than those listed in a claim. The word a or an preceding an element does not exclude the presence of a plurality of such elements. Measures recited in the claims may be implemented by means of hardware comprising several distinct elements and/or by means of a suitably programmed processor. In a device claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.
LIST OF REFERENCE SIGNS
(53) 100 electronic device 102 voltage input 104 analog-to-digital converter 108 sense capacitor 110 sample-and-hold capacitor 112 switch 114 switch 116 switch 200 electronic device 202 sample-and-hold capacitor 204 switch 300 electronic device 302 general-purpose input/output pin 304 general-purpose input/output pin 306 general-purpose input/output pin 308 general-purpose input/output pin 310 sense capacitor 312 sense capacitor 314 sense capacitor 400 position capturing device 402 microcontroller 404 memory 406 central processing unit 410 position acquisition function 412 position filtering function 414 outer finite-impulse-response filter loop 416 inner touch loop 500 5-field 2D sensor layout 502 5-field 2D sensor weights 600 filtering of partial sum values 700 scan loop for a 5-field 2D sensor 800 6-field 2D sensor layout 802 6-field 2D sensor weights 900 scan loop for a 6-field 2D sensor 1000 9-field 2D sensor layout 1002 9-field 2D sensor weights 1100 scan loop for a 9-field 2D sensor