Capacitance detection circuit, integrated circuit, electronic device and capacitance detection method

By combining the integrating circuit, voltage detection circuit and capacitance adjustment circuit in the capacitance detection circuit, the equivalent capacitance of the integration capacitor is adjusted, which solves the problem of slow detection speed or overflow of the traditional capacitance detection integrated circuit under different working conditions, and achieves fast and Accurate capacitance detection.

CN114924128BActive Publication Date: 2024-08-27CHIPSEA TECH SHENZHEN CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202210351395.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-21
Publication Date
2024-08-27
Estimated Expiration
2040-05-21

AI Technical Summary

Technical Problem

Traditional capacitance detection integrated circuits are difficult to cope with capacitance changes under different working conditions, resulting in slow detection speed or integral overflow, and cannot effectively determine touch events.

Method used

A capacitance detection circuit including an integrating circuit, a voltage detection circuit and a capacitance adjustment circuit is used to detect the accumulated voltage of the integrating capacitor and output an adjustment signal to adjust the equivalent capacitance of the integrating capacitor to adaptively adjust the accumulated voltage of the next integration and improve detection accuracy. and speed.

Benefits of technology

It achieves fast and accurate detection under different capacitance changing conditions, avoids the problem of slow detection speed or integral overflow, and improves the detection ability of touch events.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114924128B
    Figure CN114924128B
Patent Text Reader

Abstract

The embodiment of the present application provides a capacitance detection circuit, an integrated circuit, an electronic device, and a capacitance detection method. The capacitance detection circuit includes an integration circuit, a voltage detection circuit, and a capacitance adjustment circuit. The integration circuit includes a comparator and an integration capacitor; the voltage detection circuit is connected to the integration circuit to detect the accumulated voltage of a single integration of the integration capacitor, and outputs an adjustment signal according to the accumulated voltage; the adjustment signal includes a first adjustment signal; the voltage detection circuit is used to output a first adjustment signal when the accumulated voltage is less than a first preset threshold voltage, the capacitance adjustment circuit is used to adjust the equivalent capacitance of the integration capacitor according to the adjustment signal to adjust the accumulated voltage of the next integration of the integration capacitor, and the capacitance adjustment circuit is used to reduce the equivalent capacitance of the integration capacitor according to the first adjustment signal to increase the accumulated voltage of the next integration of the integration capacitor. The capacitance detection circuit provided in the embodiment of the present application can realize accurate detection of large capacitance and fast detection of small capacitance.
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, an integrated circuit, an electronic device, and a capacitance detection method. Background Art

[0002] After years of technological evolution and mass production testing, touch button technology is becoming more and more mature. Due to its advantages such as ease of use, fashion and low cost, more and more electronic products are turning from traditional mechanical buttons to touch buttons. Touch buttons detect the occurrence of touch events by detecting the change in capacitance on the button through a capacitive detection integrated circuit. The change in button capacitance will cause the capacitance change on the detection pin of the capacitive detection integrated circuit, and then detect the touch event.

[0003] However, the capacitance change on the detection pin is different under different working conditions, and traditional capacitance detection integrated circuits are often difficult to cope with the capacitance change under different working conditions. For example, when the capacitance change on the detection pin is small, multiple integrations are required to reach the touch activation threshold, resulting in slow detection speed; when the capacitance change on the detection pin is large, it will cause integration overflow. Therefore, the existing technology needs to be improved. Summary of the invention

[0004] In view of the above problems, the embodiments of the present application provide a capacitance detection circuit, an integrated circuit, an electronic device and a capacitance detection method to solve the above technical problems.

[0005] The embodiment of the present application is implemented by adopting the following technical solutions:

[0006] A capacitance detection circuit comprises an integration circuit, a voltage detection circuit and a capacitance adjustment circuit, wherein the integration circuit comprises a comparator and an integration capacitor; the integration capacitor is connected between an input terminal and an output terminal of the comparator; the voltage detection circuit is connected to the integration circuit for detecting an accumulated voltage of a single integration of the integration capacitor, and outputting an adjustment signal according to the accumulated voltage; wherein the adjustment signal comprises a first adjustment signal; the voltage detection circuit is used to output a first adjustment signal when the accumulated voltage is less than a first preset threshold voltage; the capacitance adjustment voltage is connected to the voltage detection circuit and the integration circuit, and is used to adjust an equivalent capacitance of the integration capacitor according to the adjustment signal, so as to adjust an accumulated voltage of the next integration of the integration capacitor; wherein the capacitance adjustment circuit is used to reduce the equivalent capacitance of the integration capacitor according to the first adjustment signal, so as to increase an accumulated voltage of the next integration of the integration capacitor.

[0007] In some embodiments, the capacitance adjustment circuit is further configured to reduce the equivalent capacitance of the integration capacitor according to the first adjustment signal, so as to increase the accumulated voltage of the integration capacitor integrated next time to the first preset voltage.

[0008] In some embodiments, the voltage detection circuit is also used to adjust the size of the first adjustment signal according to the size of the accumulated voltage, wherein the first adjustment signal is positively correlated with the accumulated voltage; the capacitance adjustment circuit is also used to gradually reduce the equivalent capacitance of the integral capacitor when the first adjustment signal decreases.

[0009] In some embodiments, the regulation signal is a current regulation signal; the capacitance regulation circuit includes a transconductance amplifier, a first resistor and a second resistor, the first resistor is connected between the first input terminal and the second input terminal of the transconductance amplifier, the second resistor is connected between the output terminal of the transconductance amplifier and the first input terminal of the transconductance amplifier, one end of the integrating capacitor is connected to the second input terminal of the transconductance amplifier and the other end is connected to the output terminal of the comparator, the first input terminal of the transconductance amplifier is also connected to the input terminal of the comparator, and the current input terminal of the transconductance amplifier is connected to the voltage detection circuit to receive the current regulation signal.

[0010] In some embodiments, the voltage detection circuit includes a step detection circuit, a quantizer, and a current control circuit. The compensation detection circuit is connected to the output end of the comparator, and is used to detect the accumulated voltage of a single integration of the integrating capacitor; the quantizer is connected to the step detection circuit, and is used to output a voltage regulation signal according to the accumulated voltage; the current control circuit is connected to the quantizer, and is used to output a current regulation signal to the transconductance amplifier according to the voltage regulation signal.

[0011] In some embodiments, the capacitance detection circuit also includes a first switched capacitor circuit, a second switched capacitor circuit and a second switched capacitor circuit; one end of the first switched capacitor circuit is used to receive an input signal and the other end is connected to an integration circuit; one end of the second switched capacitor circuit is used to receive an input signal and the other end is connected to an integration circuit; wherein the integration directions of the first switched capacitor circuit and the second switched capacitor circuit are opposite, and the first switched capacitor circuit is also used to connect to a detection pin; the magnitude of the accumulated voltage is positively correlated with the capacitance change of the detection pin.

[0012] In some embodiments, the first switch capacitor circuit includes a first capacitor, a first switch, a second switch, a third switch, a fourth switch, and a fifth switch; the first end of the first capacitor is connected to one end of the first switch, the other end of the first switch is connected to one end of the second switch, the other end of the second switch is used to receive an input signal, the first end of the first capacitor is also grounded through the third switch, the second end of the first capacitor is connected to the integration circuit through the fourth capacitor, the second end of the first capacitor is also grounded through the fifth switch, and the connection node between the first switch and the second switch is used to connect the detection pin;

[0013] The second switch capacitor circuit includes a second capacitor, a third capacitor, a sixth switch, a seventh switch and an eighth switch; one end of the sixth switch is used to receive an input signal, and the other end is connected to one end of the seventh switch, the other end of the seventh switch is connected to one end of the eighth switch, and the other end of the eighth switch is connected to the integration circuit, the first end of the second capacitor is connected between the seventh switch and the eighth switch, and the second end is grounded, and the first end of the third capacitor is connected between the sixth switch and the seventh switch, and the second end is grounded.

[0014] An embodiment of the present application also provides an integrated circuit, comprising any of the above-mentioned capacitance detection circuits.

[0015] An embodiment of the present application also provides an electronic device, including a device body and the above-mentioned integrated circuit arranged in the device body.

[0016] An embodiment of the present application also provides a capacitance detection method, which is applied to any of the above-mentioned capacitance detection circuits, the method comprising detecting the accumulated voltage of a single integration of an integrating capacitor, and outputting an adjustment signal according to the accumulated voltage; wherein the adjustment signal comprises a first adjustment signal; when the accumulated voltage is less than a first preset threshold voltage, the first adjustment signal is output and the equivalent capacitance of the integrating capacitor is adjusted according to the adjustment signal to adjust the accumulated voltage of the next integration of the integrating capacitor; wherein the equivalent capacitance of the integrating capacitor is reduced according to the first adjustment signal to increase the accumulated voltage of the next integration of the integrating capacitor.

[0017] The embodiments of the present application provide a capacitance detection circuit, an integrated circuit, an electronic device, and a capacitance detection method. The capacitance detection circuit is provided with an integration circuit, a voltage detection circuit, and a capacitance adjustment circuit; the integration circuit includes a comparator and an integration capacitor, and the integration capacitor is connected between the input terminal and the output terminal of the comparator; the voltage detection circuit detects the accumulated voltage of a single integration of the integration capacitor, and outputs an adjustment signal according to the accumulated voltage; the adjustment signal includes a first adjustment signal; the voltage detection circuit is used to output a first adjustment signal when the accumulated voltage is less than a first preset threshold voltage, and then adjust the equivalent capacitance of the integration capacitor according to the adjustment signal through the capacitance adjustment circuit to adjust the accumulated voltage of the next integration of the integration capacitor, and the capacitance adjustment circuit is used to reduce the equivalent capacitance of the integration capacitor according to the first adjustment signal to increase the accumulated voltage of the next integration of the integration capacitor; so that the capacitance detection circuit can adaptively adjust the next accumulated voltage of the integration capacitor according to the single accumulated voltage of the integration capacitor, for example, increase the next accumulated voltage of the integration capacitor when the single accumulated voltage of the integration capacitor is small, or reduce the next accumulated voltage of the integration capacitor when the single accumulated voltage of the integration capacitor is large. This avoids the problem of slow detection speed caused by multiple integrations required to reach the touch threshold when the capacitance changes greatly, or the problem of integral overflow when the capacitance changes greatly, thereby achieving accurate detection of large capacitance and fast detection of small capacitance.

[0018] These and other aspects of the present application will become more clearly understood in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, 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 application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 A schematic diagram of a capacitance sensing system provided in an embodiment of the present application is shown.

[0021] Figure 2 A module block diagram of a capacitance detection circuit provided in an embodiment of the present application is shown.

[0022] Figure 3 A schematic diagram of cumulative voltage adjustment provided in an embodiment of the present application is shown.

[0023] Figure 4 Another schematic diagram of cumulative voltage adjustment provided in an embodiment of the present application is shown.

[0024] Figure 5 Another schematic diagram of cumulative voltage adjustment provided in an embodiment of the present application is shown.

[0025] Figure 6 Another schematic diagram of cumulative voltage adjustment provided in an embodiment of the present application is shown.

[0026] Figure 7 A schematic diagram of the structure of a capacitance detection circuit provided in an embodiment of the present application is shown.

[0027] Figure 8 A schematic diagram of the integral capacitance multiplication provided in an embodiment of the present application is shown.

[0028] Fig. 9 A schematic diagram of the structure of an integrated circuit provided in an embodiment of the present application is shown.

[0029] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown.

[0030] Fig.11 A flow chart of a capacitance detection method provided by the present application is shown. DETAILED DESCRIPTION

[0031] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.

[0032] In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.

[0033] After years of technological evolution and mass production testing, touch button technology is becoming more and more mature. Due to its advantages such as ease of use, fashion and low cost, more and more electronic products are turning from traditional mechanical buttons to touch buttons. Touch buttons use a capacitive detection chip to detect the change in capacitance on the button to determine the occurrence of a touch event. The change in button capacitance will cause the capacitance change on the detection pin of the capacitive detection chip, and then detect the touch event.

[0034] Existing capacitive touch technology can be divided into two types: self-capacitance and mutual-capacitance. There are two main ways to implement self-capacitance detection technology:

[0035] 1. Use pull-up resistors or current to charge and discharge the capacitor, and implement capacitive key detection based on the differentiation of system time constants;

[0036] 2. Based on the charge sharing principle, the capacitance information is converted into a pull-up or pull-down resistor, and then the obtained voltage or current signal is processed by the signal processing circuit.

[0037] However, the capacitance change on the detection pin is different under different working conditions, and traditional capacitance detection integrated circuits are often difficult to cope with the capacitance change under different working conditions. For example, when the capacitance change on the detection pin is small, multiple integrations are required to reach the touch activation threshold, resulting in slow detection speed; when the capacitance change on the detection pin is large, it will cause integration overflow. Therefore, the existing technology needs to be improved.

[0038] In order to solve the above problems, the inventor has proposed a capacitance detection circuit, an integrated circuit, an electronic device and a capacitance detection method in the embodiment of the present application after long-term research. The capacitance detection circuit is provided with an integration circuit, a voltage detection circuit and a capacitance adjustment circuit; the integration circuit includes a comparator and an integration capacitor, and the integration capacitor is connected between the input and output ends of the comparator; the voltage detection circuit detects the accumulated voltage of the integration capacitor for a single integration, and outputs an adjustment signal according to the accumulated voltage; the capacitance adjustment circuit then adjusts the equivalent capacitance of the integration capacitor according to the adjustment signal to adjust the accumulated voltage of the next integration of the integration capacitor; the capacitance detection circuit can adaptively adjust the next accumulated voltage of the integration capacitor according to the single accumulated voltage of the integration capacitor, for example, when the single accumulated voltage of the integration capacitor is small, the next accumulated voltage of the integration capacitor is increased, and when the single accumulated voltage of the integration capacitor is large, the next accumulated voltage of the integration capacitor is reduced. In this way, it is avoided that when the capacitance changes greatly, multiple integrations are required to reach the touch threshold, resulting in slow detection speed, and when the capacitance changes greatly, the problem of integral overflow is caused, thereby realizing accurate detection of large capacitance and fast detection of small capacitance.

[0039] like Figure 1 As shown, Figure 1 The capacitance sensing system 10 provided by an embodiment of the present invention is schematically shown. The system 10 includes an excitation source (Excitation Source) 11, a capacitance voltage converter (Capacitor-to-VoltageConverter, CVC) unit 12, and an analog signal processing (Analog Signal Process, ASP) unit 13 connected in sequence. Among them, the CVC unit 12 includes a detection pin TK, and the detection pin TK is connected to an external sensor 20, and the sensor 20 can be a capacitive sensor. When a touch event occurs, the signal output by the sensor 20 will cause a capacitance change on the detection pin TK. The CVC unit 12 converts the capacitance change on the detection pin TK into a voltage signal and outputs a signal Vout, and the ASP unit 13 quantizes the output signal Vout, and the ASP unit 13 is connected to an external judgment circuit 30, so that the external judgment circuit 30 judges the occurrence of a touch event based on this. Specifically, when no touch event occurs, the ASP unit 13 outputs a reference signal, and the judgment circuit 30 records the reference signal; the judgment circuit 30 simultaneously detects the current signal output by the ASP unit, and judges whether a touch event occurs at this time according to the voltage difference between the current signal and the reference signal. For example, when the voltage difference between the current signal and the reference signal is higher than a preset threshold, it can be determined that a touch event occurs at this time. In the embodiment of the present application, the capacitance change caused by the touch event on the detection pin TK is collectively referred to as the touch capacitance Ctk.

[0040] The ASP unit 13 may be, but is not limited to, an analog-to-digital converter (ADC), a comparator, and a voltage-controlled oscillator (VCO). The ASP unit 13 may be selected based on the needs of the analog back-end circuit and is not limited here.

[0041] like Figure 2 As shown, based on the above-mentioned capacitance sensing system 10, an embodiment of the present application provides a capacitance detection circuit 100, which is specifically applied to the above-mentioned CVC unit and is used to convert a capacitance signal into a voltage signal output.

[0042] The capacitance detection circuit 100 includes an integration circuit 110, a voltage detection circuit 120, and a capacitance adjustment circuit 130. The integration circuit 110 includes a comparator 111 and an integration capacitor 112, and the integration capacitor 112 is connected between the input terminal and the output terminal of the comparator 111; the voltage detection circuit 120 is connected to the integration circuit 110, and is used to detect the accumulated voltage of the single integration of the integration capacitor 112, and output an adjustment signal according to the accumulated voltage; the capacitance adjustment circuit 130 is connected to the voltage detection circuit 120 and the integration circuit 110, and is used to adjust the equivalent capacitance of the integration capacitor 112 according to the adjustment signal, so as to adjust the accumulated voltage of the next integration of the integration capacitor 112.

[0043] Normally, when the integration circuit is working, the touch capacitor Ctk will cause the voltage across the integration capacitor 112 to change. In the traditional capacitance detection circuit, the larger the touch capacitor Ctk, the larger the voltage difference across the integration capacitor 112 after a single integration, that is, the larger the voltage accumulated across the integration capacitor 112, so that the voltage accumulated across the integration capacitor 112 is linearly related to the touch capacitor Ctk, which leads to the poor adaptability of the traditional capacitance detection circuit to different touch capacitors Ctk. Specifically, when the touch capacitor Ctk is large, the voltage accumulated across the integration capacitor 112 is large, which will cause the final integral to overflow or saturate; when the touch capacitor Ctk is small, the voltage accumulated across the integration capacitor 112 is small, and multiple integrations are required to reach the touch threshold of the capacitive button, resulting in a slow detection speed of the touch event.

[0044] In the embodiment of the present application, the voltage detection circuit 120 detects the accumulated voltage of the single integration of the integral capacitor 112, and outputs an adjustment signal according to the accumulated voltage; the capacitance adjustment circuit 130 then adjusts the equivalent capacitance of the integral capacitor 112 according to the adjustment signal, and then adjusts the accumulated voltage of the next integration of the integral capacitor 112, so that the capacitance detection circuit 100 can adaptively adjust the next accumulated voltage of the integral capacitor 112 according to the single accumulated voltage of the integral capacitor 112. For example, when the single accumulated voltage of the integral capacitor 112 is small, the next accumulated voltage of the integral capacitor 112 is increased, so that when the touch capacitance Ctk is small, the number of integrations can be reduced, and a quick detection of a touch event is achieved; when the single accumulated voltage of the integral capacitor 112 is large, the next accumulated voltage of the integral capacitor 112 is reduced, so as to avoid overflow or saturation of the integral when the touch capacitance Ctk is large, and an accurate detection of a touch event is achieved.

[0045] Specifically, the adjustment signal includes a first adjustment signal. The voltage detection circuit 120 is used to output a first adjustment signal when the accumulated voltage of the single integration of the integration capacitor 112 is less than the first preset threshold voltage, and the capacitance adjustment circuit 130 is used to reduce the equivalent capacitance of the integration capacitor 112 according to the first adjustment signal to increase the accumulated voltage of the next integration of the integration capacitor 112. In this embodiment, when the accumulated voltage is less than the first preset threshold voltage, it indicates that when the integration circuit 110 integrates, the integration capacitor 112 needs more integration times to accumulate the accumulated voltage to reach the touch threshold, which will result in a slow detection speed of the touch event; therefore, in this embodiment, when the single accumulated voltage of the integration capacitor 112 is small, the next accumulated voltage of the integration capacitor 112 is increased, so that when the touch capacitance Ctk is small, the number of integration times can be reduced, thereby realizing rapid detection of touch events.

[0046] Furthermore, the adjustment signal also includes a second adjustment signal, and the voltage detection circuit 120 is also used to output a second adjustment signal when the accumulated voltage of the single integration of the integration capacitor 112 is greater than the second preset threshold voltage; the capacitance adjustment circuit 130 is also used to increase the equivalent capacitance of the integration capacitor 112 according to the second adjustment signal to reduce the accumulated voltage of the next integration of the integration capacitor 112. Among them, the first preset threshold voltage is less than or equal to the second preset threshold voltage. When the accumulated voltage is greater than the second preset threshold voltage, it indicates that when the integration circuit 110 integrates, the integration capacitor 112 accumulates the accumulated voltage, which will cause the integral overflow or saturation; therefore, this embodiment can further reduce the next accumulated voltage of the integration capacitor 112 when the single accumulated voltage of the integration capacitor 112 is large, so as to avoid the integral overflow or saturation when the touch capacitance Ctk is large, and realize the accurate detection of the touch event.

[0047] The voltage range between the first preset threshold voltage and the second preset threshold voltage is an appropriate voltage range for the accumulated voltage of a single integration. Within this voltage range, the capacitance detection circuit 100 can achieve accurate touch detection with an appropriate number of integrations based on the single integration accumulation of the voltage. It should be noted that the touch threshold is artificially set. When the voltage across the integration capacitor 112 reaches a preset touch threshold voltage, it means that the multiple integrations of the integration circuit 110 have reached the touch threshold. Therefore, the first preset threshold voltage and the second preset threshold voltage can be set according to the touch threshold to achieve fast and accurate touch detection.

[0048] In this embodiment, the equivalent capacitance between the input and output terminals of the comparator is referred to as the equivalent capacitance of the integrating capacitor 112. During the integration process of the integrating circuit 110, the size of the equivalent capacitance of the integrating capacitor 112 will affect the amount of charge accumulated by the integrating capacitor 112 each time it is integrated, that is, the voltage accumulated across the integrating capacitor 112, and the equivalent capacitance of the integrating capacitor 112 is inversely proportional to the accumulated voltage of each integration, and the larger the equivalent capacitance, the smaller the accumulated voltage of a single integration. Therefore, when the capacitance adjustment circuit 130 receives the first adjustment signal, the accumulated voltage of the next integration of the integrating capacitor 112 can be increased by reducing the equivalent capacitance of the integrating capacitor 112; when the capacitance adjustment circuit 130 receives the second adjustment signal, the accumulated voltage of the next integration of the integrating capacitor 112 can be reduced by increasing the equivalent capacitance of the integrating capacitor 112.

[0049] Furthermore, the capacitance adjustment circuit 130 is also used to reduce the equivalent capacitance of the integrating capacitor 112 according to the first adjustment signal so as to increase the accumulated voltage of the next integration of the integrating capacitor 112 to the first preset voltage; or to increase the equivalent capacitance of the integrating capacitor 112 according to the second adjustment signal so as to reduce the accumulated voltage of the next integration of the integrating capacitor 112 to the second preset voltage.

[0050] Among them, the first preset voltage and the second preset voltage are both within the voltage range between the first preset threshold voltage and the second preset threshold voltage. For example, the first preset voltage may be greater than or equal to the first preset threshold voltage, and the second preset voltage may be less than or equal to the second preset threshold voltage. Optionally, the first preset voltage and the second preset voltage may be equal or unequal. Within the voltage range between the first preset voltage and the second preset voltage, the capacitance detection circuit 100 can achieve accurate touch detection with the optimal number of integrations based on a single integration accumulation of the voltage.

[0051] like Figure 2 and Figure 3 As shown, Figure 3 Schematic diagram of adjusting the accumulated voltage when the accumulated voltage of a single integration is less than the first preset threshold voltage. THis the touch threshold voltage, U BA is the initial accumulated voltage, U CB is the adjusted accumulated voltage, and U1 is the first preset threshold voltage. Figure 3 It can be seen that when the touch capacitance Ctk is small, the initial accumulated voltage U of the integration circuit 110 is BA is less than the first preset threshold voltage U1. After the capacitance adjustment circuit 130 adjusts the equivalent capacitance of the integral capacitor 112, the next integrated accumulated voltage U CB will be greater than the initial accumulated voltage U BA , the accumulated voltage U of the next integration CB That is, the first preset voltage will be used as the cumulative voltage U in the subsequent integration. CB The same voltage value is continuously accumulated on the integrating capacitor 112 until the voltage across the integrating capacitor 112 reaches the touch threshold voltage U TH In this process, the capacitance detection circuit 100 can reach the touch threshold more quickly with fewer integration times, and achieve fast detection when the touch capacitance Ctk is small.

[0052] like Figure 2 and Figure 4 As shown, Figure 4 Schematic diagram of adjusting the accumulated voltage when the accumulated voltage of a single integration is greater than the second preset threshold voltage. TH is the touch threshold voltage, U BA is the initial accumulated voltage, U CB is the adjusted accumulated voltage, and U2 is the second preset threshold voltage. Figure 4 It can be seen that when the touch capacitance Ctk is large, the initial accumulated voltage U BA is greater than the second preset threshold voltage U2. After the capacitance adjustment circuit 130 adjusts the equivalent capacitance of the integral capacitor 112, the next integrated accumulated voltage U CB Will be less than the initial accumulated voltage U BA , cumulative voltage U CB That is, the second preset voltage will be accumulated as voltage U in the subsequent integration. CB The same voltage value is continuously accumulated on the integrating capacitor 112 until the voltage across the integrating capacitor 112 reaches the touch threshold voltage U TH In this process, the capacitance detection circuit 100 can avoid integration overflow or saturation, thereby achieving accurate touch detection when the touch capacitance Ctk is large.

[0053] In some embodiments, the voltage detection circuit 120 is further used to adjust the magnitude of the first adjustment signal or the second adjustment signal according to the magnitude of the accumulated voltage; the capacitance adjustment circuit 130 is further used to gradually reduce the equivalent capacitance of the integral capacitor 112 when the first adjustment signal decreases; or to gradually increase the equivalent capacitance of the integral capacitor 112 when the second adjustment signal increases. The first adjustment signal and the second adjustment signal are respectively positively correlated with the accumulated voltage.

[0054] When the touch capacitance Ctk is small, the accumulated voltage of the single integration of the integration circuit 110 is less than the first preset threshold voltage. In the first adjustment process of the accumulated voltage, the voltage detection circuit 120 can output the initial first adjustment signal according to the initial accumulated voltage, triggering the capacitance adjustment circuit 130 to reduce the equivalent capacitance of the integration capacitor 112 from the initial capacitance value to the first capacitance value, thereby increasing the second accumulated voltage of the second integration from the initial voltage value to the second voltage value. In the second adjustment process of the accumulated voltage, since the second accumulated voltage at this time is greater than the initial accumulated voltage, the voltage detection circuit 120 can output a secondary first adjustment signal according to the second accumulated voltage, and the secondary first adjustment signal is greater than the initial first adjustment signal. When the capacitance adjustment signal receives the secondary first adjustment signal, the equivalent capacitance of the integration capacitor 112 is reduced from the first capacitance value to the second capacitance value, thereby increasing the third accumulated voltage of the third integration from the second voltage value to the third voltage value. In the subsequent integration process, the equivalent capacitance of the integration capacitor 112 is gradually reduced, and the accumulated voltage of the single integration is gradually increased, so that the accumulated voltage of the single integration gradually approaches the first preset voltage, thereby improving the accuracy of adjusting the accumulated voltage. In some embodiments, in the process of the accumulated voltage gradually approaching the first preset voltage, if the current accumulated voltage has reached the minimum requirement for fast touch detection, the subsequent approximation process can be stopped. In the subsequent integration, the voltage across the integration capacitor 112 is accumulated with the current accumulated voltage until the voltage across the integration capacitor 112 reaches the touch threshold voltage. In this process, the subsequent approximation of the accumulated voltage is omitted, thereby reducing the operating cost of the system.

[0055] like Figure 2 and Figure 5 As shown, U TH is the touch threshold voltage, U BA is the initial accumulated voltage, U CB is the second accumulated voltage, U DC is the third accumulated voltage, and U1 is the first preset threshold voltage. Figure 5 It can be seen that when the touch capacitance Ctk is small, the initial accumulated voltage U BA is less than the first preset threshold voltage U1. After the capacitance adjustment circuit 130 adjusts the equivalent capacitance of the integral capacitor 112, the second accumulated voltage U CBwill be greater than the initial accumulated voltage U BA , and the third accumulated voltage U of the third integration DC will be greater than the second accumulated voltage U CB In subsequent integrations, the accumulated voltage of a single integration will continue to increase until the accumulated voltage of a single integration is greater than or equal to the first preset voltage. After multiple integrations, the voltage across the integration capacitor 112 continues to accumulate until the touch threshold voltage U TH .

[0056] When the touch capacitance Ctk is large, the accumulated voltage of the single integration of the integration circuit 110 is greater than the second preset threshold voltage. During the first adjustment process of the accumulated voltage, the voltage detection circuit 120 can output the initial second adjustment signal according to the initial accumulated voltage, triggering the capacitance adjustment circuit 130 to increase the equivalent capacitance of the integration capacitor 112 from the initial capacitance value to the first capacitance value, thereby reducing the second accumulated voltage of the second integration from the initial voltage value to the second voltage value. During the second adjustment process of the accumulated voltage, since the second accumulated voltage at this time is less than the initial accumulated voltage, the voltage detection circuit 120 can output a secondary second adjustment signal according to the second accumulated voltage, and the secondary second adjustment signal is less than the initial second adjustment signal. When the capacitance adjustment signal receives the secondary second adjustment signal, the equivalent capacitance of the integration capacitor 112 is increased from the first capacitance value to the second capacitance value, thereby reducing the third accumulated voltage of the third integration from the second voltage value to the third voltage value. In the subsequent integration process, the equivalent capacitance of the integration capacitor 112 is gradually increased, and the accumulated voltage of the single integration is gradually reduced, so that the accumulated voltage of the single integration gradually approaches the second preset voltage, thereby improving the accuracy of adjusting the accumulated voltage. In some embodiments, in the process of the accumulated voltage gradually approaching the second preset voltage, if the current accumulated voltage has reached the minimum requirement for accurate touch detection, the subsequent approximation process can be stopped. In the subsequent integration, the voltage across the integration capacitor 112 is accumulated with the current accumulated voltage until the voltage across the integration capacitor 112 reaches the touch threshold voltage. In this process, the subsequent approximation of the accumulated voltage is omitted, thereby reducing the operating cost of the system.

[0057] like Figure 2 and Figure 6 As shown, U TH is the touch threshold voltage, U BA is the initial accumulated voltage, U CB is the second accumulated voltage, U DC is the third accumulated voltage, and U2 is the second preset threshold voltage. Figure 6 It can be seen that when the touch capacitance Ctk is large, the initial accumulated voltage U BAis greater than the second preset threshold voltage U2. After the capacitance adjustment circuit 130 adjusts the equivalent capacitance of the integral capacitor 112, the second accumulated voltage U CB Will be less than the initial accumulated voltage U BA , and the third accumulated voltage U of the third integration DC will be less than the second accumulated voltage U CB In subsequent integrations, the accumulated voltage of a single integration will continue to decrease until the accumulated voltage of a single integration is less than or equal to the second preset voltage. After multiple integrations, the voltage across the integration capacitor 112 continues to accumulate until the touch threshold voltage U TH .

[0058] like Figure 7 As shown, Figure 7 The circuit structure diagram of the capacitance detection circuit 100 provided in the embodiment of the present application is shown. The capacitance detection circuit 100 includes an integration circuit 110, a voltage detection circuit 120 connected to the integration circuit 110, and a capacitance adjustment circuit 130 connected to the voltage detection circuit 120 and the integration circuit 110. Among them, the integration circuit 110 includes a comparator A1 and an integration capacitor Cint, and the integration capacitor Cint is connected between the input terminal and the output terminal of the comparator A1.

[0059] The voltage detection circuit 120 includes a step detection circuit 121, a quantizer 122, and a current control circuit 123. The step detection circuit 121 is connected to the output end of the comparator A1, and is used to detect the accumulated voltage of the single integration of the integration capacitor Cint; the quantizer 122 is connected to the step detection circuit 121, and is used to output a voltage adjustment signal according to the accumulated voltage; the current control circuit 123 is connected to the quantizer 122, and is used to output a current adjustment signal according to the voltage adjustment signal. Among them, the first adjustment signal and the second adjustment signal are both current adjustment signals.

[0060] The capacitance adjustment circuit 130 includes a transconductance amplifier A2, a first resistor R1, and a second resistor R2. The first resistor R1 is connected between the first input terminal and the second input terminal of the transconductance amplifier A2, the second resistor R2 is connected between the output terminal of the transconductance amplifier A2 and the first input terminal of the transconductance amplifier A2, one end of the integral capacitor Cint is connected to the second input terminal of the transconductance amplifier A2, and the other end is connected to the output terminal of the comparator A1, the first input terminal of the transconductance amplifier A2 is also connected to the input terminal of the comparator A1, and the current input terminal of the transconductance amplifier A2 is connected to the voltage detection circuit 120 to receive the current adjustment signal.

[0061] Furthermore, the capacitance detection circuit 100 further includes a first switch capacitor circuit 140 and a second switch capacitor circuit 150. One end of the first switch capacitor circuit 140 is used to receive the input signal Vs, and the other end is connected to the integration circuit 110; one end of the second switch capacitor circuit 150 is used to receive the input signal Vs, and the other end is connected to the integration circuit 110. Among them, the integration directions of the first switch capacitor circuit 140 and the second switch capacitor circuit 150 are opposite, and the first switch capacitor circuit 140 is also used to connect the detection pin TK; the magnitude of the accumulated voltage is positively correlated with the capacitance change of the detection pin TK.

[0062] In this embodiment, the first switch capacitor circuit 140 includes a first capacitor C1, a first switch SA1, a second switch SA2, a third switch SA3, a fourth switch SA4 and a fifth switch SA5; the first end of the first capacitor C1 is connected to one end of the first switch SA1, the other end of the first switch SA1 is connected to one end of the second switch SA2, the other end of the second switch SA2 is used to receive an input signal, the first end of the first capacitor C1 is also grounded through the third switch SA3, the second end of the first capacitor C1 is connected to the integration circuit 110 through the fourth switch SA4, the second end of the first capacitor C1 is also grounded through the fifth switch SA5, the first switch SA1 and the second switch SA2 are connected to each other. The connection node is used to connect the detection pin TK; the second switch capacitor circuit 150 includes a second capacitor C2, a third capacitor C3, a sixth switch SA6, a seventh switch SA7 and an eighth switch SA8; one end of the sixth switch SA6 is used to receive the input signal Vs, and the other end is connected to one end of the seventh switch SA7, the other end of the seventh switch SA7 is connected to one end of the eighth switch SA8, and the other end of the eighth switch SA8 is connected to the integration circuit 110, the first end of the second capacitor C2 is connected between the seventh switch SA7 and the eighth switch SA8, and the second end is grounded, the first end of the third capacitor C3 is connected between the sixth switch SA6 and the seventh switch SA7, and the second end is grounded.

[0063] The principle of the above capacitance detection circuit is as follows:

[0064] The switches (SA1, SA2, SA3, SA4, SA5, SA6, SA7, SA8) are all electronic switches, which may be, but are not limited to, triodes, MOS tubes, and thyristors. The switches (SA1, SA2, SA3, SA4, SA5, SA6, SA7, SA8) are controlled by a set of external non-overlapping clock signals (Ph1, Ph2), and the non-overlapping means that the clock signal Ph1 and the clock signal Ph2 cannot be high at the same time.

[0065] Among them, the second switch SA2, the third switch SA3, the fourth switch SA4, the sixth switch SA6 and the eighth switch SA8 are controlled by the clock signal Ph1, and when the clock signal Ph1 is at a high level, the above switches (SA2, SA3, SA4, SA6, SA8) are controlled to be turned on; the first switch SA1, the fifth switch SA5 and the seventh switch SA7 are controlled by the clock signal Ph2, and when the clock signal Ph2 is at a high level, the above switches (SA1, SA5, SA7) are controlled to be turned on.

[0066] The input signal VS is an external signal, which can be generated by an external excitation source. Due to the capacitive coupling effect in the circuit, there will be a coupled inherent capacitance Cpin on the detection pin TK. When a touch event occurs, a touch capacitance Ctk is generated on the detection pin TK. At this time, the capacitance on the detection pin TK is actually the sum of the inherent capacitance Cpin and the touch capacitance Ctk.

[0067] In a single integration cycle, when the clock signal Ph2 is at a high level, the charge on the inherent capacitor Cpin is shared with the first capacitor C1, so that part of the charge on the inherent capacitor Cpin is transferred to the first capacitor C1, and at the same time, the charge on the third capacitor C3 is shared with the second capacitor C2, so that part of the charge on the third capacitor C3 is transferred to the second capacitor C2; when the clock signal Ph1 is at a high level, the input signal Vs charges the inherent capacitor Cpin and the third capacitor C3 on the detection pin TK, and all the charges of the first capacitor C1 and the second capacitor C2 are transferred to the integration capacitor Cint, thereby accumulating voltage on the integration capacitor Cint.

[0068] Assume that the voltage value of the input signal Vs is V s The capacitance of the first capacitor C1 and the second capacitor C2 are both C i , the capacitance of the inherent capacitance Cpin is C pin , the capacitance of the touch capacitor Ctk is C tk , the capacitance of the third capacitor C3 is C ref , the equivalent capacitance value of the integral capacitor Cint is Ceq. Then in a single integral cycle, the accumulated voltage of the integral capacitor Cint is:

[0069]

[0070] According to formula (1), in the detection of a single touch event, that is, when the touch capacitance Ctk remains unchanged, the equivalent capacitance of the integral capacitance Cint is negatively correlated with the accumulated voltage of the integral capacitance Cint in a single integration. The larger the equivalent capacitance of the integral capacitance Cint, the smaller the accumulated voltage of a single integration; the smaller the equivalent capacitance of the integral capacitance Cint, the larger the accumulated voltage of a single integration.

[0071] Further, the step detection circuit 121 detects the change of the voltage across the integration capacitor Cint. After the voltage is accumulated across the integration capacitor Cint, the step detection circuit 121 simultaneously detects the magnitude of the accumulated voltage. At this time, the quantizer 122 outputs a control voltage to the current control circuit 123 according to the accumulated voltage. After receiving the control voltage, the current control circuit 123 outputs a corresponding control current to the transconductance amplifier A2. The control current is the bias current of the transconductance amplifier A2. Since the transconductance of the transconductance amplifier A2 is proportional to the bias current, the bias current can cause the change of the transconductance of the transconductance amplifier A2, and the change of the transconductance of the transconductance amplifier A2 can cause the change of the equivalent capacitance of the integration capacitor Cint, thereby changing the accumulated voltage of the next integration of the integration capacitor Cint.

[0072] Specifically, Figure 8 As shown, I sc is the short-circuit current, V in is the input voltage of the integrator circuit 110, I in is the input current of the integration circuit 110, V + and V _ are the in-phase input voltage and the inverting input voltage of the transconductance amplifier A2, and I0 is the current of the second resistor R2.

[0073]

[0074] I0=gm(V + -V - ) = gm × R × I sc (3)

[0075] R is the resistance of resistor R1; s is the complex frequency; gm is the transconductance of transconductance amplifier A2; C int is the capacitance of the integrating capacitor Cint.

[0076] Furthermore, the input current of the integration circuit 110 is equal to the sum of the short-circuit current and the current of the second resistor R2, that is:

[0077]

[0078] Therefore, the equivalent impedance of the integration circuit 110 is:

[0079]

[0080] In formula (5), (1+gm×R)C int That is, the equivalent capacitance of the integral capacitor Cint. Therefore, through the function of the transconductance amplifier A2, on the one hand, the original capacitance value C of the integral capacitor Cint can be int Double to (1+gm×R)C int, a small capacitor can achieve the effect of a large capacitor, thereby effectively reducing the chip area and reducing costs; on the other hand, the equivalent capacitance Ceq of the integrating capacitor Cint can be changed by controlling the transconductance of the transconductance amplifier A2, thereby changing the accumulated voltage of a single integration of the integrating capacitor.

[0081] When the touch capacitance Ctk is small, the voltage accumulated on the integration capacitance Cint by the single integration of the integration circuit 110 is less than the first preset threshold voltage. At this time, the step detection circuit 121 detects the change of the voltage across the integration capacitance Cint. At this time, a smaller control voltage is output to the current control circuit 123 through the quantizer 122, so that the current control circuit 123 outputs a smaller control current to the transconductance amplifier A2, and the control current is also the bias current of the transconductance amplifier A2. At this time, the bias current of the transconductance amplifier A2 decreases. Since the transconductance of the transconductance amplifier A2 is positively correlated with the bias current, the reduction of the bias current causes the transconductance to decrease accordingly, thereby reducing the equivalent capacitance of the integration circuit 110. After the equivalent capacitance of the integration circuit 110 is reduced, in the subsequent integration process, the accumulated voltage accumulated on the integration capacitance Cint by a single integration increases, so that the voltage across the integration capacitance can quickly reach the touch threshold voltage with a smaller number of integration times, thereby realizing rapid detection of touch events.

[0082] When the touch capacitance Ctk is large, the voltage accumulated on the integration capacitance Cint by the single integration of the integration circuit 110 is greater than the second preset threshold voltage. At this time, the step detection circuit 121 detects the change in the voltage across the integration capacitance Cint. At this time, a larger control voltage is output to the current control circuit 123 through the quantizer 122, so that the current control circuit 123 outputs a larger control current to the transconductance amplifier A2, and the control current is also the bias current of the transconductance amplifier A2. At this time, the bias current of the transconductance amplifier A2 increases. Since the transconductance of the transconductance amplifier A2 is positively correlated with the bias current, the increase in the bias current causes the transconductance to increase accordingly, thereby increasing the equivalent capacitance of the integration circuit 110. After the equivalent capacitance of the integration circuit 110 increases, in the subsequent integration process, the accumulated voltage accumulated on the integration capacitance Cint by a single integration is reduced, thereby avoiding integral overflow or saturation, and realizing accurate detection of touch events.

[0083] In summary, the capacitance detection circuit provided in this embodiment detects the voltage change across the integral capacitor through a step detection circuit, and then controls the control current output by the current control circuit through a quantizer to change the bias current of the transconductance amplifier, thereby changing the equivalent capacitance of the integral capacitor, thereby changing the accumulated voltage of the integral capacitor in a single integration, so that when the capacitance change on the detection pin is small, the touch activation threshold is reached with fewer integration times, thereby improving the detection speed and realizing rapid detection of touch events; when the capacitance change on the detection pin is large, integration overflow or saturation is avoided, thereby realizing accurate detection of touch events.

[0084] like Fig. 9 As shown, an embodiment of the present application further provides an integrated circuit 200, and the integrated circuit 200 includes the above-mentioned capacitance detection circuit.

[0085] In this embodiment, the integrated circuit 200 may be, but is not limited to, a capacitance detection chip.

[0086] like Fig.10 As shown, an embodiment of the present application further provides an electronic device 300 , which includes a device body 310 and the above-mentioned integrated circuit 200 , wherein the integrated circuit 200 is disposed in the device body 310 .

[0087] In this embodiment, the electronic device 300 can be a mobile phone or a smart phone (for example, an iPhone TM-based phone, an Android TM-based phone), a portable gaming device (for example, a Nintendo DS TM, a PlayStation Portable TM, a Gameboy Advance TM, an iPhone TM), a laptop, a PDA, a portable Internet device, a music player, and a data storage device, other handheld devices, and devices such as watches, headphones, pendants, etc. The electronic device 300 can also be other wearable devices (for example, head-mounted devices (HMD) such as electronic glasses, electronic clothes, electronic bracelets, electronic necklaces, electronic tattoos, electronic devices, or smart watches).

[0088] The electronic device 300 can also be any one of a plurality of electronic devices, including but not limited to cellular phones, smart phones, other wireless communication devices, personal digital assistants, audio players, other media players, music recorders, video recorders, cameras, other media recorders, radios, medical devices, vehicle transportation instruments, calculators, programmable remote controls, pagers, laptop computers, desktop computers, printers, netbook computers, personal digital assistants (PDAs), portable multimedia players (PMPs), Moving Picture Experts Group (MPEG-1 or MPEG-2) Audio Layer 3 (MP3) players, portable medical devices, and digital cameras and combinations thereof.

[0089] like Fig.11 As shown, the embodiment of the present application further provides a capacitance detection method 400, which is applied to the above capacitance detection circuit 100. The capacitance detection method 400 may include the following steps S410 to S420.

[0090] Step S410: detecting the accumulated voltage of a single integration of the integrating capacitor, and outputting a regulating signal according to the accumulated voltage.

[0091] The regulating signal includes a first regulating signal and a second regulating signal. In this embodiment, the first regulating signal is output when the accumulated voltage is less than the first preset threshold voltage; or the second regulating signal is output when the accumulated voltage is greater than the second preset threshold voltage.

[0092] When the accumulated voltage is less than the first preset threshold voltage, it indicates that when the integration is performed, the integration capacitor needs more integration times to reach the touch threshold with the accumulated voltage, which will result in slow detection of touch events; when the accumulated voltage is greater than the second preset threshold voltage, it indicates that when the integration is performed, the integration capacitor will cause integration overflow or saturation with the accumulated voltage; and the voltage range between the first preset threshold voltage and the second preset threshold voltage is the appropriate voltage range for the accumulated voltage of a single integration, within which accurate touch detection can be achieved with an appropriate number of integration times based on the accumulation of the voltage in a single integration. It should be noted that the touch threshold is artificially set. When the voltage across the integration capacitor reaches a preset touch threshold voltage, it means that multiple integrations have reached the touch threshold. Therefore, the first preset threshold voltage and the second preset threshold voltage can be set according to the touch threshold to achieve fast and accurate touch detection.

[0093] In some implementations, the magnitude of the first adjustment signal or the second adjustment signal may be adjusted according to the magnitude of the accumulated voltage, wherein the first adjustment signal and the second adjustment signal are respectively positively correlated with the accumulated voltage.

[0094] Step S420: adjusting the equivalent capacitance of the integration capacitor according to the adjustment signal to adjust the accumulated voltage of the integration capacitor for the next integration.

[0095] In this embodiment, the equivalent capacitance of the integrating capacitor is reduced according to the first adjustment signal to increase the accumulated voltage of the integrating capacitor for the next integration; or, the equivalent capacitance of the integrating capacitor is increased according to the second adjustment signal to reduce the accumulated voltage of the integrating capacitor for the next integration.

[0096] During the integration process, the size of the equivalent capacitance of the integrating capacitor will affect the amount of charge accumulated by the integrating capacitor each time it is integrated, that is, the voltage accumulated across the integrating capacitor, and the equivalent capacitance of the integrating capacitor is inversely proportional to the accumulated voltage of each integration. The larger the equivalent capacitance, the smaller the accumulated voltage of a single integration. Therefore, by reducing the first adjustment signal to reduce the equivalent capacitance of the integrating capacitor, the accumulated voltage of the next integration of the integrating capacitor can be increased; by increasing the second adjustment signal to increase the equivalent capacitance of the integrating capacitor, the accumulated voltage of the next integration of the integrating capacitor can be reduced.

[0097] In this embodiment, the equivalent capacitance of the integrating capacitor is reduced according to the first adjustment signal to increase the accumulated voltage of the next integration of the integrating capacitor to the first preset voltage; or the equivalent capacitance of the integrating capacitor is increased according to the second adjustment signal to reduce the accumulated voltage of the next integration of the integrating capacitor to the second preset voltage. The first preset voltage and the second preset voltage are both within the voltage range between the first preset threshold voltage and the second preset threshold voltage. For example, the first preset voltage may be greater than or equal to the first preset threshold voltage, and the second preset voltage may be less than or equal to the second preset threshold voltage. Optionally, the first preset voltage and the second preset voltage may be equal or unequal. Within the voltage range between the first preset voltage and the second preset voltage, the capacitance detection circuit 100 can achieve accurate touch detection with the optimal number of integrations based on a single integration accumulation of the voltage.

[0098] Specifically, when the touch capacitance is small, the initial accumulated voltage of the integration circuit is less than the first preset threshold voltage. After adjusting the equivalent capacitance of the integration capacitor, the accumulated voltage of the next integration will be greater than the initial accumulated voltage, and the accumulated voltage of the next integration is also the first preset voltage. In subsequent integrations, the same voltage value as the first preset voltage will continue to be accumulated on the integration capacitor until the voltage across the integration capacitor reaches the touch threshold voltage. In this process, the touch threshold can be reached faster with fewer integration times, and rapid detection of touch events can be achieved when the touch capacitance is small.

[0099] When the touch capacitance is large, the initial accumulated voltage is greater than the second preset threshold voltage. After adjusting the equivalent capacitance of the integral capacitor, the accumulated voltage of the next integration will be less than the initial accumulated voltage. The accumulated voltage of the next integration is also the second preset voltage. In subsequent integrations, the same voltage value as the accumulated voltage will be continuously accumulated on the integral capacitor until the voltage across the integral capacitor reaches the touch threshold voltage. In this process, integral overflow or saturation can be avoided, thereby achieving accurate touch detection when the touch capacitance is large.

[0100] In some embodiments, after adjusting the size of the first adjustment signal or the second adjustment signal according to the accumulated voltage, the equivalent capacitance of the integral capacitor can be gradually reduced when the first adjustment signal decreases, or the equivalent capacitance of the integral capacitor can be gradually increased when the second adjustment signal increases.

[0101] Specifically, when the touch capacitance is small, the accumulated voltage of a single integration is less than the first preset threshold voltage. In the first adjustment process of the accumulated voltage, an initial first adjustment signal can be output according to the initial accumulated voltage, and then the equivalent capacitance of the integrated capacitor is reduced from the initial capacitance value to the first capacitance value, so that the second accumulated voltage of the second integration increases from the initial voltage value to the second voltage value. In the second adjustment process of the accumulated voltage, since the second accumulated voltage at this time is greater than the initial accumulated voltage, a secondary first adjustment signal can be output according to the second accumulated voltage, and the secondary first adjustment signal is greater than the initial first adjustment signal. Then, according to the secondary first adjustment signal, the equivalent capacitance of the integrated capacitor is reduced from the first capacitance value to the second capacitance value, so that the third accumulated voltage of the third integration increases from the second voltage value to the third voltage value. In the subsequent integration process, by gradually reducing the equivalent capacitance of the integrated capacitor, the accumulated voltage of the single integration is gradually increased, so that the accumulated voltage of the single integration gradually approaches the first preset voltage, thereby improving the accuracy of the adjustment of the accumulated voltage. In some embodiments, as the accumulated voltage gradually approaches the first preset voltage, if the current accumulated voltage has reached the minimum requirement for fast touch detection, the subsequent approximation process can be stopped. In the subsequent integration, the voltage across the integration capacitor is accumulated with the current accumulated voltage until the voltage across the integration capacitor reaches the touch threshold voltage. In this process, the subsequent approximation of the accumulated voltage is omitted, thereby reducing the operating cost of the system.

[0102] When the touch capacitance is large, the accumulated voltage of a single integration is greater than the second preset threshold voltage. In the first adjustment process of the accumulated voltage, an initial second adjustment signal can be output according to the initial accumulated voltage, and then the equivalent capacitance of the integrated capacitor is increased from the initial capacitance value to the first capacitance value, so that the second accumulated voltage of the second integration is reduced from the initial voltage value to the second voltage value. In the second adjustment process of the accumulated voltage, since the second accumulated voltage at this time is less than the initial accumulated voltage, a secondary second adjustment signal can be output according to the second accumulated voltage, and the secondary second adjustment signal is less than the initial second adjustment signal. Then, according to the secondary second adjustment signal, the equivalent capacitance of the integrated capacitor is increased from the first capacitance value to the second capacitance value, so that the third accumulated voltage of the third integration is reduced from the second voltage value to the third voltage value. In the subsequent integration process, by gradually increasing the equivalent capacitance of the integrated capacitor, the accumulated voltage of the single integration is gradually reduced, so that the accumulated voltage of the single integration is gradually approached to the second preset voltage, thereby improving the accuracy of the adjustment of the accumulated voltage. In some embodiments, as the accumulated voltage gradually approaches the second preset voltage, if the current accumulated voltage has reached the minimum requirement for precise touch detection, the subsequent approximation process can be stopped. In the subsequent integration, the voltage across the integrating capacitor is accumulated with the current accumulated voltage until the voltage across the integrating capacitor reaches the touch threshold voltage. In this process, the subsequent approximation of the accumulated voltage is omitted, thereby reducing the operating cost of the system.

[0103] The capacitance detection method provided in the embodiment of the present application detects the accumulated voltage of the single integration of the integral capacitor, and outputs an adjustment signal according to the accumulated voltage; then adjusts the equivalent capacitance of the integral capacitor according to the adjustment signal, and then adjusts the accumulated voltage of the next integration of the integral capacitor, so that the next accumulated voltage of the integral capacitor can be adaptively adjusted according to the single accumulated voltage of the integral capacitor. For example, when the single accumulated voltage of the integral capacitor is small, the next accumulated voltage of the integral capacitor is increased, so that the number of integrations can be reduced when the touch capacitance is small, and a quick detection of a touch event is achieved; when the single accumulated voltage of the integral capacitor is large, the next accumulated voltage of the integral capacitor is reduced, so as to avoid overflow or saturation of the integral when the touch capacitance is large, and an accurate detection of a touch event is achieved.

[0104] The above are only preferred embodiments of the present application, and are not intended to limit the present application in any form. Although the present application has been disclosed as above with preferred embodiments, it is not intended to limit the present application. Any technical personnel in the field can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present application. However, any brief modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application are still within the scope of the technical solution of the present application.

Claims

1. A capacitance detection circuit, characterized in that: include: An integration circuit, comprising a comparator and an integration capacitor, wherein the integration capacitor is connected between an input terminal and an output terminal of the comparator; A voltage detection circuit, connected to the integration circuit, for detecting the accumulated voltage of the integration capacitor integrated once, and outputting an adjustment signal according to the accumulated voltage; wherein the adjustment signal includes a first adjustment signal; the voltage detection circuit is used to output the first adjustment signal when the accumulated voltage is less than a first preset threshold voltage; A capacitance adjustment circuit is connected to the voltage detection circuit and the integration circuit, and is used to adjust the equivalent capacitance of the integration capacitor according to the adjustment signal to adjust the accumulated voltage of the next integration of the integration capacitor; wherein the capacitance adjustment circuit is used to reduce the equivalent capacitance of the integration capacitor according to the first adjustment signal to increase the accumulated voltage of the next integration of the integration capacitor.

2. The capacitance detection circuit according to claim 1, characterized in that: The capacitance adjustment circuit is further configured to reduce the equivalent capacitance of the integration capacitor according to the first adjustment signal, so as to increase the accumulated voltage of the integration capacitor integrated next time to a first preset voltage.

3. The capacitance detection circuit according to claim 1, characterized in that: The voltage detection circuit is further used to adjust the magnitude of the first adjustment signal according to the magnitude of the accumulated voltage, wherein the first adjustment signal is positively correlated with the accumulated voltage; The capacitance adjustment circuit is also used to gradually reduce the equivalent capacitance of the integral capacitor when the first adjustment signal decreases.

4. The capacitance detection circuit according to claim 2, characterized in that: The regulating signal is a current regulating signal; The capacitance adjustment circuit includes a transconductance amplifier, a first resistor and a second resistor, the first resistor is connected between the first input terminal and the second input terminal of the transconductance amplifier, the second resistor is connected between the output terminal of the transconductance amplifier and the first input terminal of the transconductance amplifier, one end of the integrating capacitor is connected to the second input terminal of the transconductance amplifier, and the other end is connected to the output terminal of the comparator, the first input terminal of the transconductance amplifier is also connected to the input terminal of the comparator, and the current input terminal of the transconductance amplifier is connected to the voltage detection circuit to receive the current adjustment signal.

5. The capacitance detection circuit according to claim 4, characterized in that: The voltage detection circuit comprises: A step detection circuit, connected to the output end of the comparator, for detecting the accumulated voltage of a single integration of the integration capacitor; a quantizer, connected to the step detection circuit, and configured to output a voltage adjustment signal according to the accumulated voltage; The current control circuit is connected to the quantizer and is used for outputting a current regulating signal to the transconductance amplifier according to the voltage regulating signal.

6. The capacitance detection circuit according to any one of claims 1 to 5, characterized in that: The capacitance detection circuit also includes: A first switched capacitor circuit, one end of which is used to receive an input signal and the other end of which is connected to the integration circuit; and A second switched capacitor circuit, one end of which is used to receive the input signal and the other end of which is connected to the integration circuit; The integration directions of the first switch capacitor circuit and the second switch capacitor circuit are opposite, and the first switch capacitor circuit is also used to connect a detection pin; wherein the magnitude of the accumulated voltage is positively correlated with the capacitance change of the detection pin.

7. The capacitance detection circuit according to claim 6, characterized in that: The first switch capacitor circuit includes a first capacitor, a first switch, a second switch, a third switch, a fourth switch and a fifth switch; a first end of the first capacitor is connected to one end of the first switch, the other end of the first switch is connected to one end of the second switch, the other end of the second switch is used to receive the input signal, the first end of the first capacitor is also grounded through the third switch, the second end of the first capacitor is connected to the integration circuit through the fourth switch, the second end of the first capacitor is also grounded through the fifth switch, and the connection node between the first switch and the second switch is used to connect the detection pin; The second switch capacitor circuit includes a second capacitor, a third capacitor, a sixth switch, a seventh switch and an eighth switch; one end of the sixth switch is used to receive the input signal, and the other end is connected to one end of the seventh switch, the other end of the seventh switch is connected to one end of the eighth switch, and the other end of the eighth switch is connected to the integration circuit, the first end of the second capacitor is connected between the seventh switch and the eighth switch, and the second end is grounded, and the first end of the third capacitor is connected between the sixth switch and the seventh switch, and the second end is grounded.

8. An integrated circuit, characterized in that: It comprises a capacitance detection circuit as described in any one of claims 1 to 7.

9. An electronic device, characterized in that: The invention comprises a device body and the integrated circuit as claimed in claim 8 arranged in the device body.

10. A capacitance detection method, applied to the capacitance detection circuit of any one of claims 1 to 7, characterized in that: include: Detecting the accumulated voltage of a single integration of the integrating capacitor, and outputting a regulating signal according to the accumulated voltage; wherein the regulating signal comprises a first regulating signal; and outputting the first regulating signal when the accumulated voltage is less than a first preset threshold voltage; and The equivalent capacitance of the integrating capacitor is adjusted according to the adjustment signal to adjust the accumulated voltage of the next integration of the integrating capacitor; wherein the equivalent capacitance of the integrating capacitor is reduced according to the first adjustment signal to increase the accumulated voltage of the next integration of the integrating capacitor.

Citation Information

Patent Citations

  • Capacitance type touch control device and sensing device thereof

    CN102200869A

  • Capacitance detection circuit, integrated circuit, electronic device, and capacitance detection method

    CN111595494A

  • Capacitance detection circuit

    CN203535119U

  • Evaluation circuit for capacitance and method thereof

    TW201005302A

  • Capacitive sensor having calibration mechanism and capacitive sensing method

    TW201136180A