Noise detection circuit, self-capacitance detection method, touch chip and electronic equipment

By using timing control and charge transfer processing of control modules, drive modules, cancellation modules and charge transfer modules in the noise detection circuit, the problem of low noise measurement accuracy in the prior art is solved, and accurate detection of noise interference is achieved and The accuracy of self-care detection is improved.

CN111880690BActive Publication Date: 2024-12-06SHENZHEN GOODIX TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010785296.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-06
Publication Date
2024-12-06
Estimated Expiration
2040-08-06

AI Technical Summary

Technical Problem

In the prior art, the noise measurement accuracy is low, making it difficult to accurately detect noise interference, affecting the accuracy of self-calibration detection.

Method used

A noise detection circuit is designed, including a control module, a driving module, a cancellation module, a charge transfer module and a processing module. Through specific timing control and charge transfer processing, an output voltage is generated to determine the noise magnitude, and an amplifier and filter are used to improve detection. Accuracy.

Benefits of technology

Accurate detection of noise interference is achieved, the accuracy and efficiency of self-calibration detection is improved, and the noise size can be accurately reflected when detecting noise.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111880690B_ABST
    Figure CN111880690B_ABST
Patent Text Reader

Abstract

A noise detection circuit, characterized by comprising: a control module for controlling a driving module so that a first voltage is used to charge a capacitor to be tested in a first period, and the control module controls a compensation module so that the first voltage is used to charge the compensation capacitor in the first period or both ends of the compensation capacitor are connected to the first voltage; the control module controls the compensation module so that the first end of the capacitor to be tested is connected to the first end of the compensation capacitor in the second period; the control module controls a charge transfer module so that the charges of the capacitor to be tested and the compensation capacitor are converted to generate an output voltage in a third period; the first period, the second period and the third period are continuous in time, and the charge transfer module includes an amplifier; the inverting input end of the amplifier is connected to the first voltage; the processing module is used to determine the size of the noise at least according to the output voltage. The capacitance detection circuit improves the accuracy of noise detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of touch control technology, and in particular to a noise detection circuit, a self-capacitance detection method, a touch control chip, a capacitive touch control system, and an electronic device. Background Art

[0002] For self-capacitance detection, its principle is to detect the capacitance formed between the electrode and the system ground, which is called self-capacitance detection or self-capacitance detection. When there is no object such as a finger approaching or touching the electrode to cause an external electric field, a capacitance will also be formed between the detection electrode and the system ground, and the capacitance has a basic capacitance or an initial capacitance. When a finger approaches or touches the detection electrode, the capacitance between the detection electrode and the system ground will increase. By detecting the change in the capacitance, the user's related touch operation can be judged. In actual use, the capacitance detection system will be subject to various interferences, mainly including power supply noise, common mode interference, digital signal interference, and other spatial coupling interference. When the self-capacitance detection is interfered with, the accuracy of its self-capacitance detection will drop significantly. Therefore, it is necessary to take various measures according to the noise characteristics to reduce the interference of the noise, for example, changing the working frequency of the self-capacitance detection. Therefore, how to accurately detect the noise is extremely important. The more common method of detecting noise in the prior art is to count the jitter values ​​of multiple frames of data of the self-capacitance detection circuit at various driving frequencies, and determine the noise at the driving frequency according to the size of the jitter value. When the jitter value is small, the noise is small, and when the jitter value is large, the noise is large. This method requires statistical jitter values, so it takes a long time. In addition, for noise interference, the phase of the noise is often unpredictable. Therefore, judging the noise size based solely on the jitter value cannot accurately represent the noise characteristics. Summary of the invention

[0003] In view of the problem of low noise measurement accuracy in the prior art, the embodiments of the present application provide a noise detection circuit, a self-capacitance detection method, a touch chip, a capacitive touch system and an electronic device.

[0004] A first aspect of an embodiment of the present application provides a noise detection circuit, comprising: a control module, a driving module, a compensation module, a charge transfer module and a processing module; the driving module is connected to the compensation module, the compensation module is connected to the charge transfer module, the charge transfer module is connected to the processing module, and the control module is connected to the driving module, the compensation module and the charge transfer module;

[0005] The control module is used to control the driving module so that the capacitor to be tested is charged with the first voltage in the first period, and the control module controls the offset module so that the offset capacitor is charged with the first voltage in the first period or both ends of the offset capacitor are connected to the first voltage;

[0006] The control module controls the offset module so that the first end of the capacitor to be measured is connected to the first end of the offset capacitor during the second period;

[0007] The control module controls the charge transfer module so that the charges of the capacitor to be measured and the offset capacitor are converted and processed to generate an output voltage in the third period;

[0008] The first time period, the second time period and the third time period are continuous in time, and the charge transfer module includes an amplifier; the inverting input terminal of the amplifier is connected to the first voltage;

[0009] The processing module is used to determine the magnitude of the noise at least according to the output voltage.

[0010] According to the first aspect, in a possible implementation manner, the first voltage is a common mode voltage.

[0011] According to the first aspect, in a possible implementation manner, the driving module includes a first switch unit, and the control module is further used to control the first switch unit to be in a closed state so that in a first time period, the driving module uses a first voltage to charge the capacitor to be measured;

[0012] When the first switch unit is in a closed state, the first end of the capacitor to be measured is connected to the first voltage; and the second end of the capacitor to be measured is connected to the ground voltage.

[0013] According to the first aspect, in a possible implementation manner, the offset module includes a second switch unit and an offset capacitor, and the control module is further used to control the second switch unit to be in a closed state in the first time period;

[0014] When the second switch unit is in a closed state, the offset capacitor is charged, a first end of the offset capacitor is connected to a first voltage, and a second end of the offset capacitor is connected to a ground voltage; or,

[0015] When the second switch unit is in a closed state, the first end of the offset capacitor is connected to the first voltage, and the second end of the offset capacitor is connected to the first voltage.

[0016] According to the first aspect, in a possible implementation, the offset module further includes a third switch unit, and the control module is further used to control the third switch unit to be in a closed state in the second time period so that the first end of the capacitor to be measured is connected to the first end of the offset capacitor;

[0017] When the third switch unit is in a closed state, the first end of the offset capacitor is disconnected from the first voltage, and the first end of the capacitor to be measured is disconnected from the first voltage.

[0018] According to the first aspect, in a possible implementation manner, when converting the charges of the measured capacitor and the offset capacitor, the first end of the measured capacitor, the first end of the offset capacitor and the in-phase input end of the amplifier are connected.

[0019] According to the first aspect, in a possible implementation, the control module controls the charge transfer module so that the charge transfer module is reset in a fourth time period; the first time period, the second time period, the third time period and the fourth time period are continuous in time.

[0020] According to the first aspect, in a possible implementation, the charge transfer module also includes a fourth switch unit, which is in a closed state in a third time period so that the charges of the measured capacitor and the offset capacitor are converted and processed to generate an output voltage; the fourth switch unit is in an open state in a fourth time period so that the charge transfer module is reset.

[0021] According to the first aspect, in a possible implementation method, in a first time period, the voltage of the capacitor to be measured increases to a first voltage, and the voltage of the offset capacitor increases to the first voltage or the voltage of the offset capacitor is 0; in a second time period, the connection state of the second end of the offset capacitor is the same as the connection state of the second end of the offset capacitor in the first time period; in the first time period and the second time period, the output voltage of the charge transfer module increases or decreases to 0, and in the fourth time period, the output voltage of the charge transfer module decreases or increases to 0.

[0022] According to the first aspect, in a possible implementation, the processing module includes a filter, an analog-to-digital converter and a digital signal processor; the filter filters the output voltage of the charge transfer module; the analog-to-digital converter performs analog-to-digital conversion on the filtered output voltage; the digital signal processor is used to demodulate the output voltage after the analog-to-digital conversion, and the reference frequency used for demodulation is the inverse of the noise detection period; the noise detection period is equal to an integer multiple of the noise detection half period, and the noise detection half period is the sum of the first time period, the second time period, the third time period, and the fourth time period; or the noise detection half period is the sum of the first time period, the second time period, and the third time period.

[0023] According to the first aspect, in a possible implementation manner, the processing module determines the size of the noise at least according to the output voltage, including: the processing module determines the amplitude of the noise according to the output voltage of the charge transfer module in a noise detection period.

[0024] According to the first aspect, in a possible implementation, the driving module includes a thirteenth switch unit, a fourteenth switch unit and a nineteenth switch unit; the control module is also used to control the thirteenth switch unit, the fourteenth switch unit and the nineteenth switch unit to perform noise detection or self-capacitance detection; when performing noise detection, the control module is used to control the nineteenth switch unit so that the first end of the capacitor to be measured is connected to the first voltage in the first time period; when performing self-capacitance detection, the control module is used to control the thirteenth switch unit and the fourteenth switch unit so that the first end of the capacitor to be measured is connected to the ground voltage or the power supply voltage; the second end of the capacitor to be measured is connected to the ground voltage.

[0025] According to the first aspect, in a possible implementation, the compensation module includes a fifteenth switch unit, a sixteenth switch unit, a twentieth switch unit, a seventeenth switch unit, an eighteenth switch unit and a twenty-first switch unit; the control module is also used to control the fifteenth switch unit, the sixteenth switch unit, the twentieth switch unit, the seventeenth switch unit, the eighteenth switch unit and the twenty-first switch unit to perform noise detection or self-capacitance detection; when performing noise detection, the control module is used to control the twentieth switch unit and the twenty-first switch unit so that the first end and the second end of the compensation capacitor are connected to the first voltage in the first time period, or so that the first end of the compensation capacitor is connected to the first voltage and the second end of the compensation capacitor is connected to the ground voltage in the first time period; when performing self-capacitance detection, the control module is used to control the fifteenth switch unit, the sixteenth switch unit, the seventeenth switch unit and the eighteenth switch unit so that the first end and the second end of the compensation capacitor are connected to the ground voltage or the power supply voltage.

[0026] According to the first aspect, in a possible implementation, the compensation module also includes a fifth switch unit, and the control module is also used to control the fifth switch unit so that the first end of the capacitor to be measured is connected to the first end of the compensation capacitor in the second time period and the third time period, and the first end of the capacitor to be measured is disconnected from the first end of the compensation capacitor in the first time period.

[0027] According to the first aspect, in a possible implementation, it also includes a power switching module, which is connected to the control module, the driving module and the compensation module. The power switching module is used to switch the first voltage so that the control module controls the driving module, the compensation module, the charge transfer module and the processing module to perform self-capacitance detection or noise detection. When performing self-capacitance detection, the control module is also used to control the compensation capacitor to perform charge compensation processing on the capacitor to be tested.

[0028] According to the first aspect, in a possible implementation, when performing self-capacitance detection, the power switching module is used to switch the two first voltages connected to the first end of the capacitor to be tested to the power supply voltage and the ground voltage, respectively; the power switching module is also used to switch the two first voltages connected to the first end of the offset capacitor to the power supply voltage and the ground voltage, respectively; the power switching module is also used to switch the two first voltages connected to the second end of the offset capacitor to the power supply voltage and the ground voltage, respectively.

[0029] According to the first aspect, in a possible implementation, when performing noise detection, the power switching module is used to switch the power supply voltage and the ground voltage connected to the first end of the capacitor to be tested to a first voltage; the power switching module is also used to switch the power supply voltage and the ground voltage connected to the first end of the offset capacitor to the first voltage; the power switching module is also used to switch the power supply voltage and the ground voltage connected to the second end of the offset capacitor to the first voltage.

[0030] According to the first aspect, in a possible implementation, the driving module, the compensation module and the charge transfer module each include at least one switching unit; when performing noise detection, the timing of the switching units of the driving module, the compensation module and the charge transfer module is the same as the timing of the switching units of the driving module, the compensation module and the charge transfer module when performing self-capacitance detection.

[0031] According to the first aspect, in a possible implementation manner, the amplifier is a single-ended amplifier.

[0032] According to the first aspect, in a possible implementation manner, the amplifier is a fully differential amplifier.

[0033] A second aspect of an embodiment of the present application provides a self-capacitance detection method, comprising: using the noise detection circuit as described in the first aspect above to detect the amplitude of the noise of the noise detection circuit operating at a first frequency; if the amplitude of the noise is lower than a preset noise threshold, the self-capacitance detection circuit performs capacitance detection at the first frequency.

[0034] According to the second aspect, in a possible implementation manner, a period of self-capacitance detection is equal to a reciprocal of a first frequency, the self-capacitance detection circuit performs capacitance detection at the first frequency, and the period of self-capacitance detection is equal to a noise detection period.

[0035] According to the first aspect, in a possible implementation manner, the noise detection period is equal to an integer multiple of the noise detection half period, and the noise detection half period is the sum of the first period, the second period, the third period, and the fourth period.

[0036] According to the first aspect, in a possible implementation manner, the noise detection period is twice the noise detection half period.

[0037] According to the first aspect, in a possible implementation manner, when the self-capacitance detection circuit operates at a first frequency, the processing module performs demodulation at the first frequency to obtain a self-capacitance value.

[0038] According to the first aspect, in a possible implementation method, when performing self-capacitance detection, in the ninth time period, the measured capacitor and the offset capacitor are charged, and in the tenth time period, the charges of the measured capacitor and the offset capacitor are offset; in the eleventh time period, the charges of the measured capacitor and the offset capacitor are transferred; in the twelfth time period, the charge transfer module is reset; in the thirteenth time period, the measured capacitor is discharged and the offset capacitor is charged; in the fourteenth time period, the charges of the measured capacitor and the offset capacitor are offset; in the fifteenth time period, the charges of the measured capacitor and the offset capacitor are transferred; in the sixteenth time period, the charge transfer module is reset; the lengths of the ninth time period, the tenth time period, the eleventh time period, and the twelfth time period are respectively equal to the lengths of the thirteenth time period, the fourteenth time period, the fifteenth time period, and the sixteenth time period; the lengths of the ninth time period, the tenth time period, the eleventh time period, and the twelfth time period are respectively equal to the lengths of the first time period, the second time period, the third time period, and the fourth time period.

[0039] A third aspect of the embodiments of the present application provides a touch control chip, comprising the noise detection circuit as described in the first aspect above.

[0040] A fourth aspect of the embodiments of the present application provides a capacitive touch control system, including the touch control chip and the touch control sensor as described in the third aspect.

[0041] A fifth aspect of the embodiments of the present application provides an electronic device, characterized by being a touch control chip as described in the third aspect above.

[0042] The embodiments of the present application provide a noise detection circuit, a self-capacitance detection method, a touch chip, a capacitive touch system and an electronic device, wherein a capacitor to be tested is charged with a first voltage in a first time period, and a compensation capacitor is charged with the first voltage or both ends of the compensation capacitor are connected to the first voltage. In a second time period, the first end of the capacitor to be tested is connected to the first end of the compensation capacitor. In a third time period, a charge transfer module converts the charges of the capacitor to be tested and the compensation capacitor to generate an output voltage. The processing module determines the size of the noise at least according to the output voltage. In addition, the inverting input terminal of the amplifier is connected to the first voltage so that when detecting noise, the charge changes of the capacitor to be tested and the compensation capacitor can accurately reflect the size of the noise, thereby more accurately detecting the noise. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Hereinafter, some specific embodiments of the present application will be described in detail in an exemplary and non-limiting manner with reference to the accompanying drawings. The same reference numerals in the accompanying drawings indicate the same or similar components or parts. It should be understood by those skilled in the art that these drawings are not necessarily drawn to scale. In the accompanying drawings:

[0044] Figure 1AA schematic diagram of a noise detection circuit structure provided in an embodiment of the present application;

[0045] Figure 1B A schematic diagram of another noise detection circuit structure provided in an embodiment of the present application;

[0046] Figure 1C A schematic diagram of another noise detection circuit structure provided in an embodiment of the present application;

[0047] Figure 1D A schematic diagram of another noise detection circuit structure provided in an embodiment of the present application;

[0048] Figure 2A The embodiments of this application provide Figure 1A , 1B , 1C, 1D timing diagram of the noise detection circuit when it is working;

[0049] Figure 2B Another embodiment of the present application provides Figure 1A , 1B , 1C, 1D timing diagram of the noise detection circuit when it is working;

[0050] Figure 2C Waveform diagram of Vx and Vout in the noise detection circuit obtained by simulation according to the embodiment of the present application;

[0051] Figure 3 A schematic diagram of another noise detection circuit structure provided in an embodiment of the present application;

[0052] Figure 4 The embodiments of the present application provide Figure 3 The timing diagram of the noise detection circuit when it is working;

[0053] Figure 5 A schematic diagram of another noise detection circuit structure provided in an embodiment of the present application;

[0054] Figure 6 A schematic diagram of a self-capacitance detection circuit structure provided in an embodiment of the present application;

[0055] Figure 7 The embodiments of the present application provide Figure 6 The timing diagram of the self-capacitance detection circuit is also for Figure 8 The timing diagram of the noise detection circuit when it is working;

[0056] Figure 8 A schematic diagram of another noise detection circuit structure provided in an embodiment of the present application;

[0057] Fig. 9 A schematic diagram of another noise detection circuit structure provided in an embodiment of the present application;

[0058] Fig.10 A noise frequency response diagram of a self-capacitance detection circuit when working obtained by simulation and a noise frequency response diagram detected by a noise detection circuit provided in an embodiment of the present application;

[0059] Fig.11 A schematic diagram of another noise detection circuit structure provided in an embodiment of the present application;

[0060] Fig.12 The embodiments of this application provide Fig.11 The timing diagram of the noise detection circuit when it is working;

[0061] Fig.13 A schematic diagram of another self-capacitance detection circuit structure provided in an embodiment of the present application;

[0062] Fig.14 The embodiments of this application provide Fig.13 The timing diagram of the self-capacitance detection circuit when it is working;

[0063] Fig.15A A schematic diagram of another noise detection circuit structure provided in an embodiment of the present application;

[0064] Fig. 15B A schematic diagram of another noise detection circuit structure provided in an embodiment of the present application;

[0065] Fig.16 A schematic diagram of another noise detection circuit structure provided in an embodiment of the present application;

[0066] Fig.17 The embodiments of this application provide Fig.16 The timing diagram of the noise detection circuit when it is working;

[0067] Fig.18 A schematic diagram of another noise detection circuit structure provided in an embodiment of the present application;

[0068] Fig.19 The embodiments of this application provide Fig.18 The timing diagram of the noise detection circuit when it is working;

[0069] Fig. 20 A flow chart of a self-capacitance detection method provided in an embodiment of the present application;

[0070] Fig.21 A flowchart of another self-capacitance detection method provided in an embodiment of the present application;

[0071] Fig. 22 A flowchart of another self-capacitance detection method provided in an embodiment of the present application;

[0072] Fig.23A flowchart of another self-contained detection method provided by an embodiment of the present application;

[0073] Fig.24 A schematic diagram of the structure of a capacitive touch control system provided in an embodiment of the present application;

[0074] Fig.25 A schematic diagram of another capacitive touch system structure provided in an embodiment of the present application. DETAILED DESCRIPTION

[0075] The implementation of any technical solution of the embodiments of the present application does not necessarily require achieving all of the above advantages at the same time.

[0076] In the technical solution provided by the embodiment of the present application, the noise detection circuit includes: a control module, a driving module, a compensation module, a charge transfer module and a processing module, the driving module is connected to the compensation module, the compensation module is connected to the charge transfer module, the charge transfer module is connected to the processing module, the control module is connected to the driving module, the compensation module and the charge transfer module, the control module is used to control the driving module to charge the capacitor to be tested with a first voltage in a first time period, and the control module is used to control the compensation module so that the compensation capacitor is charged with the first voltage in the first time period or both ends of the compensation capacitor are connected to the first voltage; the control module is also used to control the compensation module so that the first end of the capacitor to be tested is connected to the first end of the compensation capacitor in the second time period;

[0077] The control module is also used to control the charge transfer module so that the charges of the capacitor to be measured and the offset capacitor are converted and processed to generate an output voltage in the third time period; the processing module is used to determine the size of the noise according to the output voltage. The charge transfer module includes an amplifier; the inverting input terminal of the amplifier is connected to the first voltage; the first time period, the second time period, and the third time period are continuous in time; this embodiment uses the first voltage to process the capacitor to be measured and the offset capacitor, so that before the charge transfer module transfers the charges of the offset capacitor and the capacitor to be measured, the voltage at the connection point of the offset capacitor and the capacitor to be measured is equal to the first voltage connected to the inverting input terminal of the amplifier, so as to accurately detect the noise.

[0078] The specific implementation of the embodiment of the present application is further explained below in conjunction with the accompanying drawings of the embodiment of the present application.

[0079] like Figure 1AAs shown, the noise detection circuit includes a control module 100, a driving module 102, a compensation module 103, a charge transfer module 104 and a processing module 105. The control module 100 can be used to charge the capacitor Cx to be tested using a first voltage Vmm by controlling the driving module 102, and charge the compensation capacitor Cc using a first voltage Vmm by controlling the compensation module 103. In addition, the control module 100 can be used to control the compensation module 103 so that the first end of the compensation capacitor Cc is connected to the first end of the capacitor Cx to be tested, and the second end of the capacitor Cx to be tested is grounded, and the second end of the compensation capacitor Cc is grounded. In this embodiment, the compensation module 103 can also be called a compensation module. Since there are some basic capacitances in the capacitor itself during self-capacitance detection, so that the charges stored in the compensation capacitor and the capacitor to be tested are compensated to eliminate the basic capacitance, therefore, during self-capacitance detection, there is a compensation capacitor. In this embodiment, the capacitor Cc can also be used as a compensation capacitor in the self-capacitance detection circuit. Therefore, the capacitor Cc can be called a compensation capacitor here, and the module 103 can be called a compensation module. The charge transfer module 104 can be used to convert the charges of the capacitor to be measured Cx and the offset capacitor Cc to generate an output voltage Vout; the processing module 105 can be used to determine the noise affecting the capacitor to be measured according to the output voltage Vout.

[0080] The control module 100 is respectively connected to the driving module 102, the offset module 103, and the charge transfer module 104. The driving module 102 is connected to the offset module 103, the offset module 103 is connected to the charge transfer module 104, and the processing module 105 is connected to the charge transfer module 104. The control module 100 may include a programmable sequential logic circuit for controlling the on and off of a switch unit of the noise detection circuit.

[0081] like Figure 1A As shown, the driving module 102 includes a first switch unit K1 (taking a single switch implementation as an example), and the control module 102 is further used to control the first switch unit K1 to be in a closed state so that the driving module 102 uses the first voltage Vmm to charge the capacitor to be measured Cx in the first time period. Further, when the first switch unit K1 is in a closed state, the first end of the capacitor to be measured Cx is electrically connected to the first voltage Vmm, and the second end is electrically connected to GND, and the voltage value of the first voltage Vmm is higher than GND. It can be understood that the first voltage Vmm is set within the working voltage range of the charge transfer module. In this embodiment, the working voltage range of the charge transfer module is GND to Vcc as an example for explanation. Therefore, the first voltage Vmm can be set to be greater than GND and less than Vcc. If the working voltage range of the charge transfer module is (-Vcc) to Vcc, the first voltage Vmm can be set to be greater than -Vcc and less than Vcc.

[0082] like Figure 1A As shown, the offset module 103 includes a second switch unit K2 (taking a single switch implementation as an example) and a third switch unit K3 (taking a single switch implementation as an example), and the second switch unit K2 and the third switch unit K3 can be in different closed states. Specifically, the control module 100 can be used to control the second switch unit K2 to be in a closed state and the third switch unit K3 to be in an open state, so that in the first time period, the offset capacitor is charged using the first voltage. The control module 100 can be used to control the second switch unit K2 to be in an open state and the third switch unit K3 to be in a closed state. Specifically, when the second switch unit K2 is in an open state and the third switch unit K3 is in a closed state, in the third time period, the first end of the offset capacitor Cc is connected to the first end of the capacitor to be measured Cx. The second end of the offset capacitor Cc and the second end of the capacitor to be measured Cx are both grounded. This embodiment is described by grounding the second end of the offset capacitor Cc. It should be noted that in this embodiment, the second end of the offset capacitor Cc can also be connected to the first voltage Vmm.

[0083] Further, assuming that the interference source 101 is as shown in FIG. 1, it should be noted that the interference source 101 is illustrated only for simulating interference and is drawn only for ease of understanding. For example, the interference source is represented by a voltage source and a coupling capacitor Cn in series, and the interference couples the noise into the circuit through the coupling capacitor Cn. It can be understood that the interference source includes at least one noise source, and the interference source can also be represented in other forms. For example, in addition to the voltage source, the current source can also be used as a noise source. This embodiment does not limit this. The control module 100 controls the second switch unit K2 to be in an open state and the third switch unit K3 to be in a closed state to form a path. When there is interference, although the voltage of the capacitor to be measured Cx is Vmm at the end of the first period, due to the influence of noise, the voltage Vx of the connection point between the offset capacitor Cc and the capacitor to be measured Cx will change in the second period, and the offset capacitor Cc and the capacitor to be measured Cx will be charged or discharged at the same time in the second period. Therefore, when there is noise, the voltage Vx of the connection point between the offset capacitor Cc and the capacitor to be measured Cx is not Vmm.

[0084] like Figure 1AAs shown, a fourth switch unit K4 (taking a single switch implementation as an example) is provided between the charge transfer module 104 and the compensation module 103. Correspondingly, the control module 100 further controls the fourth switch unit K4 to be in a closed state so that the charge transfer module 104 is electrically connected to the capacitor to be measured Cx and the compensation capacitor Cc, so as to convert the charges of the capacitor to be measured Cx and the compensation capacitor Cc to generate an output voltage Vout.

[0085] In this embodiment, the charge transfer module 104 is described by taking a fully differential amplifier as an example. Further, the non-inverting input terminal of the fully differential amplifier can be electrically connected to the fourth switch K4, and the inverting input terminal of the fully differential amplifier is connected to the first voltage Vmm. In the fully differential amplifier, a feedback resistor R is provided between the non-inverting input terminal and the inverting output terminal, and between the inverting input terminal and the non-inverting output terminal. f And the feedback capacitor C f The feedback resistor R f and feedback capacitor C f In this embodiment, the in-phase input terminal can also be called the positive phase input terminal, and the inverting input terminal can also be called the negative phase input terminal. Figure 1A The inverting output terminal of the fully differential amplifier is marked with a circle, and the non-inverting output terminal of the fully differential amplifier is not marked with a circle. In this embodiment, a single-ended amplifier can also be used to replace the fully differential amplifier.

[0086] In this embodiment, the first switch unit K1, the second switch unit K2, the third switch unit K3, and the fourth switch unit K4 are all described by taking a single-pole single-throw switch as an example. Figure 2A As shown, Figure 2A In the example, a high level indicates that the switch is closed, and a low level indicates that the switch is open (off). Figure 2A The switch status in is further explained.

[0087] Figure 2A For the embodiments of this application Figure 1A The timing diagram of the noise detection circuit in the figure is as follows: For the convenience of representation, φ1, φ2, and φ3 can be used to represent the state of the switch. Specifically, φ1 represents the state of the first switch unit K1 and the second switch unit K2, φ2 represents the state of the third switch unit K3, and φ3 represents the state of the fourth switch unit K4. The period t1-t4 constitutes the cycle of the control signals φ1, φ2, and φ3, and t1+t2+t3+t4 can be understood as a noise detection half-cycle. The following is an example of two noise detection half-cycles, and the main technical processing of each period is briefly described as follows:

[0088] Period t1: using the first voltage Vmm to charge the capacitor Cx to be measured and the offset capacitor Cc;

[0089] During period t2, the first end of the capacitor to be measured Cx is connected to the first end of the offset capacitor Cc, and the first end of the capacitor to be measured is disconnected from the first voltage Vmm, and the first end of the offset capacitor is disconnected from Vmm;

[0090] Period t3: Charge transfer is performed to convert the charges of the capacitor to be tested Cx and the offset capacitor Cc into voltage signals;

[0091] Period t4: The fully differential amplifier is reset.

[0092] Period t5: using the first voltage Vmm to charge the capacitor to be measured Cx and the offset capacitor Cc;

[0093] Period t6: the first end of the capacitor to be measured Cx is connected to the first end of the offset capacitor Cc, the first end of the capacitor to be measured is disconnected from the first voltage Vmm, and the first end of the offset capacitor is disconnected from Vmm;

[0094] Period t7: Charge transfer is performed to convert the charges of the capacitor to be tested Cx and the offset capacitor Cc into voltage signals;

[0095] Period t8: The fully differential amplifier is reset.

[0096] It can be understood that the fifth to eighth time periods (t5-t8) completely repeat the operations of the first to fourth time periods (t1-t4). The first to fourth time periods can be called noise detection half-cycles. After sampling the output voltage of the noise detection half-cycle, the size of the noise can be determined according to the output voltage of the noise detection half-cycle. The noise detection circuit performs noise detection according to the noise detection method of the above t1-t8 period, and the detected noise is more accurate.

[0097] In the first time period (t1), the first switch unit K1 and the second switch unit K2 are turned on (i.e., in a closed state), the third switch unit K3 and the fourth switch unit K4 are turned off, the first ends of the capacitor to be measured Cx and the offset capacitor Cc are both connected to the first voltage Vmm, the second ends of the capacitor to be measured Cx and the second ends of the offset capacitor Cc are both connected to GND, the capacitor to be measured Cx and the offset capacitor Cc are charged at the same time, and external interference cannot inject the charge caused by noise into the capacitor to be measured or the offset capacitor. At the end of the t1 period, the voltage of the capacitor to be measured Cx is Vmm, and the voltage of the offset capacitor Cc is Vmm. In addition, since the fourth switch unit K4 is turned off, the output voltage Vout of the charge transfer module is 0. At this time, the amount of charge stored in the capacitor to be measured Cx Q1 = Vmm*Cx, and the amount of charge stored in the offset capacitor Cc Q2 = Vmm*Cc.

[0098] In the second period (t2), the first switch unit K1 and the second switch unit K2 are turned off, the third switch unit K3 is closed, and the fourth switch unit K4 is turned off. At this time, the first end of the capacitor under test Cx is connected to the first end of the cancellation capacitor Cc, and the second end of the capacitor under test Cx and the second end of the cancellation capacitor Cc are both grounded. When there is no noise (ideally), according to the law of conservation of charge, Vmm*Cx + Vmm*Cc = Vx*Cx + (Vx - 0)*Cc holds, and the voltage Vx of the capacitor under test Cx can be obtained as Vx = Vmm; if there is noise, the charges stored in the capacitor under test Cx and the cancellation capacitor Cc change, and the capacitor under test Cx and the cancellation capacitor Cc are charged or discharged simultaneously, and the voltage Vx of the capacitor under test Cx is not equal to Vmm. For example, Vx > Vmm or Vx < Vmm. In the second period, the noise source can inject the charges caused by the noise into the capacitor under test and the cancellation capacitor.

[0099] In the third period (t3), the first switch unit K1 and the second switch unit K2 are turned off, the third switch unit K3 is closed, and the fourth switch unit K4 is closed. It can be understood that other switches remain in the same state as in the second period, only the fourth switch unit K4 is closed. In the third period, the charges stored in the capacitor under test and the cancellation capacitor in the second period can be transferred to the charge transfer module. At the same time, the noise can affect the charge transfer module through Cn. According to the magnitude of the voltage Vx of the capacitor under test Cx at the end of t2, there are the following situations:

[0100] If Vx > Vmm, the capacitor under test Cx and the cancellation capacitor Cc transfer charges to the charge transfer module simultaneously until the voltage Vx of the capacitor under test Cx reaches Vmm.

[0101] If Vx = Vmm, there is no process of the capacitor under test Cx and the cancellation capacitor Cc transferring charges to the charge transfer module, indicating that the circuit is not affected by noise at this time.

[0102] If Vx < Vmm, the charge transfer module will charge the capacitor under test Cx and the cancellation capacitor Cc through the feedback network (composed of R f and C f until the voltages of the capacitor under test Cx and the cancellation capacitor Cc both reach Vmm. In this embodiment, the charge transfer module includes a feedback network, and the feedback form of the feedback network includes but is not limited to resistance feedback, resistance-capacitance feedback, or pure capacitance feedback.

[0103] In the third period (t3), the frequency, amplitude and phase of the interference source will affect the polarity and size of the output voltage Vout of the charge transfer module. Therefore, the output voltage of the charge transfer module is determined by the charge stored in the capacitor to be measured Cx and the offset capacitor Cc at time t2, and the charge directly entering the charge transfer module from the interference source during period t3. It can be understood that the greater the noise, the greater the output voltage of the charge transfer module. If there is no noise, the output voltage of the charge transfer module is 0.

[0104] According to the output voltage of the charge transfer module in the t3 period, it can be determined whether the circuit is disturbed. If Vout=0, it means that the circuit is not affected by noise. If Vout≠0, it means that the circuit is affected by noise and is disturbed. In this embodiment, the first period, the second period and the third period are continuous in time.

[0105] In the fourth time period (t4), the control module controls the charge transfer module so that the charge transfer module is reset in the fourth time period; the fourth switch unit K4 is disconnected so that the amplifier in the charge transfer module is reset, and the output voltage V out becomes 0. In addition, it should be noted that there may be no t4 period, that is, the t4 stage may be omitted. When the t4 stage is set, the risk of the fourth switch unit in the charge transfer module 104 and the first switch unit K1 or the second switch unit K2 being turned on at the same time can be reduced, that is, a dead time t4 can be added to avoid the fourth switch unit in the charge transfer module 104 and the first switch unit K1 or the second switch unit K2 being turned on at the same time, so as to maximize the normal operation of the amplifier. It can be understood that if the fourth period is omitted, the eighth period is omitted accordingly, and the first to third periods can be referred to as noise detection half-cycles. After sampling the output voltage of the noise detection half-cycle, the size of the noise can be determined according to the output voltage of the noise detection half-cycle. The fifth to seventh periods (t5-t7) completely repeat the operation of the first to third periods (t1-t3), and the size of the noise can also be determined according to the output voltage of the two noise detection half-cycles after sampling two noise detection half-cycles, that is, the size of the noise is determined according to the output voltage of the t1+t2+t3+t5+t6+t7 period. In this embodiment, the first time period, the second time period, the third time period and the fourth time period are continuous in time.

[0106] In the t4 period, the fourth switch unit K4 is disconnected, and the other switches can be in any state. The other switches can also maintain the same state as at t3. Specifically, the first switch unit K1, the second switch unit K2, and the third switch unit K3 can be in the off state. In addition, for the t4 period, the third switch unit K3 can also be in the closed stage, that is, Figure 2BAs shown, in the stage t4, the first switch unit K1 and the second switch unit K2 are in the off state, the third switch unit K3 is in the closed state, and the fourth switch unit K4 is disconnected. The disconnection of the fourth switch unit K4 resets the amplifier in the charge transfer module, and the output voltage Vout becomes 0.

[0107] From the above, it can be seen that in the absence of noise, the voltage of the measured capacitor Cx and the offset capacitor Cc must be V at the end of the t2 period or the end of the t3 period. mm , in the presence of noise, at the end of period t2, the voltages of the capacitor to be measured Cx and the offset capacitor Cc are not V mm In the t3 period, the charge will be transferred, that is, it can be understood that the charge is transferred from the capacitor to be measured and the offset capacitor to the charge transfer module, and the size of the noise will affect the amount of charge transfer, so that the noise detection circuit can accurately measure the noise affecting the capacitor to be measured, so as to adjust the self-capacitance detection scheme, improve the self-capacitance detection scheme according to the noise affecting the capacitor to be measured, or further correct the result of the self-capacitance detection.

[0108] In addition, the noise detection result provided in this embodiment is not affected by the proximity or touch of the finger, and the noise can be accurately detected even when there is a finger touch. Specifically, if the finger touches the electrode, it can be understood that there is a finger capacitance Ct in parallel with the capacitor to be measured Cx. In the first period, the charge stored in the capacitor to be measured Cx is Q1=Vmm*Cx, the charge stored in the offset capacitor Cc is Q2=Vmm*Cc, and the charge stored in the finger capacitance Ct is Q3=Vmm*Ct. In the second period, assuming that there is no noise, according to the law of conservation of charge, Vmm*Cx+Vmm*Cc+Vmm*Ct=Vx*(Cx+Ct)+(Vx-0)*Cc holds, and the voltage Vx=Vmm of the capacitor to be measured Cx is obtained. In the third period, the output voltage of the charge transfer module is 0, that is, when there is no noise, the output voltage of the charge transfer module is 0 whether there is a finger touch or not. In addition, when there is noise, assuming that there is a finger touch, in the second time period, the voltage at the connection point of the offset capacitor and the capacitor to be measured is still Vx1, then the amount of charge converted and processed to generate the output voltage in the third time period is Qx1=(Vx1-Vmm)*(Cx+Cc+Ct), and for self-capacitance detection, assuming that there is noise and there is a finger touch, then in the eleventh time period of self-capacitance detection, the amount of charge converted and processed to generate the output voltage due to interference is Qx2=(Vx2-Vmm)*(Cx+Cc+Ct), when the interference source is the same, Vx1=Vx2, therefore, the result of the noise detection circuit of the present embodiment may not be affected by the proximity or touch of the finger, regardless of whether the finger touches or not, the noise detection circuit can accurately test the magnitude of the interference to the self-capacitance detection circuit, so as to confirm whether the self-capacitance detection circuit is to be used for self-capacitance detection.

[0109] in addition, Figure 1A The circuit shown can also be used for self-capacitance detection. Specifically, Figure 1A When the circuit shown in the figure performs self-capacitance detection, the first voltage connected to the first switch unit is switched to the power supply voltage Vcc, and the first voltage connected to the second switch unit is switched to GND. In addition, the capacitance to be tested and the offset capacitance are equal in size. Figure 1A When the circuit shown is used as a self-capacitance detection circuit, the timing of all its switch units is the same as the timing of the noise detection circuit, that is, it can also refer to Figure 2A The timing shown is used to perform self-capacitance detection.

[0110] Based on the contents disclosed in the above embodiments, in this embodiment, during noise detection, the common mode voltage can be used to process the capacitor to be tested and the offset capacitor, so as to Figure 6Taking the self-capacitance detection circuit shown as an example, during self-capacitance detection, the negative phase input terminal of the amplifier in the charge transfer module 603 is connected to the common mode voltage. Therefore, if during noise detection, the negative phase input terminal of the amplifier in the charge transfer module 104 can also be connected to the common mode voltage, then there is no need to add an additional switch to switch the common mode voltage and the first voltage, that is, during noise detection and self-capacitance detection, the negative phase input terminal of the amplifier is connected to the common mode voltage. In addition, when the first voltage is the common mode voltage, the noise detection and the self-capacitance detection have substantially the same circuit dynamic range. In addition, since the common mode voltage is generally provided in the circuit, the common mode voltage is used to process the capacitance to be measured and the offset capacitance, thereby avoiding the generation of other first voltages to simplify power management.

[0111] In this embodiment, Figure 1B As shown, the first voltage Vmm can be the common mode voltage Vcm, Vcc is the positive power supply voltage, the common mode voltage is half of Vcc, and the common mode voltage can also be called the common mode operating voltage. It can be understood that during self-capacitance detection, the inverting input terminal of the amplifier of the charge transfer module 104 is connected to the common mode voltage. Therefore, in this embodiment, when the first voltage is the common mode voltage, the noise detection circuit and the self-capacitance detection circuit can use the same charge transfer module 104, that is, at the inverting input terminal of the charge transfer module 104, there is no need to add a switch unit, so that during self-capacitance detection, the switch unit is connected to the common mode voltage, and during noise detection, the switch is connected to the first voltage. In addition, Figure 1B The control module, driving module, offset module, charge transfer module and processing module in the embodiment are the same or similar to those described in the above embodiments, and the timing diagram of the switch unit included therein can also refer to Figure 2A , the following takes a cycle of the control signal as an example to illustrate, and the main technical processing of each period is briefly described as follows:

[0112] During period t1: the common mode voltage Vcm is used to charge the capacitor Cx to be measured and the offset capacitor Cc;

[0113] During the t2 period, the first end of the capacitor to be measured Cx is connected to the first end of the offset capacitor Cc, and the first end of the capacitor to be measured Cx is disconnected from the common mode voltage Vcm, and the first end of the offset capacitor Cc is disconnected from the common mode voltage Vcm. During the t3 period, charge transfer is performed to convert the charges of the capacitor to be measured Cx and the offset capacitor Cc into voltage signals;

[0114] Period t4: The fully differential amplifier is reset.

[0115] After t4, there may be t5-t8 to repeat the operation of t1-t4, that is, the noise level may be determined based on the output voltage of twice the noise detection half cycle. Specifically, if the purpose is to detect the noise level of the self-capacitance detection circuit with an operating frequency of f1, the demodulation frequency of the self-capacitance detection circuit is also f1, and the noise level may be determined based on the output voltage of the time period 1 / f1. For example, 1 / f1 may be equal to t1+t2+t3+t4, or 1 / f1=2(t1+t2+t3+t4). If the self-capacitance detection circuit can obtain the self-capacitance value within the time length of t1+t2+t3+t4, the noise detection circuit can determine the noise of the self-capacitance detection circuit through the output voltage of the time length of t1+t2+t3+t4; for another example, if the self-capacitance detection circuit can obtain the self-capacitance value within the time length of 2(t1+t2+t3+t4), the noise detection circuit can determine the size of the noise of the self-capacitance detection circuit through the output voltage of the time length of 2(t1+t2+t3+t4).

[0116] During the t1 period, the first switch unit K1 and the second switch unit K2 are turned on (i.e., in a closed state), the third switch unit K3 and the fourth switch unit K4 are turned off, the first ends of the capacitor to be measured Cx and the offset capacitor Cc are both connected to the common mode voltage Vcm, the second end of the capacitor to be measured Cx and the second end of the offset capacitor Cc are both connected to GND, and the capacitor to be measured Cx and the offset capacitor Cc are charged at the same time. At the end of the t1 period, the voltage of the capacitor to be measured Cx is the common mode voltage Vcm, and the voltage of the offset capacitor Cc is the common mode voltage Vcm. In addition, since the fourth switch unit K4 is turned off, the output voltage Vout of the charge transfer module is 0. At this time, the amount of charge stored in the capacitor to be measured Cx Q1 = Vcm*Cx, and the amount of charge stored in the offset capacitor Cc Q2 = Vcm*Cc.

[0117] During the t2 period, the first switch unit K1 and the second switch unit K2 are turned off, the third switch unit K3 is closed, and the fourth switch unit K4 is disconnected. At this time, the first end of the capacitor Cx to be measured is connected to the first end of the offset capacitor Cc, and the second end of the capacitor Cx to be measured and the second end of the offset capacitor Cc are both grounded. When there is no noise (ideally), according to the law of conservation of charge, Vcm*Cx+Vcm*Cc=Vx*Cx+(Vx-0)*Cc holds, and the voltage Vx of the capacitor Cx to be measured is obtained to be Vcm; if there is noise, the charge stored in the capacitor Cx to be measured and the offset capacitor Cc changes, the capacitor Cx to be measured and the offset capacitor Cc are charged or discharged at the same time, and the voltage Vx of the capacitor Cx to be measured is not equal to Vcm, for example, Vx>Vcm or Vx <Vcm。

[0118] During the t3 period, the first switching unit K1 and the second switching unit K2 are turned off, the third switching unit K3 is closed, and the fourth switching unit K4 is closed. According to the magnitude of the voltage Vx of the capacitance Cx to be measured, there are the following situations:

[0119] If Vx > Vcm, the capacitance Cx to be measured and the cancellation capacitance Cc transfer charges to the charge transfer module simultaneously until the voltage Vx of the capacitance Cx to be measured reaches Vcm.

[0120] If Vx = Vcm, there is no process of the capacitance Cx to be measured and the cancellation capacitance Cc transferring charges to the charge transfer module, and the output voltage V out is 0. At this time, it indicates that the circuit is not affected by noise.

[0121] If Vx < Vcm, the charge transfer module will charge the capacitance Cx to be measured and the cancellation capacitance Cc through the feedback network (composed of R f and C f until the voltages of both the capacitance Cx to be measured and the cancellation capacitance Cc reach Vcm.

[0122] During the t4 period, the first switching unit K1, the second switching unit K2, and the third switching unit K3 are in the off state, and the fourth switching unit K4 is disconnected, causing the amplifier in the charge transfer module to reset and the output voltage Vout to become 0. It can be understood that since the output voltage Vout may not be 0 during the third period, therefore, during the fourth period, the output voltage Vout may also not be 0, but gradually becomes 0 with a certain trend.

[0123] As can be seen from the above, in the absence of noise, the voltages of the capacitance Cx to be measured and the cancellation capacitance Cc must be Vcm at the end of the t2 period or the end of the t3 period. In the presence of noise, the voltages of the capacitance Cx to be measured and the cancellation capacitance Cc are not Vcm at the end of the t2 period. During the t3 period, charges will transfer, and the magnitude of the noise will affect the quantity of charge transfer, so that the noise detection circuit can accurately measure the noise affecting the capacitance to be measured, in order to adjust the self-capacitance detection scheme, improve the self-capacitance detection scheme, or further correct the result of the self-capacitance detection.

[0124] Based on the content disclosed in the above embodiments, in this embodiment, as Figure 1C shown, the control module 100 is used to charge the capacitance Cx to be measured with the first voltage Vmm by controlling the drive module 102, and Figure 1AThe difference is that the control module 100 is used to control the offset module 103 so that both ends of the offset capacitor Cc are connected to the first voltage Vmm. In addition, the control module 100 controls the offset module 103 so that the first end of the offset capacitor Cc and the first end of the capacitor to be measured Cx are connected in the second period and the third period. The second end of the capacitor to be measured Cx is grounded, and the second end of the offset capacitor is connected to the first voltage Vmm. In addition, Figure 1C The control module, driving module, offset module, charge transfer module and processing module in the embodiment are the same or similar to those described in the above embodiments, and the timing diagram of the switch unit included therein can also refer to Figure 2A , the following takes a cycle of the control signal as an example to illustrate, and the main technical processing of each period is briefly described as follows:

[0125] During period t1: the capacitor Cx to be tested is charged using the first voltage Vmm, and the first end and the second end of the offset capacitor Cc are both connected to the first voltage Vmm;

[0126] During period t2, the first end of the measured capacitor Cx is connected to the first end of the offset capacitor Cc, and the first end of the measured capacitor Cx is disconnected from the first voltage Vmm, while the first end of the offset capacitor Cc is disconnected from the first voltage Vmm.

[0127] Period t3: Charge transfer is performed to convert the charges of the capacitor to be tested Cx and the offset capacitor Cc into voltage signals;

[0128] Period t4: The fully differential amplifier is reset.

[0129] During the t1 period, the first switch unit K1 and the second switch unit K2 are turned on (i.e., in a closed state), the third switch unit K3 and the fourth switch unit K4 are turned off, the first ends of the capacitor to be measured Cx and the offset capacitor Cc are both connected to the first voltage Vmm, the second end of the capacitor to be measured Cx is connected to GND, and the second end of the offset capacitor Cc is connected to the first voltage Vmm, and the capacitor to be measured Cx is charged during the first period. At the end of the t1 period, the voltage of the capacitor to be measured Cx is the first voltage Vmm, and the voltage of the offset capacitor Cc is 0. In addition, since the fourth switch unit K4 is turned off, the output voltage Vout of the charge transfer module is 0. At this time, the amount of charge stored in the capacitor to be measured Cx Q1 = Vcm*Cx, and the amount of charge stored in the offset capacitor Cc Q2 = 0*Cc.

[0130] During the t2 period, the first switching unit K1 and the second switching unit K2 are turned off, the third switching unit K3 is closed, and the fourth switching unit K4 is turned off. At this time, the first end of the capacitor under test Cx is connected to the first end of the cancellation capacitor Cc, the second end of the capacitor under test Cx is grounded, and the second end of the cancellation capacitor Cc is connected to the first voltage Vmm. When there is no noise (ideally), according to the law of conservation of charge, Vmm*Cx + 0*Cc = Vx*Cx + (Vx - Vmm)*Cc holds, and the voltage Vx of the capacitor under test Cx can be obtained as Vx = Vmm; if there is noise, the charges stored in the capacitor under test Cx and the cancellation capacitor Cc change, and the capacitor under test Cx and the cancellation capacitor Cc are charged or discharged simultaneously, and the voltage Vx of the capacitor under test Cx is not equal to Vmm. For example, Vx > Vmm or Vx < Vmm.

[0131] During the t3 period, the first switching unit K1 and the second switching unit K2 are turned off, the third switching unit K3 is closed, and the fourth switching unit K4 is closed. According to the magnitude of the voltage Vx of the capacitor under test Cx, there are the following situations:

[0132] If Vx > Vmm, the capacitor under test Cx and the cancellation capacitor Cc transfer charges to the charge transfer module simultaneously until the voltage Vx of the capacitor under test Cx reaches Vcm.

[0133] If Vx = Vcm, there is no process of the capacitor under test Cx and the cancellation capacitor Cc transferring charges to the charge transfer module, and the output voltage Vout of the charge transfer module is 0. At this time, it means that the circuit is not affected by noise.

[0134] If Vx < Vcm, the charge transfer module will charge the capacitor under test Cx and the cancellation capacitor Cc through the feedback network (composed of R f and C f ) until the voltages of the capacitor under test Cx and the cancellation capacitor Cc both reach Vcm.

[0135] During the t4 period, the first switching unit K1, the second switching unit K2, and the third switching unit K3 are in the off state, and the fourth switching unit K4 is turned off, so that the amplifier in the charge transfer module is reset and the output voltage Vout becomes 0.

[0136] Based on the content disclosed in the above embodiments, in this embodiment, as Figure 1D shown, different from Figure 1C , the first voltage is the common-mode voltage Vcm. In addition, Figure 1D the control module, the drive module, the cancellation module, the charge transfer module, and the processing module in Figure 2A are the same as or similar to those described in the foregoing embodiments, and the timing diagram of the switching units included therein can also be referred to Figure 2A . Taking one cycle of the control signal as an example, the main technical processes in each period are briefly described as follows:

[0137] During period t1: the capacitor to be measured Cx is charged with the common mode voltage Vcm, and the first and second ends of the offset capacitor are connected to the common mode voltage Vcm;

[0138] During period t2, the first end of the capacitor to be measured Cx is connected to the first end of the offset capacitor Cc, and the first end of the capacitor to be measured Cx is disconnected from the common mode voltage Vcm, and the first end of the offset capacitor Cc is disconnected from the common mode voltage Vcm;

[0139] Period t3: Charge transfer is performed to convert the charges of the capacitor to be tested Cx and the offset capacitor Cc into voltage signals;

[0140] Period t4: The fully differential amplifier is reset.

[0141] During the t1 period, the first switch unit K1 and the second switch unit K2 are turned on (i.e., in a closed state), the third switch unit K3 and the fourth switch unit K4 are turned off, the first ends of the capacitor to be measured Cx and the offset capacitor Cc are both connected to the common mode voltage Vcm, the second end of the capacitor to be measured Cx is connected to GND, and the second end of the offset capacitor Cc is connected to the common mode voltage Vcm. During the first period, the capacitor to be measured Cx is charged. At the end of the t1 period, the voltage of the capacitor to be measured Cx is Vcm, and the voltage of the offset capacitor Cc is 0. In addition, since the fourth switch unit K4 is turned off, the output voltage Vout of the charge transfer module is 0. At this time, the amount of charge stored in the capacitor to be measured Cx Q1 = Vcm*Cx, and the amount of charge stored in the offset capacitor Cc Q2 = 0.

[0142] During the t2 period, the first switch unit K1 and the second switch unit K2 are turned off, the third switch unit K3 is turned on, and the fourth switch unit K4 is turned off. When there is no noise (ideally), according to the law of conservation of charge, Vcm*Cx+0=Vx*Cx+(Vx-Vcm)*Cc holds, and the voltage Vx of the capacitor to be measured Cx is Vcm; if there is noise, the charge stored in the capacitor to be measured Cx and the offset capacitor Cc changes, the capacitor to be measured Cx and the offset capacitor Cc are charged or discharged at the same time, and the voltage Vx of the capacitor to be measured Cx is not equal to Vcm, for example, Vx>Vcm or Vx <Vcm。

[0143] During the period t3, the first switch unit K1 and the second switch unit K2 are turned off, the third switch unit K3 is turned on, and the fourth switch unit K4 is turned on. According to the voltage Vx of the capacitor Cx to be measured, the following situations exist:

[0144] If Vx>Vcm, the capacitor to be measured Cx and the offset capacitor Cc transfer charges to the charge transfer module at the same time until the voltage Vx of the capacitor to be measured Cx reaches Vcm.

[0145] If Vx = Vcm, there is no process of the charge transfer from the capacitance Cx to be measured and the cancellation capacitance Cc to the charge transfer module, and the output voltage V of the charge transfer module is 0, indicating that there is no noise in the circuit at this time. out When this occurs, it indicates that there is no noise in the circuit.

[0146] If Vx < Vcm, the charge transfer module will charge the capacitance Cx to be measured and the cancellation capacitance Cc through the feedback network (composed of R f and C f ) until the voltages of both the capacitance Cx to be measured and the cancellation capacitance Cc reach Vcm.

[0147] The situation in the time period t4 is similar to that of the foregoing embodiment and will not be elaborated here.

[0148] Taking the simulation waveform as an example to illustrate Vx and Vout in each time period, please refer to Figure 2C , Figure 2C where V(x) represents the voltage Vx at the first end of the capacitance Cx to be measured or the first end of the cancellation capacitance Cc, and V(out) represents the output voltage Vout of the charge transfer module. Taking the first voltage Vmm = 1.5V as an example for illustration.

[0149] In the time period t1, the capacitance Cx to be measured and the cancellation capacitance Cc are charged with the first voltage Vmm, or in the time period t1, the capacitance Cx to be measured is charged with the first voltage Vmm, and the first end and the second end of the cancellation capacitance are connected to the first voltage Vmm. In both cases, Vx is Vmm. At this time, the fourth switch unit is in the off state, and the output voltage Vout = 0;

[0150] In the time period t2, the first end of the capacitance Cx to be measured is connected to the first end of the cancellation capacitance Cc, and the interference source affects the电荷量 of the capacitance Cx to be measured and the cancellation capacitance Cc. Therefore, the voltage of Vx is not Vmm. For example, Vx < Vmm, and since the fourth switch unit is in the off state, the output voltage Vout = 0;

[0151] In the time period t3, charge transfer is performed to convert the charges of the capacitance Cx to be measured and the cancellation capacitance Cc into voltage signals. The voltages of the capacitance Cx to be measured and the cancellation capacitance Cc gradually return to the first voltage Vmm. The fourth switch unit is in the on state. In the time period t3, Vx < Vmm, and the output voltage Vout > 0;

[0152] In the time period t4, the fully differential amplifier is reset, the fourth switch unit is in the off state, and Vout gradually returns to 0;

[0153] In the t5 stage, the first voltage Vmm is used to charge the capacitor Cx to be tested and the offset capacitor Cc, or in the t1 period, the first voltage Vmm is used to charge the capacitor Cx to be tested, and the first end and the second end of the offset capacitor are connected to the first voltage Vmm. In both cases, Vx is Vmm, at this time, the fourth switch unit is in the off state, and the output voltage gradually returns to 0. If the output voltage has returned to 0 in the fourth period, the output voltage Vout remains at 0 in the fifth period;

[0154] In the t6 period, the first end of the capacitor to be measured Cx is connected to the first end of the offset capacitor Cc, and the interference source affects the charge of the capacitor to be measured and the offset capacitor. Therefore, the voltage of Vx is not Vmm, for example, Vx>Vmm, and since the fourth switch unit is in the off state, the output voltage Vout gradually returns to 0. If the output voltage has returned to 0 in the fifth period, the output voltage Vout remains 0 in the sixth period;

[0155] In the t7 period, charge transfer is performed to convert the charges of the measured capacitor Cx and the offset capacitor Cc into voltage signals. The voltages of the measured capacitor Cx and the offset capacitor Cc gradually return to the first voltage, and the fourth switch unit is in a closed state. At the beginning of the t6 period, Vx>Vmm, and the output voltage Vout<0. The subsequent increase of Vout to greater than 0 is due to the influence of the interference source at this stage.

[0156] During the period t8, the fully differential amplifier is reset, the fourth switch unit is in the disconnected state, and Vout gradually returns to 0.

[0157] In this embodiment, the t1 period is less than 2us, the t2 period is about 1us, specifically, the t2 period is less than 1us, the t3 period is about 2us, and the t4 period is less than 1us. Therefore, the length of each period is very short, and the noise can be quickly tested and obtained. The noise measurement can be achieved in 5us, that is, the noise detection half cycle can be 5us, and the noise detection circuit can be obtained in about 5us working at f=1 / (5us)=0.2*10 6 Hz, if the measured noise amplitude is less than the preset noise threshold, the self-capacitance detection circuit can be used with f = 0.2*10 6 Hz working frequency detection self-capacitance. 10us can also realize noise measurement, that is, the noise detection cycle is 10us, and around 10us, it can be obtained that the noise detection circuit works at f = 1 / (10us) = 10 5 Hz, if the measured noise amplitude is less than the preset noise threshold, the self-capacitance detection circuit can be used with f = 10 5In other embodiments, the sum of the first period, the second period, the third period, and the fourth period may also be less than 10 us, for example, the sum of the first period, the second period, the third period, and the fourth period may also be less than 5 us.

[0158] Based on the contents disclosed in the above embodiments, in this embodiment, Figure 3 As shown, the interference source 301, the driving module 302, the charge transfer module 304 and the processing module 305 are the same as or similar to the above-mentioned embodiments and are not described in detail here. This embodiment is described by taking the first voltage as the common-mode voltage Vcm as an example. The control module 300 is used to charge the capacitor to be tested by controlling the driving module 302 to use the common-mode voltage, and to control the offset module 303 so that the first end and the second end of the offset capacitor are connected to the common-mode voltage.

[0159] like Figure 3 As shown, the offset module 303 includes a second switch unit K2 (taking a single switch implementation as an example). In this embodiment, the second switch unit K2 is a switch with three contacts, and the second end of the offset capacitor Cc is connected to Vcm. Specifically, when the control module 300 controls the second switch unit K2 to be at contact 1 (the contact of the second switch unit is connected to contact 1), the first end of the offset capacitor Cc is connected to Vcm, so that the offset capacitor Cc is connected to Vcm at both ends in the first time period. Specifically, in the second and third time periods, the second switch unit K2 is at contact 2 (the contact of the second switch unit is connected to contact 2), and the first end of the offset capacitor Cc is connected to the first end of the capacitor to be measured Cx. The second end of the offset capacitor Cc is connected to Vcm. Specifically, in the fourth time period, the second switch unit K2 is at contact 3 (the contact of the second switch unit is connected to contact 3), and the first end of the offset capacitor Cc is suspended, that is, it can be understood that the offset capacitor Cc is disconnected from the capacitor to be measured Cx, and the offset capacitor Cc is not connected to the circuit.

[0160] When the control module 300 controls the contact of the second switch unit K2 to be at contact 2, the measured capacitor Cx and the offset capacitor Cc form a closed branch. At the end of stage t2, the measured capacitor and the offset capacitor store different amounts of charge. Due to the influence of noise, the voltage Vx at the connection point between the offset capacitor Cc and the measured capacitor Cx will change, and the offset capacitor Cc and the measured capacitor Cx will be charged or discharged. Therefore, at the end of stage t2, the voltage at the connection point between the offset capacitor Cc and the measured capacitor Cx is not Vcm.

[0161] In this embodiment, the states of the first switch unit K1, the second switch unit K2, and the fourth switch unit K4 refer to Figure 4 Description. Figure 4 For the embodiments of this application Figure 3The timing diagram of the noise detection circuit when it is working; Figure 4 As shown, the period t1-t4 constitutes a cycle of the control signals φ1, φ2, and φ3. Taking the period t1-t4 as an example, a brief description is as follows:

[0162] During period t1: the common-mode voltage is used to charge the capacitor Cx to be tested, and the two ends of the offset capacitor Cc are connected to the common-mode voltage;

[0163] During period t2, the first end of the capacitor to be measured Cx is connected to the first end of the offset capacitor Cc, and the first end of the capacitor to be measured Cx is disconnected from the common mode voltage, and the first end of the offset capacitor Cc is disconnected from the common mode voltage;

[0164] Period t3: Charge transfer is performed to convert the charges stored in the measuring capacitor Cx and the offset capacitor Cc into voltage signals;

[0165] Period t4: The fully differential amplifier is reset.

[0166] During the t1 period, the first switch unit K1 is turned on (in the closed state), the second switch unit K2 is connected to the contact 1 (the second switch unit is in the first closed state), and the fourth switch unit K4 is disconnected. The capacitor Cx to be measured is charged, and the two ends of the offset capacitor Cc are connected to the common mode voltage. At the end of the t1 period, the voltage of the capacitor Cx to be measured is Vcm, and the voltage of the offset capacitor Cc is 0. In addition, since the fourth switch unit K4 is disconnected, the output voltage Vout of the charge transfer module is 0. At this time, the charge amount Q1 stored in the capacitor Cx to be measured is Vcm*Cx, and the charge amount Q2 stored in the offset capacitor Cc is 0.

[0167] During the t2 period, the first switch unit K1 is turned off, the second switch unit K2 is connected to the contact 2 (the second switch unit is in the second closed state), and the fourth switch unit K4 is disconnected. When there is no noise (ideally), Vcm*Cx+0=Vx*Cx+(Vx-Vcm)*Cc holds, and the voltage Vx=Vcm of the capacitor to be measured Cx can be obtained; if there is noise, the charge stored in the capacitor to be measured Cx and the offset capacitor Cc changes, which can be understood as, in the t2 stage, if there is noise, the capacitor to be measured Cx is charged and the offset capacitor Cc is charged, or the capacitor to be measured Cx is discharged and the offset capacitor Cc is discharged. That is, if there is noise, the voltage Vx of the capacitor to be measured Cx is not equal to Vcm, Vx>Vcm or Vx <Vcm。

[0168] During the period t3, the first switch unit K1 remains off, the second switch unit K2 remains connected to the contact 2, and the fourth switch unit K4 is closed. According to the voltage Vx of the capacitor Cx to be measured, the following situations exist:

[0169] If Vx > Vcm, the capacitance under test Cx and the cancellation capacitance Cc transfer charges to the charge transfer module simultaneously until the voltage Vx of the capacitance under test Cx reaches Vcm.

[0170] If Vx = Vcm, there is no process of the capacitance under test Cx and the cancellation capacitance Cc transferring charges to the charge transfer module, and the output voltage Vout of the charge transfer module is 0, indicating no noise.

[0171] If Vx < Vcm, the charge transfer module charges the capacitance under test Cx and the cancellation capacitance Cc through the feedback network (composed of R f and C f ) until the voltages of both the capacitance under test Cx and the cancellation capacitance Cc reach Vcm.

[0172] In the time period t4, the first switch unit K1 is turned off, the contact of the second switch unit K2 is connected to the contact 3, and the fourth switch unit K4 is turned off. When the second switch unit is connected to the contact 3, it can also be said that the second switch unit is in the off state or the open state. In the t4 stage, the charge transfer module 304 is reset and the output voltage Vout becomes 0. Additionally, in the time period t4, the contact of the second switch unit K2 can also be connected to the contact 2, that is, in this embodiment, the contact 3 may not exist.

[0173] As can be seen from the above, in the case of no noise, the voltage of the capacitance under test Cx must be Vcm at the end of the time period t2. In the case of noise, the voltages of the capacitance under test Cx and the cancellation capacitance Cc are not Vcm at the end of the time period t2, and in the time period t3, charges will be transferred. The magnitude of the noise will affect the quantity of charge transfer, so that the noise detection circuit can accurately measure the noise affecting the capacitance under test, in order to adjust the self-capacitance detection scheme, improve the self-capacitance detection scheme according to the detected noise affecting the capacitance under test, or further correct the result of the self-capacitance detection.

[0174] Based on the content disclosed in the above embodiments, in this embodiment, as Figure 5 shown, the noise detection circuit of this embodiment, the interference source 501, the driving module 502, the charge transfer module 504, and the processing module 505 are the same as or similar to those in the previous embodiments, and will not be elaborated here. Different from Figure 3 , the second end of the cancellation capacitance in the cancellation module is grounded. Correspondingly, the states of the first switch unit K1, the second switch unit K2, and the fourth switch unit K4 can be referred to Figure 4 , and will be described in combination with specific time periods below.

[0175] In the time period t1: Charge the capacitance under test Cx and the cancellation capacitance Cc using the common-mode voltage;

[0176] Time period t2: The first terminal of the capacitor under test Cx is connected to the first terminal of the cancellation capacitor Cc, and the first terminal of the capacitor under test Cx is disconnected from the common-mode voltage Vcm, and the first terminal of the cancellation capacitor Cc is disconnected from the common-mode voltage Vcm;

[0177] Time period t3: Charge transfer is performed to convert the charges of the capacitor under test Cx and the cancellation capacitor Cc into voltage signals;

[0178] Time period t4: The fully differential amplifier is reset.

[0179] In time period t1, the first switch unit K1 is turned on (i.e., in the closed state), the contact of the second switch unit K2 is connected to contact 1 (the second switch unit is in the first closed state), the fourth switch unit K4 is turned off, the capacitor under test Cx is charged, and the cancellation capacitor Cc is charged. At the end of time period t1, the voltage of the capacitor under test Cx is Vcm, and the voltage of the cancellation capacitor Cc is Vcm. In addition, since the fourth switch unit K4 is turned off, the output voltage Vout of the charge transfer module is 0. At this time, the charge stored in the capacitor under test Cx is Q1 = Vcm * Cx, and the charge stored in the cancellation capacitor Cc is Q2 = Vcm * Cc.

[0180] In time period t2, the first switch unit K1 is turned off, the second switch unit K2 is connected to contact 2 (the second switch unit is in the second closed state), and the fourth switch unit K4 is turned off. When there is no noise, according to the law of conservation of charge, Vcm * Cx + Vcm * Cc = Vx * Cx + (Vx - 0) * Cc holds, and the voltage Vx of the capacitor under test Cx can be obtained as Vx = Vcm; if there is noise, the charges stored in the capacitor under test Cx and the cancellation capacitor Cc change, and the voltage Vx of the capacitor under test Cx is not equal to Vcm. For example, Vx > Vcm or Vx < Vcm. In addition, the situations in time periods t3 and t4 are the same as or similar to those in the foregoing embodiments, and will not be elaborated here.

[0181] Combined with the content of the foregoing embodiments, in this embodiment, the control module is further configured to switch the first voltage so that the control module controls the driving module, the cancellation module, the charge transfer module, and the processing module to perform self-capacitance detection. The following will be described in conjunction with the capacitance detection circuit. Please refer to Figure 6 the self-capacitance detection circuit shown in Figure 7 and the timing diagram of the capacitance detection circuit shown in Figure 6 When the self-capacitance detection circuit shown in is performing self-capacitance detection, the value of Vss can be equal to GND or -Vcc. When Vss = GND, if Cc = Cx / 3, the circuit is completely cancelled; when Vss = -Vcc, if Cc = Cx / 5, the circuit is completely cancelled. When the circuit reaches the completely cancelled state, the basic capacitance of the capacitor under test Cx can be completely cancelled. Then, when there is a touch, the capacitance of the capacitor under test Cx increases on the basis of its basic capacitance, and the output voltage VOUT The voltage is completely caused by touch. Therefore, the detection sensitivity of the self-capacitance detection circuit is the highest in this state.

[0182] Combination Figure 7 Taking the ninth to sixteenth time periods (t9-t16) as an example, when performing self-capacitance detection, in the ninth time period, the capacitor to be measured and the offset capacitor are charged, and in the tenth time period, the charge of the capacitor to be measured and the offset capacitor is offset; in the eleventh time period, the charge of the capacitor to be measured and the offset capacitor is transferred; in the twelfth time period, the charge transfer module is reset; the ninth time period, the tenth time period, the eleventh time period, and the twelfth time period can correspond to the charging time, the offset time, the charge transfer time, and the dead time, respectively. In the thirteenth time period, the capacitor to be measured is discharged and the offset capacitor is charged; in the fourteenth time period, the charge of the capacitor to be measured and the capacitor is offset; in the fifteenth time period, the charge of the capacitor to be measured and the offset capacitor is transferred; in the sixteenth time period, the charge transfer module is reset; the thirteenth time period, the fourteenth time period, the fifteenth time period, and the sixteenth time period can also correspond to the charging time, the offset time, the charge transfer time, and the dead time, respectively. The lengths of the ninth time period, the tenth time period, the eleventh time period, and the twelfth time period are equal to the lengths of the thirteenth time period, the fourteenth time period, the fifteenth time period, and the sixteenth time period, respectively. During self-capacitance detection, there is charge movement during the t10 period, that is, the charge of the capacitor to be tested moves to the offset capacitor, or the charge of the offset capacitor moves to the capacitor to be tested. If t2 is not set during noise detection, during noise detection, when entering the t3 period, only the charge of the interference source will be transferred to the charge transfer module, and the charge of the offset capacitor and the capacitor to be tested will not be transferred to the charge transfer module. During self-capacitance detection, the charge generated by the interference source charging or discharging the offset capacitor and the capacitor to be tested will be transferred to the charge conversion module. Therefore, during noise detection, t2 also needs to be set, so that the noise obtained by the test can be closer to the noise during self-capacitance detection, the detection is more accurate, and the noise measured during noise detection can be as consistent as possible with the noise during self-capacitance detection; during self-capacitance detection, when entering the t11 stage, the charge of the offset capacitor and the capacitor to be tested will be transferred to the charge transfer module.

[0183] Figure 6 The control module 600, the driving module 601, the compensation module 603, the charge transfer module 603, and the processing module 604 are similar to the above-mentioned embodiments. The processing module 604 is used to detect the output voltage of the charge compensation module 603, and calculate the change in the self-capacitance of the capacitor Cx to be measured before and after the touch, and finally obtain a digital value for representing the change. In addition, combined with its timing diagram Figure 7 The technical principle can be analyzed and will not be described here. It should be noted that: Figure 7The period T in represents the detection period of self-capacitance detection, that is, it takes t1-t8 to complete the self-capacitance detection, or t9-t16 to get the capacitance value of self-capacitance detection. The detection period T is twice the period of control signals φ1, φ2, φ3. Based on Figure 6 The self-capacitance detection circuit shown in the figure is described in detail below. Figure 8 How to detect noise.

[0184] Please refer to Figure 8 As shown in the noise detection circuit, in this embodiment, in order to save circuit area, the noise detection circuit and the self-capacitance detection circuit can share a part of the circuit. Figure 8 The number of switch units in the noise detection circuit shown is Figure 6 The self-capacitance detection circuits shown have the same number of switch units.

[0185] exist Figure 8 In the noise detection circuit, for the driving module, the second end of the capacitor to be measured is grounded, and the two switch units of the driving module, the first switch unit K1 and the fifth switch unit K5, are used to control whether the first end of the capacitor to be measured is connected to the common mode voltage. In this embodiment, the first switch unit K1 and the fifth switch unit K5 in the driving module can also be implemented by only one switch unit. This embodiment only takes the two switch units K1 and K5 as examples to facilitate understanding of how to realize that the noise detection circuit and the self-capacitance detection circuit share one circuit. When performing noise detection, Figure 8 The driver module in can be understood as Figure 6 The Vcc and GND of the 1 and 2 contacts of the switch unit K5 in the driving module are switched to the common mode voltage; when performing self-capacitance detection, Figure 6 The driver module in can be understood as Figure 8 The common mode voltage of the driving module connected to the fifth switch unit K5 is switched to Vcc and GND.

[0186] exist Figure 8 In the noise detection circuit, for the cancellation module, the switch unit in the cancellation module is used to control whether the first end and the second end of the cancellation capacitor are connected to the common mode voltage, wherein the switch unit K2 is also used to control whether the first end of the cancellation capacitor is connected to the first end of the capacitor to be measured. The cancellation module in the noise detection circuit can be understood as Figure 6 The power supply of the offset module in the self-capacitance detection circuit (including Vss = -Vcc, Vcc, GND) is switched to a common mode voltage. When performing self-capacitance detection, Figure 6 The offset module in can be understood as Figure 8The common mode voltage of the cancellation module connected to the sixth switch unit is switched to Vss and Vcc, the common mode voltage of the cancellation module connected to the seventh switch unit is switched to Vcc and Vss, and the common mode voltage of the cancellation module connected to the eighth switch unit is switched to Vcc and GND.

[0187] exist Figure 8 The charge transfer module 804 and the processing module 805 in the noise detection circuit are the same as or similar to those described in the above embodiments, and will not be described in detail in this embodiment.

[0188] The following details Figure 8 The specific structure of the noise detection circuit shown in Figure 8 The switch unit in Figure 6 The number of switch units in is the same as described above, except that the voltage sources connected to some of the switch units are switched to a common mode voltage. Figure 1A , 1B , 1C, 1D, and Figure 3The difference between the noise detection circuit of the embodiment and the noise detection circuit of the embodiment is that the noise detection circuit of the embodiment adds a switch unit so that the noise detection circuit can reuse the switch unit of the self-capacitance detection circuit. The driving module 802 includes the first switch unit K1 and the fifth switch unit K5, the offset module 803 includes the second switch unit K2, the sixth switch unit K6, the seventh switch unit K7, the eighth switch unit K8, and the ninth switch unit K9, and the charge transfer module 804 includes the fourth switch unit K4. In the embodiment, the second switch unit K2, the fifth switch unit K5, the sixth switch unit K6, the seventh switch unit K7, the eighth switch unit K8, and the ninth switch unit K9 are implemented as a single switch, which is specifically a single-pole double-throw switch, which has contacts 1 and 2 respectively, and has two closed states, which are respectively called the first closed state and the second closed state. When switched to contact 1, it is in the first closed state, and when switched to contact 2, it is in the second closed state. Furthermore, the control module 800 is further used to control the on and off of switches K1~K2, K4~K9, and the control module 800 can be specifically a programmable sequential logic circuit. The signal for controlling the on and off of the first switch unit K1 is recorded as Φ1 (or referred to as the first control signal), the signal for controlling the on and off of the second switch unit K2 and the ninth switch unit K9 is recorded as Φ2 (or referred to as the second control signal), the signal for controlling the on and off of switch K4 is recorded as Φ3 (or referred to as the third control signal), and the signal for controlling the on and off of the fifth switch unit K5 to the eighth switch unit K8 is recorded as Φ4 (or referred to as the fourth control signal). That is, the second switch unit and the ninth switch unit are synchronously controlled to switch to a closed state through the second control signal, and the fifth switch unit to the eighth switch unit are synchronously controlled to switch to a closed state through the fourth control signal, so as to realize the processing of the capacitor to be measured and the offset capacitor and the charge transfer with the charge transfer module, so as to realize noise detection or self-capacitance detection.

[0189] In this embodiment. Figure 8 When K1 is closed and K5 is in the first closed state or the second closed state, Figure 8 The driver module 802 in is similar to Figure 3 The driving module 302 in the embodiment is in the period t1, that is, the capacitor Cx to be tested is charged. Figure 8 When the switch K6 in the circuit is in the first closed state or the second closed state, and K9 is in the first closed state, and K7 is in the first or second closed state, Figure 8 The offset module 803 in is similar to Figure 3 The cancellation module 303 in the embodiment is in the t1 period, that is, the first end and the second end of the cancellation capacitor Cc are both connected to the common mode voltage; Figure 8 When the switch K6 in the circuit is in the first closed state or the second closed state, and K9 is in the second closed state, and K8 is in the first or second closed state, Figure 8 The offset module 803 in is also similar to Figure 3 The cancellation module 303 in the embodiment is in the t1 period, that is, the first end and the second end of the cancellation capacitor Cc are both connected to the common mode voltage. Figure 8 , when the first switch unit K1 is in a closed state and the fifth switch unit K5 is in a first closed state or a second closed state, the first end of the capacitor to be measured Cx is connected to the common mode voltage; when the second switch unit K2 is in a first closed state, the sixth switch unit K6 is in a first closed state or a second closed state, K9 is in a first closed state, and K7 is in a first closed state or a second closed state, the first end and the second end of the offset capacitor are both connected to the common mode voltage; when the second switch unit K2 is in a first closed state, the sixth switch unit K6 is in a first closed state or a second closed state, K9 is in a second closed state, and K8 is in a first closed state or a second closed state, the first end and the second end of the offset capacitor are both connected to the common mode voltage. When the second switch unit K2 is in a second closed state, the ninth switch unit K9 is in a first closed state, and the seventh switch unit K7 is in a first closed state or a second closed state, the first end of the offset capacitor Cc is connected to the first end of the capacitor to be measured Cx and the second end of the offset capacitor Cc is connected to the common mode voltage. When the second switch unit K2 is in the second closed state, the ninth switch unit K9 is in the second closed state and the eighth switch unit K8 is in the first closed state or the second closed state, the first end of the offset capacitor Cc is connected to the first end of the capacitor to be measured Cx and the second end of the offset capacitor Cc is connected to the common mode voltage.

[0190] Combine the following Figure 8 Corresponding timing diagram Figure 7 , for the above Figure 8 The working principle of the noise detection circuit is illustrated in the following figure. Figure 7 This application embodiment is also directed to Figure 8 The timing diagram of the noise detection circuit in the figure shows that the timing of the noise detection circuit can be the same as the timing of the self-capacitance detection circuit; Figure 7 As shown, the t1-t4 period and the t5-t8 period constitute a detection cycle. The main technical processing of each period is briefly described as follows:

[0191] During period t1: the capacitor Cx to be tested is charged to offset the common mode voltage across the capacitor Cc;

[0192] Period t2: the first end of the capacitor to be measured Cx is connected to the first end of the offset capacitor Cc;

[0193] Period t3: Charge transfer is performed to convert the charge of the capacitor to be tested Cx and the charge of the offset capacitor Cc into a voltage signal;

[0194] Period t4: charge transfer module reset;

[0195] Period t5: the capacitor Cx to be tested is charged to offset the common mode voltage across the capacitor Cc;

[0196] Period t6: the first end of the capacitor to be measured Cx is connected to the first end of the offset capacitor Cc;

[0197] Period t7: Charge transfer is performed to convert the charge of the capacitor to be tested Cx and the charge of the offset capacitor Cc into voltage signals;

[0198] Period t8: The charge transfer module is reset and its output voltage signal is 0.

[0199] like Figure 7 As shown, the signal frequency of the first control signal Φ1 to the third control signal Φ3 is twice that of the fourth control signal Φ4. In this embodiment, for the noise detection circuit, the signal frequencies of the first control signal Φ1 to the third control signal Φ3 are equal, and there is no restriction on the frequency of the fourth control signal Φ4. Since the signal frequency of the first control signal Φ1 to the third control signal Φ3 is twice that of the fourth control signal Φ4 during self-capacitance detection, for convenience, in order to avoid resetting the fourth control signal Φ4, during noise detection, the signal frequency of the first control signal Φ1 to the third control signal Φ3 can also be set to be twice that of the fourth control signal Φ4. Specifically, the fourth control signal Φ4 can be a square wave with a duty cycle of 50%. In this embodiment, t1=t5, t2=t6, t3=t7, t4=t8; the detailed timing process is as follows:

[0200] During the t1 period, the first switch unit K1 is turned on, the fifth switch unit K5, the sixth switch unit K6, the seventh switch unit K7, the second switch unit K2, and the ninth switch unit K9 are in the first closed state, and the fourth switch unit K4 is turned off, so that the first end of the capacitor Cx to be measured is connected to Vcm and the second end thereof is connected to GND, and the first end of the offset capacitor is connected to Vcm and the second end thereof is connected to Vcm, and finally the capacitor Cx to be measured is charged. At the end of the t1 period, the voltage of the capacitor Cx to be measured is Vcm (i.e., Vcm-GND), and the voltage of the offset capacitor Cc is 0 (i.e., Vcm-Vcm=0). At this time, the charge amount Q1 stored in the capacitor Cx to be measured is Vcm*Cx, and the charge amount Q2 stored in the offset capacitor Cc is (Vcm-Vcm)*Cc=0. At the same time, since the fourth switch unit K4 is disconnected, the output voltage Vout of the charge transfer module 804 is 0.

[0201] During the t2 period, the first switch unit K1 and the fourth switch unit K4 are turned off under the control of the first control signal and the third control signal, respectively, the second switch unit K2 and the ninth switch unit K9 are connected to the contact 2 under the control of the second control signal to be in the second closed state, the fifth switch unit K5 to the eighth switch unit K8 are connected to the contact 1 under the control of the fourth control signal to be in the first closed state, and the capacitor Cx to be measured is connected to the offset capacitor Cc. According to the law of conservation of charge, Vcm*Cx+0=Vx*Cx+(Vx-Vxm)*Cc holds, and the voltage Vx of the capacitor Cx to be measured is obtained to be Vcm. It should be noted that if there is noise, for example, the interference is simulated by the interference source 801, and the interference source 801 affects the capacitor Cx to be measured and the offset capacitor Cc, so that the voltage Vx of the capacitor Cx to be measured is not equal to Vcm. It can be understood that the interference of the interference source 801 will cause the capacitor to be measured and the offset capacitor to charge or discharge, so that the voltage Vx of the capacitor Cx to be measured is greater than or less than Vcm.

[0202] During period t3, the fourth switch unit K4 is turned on, and the other switches maintain the same state as during period t2. If the voltage Vx of the capacitor Cx to be measured is greater than or less than Vcm, charge transfer is performed between the capacitor Cx to be measured, the offset capacitor Cc and the charge transfer module 142.

[0203] During the period t4, the fourth switch unit K4 is disconnected, and other switches can maintain the same state as during the period t3. The charge transfer module 804 is reset, and the output voltage Vout of the charge transfer module 804 becomes 0. The period t4 can be called a dead zone period.

[0204] The period t5-t8 is similar to the period t1-t4 and will not be described again here.

[0205] In the above working process, charge transfer can occur during the time periods t3 and t7, and the charges of the capacitor to be tested and the offset capacitor can be transferred to the charge transfer module. According to the voltage Vx on the capacitor to be tested Cx at the end of the time periods t2 and t6, the following situations exist:

[0206] If Vx>V CM , the capacitor to be measured Cx and the offset capacitor Cc transfer charges to the charge transfer module 804 at the same time, until the voltage of the capacitor to be measured Cx reaches the common mode voltage V CM In this process, the output voltage Vout of the charge transfer module 804 is a negative voltage, but it may also be affected by interference sources, so that Vout gradually becomes a positive voltage.

[0207] If Vx=V CM , the charge transferred between the measured capacitor Cx, the offset capacitor Cc and the charge transfer module 804 is 0, and the output voltage Vout of the charge transfer module 804 is also 0. At this time, the circuit reaches a complete offset state.

[0208] If Vx <V CM , the charge transfer module 142 will pass through the feedback network (R f and C f ) Charge the capacitor to be tested Cx and the offset capacitor Cc until the voltage of the capacitor to be tested Cx and the offset capacitor Cc reaches the common mode voltage V CM In this process, the output voltage Vout of the charge transfer module 804 is a positive voltage, but it may also gradually become a negative voltage due to the influence of interference sources.

[0209] The output voltage of the charge transfer module 804 is filtered by the filter in the processing module 152, and the filter is an anti-aliasing filter (AAF) as an example. After filtering, it is sent to the analog-digital converter (ADC) for sampling, and then orthogonal demodulated by the digital signal processor (DSP). The reference frequency used in the demodulation can be understood as the working frequency of the noise detection circuit. The raw data obtained after demodulation is sent to the central processing unit (CPU) for noise calculation to obtain the size of the noise, such as the amplitude.

[0210] Based on the contents disclosed in the above embodiments, in this embodiment, when detecting noise, its noise detection period is T=t1+t2+t3+t4. It can be understood that if the working frequency of the self-capacitance detection is 1 / T, then in the digital signal processor, the reference frequency used for demodulation is 1 / T. In addition, if the working frequency of the self-capacitance detection is 1 / (2T), when detecting noise, it is necessary to detect the time of 2T, 2T=t1+t2+t3+t4+t1+t2+t3+t4, then after filtering the output voltage of the charge transfer module within the time of 2T, in the digital signal processor, the reference frequency used for demodulation is 1 / (2T), so that the frequency response of the noise detection circuit to noise (interference) under the preset working frequency can be tested. When there is no t4 period, that is, the t4 stage can be omitted, T=t1+t2+t3, then the reference frequency used for demodulation changes accordingly, so as to demodulate and obtain an accurate frequency response of the noise.

[0211] In combination with the contents disclosed in the above embodiments, in this embodiment, the amplifier may also be a single-ended amplifier, for example. Fig. 9The charge transfer module 904 includes a single-ended amplifier, and the negative phase input terminal of the single-ended amplifier is connected to the first voltage. The interference source 901, the driving module 902, the offset module 903, the charge transfer module 904, and the processing module 905 are the same or similar to the interference source, the driving module, the offset module, the charge transfer module, and the processing module in the aforementioned embodiment, and the timing sequence is the same as that in the aforementioned embodiment. Figure 1A The corresponding timing is the same and will not be repeated here. Fig.10 The frequency response diagram of the self-capacitance detection circuit to the preset noise when no finger touches the electrode obtained by simulation (gray solid line) and the frequency response diagram of the noise detection circuit of this embodiment to the same preset noise (black dashed line) are shown. It can be understood that the frequency response refers to applying a signal of a specific frequency to the circuit / system to detect the degree of response of the system to the signal of the specific frequency; or applying a signal within a frequency range to detect the degree of response of the system to the signal within the frequency range, that is, the frequency response diagram can characterize the circuit characteristics. Specifically, the interference source with a frequency of 10-500kHz can be set to perform frequency sweeping, that is, the preset noise can be explained by taking the interference source of 10-500kHz for example. When there is no finger touching, Figure 6 The frequency response diagram of the self-capacitance detection circuit shown is represented by the gray solid line. Figure 8 The measured frequency response of the noise detection circuit shown is represented by the black dashed line. Figure 6 and Figure 8 The circuits shown use Figure 7 The timing shown. When there is no finger touch, the frequency response (Frequency Response) of the Vout of the self-capacitance detection circuit and the Vout of the noise detection circuit are basically the same. The amplitudes of the two are different, and the noise in the self-capacitance detection circuit is larger. The reason is that there is a capacitance reference value during self-capacitance detection, so that the energy of the noise does not change after IQ (in-phase and quadrature) demodulation, but in the noise detection circuit, there is no capacitance reference value, so the energy after IQ demodulation is reduced. Fig.10 In the figure, the horizontal axis represents the frequency, and the vertical axis represents the magnitude of the measured noise. At each frequency point, the magnitude of the noise measured by the noise detection circuit can accurately represent the magnitude of the noise detected by the self-capacitance detection circuit. From the agreement between the two curves, the noise detection circuit provided in this embodiment can truly feedback the noise during self-capacitance detection.

[0212] Combined with the contents disclosed in the above embodiments, the circuit provided in this embodiment can perform both noise detection and self-capacitance detection, such as Fig.11 As shown, the control module 1100, the charge transfer module 1104 and the processing module 1105 are the same or similar to the above-mentioned embodiments, and are not described in detail here. Figure 6On the basis of the above, the driving module 1102 adds a tenth switch unit for controlling whether the first end of the capacitor to be measured is connected to the common mode voltage, and the offset module 1103 adds an eleventh switch unit and a twelfth switch unit, wherein the eleventh switch unit is used to control whether the first end of the offset capacitor is connected to the common mode voltage, and the twelfth switch unit is used to control whether the second end of the offset capacitor is connected to the common mode voltage. Figure 6 The tenth switch unit, the eleventh switch unit and the twelfth switch unit are added on the basis of the invention so that when detecting noise, the switch unit can be switched to Figure 3 or Figure 5 The noise detection circuit shown in Figure 1 is Fig.11 As shown, an enable signal EN is added to control switch units K5, K6, K7, K8, and K9. When EN is high, these switches are enabled. At this time, the control signal of the corresponding switch unit is high and connected to contact 1, and is low and connected to contact 2. When EN is low, these switches are not enabled and are in a disconnected or high-impedance state. No matter how the corresponding control signal changes, it will not be connected to contact 1 and contact 2. The enable signal EN is added to control the fifth switch unit, the sixth switch unit, the seventh switch unit, the eighth switch unit, and the ninth switch unit so that when EN is high during self-capacitance detection, these switches are enabled and connected to contact 1 or contact 2. The corresponding control signals are as shown in FIG. Figure 7 As shown, during self-capacitance detection, Figure 7 Φ5 and Φ6 which are not shown in the figure can be kept at low level, that is, K 10 , K 11 , K 12 When EN is low, switches K5, K6, K7, K8, and K9 are not enabled, so K5, K6, K7, K8, and K9 are all in the disconnected state, that is, they are not connected to contact 1 or contact 2. Even if K5, K6, K7, K8, and K9 are still connected to contact 1 or 2, since the enable signal EN is low, the connection between K5, K6, K7, K8, and K9 and contact 1 or 2 will not work. Φ1 can have the same timing as Φ5, because K5 is not enabled, that is, K5 is in the disconnected state. When noise is detected, the timing of Φ1 is any timing and will not affect the detection of noise. For example, K1 can be turned off all the time. When EN is low, Φ6 is always at a high level, that is, K 11 , K 12 Always connected to the common mode voltage. When EN is low, noise detection is performed, and the timing of the switch unit can refer to Fig.12 As shown, Fig.12 The T in the figure represents the period of self-capacitance detection. During the self-capacitance detection, the size of the self-capacitance can be measured only after the period t1-t8 has passed.

[0213] In this embodiment, adding the enable signal EN to control the switch units K5, K6, K7, K8, K9 to be enabled or not is only an embodiment. In addition, another contact of the switch units K5, K6, K7, K8, K9 may be added to replace the enable signal, such as contact 3. When the switch units K5, K6, K7, K8, K9 contact contact 3, the switch units K5, K6, K7, K8, K9 are disconnected, for example, they may be unloaded, that is, they do not contact contact 1 or contact 2. The above embodiments disclosed in the disclosure may be referred to. Figure 3 Design of the contact 3 in the second switching unit K2.

[0214] In combination with the contents of the above embodiments, in this embodiment, the capacitance detection circuit is described. Fig.13 The self-capacitance detection circuit shown and Fig.14 The timing diagram of the capacitance detection circuit is shown. Fig.13 The control module 1300, the driving module 1302, the offset module 1303, the charge transfer module 1304, and the processing module 1305 are similar to the above-mentioned embodiments. Fig.14 Similar analysis can be used to derive its technical principle, which will not be repeated here. Fig.13 The self-capacitance detection circuit shown in the figure is described in detail below. Fig.15A The noise detection circuit shown here shows how to detect noise.

[0215] Please refer to Fig.15A In the noise detection circuit shown in the embodiment, in order to save circuit area, the noise detection circuit and the self-capacitance detection circuit can share the switch unit, and the number of the switch units of the noise detection circuit is the same as Fig.13 The self-capacitance detection circuits shown have the same number of switch units.

[0216] exist Fig.15A In the noise detection circuit, for the driving module, the second end of the capacitor to be tested is grounded, and the two switch units and the thirteenth switch unit K of the driving module are grounded. 13 and the fourteenth switch unit K 14 The thirteenth switch unit K in the driving module in this embodiment is used to control whether the first end of the capacitor to be tested is connected to the common mode voltage. 13 and the fourteenth switch unit K 14 It can also be implemented by only one switch unit. This embodiment takes a shared switch unit as an example to explain how to realize that the noise detection circuit and the self-capacitance detection circuit share one circuit. In the noise detection circuit, Fig.15A The driver module in can be understood as Fig.13 The Vcc connected to the thirteenth switch unit in the driving module is switched to a common mode voltage, and Fig.13The GND connected to the fourteenth switch unit in the driving module is also switched to the common mode voltage. For the driving module of the noise detection circuit, when self-capacitance detection is required, the common mode voltage connected to the thirteenth switch unit and the fourteenth switch unit is switched to Vcc and GND.

[0217] exist Fig.15A In the noise detection circuit, for the cancellation module, the switch unit in the cancellation module is used to control whether the first end and the second end of the cancellation capacitor are connected to the common mode voltage, wherein the second switch unit K2 is also used to control whether the first end of the cancellation capacitor is connected to the first end of the capacitor to be measured. Figure 6 Compared with the self-capacitance detection circuit shown in FIG. 1 , the cancellation module in the noise detection circuit can be understood as switching the power supply (including Vcc and GND) of the cancellation module in the self-capacitance detection circuit to a common mode voltage, that is, ... to a common mode voltage with the fifteenth switch unit K 15 , the sixteenth switch unit K 16 , Seventeenth switch unit K 17 and the eighteenth switch unit K 18 The connected power supply is switched to a common mode voltage. For the cancellation module of the noise detection circuit, when self-capacitance detection is required, the fifteenth switch unit K 15 , the sixteenth switch unit K 16 , Seventeenth switch unit K 17 and the eighteenth switch unit K 18 The common-mode voltages connected are switched to Fig.13 The corresponding GND, Vcc, Vcc, GND in the figure.

[0218] exist Fig.15A The charge transfer module 1504 and the processing module 1505 in the noise detection circuit are the same or similar to those described in the previous embodiment, and will not be described in detail in this embodiment. Fig.15A The corresponding timing diagram can be Fig.14 , combined with its timing diagram, the above Fig.15A The working principle of the noise detection circuit is illustrated in the following figure.

[0219] Fig.14 For the embodiments of this application Fig.15A The timing diagram of the noise detection circuit when it is working; Fig.14 As shown, the two t1-t4 periods constitute a noise detection cycle. Fig.14 T in the figure represents the period of self-capacitance detection. The following is a brief description of the main technical processing in each period:

[0220] During period t1: the capacitor Cx to be tested is charged to offset the common mode voltage across the capacitor Cc;

[0221] Period t2: the first end of the capacitor to be measured Cx is connected to the first end of the offset capacitor Cc;

[0222] Period t3: Charge transfer is performed to convert the charges of the capacitor to be tested Cx and the offset capacitor Cc into voltage signals;

[0223] Period t4: the charge transfer module is reset and the output is 0;

[0224] Understandably, Fig.15A The noise detection circuit in can be equivalent to Figure 1C The noise detection circuit in Fig.14 , we can also get Figure 2A Or the timing diagram shown in 2B, specifically, Figure 2A Or the first control signal Φ1 in 2B can be understood as Fig.14 The first control signal Φ1 and the second control signal Φ2 are operated by "OR", Figure 2A The second control signal Φ2 in can be understood as Fig.14 The third control signal Φ3 in Figure 2A The third control signal Φ3 in can be understood as Fig.14 The sixth control signal Φ6 in the circuit diagram of noise detection Fig.15A The timing of the setting is the same as that of the self-capacitance detection circuit in order not to change the timing of the switch unit during noise detection, but only to switch Fig.13 The power supply connected to the middle switch unit can realize noise detection. Fig.14 As shown, the signal frequencies of the third control signal Φ3 and the sixth control signal Φ6 are twice those of the first control signal Φ1, the second control signal Φ2, the fourth control signal Φ4, and the fifth control signal Φ5. In this embodiment, for the noise detection circuit, the signal frequencies of the first control signal Φ1, the second control signal Φ2, the fourth control signal Φ4, and the fifth control signal Φ5 are equal, and the detailed timing process is as follows:

[0225] During the t1 period, the thirteenth switch unit K 13 The fifteenth switch unit K is turned on. 15 , Seventeenth switch unit K 17 , in the closed state, the fourteenth switch unit K 14 , the sixteenth switch unit K 17 , Eighteenth switch unit K 18, the second switch unit K2 is turned off, so that the first end of the capacitor to be measured Cx is connected to Vcm and the second end thereof is connected to GND, and the first end of the offset capacitor is connected to Vcm and the second end thereof is connected to Vcm, so that the capacitor to be measured Cx is charged. At the end of the t1 period, the voltage of the capacitor to be measured Cx is Vcm (i.e., Vcm-GND), and the voltage of the offset capacitor Cc is 0 (i.e., Vcm-Vcm=0). At this time, the amount of charge stored in the capacitor to be measured Cx Q1=Vcm*Cx, and the amount of charge stored in the offset capacitor Cc Q2=(Vcm-Vcm)*Cc=0. At this time, since the sixth switch unit K6 is disconnected, the output voltage Vout of the charge transfer module 1504 is 0.

[0226] During the t2 period, the thirteenth switch unit K 13 , the fourteenth switch unit K 14 , the fifteenth switch unit K 15 , the sixteenth switch unit K 16 , Seventeenth switch unit K 17 The second switch unit K2 and the eighteenth switch unit K 18 In the closed state, the capacitor to be measured Cx and the offset capacitor Cc are connected. When there is no noise, according to the law of conservation of charge, Vcm*Cx+0=Vx*Cx+(Vx-Vxm)*Cc holds, and the voltage Vx of the capacitor to be measured Cx=Vcm. It should be noted that if there is noise, for example, the interference is simulated by the interference source 1501, and the interference source 1501 affects the capacitor to be measured Cx and the offset capacitor Cc, so that the voltage Vx of the capacitor to be measured Cx is not equal to Vcm. It can be understood that the interference of the interference source 1501 will cause the capacitor to be measured and the offset capacitor to charge or discharge, so that the voltage Vx of the capacitor to be measured Cx is greater than or less than Vcm.

[0227] During period t3, the fourth switch unit K4 is turned on, and the other switches maintain the same state as during period t2. If the voltage Vx of the capacitor Cx to be measured is greater than or less than Vcm, charge transfer is performed between the capacitor Cx to be measured, the offset capacitor Cc and the charge transfer module 142.

[0228] During the period t4, the fourth switch unit K4 is disconnected, and the other switches maintain the same state as during the period t3. In addition, the second switch unit may also be closed, the charge transfer module 1504 is reset, and the output voltage Vout of the charge transfer module 804 becomes 0.

[0229] In the above working process, charge transfer occurs in the t3 period. According to the voltage Vx on the capacitor Cx to be measured at the end of the t2 period, there are the following situations:

[0230] If Vx>V CM, the capacitor to be measured Cx and the offset capacitor Cc transfer charges to the charge transfer module 1504 at the same time, until the voltage of the capacitor to be measured Cx reaches the common mode voltage V CM In this process, the output voltage Vout of the charge transfer module 1504 is a negative voltage, but due to the influence of the interference source on the charge transfer module, the output of the charge transfer module 1504 may also be a positive voltage.

[0231] If Vx=V CM , the charge transferred between the measured capacitor Cx, the offset capacitor Cc and the charge transfer module 1504 is 0, and the output voltage Vout of the charge transfer module 1504 is also 0. At this time, the circuit reaches a complete offset state.

[0232] If Vx <V CM , the charge transfer module 1504 will pass through the feedback network (R f and C f ) Charge the capacitor to be tested Cx and the offset capacitor Cc until the voltage of the capacitor to be tested Cx and the offset capacitor Cc reaches the common mode voltage V CM In this process, the output voltage Vout of the charge transfer module 1504 is a positive voltage, but due to the influence of the interference source on the charge transfer module, the output of the charge transfer module 1504 may also be a negative voltage.

[0233] The output voltage of the charge transfer module 1504 is respectively filtered by the AAF in the processing module 1505, sent to the ADC for sampling, and then orthogonally demodulated by the DSP. The obtained raw data is sent to the CPU for noise calculation to obtain the size of the noise. In addition, the CPU can also be used to determine the noise level of the current operating frequency, for example, to determine whether the amplitude of the noise is greater than the preset noise threshold, so as to determine the operating frequency of the self-capacitance detection circuit.

[0234] In combination with the content of the above-mentioned embodiment, in this embodiment, the charge transfer module may also include a capacitor feedback and a switch unit, please refer to Fig. 15B The corresponding timing diagram can be referred to Fig.14 ,and Fig.15AThe difference is that the feedback network of the charge transfer module includes a feedback capacitor Cf and a switch unit. Specifically, the feedback network includes two feedback capacitors Cf and a twenty-fourth switch unit and a twenty-fifth switch unit. The twenty-fourth switch unit and the twenty-fifth switch unit share the same control signal φ7. It should be noted that φ7 can be in a closed state during the t1 period, or in a closed state during the t2 period, in a closed state during the t4 period, and in an open state during the t3 stage. In this embodiment, the twenty-fourth switch unit and the twenty-fifth switch unit are set to achieve the reset of the feedback capacitor and avoid the situation where too much charge accumulates and the output voltage is constant after saturation. When φ7 is only in a closed state during the t1 period, it can be referred to Fig.14 The timing of φ7 can be understood as the result of a "logical OR" operation of φ1 and φ2. Other modules and timings in this embodiment are the same or similar to those in the above embodiment and will not be described in detail here.

[0235] In combination with the contents of the foregoing embodiments, in this embodiment, the following is provided: Fig.16 The circuit shown can perform both self-capacitance detection and noise detection. Fig.16 The control module 1600, the driving module 1602, the offset module 1603, the charge transfer module 1604, and the processing module 1605 are similar to the above-mentioned embodiments. Fig.17 Similar analysis can be used to derive its technical principle, which will not be repeated here. Fig.13 The self-capacitance detection circuit shown in the figure is described in detail below. Fig.16 The noise detection circuit shown here shows how to detect noise and how to perform self-capacitance detection.

[0236] Please refer to Fig.16 The noise detection circuit shown in the present embodiment is used to save circuit area. Fig.16 The noise detection circuit shown in the self-capacitance detection circuit Fig.13 Three switch units are added on the basis of 19 , the twentieth switch unit K 20 and the twenty-first switch unit K 21 Thus, when noise detection is performed, the nineteenth switch unit K 19 , the twentieth switch unit K 20 and the twenty-first switch unit K 21 The common mode voltage is selectively connected. When the self-capacitance detection is performed, the nineteenth switch unit K 19 , the twentieth switch unit K 20 and the twenty-first switch unit K 21 The control module 1600 controls the states of the switch units in each module to realize noise detection and self-capacitance detection.

[0237] exist Fig.16 In the noise detection circuit, for the driving module, the second end of the capacitor to be measured is grounded, and the nineteenth switch unit of the driving module is used to control whether the first end of the capacitor to be measured is connected to the common mode voltage. Fig.16 The control module 1600 in the embodiment can control the thirteenth switch module, the fourteenth switch module and the nineteenth switch module to control whether the first end of the capacitor Cx to be tested is connected to Vcc, GND and Vcm respectively, so as to Fig.17 The noise detection can be completed according to the timing. Fig.14 The timing of the self-capacitance test is completed according to Fig.14 When the self-capacitance detection is completed in the timing sequence, the nineteenth switch unit K 19 , the twentieth switch unit K 20 and the twenty-first switch unit K 21 will shut down.

[0238] exist Fig.16 In the noise detection circuit, for the cancellation module 1603, the twentieth switch unit in the cancellation module is used to control whether the first end of the cancellation capacitor is connected to the common mode voltage, and the twenty-first switch unit in the cancellation module is used to control whether the second end of the cancellation capacitor is connected to the common mode voltage. Fig.16 The offset module 1603 can be used to control whether the first end of the offset capacitor Cc is connected to GND, Vcc and Vcm through the fifteenth switch module, the sixteenth switch module and the twentieth switch module respectively. The offset module 1603 can also be used to control whether the second end of the offset capacitor Cc is connected to Vcc, GND and Vcm through the seventeenth switch module, the eighteenth switch module and the twenty-first switch module respectively. The offset module 1603 can also be used to control whether the first end of the offset capacitor Cc is connected to the first end of the capacitor to be measured Cx through the fifth switch module. Fig.16 The charge transfer module 1604 and the processing module 1605 are the same or similar to those described in the previous embodiments and will not be described in detail here.

[0239] During noise detection, Fig.16 The corresponding timing diagram can be Fig.17 , combined with its timing diagram, the above Fig.16 The working principle of the noise detection circuit is illustrated in the following figure.

[0240] Fig.17 For the embodiments of this application Fig.16 The timing diagram of the noise detection circuit when it is working; Fig.17 As shown, two time periods t1-t4 constitute a noise detection cycle, where T represents the cycle of self-capacitance detection. The main technical processing of each time period is briefly described as follows:

[0241] During period t1: the capacitor Cx to be tested is charged by the common-mode voltage to offset the common-mode voltage connected across the capacitor Cc;

[0242] Period t2: the first end of the capacitor to be measured Cx is connected to the first end of the offset capacitor Cc;

[0243] Period t3: Charge transfer is performed to convert the charges of the capacitor to be tested Cx and the offset capacitor Cc into voltage signals;

[0244] Period t4: the charge transfer module is reset and the output is 0;

[0245] Understandably, Fig.16 The noise detection circuit in the above example can be equivalent to the following when detecting noise: Figure 1D The noise detection circuit in Fig.16 and Fig.17 , we can also get Figure 2A The timing diagram shown, specifically, Figure 2A The first control signal Φ1 in can be understood as Fig.17 The seventh control signal Φ7 in Figure 2A The second control signal Φ2 in can be understood as Fig.17 The seventh control signal Φ7 in Figure 2A The third control signal Φ3 in can be understood as Fig.17 The sixth control signal Φ6 in Fig.17 In the noise detection, Φ1, Φ2, Φ4 and Φ5 are kept at low level, K 13 , K 14 , K 15 , K 16 , K 17 , K 18 These switches are turned off. For self-capacitance detection and noise detection, Φ3 and Φ6 have the same timing as , and Φ7 is equivalent to Fig.14 In the figure, Φ1 and Φ2 are operated by "OR", and Φ8 is always kept at a high level. The noise detection circuit is analyzed in combination with the specific switch state of each time period.

[0246] During the t1 period, the nineteenth switch unit K 19 The thirteenth switch unit K is turned on. 13 , the fourteenth switch unit K 14 , in the off state, the fifteenth switch unit K 15 , the sixteenth switch unit K 16 , Seventeenth switch unit K 17 , Eighteenth switch unit K 18 Turn off, the twentieth switch unit K 20 and the twenty-first switch unit K 21The first end of the capacitor Cx to be tested is connected to Vcm and the second end thereof is connected to GND, and the first end of the offset capacitor is connected to Vcm and the second end thereof is connected to Vcm, so that the capacitor Cx to be tested is finally charged. At the end of the t1 period, the voltage of the capacitor Cx to be tested is Vcm (i.e., Vcm-GND), and the voltage of the offset capacitor Cc is 0 (i.e., Vcm-Vcm=0). At this time, the amount of charge stored in the capacitor Cx to be tested Q1=Vcm*Cx, and the amount of charge stored in the offset capacitor Cc Q2=(Vcm-Vcm)*Cc=0. At this time, since the sixth switch unit K6 is disconnected, the output voltage Vout of the charge transfer module 1504 is 0.

[0247] During the t2 period, the thirteenth switch unit K 13 , the fourteenth switch unit K 14 , the fifteenth switch unit K 15 , the sixteenth switch unit K 16 , Seventeenth switch unit K 17 , Eighteenth switch unit K 18 , Nineteenth switch unit K 19 , the twentieth switch unit K 20 In the off state, the fifth switch unit K5 is in the closed state, and the first end of the capacitor Cx to be measured is connected to the first end of the offset capacitor Cc. When there is no noise, according to the law of conservation of charge, Vcm*Cx+0=Vx*Cx+(Vx-Vxm)*Cc holds, and the voltage Vx of the capacitor Cx to be measured is obtained to be Vcm. It should be noted that if there is noise, for example, the interference is simulated by an interference source, and the interference source affects the charge stored in the capacitor Cx to be measured and the offset capacitor Cc, so that the voltage Vx of the capacitor Cx to be measured is not equal to Vcm. It can be understood that the interference of the interference source will cause the capacitor to be measured and the offset capacitor to charge or discharge, so that the voltage Vx of the capacitor Cx to be measured is greater than or less than Vcm.

[0248] During period t3, the fourth switch unit K4 is turned on, and the other switches maintain the same state as during period t2. If the voltage Vx of the capacitor Cx to be measured is greater than or less than Vcm, charge transfer is performed between the capacitor Cx to be measured, the offset capacitor Cc and the charge transfer module 1604.

[0249] During the period t4, the fourth switch unit K4 is turned off, the other switches remain in the same state as during the period t3, the charge transfer module 1604 is reset, and the output voltage Vout of the charge transfer module 804 becomes 0. In addition, the fifth switch unit may also be closed during the period t4.

[0250] In the above working process, charge transfer occurs in the t3 period. According to the voltage Vx on the capacitor Cx to be measured at the end of the t2 period, there are the following situations:

[0251] If Vx>V CM , the capacitor to be measured Cx and the offset capacitor Cc transfer charges to the charge transfer module 1604 at the same time, until the voltage of the capacitor to be measured Cx reaches the common mode voltage V cm In this process, the output voltage Vout of the charge transfer module 1604 is a negative voltage. In addition, due to the influence of the interference source on the charge transfer module 1604, the output voltage Vout of the charge transfer module 1604 may also be a positive voltage.

[0252] If Vx=V CM , the charge transferred between the measured capacitor Cx, the offset capacitor Cc and the charge transfer module 1604 is 0, and the output voltage Vout of the charge transfer module 1604 is also 0. At this time, the circuit reaches a complete offset state.

[0253] If Vx <V CM , the charge transfer module 1604 will pass through the feedback network (R f and C f ) Charge the capacitor to be tested Cx and the offset capacitor Cc until the voltage of the capacitor to be tested Cx and the offset capacitor Cc reaches the common mode voltage V cm In this process, the output voltage Vout of the charge transfer module 1604 is a positive voltage. In addition, due to the influence of the interference source on the charge transfer module 1604, the output voltage Vout of the charge transfer module 1604 may also be a negative voltage.

[0254] Combined with the contents disclosed in the above embodiments, the circuit provided in this embodiment can perform both noise detection and self-capacitance detection. Fig.18 , Fig.18 A circuit is provided, which is used for both noise detection and self-capacitance detection. Fig.18 The control module 1800, the driving module 1802, the offset module 1803, the charge transfer module 1804, and the processing module 1805 are similar to the above-mentioned embodiments, but are different from the above-mentioned embodiments in that: Fig.18 A power switching module is added. In addition, combined with its corresponding timing diagram Fig.19 Similar analysis can be used to derive its technical principle, which is described in detail below. Fig.18 The noise detection circuit shown here shows how to detect noise and how to perform self-capacitance detection.

[0255] For the driving module 1802, during noise detection, the control module is used to control the driving module 1802 to charge the capacitor to be tested in the first time period, and the control module can also be used to control the compensation module to charge the compensation capacitor in the first time period or to connect both ends of the compensation capacitor to the common mode voltage; the control module is also used to control the compensation module to connect the first end of the compensation capacitor to the first end of the capacitor to be tested in the second time period and the third time period; the control module is also used to control the charge transfer module to transfer the charge in the compensation capacitor and the capacitor to be tested in the third time period to output the output voltage Vout. In this embodiment, the control module is also used to control the power switching module 1806 to enable noise detection and self-capacitance detection. Among them, Vp can be selected between Vcc and Vcm, V N Can be selected between GND and Vcm, switch K 22 and K 23 Common control signal Φ7. When Φ7 is low, Vp and V N Connect Vcc and GND respectively. This is the self-capacitance detection mode. You can refer to Fig.19 During the period t9-t16 shown; when Φ7 is high, Vp and V N You can connect Vcm to the noise detection mode. Fig.19 The period t1-t8 is shown. Fig.19 The timing sequence shown can be understood as follows: the noise detection circuit performs noise detection during the t1-t8 period, and the size of the noise can be obtained through the output voltage; the self-capacitance detection circuit performs self-capacitance detection during the t9-t16 period, and the self-capacitance value can be obtained through the output voltage. In this embodiment, by adding a power switching module, the noise detection circuit and the self-capacitance detection circuit can share the circuit to realize time-sharing detection. For example, Fig.19 As shown, the noise is detected during the period t1-t8, and the capacitance value is detected during the period t9-t16. The driving module and the offset module include three pairs of Vp and VN sharing a power selection module, or each pair of Vp and V N Each power port uses a power selection module. When the 3 pairs of Vp and V N When the power switching module 1806 is shared, the switch impedance will be higher; when each pair of Vp and V N When each power port uses a power selection module, the complexity of the circuit design will increase, and the switch impedance is relatively low.

[0256] exist Fig.18In the noise detection circuit shown, the processing module can also be connected to the control module. When the control module controls the power switching module to switch the power of the driving module, the compensation module and the charge transfer module to realize noise detection or self-capacitance detection, the control module can also notify the processing module, for example, it can send a high level or a low level to the processing module, so that the processing module can know whether the output voltage represents the noise size or the capacitance value.

[0257] This program and Fig.16 Compared with the solution, one control signal is reduced and the control timing is relatively simple, but the power ports of the driving module and the compensation module use two switches in series, and the driving impedance will be higher. Fig.16 The power ports in the circuit are all turned on and off by a switch, which has the advantage of lower driving impedance, but the control timing is more complicated.

[0258] Fig.19 For the embodiments of this application Fig.18 The timing diagram of the noise detection circuit when it is working; Fig.19 As shown, two time periods t1-t4 constitute a noise detection half cycle, wherein T may represent a noise detection cycle or a self-capacitance detection cycle. The analysis of each time period is similar to that of the foregoing embodiment and will not be repeated here.

[0259] Accurate noise measurement is conducive to improving the accuracy of self-capacitance detection. The main anti-interference methods for capacitance detection include increasing the driving voltage, increasing the detection time, staying away from interference sources, shielding, and frequency hopping. Among them, increasing the driving voltage and increasing the detection time cannot avoid interference, but only increase the detection system's ability to resist. In addition, there is a limit to increasing the driving voltage, and the highest driving voltage is fixed in different applications. Increasing the detection time will increase power consumption. Staying away from interference sources, shielding, and frequency hopping are ways to avoid interference, but the methods of staying away from interference sources and shielding are sometimes limited by product size and application form and cannot be implemented well. Frequency hopping is a flexible and effective anti-interference method. By avoiding frequencies with greater interference and selecting frequencies with less noise as the operating frequency, the signal-to-noise ratio of capacitance detection can be significantly improved to ensure sensitivity and reliability.

[0260] Combined with the contents disclosed in the above embodiments, this embodiment provides a self-capacitance detection method for determining the operating frequency of the self-capacitance detection circuit, that is, selecting a suitable operating frequency so that the noise during self-capacitance detection is small. By using the noise detection circuit disclosed in the above embodiments, the noise level at a certain operating frequency can be obtained, based on which, an operating frequency with small noise can be selected. For details, please refer to Fig. 20 , the method comprises the following steps:

[0261] S2001: using the noise detection circuit provided in the above embodiment to detect the amplitude of the noise of the self-capacitance detection circuit operating at a first frequency;

[0262] S2002: Determine whether the amplitude of the noise is lower than a preset noise threshold; if the amplitude of the noise is lower than the preset noise threshold, execute step S2002A; if the amplitude of the noise is lower than the preset noise threshold, execute step S2002B;

[0263] S2002A: The self-capacitance detection circuit performs self-capacitance detection at a first frequency

[0264] S2002B: Use the noise detection circuit provided in the above embodiment to detect the amplitude of the noise of the self-capacitance detection circuit operating at the second frequency until the second frequency is determined at which the amplitude of the noise is lower than the preset noise threshold, and the self-capacitance detection circuit performs self-capacitance detection at the second frequency.

[0265] In step S2001, when the noise detection circuit detects the noise of the self-capacitance detection circuit operating at the first frequency, the operating frequency of the self-capacitance detection circuit is the first frequency. In the case of noise detection, the demodulation frequency of the noise detection is also the first frequency. Step S2001 can also be understood as using the noise detection circuit provided in the above embodiment to detect the amplitude of the noise of the noise detection circuit operating at the first frequency. The timing of the switch unit of the noise detection circuit can be the same as the switching timing of the self-capacitance detection circuit to ensure that the amplitude of the noise of the self-capacitance detection circuit is obtained more accurately. Fig.19 Taking the timing of as an example, if the noise of the self-capacitance detection circuit with the timing of t9-t16 is to be detected, the timing of the noise detection circuit can be set as shown in t1-t8. In addition, it can be understood that for the demodulation frequency of the processing module, the demodulation frequency of the processing module of the noise detection circuit and the self-capacitance detection circuit is the same. Specifically, combined Fig.19 S2002A is explained. If the noise amplitude obtained by the test in the time period t1-t8 is less than the preset noise threshold, the self-capacitance detection is performed at the first frequency in the time period t9-t16, so that the switching timing of the self-capacitance detection circuit is the same as the switching timing of the noise detection circuit, and the demodulation frequency of the self-capacitance detection circuit is the same as the demodulation frequency of the noise detection circuit. In this way, when the self-capacitance detection circuit works at the first frequency, the interference it receives is less than the preset noise threshold. In addition, since the switching timing of the self-capacitance detection circuit is the same as the switching timing of the noise detection circuit, in this embodiment, the lengths of the ninth time period, the tenth time period, the eleventh time period, and the twelfth time period are respectively equal to the lengths of the first time period, the second time period, the third time period, and the fourth time period.

[0266] In this embodiment, in combination with the contents disclosed in the above embodiments, without setting the fourth time period, if the amplitude of the noise is determined to be lower than the preset noise threshold according to the output voltage in the time period t1+t2+t3, the self-capacitance detection circuit can perform self-capacitance detection at a frequency of f=1 / (t1+t2+t3). If you want to test the noise of the self-capacitance detection circuit with an operating frequency of f=1 / (t1+t2+t3+t1+t2+t3), you can determine the size of the noise according to the output voltage of the charge transfer circuit in the time period (t1+t2+t3+t1+t2+t3) of the noise detection circuit. At this time, the noise detection circuit works according to the timing of t1+t2+t3+t1+t2+t3. When the fourth time period is set, if one wants to test the noise of the self-capacitance detection circuit with an operating frequency of f=1 / (t1+t2+t3+t4+t1+t2+t3+t4), the noise size can be determined according to the output voltage of the charge transfer circuit of the noise detection circuit in the time period (t1+t2+t3+t4+t1+t2+t3+t4). If the amplitude of the noise is lower than the preset noise threshold, the self-capacitance detection circuit can perform self-capacitance detection at the operating frequency f=1 / (t1+t2+t3+t4+t1+t2+t3+t4).

[0267] In this embodiment, if at the current moment, the operating frequency of the self-capacitance detection circuit is the first frequency, the noise detection circuit provided in the above embodiment is used to detect the amplitude of the noise of the self-capacitance detection circuit operating at the first frequency to determine whether the first frequency is a suitable operating frequency of the self-capacitance detection circuit, that is, to determine whether the noise at the first frequency is less than the preset noise threshold. If the noise exceeds the preset noise threshold, the noise detection circuit can test the noise at other operating frequencies to find a suitable operating frequency of the self-capacitance detection circuit. In this embodiment, when the noise detection circuit detects the amplitude of the noise, it first detects the noise at the operating frequency of the self-capacitance detection circuit at the current moment, that is, first determines that the operating frequency of the self-capacitance detection circuit is the first frequency, and then the noise detection circuit detects the amplitude of the noise of the self-capacitance detection circuit operating at the first frequency. In this way, if the noise at the first frequency meets the requirements, the noise detection circuit does not need to detect the noise at other frequencies, and the self-capacitance detection circuit continues to perform self-capacitance detection at the first frequency.

[0268] For details, please refer to Fig.21 , the method comprises the following steps:

[0269] S2101: Use a noise detection circuit to measure a noise level N1 of the noise detection circuit operating at a frequency f1;

[0270] S2102: Determine whether N1 is less than the preset noise threshold TH1, if N1 is less than the preset noise threshold TH1, execute step S2002A, otherwise execute step S2002B;

[0271] S2102A: The self-capacitance detection circuit performs self-capacitance detection at the operating frequency f1;

[0272] S2102B: Use the noise detection circuit to measure the noise level N2 of the noise detection circuit operating at the frequency f2;

[0273] S2103: Determine whether N2 is less than the preset noise threshold TH1; if N2 is less than the preset noise threshold TH1, execute step S2003A, otherwise execute step S2003B;

[0274] S2103A: The self-capacitance detection circuit performs self-capacitance detection at an operating frequency of f2;

[0275] S2103B: Use the noise detection circuit to measure the noise level N3 of the noise detection circuit operating at the frequency f3;

[0276] S2104: Determine whether N3 is less than a preset noise threshold TH1; if N3 is less than the preset noise threshold TH1, execute step S2004A, otherwise execute step S2004B;

[0277] S2104A: The self-capacitance detection circuit performs self-capacitance detection at an operating frequency of f3;

[0278] S2104B: Use the noise detection circuit to measure the noise level N4 of the noise detection circuit operating at the frequency f4 until the frequency fx is found so that the Nx measured at the frequency fx is less than TH1, and the operating frequency of the self-capacitance detection is determined to be fx; or if N1, N2, N3...Nn are all greater than the preset noise threshold, then compare the sizes of N1, N2, N3...Nn and determine the minimum noise, if Nx is the minimum value among them, then determine the operating frequency of the self-capacitance detection to be fx and increase the time of the self-capacitance detection. It can be understood that when the time of the self-capacitance detection is increased, the signal-to-noise ratio of the self-capacitance detection will be improved.

[0279] In step S2104B, the time for self-capacitance detection may be doubled.

[0280] In combination with the contents disclosed in the above embodiments, this embodiment provides a self-capacitance detection method for selecting the operating frequency of the self-capacitance detection circuit so that the self-capacitance detection circuit can operate at a frequency with less noise. By using the noise detection circuit disclosed in the above embodiments, the noise level received by the circuit at a certain operating frequency can be obtained. Based on this, the operating frequency with less noise can be selected. For details, please refer to Fig. 22 , the method comprises the following steps:

[0281] S2201: Use a noise detection circuit to detect the noise level N1-Nm of the noise detection circuit operating at a frequency f1-fm;

[0282] S2202: Compare the sizes of N1-Nm;

[0283] S2203: Select the frequency fx corresponding to the minimum noise Nx as the operating frequency of the self-capacitance detection circuit.

[0284] In this embodiment, the size of the noise can be understood as the amplitude of the noise, and the operating frequency of the self-capacitance detection circuit can be understood as the operating frequency of the processing module of the self-capacitance detection circuit, for example, the demodulation operating frequency of the processing module, specifically, it can be called the demodulation frequency. When using the noise detection circuit to measure the noise size of the noise detection circuit operating at the frequency of f1, the demodulation operating frequency of the processing module of the noise detection circuit is also f1.

[0285] In combination with the contents disclosed in the above embodiments, this embodiment provides a self-capacitance detection method, please refer to Fig.23 , the method comprises the following steps:

[0286] S2301: using a noise detection circuit to detect a noise amplitude N1 of the noise detection circuit operating at a first frequency f1;

[0287] S2302: Determine whether N1 is less than a preset noise threshold TH1; if so, execute step S2202A; if not, execute step S2202B;

[0288] S2302A: The self-capacitance detection circuit performs capacitance detection at a first frequency;

[0289] S2302B: Continue to detect the amplitude of noise at other frequencies until the frequency fx is determined to be less than the preset noise threshold, and then the self-capacitance detection circuit performs capacitance detection at fx; or increase the detection time of the self-capacitance detection circuit.

[0290] When the detection time of the self-capacitance detection circuit is increased, the self-capacitance detection circuit can further process the detection result by using the results of multiple detections to make the detection result more accurate.

[0291] Fig.24 Schematic diagram of the structure of a capacitive touch control system according to the first embodiment of the present application; Fig.24 As shown, it includes a touch sensor 2401, a touch chip 2402 and a host 2403. The touch sensor 2401 is a double-layer structure, including a drive channel Tx and a sensing channel Rx, and their basic capacitance to the system ground is recorded as C1~C5 and C6~C10. When performing self-capacitance detection, the touch chip 2402 scans the capacitance of each channel (drive channel, sensing channel) to the system ground, and calculates the capacitance change of each channel to the system ground. When a finger approaches or touches the touch screen, the capacitance of the channel where the finger is close to or touched to the system ground will increase. As shown Fig.24 As shown, if the capacitance between the finger and the driving channel Tx is Cd, the capacitance between the finger and the sensing channel Rx is Cs. For example, when the finger approaches the driving channel Tx2 and the sensing channel Rx3, since the human body as a conductor is connected to the system ground, the capacitance of the driving channel Tx2 to the system ground will become C2+Cd, and the capacitance of the sensing channel Rx3 to the system ground will become C8+Cs. The touch chip 2402 detects that the capacitance of the driving channel Tx2 and the sensing channel Rx3 to the system ground will increase, while the capacitance of other channels to the system ground remains unchanged or approximately unchanged or small, so the touch position can be calculated at the intersection of the driving channel Tx2 and the sensing channel Rx3, and the coordinates of the position are sent to the host 2403 to realize touch operations of various functions.

[0292] In this embodiment, the noise detection circuit is specifically configured in the above Fig.24 Therefore, it can be understood that the touch control chip 2402 includes the capacitance detection circuit described in the above embodiment.

[0293] Fig.25 Schematic diagram of the structure of a capacitive touch control system according to the first embodiment of the present application; Fig.25 As shown, it includes a touch sensor 2501 and a touch chip 2502. The touch sensor and the touch chip in this embodiment are the same or similar to those in the previous embodiment, and are not described in detail here. Taking the measurement of the noise of the electrode Tx5 as an example, the capacitance to be measured in the figure is specifically the capacitance formed between the electrode Tx5 and GND. This embodiment only takes the measurement of the capacitance formed by one electrode as an example, and other electrodes are not described in detail.

[0294] An embodiment of the present application further provides an electronic device, which includes the touch control chip described in any embodiment of the present application.

[0295] It should be noted that, in the above embodiment, although a single switch unit is used as an example for description, in fact, it can also be implemented in the form of a circuit combination structure, in which the constituent elements can be any electronic components with on-off functions, such as MOS tubes.

[0296] In addition, when touch detection is implemented based on mutual capacitance detection, if the basic capacitance of the mutual capacitance is relatively large so as to affect the rate of change of the mutual capacitance, the concept of the following embodiments of the present application may also be applied.

[0297] The electronic devices of the embodiments of the present application exist in various forms, including but not limited to:

[0298] (1) Mobile communication devices: These devices are characterized by their mobile communication functions and their main purpose is to provide voice and data communications. These terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.

[0299] (2) Ultra-mobile personal computer devices: These devices fall into the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access features. These terminals include: PDA, MID and UMPC devices, such as iPad.

[0300] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players (such as iPods), handheld game consoles, e-books, Bluetooth headsets, smart toys, and portable car navigation devices.

[0301] (4) Server: A device that provides computing services. The server consists of a processor, hard disk, memory, system bus, etc. The server is similar to a general computer architecture, but because it needs to provide highly reliable services, it has higher requirements in terms of processing power, stability, reliability, security, scalability, and manageability.

[0302] (5) Other electronic devices with data interaction functions.

[0303] It should be noted that the above method embodiments of the present application can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0304] It can be understood that the memory in the embodiments of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0305] It should be understood that in the embodiment of the present application, "B corresponding to A" means that B is associated with A, and B can be determined according to A. However, it should also be understood that determining B according to A does not mean determining B only according to A, and B can also be determined according to A and / or other information.

[0306] In addition, the term "and / or" in this article is only a description of the association relationship between the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0307] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0308] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0309] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0310] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0311] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0312] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.

[0313] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A noise detection circuit, comprising: A control module, a driving module, a compensation module, a charge transfer module and a processing module; The driving module is connected to the offset module, the offset module is connected to the charge transfer module, the charge transfer module is connected to the processing module, and the control module is connected to the driving module, the offset module and the charge transfer module, and is characterized by comprising: The control module is used to control the driving module so that the capacitor to be tested is charged with the first voltage in the first time period, and the control module controls the offset module so that the offset capacitor is charged with the first voltage in the first time period so that the voltage of the offset capacitor is the same as the voltage of the capacitor to be tested, or the control module controls the offset module so that both ends of the offset capacitor are connected to the first voltage; The control module controls the offset module so that the first end of the capacitor to be measured is connected to the first end of the offset capacitor in the second time period; The control module controls the charge transfer module so that the charges of the capacitor to be tested and the offset capacitor are converted and processed to generate an output voltage in a third period; The first time period, the second time period and the third time period are continuous in time, and the charge transfer module comprises an amplifier; an inverting input terminal of the amplifier is connected to the first voltage; The processing module is used to determine the magnitude of the noise at least according to the output voltage.

2. The noise detection circuit according to claim 1, characterized in that: The first voltage is a common mode voltage.

3. The noise detection circuit according to claim 1, characterized in that: The driving module includes a first switch unit, and the control module is further used to control the first switch unit to be in a closed state so that in the first time period, the driving module uses the first voltage to charge the capacitor to be tested; When the first switch unit is in a closed state, the first end of the capacitor to be measured is connected to the first voltage; and the second end of the capacitor to be measured is connected to the ground voltage.

4. The noise detection circuit according to claim 3, characterized in that: The offset module includes a second switch unit and the offset capacitor, and the control module is further used to control the second switch unit to be in a closed state during the first period; When the second switch unit is in a closed state, the offset capacitor is charged, a first end of the offset capacitor is connected to the first voltage, and a second end of the offset capacitor is connected to the ground voltage; or, When the second switch unit is in a closed state, the first end of the offset capacitor is connected to the first voltage, and the second end of the offset capacitor is connected to the first voltage.

5. The noise detection circuit according to claim 4, characterized in that: The offset module further includes a third switch unit, and the control module is further used to control the third switch unit to be in a closed state during the second period so that the first end of the capacitor to be measured is connected to the first end of the offset capacitor; When the third switch unit is in a closed state, the first end of the offset capacitor is disconnected from the first voltage, and the first end of the capacitor to be measured is disconnected from the first voltage.

6. The noise detection circuit according to claim 1, characterized in that: When converting the charges of the capacitor to be measured and the offset capacitor, the first end of the capacitor to be measured, the first end of the offset capacitor and the in-phase input end of the amplifier are connected.

7. The noise detection circuit according to any one of claims 1 to 6, characterized in that: The control module controls the charge transfer module so that the charge transfer module is reset in a fourth time period; the first time period, the second time period, the third time period and the fourth time period are continuous in time.

8. The noise detection circuit according to claim 7, characterized in that: The charge transfer module also includes a fourth switch unit, which is in a closed state in the third time period so that the charges of the capacitor to be measured and the offset capacitor are converted to generate the output voltage; the fourth switch unit is in an open state in the fourth time period so that the charge transfer module is reset.

9. The noise detection circuit according to claim 7, characterized in that: In the first time period, the voltage of the capacitor to be measured increases to the first voltage, and the voltage of the offset capacitor increases to the first voltage or the voltage of the offset capacitor is 0; in the second time period, the connection state of the second end of the offset capacitor is the same as the connection state of the second end of the offset capacitor in the first time period; in the first time period and the second time period, the output voltage of the charge transfer module increases or decreases to 0, and in the fourth time period, the output voltage of the charge transfer module decreases or increases to 0.

10. The noise detection circuit according to claim 7, characterized in that: The processing module includes a filter, an analog-to-digital converter and a digital signal processor; the filter filters the output voltage of the charge transfer module; the analog-to-digital converter performs analog-to-digital conversion on the filtered output voltage; The digital signal processor is used to demodulate the output voltage after analog-to-digital conversion, and the reference frequency used in the demodulation is the inverse of the noise detection period; The noise detection period is equal to an integer multiple of a noise detection half period, and the noise detection half period is the sum of the first period, the second period, the third period, and the fourth period; or the noise detection half period is the sum of the first period, the second period, and the third period.

11. The noise detection circuit according to claim 10, characterized in that: The processing module at least determines the size of the noise according to the output voltage, including: the processing module determines the amplitude of the noise according to the output voltage of the charge transfer module in the noise detection period.

12. The noise detection circuit according to claim 1, characterized in that: The driving module includes a thirteenth switch unit, a fourteenth switch unit and a nineteenth switch unit; the control module is also used to control the thirteenth switch unit, the fourteenth switch unit and the nineteenth switch unit to perform noise detection or self-capacitance detection; when performing the noise detection, the control module is used to control the nineteenth switch unit so that the first end of the capacitor to be measured is connected to the first voltage during the first time period; when performing the self-capacitance detection, the control module is used to control the thirteenth switch unit and the fourteenth switch unit so that the first end of the capacitor to be measured is connected to the ground voltage or the power supply voltage; the second end of the capacitor to be measured is connected to the ground voltage.

13. The noise detection circuit according to claim 12, characterized in that: The compensation module includes a fifteenth switch unit, a sixteenth switch unit, a twentieth switch unit, a seventeenth switch unit, an eighteenth switch unit and a twenty-first switch unit; the control module is also used to control the fifteenth switch unit, the sixteenth switch unit, the twenty-third switch unit, the seventeenth switch unit, the eighteenth switch unit and the twenty-first switch unit to perform the noise detection or the self-capacitance detection; when performing the noise detection, the control module is used to control the twenty-third switch unit and the twenty-first switch unit so that the first end and the second end of the compensation capacitor are connected to the first voltage during the first time period, or so that the first end of the compensation capacitor is connected to the first voltage and the second end of the compensation capacitor is connected to the ground voltage during the first time period; when performing the self-capacitance detection, the control module is used to control the fifteenth switch unit, the sixteenth switch unit, the seventeenth switch unit and the eighteenth switch unit so that the first end and the second end of the compensation capacitor are connected to the ground voltage or the power supply voltage.

14. The noise detection circuit according to claim 13, characterized in that: The compensation module also includes a fifth switch unit, and the control module is also used to control the fifth switch unit so that the first end of the capacitor to be measured is connected to the first end of the compensation capacitor in the second time period and the third time period, and the first end of the capacitor to be measured is disconnected from the first end of the compensation capacitor in the first time period.

15. The noise detection circuit according to claim 1, characterized in that: It also includes a power switching module, which is connected to the control module, the driving module and the compensation module. The power switching module is used to switch the first voltage so that the control module controls the driving module, the compensation module, the charge transfer module and the processing module to perform self-capacitance detection or noise detection. When performing the self-capacitance detection, the control module is also used to control the compensation capacitor to perform charge compensation processing on the capacitor to be tested.

16. The noise detection circuit according to claim 15, characterized in that: When performing self-capacitance detection, the power switching module is used to switch the two first voltages connected to the first end of the capacitor to be tested to the power supply voltage and the ground voltage respectively; the power switching module is also used to switch the two first voltages connected to the first end of the offset capacitor to the power supply voltage and the ground voltage respectively; the power switching module is also used to switch the two first voltages connected to the second end of the offset capacitor to the power supply voltage and the ground voltage respectively.

17. The noise detection circuit according to claim 15, characterized in that: When performing noise detection, the power switching module is used to switch the power supply voltage and the ground voltage connected to the first end of the capacitor to be tested to the first voltage; the power switching module is also used to switch the power supply voltage and the ground voltage connected to the first end of the offset capacitor to the first voltage; the power switching module is also used to switch the power supply voltage and the ground voltage connected to the second end of the offset capacitor to the first voltage.

18. The noise detection circuit according to claim 1, characterized in that: The driving module, the compensation module and the charge transfer module each include at least one switching unit; when performing noise detection, the timing of the switching units of the driving module, the compensation module and the charge transfer module is the same as the timing of the switching units of the driving module, the compensation module and the charge transfer module when performing self-capacitance detection.

19. The noise detection circuit according to any one of claims 1 to 6, characterized in that: The amplifier is a single-ended amplifier.

20. The noise detection circuit according to any one of claims 1 to 6, characterized in that: The amplifier is a fully differential amplifier.

21. A self-capacitance detection method, characterized in that: include: Using the noise detection circuit according to any one of claims 1 to 20 to detect the amplitude of the noise of the noise detection circuit operating at a first frequency; If the amplitude of the noise is lower than the preset noise threshold, the self-capacitance detection circuit performs capacitance detection at the first frequency.

22. The self-capacitance detection method according to claim 21, characterized in that: The period of the self-capacitance detection is equal to the inverse of the first frequency. The self-capacitance detection circuit performs capacitance detection at the first frequency. The period of the self-capacitance detection is equal to the noise detection period.

23. The self-capacitance detection method according to claim 21, characterized in that: When the self-capacitance detection circuit operates at the first frequency, the processing module performs demodulation at the first frequency to obtain a self-capacitance value.

24. A self-capacitance detection method, characterized in that: include: Using the noise detection circuit according to any one of claims 7 to 11 to detect the amplitude of the noise of the noise detection circuit operating at a first frequency; If the amplitude of the noise is lower than the preset noise threshold, the self-capacitance detection circuit performs capacitance detection at the first frequency; The period of the self-capacitance detection is equal to the inverse of the first frequency, the self-capacitance detection circuit performs capacitance detection at the first frequency, and the period of the self-capacitance detection is equal to the noise detection period; The noise detection period is equal to an integer multiple of a noise detection half period, and the noise detection half period is the sum of the first period, the second period, the third period, and the fourth period.

25. The self-capacitance detection method according to claim 24, characterized in that: The noise detection period is twice the noise detection half period.

26. A self-capacitance detection method, characterized in that: include: Using the noise detection circuit according to any one of claims 7 to 11 to detect the amplitude of the noise of the noise detection circuit operating at a first frequency; If the amplitude of the noise is lower than the preset noise threshold, the self-capacitance detection circuit performs capacitance detection at the first frequency; When performing self-capacitance detection, in a ninth time period, the capacitor to be tested and the offset capacitor are charged, and in a tenth time period, the charge of the capacitor to be tested and the offset capacitor are offset; In an eleventh time period, transferring the charges of the capacitor to be measured and the offset capacitor; In the twelfth time period, the charge transfer module is reset; In a thirteenth time period, the capacitor to be tested is discharged, and the offset capacitor is charged; In a fourteenth time period, charges of the capacitor to be measured and the offset capacitor are offset; In a fifteenth time period, transferring the charges of the capacitor to be measured and the offset capacitor; In the sixteenth time period, the charge transfer module is reset; the lengths of the ninth time period, the tenth time period, the eleventh time period, and the twelfth time period are respectively equal to the lengths of the thirteenth time period, the fourteenth time period, the fifteenth time period, and the sixteenth time period; The lengths of the ninth time period, the tenth time period, the eleventh time period, and the twelfth time period are respectively equal to the lengths of the first time period, the second time period, the third time period, and the fourth time period.

27. A touch chip, comprising: The noise detection circuit according to any one of claims 1 to 20.

28. A capacitive touch system, comprising: The touch chip and touch sensor as described in claim 27.

29. An electronic device, characterized in that: Including the touch control chip as described in claim 27.