Capacitance detection circuit, method, touch control chip and electronic device

By introducing load identification and timing control modules into the capacitance detection circuit, combined with feedback adjustment of the charge amplification module, the problem of low mutual capacitance detection accuracy in traditional capacitance detection is solved, and a wider range of capacitance detection adaptability and accuracy improvement is achieved.

CN117686794BActive Publication Date: 2024-11-26安徽曦合微电子有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311526584.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-16
Publication Date
2024-11-26
Estimated Expiration
2043-11-16

AI Technical Summary

Technical Problem

Due to the saturation of the operational amplifier, traditional capacitance detection circuits have a small range of mutual capacitance detection and low detection accuracy, which is difficult to meet the needs of various scenarios.

Method used

A capacitance detection circuit is designed, including a load identification module, a timing control module, a first detection module, a second detection module, a cancellation module, a driving module and a charge amplification module. Through load identification and timing control, it is based on the type of capacitor to be measured. Select the appropriate detection mode and adjust the feedback loop through the charge amplification module to achieve effective conversion of capacitance value changes.

Benefits of technology

The detection accuracy and range in various scenarios of capacitance detection are improved, and the detection accuracy problem is not high due to operational amplifier saturation is avoided, and the requirements of self-calibration and mutual capacity detection are met.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117686794B_ABST
    Figure CN117686794B_ABST
Patent Text Reader

Abstract

The present application relates to a capacitance detection circuit, method, touch chip and electronic device. The load identification module of the present application can confirm the type of the connected capacitor to be tested is self-capacitance or mutual capacitance according to the input detection signal, and output a control signal to the timing control module according to the confirmation result, so that the timing control module outputs a corresponding switch signal according to the control signal, so that when the type of the capacitor to be tested is self-capacitance, the first detection module is connected to the compensation module or the driving module; or when the type of the capacitor to be tested is mutual capacitance, the second detection module is connected to the compensation module. Then, through the charge amplification module, the capacitance change of the capacitor is converted into a voltage change, thereby meeting the various scene requirements of capacitance detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of capacitance detection technology, and in particular to a capacitance detection circuit, method, touch control chip and electronic device. Background Art

[0002] With the rapid development of science and technology, capacitive touch screens are widely used in touch technology. When there is a touch signal on the capacitive touch screen, the capacitance value will change with the touch, and the capacitance detection circuit will obtain the capacitance change value to judge the user's operation.

[0003] Capacitance detection circuits are generally divided into self-capacitance detection circuits and mutual capacitance detection circuits. In applications, there are scenarios where both self-capacitance and mutual capacitance need to be supported. In addition, the accuracy requirements for detection vary for the self-capacitance of different loads.

[0004] Therefore, how to design a capacitance detection circuit to meet the needs of various capacitance detection scenarios has become an urgent problem to be solved. Summary of the invention

[0005] Based on this, it is necessary to provide a capacitance detection circuit, method, touch chip and electronic device to address the above technical problems, so as to solve the problem of small mutual capacitance detection range and low detection accuracy due to saturation of operational amplifier in traditional technology.

[0006] In a first aspect, the present application provides a capacitance detection circuit, the circuit comprising: a load identification module, a timing control module, a first detection module, a second detection module, a compensation module, a driving module and a charge amplification module;

[0007] The load identification module is used to confirm whether the type of the connected capacitor to be tested is self-capacitance or mutual capacitance according to the detection signal input from the outside, and output a control signal according to the confirmation result;

[0008] The timing control module is used to output a corresponding switch signal according to the control signal, and when the type of the capacitor to be measured is self-capacitance, connect the first detection module to the cancellation module or the driving module; or when the type of the capacitor to be measured is mutual capacitance, connect the second detection module to the cancellation module;

[0009] The charge amplification module is used to amplify the output signal of the cancellation module or the driving module, and adjust the connection state of the feedback loop of the charge amplification module according to the switch signal.

[0010] In one embodiment, the load identification module includes:

[0011] A capacitance detection unit, used for further determining whether the type of the capacitor to be measured is a small capacitance load or a large capacitance load when the type of the capacitor to be measured is a self capacitance;

[0012] The timing control module is also used to output a corresponding switching signal when the type of the capacitor to be measured is a small capacitance load, so that the first detection module is connected to the compensation module; when the type of the capacitor to be measured is a large capacitance load, output a corresponding switching signal so that the first detection module is connected to the driving module.

[0013] In one of the embodiments, the first detection module includes a first switch;

[0014] One end of the first switch is connected to one end of the capacitor to be measured, and the other end of the first switch is connected to the offset module and the driving module;

[0015] The other end of the capacitor to be measured is grounded; wherein the type of the capacitor to be measured is self-capacitance.

[0016] In one of the embodiments, the second detection module includes a signal sending end, a signal receiving end and a second switch;

[0017] The capacitor to be measured is connected in series between the signal transmitting end and the signal receiving end, wherein the type of the capacitor to be measured is mutual capacitance;

[0018] One end of the second switch is connected to the signal receiving end, and the other end of the second switch is connected to the cancellation module.

[0019] In one embodiment, the second detection module further includes a third switch and a fourth switch;

[0020] One end of the third switch is connected to the first voltage, and the other end of the third switch is connected to the signal sending end;

[0021] One end of the fourth switch is connected to the ground line, and the other end of the fourth switch is connected to the signal sending end.

[0022] In one embodiment, the compensation module includes a compensation capacitor, a fifth switch and a sixth switch;

[0023] One end of the offset capacitor is connected to the first detection module, the second detection module and the charge amplification module respectively, and the other end of the offset capacitor is connected to one end of the fifth switch and one end of the sixth switch respectively;

[0024] The other end of the fifth switch is connected to the second voltage;

[0025] The other end of the sixth switch is connected to the third voltage.

[0026] In one embodiment, the driving module includes a first current source, a second current source, a seventh switch, an eighth switch, a ninth switch and a tenth switch;

[0027] One end of the seventh switch is connected to the first voltage, and one end of the eighth switch is connected to the ground line;

[0028] The input end of the first current source is connected to the fourth voltage, and the output end is connected to one end of the ninth switch;

[0029] The input end of the second current source is connected to one end of the tenth switch, and the output end is connected to the ground line;

[0030] The other ends of the seventh switch, the eighth switch, the ninth switch and the tenth switch are connected to the first detection module and the charge amplification module respectively.

[0031] In one embodiment, the charge amplification module includes an operational amplifier, a feedback capacitor, an eleventh switch, a twelfth switch, a thirteenth switch, a fourteenth switch, a fifteenth switch, a sixteenth switch, and a seventeenth switch;

[0032] One end of the eleventh switch is connected to the offset module and the driving module, and the other end of the eleventh switch is connected to the inverting input end of the operational amplifier;

[0033] The inverting input terminal of the operational amplifier is also connected to one end of the feedback capacitor and one end of a twelfth switch respectively, and the other end of the twelfth switch is connected to the output terminal of the operational amplifier;

[0034] A thirteenth switch is connected in series between the output terminal of the operational amplifier and the other end of the feedback capacitor;

[0035] The non-inverting input terminal of the operational amplifier is connected to one end of the fourteenth switch, the fifteenth switch and the sixteenth switch respectively, the other end of the fourteenth switch is connected to the detection voltage, the other end of the fifteenth switch is connected to the sixth voltage, and the other end of the sixteenth switch is connected to the seventh voltage;

[0036] The other end of the feedback capacitor is also connected to one end of a seventeenth switch, and the other end of the seventeenth switch is connected to the seventh voltage.

[0037] In a second aspect, the present application further provides a capacitance detection method, which is applicable to the capacitance detection circuit described in the first aspect above, and the method comprises:

[0038] According to the detection signal input from the outside, confirm whether the type of the connected capacitor to be tested is self-capacitance or mutual capacitance, and output a control signal according to the confirmation result;

[0039] A switching signal corresponding to the control signal output is configured to connect the first detection module to the compensation module or the driving module and control the capacitance detection circuit to operate in a self-capacitance detection mode when the capacitance to be measured is self-capacitance; or connect the second detection module to the compensation module and control the capacitance detection circuit to operate in a mutual capacitance detection mode when the capacitance to be measured is mutual capacitance.

[0040] In one of the embodiments, the self-capacitance detection mode includes a first working mode and a second working mode;

[0041] When the type of the capacitor to be measured is self-capacitance, connecting the first detection module to the offset module or the driving module includes:

[0042] A capacitance detection unit is used to detect the capacitance of the capacitor to be measured, and the type of the capacitor to be measured is determined to be a small capacitance load or a large capacitance load according to the capacitance;

[0043] When the type of the capacitor to be measured is a small capacitance load, the first switch is turned on and the second switch is turned off, the first detection module is connected to the offset module, and the capacitance detection circuit is controlled to work in the first working mode;

[0044] When the type of the capacitor to be measured is a large capacitance load, the first switch is turned on and the second switch is turned off, the first detection module is connected to the driving module, and the capacitance detection circuit is controlled to work in the second working mode.

[0045] In one embodiment, controlling the capacitance detection circuit to operate in a first operating mode includes:

[0046] Maintaining the seventh switch, the eighth switch, the ninth switch, the tenth switch, and the sixteenth switch in a normally open state;

[0047] Maintain the eleventh switch in a normally closed state;

[0048] In a first time, the sixth switch, the twelfth switch, the fifteenth switch and the seventeenth switch are turned on, and the fifth switch, the thirteenth switch and the fourteenth switch are turned off, so that the capacitance detection circuit outputs a seventh voltage;

[0049] During the second time, the fifth switch, the thirteenth switch and the fourteenth switch are turned on, and the sixth switch, the twelfth switch, the fifteenth switch and the seventeenth switch are turned off, so that the capacitance detection circuit converts the capacitance change of the capacitor to be measured into a voltage change and outputs the voltage change;

[0050] During the third time, the fifth switch, the twelfth switch, the fourteenth switch and the seventeenth switch are turned on, and the sixth switch, the thirteenth switch and the fifteenth switch are turned off, so that the capacitance detection circuit outputs a seventh voltage;

[0051] During the fourth time, the sixth switch, the thirteenth switch and the fifteenth switch are turned on, and the fifth switch, the twelfth switch, the fourteenth switch and the seventeenth switch are turned off, so that the capacitance detection circuit converts the capacitance change of the capacitor to be measured into a voltage change and outputs the voltage change.

[0052] In one embodiment, controlling the capacitance detection circuit to operate in the second operating mode includes:

[0053] Maintaining the fifth switch, the sixth switch, the fourteenth switch and the fifteenth switch in a normally open state;

[0054] Maintain the sixteenth switch in a normally closed state;

[0055] During the fifth time, the seventh switch, the twelfth switch and the seventeenth switch are turned on, and the sixth switch, the eighth switch, the ninth switch, the tenth switch, the eleventh switch and the thirteenth switch are turned off, so that the capacitance detection circuit outputs a seventh voltage;

[0056] During the sixth time, the tenth switch is turned on, the seventh switch, the twelfth switch and the seventeenth switch are turned off, and the states of the sixth switch, the eighth switch, the ninth switch and the thirteenth switch are maintained unchanged, so that the second current source discharges the capacitor to be measured;

[0057] During the seventh time, the eleventh switch is turned on, and the states of the sixth switch, the seventh switch, the eighth switch, the ninth switch, the tenth switch, the thirteenth switch and the seventeenth switch are maintained unchanged, so that the capacitance detection circuit converts the capacitance change of the capacitor to be measured into a voltage change and outputs the voltage change;

[0058] During an eighth time, the eighth switch, the twelfth switch and the seventeenth switch are turned on, and the seventh switch, the ninth switch, the tenth switch, the eleventh switch and the thirteenth switch are turned off, so that the capacitance detection circuit outputs a seventh voltage;

[0059] During the ninth time, the ninth switch is turned on, the eighth switch, the twelfth switch and the seventeenth switch are turned off, and the states of the seventh switch, the tenth switch, the eleventh switch and the thirteenth switch are maintained unchanged, so that the first current source charges the capacitor to be measured;

[0060] During the tenth time, the eleventh switch is turned on, and the states of the seventh switch, the eighth switch, the ninth switch, the tenth switch, the twelfth switch, the thirteenth switch and the seventeenth switch are maintained unchanged, so that the capacitance detection circuit converts the capacitance change of the capacitor to be measured into a voltage change and outputs the voltage change.

[0061] In one embodiment, when the type of the capacitance to be measured is mutual capacitance, connecting the second detection module to the compensation module and controlling the capacitance detection circuit to operate in a mutual capacitance detection mode include:

[0062] Turning on the second switch and turning off the first switch to connect the second detection module to the compensation module;

[0063] Maintaining the seventh switch, the eighth switch, the ninth switch, the tenth switch, the fourteenth switch, the fifteenth switch, and the seventeenth switch in a normally open state;

[0064] Maintain the eleventh switch, the thirteenth switch and the sixteenth switch in a normally closed state;

[0065] During the eleventh time, the fourth switch, the fifth switch and the twelfth switch are turned on, and the third switch and the sixth switch are turned off, so that the capacitance detection circuit outputs a seventh voltage;

[0066] During the twelfth time, the third switch and the sixth switch are turned on, and the fourth switch, the fifth switch and the twelfth switch are turned off, so that the capacitance detection circuit converts the capacitance change of the capacitor to be measured into a voltage change and outputs the voltage change;

[0067] During the thirteenth time, the third switch, the sixth switch and the twelfth switch are turned on, and the fourth switch and the fifth switch are turned off, so that the capacitance detection circuit outputs a seventh voltage;

[0068] In the fourteenth time, the fourth switch and the fifth switch are turned on, and the third switch, the sixth switch and the twelfth switch are turned off, so that the capacitance detection circuit converts the capacitance change of the capacitor to be measured into a voltage change and outputs the voltage change.

[0069] In a third aspect, the present application further provides a touch control chip, comprising the above-mentioned capacitance detection circuit.

[0070] In a fourth aspect, the present application further provides an electronic device, including:

[0071] A display screen, and a touch screen arranged on the surface of the display screen; the touch screen is provided with a plurality of mutual capacitors and / or a plurality of self capacitors;

[0072] The touch control chip described in the third aspect is connected to the touch screen, and is used to detect each of the mutual capacitances and / or each of the self capacitances according to a touch signal of the touch screen.

[0073] The above capacitance detection circuit, method, touch control chip and electronic device have at least the following advantages:

[0074] The load identification module of the present application can confirm whether the type of the connected capacitor to be measured is self-capacitance or mutual capacitance based on the input detection signal, and output a control signal to the timing control module based on the confirmation result, so that the timing control module outputs a corresponding switching signal according to the control signal, thereby connecting the first detection module to the compensation module or the driving module when the type of the capacitor to be measured is self-capacitance; or connecting the second detection module to the compensation module when the type of the capacitor to be measured is mutual capacitance, and then converting the capacitance change of the capacitor into a voltage change through the charge amplification module, thereby meeting various scene requirements of capacitance detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] The drawings constituting a part of this application are used to provide a further understanding of the present invention. The illustrative embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0076] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0077] Figure 1 is a schematic structural diagram of a capacitance detection circuit in one embodiment;

[0078] Figure 2 is a wiring diagram of a capacitance detection circuit in one embodiment;

[0079] Figure 3 is a flow chart of a capacitance detection method in one embodiment;

[0080] Figure 4 A structural block diagram of a step of determining a self-capacitance working mode in an embodiment;

[0081] Figure 5 is a wiring diagram of a first working mode in an embodiment;

[0082] Figure 6 for Figure 5 Timing diagram of the structure shown;

[0083] Figure 7is a wiring diagram of a second working mode in an embodiment;

[0084] Figure 8 for Figure 7 Timing diagram of the structure shown;

[0085] Fig. 9 is a wiring diagram of a mutual capacitance detection mode in one embodiment;

[0086] Fig.10 for Fig. 9 Timing diagram of the structure shown;

[0087] Fig.11 A structural block diagram of a touch control chip in an embodiment;

[0088] Fig.12 FIG. 4 is a structural block diagram of an electronic device in an embodiment.

[0089] Description of reference numerals:

[0090] 1. Load identification module; 2. Timing control module; 3. First detection module; 4. Second detection module;

[0091] 5. Compensation module; 6. Driving module; 7. Charge amplification module. DETAILED DESCRIPTION

[0092] In order to facilitate the understanding of the present application, the present application will be described more fully below with reference to the relevant drawings. The preferred embodiments of the present application are provided in the drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive.

[0093] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.

[0094] In the case of using “including”, “having”, and “comprising” described herein, another component may be added unless a clear limiting term such as “only”, “consisting of”, etc. is used. Unless mentioned otherwise, a term in the singular form may include a plural form and should not be understood as being one in number.

[0095] It should be understood that although the terms "first", "second", etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. For example, a first element may be referred to as a second element, and similarly, a second element may be referred to as a first element without departing from the scope of the present application.

[0096] In this application, unless otherwise clearly specified and limited, the terms "connected", "connection" and the like should be understood in a broad sense, for example, it can be directly connected or indirectly connected through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0097] See also Figure 1 In some embodiments, the present application provides a capacitance detection circuit, including: a load identification module 1, a timing control module 2, a first detection module 3, a second detection module 4, a compensation module 5, a driving module 6 and a charge amplification module 7.

[0098] The load identification module 1 has an input end connected to an external input detection signal, and an output end connected to an input end of a timing control module 2, and is used to confirm, based on the external input detection signal, the type of the connected capacitor to be tested as self-capacitance or mutual capacitance, and output a control signal based on the confirmation result.

[0099] Specifically, the detection signal is generated based on the type of connected capacitor to be tested, and the detection signal can be pre-agreed according to the test needs. Exemplarily, it can be pre-agreed that when the connected capacitor type is self-capacitance, the detection signal is the first detection signal; when the connected capacitor type is mutual capacitance, the detection signal is the second detection signal. The load identification module 1 can then determine whether the connected capacitor type is self-capacitance or mutual capacitance based on the detection signal. It should be noted that the self-capacitance sensing system and the mutual capacitance sensing system are usually independent of each other in circuit structure. By selecting the working mode of the sensing system, it is possible to switch between the two and output the corresponding detection signal to the load identification module 1.

[0100] The timing control module 2 has output ends respectively connected to the first detection module 3, the second detection module 4, the compensation module 5, the driving module 6 and the charge amplification module 7, and is used to output corresponding switching signals according to the control signal. When the type of the capacitance to be measured is self-capacitance, the first detection module 3 is connected to the compensation module 5 or the driving module 6; or when the type of the capacitance to be measured is mutual capacitance, the second detection module 4 is connected to the compensation module 5.

[0101] The charge amplifier module 7 is used to amplify the output signal of the cancellation module 5 or the driving module 6 and adjust the connection state of the feedback loop of the charge amplifier module 7 according to the switch signal.

[0102] In the above embodiment, the load identification module 1 can confirm whether the type of the connected capacitor to be measured is self-capacitance or mutual capacitance according to the input detection signal, and output a control signal to the timing control module 2 according to the confirmation result, so that the timing control module 2 outputs a corresponding switch signal according to the control signal, so that when the type of the capacitor to be measured is self-capacitance, the first detection module 3 is connected to the compensation module 5 or the driving module 6; or when the type of the capacitor to be measured is mutual capacitance, the second detection module 4 is connected to the compensation module 5. Then, through the charge amplification module 7, the capacitance change of the capacitor is converted into a voltage change, thereby meeting the various scene requirements of capacitance detection.

[0103] Optionally, the load identification module 1 includes: a capacitance detection unit.

[0104] The capacitance detection unit is connected to the first detection module 3, and is used to further determine whether the type of the capacitance to be measured is a small capacitance load or a large capacitance load when the type of the capacitance to be measured is self-capacitance. At this time, the timing control module 2 is also used to output a corresponding switch signal when the type of the capacitance to be measured is a small capacitance load, so that the first detection module 3 is connected to the offset module 5; when the type of the capacitance to be measured is a large capacitance load, the corresponding switch signal is output to connect the first detection module 3 to the drive module 6. Exemplarily, the capacitance detection unit can use an RC charge and discharge circuit or an RC oscillation circuit to determine the capacitance range of the capacitance to be measured by measuring the charge and discharge time or the oscillation frequency. In practical applications, other detection structures can also be used, and this application does not specifically limit this.

[0105] See also Figure 2 Optionally, the first detection module 3 includes a first switch K1.

[0106] One end of the first switch K1 is connected to one end of the capacitor to be measured Ctp, and the other end of the first switch K1 is connected to the offset module 5 and the driving module 6. The other end of the capacitor to be measured Ctp is grounded; wherein the type of the capacitor to be measured Ctp is self-capacitance.

[0107] Specifically, if the detection signal received by the load identification module 1 is the first detection signal, it is considered that the type of the connected capacitor is self-capacitance. At this time, the timing control module 2 outputs a corresponding switch signal to the first switch K1 to close it and connect the capacitor to be tested to the compensation module 5 and the driving module 6. Further, the capacitance detection unit continues to determine whether the type of the capacitor to be tested is a small capacitance load or a large capacitance load. When it is a small capacitance load, the first detection unit is connected to the compensation module 5; when it is a large capacitance load, the first detection unit is connected to the driving module 6.

[0108] Optionally, the second detection module 4 includes a signal transmitting terminal TX, a signal receiving terminal RX and a second switch K2.

[0109] The capacitor Cm to be measured is connected in series between the signal transmitting end TX and the signal receiving end RX, wherein the type of the capacitor Cm to be measured is mutual capacitance, Ctx is the parasitic capacitance of the transmitting end, and Crx is the parasitic capacitance of the receiving end.

[0110] One end of the second switch K2 is connected to the signal receiving end RX, and the other end of the second switch K2 is connected to the cancellation module 5 .

[0111] Furthermore, the second detection module 4 further includes a third switch K3 and a fourth switch K4.

[0112] One end of the third switch K3 is connected to the first voltage AVDD, and the other end of the third switch K3 is connected to the signal transmitting terminal TX; one end of the fourth switch K4 is connected to the ground line, and the other end of the fourth switch K4 is connected to the signal transmitting terminal TX. The first voltage AVDD is a positive power supply.

[0113] Specifically, if the detection signal received by the load identification module 1 is the second detection signal, it is considered that the connected capacitor type is a mutual capacitor, and at this time, the timing control module 2 outputs a corresponding switch signal to the second switch K2 to close it and connect the capacitor Cm to be measured to the compensation module 5. At the same time, the timing control module 2 outputs a corresponding switch signal to the first switch K1 to open it.

[0114] Furthermore, the timing control module 2 also outputs corresponding switch signals to the third switch K3 and the fourth switch K4, so that during capacitance detection, the signal transmitting end TX can send a detection waveform to the signal receiving end RX.

[0115] Optionally, the cancellation module 5 includes a cancellation capacitor Cc, a fifth switch K5 and a sixth switch K6.

[0116] One end of the offset capacitor Cc is connected to the first detection module 3, the second detection module 4 and the charge amplification module 7 respectively, and the other end of the offset capacitor Cc is connected to one end of the fifth switch K5 and one end of the sixth switch K6 respectively, the other end of the fifth switch K5 is connected to the second voltage VCP, and the other end of the sixth switch K6 is connected to the third voltage VCN. Exemplarily, in this embodiment, the voltage value of the second voltage VCP is the same as the voltage value of the first voltage AVDD, and the third voltage VCN is grounded.

[0117] By controlling the on and off of the seventh switch K7 and the eighth switch K8 , the offset capacitor Cc can be connected to the first voltage AVDD or the ground line.

[0118] Optionally, the driving module 6 includes a first current source IDACP, a second current source IDACN, a seventh switch K7, an eighth switch K8, a ninth switch K9 and a tenth switch K10.

[0119] One end of the seventh switch K7 is connected to the first voltage AVDD, and one end of the eighth switch K8 is connected to the ground line.

[0120] An input end of the first current source IDACP is connected to a fourth voltage, and an output end of the first current source IDACP is connected to one end of a ninth switch K9; wherein the fourth voltage is a positive power supply, and its value may be equal to that of the first voltage AVDD.

[0121] An input end of the second current source IDACN is connected to one end of the tenth switch K10 , and an output end of the second current source IDACN is connected to the ground line.

[0122] The other ends of the seventh switch K7 , the eighth switch K8 , the ninth switch K9 and the tenth switch K10 are connected to the first detection module 3 and the charge amplification module 7 , respectively.

[0123] By controlling the on and off of the seventh switch K7 and the eighth switch K8, the capacitor Cm to be measured can be connected to the first voltage AVDD or the ground line, so that the capacitor Cm to be measured can be charged and discharged at a suitable time.

[0124] By controlling the on and off of the ninth switch K9 and the tenth switch K10 , the first current source IDACP or the second current source IDACN can be connected to the capacitor to be measured Cm, so that the capacitor to be measured Cm can be charged and discharged at a suitable time.

[0125] In the above embodiment, a current source is used to charge and discharge the capacitor Cm to be tested, which not only meets the test requirements but also reduces the area of ​​the hardware circuit, thereby saving the area of ​​the chip.

[0126] Optionally, the charge amplification module 7 includes an operational amplifier A1, a feedback capacitor Cf, an eleventh switch K11, a twelfth switch K12, a thirteenth switch K13, a fourteenth switch K14, a fifteenth switch K15, a sixteenth switch K16 and a seventeenth switch K17.

[0127] One end of the eleventh switch K11 is connected to the cancellation module 5 and the driving module 6, and the other end of the eleventh switch K11 is connected to the inverting input end of the operational amplifier A1. The inverting input end of the operational amplifier A1 is also connected to one end of the feedback capacitor Cf and one end of the twelfth switch K12, and the other end of the twelfth switch K12 is connected to the output end of the operational amplifier A1.

[0128] The thirteenth switch K13 is connected in series between the output terminal of the operational amplifier A1 and the other end of the feedback capacitor Cf.

[0129] The non-inverting input terminal of the operational amplifier A1 is connected to one end of the fourteenth switch K14, the fifteenth switch K15 and the sixteenth switch K16 respectively, the other end of the fourteenth switch K14 is connected to the detection voltage VH, the other end of the fifteenth switch K15 is connected to the sixth voltage VL, and the other end of the sixteenth switch K16 is connected to the seventh voltage VCM; the other end of the feedback capacitor Cf is also connected to one end of the seventeenth switch K17, and the other end of the seventeenth switch K17 is connected to the seventh voltage VCM. Exemplarily, the voltage value from the detection voltage to the seventh voltage can be set to the detection voltage VH> the seventh voltage VCM> the sixth voltage VL, and VCM=(VH+VL) / 2. It should be understood that in practical applications, the above voltage values ​​can also be set according to the detection needs.

[0130] By controlling the on and off of the twelfth switch K12, the connection state of the feedback loop can be adjusted, that is, by controlling the on or off of the twelfth switch K12, the inverting input terminal and the output terminal of the operational amplifier A1 are directly connected, or the inverting input terminal and the output terminal are connected through the feedback capacitor Cf. Specifically, when the twelfth switch K12 is turned on, the inverting input terminal and the output terminal of the operational amplifier A1 are short-circuited, and at this time, the output voltage of the operational amplifier A1 is equal to the potential of the inverting input terminal. When the twelfth switch K12 is turned off, the output voltage VOUT of the operational amplifier A1 is fed back to the inverting input terminal through the feedback capacitor Cf, and at this time, the operational amplifier A1 can adjust the output voltage according to the feedback signal.

[0131] It should be noted that, in order to adapt to different measurement ranges and achieve better measurement results, the offset capacitor Cc and the feedback capacitor Cf in this embodiment are both adjustable capacitors.

[0132] In the above embodiment, the load identification module 1 can confirm the type of the connected capacitor to be measured as self-capacitance or mutual capacitance according to the input detection signal, and when the type of the capacitor to be measured is self-capacitance, the capacitance detection unit further determines the type of the capacitor to be measured as a small capacitance load or a large capacitance load, and finally outputs a control signal to the timing control module 2 according to the confirmation result, so that the timing control module 2 outputs a corresponding switch signal according to the control signal, so that when the type of the capacitor to be measured is a small capacitance load, the first detection module 3 is connected to the compensation module 5; or when the type of the capacitor to be measured is a large capacitance load, the first detection module 3 is connected to the driving module 6; or when the type of the capacitor to be measured is a mutual capacitance, the second detection module 4 is connected to the compensation module 5. In this way, the charge amplification module 7 converts the capacitance change of the capacitor into a voltage change, thereby meeting the various scene requirements of capacitance detection.

[0133] Based on the same inventive concept, the embodiment of the present application also provides a capacitance detection method for implementing the capacitance detection circuit involved above. The implementation scheme for solving the problem provided by the method is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more capacitance detection method embodiments provided below can refer to the limitations on the capacitance detection circuit above, and will not be repeated here.

[0134] See also Figure 3 In some embodiments, the present application also provides a capacitance detection method, which specifically includes:

[0135] Step S302: confirming the type of the connected capacitor to be tested as self-capacitance or mutual capacitance according to the externally input detection signal, and outputting a control signal according to the confirmation result.

[0136] Step S304, outputting a corresponding switch signal according to the control signal, when the type of the capacitor to be measured is self-capacitance, the first detection module 3 is connected to the compensation module 5 or the driving module 6, and the capacitance detection circuit is controlled to work in the self-capacitance detection mode; or when the type of the capacitor to be measured is mutual capacitance, the second detection module 4 is connected to the compensation module 5, and the capacitance detection circuit is controlled to work in the mutual capacitance detection mode.

[0137] See also Figure 4 Optionally, the self-capacitance detection mode includes a first working mode and a second working mode.

[0138] When the type of the capacitor to be measured is self-capacitance, the first detection module 3 is connected to the offset module 5 or the driving module 6, including:

[0139] Step S402: Using a capacitance detection unit to detect the capacitance of the capacitor to be measured, and determining the type of the capacitor to be measured as a small capacitance load or a large capacitance load according to the capacitance.

[0140] Step S404, when the type of the capacitor to be measured is a small capacitance load, the first switch is turned on and the second switch is turned off, the first detection module 3 is connected to the compensation module 5, and the capacitance detection circuit is controlled to work in the first working mode.

[0141] Step S406, when the type of the capacitor to be tested is a large capacitance load, the first switch is turned on and the second switch is turned off, the first detection module 3 is connected to the driving module 6, and the capacitance detection circuit is controlled to work in the second working mode.

[0142] See also Figure 2 and Figure 5 Optionally, controlling the capacitance detection circuit to operate in a first operating mode includes:

[0143] The seventh switch K7 to the tenth switch K10 and the sixteenth switch K16 are maintained in a normally open state, and the eleventh switch K11 is maintained in a normally closed state. At this time, the connection diagram of the capacitance detection circuit is as follows: Figure 5 As shown, the first detection module 3, the offset module 5 and the charge amplification module 7 are in working state, and the second detection module 4 and the driving module 6 are disconnected. It should be noted that the switch signals of the fifth switch K5 and the sixth switch K6 are opposite signals to each other, that is, the fifth switch K5 is turned on and the sixth switch K6 is turned off, and vice versa. Further, the switch signals of the twelfth switch K12 and the thirteenth switch K13 are opposite signals to each other, and the switch signals of the fourteenth switch K14 and the fifteenth switch K15 are opposite signals to each other. Further, the switch signals of the fifth switch K5 and the fourteenth switch K14 are the same direction signals, that is, the fifth switch K5 and the fourteenth switch K14 are turned on or off at the same time. Further, the switch signals of the twelfth switch K12 and the seventeenth switch K17 are the same direction signals. In this way, the detection function of the capacitance detection circuit can be realized through simple control logic.

[0144] See also Figure 6 , Figure 6 Shown Figure 5 The timing diagram of the structure in Figure 6 Two complete working cycle timings are given in.

[0145] In the first time, Figure 6 From t0 to t1 shown, the sixth switch K6, the twelfth switch K12, the fifteenth switch K15 and the seventeenth switch K17 are turned on, and the fifth switch K5, the thirteenth switch K13 and the fourteenth switch K14 are turned off, so that the capacitance detection circuit outputs the seventh voltage VCM.

[0146] At this time, the charges on each capacitor are:

[0147] Q Ctp =V L C tp

[0148] Q Cc =(V L -V CN )C C

[0149] Q Cf =(V L -V CM )C f

[0150] Then the output voltage V of operational amplifier A1 is OUT =V CM .

[0151] Among them, VL is the input voltage of the non-inverting input terminal of operational amplifier A1; V CN is the third voltage connected to the sixth switch K6; V CM A seventh voltage connected to the seventeenth switch K17;

[0152] Q Ctp is the charge of the capacitor Ctp to be measured, C tp is the capacitance of the capacitor to be tested Ctp;

[0153] Q Cc To offset the charge of capacitor Cc, C c To offset the capacitance of capacitor Cc;

[0154] Q Cf is the charge of the feedback capacitor Cf, C f is the capacitance of the feedback capacitor Cf.

[0155] In the second time, Figure 6 From t1 to t2 shown in the figure, the fifth switch K5, the thirteenth switch K13 and the fourteenth switch K14 are turned on, and the sixth switch K6, the twelfth switch K12, the fifteenth switch K15 and the seventeenth switch K17 are turned off, so that the capacitance detection circuit converts the capacitance change of the capacitor Ctp to be measured into a voltage change and outputs the voltage change V OUT .

[0156] At this time, the charges on each capacitor are:

[0157] Q Ctp =V H C tp

[0158] Q Cc =(V H -V CP )C C

[0159] Q Cf =(V H -V OUT )C f

[0160] Among them, V H is the input voltage of the non-inverting input terminal of operational amplifier A1; V CP is the second voltage connected to the fifth switch K5.

[0161] According to the law of charge conservation:

[0162] V L C tp +(V L -V CN )CC +(V L -V CM )C f =V H C tp +(V H -V CP )C C +(V H -V OUT )C f

[0163] Get V OUT The expression is:

[0164]

[0165] If:

[0166] (V H -V L )(C tp +C f )+(V H -V L -V CP +V CN )C C =0

[0167] Right now:

[0168]

[0169] Then the output voltage V of operational amplifier A1 is OUT =V CM .

[0170] When the capacitance of the capacitor Ctp to be measured changes from Ctp to Ctp+ΔCtp, the output voltage of the operational amplifier A1 is V OUT1 , then V OUT1 The expression is:

[0171]

[0172] The signal caused by the change in capacitance is:

[0173]

[0174] In the third time, that is Figure 6 From t2 to t3 shown, the fifth switch K5, the twelfth switch K12, the fourteenth switch K14 and the seventeenth switch K17 are turned on, and the sixth switch K6, the thirteenth switch K13 and the fifteenth switch K15 are turned off, so that the capacitance detection circuit outputs the seventh voltage VCM.

[0175] At this time, the charges on each capacitor are:

[0176] Q Ctp =V H C tp

[0177] Q Cc =(V H -V CP )C C

[0178] W Cf =(V H -V CM )C f

[0179] Then the output voltage V of operational amplifier A1 is OUT =V CM .

[0180] In the fourth time, that is Figure 6 From t3 to t4 shown in FIG. 1 , the sixth switch K6, the thirteenth switch K13 and the fifteenth switch K15 are turned on, and the fifth switch K5, the twelfth switch K12, the fourteenth switch K14 and the seventeenth switch K17 are turned off, so that the capacitance detection circuit converts the capacitance change of the capacitor to be measured into a voltage change and outputs the voltage change V OUT .

[0181] At this time, the charges on each capacitor are:

[0182] Q Ctp =V L C tp

[0183] Q Cc =(V L -V CN )C C

[0184] Q Cf =(V L -V OUT )C f

[0185] According to the law of charge conservation:

[0186] V H C tp +(V H -V CP )C C +(V H -V CM )C f =V L C tp +(V L -V CN)C C +(V L -V OUT )C f

[0187] Get V OUT The expression is:

[0188]

[0189] because

[0190]

[0191] Therefore, the output voltage V of operational amplifier A1 is OUT =V CM .

[0192] When the capacitance of the capacitor Ctp to be measured changes from Ctp to Ctp+ΔCtp, the output voltage of the operational amplifier A1 is V OUT1 , then V OUT1 The expression is:

[0193]

[0194] That is, the signal caused by the change in capacitance is:

[0195]

[0196] After the above operation, ΔV OUT The peak-to-peak value is:

[0197]

[0198] When there is a touch signal, the peak-to-peak value will change. If the change is detected, it can be determined that there is a touch signal. Through the above formula, the change in capacitance is converted into the change in voltage, and the change in voltage is proportional to the change in capacitance. After the voltage is converted into a digital value by an analog-to-digital converter, it is transmitted to the processor for subsequent judgment and processing.

[0199] In the above embodiment, the type of the capacitor to be measured is confirmed as self-capacitance or mutual capacitance based on the input detection signal. When the type of the capacitor to be measured is self-capacitance, the type of the capacitor to be measured is further determined as a small capacitance load or a large capacitance load. When the type of the capacitor to be measured is a small capacitance load, the capacitance change is small. By connecting the first detection module 3 to the compensation module 5 and controlling the capacitance detection circuit to operate in the first working mode, a higher detection accuracy can be obtained.

[0200] See also Figure 2 and Figure 7 Optionally, controlling the capacitance detection circuit to operate in a second operating mode includes:

[0201] The fifth switch K5, the sixth switch K6, the fourteenth switch K14 and the fifteenth switch K15 are maintained in a normally open state; the sixteenth switch K16 is maintained in a normally closed state. At this time, the connection diagram of the capacitance detection circuit is as follows: Figure 7 As shown, the first detection module 3, the driving module 6 and the charge amplification module 7 are in working state, and the second detection module 4 and the compensation module 5 are disconnected.

[0202] See also Figure 8 , Figure 8 Shown Figure 7 The timing diagram of the structure in Figure 8 Two complete working cycle timings are given in.

[0203] In the fifth time, that is Figure 8 From t0 to t1 shown, the seventh switch K7, the twelfth switch K12 and the seventeenth switch K17 are turned on, and the sixth switch K6, the eighth switch K8 to the tenth switch K10, the eleventh switch K11 and the thirteenth switch K13 are turned off, so that the capacitance detection circuit outputs the seventh voltage VCM.

[0204] At this time, the charges on each capacitor are:

[0205] Q Ctp =AVDD×C tp

[0206] Q Cf =0

[0207] Then the output voltage V of operational amplifier A1 is OUT =V CM .

[0208] In the sixth time, that is Figure 8 From t2 to t3 shown in the figure, the tenth switch K10 is turned on, the seventh switch K7, the twelfth switch K12 and the seventeenth switch K17 are turned off, and the states of the sixth switch K6, the eighth switch K8, the ninth switch K9 and the thirteenth switch K13 are maintained unchanged, so that the second current source IDACN discharges the capacitor Ctp to be measured, and the discharged charge Q dischgn for:

[0209] Q dischgn =I DACN (t3-t2)

[0210] Among them, I DACN is the current output by the second current source IDACN; t2 and t3 are the start time and end time of the second current source.

[0211] The charges on each capacitor are:

[0212] Q Ctp =AVDD×C tp -Q dischgn =AVDD×C tp -I DACN (t3-t2)

[0213] Q Cf =0

[0214] AVDD is the first voltage connected to the seventh switch K7.

[0215] In the seventh time, Figure 8 From t4 to t5, the eleventh switch K11 is turned on, and the states of the sixth switch K6 to the tenth switch K10, the thirteenth switch K13 and the seventeenth switch K17 are maintained unchanged, so that the capacitance detection circuit converts the capacitance change of the capacitor to be measured into a voltage change and outputs the voltage change V OUT .

[0216] According to the law of charge conservation:

[0217] AVDD×C tp -I DACN (t3-t2) = V CM C tp +(V CM -V OUT )C f

[0218] Get V OUT The expression is:

[0219]

[0220] If:

[0221] I DACN (t3-t2)-(AVDD-V CM )×C tp =0

[0222] Right now:

[0223] (AVDD-V CM )×C tp =I DACN (t3-t2)

[0224] At this time, the output voltage V OUT =V CM .

[0225] When the capacitance of the capacitor Ctp to be measured changes from Ctp to Ctp+ΔCtp, the output voltage of the operational amplifier A1 is V OUT1 , then VOUT The expression of 1 is:

[0226]

[0227] The signal caused by the change in capacitance is:

[0228]

[0229] In the eighth time, Figure 8 From t6 to t7, the eighth switch K8, the twelfth switch K12 and the seventeenth switch K17 are turned on, and the seventh switch K7, the ninth switch K9 to the eleventh switch K11 and the thirteenth switch K13 are turned off, so that the capacitance detection circuit outputs the seventh voltage VCM.

[0230] At this time, the charges on each capacitor are:

[0231] Q Ctp =0

[0232] Q Cf =0

[0233] Then the output voltage V of operational amplifier A1 is OUT =V CM .

[0234] In the ninth time, Figure 8 From t8 to t9 shown in FIG. 1 , the ninth switch K9 is turned on, the eighth switch K8, the twelfth switch K12 and the seventeenth switch K17 are turned off, and the states of the seventh switch K7, the tenth switch K10, the eleventh switch K11 and the thirteenth switch K13 are maintained unchanged, so that the first current source IDACP charges the capacitor to be measured Ctp, and the charged charge amount Qdischgn is:

[0235] Q dischgn =I DACP (t9-t8)

[0236] Among them, I DACP is the current output by the first current source IDACP.

[0237] The charges on each capacitor are:

[0238] Q Ctp =Q dischgn =I DACP (t9-t8)

[0239] Q Cf =0

[0240] In the tenth time, that is Figure 8From t10 to t11, the eleventh switch K11 is turned on, and the states of the seventh switch K7 to the tenth switch K10, the twelfth switch K12, the thirteenth switch K13 and the seventeenth switch K17 are maintained unchanged, so that the capacitance detection circuit converts the capacitance change of the capacitor to be measured into a voltage change and outputs the voltage change V OUT .

[0241] According to the law of charge conservation:

[0242] I DACP (t9-t8)=V CM C tp +(V CM -V OUT )C f

[0243] Get V OUT The expression is:

[0244]

[0245] If:

[0246] V CM C tp -I DACP (t9-t8)=0

[0247] Right now:

[0248] V CM C tp =I DACP (t9-t8)

[0249] At this time, the output voltage V OUT =V CM .

[0250] When the capacitance of the capacitor Ctp to be measured changes from Ctp to Ctp+ΔCtp, the output voltage of the operational amplifier A1 is V OUT1 , then V OUT1 The expression is:

[0251]

[0252] The signal caused by the change in capacitance is:

[0253]

[0254] After the above operation, ΔV OUT The peak-to-peak value is:

[0255]

[0256] When there is a touch signal, the peak-to-peak value will change. If the change is detected, it can be determined that there is a touch signal. Through the above formula, the change in capacitance is converted into the change in voltage, and the change in voltage is proportional to the change in capacitance. After the voltage is converted into a digital value by an analog-to-digital converter, it is transmitted to the processor for subsequent judgment and processing.

[0257] In the above embodiment, the type of the capacitor to be measured is confirmed as self-capacitance or mutual capacitance according to the input detection signal. When the type of the capacitor to be measured is self-capacitance, the type of the capacitor to be measured is further determined as a small capacitance load or a large capacitance load. When the type of the capacitor to be measured is a large capacitance load, the capacitance change is large. By connecting the first detection module 3 to the driving module 6 and controlling the capacitance detection circuit to work in the second working mode, the detection function of the capacitor to be measured is completed.

[0258] See also Figure 2 and Fig. 9 Optionally, when the type of the capacitance to be measured is mutual capacitance, the second detection module 4 is connected to the compensation module 5, and the capacitance detection circuit is controlled to work in a mutual capacitance detection mode, including:

[0259] The second switch K2 is turned on and the first switch K1 is turned off to connect the second detection module 4 to the compensation module 5; the seventh switch K7 to the tenth switch K10, the fourteenth switch K14, the fifteenth switch K15 and the seventeenth switch K17 are maintained in a normally open state; the eleventh switch K11, the thirteenth switch K13 and the sixteenth switch K16 are maintained in a normally closed state. At this time, the connection diagram of the capacitance detection circuit is as follows: Fig. 9 As shown, the second detection module 4, the offset module 5 and the charge amplification module 7 are in working state, and the first detection module 3 and the driving module 6 are disconnected. It should be noted that the switch signals of the third switch K3 and the sixth switch K6 are the same direction signals, and the switch signals of the fourth switch K4 and the fifth switch K5 are the same direction signals. At this time, the voltage value of the second voltage VCP is equal to the voltage value of the first voltage AVDD, and the third voltage VCN is the ground line.

[0260] See also Fig.10 , Fig.10 Shown Fig. 9 The timing diagram of the structure in Fig.10 Two complete working cycle timings are given in.

[0261] In the eleventh time, that is Fig.10 From t0 to t1 shown, the fourth switch K4, the fifth switch K5 and the twelfth switch K12 are turned on, and the third switch K3 and the sixth switch K6 are turned off. At this time, the offset capacitor Cc is connected to the first voltage AVDD, the feedback loop of the operational amplifier A1 is short-circuited through the twelfth switch K12, and the signal transmitting terminal TX is grounded. The charges on each capacitor are respectively:

[0262] Q Cm =V CM C m

[0263] Q Cc =(V CM -AVDD)C C

[0264] Q Cf =0

[0265] Then the output voltage V of operational amplifier A1 is OUT =V CM .

[0266] Among them, Q Cm is the charge of the capacitor Cm to be measured, C m is the capacitance of the capacitor to be measured Cm;

[0267] Q Cc To offset the charge of capacitor Cc, C c To offset the capacitance of capacitor Cc;

[0268] Q Cf is the charge of the feedback capacitor Cf.

[0269] In the twelfth time, that is Fig.10 From t1 to t2 shown, the fourth switch K4, the fifth switch K5 and the twelfth switch K12 are turned off, and the third switch K3 and the sixth switch K6 are turned on. At this time, the offset capacitor Cc is grounded, the feedback loop of the operational amplifier A1 is connected to the feedback capacitor Cf, and the signal transmitting terminal TX is connected to the first voltage AVDD. The charge amounts on the capacitors are:

[0270] Q Cm =(V CM -AVDD)C m

[0271] Q Cc =V CM C C

[0272] Q Cf =(V CM -V OUT )C f

[0273] According to the law of charge conservation:

[0274] V CM C m +(V CM -AVDD)C C =(V CM -AVDD)Cm +V CM C C +(V CM -V OUT )C f

[0275] Get the output voltage V of operational amplifier A1 OUT The expression is:

[0276]

[0277] If:

[0278] AVDD(C c -C m )=0

[0279] Right now:

[0280] C c =C m

[0281] At this time, the output voltage V OUT =V CM .

[0282] When the capacitance of the capacitor Cm to be measured changes from Cm to Cm-ΔCm, the output voltage of the operational amplifier A1 is V OUT1 , then V OUT1 The expression is:

[0283]

[0284] That is, the signal caused by the change in capacitance is:

[0285]

[0286] In the thirteenth time, that is Fig.10 From t2 to t3 shown in the figure, the third switch K3, the sixth switch K6 and the twelfth switch K12 are turned on, and the fourth switch K4 and the fifth switch K5 are turned off. At this time, the offset capacitor Cc is grounded, the feedback loop of the operational amplifier A1 is short-circuited, and the signal transmitting terminal TX is connected to the first voltage AVDD. The charge amounts on the capacitors are respectively:

[0287] Q Cm =(V CM -AVDD)C m

[0288] Q Cc =V CM C C

[0289] Q Cf =0

[0290] Then the output voltage V of operational amplifier A1 is OUT =V CM .

[0291] In the fourteenth time, that is Fig.10 From t3 to t4 shown, the third switch K3, the sixth switch K6 and the twelfth switch K12 are turned off, and the fourth switch K4 and the fifth switch K5 are turned on. At this time, the offset capacitor Cc is connected to the first voltage AVDD, the feedback loop of the operational amplifier A1 is connected to the feedback capacitor Cf, and the signal transmitting terminal TX is grounded. The charge amounts on the capacitors are respectively:

[0292] Q Cm =V CM C m

[0293] Q Cc =(V CM -AVDD)C C

[0294] Q Cf =(V CM -V OUT )C f

[0295] According to the law of charge conservation:

[0296] (V CM -AVDD)C m +V CM C C =V CM C m +(V CM -AVDD)C C +(V CM -V OUT )C f

[0297] Get the output voltage V of operational amplifier A1 OUT The expression is:

[0298]

[0299] If:

[0300] C C =C m

[0301] At this time, the output voltage V OUT =V CM .

[0302] When the capacitance of the capacitor Cm to be measured changes from Cm to Cm-ΔCm, the output voltage V OUT1 The expression is:

[0303]

[0304] That is, the signal caused by the change in capacitance is:

[0305]

[0306] After the above operation, ΔV OUT The peak-to-peak value is:

[0307]

[0308] When a touch signal exists, the peak-to-peak value will change. If the change is detected, it can be determined that a touch signal exists.

[0309] In the above manner, the output voltage of the operational amplifier A1 is independent of the capacitance of the capacitor to be measured, thereby offsetting the influence of the capacitor to be measured on the signal amplification module and avoiding the problem of a small mutual capacitance detection range and low detection accuracy caused by saturation of the signal amplifier.

[0310] In the above embodiment, according to the input detection signal, it is confirmed that the type of the connected capacitor to be measured is self-capacitance or mutual capacitance, and when the type of the capacitor to be measured is self-capacitance, the capacitance detection unit further determines that the type of the capacitor to be measured is a small capacitance load or a large capacitance load. When the type of the capacitor to be measured is a small capacitance load, it switches to the first working mode; when the type of the capacitor to be measured is a large capacitance load, it switches to the second working mode; when the type of the capacitor to be measured is a mutual capacitance, it switches to the mutual capacitance detection mode; thereby meeting various scenario requirements of capacitance detection.

[0311] See also Fig.11 In some embodiments, the present application further provides a touch control chip, which includes the capacitance detection circuit provided in the above embodiments.

[0312] See also Fig.12 In some embodiments, the present application also provides an electronic device, which includes: a display screen, a touch screen, and a touch chip.

[0313] The touch screen is arranged on the surface of the display screen. A plurality of mutual capacitors and / or a plurality of self capacitors are arranged on the touch screen. When the user touches the touch screen and generates a touch signal, the capacitance values ​​of the mutual capacitors and / or the self capacitors will change.

[0314] The touch control chip adopts the touch control chip provided in the above embodiment, is connected to the touch screen, and is used to detect each mutual capacitance and / or each individual capacitance according to the touch signal of the touch screen.

[0315] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0316] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A capacitance detection circuit, characterized in that: The circuit comprises: a load identification module, a timing control module, a first detection module, a second detection module, a compensation module, a driving module and a charge amplification module; The load identification module is used to confirm whether the type of the connected capacitor to be tested is self-capacitance or mutual capacitance according to the detection signal input from the outside, and output a control signal according to the confirmation result; The first detection module includes a first switch; one end of the first switch is connected to one end of the capacitor to be measured, and the other end of the first switch is connected to the offset module and the driving module; the other end of the capacitor to be measured is grounded; wherein the type of the capacitor to be measured is self-capacitance; The timing control module is used to output a corresponding switch signal according to the control signal, and when the type of the capacitor to be measured is self-capacitance, connect the first detection module to the cancellation module or the driving module; or when the type of the capacitor to be measured is mutual capacitance, connect the second detection module to the cancellation module; The offset module includes an offset capacitor, a fifth switch and a sixth switch; one end of the offset capacitor is connected to the first detection module, the second detection module and the charge amplification module respectively, and the other end of the offset capacitor is connected to one end of the fifth switch and one end of the sixth switch respectively; the other end of the fifth switch is connected to the second voltage; the other end of the sixth switch is connected to the third voltage; The driving module includes a first current source, a second current source, a seventh switch, an eighth switch, a ninth switch and a tenth switch; one end of the seventh switch is connected to the first voltage, and one end of the eighth switch is connected to the ground line; the input end of the first current source is connected to the fourth voltage, and the output end of the first current source is connected to one end of the ninth switch; the input end of the second current source is connected to one end of the tenth switch, and the output end of the second current source is connected to the ground line; the other ends of the seventh switch, the eighth switch, the ninth switch and the tenth switch are respectively connected to the first detection module and the charge amplification module; The charge amplification module includes an operational amplifier, a feedback capacitor, an eleventh switch, a twelfth switch, a thirteenth switch, a fourteenth switch, a fifteenth switch, a sixteenth switch and a seventeenth switch; one end of the eleventh switch is connected to the offset module and the driving module, and the other end of the eleventh switch is connected to the inverting input end of the operational amplifier; the inverting input end of the operational amplifier is also connected to one end of the feedback capacitor and one end of the twelfth switch respectively, and the other end of the twelfth switch is connected to the output end of the operational amplifier; the thirteenth switch is connected in series between the output end of the operational amplifier and the other end of the feedback capacitor; the in-phase input end of the operational amplifier is respectively connected to one end of the fourteenth switch, the fifteenth switch and the sixteenth switch, the other end of the fourteenth switch is connected to the detection voltage, the other end of the fifteenth switch is connected to the sixth voltage, and the other end of the sixteenth switch is connected to the seventh voltage; the other end of the feedback capacitor is also connected to one end of the seventeenth switch, and the other end of the seventeenth switch is connected to the seventh voltage; The charge amplification module is used to amplify the output signal of the cancellation module or the driving module, and adjust the connection state of the feedback loop of the charge amplification module according to the switch signal.

2. The capacitance detection circuit according to claim 1, characterized in that: The load identification module comprises: A capacitance detection unit, used for further determining whether the type of the capacitor to be measured is a small capacitance load or a large capacitance load when the type of the capacitor to be measured is a self capacitance; The timing control module is also used to output a corresponding switching signal when the type of the capacitor to be measured is a small capacitance load, so that the first detection module is connected to the compensation module; when the type of the capacitor to be measured is a large capacitance load, output a corresponding switching signal so that the first detection module is connected to the driving module.

3. The capacitance detection circuit according to claim 2, characterized in that: The second detection module includes a signal sending end, a signal receiving end and a second switch; The capacitor to be measured is connected in series between the signal transmitting end and the signal receiving end, wherein the type of the capacitor to be measured is mutual capacitance; One end of the second switch is connected to the signal receiving end, and the other end of the second switch is connected to the cancellation module.

4. The capacitance detection circuit according to claim 3, characterized in that: The second detection module also includes a third switch and a fourth switch; One end of the third switch is connected to the first voltage, and the other end of the third switch is connected to the signal sending end; One end of the fourth switch is connected to the ground line, and the other end of the fourth switch is connected to the signal sending end.

5. A capacitance detection method, characterized in that: Applicable to the capacitance detection circuit according to any one of claims 1 to 4, the method comprising: According to the detection signal input from the outside, confirm whether the type of the connected capacitor to be tested is self-capacitance or mutual capacitance, and output a control signal according to the confirmation result; A switching signal corresponding to the control signal output is configured to connect the first detection module to the compensation module or the driving module and control the capacitance detection circuit to operate in a self-capacitance detection mode when the capacitance to be measured is self-capacitance; or connect the second detection module to the compensation module and control the capacitance detection circuit to operate in a mutual capacitance detection mode when the capacitance to be measured is mutual capacitance.

6. The capacitance detection method according to claim 5, characterized in that: The self-capacitance detection mode includes a first working mode and a second working mode; When the type of the capacitor to be measured is self-capacitance, connecting the first detection module to the offset module or the driving module includes: A capacitance detection unit is used to detect the capacitance of the capacitor to be measured, and the type of the capacitor to be measured is determined to be a small capacitance load or a large capacitance load according to the capacitance; When the type of the capacitor to be measured is a small capacitance load, the first switch is turned on and the second switch is turned off, the first detection module is connected to the offset module, and the capacitance detection circuit is controlled to work in the first working mode; When the type of the capacitor to be measured is a large capacitance load, the first switch is turned on and the second switch is turned off, the first detection module is connected to the driving module, and the capacitance detection circuit is controlled to work in the second working mode.

7. The capacitance detection method according to claim 6, characterized in that: The controlling the capacitance detection circuit to operate in a first operating mode includes: Maintaining the seventh switch, the eighth switch, the ninth switch, the tenth switch and the sixteenth switch in a normally open state; Maintain the eleventh switch in a normally closed state; In a first time, the sixth switch, the twelfth switch, the fifteenth switch and the seventeenth switch are turned on, and the fifth switch, the thirteenth switch and the fourteenth switch are turned off, so that the capacitance detection circuit outputs a seventh voltage; During the second time, the fifth switch, the thirteenth switch and the fourteenth switch are turned on, and the sixth switch, the twelfth switch, the fifteenth switch and the seventeenth switch are turned off, so that the capacitance detection circuit converts the capacitance change of the capacitor to be measured into a voltage change and outputs the voltage change; During the third time, the fifth switch, the twelfth switch, the fourteenth switch and the seventeenth switch are turned on, and the sixth switch, the thirteenth switch and the fifteenth switch are turned off, so that the capacitance detection circuit outputs a seventh voltage; During the fourth time, the sixth switch, the thirteenth switch and the fifteenth switch are turned on, and the fifth switch, the twelfth switch, the fourteenth switch and the seventeenth switch are turned off, so that the capacitance detection circuit converts the capacitance change of the capacitor to be measured into a voltage change and outputs the voltage change.

8. The capacitance detection method according to claim 6, characterized in that: The controlling the capacitance detection circuit to operate in the second operating mode includes: Maintaining the fifth switch, the sixth switch, the fourteenth switch and the fifteenth switch in a normally open state; Maintain the sixteenth switch in a normally closed state; During the fifth time, the seventh switch, the twelfth switch and the seventeenth switch are turned on, and the sixth switch, the eighth switch, the ninth switch, the tenth switch, the eleventh switch and the thirteenth switch are turned off, so that the capacitance detection circuit outputs a seventh voltage; During the sixth time, the tenth switch is turned on, the seventh switch, the twelfth switch and the seventeenth switch are turned off, and the states of the sixth switch, the eighth switch, the ninth switch and the thirteenth switch are maintained unchanged, so that the second current source discharges the capacitor to be measured; During the seventh time, the eleventh switch is turned on, and the states of the sixth switch, the seventh switch, the eighth switch, the ninth switch, the tenth switch, the thirteenth switch and the seventeenth switch are maintained unchanged, so that the capacitance detection circuit converts the capacitance change of the capacitor to be measured into a voltage change and outputs the voltage change; During an eighth time, the eighth switch, the twelfth switch and the seventeenth switch are turned on, and the seventh switch, the ninth switch, the tenth switch, the eleventh switch and the thirteenth switch are turned off, so that the capacitance detection circuit outputs a seventh voltage; During the ninth time, the ninth switch is turned on, the eighth switch, the twelfth switch and the seventeenth switch are turned off, and the states of the seventh switch, the tenth switch, the eleventh switch and the thirteenth switch are maintained unchanged, so that the first current source charges the capacitor to be measured; During the tenth time, the eleventh switch is turned on, and the states of the seventh switch, the eighth switch, the ninth switch, the tenth switch, the twelfth switch, the thirteenth switch and the seventeenth switch are maintained unchanged, so that the capacitance detection circuit converts the capacitance change of the capacitor to be measured into a voltage change and outputs the voltage change.

9. The capacitance detection method according to claim 5, characterized in that: When the type of the capacitance to be measured is mutual capacitance, connecting the second detection module to the compensation module and controlling the capacitance detection circuit to operate in a mutual capacitance detection mode include: Turning on the second switch and turning off the first switch to connect the second detection module to the compensation module; Maintaining the seventh switch, the eighth switch, the ninth switch, the tenth switch, the fourteenth switch, the fifteenth switch, and the seventeenth switch in a normally open state; Maintain the eleventh switch, the thirteenth switch and the sixteenth switch in a normally closed state; During the eleventh time, the fourth switch, the fifth switch and the twelfth switch are turned on, and the third switch and the sixth switch are turned off, so that the capacitance detection circuit outputs a seventh voltage; During the twelfth time, the third switch and the sixth switch are turned on, and the fourth switch, the fifth switch and the twelfth switch are turned off, so that the capacitance detection circuit converts the capacitance change of the capacitor to be measured into a voltage change and outputs the voltage change; During the thirteenth time, the third switch, the sixth switch and the twelfth switch are turned on, and the fourth switch and the fifth switch are turned off, so that the capacitance detection circuit outputs a seventh voltage; In the fourteenth time, the fourth switch and the fifth switch are turned on, and the third switch, the sixth switch and the twelfth switch are turned off, so that the capacitance detection circuit converts the capacitance change of the capacitor to be measured into a voltage change and outputs the voltage change.

10. A touch chip, characterized in that: The invention comprises the capacitance detection circuit according to any one of claims 1 to 4.

11. An electronic device, characterized in that: include: A display screen, and a touch screen arranged on the surface of the display screen; the touch screen is provided with a plurality of mutual capacitors and / or a plurality of self capacitors; The touch control chip described in claim 10 is connected to the touch screen, and is used to detect each of the mutual capacitances and / or each of the self capacitances according to the touch signal of the touch screen.