CN113114208A - Capacitive touch device and operation method thereof - Google Patents

Capacitive touch device and operation method thereof Download PDF

Info

Publication number
CN113114208A
CN113114208A CN202010026244.2A CN202010026244A CN113114208A CN 113114208 A CN113114208 A CN 113114208A CN 202010026244 A CN202010026244 A CN 202010026244A CN 113114208 A CN113114208 A CN 113114208A
Authority
CN
China
Prior art keywords
capacitance
capacitor
voltage
touch
detection circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010026244.2A
Other languages
Chinese (zh)
Inventor
黄正宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tenx Xingye Technology Shenzhen Co ltd
Haishui Core Wuxi Technology Co ltd
Original Assignee
Tenx Xingye Technology Shenzhen Co ltd
Haishui Core Wuxi Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tenx Xingye Technology Shenzhen Co ltd, Haishui Core Wuxi Technology Co ltd filed Critical Tenx Xingye Technology Shenzhen Co ltd
Priority to CN202010026244.2A priority Critical patent/CN113114208A/en
Publication of CN113114208A publication Critical patent/CN113114208A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/94Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated
    • H03K17/965Switches controlled by moving an element forming part of the switch
    • H03K17/975Switches controlled by moving an element forming part of the switch using a capacitive movable element

Landscapes

  • Electronic Switches (AREA)

Abstract

The invention discloses a capacitive touch device and an operation method thereof. The capacitive touch device is coupled between the first conductor and the microcontroller, and comprises a capacitance detection circuit and a touch value comparator. The capacitance detection circuit is used for detecting the capacitance value change of the first induction capacitor in a first touch key mode so as to generate a first touch value related to the first conductor. The touch value comparator determines whether to generate an interrupt signal to the microcontroller according to the first touch value so as to instruct the microcontroller to read the first touch value, thereby improving the power consumption of the microcontroller.

Description

Capacitive touch device and operation method thereof
Technical Field
The present invention relates to a capacitive touch device and an operating method thereof, and more particularly, to a capacitive touch device and an operating method thereof capable of being integrated into a single chip and improving power consumption of a microcontroller.
Background
Capacitive touch has become a necessary function of current products, and a capacitive touch device utilizes a capacitance detection circuit to detect a finger capacitance formed between a conductor (e.g., a copper sheet) as a key and a finger of a user. For example, referring to fig. 1, fig. 1 is a schematic diagram of a conventional capacitive touch device. The capacitive touch device 1 can be implemented by a single chip and includes a capacitance detection circuit 10. The capacitance detection circuit 10 is coupled to a microcontroller (not shown in fig. 1) and at least one conductor implemented as a key, and has a storage capacitor Cs externally attached thereto. For convenience of the following description, the capacitance detecting circuit 10 of fig. 1 is only an example of coupling one conductor 12, and the capacitance detecting circuit 10 includes a switch SW1, a switch SW2, a switch SW3 and a voltage detector 101.
In detail, the capacitance detection circuit 10 is coupled to the conductor 12 through a node a, and the switch SW1 is coupled between the node a and the storage capacitor Cs. The switch SW2 is coupled between the node a and the power voltage VDD, the switch SW3 is coupled between the ground voltage GND and the storage capacitor Cs, the switch SW3 and the switch SW1 are commonly coupled to the first terminal of the storage capacitor Cs through the node B, and the second terminal of the storage capacitor Cs is coupled to the ground voltage GND. In addition, the voltage detector 101 is implemented by a comparator CP, and a positive input terminal of the comparator CP is also coupled to the node B, and an negative input terminal thereof receives the reference voltage Vref.
As shown in fig. 1, the off-chip sensing capacitor has a parasitic capacitor Cd mainly from a Printed Circuit Board (PCB) in addition to the finger capacitor Cf, and the capacitance detection Circuit 10 operates by turning on a switch SW3, so as to provide a discharge path to discharge the voltage Vcs of the storage capacitor Cs to a ground voltage GND of zero. Next, the switch SW3 is turned off and the switch SW2 is turned on, so that a charging path is provided to charge the voltage Vdf of the parasitic capacitance Cd and the finger capacitance Cf to the power supply voltage VDD.
Next, the switch SW2 is turned off and the switch SW1 is turned on, so that a charge transfer path is provided to transfer the charges stored in the parasitic capacitance Cd and the finger capacitance Cf to the storage capacitance Cs, and the parasitic capacitance Cd and the finger capacitance Cf are repeatedly charged and the charges stored therein are transferred to the storage capacitance Cs, or the switch SW2 and the switch SW1 are cyclically turned on until the voltage Vcs of the storage capacitance Cs reaches the reference voltage Vref. In this process, if the parasitic capacitance Cd and the finger capacitance Cf are larger, the more charge is transferred to the storage capacitance Cs each time the switch SW1 is turned on, and the fewer the number of cycles of turning on the switches SW2 and SW1 are required.
However, because the finger capacitance Cf is zero when the finger 11 is not pressing the conductor 12, but is about 0.5pF when the conductor 12 is pressed, the microcontroller can determine whether the finger 11 is pressing the conductor 12 according to the number of cycles of turning on the switch SW2 and the switch SW 1. That is, if the capacitance value of the parasitic capacitance Cd is larger, the capacitance change amount of the finger capacitance Cf that can be detected by the capacitance detection circuit 10 is smaller. In addition, as the position of each touch key (i.e., each conductor) is different, the PCB routing manner and length are also different, and the routing is easily affected by the ground end, so that the capacitance of the parasitic capacitor Cd is not consistent on each touch key, and thus the PCB design on the capacitive touch device 1 becomes very difficult.
On the other hand, the storage capacitor Cs is usually larger than 3000pF, so that it cannot be integrated with the capacitance detection circuit 10 in a single chip, and besides the high resolution of the comparator CP for comparing the voltage Vcs with the reference voltage Vref is difficult to achieve, the storage capacitor Cs is also easily affected by the change of the environmental temperature and humidity due to external hanging, which causes erroneous determination of detection. The capacitive touch key is also susceptible to interference from external signals, such as radio frequency interference, radiation interference, power noise interference, and the like. In addition, if the microcontroller is in the state of judging the finger-pressed key for a longer time, the power consumption of the microcontroller is relatively more. Therefore, how to design a capacitive touch device that can be integrated into a single chip and achieve the purpose of improving the power consumption of the microcontroller becomes an important issue in the field.
Disclosure of Invention
In view of the above, an embodiment of the present invention provides a capacitive touch device, which is coupled between a first conductor and a microcontroller and includes a capacitance detection circuit and a touch value comparator. The capacitance detection circuit is coupled to the first conductor and the microcontroller, and is used for detecting a capacitance value change of the first sensing capacitor in a first touch key mode to generate a first touch value related to the first conductor. The touch value comparator is coupled with the capacitance detection circuit and the microcontroller, and determines whether to generate an interrupt signal to the microcontroller according to the first touch value so as to instruct the microcontroller to read the first touch value.
In addition, an embodiment of the invention further provides an operating method for the capacitive touch device. The capacitive touch device comprises a capacitance detection circuit and a touch value comparator, the capacitance detection circuit is coupled with the first conductor and the microcontroller, and the operation method comprises the following steps. The capacitance detection circuit detects a capacitance value change of the first sensing capacitor in a first touch key mode to generate a first touch value related to the first conductor. Then, according to the first touch value, the touch value comparator determines whether to generate an interrupt signal to the microcontroller so as to instruct the microcontroller to read the first touch value.
For a better understanding of the features and technical content of the present invention, reference should be made to the following detailed description of the invention and accompanying drawings, which are provided for purposes of illustration and description only and are not intended to limit the invention.
Drawings
Fig. 1 is a schematic diagram of a conventional capacitive touch device.
Fig. 2 is a schematic diagram of a capacitive touch device according to an embodiment of the invention.
Fig. 3 is a flowchart illustrating steps of a method according to an embodiment of the present invention.
Fig. 4 is a flowchart illustrating a method for operating the capacitance detection circuit in the capacitive touch device of fig. 2 in the first adaptive capacitance mode and the first touch key mode.
Detailed Description
The following is a description of embodiments of the present invention with reference to specific embodiments, and those skilled in the art will understand the advantages and effects of the present invention from the contents provided in the present specification. The invention is capable of other and different embodiments and its several details are capable of modification and various other changes, which can be made in various details within the specification and without departing from the spirit and scope of the invention. The drawings of the present invention are for illustrative purposes only and are not intended to be drawn to scale. The following embodiments will further explain the related art of the present invention in detail, but the contents are not provided to limit the scope of the present invention.
It will be understood that, although the terms "first," "second," "third," etc. may be used herein to describe various components or signals, these components or signals should not be limited by these terms. These terms are used primarily to distinguish one element from another element or from one signal to another signal. In addition, the term "or" as used herein should be taken to include any one or combination of more of the associated listed items as the case may be.
Referring to fig. 2, fig. 2 is a schematic view of a capacitive touch device according to an embodiment of the present invention. The capacitive touch device 2 can also be implemented by a single chip and is coupled between a microcontroller 4 and at least one conductor (not shown in fig. 2) implemented as a key. The capacitive touch device 2 includes a capacitance detection circuit 20 and a touch value comparator 22. The capacitance detection circuit 20 is coupled to the microcontroller 4 and the at least one conductor. For convenience of the following description, the capacitance detection circuit 20 of fig. 2 also adopts an example of coupling only one conductor, i.e., the first conductor, but unlike the capacitance detection circuit 10 of fig. 1, the capacitance detection circuit 20 includes a charge transfer architecture composed of five switches SW1a, SW1b, SW2a, SW2b, and SW3a in addition to the storage capacitor Cs2 and the variable capacitor Cr which are connected in parallel. In the present embodiment, the capacitance detection circuit 20 is coupled to the first conductor through a pin P1, and the switch SW1b is coupled between a node C and the storage capacitor Cs2, wherein the node C is located between the pin P1 and the switch SW1 b.
In addition, the switch SW2a is coupled between the node C and the first power voltage Va, the switch SW3a is coupled between the second power voltage Vb and the storage capacitor Cs2, the switch SW3a and the switch SW1b are commonly coupled to the first terminal of the storage capacitor Cs2 through the node D, and the second terminal of the storage capacitor Cs2 is coupled to the ground voltage GND. Finally, the switch SW2b is coupled between the node D and the variable capacitor Cr, the switch SW1a is coupled between the ground voltage GND and the variable capacitor Cr, the switch SW1a and the switch SW2b are commonly coupled to the first terminal of the variable capacitor Cr through the node E, and the second terminal of the variable capacitor Cr is also coupled to the ground voltage GND. In other words, the capacitance detecting circuit 20 may further include a path selecting circuit (not shown in fig. 2) for generating a plurality of control signals (not shown in fig. 2) to respectively control the on/off of the five switches SW1a, SW1b, SW2a, SW2b, and SW3 a.
It should be noted that, compared to the operation method of the capacitance detection circuit 10, the capacitance detection circuit 20 is used for adjusting the capacitance value of the variable capacitor Cr in the first adaptive capacitance mode and detecting the capacitance value change of the first sensing capacitor (Cd1+ Cf1) in the first touch key mode to generate a first touch value (not shown in fig. 2) related to the first conductor. Therefore, as shown in fig. 2, in the first adaptive capacitance mode, the capacitance detection circuit 20 may first turn on the switch SW2a and the switch SW3a simultaneously, so as to provide a first charging path to charge the voltage Vdf of the first sensing capacitor (Cd1+ Cf1) to the first power supply voltage Va, and provide a second charging path to charge the voltage Vcs2 of the storage capacitor Cs2 to the second power supply voltage Vb, and then turn off the switch SW2a and the switch SW3a simultaneously.
As mentioned above, since the first sensing capacitor outside the chip has a first parasitic capacitor Cd1 mainly coming from the PCB in addition to the first finger capacitor Cf1, the first sensing capacitor can be simply expressed as (Cd1+ Cf 1). In addition, the second power voltage Vb is smaller than the first power voltage Va, and the capacitance detection circuit 20 may further include an internal regulator 205 for generating the first power voltage Va and the second power voltage Vb, but the present invention is not limited to the specific implementation of the internal regulator 205, and therefore details thereof are not repeated herein. In summary, the present embodiment may assume that the first power voltage Va is 2 volts and the second power voltage Vb is 1 volt (i.e., Vb is Va/2).
Next, the capacitance detecting circuit 20 simultaneously turns on the switch SW1a and the switch SW1b, so as to provide a discharging path to discharge the voltage of the variable capacitor Cr to the ground voltage GND, and provide a first charge transfer path to transfer the charge stored in the first sensing capacitor (Cd1+ Cf1) to the storage capacitor Cs2, and then simultaneously turns off the switch SW1a and the switch SW1 b. Then, the capacitance detection circuit 20 simultaneously turns on the switch SW2a and the switch SW2b, so as to provide a first charging path to charge the voltage Vdf of the first sensing capacitor (Cd1+ Cf1) to the first power voltage Va, and provide a second charge transfer path to transfer the charge stored in the storage capacitor Cs2 to the variable capacitor Cr, and then simultaneously turns off the switch SW2a and the switch SW2b, and compares the voltage Vcs2 of the storage capacitor Cs2 after the charge is transferred to the variable capacitor Cr with the second power voltage Vb, and adjusts the capacitance value of the variable capacitor Cr according to the comparison result.
For example, if the voltage Vcs2 is greater than the second power voltage Vb, it means that the capacitance of the variable capacitor Cr is too small, so the capacitance detection circuit 20 can adjust the capacitance of the variable capacitor Cr by a variable capacitance controller 207; in contrast, if the voltage Vcs2 is smaller than the second power voltage Vb, it represents that the capacitance value of the variable capacitor Cr is too large, so the capacitance detection circuit 20 can adjust the capacitance value of the variable capacitor Cr by the variable capacitor controller 207. It should be noted that the capacitance detection circuit 20 may repeatedly provide the discharge path of the variable capacitor Cr plus the first charge transfer path and the first charge path plus the second charge transfer path, or cyclically turn on the switch SW1a plus SW1b and the switch SW2a plus SW2b until the voltage Vcs2 of the storage capacitor Cs2 after the charge transfer to the variable capacitor Cr is equal to the second power supply voltage Vb, or the voltage Vcs2 and the second power supply voltage Vb approach to be consistent, and the capacitance detection circuit 20 does not complete the first adaptive capacitance mode.
In other words, the purpose of the first adaptive capacitance mode is to adjust the capacitance value of the variable capacitor Cr to be equal to or close to the capacitance value of the current first sensing capacitor (Cd1+ Cf 1). In addition, it should be understood that the storage capacitor Cs2 is charged by the first sensing capacitor (Cd1+ Cf1) and the variable capacitor Cr is discharged by it. Therefore, this embodiment may only need to design the storage capacitor Cs2 to be about 200pF, so that it and the capacitance detection circuit 20 can be integrated into a single chip. Therefore, the capacitance detection circuit 20 does not need to be externally connected with a capacitor component, so that the detection error judgment caused by the influence of the change of the environmental temperature and humidity can be avoided. In contrast, a small capacitor with a built-in capacitance of about 200pF does not attenuate the variation of the touch value, but rather achieves a higher detection resolution.
In addition, in order to avoid the change of the first sensing capacitor (Cd1+ Cf1) due to the external influence, the capacitance detection circuit 20 must first complete the first adaptive capacitance mode before entering the first touch key mode. In other words, the capacitance detecting circuit 20 needs to perform the first adaptive capacitance mode within a fixed period of time, and after entering the first touch key mode, unlike the common voltage detecting method used by the capacitance detecting circuit 10 of fig. 1, which uses the comparator CP to detect whether the voltage Vcs reaches the reference voltage Vref, the capacitance detecting circuit 20 further includes a Voltage Controlled Oscillator (VCO)201 for simultaneously oscillating a first frequency generated by the voltage Vcs2 and a second frequency generated by the second power voltage Vb (neither shown in fig. 2). Therefore, when the external power supply is interfered by noise, the voltage Vcs2 and the second power supply voltage Vb are also simultaneously interfered by noise, and the frequencies of the first frequency and the second frequency that are mutually offset and subtracted are still close to the same, so that the capacitance detection circuit 20 can achieve the purpose of removing the noise interference from the external power supply, or the voltage-controlled oscillator 201 can synchronously cancel the noise interference from the external power supply, so as to achieve a higher detection resolution.
It should be noted that after the switch SW1b is turned on to transfer the charges stored in the first sensing capacitor (Cd1+ Cf1) to the storage capacitor Cs2, the voltage Vcs2 of the storage capacitor Cs2 can be represented as: vcs2 [ Vcs2'× Cs + Va (Cd1+ Cf1) ]/(Cs + Cd1+ Cf1), where Vcs2' is the voltage Vcs2 before the switch SW1b is turned on to transfer the charge stored by the first sensing capacitor (Cd1+ Cf1) to the storage capacitor Cs 2. In addition, after the switch SW2b is turned on to transfer the charge stored in the storage capacitor Cs2 to the variable capacitor Cr, the voltage Vcs2 of the storage capacitor Cs2 can be represented as follows: vcs2 is Vcs2 "Cs/(Cs + Cf1), where Vcs 2" is the voltage Vcs2 before the switch SW2b is turned on to transfer the charge stored by the storage capacitor Cs2 to the variable capacitor Cr. It can be seen that, if Cr is equal to (Cd1+ Cf1), the amount of charge transferred from the first sensing capacitor (Cd1+ Cf1) to the storage capacitor Cs2 and from the storage capacitor Cs2 to the variable capacitor Cr is equal each time, so that the voltage Vcs2 of the storage capacitor Cs2 will be equal to the second power supply voltage Vb when the first adaptive capacitance mode is completed, or the voltage Vcs2 of the storage capacitor Cs2 can be stably maintained near the second power supply voltage Vb, so that the voltage-controlled oscillator 201 can stably oscillate out the same or nearly the same first frequency and second frequency. Since the details of adjusting the variable capacitance Cr are the same as those described above, the details thereof are not repeated herein.
On the other hand, as shown in fig. 2, in the first touch key mode, the capacitance detecting circuit 20 may turn on the switch SW1a and the switch SW1b at the same time, provide a discharging path to discharge the voltage of the variable capacitor Cr to the ground voltage GND, provide a first charge transfer path to transfer the charge stored in the first sensing capacitor (Cd1+ Cf1) to the storage capacitor Cs2, and turn off the switch SW1a and the switch SW1b at the same time. Next, the capacitance detecting circuit 20 simultaneously turns on the switch SW2a and the switch SW2b, so as to provide a first charging path to charge the voltage of the first sensing capacitor (Cd1+ Cf1) to the first power voltage Va, and provide a second charge transfer path to transfer the charge stored in the storage capacitor Cs2 to the variable capacitor Cr, and then simultaneously turns off the switch SW2a and the switch SW2b, and detects the capacitance value change of the first sensing capacitor (Cd1+ Cf1) according to the voltage Vcs2 of the storage capacitor Cs2 after the charge is transferred to the variable capacitor Cr. Note that, as is clear from the foregoing, the capacitance detection circuit 20 does not use the voltage detection value, but in fact, the first frequency and the second frequency oscillated by the voltage controlled oscillator 201 reflect the voltage Vcs2 and the second power supply voltage Vb. Therefore, the capacitance detection circuit 20 at this time can be regarded as comparing the voltage Vcs2 of the storage capacitor Cs2 after the electric charge is transferred to the variable capacitance Cr with the second power supply voltage Vb, and detecting the change in the capacitance value of the first sensing capacitor (Cd1+ Cf1) according to the comparison result.
For example, if the voltage Vcs2 at this time is equal to the second power voltage Vb, it represents that the capacitance of the first sensing capacitor (Cd1+ Cf1) is unchanged. On the contrary, if the voltage Vcs2 at this time is greater than the second power voltage Vb, it means that the capacitance value of the first sensing capacitor (Cd1+ Cf1) becomes larger, so the capacitance detection circuit 20 can repeatedly provide the discharging path of the variable capacitor Cr plus the first charge transfer path and the first charging path plus the second charge transfer path, or alternatively, cyclically turn on the switches SW1a plus SW1b and SW2a plus SW2b, until after a fixed time, if the voltage difference between the voltage Vcs2 and the second power voltage Vb becomes larger and larger, or the voltage difference becomes stable, the microcontroller 4 at this time can determine that the finger is pressing the first conductor according to the variation of the capacitance value of the first sensing capacitor (Cd1+ Cf1), and if the voltage difference between the voltage Vcs2 and the second power voltage Vb becomes smaller and smaller, the microcontroller 4 can also determine that the finger is moving away from the first conductor.
In addition, as shown in fig. 2, the capacitance detection circuit 20 may further include a counter 203 and a touch value register 209. The counter 203 is coupled to the vco 201 for storing at least one value generated by the vco 201, and according to the at least one value, the counter 203 can generate a first touch value to reflect a change of a capacitance value of the first sensing capacitor (Cd1+ Cf 1). For example, when a finger presses the first conductor, even though the first parasitic capacitor Cd1 remains unchanged, the first finger capacitor Cf1 changes from 0pF to about 0.5pF, so that the charging increases, the voltage Vcs2 rises, and the first frequency oscillated by the vco 201 rises relatively. Therefore, in a fixed time, the value stored in the counter 203 will be increased and generate a corresponding first touch value, so that the microcontroller 4 can determine that the finger presses the first conductor according to the first touch value. On the other hand, when the finger leaves the conductor, the finger capacitance Cf returns to 0pF, so that the charging is reduced, the voltage Vcs2 is reduced, and the first frequency oscillated by the vco 201 is also relatively reduced. Therefore, in a fixed time, the value stored in the counter 203 will be decreased and generate a corresponding first touch value, so that the microcontroller 4 can determine that the finger does not press the first conductor according to the first touch value. In summary, the operation principle of the counter 203 generating the touch value and the microcontroller 4 determining the finger pressing state by the touch value on the counter 203 are well known to those skilled in the art, and therefore the details thereof will not be described herein.
It should be appreciated that the touch value register 209 is used to store the first touch value. As described above, the longer the time the microcontroller 4 determines the state of the finger-pressed key, the more power consumption thereof becomes. Therefore, as shown in fig. 2, the touch value comparator 22 IS coupled to the capacitance detection circuit 20 and the microcontroller 4, and determines whether to generate an interrupt signal IS to the microcontroller 4 according to the first touch value, so as to instruct the microcontroller 4 to read the first touch value from the touch value register 209. In the present embodiment, the touch value comparator 22 IS coupled to the touch value register 209 and IS configured to determine whether the first touch value exceeds or IS lower than at least one threshold, and when the first touch value exceeds or IS lower than the at least one threshold, the touch value comparator 22 determines to generate an interrupt signal IS to the microcontroller 4 to instruct the microcontroller 4 to read the first touch value. That IS, no matter the microcontroller 4 IS in the sleep or working state, the microcontroller 4 does not need to actively read the first touch value, but the microcontroller 4 does not need to read the first touch value until the touch value comparator 22 sends the interrupt signal IS. Therefore, when the microcontroller 4 is in the sleep state, the present embodiment can achieve the purpose of saving power, and when the microcontroller 4 is in the working state, the present embodiment can achieve the purpose of saving the efficiency of the microcontroller 4 because the microcontroller 4 does not need to read the first touch value constantly.
It is worth mentioning that, as mentioned above, the capacitance of the parasitic capacitor Cd is not consistent on each touch key (i.e. conductor). Therefore, for a product with a plurality of touch keys, the capacitance detection circuit 20 enables each touch key to have a capacitance corresponding to a variable capacitor Cr. For example, if the capacitance detection circuit 20 of fig. 2 is coupled to six conductors, i.e., the first to sixth conductors (not shown in fig. 2), the capacitance detection circuit 20 may be coupled to the second conductor through the pin P2, and adjust the capacitance of the variable capacitor Cr in the second adaptive capacitance mode, and so on, the capacitance detection circuit 20 may be coupled to the sixth conductor through the pin P6, and adjust the capacitance of the variable capacitor Cr in the sixth adaptive capacitance mode, so that the touch values of the touch keys on the counter 203 are consistent. In other words, the present embodiment can solve the problem of inconsistent touch values caused by different parasitic capacitances Cd when the plurality of touch keys are arranged on the PCB. It should also be understood that in the second adaptive capacitance mode, the storage capacitor Cs2 is charged by the second sense capacitor (Cd2+ Cf2) and the variable capacitor Cr is discharged by it, and so on, and in the sixth adaptive capacitance mode, the storage capacitor Cs2 is charged by the sixth sense capacitor (Cd6+ Cf6) and the variable capacitor Cr is discharged by it. Since the operation principle of the capacitance detection circuit 20 in each adaptive capacitance mode is similar to that described above, further description is omitted here.
In contrast, when entering the second touch key mode, the capacitance detection circuit 20 detects a capacitance value change of the second sensing capacitor (Cd2+ Cf2) to generate a second touch value related to the second conductor, and so on, when entering the sixth touch key mode, the capacitance detection circuit 20 detects a capacitance value change of the sixth sensing capacitor (Cd6+ Cf6) to generate a sixth touch value related to the sixth conductor. Since the operation principle of the capacitance detection circuit 20 in each touch key mode is also the same as that described above, further description is omitted here. It can be seen that the capacitance detection circuit 20 may further include a touch guide 211 coupled to the touch value comparator 22 and the variable capacitance controller 207, and when the touch value comparator 22 determines whether the interrupt signal IS generated, the touch guide 211 guides the capacitance detection circuit 20 to perform its corresponding touch key mode for the next conductor, and the touch guide 211 also instructs the variable capacitance controller 207 to adjust the capacitance value of the variable capacitance Cr to the capacitance value of the variable capacitance Cr adjusted in the adaptive capacitance mode of the next conductor. In practice, the touch guide 211 may couple the capacitance detection circuit 20 to one of the conductors through a multiplexer to perform the corresponding adaptive capacitance mode or touch key mode, but the invention is not limited thereto.
That is, the touch guide 211 records the capacitance value of the variable capacitor Cr adjusted by the variable capacitor controller 207 in the adaptive capacitance mode of each conductor, and in the touch key mode of each conductor, the touch guide 211 adjusts the capacitance value of the variable capacitor Cr through the variable capacitor controller 207 at that time, so that the touch values of each conductor on the counter 203 can be consistent. It should be noted that, in this embodiment, the microcontroller 4 may set that the touch guide 211 only needs to guide the capacitance detection circuit 20 to some conductors to perform the corresponding touch key mode, or the microcontroller 4 may set that the touch guide 211 guides the capacitance detection circuit 20 to each conductor one by one (i.e., automatically cycle) to perform the corresponding touch key mode, but the present invention is not limited thereto, and those skilled in the art should be able to design the touch guide according to actual needs or applications.
It should be noted that in one design, the counter 203 may average the value generated by the vco 201 each time with the values generated a few times before, for example, 15 times before, and let the microcontroller 4 only read the average value from the touch value register 209. Therefore, the present embodiment has an average value output whenever a new value is generated, and the present embodiment may refer to this design as an accumulation mode; alternatively, in another design, the counter 203 may sequentially place the generated touch values, i.e. the first to sixth touch values, into the touch value register 209 and enable the microcontroller 4 to read one by one, which is referred to as the true mode in this embodiment, but the invention is not limited thereto. As mentioned above, the operation principle of the counter 203 generating the touch value and the microcontroller 4 determining the finger pressing state by the touch value on the counter 203 are well known to those skilled in the art, and therefore the details thereof will not be described herein.
Finally, to further illustrate the operation process of the capacitive touch device 2, the present invention further provides an embodiment of the operation method thereof. Referring to fig. 3, fig. 3 is a flowchart illustrating steps of an operating method according to an embodiment of the invention. It should be noted that the operation method of fig. 3 can be used in the capacitive touch device 2 of fig. 2, so please refer to fig. 2 for understanding, but the invention does not limit the operation method of fig. 3 to be only used in the capacitive touch device 2 of fig. 2. Similarly, for the following description, fig. 3 also only illustrates an operation method of the capacitance detection circuit 20 for coupling to a conductor, i.e. the first conductor, but a person skilled in the art should be able to modify and expand the operation method provided by the present specification for the capacitance detection circuit 20 for coupling to a plurality of conductors, e.g. the first to sixth conductors, and therefore, the details are not repeated herein.
As shown in fig. 3, in step S301, the capacitance detecting circuit 20 adjusts the capacitance of the variable capacitor Cr in the first adaptive capacitance mode so that the capacitance of the variable capacitor Cr is equal to the capacitance of the current first sensing capacitor (Cd1+ Cf 1). Next, in step S302, the capacitance detecting circuit 20 detects a capacitance value of the first sensing capacitor (Cd1+ Cf1) in the first touch key mode to generate a first touch value related to the first conductor, and in step S303, stores the first touch value in the touch value register 209. Then, in step S304, the touch value comparator 22 determines whether to generate the interrupt signal IS to the microcontroller 4 according to the first touch value. If yes, go to step S305, issue an interrupt signal IS to instruct the microcontroller 4 to read the first touch value from the touch value register 209; if not, the process returns to step S302. In step S304, the touch value comparator 22 determines whether to generate the interrupt signal IS to the microcontroller 4 by determining whether the first touch value exceeds or falls below at least one threshold value. For example, when the first touch value exceeds or falls below at least one threshold value, the touch value comparator 22 determines to generate the interrupt signal IS to the microcontroller 4.
In addition, referring to fig. 4, fig. 4 is a flowchart illustrating a method of operating the capacitance detection circuit 20 in the first adaptive capacitance mode and the first touch key mode. Similarly, for the following description, fig. 4 only illustrates the operation method of the capacitance detection circuit 20 for coupling to a conductor, i.e. the first adaptive capacitance mode and the first touch key mode of the first conductor, but for the operation method of the capacitance detection circuit 20 for coupling to a plurality of conductors, e.g. the first to sixth adaptive capacitance modes and the first to sixth touch key modes of the first to sixth conductors, those skilled in the art should be able to modify and expand the content provided in the present specification, and therefore, the description thereof is not repeated herein. As shown in fig. 4, in step S401 in the first adaptive capacitance mode, a first charging path is provided to charge the voltage Vdf of the first sensing capacitor (Cd1+ Cf1) to the first power supply voltage Va, and a second charging path is provided to charge the voltage Vcs2 of the storage capacitor Cs2 to the second power supply voltage Vb. Next, in step S402 in the first adaptive capacitance mode, a discharge path is provided to discharge the voltage of the variable capacitance Cr to the ground voltage GND, and a first charge transfer path is provided to transfer the charge stored in the first sensing capacitance (Cd1+ Cf1) to the storage capacitance Cs 2.
Next, in step S403 in the first adaptive capacitance mode, a first charge path is provided to charge the voltage Vdf of the first sensing capacitor (Cd1+ Cf1) to the first power supply voltage Va, and a second charge transfer path is provided to transfer the charge stored in the storage capacitor Cs2 to the variable capacitor Cr. Then, in step S404 in the first adaptive capacitance mode, it is checked whether or not the voltage Vcs2 of the storage capacitor Cs2 after the charge transfer to the variable capacitor Cr is equal to the second power supply voltage Vb. If not, step S405 is executed to adjust the capacitance value of the variable capacitance Cr according to the comparison result between the voltage Vcs2 and the second power supply voltage Vb, and after step S405 is completed, the process returns to step S402 to step S404. In other words, steps S402 to S405 are repeatedly executed until the voltage Vcs2 of the storage capacitor Cs2 after the charge transfer to the variable capacitor Cr is equal to the second power supply voltage Vb, and the capacitance detection circuit 20 does not complete the adaptive capacitance mode.
In addition, in step S406 of the first touch key mode, a discharge path is provided to discharge the voltage of the variable capacitor Cr to the ground voltage GND, and a first charge transfer path is provided to transfer the charge stored in the first sensing capacitor (Cd1+ Cf1) to the storage capacitor Cs 2. Next, in step S407 of the first touch key mode, a first charging path is provided to charge the voltage of the first sensing capacitor (Cd1+ Cf1) to the first power voltage Va, and a second charge transfer path is provided to transfer the charge stored in the storage capacitor Cs2 to the variable capacitor Cr. Then, in step S408 in the first touch key mode, a change in the capacitance value of the first sensing capacitor (Cd1+ Cf1) is detected according to the voltage Vcs2 of the storage capacitor Cs2 after the charge is transferred to the variable capacitor Cr, and after step S408 is completed, the process returns to the step S406 to step S408. In other words, steps S406 to S408 are repeatedly executed, so that the capacitance detecting circuit 20 can generate the first touch value related to the first conductor to reflect the capacitance value change of the first sensing capacitance (Cd1+ Cf 1).
In summary, embodiments of the present invention provide a capacitive touch device and an operating method thereof, in which a storage capacitor is integrated into a single chip to avoid erroneous determination of detection caused by changes in ambient temperature and humidity, and each touch key can have a capacitance corresponding to a variable capacitor, or by adjusting the capacitance of the variable capacitor in each adaptive capacitance mode, the touch values of the touch keys on a counter can be consistent, thereby solving the problem of inconsistent touch values caused by different parasitic capacitances when the touch keys are disposed on a PCB. In addition, no matter the microcontroller is in a dormant state or a working state, the microcontroller does not need to actively read the touch value on the counter, but the microcontroller does not need to read the touch value on the counter until the touch value comparator sends out an interrupt signal. Therefore, when the microcontroller is in a dormant state, the invention can achieve the purpose of saving power, and when the microcontroller is in a working state, the invention can achieve the purpose of saving the efficiency of the microcontroller because the microcontroller does not need to read the touch value constantly.
The disclosure is only a preferred embodiment of the invention and should not be taken as limiting the scope of the invention, which is defined by the appended claims.

Claims (14)

1. A capacitive touch device coupled between a first conductor and a microcontroller, the capacitive touch device comprising:
a capacitance detection circuit, coupled to the first conductor and the microcontroller, for detecting a capacitance value change of a first sensing capacitance in a first touch key mode to generate a first touch value related to the first conductor; and
and the touch control value comparator is coupled with the capacitance detection circuit and the microcontroller and determines whether to generate an interrupt signal to the microcontroller according to the first touch control value so as to instruct the microcontroller to read the first touch control value.
2. The capacitive touch device as claimed in claim 1, wherein the capacitance detection circuit comprises a storage capacitor and a variable capacitor, and the capacitance detection circuit is further configured to adjust a capacitance of the variable capacitor in a first adaptive capacitance mode, wherein in the first adaptive capacitance mode, the capacitance detection circuit is configured to:
step S1, providing a first charging path to charge the voltage of the first sensing capacitor to a first power voltage, and providing a second charging path to charge the voltage of the storage capacitor to a second power voltage, wherein the second power voltage is smaller than the first power voltage, and the first sensing capacitor includes a first parasitic capacitor and a first finger capacitor;
step S2, providing a discharge path to discharge the voltage of the variable capacitor to a ground voltage, and providing a first charge transfer path to transfer the charge stored in the first sensing capacitor to the storage capacitor;
step S3, providing the first charging path to charge the voltage of the first sensing capacitor to the first power voltage, providing a second charge transfer path to transfer the charge stored in the storage capacitor to the variable capacitor, comparing the voltage of the storage capacitor after the charge transfer to the variable capacitor with the second power voltage, and adjusting the capacitance of the variable capacitor according to the comparison result; and
step S4, repeating the steps S2 and S3 until the voltage of the storage capacitor after the charge is transferred to the variable capacitor is equal to the second power voltage, the capacitor detection circuit does not complete the first adaptive capacitor mode.
3. The capacitive touch device of claim 2, wherein in the first touch button mode, the capacitance detection circuit is configured to:
step S5, providing the discharge path to discharge the voltage of the variable capacitor to the ground voltage, and providing the first charge transfer path to transfer the charge stored in the first sensing capacitor to the storage capacitor;
step S6, providing the first charging path to charge the voltage of the first sensing capacitor to the first power voltage, providing the second charge transfer path to transfer the charge stored in the storage capacitor to the variable capacitor, and then detecting the capacitance variation of the first sensing capacitor according to the voltage of the storage capacitor after the charge is transferred to the variable capacitor; and
step S7, repeating the step S5 and the step S6, so that the capacitance detection circuit can generate the first touch value to reflect the change of the capacitance value of the first sensing capacitor.
4. The capacitive touch device of claim 3, wherein the storage capacitor and the capacitance detection circuit are integrated in a single chip, and the capacitance detection circuit further comprises:
an internal regulator for generating the first power voltage and the second power voltage;
a variable capacitor controller for adjusting the capacitance value of the variable capacitor according to the comparison result of the step S3;
a voltage controlled oscillator for simultaneously oscillating a first frequency generated by the voltage control of the storage capacitor and a second frequency generated by the voltage control of the second power supply;
a counter, coupled to the voltage controlled oscillator, for storing at least one value generated by the voltage controlled oscillator and generating the first touch value according to the at least one value to reflect a change in the capacitance of the first sensing capacitor; and
a touch value register for storing the first touch value.
5. The capacitive touch device of claim 4, wherein the capacitance detection circuit is further coupled to a second conductor and configured to adjust the capacitance of the variable capacitor in a second adaptive capacitance mode and detect a change in capacitance of a second sensing capacitor in a second touch key mode to generate a second touch value associated with the second conductor.
6. The capacitive touch device of claim 5, wherein the capacitance detection circuit further comprises:
a touch director, coupled to the touch value comparator and the variable capacitance controller, for directing the capacitance detection circuit to perform the second touch key mode for the second conductor when the touch value comparator determines whether the interrupt signal is generated, and for directing the variable capacitance controller to adjust the capacitance value of the variable capacitance to the capacitance value of the variable capacitance adjusted in the second adaptive capacitance mode of the second conductor.
7. The capacitive touch device as claimed in claim 2, wherein in the comparison result of step S3, the capacitance detection circuit increases the capacitance of the variable capacitor if the voltage of the storage capacitor is greater than the second power voltage, and decreases the capacitance of the variable capacitor if the voltage of the storage capacitor is less than the second power voltage.
8. An operation method for a capacitive touch device, the capacitive touch device comprising a capacitance detection circuit and a touch value comparator, the capacitance detection circuit being coupled to a first conductor and a microcontroller, the operation method comprising:
the capacitance detection circuit detects the capacitance value change of a first induction capacitor in a first touch key mode to generate a first touch value related to the first conductor; and
according to the first touch value, the touch value comparator determines whether to generate an interrupt signal to the microcontroller so as to instruct the microcontroller to read the first touch value.
9. The method of claim 8, wherein the capacitance detection circuit comprises a storage capacitor and a variable capacitor, and the capacitance detection circuit is further configured to adjust a capacitance of the variable capacitor in a first adaptive capacitance mode, wherein in the first adaptive capacitance mode, the capacitance detection circuit is configured to:
step S1, providing a first charging path to charge the voltage of the first sensing capacitor to a first power voltage, and providing a second charging path to charge the voltage of the storage capacitor to a second power voltage, wherein the second power voltage is smaller than the first power voltage, and the first sensing capacitor includes a first parasitic capacitor and a first finger capacitor;
step S2, providing a discharge path to discharge the voltage of the variable capacitor to a ground voltage, and providing a first charge transfer path to transfer the charge stored in the first sensing capacitor to the storage capacitor;
step S3, providing the first charging path to charge the voltage of the first sensing capacitor to the first power voltage, providing a second charge transfer path to transfer the charge stored in the storage capacitor to the variable capacitor, comparing the voltage of the storage capacitor after the charge transfer to the variable capacitor with the second power voltage, and adjusting the capacitance of the variable capacitor according to the comparison result; and
step S4, repeating the steps S2 and S3 until the voltage of the storage capacitor after the charge is transferred to the variable capacitor is equal to the second power voltage, the capacitor detection circuit does not complete the first adaptive capacitor mode.
10. The operating method of claim 9, wherein in the first touch key mode, the capacitance detection circuit is configured to:
step S5, providing the discharge path to discharge the voltage of the variable capacitor to the ground voltage, and providing the first charge transfer path to transfer the charge stored in the first sensing capacitor to the storage capacitor;
step S6, providing the first charging path to charge the voltage of the first sensing capacitor to the first power voltage, providing the second charge transfer path to transfer the charge stored in the storage capacitor to the variable capacitor, and then detecting the capacitance variation of the first sensing capacitor according to the voltage of the storage capacitor after the charge is transferred to the variable capacitor; and
step S7, repeating the step S5 and the step S6, so that the capacitance detection circuit can generate the first touch value to reflect the change of the capacitance value of the first sensing capacitor.
11. The method of claim 10, wherein the storage capacitor and the capacitance detection circuit are integrated in a single chip, and the capacitance detection circuit further comprises:
an internal regulator for generating the first power voltage and the second power voltage;
a variable capacitor controller for adjusting the capacitance value of the variable capacitor according to the comparison result of the step S3;
a voltage controlled oscillator for simultaneously oscillating a first frequency generated by the voltage control of the storage capacitor and a second frequency generated by the voltage control of the second power supply;
a counter, coupled to the voltage controlled oscillator, for storing at least one value generated by the voltage controlled oscillator and generating the first touch value according to the at least one value to reflect a change in the capacitance of the first sensing capacitor; and
a touch value register for storing the first touch value.
12. The operating method of claim 11, wherein the capacitance detection circuit is further coupled to a second conductor and configured to adjust the capacitance of the variable capacitor in a second adaptive capacitance mode and detect a change in capacitance of a second sensing capacitor in a second touch key mode to generate a second touch value associated with the second conductor.
13. The method of operation of claim 12 wherein the capacitance detection circuit further comprises:
a touch director, coupled to the touch value comparator and the variable capacitance controller, for directing the capacitance detection circuit to perform the second touch key mode for the second conductor when the touch value comparator determines whether the interrupt signal is generated, and for directing the variable capacitance controller to adjust the capacitance value of the variable capacitance to the capacitance value of the variable capacitance adjusted in the second adaptive capacitance mode of the second conductor.
14. The method of claim 9, wherein in the comparison result of step S3, the capacitance detection circuit increases the capacitance of the variable capacitor if the voltage of the storage capacitor is greater than the second power voltage, and decreases the capacitance of the variable capacitor if the voltage of the storage capacitor is less than the second power voltage.
CN202010026244.2A 2020-01-10 2020-01-10 Capacitive touch device and operation method thereof Pending CN113114208A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010026244.2A CN113114208A (en) 2020-01-10 2020-01-10 Capacitive touch device and operation method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010026244.2A CN113114208A (en) 2020-01-10 2020-01-10 Capacitive touch device and operation method thereof

Publications (1)

Publication Number Publication Date
CN113114208A true CN113114208A (en) 2021-07-13

Family

ID=76708597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010026244.2A Pending CN113114208A (en) 2020-01-10 2020-01-10 Capacitive touch device and operation method thereof

Country Status (1)

Country Link
CN (1) CN113114208A (en)

Similar Documents

Publication Publication Date Title
US8125232B2 (en) Capacitive sensing device and method
US8466899B2 (en) Touch panel
JP4497637B2 (en) Capacitance type detection device
KR100366503B1 (en) Glass touch detecting circuit
KR101488008B1 (en) Control circuit and control method for touch panel
CN211860069U (en) Capacitance sensing device
US9178512B2 (en) Capacitive coupling based sensor
CN113258916B (en) Capacitive touch detection circuit, chip and electronic equipment
US9279841B2 (en) Integratable capacitive touch sensing circuit through charge sharing
CN110084082B (en) Electronic equipment, fingerprint identification device and finger touch detection circuit thereof
US7443255B2 (en) Oscillator circuit and method for adjusting oscillation frequency of same
CN108886361B (en) Key substrate eliminating method, capacitive key detection circuit and intelligent terminal
TW202127215A (en) Capacitance touch control device and operation method the same
CN113114208A (en) Capacitive touch device and operation method thereof
US8878556B2 (en) Sensing device and method
CN113109628B (en) Capacitance detection circuit and operation method thereof
KR102248984B1 (en) High sensitivity touch sensor
CN111106820B (en) Touch key control system and control method thereof
TWI712937B (en) Capacitance detection circuit and operation method the same
CN116203411A (en) Touch key capacitance detection method and system applied to MCU
KR101085403B1 (en) Method and apparatus for sensing proximity touch
CN218041369U (en) Capacitive touch chip and electronic equipment
US11255889B2 (en) Direct capacitance measurement based capacitive disturbance detection system
CN109656399A (en) Drive integrated circult, the driving method of touch panel and touching control system
JP2011159460A (en) Switch for vehicle interior light

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 310000 China (Zhejiang) pilot Free Trade Zone, Hangzhou, Zhejiang Province room 3041, floor 3, building a, No. 482 Qianmo Road, Xixing street, Binjiang District, Hangzhou (self declaration)

Applicant after: Haisuxin (Hangzhou) Technology Co.,Ltd.

Applicant after: Shenzhen hisu core technology Co.,Ltd.

Address before: Room 901-910, 8 Hongyi Road, Xinwu District, Wuxi City, Jiangsu Province

Applicant before: Haishui Core (Wuxi) Technology Co.,Ltd.

Applicant before: TENX XINGYE TECHNOLOGY (SHENZHEN) CO.,LTD.

CB02 Change of applicant information