CN114679166A - Capacitor key detection method, chip and electronic equipment - Google Patents

Capacitor key detection method, chip and electronic equipment Download PDF

Info

Publication number
CN114679166A
CN114679166A CN202011561557.4A CN202011561557A CN114679166A CN 114679166 A CN114679166 A CN 114679166A CN 202011561557 A CN202011561557 A CN 202011561557A CN 114679166 A CN114679166 A CN 114679166A
Authority
CN
China
Prior art keywords
value
detection
key
detection module
capacitive
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
CN202011561557.4A
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.)
BYD Semiconductor Co Ltd
Original Assignee
BYD Semiconductor 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 BYD Semiconductor Co Ltd filed Critical BYD Semiconductor Co Ltd
Priority to CN202011561557.4A priority Critical patent/CN114679166A/en
Publication of CN114679166A publication Critical patent/CN114679166A/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 capacitor key detection method, a chip and electronic equipment, which are used for reducing misjudgment of a capacitor key. Wherein, the method part comprises: acquiring a first detection value and a second detection value, wherein the first detection value is a value detected by a first detection module, the second detection value is a value detected by a second detection module, the detection end of the first detection module is connected to an electrode of a capacitor key, and the detection end of the second detection module is in a suspended state; and judging whether the capacitive key is touched or not according to the first detection value and the second detection value.

Description

Capacitor key detection method, chip and electronic equipment
Technical Field
The invention relates to the technical field of electronics, in particular to a capacitor key detection method, a chip and electronic equipment.
Background
Many electronic equipment such as general household electrical appliances are all very little removal, and the surrounding environment is also very few sudden change, so the design of traditional electric capacity button is based on the environment can not sudden change, and the button can automatic adaptation environment's slow change, and electronic equipment is inside all to be the horizontal voltage power supply moreover, directly provides a stable voltage for touching button chip.
The inventor finds that some electronic devices often face the situation of sudden change of environment, for example, when the electronic devices go from indoor to outdoor or go back to indoor in winter, the temperature changes violently, and the change of the temperature affects the detection data of the capacitive keys, so that the data is inaccurate, and thus the erroneous judgment of the capacitive keys is easily caused.
Disclosure of Invention
The embodiment of the invention provides a capacitor key detection method, a chip and electronic equipment, which aim to solve the problem that misjudgment of a capacitor key is easily caused.
In a first aspect, a method for detecting a capacitive button is provided, where the method includes:
acquiring a first detection value and a second detection value, wherein the first detection value is a value detected by a first detection module, the second detection value is a value detected by a second detection module, the detection end of the first detection module is connected to an electrode of a capacitor key, and the detection end of the second detection module is in a suspended state;
and judging whether the capacitive key is touched according to the first detection value and the second detection value.
Further, before the first detection value and the second detection value are acquired, the method further comprises the following steps:
and configuring the first detection module and the second detection module to simultaneously perform data detection so as to simultaneously acquire a first detection value and a second detection value.
Further, the determining whether the capacitive button is touched according to the first detection value and the second detection value specifically includes the following steps:
calculating a difference value between the first detection value and a first baseline value to obtain a first difference value, wherein the first baseline value is a value detected by the first detection module when the capacitance key is not touched;
calculating a difference value between the second detection value and a second baseline value to obtain a second difference value, wherein the second baseline value is a value detected by the second detection module when the capacitance key is not touched;
correcting the first difference value according to the second difference value to obtain a corrected difference value;
and judging whether the capacitive key is touched according to the correction difference.
Further, the correcting the first difference value according to the second difference value to obtain a corrected difference value specifically includes the following steps:
correcting the first difference value by the following formula to obtain a corrected difference value:
Xa′=Xa*(1-Xb/Db);
where Xa' denotes a correction difference value, Xa denotes a first difference value, Xb denotes a second difference value, and Db denotes a second detection value.
Further, the step of determining whether the capacitive button is touched according to the correction difference specifically includes the following steps:
judging whether the correction difference value is larger than a preset threshold value or not;
when the correction difference is judged to be larger than the preset threshold value, judging that the capacitor key is touched;
And when the correction difference is judged to be less than or equal to the preset threshold value, judging that the capacitor key is not touched.
In a second aspect, a capacitive key detection chip is provided, where the detection chip includes a chip core, a first detection module and a second detection module;
the first detection module is used for detecting the capacitor key to obtain a first detection value;
the second detection module is used for detecting the environment of the capacitor key to obtain a second detection value;
and the chip kernel is used for acquiring the first detection value and the second detection module and judging whether the capacitive key is touched according to the first detection value and the second detection value.
Further, the chip core is configured to: and configuring the first detection module and the second detection module to simultaneously perform data detection so as to simultaneously acquire a first detection value and a second detection value.
Further, the chip core is configured to:
calculating a difference value between the first detection value and a first baseline value to obtain a first difference value, wherein the first baseline value is a value detected by the first detection module when the capacitance key is not touched;
calculating a difference value between the second detection value and a second baseline value to obtain a second difference value, wherein the second baseline value is a value detected by the second detection module when the capacitance key is not touched;
Correcting the first difference value according to the second difference value to obtain a corrected difference value;
and judging whether the capacitor key is touched or not according to the correction difference value.
Further, the chip core is configured to:
judging whether the correction difference value is larger than a preset threshold value or not;
when the correction difference is judged to be larger than the preset threshold value, judging that the capacitor key is touched;
and when the correction difference is judged to be less than or equal to the preset threshold value, judging that the capacitor key is not touched.
In a third aspect, an electronic device is provided, wherein the capacitive button and the capacitive button detection chip mentioned in the third aspect are provided.
In a fourth aspect, a computer-readable storage medium is provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the above capacitive key detection method.
In the capacitor key detection method, the chip and the electronic device, when the capacitor key is detected, the two channels are scanned simultaneously by starting the two detection modules, one is a detection channel of a normal touch key, and the other is a spare detection channel which is not connected with any electrode, and when the capacitor key is processed, the corresponding detection value of the capacitor key can be corrected by using the detection value of the spare channel, so that the influence of environmental change on the capacitor key is reduced, the judgment of the capacitor key is more accurate, and the misjudgment of the capacitor key is effectively reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a schematic diagram of a capacitive button detecting chip according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an electronic device according to an embodiment of the invention;
FIG. 3 is a schematic flow chart of a method for detecting a capacitive button according to an embodiment of the present invention;
fig. 4 is another schematic flow chart of a method for detecting a capacitive button according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a capacitor key detection method, a capacitor key detection chip and electronic equipment. In order to describe the present invention one by one, the following two large embodiments are described respectively, wherein the first embodiment describes the capacitive key detection chip and the electronic device according to the embodiments of the present invention; the second embodiment is a description of the capacitive key detection method according to the second embodiment of the present invention.
Example one
As shown in fig. 1, an embodiment of the present invention provides a capacitive key detection chip, where the capacitive key detection chip is applied to an electronic device, and the capacitive key detection chip includes a chip core, a first detection module, and a second detection module, where functions of the modules are as follows:
the first detection module is used for detecting a first detection value of the capacitor key;
the second detection module is used for detecting the environment of the capacitor key to obtain a second detection value;
and the chip kernel is used for acquiring the first detection value and the second detection module and judging whether the capacitive key is touched according to the first detection value and the second detection value.
When the capacitor key detection chip is used, the detection end of the first detection module is connected to the electrode of the capacitor key, and the detection end of the second detection module is exposed out of the capacitor key detection chip and is in a suspended state. In an application scenario, the electronic device is an earphone, and the capacitive key refers to a capacitive key in the earphone, it should be noted that in some other application scenarios, the electronic device may also be other electronic product devices that may face environmental changes, such as a wearable electronic device, and the embodiment of the present invention is not limited in particular.
In the embodiment of the invention, the capacitor key detection chip is provided with the first detection module and the second detection module which are completely consistent, and the difference is that the detection end of the first detection module is connected with the electrode of the external capacitor key, so that the first detection module can be used for detecting the data of the capacitor key. When a human body touches the electrode of the capacitive button, the value detected by the first detection module changes, and whether the capacitive button is likely to be touched or not can be judged, wherein the first detection value detected by the first detection module is a value related to the capacitance value of the capacitive button, or the detected value is the capacitance value, and the invention is not limited in this invention. The condition of the first detection value detected by the first detection module can reflect the capacitance change condition of the capacitance key.
The detection end of the second detection module is in a suspended state, that is, the detection end of the second detection module is not connected with any electrode, and is also used for detecting the environment of the capacitive button, and a value can be obtained. However, since the second detection module is not connected to the electrodes of the capacitive buttons, when a human body approaches, the second detection value detected by the second detection module does not change, but when the environment changes, the value detected by the second detection module changes, and the change in the environment has the same effect on the first detection module, so that in order to eliminate the effect caused by the change in the environment, the second detection value detected by the second detection module is referred to when the first detection value detected by the first detection module is determined.
It can be seen that, in the embodiment of the present invention, two detection channels are created through a first detection module and a second detection module, where the second detection module detects a detection value of a vacant channel, and if a second detection value detected by the second detection module changes, it indicates that an environment of the capacitive key detection chip has changed and causes a change in the detection value, where the environment that causes the change in the environment includes, but is not limited to, an environmental factor that affects a capacitive key such as temperature, voltage, humidity, and the like.
The chip core, which may be a microprocessor core (MCU core), is configured to obtain the first detection value and the second detection value, and determine whether the capacitive key is touched according to the first detection value and the second detection value.
Therefore, when the capacitive button is detected, two channels, one is a normal detection channel for touching the button and the other is an empty detection channel without any electrode, are scanned simultaneously by starting the two detection modules, and during processing, the detection value of the empty channel can be used for correcting the corresponding detection value of the capacitive button, so that the influence of environmental change on the capacitive button is reduced, the judgment of the capacitive button is more accurate, and the misjudgment of the capacitive button is effectively reduced.
In an embodiment, the chip core is configured to configure the first detection module and the second detection module to perform data detection simultaneously, so as to obtain the first detection value and the second detection value simultaneously. In the embodiment, when the chip core works, the first detection module and the second detection module can be started to work at the same time, the synchronism of detected detection values is kept, and the effect of environment change on the capacitance key is better corrected.
In an embodiment, the chip core is configured to determine whether the capacitive button is touched according to the first detection value and the second detection value, specifically: calculating a difference between the first detection value Da and the first baseline value La to obtain a first difference Xa, that is: Xa-Da-La. When the capacitor key is not touched, the first baseline value La is a value detected by the first detection module, and a difference between the second detection value Db and the second baseline value Lb is calculated to obtain a second difference Xb, that is: Xb-Lb. The second baseline value Lb is a value detected by the second detection module when the capacitor key is not touched, and the first difference value Xa is corrected according to the second difference value Xb to obtain a corrected difference value Xa'; and finally, judging whether the capacitance key is touched according to the correction difference Xa'.
In an embodiment, the chip core is configured to correct the first difference Xa to obtain a corrected difference Xa' according to the following formula: xa ═ Xb (1-Xb/Db).
It can be understood that, since the ratios of the influence of the environmental change on the detection values detected by the first detection module and the second detection module are consistent, the conversion can be performed according to the characteristics, and since the ratios are consistent, there are: xa' ═ Xa ([ Lb ]/Db) ═ Xa ([ Db ]/Xb ]) can be obtained by conversion (1-Xb/Db). It should be noted that, in some embodiments, there may be other ways to obtain the above correction value, and the way to correct the first difference value to obtain the corrected difference value is not limited herein.
In one embodiment, the chip core is configured to: judging whether the correction difference value Xa' is larger than a preset threshold value; when the correction difference value Xa' is judged to be larger than the preset threshold value, the capacitor key is judged to be touched; and when the correction difference Xa' is judged to be less than or equal to the preset threshold, judging that the capacitive key is not touched. The preset threshold is an empirical value, and is obtained by debugging the actual capacitor key or the actual electronic device. It can be understood that the correction difference is a difference representing an actual capacitance change of the capacitance key, and therefore, whether the capacitance key is touched or not can be determined by the difference and a calibrated preset threshold, and it is worth noting that different capacitance key products or different capacitance keys of the same product are related to the electrodes used, and therefore, for different capacitance keys, the actual capacitance change value caused by whether the capacitance key is touched is different, and for the different capacitance keys, the corresponding preset threshold needs to be obtained through test calibration, so that the change of the threshold after the capacitance key reaches the touched value is obtained.
It can be seen that, in this embodiment, the second detection value detected by the second detection module is utilized, the first detection value detected by the first detection module connected to the electrode is corrected, so that the influence of environmental factors such as temperature and voltage on the capacitor key is eliminated, the phenomenon of false touch caused by sudden change of temperature and humidity or voltage change when a client uses the capacitor key is avoided, meanwhile, the second detection module does not need to walk to any electrode but is in a suspended state, so that the difficulty of circuit design is not increased, the complexity of the space structure of the applied electronic equipment is not increased, the implementation is easy, and the extra cost is not increased, so that the capacitor key detection chip is favorably applied to the electronic equipment with narrow space such as an earphone.
As shown in fig. 2, based on the capacitive key detection chip provided in the foregoing embodiment, an embodiment of the present invention further provides an electronic device, which includes the capacitive key detection chip and the capacitive key provided in the foregoing embodiment. The electronic device includes, but is not limited to, an earphone, a wearable electronic device, and the like, which are not illustrated herein. Here, it is worth emphasizing again that the electronic devices such as the headphone and the wearable electronic device generally have the feature of being small and exquisite, and the capacitive button detection chip provided by the embodiment of the present invention has a simple structure and simple connection, and meanwhile, since the second detection module does not need to be wired to any electrode but is in a suspension state, the difficulty of circuit design is not increased, and the complexity of the spatial structure of the electronic devices such as the headphone and the wearable electronic device is not increased, so that the implementation is easy, and no additional cost is increased.
Example two
Based on the capacitive key detection chip and the electronic device provided in the first embodiment, the second embodiment of the present invention correspondingly provides a capacitive key detection method, as shown in fig. 3, which mainly includes the following steps:
s101: a first detection value and a second detection value are acquired.
The first detection value is a value detected by the first detection module, the second detection value is a value detected by the second detection module, the detection end of the first detection module is connected to the electrode of the capacitor key, and the detection end of the second detection module is in a suspended state.
In an application scenario, the method is implemented based on the capacitive key detection chip mentioned in the first embodiment, the capacitive key detection chip has a first detection module and a second detection module that are completely identical, and a detection end of the first detection module is connected to an electrode of an external capacitive key, so that the first detection module can be used for detecting corresponding data of the capacitive key to obtain a first detection value. When a human body touches the electrode of the capacitive button, a first detection value detected by the first detection module changes.
The detection end of the second detection module is in a suspended state, that is, the detection end of the second detection module is not connected with any electrode, is also used for detecting data, and also obtains a value, which is called as a second detection value in the embodiment of the invention. However, since the second detection module is not connected to the electrodes of the capacitive buttons, when a human body approaches, the second detection value detected by the second detection module does not change, but when the environment changes, the second detection value detected by the second detection module changes, and the change in the environment has the same influence on the first detection module, so that in order to eliminate the influence caused by the environment, the second detection value detected by the second detection module needs to be referred to when the first detection value detected by the first detection module is determined.
S102: and judging whether the capacitive key is touched according to the first detection value and the second detection value.
Therefore, according to the method for detecting the capacitive button provided by the embodiment of the invention, when the capacitive button is detected, two channels are scanned simultaneously by starting the two detection modules, one is a normal detection channel for touching the button, and the other is an empty detection channel which is not connected with any electrode, and during processing, the detection value of the empty channel can be used for correcting the corresponding detection value of the capacitive button, so that the influence of environmental change on the capacitive button is reduced, the judgment of the capacitive button is more accurate, and the misjudgment of the capacitive button is effectively reduced.
In an embodiment, before acquiring the first detection value and the second detection value, the method further comprises the steps of:
s103: and configuring the first detection module and the second detection module to simultaneously perform data detection so as to simultaneously acquire a first detection value and a second detection value.
In the embodiment, when the chip core works, the first detection module and the second detection module can be started to work at the same time, the synchronism of detected detection values is kept, and the effect of environment change on the capacitance key is better corrected.
In an embodiment, in step S20, that is, determining whether the capacitive button is touched according to the first detection value and the second detection value, the method specifically includes the following steps:
s21: calculating a difference value between the first detection value and a first baseline value to obtain a first difference value, wherein the first baseline value is a value detected by the first detection module when the capacitance key is not touched;
s22: calculating a difference value between the second detection value and a second baseline value to obtain a second difference value, wherein the second baseline value is a value detected by the second detection module when the capacitance key is not touched;
s23: correcting the first difference value according to the second difference value to obtain a corrected difference value;
s24: and judging whether the capacitive key is touched according to the correction difference.
For the steps S21-S24, reference may be made to the corresponding description of the corresponding functions of the core of the chip in the previous embodiment, and the description is not repeated here.
In an embodiment, in step S24, that is, determining whether the capacitive button is touched according to the correction difference, the method specifically includes the following steps:
s241: judging whether the correction difference value is larger than a preset threshold value or not;
s242: when the correction difference is judged to be larger than the preset threshold value, judging that the capacitor key is touched;
s243: and when the correction difference is judged to be less than or equal to the preset threshold value, judging that the capacitor key is not touched.
It can be understood that, since the ratios of the influence of the environmental change on the detection values detected by the first detection module and the second detection module are consistent, the conversion can be performed according to the characteristics, and since the ratios are consistent, there are: xa ═ Lb/Db ═ Xa ((Db-Xb)/Db) can be obtained by conversion.
Correcting the first difference value by the following formula to obtain a corrected difference value: xa' ═ Xa (1-Xb/Db); where Xa' denotes the correction difference value, Xa denotes the first difference value, Xb denotes the second difference value, and Db denotes the second detection value.
Therefore, in the method, the value of the capacitor key is corrected by utilizing the second detection module, so that the influence of environmental factors such as temperature, voltage and the like on the capacitor key is eliminated, the phenomenon of mistaken touch caused by sudden temperature and humidity change or voltage change when a client uses the capacitor key is avoided, meanwhile, the second detection module does not need to be wired to any electrode but is in a suspended state, the difficulty of circuit design is not increased, the complexity of the space structure of applied electronic equipment is not increased, the capacitor key detection chip is easy to realize, extra cost is not increased, and the capacitor key detection chip is favorably applied to electronic equipment with narrow space such as earphones.
It should be noted that, for the method for detecting a capacitive button, more details may be correspondingly referred to the foregoing embodiments of the chip, and the description of the core function of the chip is not repeated here.
In the following, a general work flow is described with reference to the foregoing embodiment and an actual earphone for ears, as shown in fig. 4, the earphone for ears is arranged with the capacitive key detection chip provided by the foregoing embodiment, and the earphone for ears can implement a certain function or action, such as volume control, etc., through the capacitive key. The detection end of a first detection module in the capacitance key detection chip is connected to an electrode of a capacitance key of the earphone, when the chip kernel is provided with the first detection module and a second detection module to scan simultaneously, the chip kernel can obtain two groups of detection values, difference values between the two groups of detection values and corresponding baseline values are respectively calculated, the difference value of the first detection module is corrected by using the difference value corresponding to the second detection module, and finally, the relation between the corrected difference value of the first detection module and a preset threshold value is judged to judge whether the capacitance key of the earphone is touched. When the earphone is touched, the touch result is reported to the host of the earphone, so that the host of the earphone can perform the next action according to the touch result. For example, when it is detected that the user touches the capacitive button, a corresponding action or function, such as volume control, is triggered.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, performs the steps of:
acquiring a first detection value and a second detection value, wherein the first detection value is a value detected by a first detection module, the second detection value is a value detected by a second detection module, the detection end of the first detection module is connected to an electrode of a capacitor key, and the detection end of the second detection module is in a suspended state;
and judging whether the capacitive key is touched or not according to the first detection value and the second detection value.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware that is instructed by a computer program, and the computer program may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A capacitive button detection method, the method comprising:
acquiring a first detection value and a second detection value, wherein the first detection value is a value detected by a first detection module, the second detection value is a value detected by a second detection module, the detection end of the first detection module is connected to an electrode of a capacitor key, and the detection end of the second detection module is in a suspended state;
and judging whether the capacitive key is touched according to the first detection value and the second detection value.
2. The capacitive key detection method of claim 1, wherein prior to obtaining the first and second detection values, the method further comprises:
And configuring the first detection module and the second detection module to simultaneously perform data detection so as to simultaneously acquire the first detection value and the second detection value.
3. The method for detecting a capacitive key of claim 1, wherein the determining whether the capacitive key is touched according to the first detection value and the second detection value comprises:
calculating a difference value between the first detection value and a first baseline value to obtain a first difference value, wherein the first baseline value is a value detected by the first detection module when the capacitive key is not touched;
calculating a difference value between the second detection value and a second baseline value to obtain a second difference value, wherein the second baseline value is a value detected by the second detection module when the capacitive key is not touched;
correcting the first difference value according to the second difference value to obtain a corrected difference value;
and judging whether the capacitor key is touched according to the correction difference.
4. The method for detecting capacitive keys as claimed in claim 3, wherein said determining whether the capacitive key is touched according to the modified difference value comprises:
judging whether the correction difference value is larger than a preset threshold value or not;
When the correction difference value is judged to be larger than the preset threshold value, judging that the capacitive key is touched;
and when the correction difference is judged to be smaller than or equal to the preset threshold value, judging that the capacitance key is not touched.
5. The capacitive button detection method of claim 3, wherein said modifying the first difference based on the second difference to obtain a modified difference comprises:
correcting the first difference value by the following formula to obtain a corrected difference value:
Xa′=Xa*(1-Xb/Db);
where Xa' denotes the corrected difference value, Xa denotes the first difference value, Xb denotes the second difference value, and Db denotes the second detection value.
6. A capacitor key detection chip is characterized by comprising a chip core, a first detection module and a second detection module;
the first detection module is used for detecting a first detection value of the capacitor key;
the second detection module is used for detecting the environment of the capacitor key to obtain a second detection value;
the chip kernel is used for acquiring the first detection value and the second detection module and judging whether the capacitive key is touched according to the first detection value and the second detection value.
7. The capacitive button detection chip of claim 6, wherein the chip core is configured to:
and configuring the first detection module and the second detection module to simultaneously perform data detection so as to simultaneously acquire the first detection value and the second detection value.
8. The capacitive button detection chip of claim 6, wherein the chip core is configured to:
calculating a difference value between the first detection value and a first baseline value to obtain a first difference value, wherein the first baseline value is a value detected by the first detection module when the capacitive key is not touched;
calculating a difference value between the second detection value and a second baseline value to obtain a second difference value, wherein the second baseline value is a value detected by the second detection module when the capacitive key is not touched;
correcting the first difference value according to the second difference value to obtain a corrected difference value;
and judging whether the capacitor key is touched according to the correction difference.
9. The capacitive button detection chip of claim 8, wherein the chip core is configured to:
judging whether the correction difference value is larger than a preset threshold value or not;
when the correction difference value is judged to be larger than the preset threshold value, judging that the capacitor key is touched;
And when the correction difference value is judged to be smaller than or equal to the preset threshold value, judging that the capacitance key is not touched.
10. An electronic device comprising a capacitive button and a capacitive button detection chip according to any one of claims 6 to 9.
CN202011561557.4A 2020-12-25 2020-12-25 Capacitor key detection method, chip and electronic equipment Pending CN114679166A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011561557.4A CN114679166A (en) 2020-12-25 2020-12-25 Capacitor key detection method, chip and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011561557.4A CN114679166A (en) 2020-12-25 2020-12-25 Capacitor key detection method, chip and electronic equipment

Publications (1)

Publication Number Publication Date
CN114679166A true CN114679166A (en) 2022-06-28

Family

ID=82070341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011561557.4A Pending CN114679166A (en) 2020-12-25 2020-12-25 Capacitor key detection method, chip and electronic equipment

Country Status (1)

Country Link
CN (1) CN114679166A (en)

Similar Documents

Publication Publication Date Title
US9727159B2 (en) Controller and method for controlling a capacitive touch screen or the like
US9870103B2 (en) Controller and method for controlling a capacitive touch screen or the like
CN111352534B (en) Touch key touch threshold correction method, wire controller, electric appliance and computer readable storage medium
CN108759892B (en) Sensor calibration method, electronic device and computer-readable storage medium
CN104881174B (en) A kind of method and device of dynamic adjustment sensitivity of touch screen
US10712870B2 (en) Method for improving fault tolerance of touchscreen and touchscreen terminal
CN103294583B (en) A kind of method of control terminal screen and mobile terminal
TW201716938A (en) Wired stylus, touch sensitive electronic device and system and method thereof
US20150193075A1 (en) Touch apparatus and touch method thereof
CN113126815A (en) Key response control method and device, terminal equipment and storage medium
CN108369472B (en) Electrode abnormity processing method and device, touch screen and electronic terminal
US20190250766A1 (en) Capacitive sensing device, method for obtaining touch thresholds under different control conditions of the same, and correction method for the same
WO2021213194A1 (en) Touch sensing method and circuit, and electronic device
CN111596802B (en) Touch screen calibration method and device and computer readable storage medium
CN114679166A (en) Capacitor key detection method, chip and electronic equipment
US10175840B2 (en) Terminal, touch control unit, touchscreen, screen protector, and operation detection apparatus and method
JP2015211455A (en) Information processing device and control method therefor
CN113126813B (en) Correction method and device for key misjudgment, terminal equipment and storage medium
US20160364066A1 (en) Information Processing Method and Electronic Device
US10620727B2 (en) Information processing method and electronic device
CN113126814A (en) Key no-response correction method and device, terminal equipment and storage medium
JP2019075780A (en) Electrostatic capacitance switch controller, electrostatic capacitance switch, electronic apparatus and malfunction detection method
TWI743526B (en) Adaptive touch panel system and adaptive method thereof
CN114003147A (en) Signal detection device, touch pad and electronic equipment
CN104375724B (en) Mobile terminal and touch operation method thereof

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