WO2021174543A1 - Capacitive detection circuit, touch device, and terminal apparatus - Google Patents

Capacitive detection circuit, touch device, and terminal apparatus Download PDF

Info

Publication number
WO2021174543A1
WO2021174543A1 PCT/CN2020/078259 CN2020078259W WO2021174543A1 WO 2021174543 A1 WO2021174543 A1 WO 2021174543A1 CN 2020078259 W CN2020078259 W CN 2020078259W WO 2021174543 A1 WO2021174543 A1 WO 2021174543A1
Authority
WO
WIPO (PCT)
Prior art keywords
switch
capacitor
capacitance
detection
charge
Prior art date
Application number
PCT/CN2020/078259
Other languages
French (fr)
Chinese (zh)
Inventor
汪正锋
Original Assignee
深圳市汇顶科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市汇顶科技股份有限公司 filed Critical 深圳市汇顶科技股份有限公司
Priority to PCT/CN2020/078259 priority Critical patent/WO2021174543A1/en
Priority to CN202080001582.9A priority patent/CN111801584B/en
Publication of WO2021174543A1 publication Critical patent/WO2021174543A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R27/00Arrangements for measuring resistance, reactance, impedance, or electric characteristics derived therefrom
    • G01R27/02Measuring real or complex resistance, reactance, impedance, or other two-pole characteristics derived therefrom, e.g. time constant
    • G01R27/26Measuring inductance or capacitance; Measuring quality factor, e.g. by using the resonance method; Measuring loss factor; Measuring dielectric constants ; Measuring impedance or related variables
    • G01R27/2605Measuring capacitance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means

Definitions

  • the embodiments of the present application relate to the field of capacitance detection, and more specifically, to a capacitance detection circuit, a touch device, and a terminal device.
  • Capacitive sensors are widely used in electronic devices. For example, they can be used as input devices to provide input information, such as position, movement, force, and duration.
  • the core part of the capacitive sensor is the capacitance detection circuit.
  • the capacitance detection circuit includes the sensor capacitance, integrator, and analog-to-digital converter (Analog to Digital Converter, ADC).
  • ADC Analog to Digital Converter
  • the embodiments of the present application provide a capacitance detection circuit, a touch device, and a terminal device, which can realize waterproof capacitance detection.
  • a capacitance detection circuit which is connected to a detection capacitor, and the capacitance detection circuit includes: a calibration capacitor;
  • a shield electrode, the shield electrode and the detection electrode of the detection capacitor form a first capacitor, and the shield electrode and the system ground form a shield capacitor;
  • the charging and discharging module includes a first current source and a second current source.
  • the first current source is used to charge or discharge the detection capacitor, the first capacitor, and the shielding capacitor, and the second current source For charging or discharging the calibration capacitor;
  • a shielding electrode driving module for charging or discharging the shielding capacitor and the first capacitor
  • the integrator is used to convert the capacitance of the detection capacitor into a voltage signal
  • the control module is used to control the working state of the charge and discharge module, the integrator and the shield electrode drive module;
  • the shielding electrode driving module charges or discharges the shielding capacitor and the first capacitor so that the voltage on the shielding capacitor is a reference voltage
  • the first current source charges or discharges the detection capacitor, the first capacitor, and the shielding capacitor, and the second current source uses In charging or discharging the calibration capacitor, in the second charging and discharging stage, the voltage on the detection capacitor is charged to the reference voltage or discharged to the reference voltage.
  • the capacitance detection circuit further includes a charging and discharging switch group, a clearing switch group, and an integrating switch group
  • the integrator includes an integrating capacitor and an amplifier
  • the shield electrode driving module includes a voltage buffer
  • the control module is specifically used for:
  • the first current source and the second current source are controlled by the charging and discharging switch group to charge or discharge the detection capacitor and the calibration capacitor, respectively, wherein the The charging duration of the calibration capacitor is equal to the charging duration of the detection capacitor, or the discharge duration of the calibration capacitor is the same as the discharge duration of the detection capacitor;
  • part of the charge stored on the calibration capacitor is controlled by the integration switch group to be transferred to the integration capacitor.
  • the charging and discharging switch group includes a first switch, a second switch, a third switch, a fourth switch, a seventh switch, and an eighth switch
  • the integrating switch group includes a fifth switch
  • the reset switch group includes a sixth switch
  • One end of the first switch is connected to one end of the first current source, the other end of the first current source is connected to the power supply voltage, and the other end of the first switch is connected to one end of the detection capacitor and the third One end of the switch and one end of the first capacitor, the other end of the detection capacitor and the other end of the third switch are all grounded;
  • One end of the second switch is connected to one end of the second current source, the other end of the second current source is connected to the power supply voltage, and the other end of the second switch is connected to one end of the calibration capacitor and the fourth One end of the switch, the other end of the calibration capacitor and the other end of the fourth switch are all grounded;
  • One end of the fifth switch is connected to one end of the calibration capacitor, the other end of the fifth switch is connected to the first input terminal of the amplifier, and the second input terminal of the amplifier is used to input the reference voltage;
  • the sixth switch is connected in parallel with the integration capacitor, and the integration capacitor is connected in parallel with the amplifier;
  • One end of the seventh switch is grounded, and the other end of the seventh switch is connected to one end of the eighth switch and one end of the shielding capacitor;
  • the other end of the eighth switch is connected to the output end of the capacitor buffer, and the output voltage of the capacitor buffer is the reference voltage.
  • a complete discharge phase is further included between the charge zero phase and the first charge and discharge phase.
  • the detection capacitor, the calibration capacitor, and the The charges on the first capacitor and the shielding capacitor are cleared.
  • the sixth switch is closed, and the first switch, the second switch, the third switch, the fourth switch, and the first switch are closed.
  • Five switches, the seventh switch and the eighth switch are both turned off, and the charge stored on the integrating capacitor is cleared;
  • the third switch, the fourth switch, and the seventh switch are closed, and the first switch, the second switch, the fifth switch, the sixth switch, and the eighth switch are closed.
  • the switches are all turned off, and the charges stored on the detection capacitor, the calibration capacitor, the first capacitor and the shielding capacitor are cleared;
  • the eighth switch is closed, the first switch, the second switch, the third switch, the fourth switch, the fifth switch, the sixth switch, and the All the seventh switches are turned off, and the capacitance buffer charges the detection capacitor and the first capacitor;
  • the first switch, the second switch, and the eighth switch are closed, and the third switch, the fourth switch, the fifth switch, the sixth switch, and the seventh switch are closed.
  • the switches are all turned off, the voltage on the detection capacitor is charged to the reference voltage, and after the voltage on the detection capacitor is charged to the reference voltage, the first switch and the second switch are turned off ;
  • the fifth switch is closed, and the first switch, the second switch, the third switch, the fourth switch, the sixth switch, the seventh switch, and the eighth switch are closed.
  • the switches are all turned off, and part of the charge on the calibration capacitor is transferred to the integrating capacitor.
  • a first buffer stage is further included between the second charge and discharge stage and the charge transfer stage, and a second buffer stage is further included after the charge transfer stage.
  • the first buffer The stage and the second buffer stage are used to keep the charge on the detection capacitor, the calibration capacitor and the integration capacitor unchanged;
  • the first switch, the second switch, the third switch, the fourth switch, the fifth switch, and the first switch are all turned off.
  • control module is also used to:
  • the charge and discharge switch group, the integral switch group, and the clear switch group are controlled to repeatedly perform operations from the full discharge stage to the second buffer stage for multiple times.
  • the output voltage V out of the integrator is:
  • the said reference voltage V R, the change amount ⁇ C x with respect to the base capacitance of the detecting capacitor detecting capacitor C S is the capacitance value of the integrating capacitor
  • the I 1 is the current value of the first current source
  • the I 2 is the current value of the second current source
  • the N is the number of executions from the charge-discharge stage to the second buffer stage.
  • the charging and discharging switch group includes a first switch, a second switch, a third switch, a fourth switch, a seventh switch, and an eighth switch
  • the integrating switch group includes a fifth switch
  • the reset switch group includes a sixth switch
  • One end of the first switch is connected to one end of the first current source, the other end of the first current source is grounded, and the other end of the first switch is connected to one end of the detection capacitor and the third switch.
  • One end and one end of the first capacitor, the other end of the detection capacitor is grounded, and the other end of the third switch is connected to a power supply voltage;
  • One end of the second switch is connected to one end of the second current source, the other end of the second current source is grounded, and the other end of the second switch is connected to one end of the calibration capacitor and the fourth switch.
  • One end, the other end of the calibration capacitor is grounded, and the other end of the fourth switch is connected to the power supply voltage;
  • One end of the fifth switch is connected to one end of the calibration capacitor, the other end of the fifth switch is connected to the first input terminal of the amplifier, and the second input terminal of the amplifier is used to input the reference voltage;
  • the sixth switch is connected in parallel with the integrating capacitor, and the integrating capacitor is connected in parallel with the amplifier;
  • One end of the seventh switch is connected to the power supply voltage, and the other end of the seventh switch is connected to one end of the shielding capacitor and one end of the eighth switch;
  • the other end of the eighth switch is connected to the output end of the voltage buffer, and the output voltage of the capacitor buffer is the reference voltage.
  • a full charge phase is further included between the charge zero phase and the first charge and discharge phase.
  • the detection capacitor, the calibration capacitor, and the The shield capacitor and one end of the first capacitor are charged to the power supply voltage.
  • the sixth switch is closed, and the first switch, the second switch, the third switch, the fourth switch, and the first switch are closed.
  • the fifth switch, the seventh switch and the eighth switch are all turned off, and the charge stored on the integrating capacitor is cleared;
  • the third switch, the fourth switch, and the seventh switch are closed, and the first switch, the second switch, the fifth switch, the sixth switch, and the eighth switch are all closed.
  • the voltages on the detection capacitor, the calibration capacitor, the shielding capacitor, and the first capacitor are all charged to the power supply voltage;
  • the eighth switch is closed, the first switch, the second switch, the third switch, the fourth switch, the fifth switch, the sixth switch, and the The seventh switches are all turned off, and the capacitance buffer discharges the detection capacitor, the shielding capacitor, and the first capacitor;
  • the first switch, the second switch, and the eighth switch are closed, and the third switch, the fourth switch, the fifth switch, and the sixth switch are closed.
  • the seventh switch is all turned off, the voltage on the detection capacitor is discharged from the power supply voltage to the reference voltage, and after the voltage on the detection capacitor is discharged to the reference voltage, the first switch and The second switch is off;
  • the fifth switch is closed, and the first switch, the second switch, the third switch, the fourth switch, the sixth switch, the seventh switch, and the eighth switch are closed.
  • the switches are all turned off, and part of the charge on the calibration capacitor is transferred to the integrating capacitor.
  • a first buffer stage is further included between the second discharge stage and the charge transfer stage, and a second buffer stage is further included after the charge transfer stage.
  • the first buffer stage And the second buffer stage is used to keep the charge on the detection capacitor, the calibration capacitor, the first capacitor, the second capacitor, and the integration capacitor unchanged;
  • the first switch, the second switch, the third switch, the fourth switch, the fifth switch, and the first switch are all off.
  • control module is also used to:
  • the charge and discharge switch group, the integral switch group, and the clear switch group are controlled to repeatedly perform operations from the charge and discharge stage to the second buffer stage for multiple times.
  • the output voltage V out of the integrator is:
  • V R is the reference voltage
  • the detecting capacitor ⁇ C x is the amount of change to the reference capacitance
  • the C S is the capacitance value of the integration capacitor
  • said I 1 is the first The current value of the current source
  • the I 2 is the current value of the second current source
  • the V DD is the power supply voltage
  • the N is the number of executions from the charge-discharge stage to the second buffer stage .
  • the capacitance detection circuit further includes a comparator, a first input terminal of the comparator is connected to the detection capacitor, and a second input terminal of the comparator is used to input the reference voltage, The output terminal of the comparator is connected to the control module;
  • the control module controls the charging and discharging module to stop charging or discharging the detection capacitor and the calibration capacitor.
  • the capacitance detection circuit further includes a processing module configured to determine the amount of change of the capacitance value of the detection capacitor relative to the basic capacitance of the detection capacitor according to the output voltage of the integrator.
  • the calibration capacitor is used to make the output voltage of the integrator a reference voltage when the capacitance value of the detection capacitor is a reference capacitance value, where the reference capacitance value and the calibration
  • the ratio of the capacitance value of the capacitor is equal to the ratio of the current value of the first current source to the current value of the second current source.
  • the current value of the first current source is greater than the current value of the second current source.
  • the capacitance detection circuit is applied to a capacitance sensor
  • the detection capacitor is the sensor capacitance of the capacitance sensor
  • the capacitance value of the sensor capacitance is the reference capacitance value when the capacitance sensor is not operated.
  • a touch device including the first aspect and the capacitance detection circuit in any one of the possible implementation manners of the first aspect.
  • a terminal device including the first aspect and the capacitance detection circuit in any one of the possible implementation manners of the first aspect.
  • the shield electrode and the detection electrode are driven in a time-sharing manner, so that the output voltage of the integrator is independent of the first capacitor formed by the shield electrode and the detection electrode. Changes in the capacitance of the capacitor will not affect the output of the integrator, that is, a good waterproof function can be achieved, and there will be no delay problems caused by simultaneous driving.
  • the charging of the shielding electrode and the charging of the detection electrode are performed in a time-sharing manner, the requirement on the driving capability of the shielding electrode can be greatly reduced, and the design difficulty and power consumption can be reduced.
  • Figure 1 is a schematic diagram of the waveforms of the sensing electrode and the shielding electrode.
  • Fig. 2 is a schematic structural diagram of a capacitance detection circuit according to an embodiment of the present application.
  • Fig. 3 is a schematic diagram of a capacitance detection circuit according to an embodiment of the present application.
  • Fig. 4 is a logic timing diagram of a capacitance detection circuit according to an embodiment of the present application.
  • Fig. 5 is a schematic diagram of a capacitance detection circuit according to another embodiment of the present application.
  • Fig. 6 is a logic timing diagram of a capacitance detection circuit according to another embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a touch device according to an embodiment of the present application.
  • Fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
  • a waterproof realization method is to set a shielding electrode around the sensing electrode of the capacitance sensor to shield the capacitance of the water drop to the system ground, and make the level of the sensing electrode and the shielding electrode in the process of capacitance detection. Keep the same, so that the capacitance formed between the sensing electrode and the shielding electrode will not absorb or release charge, and the capacitance will be invisible.
  • a calibration capacitor can be added to the capacitance detection circuit.
  • the capacitance value of the calibration capacitor and the capacitance value of the sensor capacitance when the capacitance sensor is not operated (or the basic Capacitance) is approximately equal.
  • the detection capacitor Cx and the calibration capacitor are charged and discharged so that the calibration capacitor offsets the contribution of the basic capacitance of the detection capacitor Cx, and the charging and discharging speed is relatively fast. If you want to ensure that the capacitance detection process The voltages of the sensing electrode and the shielding electrode are always the same, and the driving circuit of the shielding electrode is required to have a relatively fast response speed and a strong driving capability, and therefore, a higher power consumption is required.
  • the embodiments of the present application provide a capacitance detection circuit, which can achieve good waterproof performance, and can reduce the requirements on the response speed and/or driving capability of the driving circuit of the shield electrode, thereby reducing the design difficulty and System functions.
  • FIG. 2 is a schematic structural diagram of a capacitance detection circuit 100 according to an embodiment of the present application. As shown in FIG. 2, the capacitance detection circuit 100 is connected to a detection capacitor 110, and the capacitance detection circuit 100 includes a calibration capacitor 120;
  • a shield electrode 170, the shield electrode 170 and the detection electrode of the detection capacitor 110 form a first capacitor, and the shield electrode 170 and the system ground form a shield capacitor;
  • the charging and discharging module 140 includes a first current source 141 and a second current source 142.
  • the first current source 141 is used to charge or discharge the detection capacitor, the first capacitor, and the shielding capacitor.
  • the second current source 142 is used to charge or discharge the calibration capacitor;
  • the shielding electrode driving module 180 is used to charge or discharge the shielding capacitor and the first capacitor;
  • the integrator 150 is used to detect the capacitance effect of the capacitor 110, such as the amount of charge or the amount of charge change on the capacitor, into a voltage signal;
  • the control module 130 is used to control the working state of the charge and discharge module 140, the integrator 150, and the shield electrode driving module 180;
  • the shielding electrode driving module 180 charges or discharges the shielding capacitor and the first capacitor so that the voltage on the shielding capacitor is a reference voltage
  • the first current source 141 charges or discharges the detection capacitor, the first capacitor, and the shielding capacitor, and the second current source 142 is used for charging or discharging the calibration capacitor, wherein, in the second charging and discharging stage, the voltage on the detection capacitor is charged to the reference voltage or discharged to the reference voltage.
  • the first capacitor and the shielding capacitor are equivalent capacitors, that is, the shielding electrode and the detecting electrode can be used as two plates of the capacitor to form the first capacitor, But it does not mean that the shielding electrode and the detection electrode are used in the circuit to form the first capacitor. It is understandable that the shielding electrode is used to shield the influence of water droplets and other interference objects on the capacitance detection, and the detection electrode is used to receive the user's finger. Touch, and further detect the change in capacitance value caused by the touch of the user's finger through the subsequent detection circuit. The same is true for the shielding capacitor, which will not be repeated here.
  • the detection capacitor is a measurement capacitor formed by a driving electrode and a sensing electrode (ie, a detection electrode) on a touch panel, wherein the driving electrode is grounded, Or the detection capacitor may be a detection capacitor formed by the sensing electrode and the ground.
  • the calibration capacitor 120 is used to make the output voltage of the integrator 150 a reference voltage when the capacitance value of the detection capacitor 110 is a reference capacitance value, where the reference The ratio of the capacitance value to the capacitance value of the calibration capacitor is equal to the ratio of the current value of the first current source 141 to the current value of the second current source 142.
  • the embodiment of the present application introduces the concept of detecting the capacitance value of the capacitor, and judging whether there is a touch by detecting the change in the capacitance value of the capacitor. It should be noted that whether the user touches the detection capacitor, the detection capacitor The capacitance value of the detection capacitor can be regarded as a constant.
  • the change in the capacitance value of the detection capacitor described in this application refers to the change in the equivalent capacitance of the integrator connected to the subsequent sequence. Specifically, when the user's finger touches the electrode of the detection capacitor When the board is installed, the finger and the ground form a capacitor. At this time, the capacitance connected to the integrator is the equivalent capacitance of the capacitance and the detection capacitor.
  • the embodiment of the present application introduces the basic capacitance of the detection capacitor and the user touches the detection capacitor into
  • the equivalent capacitance of the new capacitance is regarded as the capacitance value of the detection capacitor.
  • the detection capacitor in this application can be considered as the result of the superposition of the detection capacitor itself connected to the integrator and the new capacitance generated when the user touches the detection capacitor.
  • An equivalent capacitor is an equivalent capacitor.
  • the capacitance detection circuit of the embodiment of the present application can be applied to various circuits or systems that require capacitance detection.
  • the capacitance detection circuit can be applied to a capacitance sensor.
  • the detection capacitor may be a capacitance.
  • the capacitance value of the detected capacitor is the reference capacitance value.
  • the reference capacitance value can also be called the basic capacitance, or self-capacitance, nominal capacitance value, etc.
  • the capacitance value of the detection capacitor will change relative to the basic capacitance.
  • the integrator can convert the capacitance signal (or capacitance effect) of the detection capacitor into a voltage
  • the signal, further, the capacitance value of the detection capacitor can be determined according to the voltage signal.
  • the capacitance detection circuit of the embodiment of the present application may include a first current source and a second current source, and the first current source and the second current source are respectively used to charge or discharge the detection capacitor and the calibration capacitor .
  • the calibration capacitor is used to make the output voltage of the integrator a reference voltage when the capacitance value of the detection capacitor is a reference capacitance value, or in other words, the calibration capacitor is used to offset the detection capacitor as a reference capacitance The amount of contribution to the output voltage of the integrator.
  • the purpose of adjusting the capacitance value of the calibration capacitor can be achieved by adjusting the proportional relationship between the current value of the first current source and the current value of the second current source, for example, Setting the current value of the first current source to be greater than the current value of the second current source can make the capacitance value of the calibration capacitor smaller than the reference capacitance value of the detection capacitor.
  • the calibration capacitor with the reference capacitance value of the capacitor equal or approximately equal helps to reduce the area of the capacitance detection circuit and reduce the cost of the chip.
  • the calibration capacitor may be a capacitor or a capacitor array with a variable capacitance value, or may also be a capacitor or a capacitor array with a fixed capacitance value, which is not limited in the embodiment of the present application.
  • the first current source and the second current source may be current sources having a proportional relationship.
  • the first current source and the second current source may be obtained by mirroring the current source, and the first current source
  • the proportional relationship between the current value of the current source and the current value of the second current source may be fixed or adjustable, which is not limited in the embodiment of the present application.
  • the capacitance detection circuit 100 further includes a charge and discharge switch group, a clear switch group, and an integration switch group.
  • the integrator includes an integration capacitor and an amplifier.
  • the shield electrode driving module includes a voltage buffer;
  • the control module 130 can control the working status of the charging and discharging module, the shield electrode driving module and the integrator through the charging and discharging switch group, the clearing switch group, and the integrating switch group, for example, controlling all When the shield electrode drive module charges or discharges the detection capacitor and the shield capacitor, controls when the charge and discharge module charges the detection capacitor and the calibration capacitor, and when to discharge the detection capacitor and the calibration capacitor , And control when the integrator performs integration, etc.
  • control module is used to:
  • the first current source and the second current source are controlled by the charging and discharging switch group to charge or discharge the detection capacitor and the calibration capacitor, respectively, wherein the The charging duration of the calibration capacitor is equal to the charging duration of the detection capacitor, or the discharge duration of the calibration capacitor is the same as the discharge duration of the detection capacitor;
  • part of the charge stored on the calibration capacitor is controlled by the integration switch group to be transferred to the integration capacitor.
  • a good waterproof function can be achieved by time-sharing charging and discharging of the shielding electrode and the sensing electrode, which can greatly reduce the driving capability requirements of the shielding electrode, thereby reducing design difficulty and system power consumption.
  • a first buffer stage may be further included between the second charge-discharge stage and the charge transfer stage, and a second buffer stage may be further included after the charge transfer stage,
  • the first buffering stage and the second buffering stage are used to avoid the problem of charge leakage caused by frequent switching of switches, wherein, in the first buffering stage and the second buffering stage, the detection capacitor, the The charges on the shielding capacitor, the first capacitor, the calibration capacitor, and the integrating capacitor remain unchanged.
  • the shield electrode driving circuit may include a voltage buffer capable of outputting a stable voltage, or, in other embodiments, the voltage buffer may also be implemented by other equivalent circuits, Only it can output a stable voltage.
  • the capacitance detection circuit 100 may further include a comparator, the first input terminal of the comparator is connected to the detection capacitor, and the second input terminal of the comparator is used to input the The reference voltage, the output terminal of the comparator is connected to the control module;
  • the control module controls the charging and discharging module to stop charging or discharging the detection capacitor and the calibration capacitor.
  • the control module can control the charging and discharging module to stop the charging and discharging module when the output signal of the comparator is inverted.
  • the detection capacitor and the calibration capacitor are charged or discharged, that is, the first current source is controlled to stop charging or discharging the detection capacitor, and the second current source is controlled to stop charging or discharging the calibration capacitor .
  • the control module may control the charging and discharging module to stop charging or discharging the detection capacitor and the calibration capacitor through the charging and discharging switch set.
  • the equivalent circuit of a comparator can also be used to achieve the above functions, as long as the charge and discharge module is controlled to stop the detection capacitor and the detection capacitor when the voltage of the detection capacitor reaches the reference voltage.
  • the calibration capacitor can be charged or discharged, which is not specifically limited in the embodiment of the present application.
  • the capacitance detection circuit 100 further includes a processing module configured to determine the amount of change of the capacitance value of the detection capacitor relative to the reference capacitance value according to the output voltage of the integrator.
  • the processing module may be an ADC, or may also be other circuits or modules with processing functions, which is not limited in the embodiment of the present application.
  • the processing module may determine the capacitance value of the detection capacitor according to the output voltage of the integrator. Specifically, the processing module may convert the voltage signal output by the integrator into a digital signal, and determine the capacitance value of the detection capacitor according to the digital signal. For example, if the capacitance detection circuit is applied to a capacitance sensor, the processing module may When the user does not operate the capacitance sensor, a digital signal is determined, and when the user operates the capacitance sensor, another digital signal is determined, and then the change in the capacitance value of the sensor capacitance can be determined according to the difference between the two digital signals.
  • FIGS. 3 to 6 are intended to help those skilled in the art to better understand the embodiments of the present application, and are not intended to limit the scope of the embodiments of the present application. Those skilled in the art can obviously make various equivalent modifications or changes based on the given figures 3 to 6, and such modifications or changes also fall within the scope of the embodiments of the present application.
  • FIG. 3 is a circuit structure diagram of a capacitance detection circuit 200 according to an embodiment of the present application. As shown in FIG. 3, the capacitance detection circuit 200 is connected to the detection capacitor Cx, and includes:
  • the shield electrode, the shield electrode and the detection electrode of the detection capacitor Cx form a first capacitor Cm, the shield electrode and the system ground form a shield capacitor Cshd, the lower electrode of the first capacitor and the upper electrode of the shield capacitor in FIG. 3 can be Seen as a schematic diagram of the equivalent circuit structure of the shield electrode;
  • the shield electrode driving circuit includes a voltage buffer 270;
  • the charging and discharging module 240 includes a first current source 241 and a second current source 242, and the integrator 250 includes an integrating capacitor Cs and an amplifier 252.
  • the capacitance detection circuit further includes a charge and discharge switch group, a clear switch group, and an integration switch group, wherein the charge and discharge switch group includes a first switch S1, a second switch S2, a third switch S3, a fourth switch S4, The seventh switch S7 and the eighth switch S8, the integral switch group includes a fifth switch S5, and the clear switch group includes a sixth switch S6.
  • the charging and discharging switch group is used to control the charging and discharging module 240 to charge or discharge the detection capacitor Cx, the calibration capacitor Cc, the first capacitor or the shielding capacitor.
  • the first switch S1 is used for The first current source 241 is controlled to charge the detection capacitor Cx
  • the second switch S2 is used to control the second current source 242 to charge the calibration capacitor Cc
  • the third switch is used to control The detection capacitor Cx and the first capacitor Cm are discharged
  • the fourth switch is used to control the discharge of the calibration capacitor Cc
  • the seventh switch S7 is used to control the discharge of the shielding capacitor
  • the eighth switch is used to control the voltage buffer 270 to charge the first capacitor Cm.
  • the integration switch group is used to integrate the integration capacitor, specifically, the fifth switch S5 is used to control the integration of the integration capacitor Cs.
  • the clearing switch group is used for clearing the charge stored on the integrating capacitor, specifically, the sixth switch is used for controlling the clearing of the charge stored on the integrating capacitor Cs.
  • one end of the first switch S1 is connected to one end of the first current source 241, the other end of the first current source 241 is connected to a power supply voltage (that is, V DD ), and the other end of the first switch S1
  • a power supply voltage that is, V DD
  • One end of the detection capacitor Cx, one end of the third switch S3 and one end of the first capacitor Cm are connected, the other end of the detection capacitor Cx and the other end of the third switch S3 are both grounded, the The other end of the first capacitor Cm is connected to one end of the shielding capacitor Cshd;
  • One end of the second switch S2 is connected to one end of the second current source 242, the other end of the second current source is connected to the power supply voltage (that is, V DD ), and the other end of the second switch S2 is connected to the calibration One end of the capacitor Cc and one end of the fourth switch S4, the other end of the calibration capacitor Cc and the other end of the fourth switch S4 are grounded, that is, one end of the calibration capacitor Cc (for example, the upper plate) It is connected to the power supply voltage V DD through the second switch S2 and the second current source 242, and the same end (such as the upper plate) of the calibration capacitor Cc is grounded through the fourth switch S4, and the other end of the calibration capacitor Cc is grounded. One end (for example, the lower plate) is grounded. It can be clearly seen from this that the calibration capacitor Cc and the detection capacitor Cx are independent capacitors, and there is no common electrode plate between them;
  • One end of the fifth switch S5 is connected to one end of the calibration capacitor Cc, and the other end of the fifth switch S5 is connected to the first input end (ie, the negative input end) of the amplifier 252, and the second end of the amplifier 252 is
  • the input terminal (that is, the positive input terminal) is used to input the reference voltage (denoted as V R );
  • the sixth switch S6 is connected in parallel with the integrating capacitor Cs, and the integrating capacitor Cs is connected in parallel with the amplifier 252, that is, the integrating capacitor Cs is connected across the negative input terminal and the output terminal of the amplifier 252;
  • One end of the seventh switch S7 is grounded, the other end of the seventh switch S7 is connected to one end of the eighth switch S8 and one end of the shielding capacitor Cshd, and the other end of the shielding capacitor Cshd is grounded;
  • the other end of the eighth switch S8 is connected to the output terminal of the buffer capacitor 270, the output voltage of the buffer capacitor 270 to the reference voltage V R;
  • the first input terminal (for example, the positive input terminal) of the comparator 290 is connected to one end of the detection capacitor Cx, and the second input terminal (for example, the negative input terminal) of the comparator 290 is used to input the reference voltage V R , the output terminal of the comparator 290 is connected to the control module 230, and the control module 230 is used to control the opening and closing of the switches S1 to S8.
  • the connection mode of the positive and negative input terminals of the comparator 290 can also be reversed, which is not limited herein.
  • the output terminal of the integrator 250 can also be connected to a processing module 260, and the processing module 260 can be used to process the output voltage V out of the integrator 250 to determine the capacitance value of the detection capacitor Cx, or the detection capacitor The amount of charge on Cx further determines whether there is a touch.
  • the curves corresponding to S1 to S8 are the waveform diagrams of the control signals of the first switch S1 to the eighth switch S8, when the control signal is high, the corresponding switch is closed, and when the control signal When it is at a low level, the corresponding switch is off.
  • V x , V n and V shd are the voltage curves on the detection capacitor Cx, the calibration capacitor Cc, and the shielding capacitor C shd , respectively, and V out is the output voltage of the integrator 250.
  • the sixth switch S6 is closed, the first switch S1, the second switch S2, the third switch S3, the fourth switch S4, and the fifth switch S5 ,
  • the seventh switch S7 and the eighth switch S8 are both turned off, and the charge stored on the integrating capacitor Cs is cleared, that is, at the time t 1 , the charge on the integrating capacitor Cs is zero.
  • the first charging and discharging phase before the first charging and discharging phase, it also includes a complete discharge phase (corresponding to the time period t 1 to t 2 in FIG. 4 ).
  • the complete discharge phase the third switch S3 and the fourth switch S4 and the seventh switch S7 are closed, and the first switch S1, the second switch S2, the fifth switch S5, the sixth switch S6, and the eighth switch S8 are all open, and the detection capacitor Cx ,
  • the calibration capacitor Cc, the shielding capacitor Cshd, the first capacitor Cm formed by the shielding electrode and the sensing electrode are completely discharged.
  • the eighth switch S8 is closed, the first switch S1, the second switch S2, the third switch S3, The fourth switch S4, the fifth switch S5, the sixth switch S6, and the seventh switch S7 are all off, and the capacitance buffer 270 charges the detection capacitor Cx and the first capacitor Cm .
  • the amount of charge stored on the detection capacitor Cx and the first capacitor Cm are:
  • Q Cx, t3 are the amount of charge on the detection capacitor Cx at time t 3
  • Q Cm, t3 are the amount of charge on the first capacitor Cm at time t 3.
  • the first switch S1, the second switch S2 and the eighth switch S8 are closed, and the third switch S3, the third switch S3 and the eighth switch S8 are closed.
  • the fourth switch S4, the fifth switch S5, the sixth switch S6, and the seventh switch S7 are all off, and the first current source 241 and the second current source 242 charge the detection capacitor Cx and the calibration capacitor Cc, respectively.
  • the control module 230 controls the first switch S1 and the second switch S2 is turned off, that is, the first current source 241 and the second current source 242 are controlled to stop charging the detection capacitor Cx and the calibration capacitor Cc.
  • the amount of charge stored on the detection capacitor Cx and the first capacitor Cm are:
  • the C x represents the reference capacitance value (that is, the basic capacitance) of the detection capacitor Cx
  • the I 1 is the current value of the first current source 241.
  • the I 2 is the current value of the second current source.
  • the length of time period t 3 ⁇ t 4 equal to or greater than the required length of time t CH, i.e. t ch ⁇ t 4 -t 3.
  • a first buffer stage (corresponding to the time period t 4 to t 5 in FIG. 4) may be included after the second charge and discharge stage.
  • the charge on the detection capacitor Cx, the calibration capacitor Cc, the shielding capacitor Cshd, the first capacitor Cm, and the integrating capacitor Cs remain unchanged.
  • the first switch S1 to the eighth switch S8 Are all disconnected.
  • the fifth switch S5 is closed, the first switch S1, the second switch S2, the third switch S3, the fourth switch S4, and the sixth switch S6, a seventh switch S7 and the eighth switch S8 are turned off, since the virtual short characteristics of the amplifier, the voltage of the positive input terminal of amplifier 252 and the negative input terminal of the amplifier 252 are equal, i.e., both to the reference voltage V R, and therefore, The voltages of the upper plate of the calibration capacitor Cc and the left plate of the integrating capacitor Cs are clamped to the reference voltage V R , due to the virtual off characteristic of the amplifier, during the time period t 5 to t 6 , the calibration capacitor Cc is stored The charge of is redistributed on the calibration capacitor Cc and the integrating capacitor Cs.
  • the charge balance equation is shown in formula (7):
  • the amount of charge is the capacitance of the calibration capacitor Cc
  • the C s is the capacitance of the integrating capacitor Cs
  • V R C c is the charge transfer after the storage of the calibration capacitor Cc
  • the amount of charge (V R -V OUT) ⁇ C S is after said integrating stored charge transfer on capacitor Cs.
  • the output voltage V out of the integrator 250 can be obtained as shown in the following formula:
  • C C C X I 2 /I 1 that, as long as I 2 /I 1 ⁇ 1 is set, C C ⁇ C X can be made, so that the purpose of reducing the capacitance value of the calibration capacitor can be achieved, and because The capacitance value of the capacitor is proportional to the size.
  • a smaller calibration capacitor can be used to offset the reference capacitance value of the detection capacitor Cx.
  • a second buffer stage (corresponding to the time period t 6 to t 7 in FIG. 4) may be included after the charge transfer stage.
  • the charge on the detection capacitor Cx, the calibration capacitor Cc, the first capacitor Cm, the shielding capacitor Cshd, and the integrating capacitor Cs remain unchanged.
  • the first switch S1 to the eighth switch S8 are all off open.
  • the actions from the charge-discharge stage to the second buffer stage may be repeated multiple times.
  • the time period t may be executed.
  • the related operations in 1 to t 2 in the time period t 8 to t 9 , the related operations in the time period t 2 to t 3 can be performed , and in the time period t 10 to t 11 , the time period t 3 to can be performed
  • the related operations in t 4 in the time period t 12 to t 13 , the related operations in the time period t 4 to t 5 can be performed, and in the time period t 13 to t 14 , the time period t 5 to t 6 can be performed
  • the related operations in the next iteration are similar, so I won’t repeat them here.
  • the capacitance change amount of the detection capacitor can be calculated according to Vout and N, so as to determine whether it has been touched. It can be seen from formula (10) that repeating the above process multiple times is beneficial to improve the sensitivity of capacitance detection. For example, when N is 1, for a small ⁇ Cx, V out is almost equal to V R , which may be misjudged as no object touch. When N is large, even a small ⁇ Cx can be multiplied by N. It becomes a larger value, thus obtained V R V out and there may be a large difference, whereby to determine whether the touch can enhance the sensitivity of detection.
  • the capacitance detection circuit of the embodiment of the present application charges the detection capacitor and the calibration capacitor through the first current source and the second current source, respectively, so as to achieve the proportional relationship between the current values passing through the first current source and the second current source.
  • the purpose of controlling the proportional relationship between the reference capacitance value and the capacitance value of the calibration capacitor therefore, as long as the current value of the first current source is set to be greater than the current value of the second current source, the reduction of the calibration capacitor can be achieved.
  • the purpose of the capacitance value in turn, can reduce the area of the capacitance detection circuit and reduce the cost of the chip.
  • the output voltage of the integrator has nothing to do with the first capacitor Cm formed by the shield electrode and the sensing electrode. In this way, even if there are water droplets If the Cm changes, it will not affect the output of the integrator, that is, it can achieve a good waterproof function, and there will be no delay caused by simultaneous driving.
  • the charging of the shielding electrode and the charging of the sensing electrode are performed in a time-sharing manner, the requirement on the driving capability of the shielding electrode can be greatly reduced, and the design difficulty and power consumption can be reduced.
  • FIG. 5 is a schematic structural diagram of a capacitance detection circuit 400 according to another embodiment of the present application. As shown in FIG. 5, the capacitance detection circuit 400 is connected to a detection capacitor Cx, and the capacitance detection circuit 400 includes:
  • a shield electrode, a first capacitor Cm is formed between the shield electrode and the detection electrode of the detection capacitor Cx, and a shield capacitor Cshd is formed between the shield electrode and the system ground.
  • the lower electrode of the first capacitor and the shield capacitor in FIG. 5 The upper electrode can be regarded as a schematic diagram of the equivalent circuit structure of the shielding electrode;
  • the shield electrode driving circuit includes a voltage buffer 470;
  • the charging and discharging module 440 includes a first current source 441 and a second current source 442, and the integrator 450 includes an integrating capacitor Cs and an amplifier 452.
  • the capacitance detection circuit further includes a charge and discharge switch group, a clear switch group, and an integration switch group, wherein the charge and discharge switch group includes a first switch S1, a second switch S2, a third switch S3, and a fourth switch S4,
  • the charge and discharge switch group is used to control the charge and discharge module 440 to charge or discharge the detection capacitor Cx, the calibration capacitor Cc, the first capacitor or the shielding capacitor.
  • the first switch S1 is used for The first current source 441 is controlled to discharge the detection capacitor Cx
  • the second switch S2 is used to control the second current source 442 to discharge the calibration capacitor Cc
  • the third switch is used to control The detection capacitor Cx and the first capacitor Cm are charged
  • the fourth switch is used to control the charging of the calibration capacitor Cc
  • the seventh switch S7 is used to control the charging of the shielding capacitor
  • the The eighth switch is used to control the voltage buffer 270 to discharge the first capacitor Cm.
  • the integration switch group is used to integrate the integration capacitor, specifically, the fifth switch S5 is used to control the integration of the integration capacitor Cs.
  • the clearing switch group is used for clearing the charge stored on the integrating capacitor, specifically, the sixth switch is used for controlling the clearing of the charge stored on the integrating capacitor Cs.
  • circuit structure of the embodiment shown in FIG. 5 and FIG. 3 is similar, the difference is: in the embodiment shown in FIG. 3, one end of the first current source and the second current source is connected to the power supply voltage, One end of the switch, the fourth switch and the seventh switch is grounded. In the embodiment shown in FIG. 5, one end of the first current source and the second current source are grounded, and one end of the third switch, the fourth switch and the seventh switch are connected.
  • the power supply voltage for example, one end of the calibration capacitor Cc (for example, the upper plate) is grounded through the second switch S2 and the second current source 442, and the same end of the calibration capacitor Cc (for example, the upper plate)
  • the fourth switch S4 is connected to the power supply voltage V DD , the other end of the calibration capacitor Cc (for example, the lower plate) is grounded, one end of the first capacitor Cm is connected to one end of the third switch, and the other end of the shielding capacitor Grounding, one end of the seventh switch is connected to one end of the shielding capacitor and one end of the eighth switch, the other end of the seventh switch is connected to the power supply voltage, and the other end of the eighth switch is connected to the capacitor buffer.
  • the connection relationship of other components in FIG. 5 will not be repeated here.
  • the curves corresponding to S1 to S8 are the waveform diagrams of the control signals of the first switch S1 to the eighth switch S8.
  • the corresponding switch When the control signal is high, the corresponding switch is closed.
  • the control signal When it is low level, the corresponding switch is off.
  • the switch can be closed or opened to correspond to low level and high level respectively.
  • V x , V n and V shd are the voltage curves on the detection capacitor Cx, the calibration capacitor Cc and the shielding capacitor C shd respectively, and V out is the output voltage of the integrator 250.
  • the sixth switch S6 is closed, the first switch S1, the second switch S2, the third switch S3, and the fourth switch S4 and the fifth switch S5, the seventh switch S7 and the eighth switch S8 are all turned off, and the charge stored on the integrating capacitor Cs is cleared, that is, at the time t 1 , the amount of charge on the integrating capacitor Cs is zero, according to the amplifier
  • a full charging phase (corresponding to the time period t 1 to t 2 in FIG. 6) is also included.
  • the third switch S3 and the fourth switch S4 and the seventh switch S7 are closed, and the first switch S1, the second switch S2, the fifth switch S5, the sixth switch S6, and the eighth switch S8 are all open, and the detection capacitor Cx ,
  • the calibration capacitor Cc, the shielding capacitor Cshd, the first capacitor Cm formed by the shielding electrode and the sensing electrode are fully charged.
  • the amount of charge stored on the detection capacitor Cx, the calibration capacitor Cc, and the first capacitor Cm are:
  • the output voltage V out of the integrator 450 is V R.
  • the first switch S1 to the seventh switch S7 are opened, the eighth switch S8 is closed, and the voltage buffer 470 simultaneously shields the detection capacitor Cx and The capacitor Cshd and the first capacitor Cm are charged.
  • the amount of charge stored on the detection capacitor Cx, the shielding capacitor Cshd, and the first capacitor Cm are:
  • the first switch S1, the second switch S2 and the eighth switch S8 are closed, and the third switch S3, the third switch S3 and the eighth switch S8 are closed.
  • the fourth switch S4, the fifth switch S5, the sixth switch S6, and the seventh switch S7 are all turned off, and the detection capacitor Cx and the calibration capacitor Cc are discharged through the first current source 441 and the second current source 442, respectively.
  • the control module 430 controls the first switch S1 and the second The switch S2 is turned off, that is, the first current source 441 and the second current source 442 are controlled to stop discharging the detection capacitor Cx and the calibration capacitor Cc.
  • the amount of charge stored on the detection capacitor Cx and the first capacitor Cm are:
  • the C x is the reference capacitance value of the detection capacitor Cx
  • the I 1 is the current value of the first current source 441.
  • the C c is the capacitance value of the calibration capacitor
  • the I 2 is the current value of the second current source 442.
  • a first buffer stage (corresponding to the time period t 4 to t 5 in FIG. 6) may be included after the charge and discharge stage.
  • the charge on the detection capacitor Cx, the calibration capacitor Cc, the shielding capacitor Cshd, the first capacitor Cm, and the integrating capacitor 451 remain unchanged.
  • the first switch S1 to the eighth switch S8 Are all disconnected.
  • the fifth switch S5 is closed, the first switch S1, the second switch S2, the third switch S3, the fourth switch S4, and the sixth switch S6, the seventh switch S7, and the eighth switch S8 are all off. Due to the virtual short characteristic of the amplifier, the voltages of the negative input terminal of the amplifier 452 and the positive input terminal of the amplifier are equal, that is, both are the reference voltage V R.
  • the C s is the capacitance value of the integrating capacitor 451
  • the V R C c is the amount of charge stored on the calibration capacitor 420 after the charge transfer
  • the (V R -V OUT ) ⁇ C S is The amount of charge stored on the integrating capacitor 451 after the charge transfer.
  • the output voltage V out of the integrator 450 can be obtained as shown in the following formula:
  • C C C X I 2 /I 1 that, as long as I 2 /I 1 ⁇ 1 is set, C C ⁇ C X can be made, so that the purpose of reducing the capacitance value of the calibration capacitor can be achieved.
  • a second buffer phase (corresponding to the time period t 6 to t 7 in FIG. 6) may be included.
  • the detection capacitor 410 and the calibration capacitor 420 are ,
  • the charges on the shielding capacitor Cshd, the first capacitor Cm and the integrating capacitor 451 remain unchanged.
  • the first switch S1 to the eighth switch S8 are all turned off.
  • the actions from the charging and discharging phase to the second buffering phase can also be repeated multiple times, which will not be repeated here. Then, when the above operation process is repeated N times, the output voltage of the integrator 450 is:
  • the capacitance detection circuit of the embodiment of the present application first charges the detection capacitor and the calibration capacitor, and then discharges the detection capacitor and the calibration capacitor through the first current source and the second current source, respectively, so as to pass the first current.
  • the proportional relationship between the current values of the power source and the second current source is the purpose of controlling the proportional relationship between the reference capacitance value and the capacitance value of the calibration capacitor. Therefore, it is only necessary to set the current value of the first current source to be greater than that of the second current source.
  • the current value of can achieve the purpose of reducing the capacitance value of the calibration capacitor, thereby reducing the area of the capacitance detection circuit and reducing the cost of the chip.
  • circuits shown in Figures 3 and 5 can also be used to form a differential circuit, and the difference between the output voltages of the two integrators can be further used to determine whether there is a touch, which is conducive to suppressing common mode noise and improving the accuracy of touch detection. Spend.
  • FIG. 7 shows a schematic structural diagram of the touch control 600 of the embodiment of the present application.
  • the touch control device 600 may include a capacitance detection circuit 601.
  • the capacitance detection circuit 601 may be the capacitance detection circuit described in the foregoing embodiment.
  • the touch device may be a capacitive sensor, and the user may operate the sensing area of the capacitive sensor. In this way, a capacitance effect can be generated between the user and the sensing area.
  • the capacitance detection circuit may The effect is converted into a voltage signal, and then the voltage signal can be converted into a digital signal. Further, the information of the user operating the capacitive sensor can be determined based on the digital signal, for example, information such as touch position.
  • FIG. 8 shows a schematic structural diagram of a terminal device 700 of an embodiment of the present application.
  • the terminal device may include a capacitance detection circuit 701.
  • the detection circuit 701 may be the capacitance detection circuit described in the foregoing embodiment, and the capacitance detection circuit may be used to detect information about a user operating the capacitance detection circuit, such as information such as a touch position.
  • the terminal device 700 may be a mobile phone, a tablet computer, a notebook computer, a desktop computer, an in-vehicle electronic device, or a wearable smart device.

Abstract

A capacitive detection circuit, a touch device, and a terminal apparatus. The capacitive detection circuit (100) is connected to a detection capacitor (110), and comprises: a calibration capacitor (120); a shield electrode (170) forming a first capacitor with a detection electrode of the detection capacitor (110) and forming a shield capacitor with a system ground; a charging discharging module (140) comprising a first current source (141) and a second current source (142), the first current source (141) being used to charge or discharge the detection capacitor (110), the first capacitor, and the shield capacitor, and the second current source (142) being used to charge or discharge the calibration capacitor (120); a shield electrode drive module (180) used to charge or discharge the shield capacitor and the first capacitor; an integrator (150) used to convert a capacitance of the detection capacitor (110) into a voltage signal; and a control module (130) used to control operation states of the charging discharging module (140), the integrator (150), and the shield electrode drive module (180).

Description

电容检测电路、触控装置和终端设备Capacitance detection circuit, touch device and terminal equipment 技术领域Technical field
本申请实施例涉及电容检测领域,并且更具体地,涉及一种电容检测电路、触控装置和终端设备。The embodiments of the present application relate to the field of capacitance detection, and more specifically, to a capacitance detection circuit, a touch device, and a terminal device.
背景技术Background technique
电容型传感器被广泛应用于电子设备中,例如,可以用作输入设备提供输入信息,例如,位置、运动、作用力和持续时间等信息。电容型传感器的核心部分是电容检测电路,电容检测电路包括传感器电容,积分器和模数转换器(Analog to Digital Converter,ADC),在用户操作电容传感器时传感器电容的电荷量会发生变化,积分器用于将用户操作电容传感器时产生的电容效应转换为电压信号,该电压信号经ADC采样后转换为数字信号,然后根据数字信号可以进行电容检测。Capacitive sensors are widely used in electronic devices. For example, they can be used as input devices to provide input information, such as position, movement, force, and duration. The core part of the capacitive sensor is the capacitance detection circuit. The capacitance detection circuit includes the sensor capacitance, integrator, and analog-to-digital converter (Analog to Digital Converter, ADC). When the user operates the capacitance sensor, the charge of the sensor capacitance will change. The device is used to convert the capacitance effect generated when the user operates the capacitance sensor into a voltage signal, which is sampled by the ADC and converted into a digital signal, and then the capacitance can be detected according to the digital signal.
但是在应用中,若有水滴滴在传感器的感应区域,水滴和系统地之间会形成较大的电容而对传感器电容产生电荷变化的影响,其等效电路与用户手指触摸传感器的时候基本相同,从而导致误检测,因此如何进行防水的电容检测是一项亟需解决的问题。But in the application, if there is a water drop on the sensor's sensing area, a large capacitance will be formed between the water drop and the system ground, which will affect the sensor capacitance. The equivalent circuit is basically the same as when the user's finger touches the sensor. , Resulting in false detection, so how to perform waterproof capacitance detection is a problem that needs to be solved urgently.
发明内容Summary of the invention
本申请实施例提供了一种电容检测电路、触控装置和终端设备,能够实现防水的电容检测。The embodiments of the present application provide a capacitance detection circuit, a touch device, and a terminal device, which can realize waterproof capacitance detection.
第一方面,提供了一种电容检测电路,连接至检测电容器,所述电容检测电路包括:校准电容器;In a first aspect, a capacitance detection circuit is provided, which is connected to a detection capacitor, and the capacitance detection circuit includes: a calibration capacitor;
屏蔽电极,所述屏蔽电极和所述检测电容器的检测电极形成第一电容器,所述屏蔽电极和系统地形成屏蔽电容器;A shield electrode, the shield electrode and the detection electrode of the detection capacitor form a first capacitor, and the shield electrode and the system ground form a shield capacitor;
充放电模块,包括第一电流源和第二电流源,所述第一电流源用于对所述检测电容器、所述第一电容器和所述屏蔽电容器进行充电或放电,所述第二电流源用于对所述校准电容器进行充电或放电;The charging and discharging module includes a first current source and a second current source. The first current source is used to charge or discharge the detection capacitor, the first capacitor, and the shielding capacitor, and the second current source For charging or discharging the calibration capacitor;
屏蔽电极驱动模块,用于对所述屏蔽电容器和所述第一电容器进行充电或放电;A shielding electrode driving module for charging or discharging the shielding capacitor and the first capacitor;
所述积分器,用于将检测电容器的电容转化为电压信号;The integrator is used to convert the capacitance of the detection capacitor into a voltage signal;
所述控制模块,用于控制所述充放电模块、所述积分器和所述屏蔽电极驱动模块的工作状态;The control module is used to control the working state of the charge and discharge module, the integrator and the shield electrode drive module;
其中,在第一充放电阶段,所述屏蔽电极驱动模块对所述屏蔽电容器和所述第一电容器进行充电或放电以使所述屏蔽电容器上的电压为参考电压;Wherein, in the first charging and discharging stage, the shielding electrode driving module charges or discharges the shielding capacitor and the first capacitor so that the voltage on the shielding capacitor is a reference voltage;
在所述第一充放电阶段之后的第二充放电阶段,所述第一电流源对所述检测电容器、所述第一电容器和所述屏蔽电容器进行充电或放电,所述第二电流源用于对所述校准电容器进行充电或放电,其中,在所述第二充放电阶段,所述检测电容器上的电压被充电至所述参考电压或被放电至所述参考电压。In the second charging and discharging phase after the first charging and discharging phase, the first current source charges or discharges the detection capacitor, the first capacitor, and the shielding capacitor, and the second current source uses In charging or discharging the calibration capacitor, in the second charging and discharging stage, the voltage on the detection capacitor is charged to the reference voltage or discharged to the reference voltage.
在一些可能的实现方式中,所述电容检测电路还包括充放电开关组、清零开关组和积分开关组,所述积分器包括积分电容器和放大器,所述屏蔽电极驱动模块包括电压缓冲器;In some possible implementation manners, the capacitance detection circuit further includes a charging and discharging switch group, a clearing switch group, and an integrating switch group, the integrator includes an integrating capacitor and an amplifier, and the shield electrode driving module includes a voltage buffer;
所述控制模块具体用于:The control module is specifically used for:
在电荷清零阶段,通过所述清零开关组清零所述积分电容器上存储的电荷;In the charge clearing stage, the charge stored on the integrating capacitor is cleared by the clearing switch group;
在所述第一充放电阶段,通过所述充放电开关组控制所述电压缓冲器对所述检测电容器、所述第一电容器和所述屏蔽电容器进行充电或放电;In the first charging and discharging stage, controlling the voltage buffer to charge or discharge the detection capacitor, the first capacitor and the shielding capacitor through the charging and discharging switch group;
在所述第二充放电阶段,通过所述充放电开关组控制所述第一电流源和所述第二电流源分别对所述检测电容器和所述校准电容器进行充电或放电,其中,所述校准电容器的充电时长与所述检测电容器的充电时长相等,或所述校准电容器的放电时长与所述检测电容器的放电时长相等;In the second charging and discharging stage, the first current source and the second current source are controlled by the charging and discharging switch group to charge or discharge the detection capacitor and the calibration capacitor, respectively, wherein the The charging duration of the calibration capacitor is equal to the charging duration of the detection capacitor, or the discharge duration of the calibration capacitor is the same as the discharge duration of the detection capacitor;
在电荷转移阶段,通过所述积分开关组控制所述校准电容器上存储的部分电荷转移到所述积分电容器上。In the charge transfer phase, part of the charge stored on the calibration capacitor is controlled by the integration switch group to be transferred to the integration capacitor.
在一些可能的实现方式中,所述充放电开关组包括第一开关、第二开关、第三开关、第四开关、第七开关和第八开关,所述积分开关组包括第五开关,所述清零开关组包括第六开关;In some possible implementation manners, the charging and discharging switch group includes a first switch, a second switch, a third switch, a fourth switch, a seventh switch, and an eighth switch, and the integrating switch group includes a fifth switch, so The reset switch group includes a sixth switch;
所述第一开关的一端连接所述第一电流源的一端,所述第一电流源的另一端连接电源电压,所述第一开关的另一端连接所述检测电容器的一端、所述第三开关的一端以及所述第一电容器的一端,所述检测电容器的另一端和所述第三开关的另一端都接地;One end of the first switch is connected to one end of the first current source, the other end of the first current source is connected to the power supply voltage, and the other end of the first switch is connected to one end of the detection capacitor and the third One end of the switch and one end of the first capacitor, the other end of the detection capacitor and the other end of the third switch are all grounded;
所述第二开关的一端连接所述第二电流源的一端,所述第二电流源的另一端连接电源电压,所述第二开关的另一端连接所述校准电容器的一端以及所述第四开关的一端,所述校准电容器的另一端和所述第四开关的另一端都接地;One end of the second switch is connected to one end of the second current source, the other end of the second current source is connected to the power supply voltage, and the other end of the second switch is connected to one end of the calibration capacitor and the fourth One end of the switch, the other end of the calibration capacitor and the other end of the fourth switch are all grounded;
所述第五开关的一端连接所述校准电容器的一端,所述第五开关的另一端连接所述放大器的第一输入端,所述放大器的第二输入端用于输入所述参考电压;One end of the fifth switch is connected to one end of the calibration capacitor, the other end of the fifth switch is connected to the first input terminal of the amplifier, and the second input terminal of the amplifier is used to input the reference voltage;
所述第六开关与所述积分电容器并联连接,所述积分电容器与所述放大器并联连接;The sixth switch is connected in parallel with the integration capacitor, and the integration capacitor is connected in parallel with the amplifier;
所述第七开关的一端接地,所述第七开关的另一端连接所述第八开关的一端以及所述屏蔽电容器的一端;One end of the seventh switch is grounded, and the other end of the seventh switch is connected to one end of the eighth switch and one end of the shielding capacitor;
所述第八开关的另一端连接所述电容缓冲器的输出端,所述电容缓冲器的输出电压为所述参考电压。The other end of the eighth switch is connected to the output end of the capacitor buffer, and the output voltage of the capacitor buffer is the reference voltage.
在一些可能的实现方式中,在所述电荷清零阶段和所述第一充放电阶段之间还包括完全放电阶段,在所述完全放电阶段,所述检测电容器、所述校准电容器、所述第一电容器和所述屏蔽电容器上的电荷清零。In some possible implementations, a complete discharge phase is further included between the charge zero phase and the first charge and discharge phase. In the complete discharge phase, the detection capacitor, the calibration capacitor, and the The charges on the first capacitor and the shielding capacitor are cleared.
在一些可能的实现方式中,在所述电荷清零阶段,所述第六开关闭合,所述第一开关、所述第二开关、所述第三开关、所述第四开关,所述第五开关,所述第七开关和所述第八开关都断开,清零所述积分电容器上存储的电荷;In some possible implementation manners, during the charge clearing phase, the sixth switch is closed, and the first switch, the second switch, the third switch, the fourth switch, and the first switch are closed. Five switches, the seventh switch and the eighth switch are both turned off, and the charge stored on the integrating capacitor is cleared;
在所述完全放电阶段,所述第三开关,第四开关和第七开关闭合,所述第一开关、所述第二开关、所述第五开关、所述第六开关和所述第八开关都断开,清零所述检测电容器、所述校准电容器、所述第一电容器和所述屏蔽电容器上存储的电荷;In the complete discharge phase, the third switch, the fourth switch, and the seventh switch are closed, and the first switch, the second switch, the fifth switch, the sixth switch, and the eighth switch are closed. The switches are all turned off, and the charges stored on the detection capacitor, the calibration capacitor, the first capacitor and the shielding capacitor are cleared;
在所述第一充放电阶段,所述第八开关闭合,所述第一开关、所述第二开关、所述第三开关、所述第四开关、所述第五开关、第六开关和所述第七开关都断开,所述电容缓冲器对所述检测电容器和所述第一电容器进行充电;In the first charging and discharging stage, the eighth switch is closed, the first switch, the second switch, the third switch, the fourth switch, the fifth switch, the sixth switch, and the All the seventh switches are turned off, and the capacitance buffer charges the detection capacitor and the first capacitor;
在所述第二充放电阶段,所述第一开关、所述第二开关和第八开关闭合,所述第三开关、所述第四开关、所述第五开关、第六开关和第七开关都断开,所述检测电容器上的电压被充电至所述参考电压,在所述检测电容器上的电 压被充电至所述参考电压之后,所述第一开关和所述第二开关断开;In the second charging and discharging stage, the first switch, the second switch, and the eighth switch are closed, and the third switch, the fourth switch, the fifth switch, the sixth switch, and the seventh switch are closed. The switches are all turned off, the voltage on the detection capacitor is charged to the reference voltage, and after the voltage on the detection capacitor is charged to the reference voltage, the first switch and the second switch are turned off ;
在所述电荷转移阶段,所述第五开关闭合,所述第一开关、所述第二开关、所述第三开关、所述第四开关、所述第六开关、第七开关和第八开关都断开,所述校准电容器上的部分电荷转移到所述积分电容器。In the charge transfer phase, the fifth switch is closed, and the first switch, the second switch, the third switch, the fourth switch, the sixth switch, the seventh switch, and the eighth switch are closed. The switches are all turned off, and part of the charge on the calibration capacitor is transferred to the integrating capacitor.
在一些可能的实现方式中,在所述第二充放电阶段和所述电荷转移阶段之间还包括第一缓冲阶段,在所述电荷转移阶段之后还包括第二缓冲阶段,所述第一缓冲阶段和所述第二缓冲阶段用于保持所述检测电容器、所述校准电容器和所述积分电容上的电荷不变;In some possible implementations, a first buffer stage is further included between the second charge and discharge stage and the charge transfer stage, and a second buffer stage is further included after the charge transfer stage. The first buffer The stage and the second buffer stage are used to keep the charge on the detection capacitor, the calibration capacitor and the integration capacitor unchanged;
其中,在所述第一缓冲阶段和所述第二缓冲阶段,所述第一开关、所述第二开关、所述第三开关、所述第四开关、所述第五开关、所述第六开关、所述第七开关和所述第八开关都断开。Wherein, in the first buffer stage and the second buffer stage, the first switch, the second switch, the third switch, the fourth switch, the fifth switch, and the first switch The sixth switch, the seventh switch, and the eighth switch are all turned off.
在一些可能的实现方式中,所述控制模块还用于:In some possible implementation manners, the control module is also used to:
控制所述充放电开关组、所述积分开关组和所述清零开关组多次重复执行从所述完全放电阶段至所述第二缓冲阶段中的操作。The charge and discharge switch group, the integral switch group, and the clear switch group are controlled to repeatedly perform operations from the full discharge stage to the second buffer stage for multiple times.
在一些可能的实现方式中,所述积分器的输出电压V out为: In some possible implementation manners, the output voltage V out of the integrator is:
Figure PCTCN2020078259-appb-000001
Figure PCTCN2020078259-appb-000001
其中,所述V R为所述参考电压,所述ΔC x为所述检测电容器相对于所述检测电容器的基础电容的变化量,所述C S为所述积分电容器的电容值,所述I 1为所述第一电流源的电流值,所述I 2为所述第二电流源的电流值,所述N为所述充放电阶段至所述第二缓冲阶段的执行次数。 Wherein the said reference voltage V R, the change amount ΔC x with respect to the base capacitance of the detecting capacitor detecting capacitor C S is the capacitance value of the integrating capacitor, the I 1 is the current value of the first current source, the I 2 is the current value of the second current source, and the N is the number of executions from the charge-discharge stage to the second buffer stage.
在一些可能的实现方式中,所述充放电开关组包括第一开关、第二开关、第三开关和第四开关、第七开关和第八开关,所述积分开关组包括第五开关,所述清零开关组包括第六开关;In some possible implementations, the charging and discharging switch group includes a first switch, a second switch, a third switch, a fourth switch, a seventh switch, and an eighth switch, and the integrating switch group includes a fifth switch, so The reset switch group includes a sixth switch;
所述第一开关的一端连接所述第一电流源的一端,所述第一电流源的另一端接地,所述第一开关的另一端连接所述检测电容器的一端、所述第三开关的一端以及所述第一电容器的一端,所述检测电容器的另一端接地,所述第三开关的另一端连接电源电压;One end of the first switch is connected to one end of the first current source, the other end of the first current source is grounded, and the other end of the first switch is connected to one end of the detection capacitor and the third switch. One end and one end of the first capacitor, the other end of the detection capacitor is grounded, and the other end of the third switch is connected to a power supply voltage;
所述第二开关的一端连接所述第二电流源的一端,所述第二电流源的另一端接地,所述第二开关的另一端连接所述校准电容器的一端以及所述第四开关的一端,所述校准电容器的另一端接地,所述第四开关的另一端连接电 源电压;One end of the second switch is connected to one end of the second current source, the other end of the second current source is grounded, and the other end of the second switch is connected to one end of the calibration capacitor and the fourth switch. One end, the other end of the calibration capacitor is grounded, and the other end of the fourth switch is connected to the power supply voltage;
所述第五开关的一端连接所述校准电容器的一端,所述第五开关的另一端连接所述放大器的第一输入端,所述放大器的第二输入端用于输入所述参考电压;所述第六开关与所述积分电容器并联连接,所述积分电容器与所述放大器并联连接;One end of the fifth switch is connected to one end of the calibration capacitor, the other end of the fifth switch is connected to the first input terminal of the amplifier, and the second input terminal of the amplifier is used to input the reference voltage; The sixth switch is connected in parallel with the integrating capacitor, and the integrating capacitor is connected in parallel with the amplifier;
所述第七开关的一端接电源电压,所述第七开关的另一端连接所述屏蔽电容器的一端以及所述第八开关的一端;One end of the seventh switch is connected to the power supply voltage, and the other end of the seventh switch is connected to one end of the shielding capacitor and one end of the eighth switch;
所述第八开关的另一端接所述电压缓冲器的输出端,所述电容缓冲器的输出电压为所述参考电压。The other end of the eighth switch is connected to the output end of the voltage buffer, and the output voltage of the capacitor buffer is the reference voltage.
在一些可能的实现方式中,在所述电荷清零阶段和所述第一充放电阶段之间还包括完全充电阶段,在所述完全充电阶段,所述检测电容器、所述校准电容器、所述屏蔽电容器和所述第一电容器的一端被充电至电源电压。In some possible implementation manners, a full charge phase is further included between the charge zero phase and the first charge and discharge phase. In the full charge phase, the detection capacitor, the calibration capacitor, and the The shield capacitor and one end of the first capacitor are charged to the power supply voltage.
在一些可能的实现方式中,在所述电荷清零阶段,所述第六开关闭合,所述第一开关、所述第二开关、所述第三开关、所述第四开关、所述第五开关、第七开关和第八开关都断开,清零所述积分电容器上存储的电荷;In some possible implementation manners, during the charge clearing phase, the sixth switch is closed, and the first switch, the second switch, the third switch, the fourth switch, and the first switch are closed. The fifth switch, the seventh switch and the eighth switch are all turned off, and the charge stored on the integrating capacitor is cleared;
在所述完全充电阶段,所述第三开关、第四开关和第七开关闭合,所述第一开关、所述第二开关、所述第五开关、所述第六开关和第八开关都断开,所述检测电容器、所述校准电容器、所述屏蔽电容器和所述第一电容器上的电压都被充电至所述电源电压;In the full charging phase, the third switch, the fourth switch, and the seventh switch are closed, and the first switch, the second switch, the fifth switch, the sixth switch, and the eighth switch are all closed. When disconnected, the voltages on the detection capacitor, the calibration capacitor, the shielding capacitor, and the first capacitor are all charged to the power supply voltage;
在所述第一充放电阶段,所述第八开关闭合,所述第一开关、所述第二开关、所述第三开关、所述第四开关、所述第五开关、第六开关和所述第七开关都断开,所述电容缓冲器对所述检测电容器、所述屏蔽电容器和所述第一电容器进行放电;In the first charging and discharging stage, the eighth switch is closed, the first switch, the second switch, the third switch, the fourth switch, the fifth switch, the sixth switch, and the The seventh switches are all turned off, and the capacitance buffer discharges the detection capacitor, the shielding capacitor, and the first capacitor;
在所述第二充放电阶段,所述第一开关、所述第二开关和所述第八开关闭合,所述第三开关、所述第四开关、所述第五开关、第六开关和第七开关都断开,所述检测电容器上的电压从所述电源电压被放电至所述参考电压,在所述检测电容器上的电压被放电至所述参考电压之后,所述第一开关和所述第二开关断开;In the second charging and discharging stage, the first switch, the second switch, and the eighth switch are closed, and the third switch, the fourth switch, the fifth switch, and the sixth switch are closed. The seventh switch is all turned off, the voltage on the detection capacitor is discharged from the power supply voltage to the reference voltage, and after the voltage on the detection capacitor is discharged to the reference voltage, the first switch and The second switch is off;
在所述电荷转移阶段,所述第五开关闭合,所述第一开关、所述第二开关、所述第三开关、所述第四开关、所述第六开关、第七开关和第八开关都断开,所述校准电容器上的部分电荷转移到所述积分电容器。In the charge transfer phase, the fifth switch is closed, and the first switch, the second switch, the third switch, the fourth switch, the sixth switch, the seventh switch, and the eighth switch are closed. The switches are all turned off, and part of the charge on the calibration capacitor is transferred to the integrating capacitor.
在一些可能的实现方式中,在所述第二放电阶段和所述电荷转移阶段之间还包括第一缓冲阶段,在所述电荷转移阶段之后还包括第二缓冲阶段,所述第一缓冲阶段和所述第二缓冲阶段用于保持所述检测电容器、所述校准电容器,所述第一电容器和所述第二电容器和所述积分电容上的电荷不变;In some possible implementation manners, a first buffer stage is further included between the second discharge stage and the charge transfer stage, and a second buffer stage is further included after the charge transfer stage. The first buffer stage And the second buffer stage is used to keep the charge on the detection capacitor, the calibration capacitor, the first capacitor, the second capacitor, and the integration capacitor unchanged;
其中,在所述第一缓冲阶段和所述第二缓冲阶段,所述第一开关、所述第二开关、所述第三开关、所述第四开关、所述第五开关,所述第六开关,第七开关和第八开关都断开。Wherein, in the first buffer stage and the second buffer stage, the first switch, the second switch, the third switch, the fourth switch, the fifth switch, and the first switch The sixth switch, the seventh switch and the eighth switch are all off.
在一些可能的实现方式中,所述控制模块还用于:In some possible implementation manners, the control module is also used to:
控制所述充放电开关组、所述积分开关组和所述清零开关组多次重复执行从所述充放电阶段至所述第二缓冲阶段中的操作。The charge and discharge switch group, the integral switch group, and the clear switch group are controlled to repeatedly perform operations from the charge and discharge stage to the second buffer stage for multiple times.
在一些可能的实现方式中,所述积分器的输出电压V out为: In some possible implementation manners, the output voltage V out of the integrator is:
Figure PCTCN2020078259-appb-000002
Figure PCTCN2020078259-appb-000002
其中,V R为所述参考电压,所述ΔC x为所述检测电容器相对于参考电容值的变化量,所述C S为所述积分电容器的电容值,所述I 1为所述第一电流源的电流值,所述I 2为所述第二电流源的电流值,所述V DD为所述电源电压,所述N为所述充放电阶段至所述第二缓冲阶段的执行次数。 Wherein, V R is the reference voltage, the detecting capacitor ΔC x is the amount of change to the reference capacitance, the C S is the capacitance value of the integration capacitor, said I 1 is the first The current value of the current source, the I 2 is the current value of the second current source, the V DD is the power supply voltage, and the N is the number of executions from the charge-discharge stage to the second buffer stage .
在一些可能的实现方式中,所述电容检测电路还包括比较器,所述比较器的第一输入端连接所述检测电容器,所述比较器的第二输入端用于输入所述参考电压,所述比较器的输出端连接所述控制模块;In some possible implementation manners, the capacitance detection circuit further includes a comparator, a first input terminal of the comparator is connected to the detection capacitor, and a second input terminal of the comparator is used to input the reference voltage, The output terminal of the comparator is connected to the control module;
在所述检测电容器的电压达到所述参考电压时,所述比较器的输出信号发生翻转,所述控制模块控制所述充放电模块停止对所述检测电容器和所述校准电容器进行充电或放电。When the voltage of the detection capacitor reaches the reference voltage, the output signal of the comparator is inverted, and the control module controls the charging and discharging module to stop charging or discharging the detection capacitor and the calibration capacitor.
在一些可能的实现方式中,所述电容检测电路还包括处理模块,用于根据所述积分器的输出电压确定所述检测电容器的电容值相对于所述检测电容器的基础电容的变化量。In some possible implementation manners, the capacitance detection circuit further includes a processing module configured to determine the amount of change of the capacitance value of the detection capacitor relative to the basic capacitance of the detection capacitor according to the output voltage of the integrator.
在一些可能的实现方式中,所述校准电容器用于在所述检测电容器的电容值为参考电容值时使得所述积分器的输出电压为参考电压,其中,所述参考电容值和所述校准电容器的电容值的比值等于所述第一电流源的电流值和所述第二电流源的电流值的比值。In some possible implementations, the calibration capacitor is used to make the output voltage of the integrator a reference voltage when the capacitance value of the detection capacitor is a reference capacitance value, where the reference capacitance value and the calibration The ratio of the capacitance value of the capacitor is equal to the ratio of the current value of the first current source to the current value of the second current source.
在一些可能的实现方式中,所述第一电流源的电流值大于所述第二电流 源的电流值。In some possible implementations, the current value of the first current source is greater than the current value of the second current source.
在一些可能的实现方式中,所述电容检测电路应用于电容传感器中,所述检测电容器为所述电容传感器的传感器电容,未操作所述电容传感器时所述传感器电容的电容值为参考电容值。In some possible implementations, the capacitance detection circuit is applied to a capacitance sensor, the detection capacitor is the sensor capacitance of the capacitance sensor, and the capacitance value of the sensor capacitance is the reference capacitance value when the capacitance sensor is not operated. .
第二方面,提供了一种触控装置,包括第一方面和第一方面的任一种可能的实现方式中的电容检测电路。In a second aspect, a touch device is provided, including the first aspect and the capacitance detection circuit in any one of the possible implementation manners of the first aspect.
第三方面,提供了一种终端设备,包括第一方面和第一方面的任一种可能的实现方式中的电容检测电路。In a third aspect, a terminal device is provided, including the first aspect and the capacitance detection circuit in any one of the possible implementation manners of the first aspect.
因此,在本申请实施例中,通过对屏蔽电极和检测电极进行分时驱动,可以使得积分器的输出电压与屏蔽电极和检测电极形成的第一电容器无关,这样,即使有水滴存在导致第一电容器的容值发生变化,也不会影响到积分器的输出,即可以实现良好的防水功能,并且不会存在同时驱动带来的延迟问题。并且由于对屏蔽电极充电和检测电极充电是分时进行的,因此可以大大降低对屏蔽电极的驱动能力的要求,降低设计难度和功耗。Therefore, in the embodiment of the present application, the shield electrode and the detection electrode are driven in a time-sharing manner, so that the output voltage of the integrator is independent of the first capacitor formed by the shield electrode and the detection electrode. Changes in the capacitance of the capacitor will not affect the output of the integrator, that is, a good waterproof function can be achieved, and there will be no delay problems caused by simultaneous driving. In addition, since the charging of the shielding electrode and the charging of the detection electrode are performed in a time-sharing manner, the requirement on the driving capability of the shielding electrode can be greatly reduced, and the design difficulty and power consumption can be reduced.
附图说明Description of the drawings
图1是感应电极和屏蔽电极的波形示意图。Figure 1 is a schematic diagram of the waveforms of the sensing electrode and the shielding electrode.
图2是根据本申请实施例的电容检测电路的示意性结构图。Fig. 2 is a schematic structural diagram of a capacitance detection circuit according to an embodiment of the present application.
图3是根据本申请一实施例的电容检测电路的示意图。Fig. 3 is a schematic diagram of a capacitance detection circuit according to an embodiment of the present application.
图4是根据本申请一实施例的电容检测电路的逻辑时序图。Fig. 4 is a logic timing diagram of a capacitance detection circuit according to an embodiment of the present application.
图5是根据本申请另一实施例的电容检测电路的示意图。Fig. 5 is a schematic diagram of a capacitance detection circuit according to another embodiment of the present application.
图6是根据本申请另一实施例的电容检测电路的逻辑时序图。Fig. 6 is a logic timing diagram of a capacitance detection circuit according to another embodiment of the present application.
图7是根据本申请实施例的触控装置的结构示意图。FIG. 7 is a schematic structural diagram of a touch device according to an embodiment of the present application.
图8是根据本申请实施例的终端设备的结构示意图。Fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例进行描述。The embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
在电容检测的相关技术中,一种防水的实现方式是在电容传感器的感应电极周围设置屏蔽电极,屏蔽水滴到系统地的电容,并且使感应电极和屏蔽电极的电平在电容检测的过程中保持一致,这样,在感应电极和屏蔽电极形成的电容就不吸收或释放电荷,相对于看不见该电容了。In the related technology of capacitance detection, a waterproof realization method is to set a shielding electrode around the sensing electrode of the capacitance sensor to shield the capacitance of the water drop to the system ground, and make the level of the sensing electrode and the shielding electrode in the process of capacitance detection. Keep the same, so that the capacitance formed between the sensing electrode and the shielding electrode will not absorb or release charge, and the capacitance will be invisible.
并且为了更有效地检测由于用户操作导致的传感器电容的电荷变化量,可以在电容检测电路中增加校准电容器,通常设置校准电容器的电容值与未操作电容传感器时传感器电容的电容值(或称基础电容)近似相等。And in order to more effectively detect the charge change of the sensor capacitance caused by the user's operation, a calibration capacitor can be added to the capacitance detection circuit. Usually set the capacitance value of the calibration capacitor and the capacitance value of the sensor capacitance when the capacitance sensor is not operated (or the basic Capacitance) is approximately equal.
但是在电容检测的过程中,会对检测电容器Cx和校准电容器进行充放电以使校准电容器抵消检测电容器Cx的基础电容的贡献,并且充放电的速度比较快,若要保证在电容检测的过程中感应电极和屏蔽电极的电压始终一一致,需要屏蔽电极的驱动电路具有比较快的反应速度和较强的驱动能力,因此需要付出较大的功耗的代价。并且在实际应用中,由于屏蔽电路的驱动电路存在延迟,会导致在充放电结束时,屏蔽电极的电压和感应电极的电压存在电压差,如图1所示,从而削弱屏蔽电极的防水功能。However, in the process of capacitance detection, the detection capacitor Cx and the calibration capacitor are charged and discharged so that the calibration capacitor offsets the contribution of the basic capacitance of the detection capacitor Cx, and the charging and discharging speed is relatively fast. If you want to ensure that the capacitance detection process The voltages of the sensing electrode and the shielding electrode are always the same, and the driving circuit of the shielding electrode is required to have a relatively fast response speed and a strong driving capability, and therefore, a higher power consumption is required. Moreover, in practical applications, due to the delay in the driving circuit of the shielding circuit, there will be a voltage difference between the shielding electrode voltage and the sensing electrode voltage at the end of charging and discharging, as shown in Figure 1, thereby weakening the waterproofing function of the shielding electrode.
有鉴于此,本申请实施例提供了一种电容检测电路,能够实现良好的防水性能,并且能够降低对屏蔽电极的驱动电路在反应速度和/或驱动能力方面的要求,从而能够降低设计难度和系统功能。In view of this, the embodiments of the present application provide a capacitance detection circuit, which can achieve good waterproof performance, and can reduce the requirements on the response speed and/or driving capability of the driving circuit of the shield electrode, thereby reducing the design difficulty and System functions.
图2是根据本申请实施例的电容检测电路100的示意性结构图,如图2所示,所述电容检测电路100连接至检测电容器110,所述电容检测电路100包括:校准电容器120;2 is a schematic structural diagram of a capacitance detection circuit 100 according to an embodiment of the present application. As shown in FIG. 2, the capacitance detection circuit 100 is connected to a detection capacitor 110, and the capacitance detection circuit 100 includes a calibration capacitor 120;
屏蔽电极170,所述屏蔽电极170和所述检测电容器110的检测电极形成第一电容器,所述屏蔽电极170和系统地形成屏蔽电容器;A shield electrode 170, the shield electrode 170 and the detection electrode of the detection capacitor 110 form a first capacitor, and the shield electrode 170 and the system ground form a shield capacitor;
充放电模块140,包括第一电流源141和第二电流源142,所述第一电流源141用于对所述检测电容器、所述第一电容器和所述屏蔽电容器进行充电或放电,所述第二电流源142用于对所述校准电容器进行充电或放电;The charging and discharging module 140 includes a first current source 141 and a second current source 142. The first current source 141 is used to charge or discharge the detection capacitor, the first capacitor, and the shielding capacitor. The second current source 142 is used to charge or discharge the calibration capacitor;
屏蔽电极驱动模块180,用于对所述屏蔽电容器和所述第一电容器进行充电或放电;The shielding electrode driving module 180 is used to charge or discharge the shielding capacitor and the first capacitor;
所述积分器150,用于将检测电容器110的电容效应,比如电容器上的电荷量或电荷变化量转化为电压信号;The integrator 150 is used to detect the capacitance effect of the capacitor 110, such as the amount of charge or the amount of charge change on the capacitor, into a voltage signal;
所述控制模块130,用于控制所述充放电模块140、所述积分器150和所述屏蔽电极驱动模块180的工作状态;The control module 130 is used to control the working state of the charge and discharge module 140, the integrator 150, and the shield electrode driving module 180;
其中,在第一充放电阶段,所述屏蔽电极驱动模块180对所述屏蔽电容器和所述第一电容器进行充电或放电以使所述屏蔽电容器上的电压为参考电压;Wherein, in the first charging and discharging stage, the shielding electrode driving module 180 charges or discharges the shielding capacitor and the first capacitor so that the voltage on the shielding capacitor is a reference voltage;
在所述第一充放电阶段之后的第二充放电阶段,所述第一电流源141对 所述检测电容器、所述第一电容器和所述屏蔽电容器进行充电或放电,所述第二电流源142用于对所述校准电容器进行充电或放电,其中,在所述第二充放电阶段,所述检测电容器上的电压被充电至所述参考电压或被放电至所述参考电压。In the second charging and discharging phase after the first charging and discharging phase, the first current source 141 charges or discharges the detection capacitor, the first capacitor, and the shielding capacitor, and the second current source 142 is used for charging or discharging the calibration capacitor, wherein, in the second charging and discharging stage, the voltage on the detection capacitor is charged to the reference voltage or discharged to the reference voltage.
应理解,在本申请实施例中,所述第一电容器和所述屏蔽电容器为等效电容器,也就是说,屏蔽电极和检测电极可以作为电容器的两个极板从而形成所述第一电容器,但并不表示在电路中使用屏蔽电极和检测电极是为了形成所述第一电容器,可以理解,屏蔽电极是用于屏蔽水滴等干扰物对电容检测的影响的,检测电极用于接收用户手指的触摸,进一步通过后续的检测电路检测用户手指的触摸导致的电容值变化。对于所述屏蔽电容器亦是如此,这里不作赘述。It should be understood that, in the embodiment of the present application, the first capacitor and the shielding capacitor are equivalent capacitors, that is, the shielding electrode and the detecting electrode can be used as two plates of the capacitor to form the first capacitor, But it does not mean that the shielding electrode and the detection electrode are used in the circuit to form the first capacitor. It is understandable that the shielding electrode is used to shield the influence of water droplets and other interference objects on the capacitance detection, and the detection electrode is used to receive the user's finger. Touch, and further detect the change in capacitance value caused by the touch of the user's finger through the subsequent detection circuit. The same is true for the shielding capacitor, which will not be repeated here.
可选地,在一些实施例中,所述检测电容器为触控面板(touch panel)上驱动电极和感应电极(即检测电极)所构成的检测电容(measurement capacitor),其中,该驱动电极接地,或者所述检测电容器可以为感应电极和地所构成的检测电容。Optionally, in some embodiments, the detection capacitor is a measurement capacitor formed by a driving electrode and a sensing electrode (ie, a detection electrode) on a touch panel, wherein the driving electrode is grounded, Or the detection capacitor may be a detection capacitor formed by the sensing electrode and the ground.
可选地,在本申请实施例中,所述校准电容器120用于在所述检测电容器110的电容值为参考电容值时使得所述积分器150的输出电压为参考电压,其中,所述参考电容值和所述校准电容器的电容值的比值等于所述第一电流源141的电流值和所述第二电流源142的电流值的比值。Optionally, in the embodiment of the present application, the calibration capacitor 120 is used to make the output voltage of the integrator 150 a reference voltage when the capacitance value of the detection capacitor 110 is a reference capacitance value, where the reference The ratio of the capacitance value to the capacitance value of the calibration capacitor is equal to the ratio of the current value of the first current source 141 to the current value of the second current source 142.
需要说明的是,为了便于描述,本申请实施例引入了检测电容器的电容值的概念,通过检测电容器的电容值的变化判断是否有触摸,应注意,无论用户是否触摸该检测电容器,该检测电容器的电容值都可以认为是一个常量,本申请所述的检测电容器的电容值的变化是指接入到后序的积分器的等效电容发生变化,具体地,当用户手指触摸检测电容器的极板时,手指和地构成一个电容,此时接入积分器的电容是该电容和检测电容器的等效电容,也就是说,本申请实施例将检测电容器的基础电容和用户触摸该检测电容器引入的新电容的等效电容看作该检测电容器的电容值,换言之,可以认为本申请的检测电容器是指连接到积分器的检测电容器本身和用户触摸该检测电容器时产生的新电容叠加所产生的一个等效电容器。It should be noted that, for ease of description, the embodiment of the present application introduces the concept of detecting the capacitance value of the capacitor, and judging whether there is a touch by detecting the change in the capacitance value of the capacitor. It should be noted that whether the user touches the detection capacitor, the detection capacitor The capacitance value of the detection capacitor can be regarded as a constant. The change in the capacitance value of the detection capacitor described in this application refers to the change in the equivalent capacitance of the integrator connected to the subsequent sequence. Specifically, when the user's finger touches the electrode of the detection capacitor When the board is installed, the finger and the ground form a capacitor. At this time, the capacitance connected to the integrator is the equivalent capacitance of the capacitance and the detection capacitor. That is to say, the embodiment of the present application introduces the basic capacitance of the detection capacitor and the user touches the detection capacitor into The equivalent capacitance of the new capacitance is regarded as the capacitance value of the detection capacitor. In other words, the detection capacitor in this application can be considered as the result of the superposition of the detection capacitor itself connected to the integrator and the new capacitance generated when the user touches the detection capacitor. An equivalent capacitor.
应理解,本申请实施例的电容检测电路可以应用于各种需要进行电容检测的电路或系统中,特别地,该电容检测电路可以应用于电容传感器中,此 情况下,该检测电容器可以为电容传感器的传感器电容,在用户未操作该电容传感器时,检测电容器的电容值是参考电容值,该参考电容值也可以称为基础电容,或自电容,标称电容值等,当用户操作该电容传感器时,相当于在用户手指和地形成了新的电容,该检测电容器的电容值相对于基础电容会发生变化,该积分器可以将检测电容器的电容信号(或者说,电容效应)转换为电压信号,进一步地,可以根据电压信号确定检测电容器的电容值。It should be understood that the capacitance detection circuit of the embodiment of the present application can be applied to various circuits or systems that require capacitance detection. In particular, the capacitance detection circuit can be applied to a capacitance sensor. In this case, the detection capacitor may be a capacitance. The sensor capacitance of the sensor. When the user does not operate the capacitance sensor, the capacitance value of the detected capacitor is the reference capacitance value. The reference capacitance value can also be called the basic capacitance, or self-capacitance, nominal capacitance value, etc. When the user operates the capacitance When a sensor is used, it is equivalent to forming a new capacitance between the user's finger and the ground. The capacitance value of the detection capacitor will change relative to the basic capacitance. The integrator can convert the capacitance signal (or capacitance effect) of the detection capacitor into a voltage The signal, further, the capacitance value of the detection capacitor can be determined according to the voltage signal.
本申请实施例的电容检测电路可以包括第一电流源和第二电流源,所述第一电流源和所述第二电流源分别用于对所述检测电容器和所述校准电容器进行充电或放电。其中,所述校准电容器用于在所述检测电容器的电容值为参考电容值时使得所述积分器的输出电压为参考电压,或者说,所述校准电容器用于抵消所述检测电容器为参考电容值时对所述积分器的输出电压的贡献量。因此,在本申请实施例中,可以通过调整所述第一电流源的电流值和所述第二电流源的电流值的比例关系达到调整所述校准电容器的电容值的目的,例如,可以通过设置所述第一电流源的电流值大于所述第二电流源的电流值,从而能够使得所述校准电容器的电容值小于所述检测电容器的参考电容值,相对于现有技术中采用与检测电容器的参考电容值相等或近似相等的校准电容器,有利于减小电容检测电路的面积,降低芯片的成本。The capacitance detection circuit of the embodiment of the present application may include a first current source and a second current source, and the first current source and the second current source are respectively used to charge or discharge the detection capacitor and the calibration capacitor . Wherein, the calibration capacitor is used to make the output voltage of the integrator a reference voltage when the capacitance value of the detection capacitor is a reference capacitance value, or in other words, the calibration capacitor is used to offset the detection capacitor as a reference capacitance The amount of contribution to the output voltage of the integrator. Therefore, in the embodiment of the present application, the purpose of adjusting the capacitance value of the calibration capacitor can be achieved by adjusting the proportional relationship between the current value of the first current source and the current value of the second current source, for example, Setting the current value of the first current source to be greater than the current value of the second current source can make the capacitance value of the calibration capacitor smaller than the reference capacitance value of the detection capacitor. The calibration capacitor with the reference capacitance value of the capacitor equal or approximately equal helps to reduce the area of the capacitance detection circuit and reduce the cost of the chip.
可选地,在本申请实施例中,所述校准电容器可以为电容值可变的电容器或电容阵列,或者也可以为电容值固定的电容器或电容阵列,本申请实施例对此不作限定。所述第一电流源和所述第二电流源可以为具有比例关系的电流源,例如,可以通过镜像电流源的方式得到所述第一电流源和所述第二电流源,所述第一电流源的电流值和所述第二电流源的电流值的比例关系可以为固定的,也可以是可调的,本申请实施例对此不作限定。Optionally, in the embodiment of the present application, the calibration capacitor may be a capacitor or a capacitor array with a variable capacitance value, or may also be a capacitor or a capacitor array with a fixed capacitance value, which is not limited in the embodiment of the present application. The first current source and the second current source may be current sources having a proportional relationship. For example, the first current source and the second current source may be obtained by mirroring the current source, and the first current source The proportional relationship between the current value of the current source and the current value of the second current source may be fixed or adjustable, which is not limited in the embodiment of the present application.
可选地,在本申请实施例中,所述电容检测电路100所述电容检测电路还包括充放电开关组、清零开关组和积分开关组,所述积分器包括积分电容器和放大器,所述屏蔽电极驱动模块包括电压缓冲器;Optionally, in the embodiment of the present application, the capacitance detection circuit 100 further includes a charge and discharge switch group, a clear switch group, and an integration switch group. The integrator includes an integration capacitor and an amplifier. The shield electrode driving module includes a voltage buffer;
所述控制模块130可以通过所述充放电开关组、所述清零开关组和所述积分开关组控制所述充放电模块、所述屏蔽电极驱动模块和积分器的工作状态,例如,控制所述屏蔽电极驱动模块何时对检测电容器和屏蔽电容器进行充电或放电,控制所述充放电模块何时对检测电容器和校准电容器进行充电,以及何时对所述检测电容器和所述校准电容器进行放电,以及控制所述 积分器何时进行积分等。The control module 130 can control the working status of the charging and discharging module, the shield electrode driving module and the integrator through the charging and discharging switch group, the clearing switch group, and the integrating switch group, for example, controlling all When the shield electrode drive module charges or discharges the detection capacitor and the shield capacitor, controls when the charge and discharge module charges the detection capacitor and the calibration capacitor, and when to discharge the detection capacitor and the calibration capacitor , And control when the integrator performs integration, etc.
在本申请一个具体实施例中,所述控制模块用于:In a specific embodiment of the present application, the control module is used to:
在电荷清零阶段,通过所述清零开关组清零所述积分电容器上存储的电荷;In the charge clearing stage, the charge stored on the integrating capacitor is cleared by the clearing switch group;
在所述第一充放电阶段,通过所述充放电开关组控制所述电压缓冲器对所述检测电容器、所述第一电容器和所述屏蔽电容器进行充电或放电;In the first charging and discharging stage, controlling the voltage buffer to charge or discharge the detection capacitor, the first capacitor and the shielding capacitor through the charging and discharging switch group;
在所述第二充放电阶段,通过所述充放电开关组控制所述第一电流源和所述第二电流源分别对所述检测电容器和所述校准电容器进行充电或放电,其中,所述校准电容器的充电时长与所述检测电容器的充电时长相等,或所述校准电容器的放电时长与所述检测电容器的放电时长相等;In the second charging and discharging stage, the first current source and the second current source are controlled by the charging and discharging switch group to charge or discharge the detection capacitor and the calibration capacitor, respectively, wherein the The charging duration of the calibration capacitor is equal to the charging duration of the detection capacitor, or the discharge duration of the calibration capacitor is the same as the discharge duration of the detection capacitor;
在电荷转移阶段,通过所述积分开关组控制所述校准电容器上存储的部分电荷转移到所述积分电容器上。In the charge transfer phase, part of the charge stored on the calibration capacitor is controlled by the integration switch group to be transferred to the integration capacitor.
因此,在本申请实施例中,通过对屏蔽电极和感应电极分时充放电能够实现良好的防水功能,能够可以大大降低屏蔽电极的驱动能力要求,进而降低设计难度和系统功耗。Therefore, in the embodiments of the present application, a good waterproof function can be achieved by time-sharing charging and discharging of the shielding electrode and the sensing electrode, which can greatly reduce the driving capability requirements of the shielding electrode, thereby reducing design difficulty and system power consumption.
可选地,在本申请实施例中,在所述第二充放电阶段和所述电荷转移阶段之间还可以包括第一缓冲阶段,在所述电荷转移阶段之后还可以包括第二缓冲阶段,所述第一缓冲阶段和所述第二缓冲阶段用于避免开关的频繁切换带来的电荷泄露问题,其中,在所述第一缓冲阶段和所述第二缓冲阶段,所述检测电容器、所述屏蔽电容器、所述第一电容器、所述校准电容器和所述积分电容器上的电荷不变。Optionally, in the embodiment of the present application, a first buffer stage may be further included between the second charge-discharge stage and the charge transfer stage, and a second buffer stage may be further included after the charge transfer stage, The first buffering stage and the second buffering stage are used to avoid the problem of charge leakage caused by frequent switching of switches, wherein, in the first buffering stage and the second buffering stage, the detection capacitor, the The charges on the shielding capacitor, the first capacitor, the calibration capacitor, and the integrating capacitor remain unchanged.
可选地,在一些实施例中,所述屏蔽电极驱动电路可以包括电压缓冲器,能够输出稳定的电压,或者,在其他实施例中,所述电压缓冲器也可以采用其他等效电路实现,只有其能够输出稳定的电压即可。Optionally, in some embodiments, the shield electrode driving circuit may include a voltage buffer capable of outputting a stable voltage, or, in other embodiments, the voltage buffer may also be implemented by other equivalent circuits, Only it can output a stable voltage.
可选地,在一些实施例中,所述电容检测电路100还可以包括比较器,所述比较器的第一输入端连接所述检测电容器,所述比较器的第二输入端用于输入所述参考电压,所述比较器的输出端连接所述控制模块;Optionally, in some embodiments, the capacitance detection circuit 100 may further include a comparator, the first input terminal of the comparator is connected to the detection capacitor, and the second input terminal of the comparator is used to input the The reference voltage, the output terminal of the comparator is connected to the control module;
具体地,在所述检测电容器的电压达到所述参考电压时,所述比较器的输出信号发生翻转(例如,从低电平翻转为高电平,或从高电平翻转为低电平),所述控制模块在比较器的输出信号发生翻转时,控制所述充放电模块停止对所述检测电容器和所述校准电容器进行充电或放电。Specifically, when the voltage of the detection capacitor reaches the reference voltage, the output signal of the comparator is inverted (for example, from a low level to a high level, or from a high level to a low level) When the output signal of the comparator is inverted, the control module controls the charging and discharging module to stop charging or discharging the detection capacitor and the calibration capacitor.
也就是说,在所述检测电容器上的电压达到所述参考电压(例如,所述检测电容器的电压被充电至所述参考电压,或者所述检测电容器的电压被放电至所述参考电压)时,所述比较器的输出信号发生翻转,该输出信号可以用作所述控制模块的输入信号,所述控制模块可以在所述比较器的输出信号发生翻转时控制所述充放电模块停止对所述检测电容器和所述校准电容器进行充电或放电,即控制所述第一电流源停止对所述检测电容器进行充电或放电,以及控制所述第二电流源停止对所述校准电容器进行充电或放电。具体地,所述控制模块可以通过所述充放电开关集控制所述充放电模块停止对所述检测电容器和所述校准电容器进行充电或放电。That is, when the voltage on the detection capacitor reaches the reference voltage (for example, the voltage of the detection capacitor is charged to the reference voltage, or the voltage of the detection capacitor is discharged to the reference voltage) , The output signal of the comparator is inverted, and the output signal can be used as the input signal of the control module, and the control module can control the charging and discharging module to stop the charging and discharging module when the output signal of the comparator is inverted. The detection capacitor and the calibration capacitor are charged or discharged, that is, the first current source is controlled to stop charging or discharging the detection capacitor, and the second current source is controlled to stop charging or discharging the calibration capacitor . Specifically, the control module may control the charging and discharging module to stop charging or discharging the detection capacitor and the calibration capacitor through the charging and discharging switch set.
应理解,本申请实施例中,也可以采用比较器的等效电路实现上述功能,只要在所述检测电容器的电压达到所述参考电压时,控制所述充放电模块停止所述检测电容器和所述校准电容器进行充电或放电即可,本申请实施例对此不作具体限定。It should be understood that, in the embodiments of the present application, the equivalent circuit of a comparator can also be used to achieve the above functions, as long as the charge and discharge module is controlled to stop the detection capacitor and the detection capacitor when the voltage of the detection capacitor reaches the reference voltage. The calibration capacitor can be charged or discharged, which is not specifically limited in the embodiment of the present application.
可选地,在一些实施例中,所述电容检测电路100还包括处理模块,用于根据所述积分器的输出电压确定所述检测电容器的电容值相对于所述参考电容值的变化量。Optionally, in some embodiments, the capacitance detection circuit 100 further includes a processing module configured to determine the amount of change of the capacitance value of the detection capacitor relative to the reference capacitance value according to the output voltage of the integrator.
例如,所述处理模块可以为ADC,或者也可以为其他具有处理功能的电路或模块,本申请实施例对此不作限定。所述处理模块可以根据积分器的输出电压确定检测电容器的电容值。具体地,所述处理模块可以将积分器的输出的电压信号转换为数字信号,根据该数字信号确定检测电容器的电容值,例如,若该电容检测电路应用在电容传感器中,所述处理模块可以在用户未操作电容传感器时,确定一个数字信号,在用户操作电容传感器时,确定另一个数字信号,然后可以根据两个数字信号的差值确定传感器电容的电容值的变化量。For example, the processing module may be an ADC, or may also be other circuits or modules with processing functions, which is not limited in the embodiment of the present application. The processing module may determine the capacitance value of the detection capacitor according to the output voltage of the integrator. Specifically, the processing module may convert the voltage signal output by the integrator into a digital signal, and determine the capacitance value of the detection capacitor according to the digital signal. For example, if the capacitance detection circuit is applied to a capacitance sensor, the processing module may When the user does not operate the capacitance sensor, a digital signal is determined, and when the user operates the capacitance sensor, another digital signal is determined, and then the change in the capacitance value of the sensor capacitance can be determined according to the difference between the two digital signals.
以下,结合图3至图6的具体示例,详细介绍本申请实施例的电容检测电路的实现方式。Hereinafter, the implementation of the capacitance detection circuit of the embodiment of the present application will be described in detail with reference to the specific examples in FIG. 3 to FIG. 6.
应理解,图3至图6所示的例子是为了帮助本领域技术人员更好地理解本申请实施例,而非要限制本申请实施例的范围。本领域技术人员根据所给出的图3至图6,显然可以进行各种等价的修改或变化,这样的修改或变化也落入本申请实施例的范围内。It should be understood that the examples shown in FIGS. 3 to 6 are intended to help those skilled in the art to better understand the embodiments of the present application, and are not intended to limit the scope of the embodiments of the present application. Those skilled in the art can obviously make various equivalent modifications or changes based on the given figures 3 to 6, and such modifications or changes also fall within the scope of the embodiments of the present application.
图3是根据本申请一实施例的电容检测电路200的电路结构图。如图3 所示,该电容检测电路200连接至检测电容器Cx,包括:FIG. 3 is a circuit structure diagram of a capacitance detection circuit 200 according to an embodiment of the present application. As shown in FIG. 3, the capacitance detection circuit 200 is connected to the detection capacitor Cx, and includes:
屏蔽电极,所述屏蔽电极和所述检测电容器Cx的检测电极形成第一电容器Cm,所述屏蔽电极和系统地形成屏蔽电容器Cshd,图3中第一电容器的下电极和屏蔽电容器的上电极可以看做屏蔽电极的等效电路结构示意图;The shield electrode, the shield electrode and the detection electrode of the detection capacitor Cx form a first capacitor Cm, the shield electrode and the system ground form a shield capacitor Cshd, the lower electrode of the first capacitor and the upper electrode of the shield capacitor in FIG. 3 can be Seen as a schematic diagram of the equivalent circuit structure of the shield electrode;
屏蔽电极驱动电路包括电压缓冲器270;The shield electrode driving circuit includes a voltage buffer 270;
校准电容器Cc、控制模块230、充放电模块240、积分器250、处理模块260和比较器290。The calibration capacitor Cc, the control module 230, the charge and discharge module 240, the integrator 250, the processing module 260, and the comparator 290.
其中,所述充放电模块240包括第一电流源241和第二电流源242,所述积分器250包括积分电容器Cs和放大器252。Wherein, the charging and discharging module 240 includes a first current source 241 and a second current source 242, and the integrator 250 includes an integrating capacitor Cs and an amplifier 252.
所述电容检测电路还包括充放电开关组、清零开关组和积分开关组,其中,所述充放电开关组包括第一开关S1、第二开关S2、第三开关S3、第四开关S4、第七开关S7和第八开关S8,所述积分开关组包括第五开关S5,所述清零开关组包括第六开关S6。The capacitance detection circuit further includes a charge and discharge switch group, a clear switch group, and an integration switch group, wherein the charge and discharge switch group includes a first switch S1, a second switch S2, a third switch S3, a fourth switch S4, The seventh switch S7 and the eighth switch S8, the integral switch group includes a fifth switch S5, and the clear switch group includes a sixth switch S6.
其中,所述充放电开关组用于控制充放电模块240对所述检测电容器Cx、所述校准电容器Cc、第一电容器或屏蔽电容器进行充电或放电,具体地,所述第一开关S1用于控制所述第一电流源241对所述检测电容器Cx进行充电,所述第二开关S2用于控制所述第二电流源242对所述校准电容器Cc进行充电,所述第三开关用于控制对所述检测电容器Cx和第一电容器Cm进行放电,所述第四开关用于控制对所述校准电容器Cc进行放电,所述第七开关S7用于控制对所述屏蔽电容器进行放电,所述第八开关用于控制电压缓冲器270对所述第一电容器Cm进行充电。The charging and discharging switch group is used to control the charging and discharging module 240 to charge or discharge the detection capacitor Cx, the calibration capacitor Cc, the first capacitor or the shielding capacitor. Specifically, the first switch S1 is used for The first current source 241 is controlled to charge the detection capacitor Cx, the second switch S2 is used to control the second current source 242 to charge the calibration capacitor Cc, and the third switch is used to control The detection capacitor Cx and the first capacitor Cm are discharged, the fourth switch is used to control the discharge of the calibration capacitor Cc, the seventh switch S7 is used to control the discharge of the shielding capacitor, the The eighth switch is used to control the voltage buffer 270 to charge the first capacitor Cm.
所述积分开关组用于对积分电容器进行积分,具体地,所述第五开关S5用于控制对所述积分电容器Cs进行积分。所述清零开关组用于清零所述积分电容器上存储的电荷,具体地,所述第六开关用于控制清零所述积分电容器Cs上存储的电荷。The integration switch group is used to integrate the integration capacitor, specifically, the fifth switch S5 is used to control the integration of the integration capacitor Cs. The clearing switch group is used for clearing the charge stored on the integrating capacitor, specifically, the sixth switch is used for controlling the clearing of the charge stored on the integrating capacitor Cs.
具体地,所述第一开关S1的一端连接所述第一电流源241的一端,所述第一电流源241的另一端连接电源电压(即V DD),所述第一开关S1的另一端连接所述检测电容器Cx的一端、所述第三开关S3的一端和所述第一电容器Cm的一端,所述检测电容器Cx的另一端和所述第三开关S3的另一端都接地,所述第一电容器Cm的另一端连接屏蔽电容器Cshd的一端; Specifically, one end of the first switch S1 is connected to one end of the first current source 241, the other end of the first current source 241 is connected to a power supply voltage (that is, V DD ), and the other end of the first switch S1 One end of the detection capacitor Cx, one end of the third switch S3 and one end of the first capacitor Cm are connected, the other end of the detection capacitor Cx and the other end of the third switch S3 are both grounded, the The other end of the first capacitor Cm is connected to one end of the shielding capacitor Cshd;
所述第二开关S2的一端连接所述第二电流源242的一端,所述第二电 流源的另一端连接电源电压(即V DD),所述第二开关S2的另一端连接所述校准电容器Cc的一端以及所述第四开关S4的一端,所述校准电容器Cc的另一端和所述第四开关S4的另一端都接地,即所述校准电容器Cc的一端(比如,上极板)通过所述第二开关S2和第二电流源242连接到电源电压V DD,且所述校准电容器Cc的所述同一端(比如上极板)通过第四开关S4接地,而校准电容器Cc的另一端(比如,下极板)接地,从这里可以明确看出,校准电容器Cc与检测电容器Cx是相互独立的电容器,他们之间没有共用电极板; One end of the second switch S2 is connected to one end of the second current source 242, the other end of the second current source is connected to the power supply voltage (that is, V DD ), and the other end of the second switch S2 is connected to the calibration One end of the capacitor Cc and one end of the fourth switch S4, the other end of the calibration capacitor Cc and the other end of the fourth switch S4 are grounded, that is, one end of the calibration capacitor Cc (for example, the upper plate) It is connected to the power supply voltage V DD through the second switch S2 and the second current source 242, and the same end (such as the upper plate) of the calibration capacitor Cc is grounded through the fourth switch S4, and the other end of the calibration capacitor Cc is grounded. One end (for example, the lower plate) is grounded. It can be clearly seen from this that the calibration capacitor Cc and the detection capacitor Cx are independent capacitors, and there is no common electrode plate between them;
所述第五开关S5的一端连接所述校准电容器Cc的一端,所述第五开关S5的另一端连接所述放大器252的第一输入端(即负输入端),所述放大器252的第二输入端(即正输入端)用于输入所述参考电压(记为V R); One end of the fifth switch S5 is connected to one end of the calibration capacitor Cc, and the other end of the fifth switch S5 is connected to the first input end (ie, the negative input end) of the amplifier 252, and the second end of the amplifier 252 is The input terminal (that is, the positive input terminal) is used to input the reference voltage (denoted as V R );
所述第六开关S6与所述积分电容器Cs并联连接,所述积分电容器Cs与所述放大器252并联连接,即积分电容器Cs跨接在放大器252的负输入端和输出端之间;The sixth switch S6 is connected in parallel with the integrating capacitor Cs, and the integrating capacitor Cs is connected in parallel with the amplifier 252, that is, the integrating capacitor Cs is connected across the negative input terminal and the output terminal of the amplifier 252;
所述第七开关S7的一端接地,所述第七开关S7的另一端连接所述第八开关S8的一端以及所述屏蔽电容器Cshd的一端,所述屏蔽电容器Cshd的另一端接地;One end of the seventh switch S7 is grounded, the other end of the seventh switch S7 is connected to one end of the eighth switch S8 and one end of the shielding capacitor Cshd, and the other end of the shielding capacitor Cshd is grounded;
所述第八开关S8的另一端连接所述电容缓冲器270的输出端,所述电容缓冲器270的输出电压为所述参考电压V RThe other end of the eighth switch S8 is connected to the output terminal of the buffer capacitor 270, the output voltage of the buffer capacitor 270 to the reference voltage V R;
所述比较器290的第一输入端(例如,正输入端)连接所述检测电容器Cx的一端,所述比较器290的第二输入端(例如,负输入端)用于输入所述参考电压V R,所述比较器290的输出端连接控制模块230,所述控制模块230用于控制开关S1~S8的开启和关闭。当然比较器290的正、负输入端的连接方式也可以调换过来,本文在此不做限制。 The first input terminal (for example, the positive input terminal) of the comparator 290 is connected to one end of the detection capacitor Cx, and the second input terminal (for example, the negative input terminal) of the comparator 290 is used to input the reference voltage V R , the output terminal of the comparator 290 is connected to the control module 230, and the control module 230 is used to control the opening and closing of the switches S1 to S8. Of course, the connection mode of the positive and negative input terminals of the comparator 290 can also be reversed, which is not limited herein.
进一步地,所述积分器250的输出端还可以连接处理模块260,所述处理模块260可以用于对积分器250的输出电压V out进行处理,确定检测电容器Cx的电容值,或者该检测电容器Cx上的电荷量,进一步确定是否有触摸。 Further, the output terminal of the integrator 250 can also be connected to a processing module 260, and the processing module 260 can be used to process the output voltage V out of the integrator 250 to determine the capacitance value of the detection capacitor Cx, or the detection capacitor The amount of charge on Cx further determines whether there is a touch.
以下,结合图4所示的逻辑时序图,详细说明图3所示的电容检测电路的工作过程。Hereinafter, in conjunction with the logic timing diagram shown in FIG. 4, the working process of the capacitance detection circuit shown in FIG. 3 will be described in detail.
需要说明的是,在图4中,S1~S8对应的曲线分别为第一开关S1~第八 开关S8的控制信号的波形图,当控制信号为高电平时,对应的开关闭合,当控制信号为低电平时,对应的开关断开,V x、V n和V shd分别为检测电容器Cx、校准电容器Cc和屏蔽电容器C shd上的电压曲线,V out为积分器250的输出电压。 It should be noted that in Figure 4, the curves corresponding to S1 to S8 are the waveform diagrams of the control signals of the first switch S1 to the eighth switch S8, when the control signal is high, the corresponding switch is closed, and when the control signal When it is at a low level, the corresponding switch is off. V x , V n and V shd are the voltage curves on the detection capacitor Cx, the calibration capacitor Cc, and the shielding capacitor C shd , respectively, and V out is the output voltage of the integrator 250.
在电荷清零阶段(对应图4中的时间段t 0~t 1),第六开关S6闭合,第一开关S1、第二开关S2、第三开关S3、第四开关S4和第五开关S5、第七开关S7和第八开关S8都断开,清零所述积分电容器Cs上存储的电荷,即在t 1时刻,积分电容器Cs上的电荷量为零,根据放大器的虚短特性,所述积分器250的输出电压V out=V RIn the charge zero phase (corresponding to the time period t 0 ~t 1 in Figure 4), the sixth switch S6 is closed, the first switch S1, the second switch S2, the third switch S3, the fourth switch S4, and the fifth switch S5 , The seventh switch S7 and the eighth switch S8 are both turned off, and the charge stored on the integrating capacitor Cs is cleared, that is, at the time t 1 , the charge on the integrating capacitor Cs is zero. According to the virtual short characteristic of the amplifier, The output voltage of the integrator 250 is V out =V R.
在该实施例中,在第一充放电阶段之前还包括完全放电阶段(对应图4中的时间段t 1~t 2),在所述完全放电阶段,所述第三开关S3,第四开关S4和第七开关S7闭合,所述第一开关S1、所述第二开关S2、所述第五开关S5、所述第六开关S6和所述第八开关S8都断开,对检测电容器Cx,校准电容器Cc,屏蔽电容器Cshd,屏蔽电极和感应电极所形成的第一电容器Cm进行完全放电。在t 2时刻,检测电容器Cx,校准电容器Cc,第一电容器Cm和屏蔽电容器Cshd上存储的电荷量均为零,积分器250的输出电压V out=V RIn this embodiment, before the first charging and discharging phase, it also includes a complete discharge phase (corresponding to the time period t 1 to t 2 in FIG. 4 ). In the complete discharge phase, the third switch S3 and the fourth switch S4 and the seventh switch S7 are closed, and the first switch S1, the second switch S2, the fifth switch S5, the sixth switch S6, and the eighth switch S8 are all open, and the detection capacitor Cx , The calibration capacitor Cc, the shielding capacitor Cshd, the first capacitor Cm formed by the shielding electrode and the sensing electrode are completely discharged. At time t 2 , the amount of charge stored on the detection capacitor Cx, the calibration capacitor Cc, the first capacitor Cm and the shield capacitor Cshd are all zero, and the output voltage of the integrator 250 is V out =V R.
在第一充放电阶段(对应图4中的时间段t 2~t 3),所述第八开关S8闭合,所述第一开关S1、所述第二开关S2、所述第三开关S3、所述第四开关S4、所述第五开关S5、第六开关S6和所述第七开关S7都断开,所述电容缓冲器270对所述检测电容器Cx和所述第一电容器Cm进行充电。在t 3时刻,检测电容器Cx和第一电容器Cm上存储的电荷量分别为: In the first charging and discharging stage (corresponding to the time period t 2 to t 3 in FIG. 4 ), the eighth switch S8 is closed, the first switch S1, the second switch S2, the third switch S3, The fourth switch S4, the fifth switch S5, the sixth switch S6, and the seventh switch S7 are all off, and the capacitance buffer 270 charges the detection capacitor Cx and the first capacitor Cm . At time t 3 , the amount of charge stored on the detection capacitor Cx and the first capacitor Cm are:
Figure PCTCN2020078259-appb-000003
Figure PCTCN2020078259-appb-000003
Figure PCTCN2020078259-appb-000004
Figure PCTCN2020078259-appb-000004
其中,Q Cx,t3为在t 3时刻,检测电容器Cx上的电荷量,Q Cm,t3为在t 3时刻,第一电容器Cm上的电荷量。 Among them, Q Cx, t3 are the amount of charge on the detection capacitor Cx at time t 3 , and Q Cm, t3 are the amount of charge on the first capacitor Cm at time t 3.
在第二充放电阶段(对应图4中的时间段t 3~t 4),所述第一开关S1、所述第二开关S2和第八开关S8闭合,所述第三开关S3、所述第四开关S4、所述第五开关S5、第六开关S6和第七开关S7都断开,第一电流源241和第二电流源242分别对检测电容器Cx和校准电容器Cc进行充电。当所述检测电容器Cx上的电压V x达到所述参考电压V R时,比较器290的输出状态 发生翻转,此时,所述控制模块230控制所述第一开关S1和所述第二开关S2断开,即控制所述第一电流源241和第二电流源242停止对检测电容器Cx和校准电容器Cc进行充电。 In the second charging and discharging stage (corresponding to the time period t 3 to t 4 in FIG. 4 ), the first switch S1, the second switch S2 and the eighth switch S8 are closed, and the third switch S3, the third switch S3 and the eighth switch S8 are closed. The fourth switch S4, the fifth switch S5, the sixth switch S6, and the seventh switch S7 are all off, and the first current source 241 and the second current source 242 charge the detection capacitor Cx and the calibration capacitor Cc, respectively. When the voltage V x on the detecting capacitor Cx reaches the reference voltage V R, the output state of the comparator 290 of the overturn, this time, the control module 230 controls the first switch S1 and the second switch S2 is turned off, that is, the first current source 241 and the second current source 242 are controlled to stop charging the detection capacitor Cx and the calibration capacitor Cc.
在t 4时刻,检测电容器Cx、第一电容器Cm上存储的电荷量分别为: At time t 4 , the amount of charge stored on the detection capacitor Cx and the first capacitor Cm are:
Q Cx,t4=V RC x                公式(3) Q Cx,t4 =V R C x formula (3)
Q Cm,t4=(V R-V R)C m=0         公式(4) Q Cm,t4 =(V R -V R )C m =0 Formula (4)
那么,检测电容器Cx上的电压充电至所述参考电压V R所需的时长t ch为: Then, detecting a voltage on the capacitor Cx is charged to the reference voltage V R to the desired length t ch is:
Figure PCTCN2020078259-appb-000005
Figure PCTCN2020078259-appb-000005
其中,所述C x表示所述检测电容器Cx的参考电容值(即基础电容),所述I 1为所述第一电流源241的电流值。 Wherein, the C x represents the reference capacitance value (that is, the basic capacitance) of the detection capacitor Cx, and the I 1 is the current value of the first current source 241.
由于校准电容器Cc和检测电容器Cx的充电时长相等,那么在t 4时刻,所述校准电容器Cc上存储的电荷量Q Cc,t4为: Since the appearance and the like when the calibration capacitor Cc charge detecting capacitor Cx, then at time t 4, the charge amount Q calibration stored on capacitor Cc Cc, T4 is:
Figure PCTCN2020078259-appb-000006
Figure PCTCN2020078259-appb-000006
其中,所述I 2为所述第二电流源的电流值。 Wherein, the I 2 is the current value of the second current source.
由于检测电容器Cx充电至参考电压V R需要时长t ch,因此,时间段t 3~t 4的时长需要大于或等于时长t ch,即t ch≤t 4-t 3Since the detection of the capacitor Cx is charged to the reference voltage when the length t CH V R need, therefore, the length of time period t 3 ~ t 4 equal to or greater than the required length of time t CH, i.e. t ch ≤t 4 -t 3.
可选地,为了避免开关频繁切换导致的电荷泄露,在所述第二充放电阶段之后还可以包括第一缓冲阶段(对应图4中的时间段t 4~t 5),在所述第一缓冲阶段,检测电容器Cx、校准电容器Cc、屏蔽电容器Cshd、第一电容器Cm和积分电容器Cs上的电荷保持不变,具体地,在所述第一缓冲阶段,第一开关S1至第八开关S8都断开。 Optionally, in order to avoid charge leakage caused by frequent switching of switches, a first buffer stage (corresponding to the time period t 4 to t 5 in FIG. 4) may be included after the second charge and discharge stage. In the buffering phase, the charge on the detection capacitor Cx, the calibration capacitor Cc, the shielding capacitor Cshd, the first capacitor Cm, and the integrating capacitor Cs remain unchanged. Specifically, in the first buffering phase, the first switch S1 to the eighth switch S8 Are all disconnected.
之后,在电荷转移阶段(对应图4中的时间段t 5~t 6),第五开关S5闭合,第一开关S1、第二开关S2、第三开关S3、第四开关S4、第六开关S6、第七开关S7和第八开关S8都断开,由于放大器的虚短特性,放大器252的负输入端和放大器252的正输入端的电压相等,即都为所述参考电压V R,因此,校准电容器Cc的上极板和积分电容器Cs的左极板的电压被钳位至所述参考电压V R,由于放大器的虚断特性,在时间段t 5~t 6内,校准电容器Cc上存储的电荷在校准电容器Cc和积分电容器Cs上进行重新分配,电荷平衡方程如公式(7)所示: Afterwards, in the charge transfer phase (corresponding to the time period t 5 to t 6 in Figure 4), the fifth switch S5 is closed, the first switch S1, the second switch S2, the third switch S3, the fourth switch S4, and the sixth switch S6, a seventh switch S7 and the eighth switch S8 are turned off, since the virtual short characteristics of the amplifier, the voltage of the positive input terminal of amplifier 252 and the negative input terminal of the amplifier 252 are equal, i.e., both to the reference voltage V R, and therefore, The voltages of the upper plate of the calibration capacitor Cc and the left plate of the integrating capacitor Cs are clamped to the reference voltage V R , due to the virtual off characteristic of the amplifier, during the time period t 5 to t 6 , the calibration capacitor Cc is stored The charge of is redistributed on the calibration capacitor Cc and the integrating capacitor Cs. The charge balance equation is shown in formula (7):
Figure PCTCN2020078259-appb-000007
Figure PCTCN2020078259-appb-000007
其中,所述C c为所述校准电容器Cc的电容值,所述C s为所述积分电容器Cs的电容值,所述V RC c为电荷转移之后所述校准电容器Cc上存储的电荷量,所述(V R-V OUT)·C S为电荷转移之后所述积分电容器Cs上存储的电荷量。 Wherein the amount of charge, the C c is the capacitance of the calibration capacitor Cc, the C s is the capacitance of the integrating capacitor Cs, V R C c is the charge transfer after the storage of the calibration capacitor Cc , the amount of charge (V R -V OUT) · C S is after said integrating stored charge transfer on capacitor Cs.
根据公式(7)可得积分器250的输出电压V out如下式所示: According to formula (7), the output voltage V out of the integrator 250 can be obtained as shown in the following formula:
Figure PCTCN2020078259-appb-000008
Figure PCTCN2020078259-appb-000008
由公式(8)可知,通过控制校准电容Cc的电容值C c、第一电流源的电流值I 1,所述第二电流源的电流值I 2满足C C-C XI 2/I 1=0,即C C=C XI 2/I 1,从而能够使得在检测电容器Cx的电容值为参考电容值时,积分器250的输出电压V out为所述参考电压V R,也就是说,在用户未操作电容传感器时,积分器的输出电压为所述参考电压V RIt can be seen from formula (8) that by controlling the capacitance value C c of the calibration capacitor Cc and the current value I 1 of the first current source, the current value I 2 of the second current source satisfies C C -C X I 2 /I 1 = 0, that is, C C = C X I 2 /I 1 , so that when the capacitance value of the detection capacitor Cx is the reference capacitance value, the output voltage V out of the integrator 250 is the reference voltage V R , that is , when the user does not operate the capacitive sensor, the output voltage of the integrator to the reference voltage V R.
由公式C C=C XI 2/I 1可以看出,只要设置I 2/I 1<1,就能够使得C C<C X,从而能够达到减小校准电容器的电容值的目的,并且由于电容器的电容值和尺寸成正比,通过设置第一电流源小于第二电流源的电流值,能够使得通过较小的校准电容器达到抵消检测电容器Cx的参考电容值的目的。 It can be seen from the formula C C =C X I 2 /I 1 that, as long as I 2 /I 1 <1 is set, C C <C X can be made, so that the purpose of reducing the capacitance value of the calibration capacitor can be achieved, and because The capacitance value of the capacitor is proportional to the size. By setting the current value of the first current source to be smaller than the current value of the second current source, a smaller calibration capacitor can be used to offset the reference capacitance value of the detection capacitor Cx.
可选地,为了避免开关频繁切换导致的电荷泄露,在所述电荷转移阶段之后还可以包括第二缓冲阶段(对应图4中的时间段t 6~t 7),在所述第二缓冲阶段,检测电容器Cx、校准电容器Cc、第一电容器Cm、屏蔽电容器Cshd和积分电容器Cs上的电荷保持不变,具体地,在所述第二缓冲阶段,第一开关S1至第八开关S8都断开。 Optionally, in order to avoid charge leakage caused by frequent switching of switches, a second buffer stage (corresponding to the time period t 6 to t 7 in FIG. 4) may be included after the charge transfer stage. , The charge on the detection capacitor Cx, the calibration capacitor Cc, the first capacitor Cm, the shielding capacitor Cshd, and the integrating capacitor Cs remain unchanged. Specifically, in the second buffering stage, the first switch S1 to the eighth switch S8 are all off open.
可选地,在本申请实施例中,可以多次重复执行充放电阶段至第二缓冲阶段中的动作,例如,在时刻t 7之后的时间段t 7~t 8中,可以执行时间段t 1~t 2中的相关操作,在时间段t 8~t 9中,可以执行时间段t 2~t 3中的相关操作,在时间段t 10~t 11中,可以执行时间段t 3~t 4中的相关操作,在时间段t 12~t 13中,可以执行时间段t 4~t 5中的相关操作,在时间段t 13~t 14中,可以执行时间段t 5~t 6中的相关操作,下一次重复的执行过程类似,这里不再赘述。 Optionally, in the embodiment of the present application, the actions from the charge-discharge stage to the second buffer stage may be repeated multiple times. For example, in the time period t 7 to t 8 after the time t 7 , the time period t may be executed. For the related operations in 1 to t 2 , in the time period t 8 to t 9 , the related operations in the time period t 2 to t 3 can be performed , and in the time period t 10 to t 11 , the time period t 3 to can be performed For the related operations in t 4 , in the time period t 12 to t 13 , the related operations in the time period t 4 to t 5 can be performed, and in the time period t 13 to t 14 , the time period t 5 to t 6 can be performed The related operations in the next iteration are similar, so I won’t repeat them here.
那么,当重复执行上述t 1~t 7过程N次时,积分器的输出电压V out为: Then, when the above process t 1 to t 7 is repeatedly executed N times, the output voltage V out of the integrator is:
Figure PCTCN2020078259-appb-000009
Figure PCTCN2020078259-appb-000009
在满足C C=C XI 2/I 1的情况下,当检测电容器Cx的电容值发生变化时(比如受到手指触摸时),例如,当检测电容器Cx的电容值由参考电容值C x变为C x+ΔC x时(C x+ΔC x是手指等触摸物接触传感器电容而产生的等效电容的容 值),积分器250的输出电压V out为: In the case that C C = C X I 2 /I 1 is satisfied, when the capacitance value of the detection capacitor Cx changes (for example, when touched by a finger), for example, when the capacitance value of the detection capacitor Cx changes from the reference capacitance value C x When C x + ΔC x (C x + ΔC x is the capacitance value of the equivalent capacitance generated by a touch object such as a finger touching the capacitance of the sensor), the output voltage V out of the integrator 250 is:
Figure PCTCN2020078259-appb-000010
Figure PCTCN2020078259-appb-000010
在一个实施例中,根据Vout和N即可计算得到检测电容器的容值变化量,从而判断是否有被触摸。由公式(10)可以看出,多次重复执行上述过程,有利于提升电容检测的灵敏度。比如,当N为1时,对于较小的ΔCx,V out几乎等于V R,可能被误判为没有物体触摸,当N较大时,即使是较小的ΔCx,通过乘以N,也可以变为较大的值,这样得到的V out和V R可以存在一个较大的差值,据此确定是否有触摸能够提升检测的灵敏度。 In one embodiment, the capacitance change amount of the detection capacitor can be calculated according to Vout and N, so as to determine whether it has been touched. It can be seen from formula (10) that repeating the above process multiple times is beneficial to improve the sensitivity of capacitance detection. For example, when N is 1, for a small ΔCx, V out is almost equal to V R , which may be misjudged as no object touch. When N is large, even a small ΔCx can be multiplied by N. It becomes a larger value, thus obtained V R V out and there may be a large difference, whereby to determine whether the touch can enhance the sensitivity of detection.
因此,本申请实施例的电容检测电路,通过第一电流源和第二电流源分别对检测电容器和校准电容器进行充电,从而能够达到通过第一电流源和第二电流源的电流值的比例关系控制所述参考电容值与所述校准电容器的电容值的比例关系的目的,因此,只要设置第一电流源的电流值大于所述第二电流源的电流值,就能够达到减小校准电容器的电容值的目的,进而能够减小电容检测电路的面积,降低芯片的成本。Therefore, the capacitance detection circuit of the embodiment of the present application charges the detection capacitor and the calibration capacitor through the first current source and the second current source, respectively, so as to achieve the proportional relationship between the current values passing through the first current source and the second current source. The purpose of controlling the proportional relationship between the reference capacitance value and the capacitance value of the calibration capacitor, therefore, as long as the current value of the first current source is set to be greater than the current value of the second current source, the reduction of the calibration capacitor can be achieved. The purpose of the capacitance value, in turn, can reduce the area of the capacitance detection circuit and reduce the cost of the chip.
进一步地,通过对屏蔽电极和感应电极进行分时驱动,从公式(10)可以看出,积分器的输出电压与屏蔽电极和感应电极所形成的第一电容器Cm无关,这样,即使有水滴存在导致Cm发生变化,也不会影响到积分器的输出,即可以实现良好的防水功能,并且不会存在同时驱动带来的延迟问题。并且由于对屏蔽电极充电和感应电极充电是分时进行的,因此可以大大降低对屏蔽电极的驱动能力的要求,降低设计难度和功耗。Furthermore, through the time-sharing drive of the shield electrode and the sensing electrode, it can be seen from formula (10) that the output voltage of the integrator has nothing to do with the first capacitor Cm formed by the shield electrode and the sensing electrode. In this way, even if there are water droplets If the Cm changes, it will not affect the output of the integrator, that is, it can achieve a good waterproof function, and there will be no delay caused by simultaneous driving. In addition, since the charging of the shielding electrode and the charging of the sensing electrode are performed in a time-sharing manner, the requirement on the driving capability of the shielding electrode can be greatly reduced, and the design difficulty and power consumption can be reduced.
图5是根据本申请另一实施例的电容检测电路400的示意性结构图,如图5所示,该电容检测电路400连接至检测电容器Cx,该电容检测电路400包括:FIG. 5 is a schematic structural diagram of a capacitance detection circuit 400 according to another embodiment of the present application. As shown in FIG. 5, the capacitance detection circuit 400 is connected to a detection capacitor Cx, and the capacitance detection circuit 400 includes:
屏蔽电极,所述屏蔽电极和所述检测电容器Cx的检测电极之间形成第一电容器Cm,所述屏蔽电极和系统地之间形成屏蔽电容器Cshd,图5中第一电容器的下电极和屏蔽电容器的上电极可以看做屏蔽电极的等效电路结构示意图;A shield electrode, a first capacitor Cm is formed between the shield electrode and the detection electrode of the detection capacitor Cx, and a shield capacitor Cshd is formed between the shield electrode and the system ground. The lower electrode of the first capacitor and the shield capacitor in FIG. 5 The upper electrode can be regarded as a schematic diagram of the equivalent circuit structure of the shielding electrode;
屏蔽电极驱动电路包括电压缓冲器470;The shield electrode driving circuit includes a voltage buffer 470;
校准电容器Cc、控制模块430、充放电模块440、积分器450、处理模块460和比较器490。The calibration capacitor Cc, the control module 430, the charge and discharge module 440, the integrator 450, the processing module 460, and the comparator 490.
其中,所述充放电模块440包括第一电流源441和第二电流源442,所述积分器450包括积分电容器Cs和放大器452。Wherein, the charging and discharging module 440 includes a first current source 441 and a second current source 442, and the integrator 450 includes an integrating capacitor Cs and an amplifier 452.
所述电容检测电路还包括充放电开关组、清零开关组和积分开关组,其中,所述充放电开关组包括第一开关S1、第二开关S2、第三开关S3和第四开关S4、第七开关S7和第八开关S8,所述积分开关组包括第五开关S5,所述清零开关组包括第六开关S6。The capacitance detection circuit further includes a charge and discharge switch group, a clear switch group, and an integration switch group, wherein the charge and discharge switch group includes a first switch S1, a second switch S2, a third switch S3, and a fourth switch S4, The seventh switch S7 and the eighth switch S8, the integral switch group includes a fifth switch S5, and the clear switch group includes a sixth switch S6.
其中,所述充放电开关组用于控制充放电模块440对所述检测电容器Cx、所述校准电容器Cc、第一电容器或屏蔽电容器进行充电或放电,具体地,所述第一开关S1用于控制所述第一电流源441对所述检测电容器Cx进行放电,所述第二开关S2用于控制所述第二电流源442对所述校准电容器Cc进行放电,所述第三开关用于控制对所述检测电容器Cx和第一电容器Cm进行充电,所述第四开关用于控制对所述校准电容器Cc进行充电,所述第七开关S7用于控制对所述屏蔽电容器进行充电,所述第八开关用于控制电压缓冲器270对所述第一电容器Cm进行放电。The charge and discharge switch group is used to control the charge and discharge module 440 to charge or discharge the detection capacitor Cx, the calibration capacitor Cc, the first capacitor or the shielding capacitor. Specifically, the first switch S1 is used for The first current source 441 is controlled to discharge the detection capacitor Cx, the second switch S2 is used to control the second current source 442 to discharge the calibration capacitor Cc, and the third switch is used to control The detection capacitor Cx and the first capacitor Cm are charged, the fourth switch is used to control the charging of the calibration capacitor Cc, the seventh switch S7 is used to control the charging of the shielding capacitor, and the The eighth switch is used to control the voltage buffer 270 to discharge the first capacitor Cm.
所述积分开关组用于对积分电容器进行积分,具体地,所述第五开关S5用于控制对所述积分电容器Cs进行积分。所述清零开关组用于清零所述积分电容器上存储的电荷,具体地,所述第六开关用于控制清零所述积分电容器Cs上存储的电荷。The integration switch group is used to integrate the integration capacitor, specifically, the fifth switch S5 is used to control the integration of the integration capacitor Cs. The clearing switch group is used for clearing the charge stored on the integrating capacitor, specifically, the sixth switch is used for controlling the clearing of the charge stored on the integrating capacitor Cs.
需要说明的是,图5和图3所示的实施例的电路结构类似,区别在于:在图3所示的实施例中,第一电流源和第二电流源的一端连接电源电压,第三开关、第四开关和第七开关的一端接地,在图5所示的实施例中,第一电流源和第二电流源的一端接地,第三开关、第四开关和第七开关的一端连接电源电压,比如所述校准电容器Cc的一端(比如,上极板)通过所述第二开关S2和第二电流源442接地,且所述校准电容器Cc的所述同一端(比如上极板)通过第四开关S4连接到电源电压V DD,而校准电容器Cc的另一端(比如,下极板)接地,第一电容器Cm的一端连接所述第三开关的一端,所述屏蔽电容器的另一端接地,所述第七开关的一端连接屏蔽电容器的一端以及第八开关的一端,所述第七开关的另一端接电源电压,所述第八开关的另一端连接所述电容缓冲器。图5中其他元件的连接关系这里不再赘述。 It should be noted that the circuit structure of the embodiment shown in FIG. 5 and FIG. 3 is similar, the difference is: in the embodiment shown in FIG. 3, one end of the first current source and the second current source is connected to the power supply voltage, One end of the switch, the fourth switch and the seventh switch is grounded. In the embodiment shown in FIG. 5, one end of the first current source and the second current source are grounded, and one end of the third switch, the fourth switch and the seventh switch are connected. The power supply voltage, for example, one end of the calibration capacitor Cc (for example, the upper plate) is grounded through the second switch S2 and the second current source 442, and the same end of the calibration capacitor Cc (for example, the upper plate) The fourth switch S4 is connected to the power supply voltage V DD , the other end of the calibration capacitor Cc (for example, the lower plate) is grounded, one end of the first capacitor Cm is connected to one end of the third switch, and the other end of the shielding capacitor Grounding, one end of the seventh switch is connected to one end of the shielding capacitor and one end of the eighth switch, the other end of the seventh switch is connected to the power supply voltage, and the other end of the eighth switch is connected to the capacitor buffer. The connection relationship of other components in FIG. 5 will not be repeated here.
以下,结合图6所示的逻辑时序图,详细说明图5所示的电容检测电路的工作过程。Hereinafter, in conjunction with the logic timing diagram shown in FIG. 6, the working process of the capacitance detection circuit shown in FIG. 5 will be described in detail.
需要说明的是,在图6中,S1~S8对应的曲线分别为第一开关S1~第八开关S8的控制信号的波形图,当控制信号为高电平时,对应的开关闭合,当控制信号为低电平时,对应的开关断开,当然开关闭合或断开也可以分别对应低电平和高电平。V x、V n和V shd分别为检测电容器Cx、校准电容器Cc和屏蔽电容器C shd上的电压曲线,V out为积分器250的输出电压。 It should be noted that in Figure 6, the curves corresponding to S1 to S8 are the waveform diagrams of the control signals of the first switch S1 to the eighth switch S8. When the control signal is high, the corresponding switch is closed. When the control signal When it is low level, the corresponding switch is off. Of course, the switch can be closed or opened to correspond to low level and high level respectively. V x , V n and V shd are the voltage curves on the detection capacitor Cx, the calibration capacitor Cc and the shielding capacitor C shd respectively, and V out is the output voltage of the integrator 250.
跟前述实施例类似,在电荷清零阶段(对应图6中的时间段t 0~t 1),第六开关S6闭合,第一开关S1、第二开关S2、第三开关S3、第四开关S4和第五开关S5、第七开关S7和第八开关S8都断开,清零所述积分电容器Cs上存储的电荷,即在t 1时刻,积分电容器Cs上的电荷量为零,根据放大器的虚短特性,所述积分器450的输出电压V out=V RSimilar to the previous embodiment, in the charge clearing phase (corresponding to the time period t 0 to t 1 in FIG. 6 ), the sixth switch S6 is closed, the first switch S1, the second switch S2, the third switch S3, and the fourth switch S4 and the fifth switch S5, the seventh switch S7 and the eighth switch S8 are all turned off, and the charge stored on the integrating capacitor Cs is cleared, that is, at the time t 1 , the amount of charge on the integrating capacitor Cs is zero, according to the amplifier The output voltage of the integrator 450 is V out =V R.
在该实施例中,在第一充放电阶段之前还包括完全充电阶段(对应图6中的时间段t 1~t 2),在所述完全充电阶段,所述第三开关S3,第四开关S4和第七开关S7闭合,所述第一开关S1、所述第二开关S2、所述第五开关S5、所述第六开关S6和所述第八开关S8都断开,对检测电容器Cx,校准电容器Cc,屏蔽电容器Cshd,屏蔽电极和感应电极所形成的第一电容器Cm进行完全充电。在t 2时刻,检测电容器Cx,校准电容器Cc,第一电容器Cm上存储的电荷量分别为: In this embodiment, before the first charging and discharging phase, a full charging phase (corresponding to the time period t 1 to t 2 in FIG. 6) is also included. In the full charging phase, the third switch S3 and the fourth switch S4 and the seventh switch S7 are closed, and the first switch S1, the second switch S2, the fifth switch S5, the sixth switch S6, and the eighth switch S8 are all open, and the detection capacitor Cx , The calibration capacitor Cc, the shielding capacitor Cshd, the first capacitor Cm formed by the shielding electrode and the sensing electrode are fully charged. At time t 2 , the amount of charge stored on the detection capacitor Cx, the calibration capacitor Cc, and the first capacitor Cm are:
Q Cx,t2=C xV DD          公式(11) Q Cx,t2 = C x V DD formula (11)
Q Cc,t2=C cV DD          公式(12) Q Cc,t2 = C c V DD formula (12)
Q Cm,t2=0              公式(13) Q Cm,t2 = 0 Formula (13)
积分器450的输出电压V out为V RThe output voltage V out of the integrator 450 is V R.
在第一充放电阶段(对应图6中的时间段t 2~t 3),第一开关S1~第七开关S7断开,第八开关S8闭合,电压缓冲器470同时对检测电容器Cx、屏蔽电容器Cshd和第一电容器Cm充电。在t3时刻,检测电容器Cx、屏蔽电容器Cshd和第一电容器Cm上存储的电荷量分别为: In the first charging and discharging stage (corresponding to the time period t 2 to t 3 in FIG. 6 ), the first switch S1 to the seventh switch S7 are opened, the eighth switch S8 is closed, and the voltage buffer 470 simultaneously shields the detection capacitor Cx and The capacitor Cshd and the first capacitor Cm are charged. At time t3, the amount of charge stored on the detection capacitor Cx, the shielding capacitor Cshd, and the first capacitor Cm are:
Figure PCTCN2020078259-appb-000011
Figure PCTCN2020078259-appb-000011
Figure PCTCN2020078259-appb-000012
Figure PCTCN2020078259-appb-000012
在第二充放电阶段(对应图6中的时间段t 3~t 4),所述第一开关S1、所述第二开关S2和第八开关S8闭合,所述第三开关S3、所述第四开关S4、所述第五开关S5、第六开关S6和第七开关S7都断开,通过第一电流源441 和第二电流源442分别对检测电容器Cx和校准电容器Cc进行放电。当所述检测电容器Cx上的电压V x放电到所述参考电压V R时,比较器490的输出状态发生翻转,此时,所述控制模块430控制所述第一开关S1和所述第二开关S2断开,即控制所述第一电流源441和第二电流源442停止对检测电容器Cx和校准电容器Cc进行放电。 In the second charging and discharging stage (corresponding to the time period t 3 to t 4 in FIG. 6 ), the first switch S1, the second switch S2 and the eighth switch S8 are closed, and the third switch S3, the third switch S3 and the eighth switch S8 are closed. The fourth switch S4, the fifth switch S5, the sixth switch S6, and the seventh switch S7 are all turned off, and the detection capacitor Cx and the calibration capacitor Cc are discharged through the first current source 441 and the second current source 442, respectively. When the voltage V x on the detected discharging the capacitor Cx to the reference voltage V R, the output state of the comparator 490 is inverted occur, this time, the control module 430 controls the first switch S1 and the second The switch S2 is turned off, that is, the first current source 441 and the second current source 442 are controlled to stop discharging the detection capacitor Cx and the calibration capacitor Cc.
在t 4时刻,检测电容器Cx、第一电容器Cm上存储的电荷量分别为: At time t 4 , the amount of charge stored on the detection capacitor Cx and the first capacitor Cm are:
Q Cx,t4=V RC x                   公式(16) Q Cx,t4 =V R C x formula (16)
Q Cm,t4=(V R-V R)C m=0            公式(17) Q Cm,t4 =(V R -V R )C m =0 Formula (17)
那么,检测电容器Cx上的电压从电源电压V DD放电至参考电压V R所需的时长t dis为: Then, the time period t dis required for the voltage on the detection capacitor Cx to discharge from the power supply voltage V DD to the reference voltage V R is:
Figure PCTCN2020078259-appb-000013
Figure PCTCN2020078259-appb-000013
其中,所述C x为所述检测电容器Cx的参考电容值,所述I 1为所述第一电流源441的电流值。 Wherein, the C x is the reference capacitance value of the detection capacitor Cx, and the I 1 is the current value of the first current source 441.
由于校准电容器Cc和检测电容器Cx的放电时长相等,那么在t 4时刻,校准电容器Cc上存储的电荷Q Cc,t4为: Since the discharge time of the calibration capacitor Cc and the detection capacitor Cx are equal, then at time t 4 , the charge Q Cc, t4 stored on the calibration capacitor Cc is:
Figure PCTCN2020078259-appb-000014
Figure PCTCN2020078259-appb-000014
其中,所述C c为所述校准电容器的电容值,所述I 2为所述第二电流源442的电流值。 Wherein, the C c is the capacitance value of the calibration capacitor, and the I 2 is the current value of the second current source 442.
由于检测电容器420从电源电压放电至参考电压V R需要时长t dis,因此,时间段t 3~t 4的时长需要大于或等于时长t dis,即t dis≤t 4-t 3Detecting capacitor 420 due to the discharge from the supply voltage to the reference voltage when the length t V R DIS need, therefore, the length of time period t 3 ~ t 4 equal to or greater than the required length DIS t, i.e., t dis ≤t 4 -t 3.
跟前述实施例类似,为了避免开关频繁切换导致的电荷泄露,在所述充放电阶段之后还可以包括第一缓冲阶段(对应图6中的时间段t 4~t 5),在所述第一缓冲阶段,检测电容器Cx、校准电容器Cc、屏蔽电容器Cshd、第一电容器Cm和积分电容器451上的电荷保持不变,具体地,在所述第一缓冲阶段,第一开关S1至第八开关S8都断开。 Similar to the foregoing embodiment, in order to avoid charge leakage caused by frequent switching of switches, a first buffer stage (corresponding to the time period t 4 to t 5 in FIG. 6) may be included after the charge and discharge stage. In the buffer phase, the charge on the detection capacitor Cx, the calibration capacitor Cc, the shielding capacitor Cshd, the first capacitor Cm, and the integrating capacitor 451 remain unchanged. Specifically, in the first buffer phase, the first switch S1 to the eighth switch S8 Are all disconnected.
之后,在电荷转移阶段(对应图6中的时间段t 5~t 6),第五开关S5闭合,第一开关S1、第二开关S2、第三开关S3、第四开关S4、第六开关S6、第七开关S7和第八开关S8都断开,由于放大器的虚短特性,放大器452的负输入端和放大器的正输入端的电压相等,即都为所述参考电压V R,因此,校准电容器Cc的上极板和积分电容器451的左极板的电压被钳位至所述参 考电压V R,由于放大器的虚断特性,在时间段t 5~t 6内,校准电容器420上存储的电荷会在校准电容器Cc和积分电容器451上进行重新分配,电荷平衡方程如公式(20)所示: After that, in the charge transfer phase (corresponding to the time period t 5 to t 6 in FIG. 6 ), the fifth switch S5 is closed, the first switch S1, the second switch S2, the third switch S3, the fourth switch S4, and the sixth switch S6, the seventh switch S7, and the eighth switch S8 are all off. Due to the virtual short characteristic of the amplifier, the voltages of the negative input terminal of the amplifier 452 and the positive input terminal of the amplifier are equal, that is, both are the reference voltage V R. Therefore, the calibration The voltages of the upper plate of the capacitor Cc and the left plate of the integrating capacitor 451 are clamped to the reference voltage V R , due to the false interruption characteristic of the amplifier, during the time period t 5 to t 6 , the calibration capacitor 420 is stored The charge will be redistributed on the calibration capacitor Cc and the integrating capacitor 451. The charge balance equation is shown in formula (20):
Figure PCTCN2020078259-appb-000015
Figure PCTCN2020078259-appb-000015
其中,所述C s为所述积分电容器451的电容值,所述V RC c为电荷转移之后所述校准电容器420上存储的电荷量,所述(V R-V OUT)·C S为电荷转移之后所述积分电容器451上存储的电荷量。 Wherein, the C s is the capacitance value of the integrating capacitor 451, the V R C c is the amount of charge stored on the calibration capacitor 420 after the charge transfer, and the (V R -V OUT )·C S is The amount of charge stored on the integrating capacitor 451 after the charge transfer.
根据公式(9)可得积分器450的输出电压V out如下式所示: According to formula (9), the output voltage V out of the integrator 450 can be obtained as shown in the following formula:
Figure PCTCN2020078259-appb-000016
Figure PCTCN2020078259-appb-000016
由公式(21)可知,通过控制校准电容的电容值C c、第一电流源的电流值I 1,所述第二电流源的电流值I 2满足C C-C XI 2/I 1=0,从而能够使得在检测电容器的电容值为参考电容值时,积分器450的输出电压为参考电压V R,也就是说,用户未操作电容传感器时,积分器的输出电压为参考电压V RIt can be seen from formula (21) that by controlling the capacitance value C c of the calibration capacitor and the current value I 1 of the first current source, the current value I 2 of the second current source satisfies C C -C X I 2 /I 1 = 0, thereby detecting that the capacitance value of the capacitor when the reference capacitance value, the output voltage of the integrator 450 as the reference voltage V R, that is, when the user does not operate the capacitive sensor, the output voltage of the integrator to a reference voltage V R .
由公式C C=C XI 2/I 1可以看出,只要设置I 2/I 1<1,就能够使得C C<C X,从而能够达到减小校准电容器的电容值的目的。 It can be seen from the formula C C =C X I 2 /I 1 that, as long as I 2 /I 1 <1 is set, C C <C X can be made, so that the purpose of reducing the capacitance value of the calibration capacitor can be achieved.
跟前述实施例类似,在所述电荷转移阶段之后还可以包括第二缓冲阶段(对应图6中的时间段t 6~t 7),在所述第二缓冲阶段,检测电容器410、校准电容器420、屏蔽电容器Cshd、第一电容器Cm和积分电容器451上的电荷保持不变,具体地,在所述第二缓冲阶段,第一开关S1至第八开关S8都断开。 Similar to the foregoing embodiment, after the charge transfer phase, a second buffer phase (corresponding to the time period t 6 to t 7 in FIG. 6) may be included. In the second buffer phase, the detection capacitor 410 and the calibration capacitor 420 are , The charges on the shielding capacitor Cshd, the first capacitor Cm and the integrating capacitor 451 remain unchanged. Specifically, during the second buffer stage, the first switch S1 to the eighth switch S8 are all turned off.
可选地,在该实施例中,也可以多次重复执行从充放电阶段至第二缓冲阶段中的动作,这里不再赘述。那么,当重复执行上述操作过程N次时,积分器450的输出电压为:Optionally, in this embodiment, the actions from the charging and discharging phase to the second buffering phase can also be repeated multiple times, which will not be repeated here. Then, when the above operation process is repeated N times, the output voltage of the integrator 450 is:
Figure PCTCN2020078259-appb-000017
Figure PCTCN2020078259-appb-000017
在满足C C=C XI 2/I 1的情况下,当检测电容器的电容值发生变化时,例如,当检测电容器的电容值由参考电容值C x变为C x+ΔC x时,积分器450的输出电压为: When C C = C X I 2 /I 1 is satisfied, when the capacitance value of the detection capacitor changes, for example, when the capacitance value of the detection capacitor changes from the reference capacitance value C x to C x +ΔC x , the integral The output voltage of the converter 450 is:
Figure PCTCN2020078259-appb-000018
Figure PCTCN2020078259-appb-000018
由公式(23)可以看出,多次重复执行上述操作过程,有利于提升电容检 测的灵敏度。It can be seen from formula (23) that repeating the above operation process several times is beneficial to improve the sensitivity of capacitance detection.
因此,本申请实施例的电容检测电路,通过先对检测电容器和校准电容器进行充电,然后通过第一电流源和第二电流源分别对检测电容器和校准电容器进行放电,从而能够达到通过第一电流源和第二电流源的电流值的比例关系控制所述参考电容值与所述校准电容器的电容值的比例关系的目的,因此,只要设置第一电流源的电流值大于所述第二电流源的电流值,就能够达到减小校准电容器的电容值的目的,进而能够减小电容检测电路的面积,降低芯片的成本。Therefore, the capacitance detection circuit of the embodiment of the present application first charges the detection capacitor and the calibration capacitor, and then discharges the detection capacitor and the calibration capacitor through the first current source and the second current source, respectively, so as to pass the first current. The proportional relationship between the current values of the power source and the second current source is the purpose of controlling the proportional relationship between the reference capacitance value and the capacitance value of the calibration capacitor. Therefore, it is only necessary to set the current value of the first current source to be greater than that of the second current source. The current value of, can achieve the purpose of reducing the capacitance value of the calibration capacitor, thereby reducing the area of the capacitance detection circuit and reducing the cost of the chip.
通过对屏蔽电极和感应电极进行分时驱动,从公式(10)可以看出,积分器的输出电压与屏蔽电极和感应电极之间形成的第一电容器Cm无关,这样,即使有水滴存在导致Cm发生变化,也不会影响到积分器的输出,即可以实现良好的防水功能,并且不会存在同时驱动带来的延迟问题。并且由于对屏蔽电极充电和感应电极充电是分时进行的,因此可以大大降低对屏蔽电极的驱动能力的要求,降低设计难度和功耗。By time-sharing the shielding electrode and the sensing electrode, it can be seen from formula (10) that the output voltage of the integrator has nothing to do with the first capacitor Cm formed between the shielding electrode and the sensing electrode. In this way, even the presence of water droplets causes Cm Changes will not affect the output of the integrator, that is, a good waterproof function can be achieved, and there will be no delay problems caused by simultaneous driving. In addition, since the charging of the shielding electrode and the charging of the sensing electrode are performed in a time-sharing manner, the requirement on the driving capability of the shielding electrode can be greatly reduced, and the design difficulty and power consumption can be reduced.
在其他实施例中,也可以利用图3和图5所示电路形成差分电路,进一步利用两个积分器的输出电压的差值确定是否有触摸,有利于抑制共模噪声,提升触摸检测的准确度。In other embodiments, the circuits shown in Figures 3 and 5 can also be used to form a differential circuit, and the difference between the output voltages of the two integrators can be further used to determine whether there is a touch, which is conducive to suppressing common mode noise and improving the accuracy of touch detection. Spend.
本申请实施例还提供了一种触控装置,图7示出了本申请实施例的触控600的示意性结构图,如图7所示,该触控装置600可以包括电容检测电路601,所述电容检测电路601可以为上述实施例中描述的电容检测电路。可选地,所述触控装置可以为电容传感器,用户可以操作所述电容传感器的传感区域,这样,用户和传感区域之间可以产生电容效应,进一步地,电容检测电路可以将该电容效应转换为电压信号,然后可以将电压信号转换为数字信号,进一步地,可以根据该数字信号确定用户操作电容传感器的信息,例如,触摸位置等信息。The embodiment of the present application also provides a touch control device. FIG. 7 shows a schematic structural diagram of the touch control 600 of the embodiment of the present application. As shown in FIG. 7, the touch control device 600 may include a capacitance detection circuit 601. The capacitance detection circuit 601 may be the capacitance detection circuit described in the foregoing embodiment. Optionally, the touch device may be a capacitive sensor, and the user may operate the sensing area of the capacitive sensor. In this way, a capacitance effect can be generated between the user and the sensing area. Further, the capacitance detection circuit may The effect is converted into a voltage signal, and then the voltage signal can be converted into a digital signal. Further, the information of the user operating the capacitive sensor can be determined based on the digital signal, for example, information such as touch position.
本申请实施例还提供了一种终端设备,图8示出了本申请实施例的终端设备700的示意性结构图,如图8所示,该终端设备可以包括电容检测电路701,所述电容检测电路701可以为上述实施例中描述的电容检测电路,该电容检测电路可以用于检测用户操作该电容检测电路的信息,例如触摸位置等信息。An embodiment of the present application also provides a terminal device. FIG. 8 shows a schematic structural diagram of a terminal device 700 of an embodiment of the present application. As shown in FIG. 8, the terminal device may include a capacitance detection circuit 701. The detection circuit 701 may be the capacitance detection circuit described in the foregoing embodiment, and the capacitance detection circuit may be used to detect information about a user operating the capacitance detection circuit, such as information such as a touch position.
作为示例而非限定,所述终端设备700可以为手机、平板电脑、笔记本 电脑、台式机电脑、车载电子设备或穿戴式智能设备等。As an example and not a limitation, the terminal device 700 may be a mobile phone, a tablet computer, a notebook computer, a desktop computer, an in-vehicle electronic device, or a wearable smart device.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific implementations of this application, but the protection scope of this application is not limited to this. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application. Should be covered within the scope of protection of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (21)

  1. 一种电容检测电路,连接至检测电容器,其特征在于,包括:A capacitance detection circuit, connected to a detection capacitor, is characterized in that it comprises:
    校准电容器;Calibration capacitor;
    屏蔽电极,所述屏蔽电极和所述检测电容器的检测电极形成第一电容器,所述屏蔽电极和系统地形成屏蔽电容器;A shield electrode, the shield electrode and the detection electrode of the detection capacitor form a first capacitor, and the shield electrode and the system ground form a shield capacitor;
    充放电模块,包括第一电流源和第二电流源,所述第一电流源用于对所述检测电容器、所述第一电容器和所述屏蔽电容器进行充电或放电,所述第二电流源用于对所述校准电容器进行充电或放电;The charging and discharging module includes a first current source and a second current source. The first current source is used to charge or discharge the detection capacitor, the first capacitor, and the shielding capacitor, and the second current source For charging or discharging the calibration capacitor;
    屏蔽电极驱动模块,用于对所述屏蔽电容器和所述第一电容器进行充电或放电;A shielding electrode driving module for charging or discharging the shielding capacitor and the first capacitor;
    所述积分器,用于将检测电容器的电容转化为电压信号;The integrator is used to convert the capacitance of the detection capacitor into a voltage signal;
    所述控制模块,用于控制所述充放电模块、所述积分器和所述屏蔽电极驱动模块的工作状态;The control module is used to control the working state of the charge and discharge module, the integrator and the shield electrode drive module;
    其中,在第一充放电阶段,所述屏蔽电极驱动模块对所述屏蔽电容器和所述第一电容器进行充电或放电以使所述屏蔽电容器上的电压为参考电压;Wherein, in the first charging and discharging stage, the shielding electrode driving module charges or discharges the shielding capacitor and the first capacitor so that the voltage on the shielding capacitor is a reference voltage;
    在所述第一充放电阶段之后的第二充放电阶段,所述第一电流源对所述检测电容器、所述第一电容器和所述屏蔽电容器进行充电或放电,所述第二电流源用于对所述校准电容器进行充电或放电,其中,在所述第二充放电阶段,所述检测电容器上的电压被充电至所述参考电压或被放电至所述参考电压。In the second charging and discharging phase after the first charging and discharging phase, the first current source charges or discharges the detection capacitor, the first capacitor, and the shielding capacitor, and the second current source uses In charging or discharging the calibration capacitor, in the second charging and discharging stage, the voltage on the detection capacitor is charged to the reference voltage or discharged to the reference voltage.
  2. 根据权利要求1所述的电容检测电路,其特征在于,所述电容检测电路还包括充放电开关组、清零开关组和积分开关组,所述积分器包括积分电容器和放大器,所述屏蔽电极驱动模块包括电压缓冲器;The capacitance detection circuit according to claim 1, wherein the capacitance detection circuit further comprises a charge and discharge switch group, a clear switch group, and an integration switch group, the integrator comprises an integration capacitor and an amplifier, and the shield electrode The drive module includes a voltage buffer;
    所述控制模块具体用于:The control module is specifically used for:
    在电荷清零阶段,通过所述清零开关组清零所述积分电容器上存储的电荷;In the charge clearing stage, the charge stored on the integrating capacitor is cleared by the clearing switch group;
    在所述第一充放电阶段,通过所述充放电开关组控制所述电压缓冲器对所述检测电容器、所述第一电容器和所述屏蔽电容器进行充电或放电;In the first charging and discharging stage, controlling the voltage buffer to charge or discharge the detection capacitor, the first capacitor and the shielding capacitor through the charging and discharging switch group;
    在所述第二充放电阶段,通过所述充放电开关组控制所述第一电流源和所述第二电流源分别对所述检测电容器和所述校准电容器进行充电或放电,其中,所述校准电容器的充电时长与所述检测电容器的充电时长相等,或所 述校准电容器的放电时长与所述检测电容器的放电时长相等;In the second charging and discharging stage, the first current source and the second current source are controlled by the charging and discharging switch group to charge or discharge the detection capacitor and the calibration capacitor, respectively, wherein the The charging duration of the calibration capacitor is equal to the charging duration of the detection capacitor, or the discharge duration of the calibration capacitor is the same as the discharge duration of the detection capacitor;
    在电荷转移阶段,通过所述积分开关组控制所述校准电容器上存储的部分电荷转移到所述积分电容器上。In the charge transfer phase, part of the charge stored on the calibration capacitor is controlled by the integration switch group to be transferred to the integration capacitor.
  3. 根据权利要求2所述的电容检测电路,所述充放电开关组包括第一开关、第二开关、第三开关、第四开关、第七开关和第八开关,所述积分开关组包括第五开关,所述清零开关组包括第六开关;The capacitance detection circuit according to claim 2, wherein the charging and discharging switch group includes a first switch, a second switch, a third switch, a fourth switch, a seventh switch, and an eighth switch, and the integrating switch group includes a fifth switch. A switch, the clearing switch group includes a sixth switch;
    所述第一开关的一端连接所述第一电流源的一端,所述第一电流源的另一端连接电源电压,所述第一开关的另一端连接所述检测电容器的一端、所述第三开关的一端以及所述第一电容器的一端,所述检测电容器的另一端和所述第三开关的另一端都接地;One end of the first switch is connected to one end of the first current source, the other end of the first current source is connected to the power supply voltage, and the other end of the first switch is connected to one end of the detection capacitor and the third One end of the switch and one end of the first capacitor, the other end of the detection capacitor and the other end of the third switch are all grounded;
    所述第二开关的一端连接所述第二电流源的一端,所述第二电流源的另一端连接电源电压,所述第二开关的另一端连接所述校准电容器的一端以及所述第四开关的一端,所述校准电容器的另一端和所述第四开关的另一端都接地;One end of the second switch is connected to one end of the second current source, the other end of the second current source is connected to the power supply voltage, and the other end of the second switch is connected to one end of the calibration capacitor and the fourth One end of the switch, the other end of the calibration capacitor and the other end of the fourth switch are all grounded;
    所述第五开关的一端连接所述校准电容器的一端,所述第五开关的另一端连接所述放大器的第一输入端,所述放大器的第二输入端用于输入所述参考电压;One end of the fifth switch is connected to one end of the calibration capacitor, the other end of the fifth switch is connected to the first input terminal of the amplifier, and the second input terminal of the amplifier is used to input the reference voltage;
    所述第六开关与所述积分电容器并联连接,所述积分电容器与所述放大器并联连接;The sixth switch is connected in parallel with the integration capacitor, and the integration capacitor is connected in parallel with the amplifier;
    所述第七开关的一端接地,所述第七开关的另一端连接所述第八开关的一端以及所述屏蔽电容器的一端;One end of the seventh switch is grounded, and the other end of the seventh switch is connected to one end of the eighth switch and one end of the shielding capacitor;
    所述第八开关的另一端连接所述电容缓冲器的输出端,所述电容缓冲器的输出电压为所述参考电压。The other end of the eighth switch is connected to the output end of the capacitor buffer, and the output voltage of the capacitor buffer is the reference voltage.
  4. 根据权利要求3所述的电容检测电路,其特征在于,在所述电荷清零阶段和所述第一充放电阶段之间还包括完全放电阶段,在所述完全放电阶段,所述检测电容器、所述校准电容器、所述第一电容器和所述屏蔽电容器上的电荷清零。The capacitance detection circuit according to claim 3, characterized in that, between the charge zeroing phase and the first charging and discharging phase, it further comprises a complete discharge phase, and in the complete discharge phase, the detection capacitor, The charges on the calibration capacitor, the first capacitor and the shielding capacitor are cleared.
  5. 根据权利要求4所述的电容检测电路,其特征在于,The capacitance detection circuit according to claim 4, wherein:
    在所述电荷清零阶段,所述第六开关闭合,所述第一开关、所述第二开关、所述第三开关、所述第四开关,所述第五开关,所述第七开关和所述第八开关都断开,清零所述积分电容器上存储的电荷;In the charge clearing phase, the sixth switch is closed, the first switch, the second switch, the third switch, the fourth switch, the fifth switch, and the seventh switch And the eighth switch are both disconnected, and the charge stored on the integrating capacitor is cleared;
    在所述完全放电阶段,所述第三开关,第四开关和第七开关闭合,所述第一开关、所述第二开关、所述第五开关、所述第六开关和所述第八开关都断开,清零所述检测电容器、所述校准电容器、所述第一电容器和所述屏蔽电容器上存储的电荷;In the complete discharge phase, the third switch, the fourth switch, and the seventh switch are closed, and the first switch, the second switch, the fifth switch, the sixth switch, and the eighth switch are closed. The switches are all turned off, and the charges stored on the detection capacitor, the calibration capacitor, the first capacitor and the shielding capacitor are cleared;
    在所述第一充放电阶段,所述第八开关闭合,所述第一开关、所述第二开关、所述第三开关、所述第四开关、所述第五开关、第六开关和所述第七开关都断开,所述电容缓冲器对所述检测电容器和所述第一电容器进行充电;In the first charging and discharging stage, the eighth switch is closed, the first switch, the second switch, the third switch, the fourth switch, the fifth switch, the sixth switch, and the All the seventh switches are turned off, and the capacitance buffer charges the detection capacitor and the first capacitor;
    在所述第二充放电阶段,所述第一开关、所述第二开关和第八开关闭合,所述第三开关、所述第四开关、所述第五开关、第六开关和第七开关都断开,所述检测电容器上的电压被充电至所述参考电压,在所述检测电容器上的电压被充电至所述参考电压之后,所述第一开关和所述第二开关断开;In the second charging and discharging stage, the first switch, the second switch, and the eighth switch are closed, and the third switch, the fourth switch, the fifth switch, the sixth switch, and the seventh switch are closed. The switches are all turned off, the voltage on the detection capacitor is charged to the reference voltage, and after the voltage on the detection capacitor is charged to the reference voltage, the first switch and the second switch are turned off ;
    在所述电荷转移阶段,所述第五开关闭合,所述第一开关、所述第二开关、所述第三开关、所述第四开关、所述第六开关、第七开关和第八开关都断开,所述校准电容器上的部分电荷转移到所述积分电容器。In the charge transfer phase, the fifth switch is closed, and the first switch, the second switch, the third switch, the fourth switch, the sixth switch, the seventh switch, and the eighth switch are closed. The switches are all turned off, and part of the charge on the calibration capacitor is transferred to the integrating capacitor.
  6. 根据权利要求4或5所述的电容检测电路,其特征在于,在所述第二充放电阶段和所述电荷转移阶段之间还包括第一缓冲阶段,在所述电荷转移阶段之后还包括第二缓冲阶段,所述第一缓冲阶段和所述第二缓冲阶段用于保持所述检测电容器、所述校准电容器和所述积分电容上的电荷不变;The capacitance detection circuit according to claim 4 or 5, wherein a first buffer stage is further included between the second charge and discharge stage and the charge transfer stage, and a first buffer stage is further included after the charge transfer stage. A second buffering stage, where the first buffering stage and the second buffering stage are used to keep the charges on the detection capacitor, the calibration capacitor, and the integration capacitor unchanged;
    其中,在所述第一缓冲阶段和所述第二缓冲阶段,所述第一开关、所述第二开关、所述第三开关、所述第四开关、所述第五开关、所述第六开关、所述第七开关和所述第八开关都断开。Wherein, in the first buffer stage and the second buffer stage, the first switch, the second switch, the third switch, the fourth switch, the fifth switch, and the first switch The sixth switch, the seventh switch, and the eighth switch are all turned off.
  7. 根据权利要求6所述的电容检测电路,其特征在于,所述控制模块还用于:The capacitance detection circuit according to claim 6, wherein the control module is further used for:
    控制所述充放电开关组、所述积分开关组和所述清零开关组多次重复执行从所述完全放电阶段至所述第二缓冲阶段中的操作。The charge and discharge switch group, the integral switch group, and the clear switch group are controlled to repeatedly perform operations from the full discharge stage to the second buffer stage for multiple times.
  8. 根据权利要求7所述的电容检测电路,其特征在于,所述积分器的输出电压V out为: The capacitance detection circuit according to claim 7, wherein the output voltage V out of the integrator is:
    Figure PCTCN2020078259-appb-100001
    Figure PCTCN2020078259-appb-100001
    其中,所述V R为所述参考电压,所述ΔC x为所述检测电容器相对于所述 检测电容器的基础电容的变化量,所述C S为所述积分电容器的电容值,所述I 1为所述第一电流源的电流值,所述I 2为所述第二电流源的电流值,所述N为所述充放电阶段至所述第二缓冲阶段的执行次数。 Wherein the said reference voltage V R, the change amount ΔC x with respect to the base capacitance of the detecting capacitor detecting capacitor C S is the capacitance value of the integrating capacitor, the I 1 is the current value of the first current source, the I 2 is the current value of the second current source, and the N is the number of executions from the charge-discharge stage to the second buffer stage.
  9. 根据权利要求2所述的电容检测电路,所述充放电开关组包括第一开关、第二开关、第三开关和第四开关、第七开关和第八开关,所述积分开关组包括第五开关,所述清零开关组包括第六开关;The capacitance detection circuit according to claim 2, wherein the charging and discharging switch group includes a first switch, a second switch, a third switch and a fourth switch, a seventh switch and an eighth switch, and the integrating switch group includes a fifth switch. A switch, the clearing switch group includes a sixth switch;
    所述第一开关的一端连接所述第一电流源的一端,所述第一电流源的另一端接地,所述第一开关的另一端连接所述检测电容器的一端、所述第三开关的一端以及所述第一电容器的一端,所述检测电容器的另一端接地,所述第三开关的另一端连接电源电压;One end of the first switch is connected to one end of the first current source, the other end of the first current source is grounded, and the other end of the first switch is connected to one end of the detection capacitor and the third switch. One end and one end of the first capacitor, the other end of the detection capacitor is grounded, and the other end of the third switch is connected to a power supply voltage;
    所述第二开关的一端连接所述第二电流源的一端,所述第二电流源的另一端接地,所述第二开关的另一端连接所述校准电容器的一端以及所述第四开关的一端,所述校准电容器的另一端接地,所述第四开关的另一端连接电源电压;One end of the second switch is connected to one end of the second current source, the other end of the second current source is grounded, and the other end of the second switch is connected to one end of the calibration capacitor and the fourth switch. One end, the other end of the calibration capacitor is grounded, and the other end of the fourth switch is connected to the power supply voltage;
    所述第五开关的一端连接所述校准电容器的一端,所述第五开关的另一端连接所述放大器的第一输入端,所述放大器的第二输入端用于输入所述参考电压;所述第六开关与所述积分电容器并联连接,所述积分电容器与所述放大器并联连接;One end of the fifth switch is connected to one end of the calibration capacitor, the other end of the fifth switch is connected to the first input terminal of the amplifier, and the second input terminal of the amplifier is used to input the reference voltage; The sixth switch is connected in parallel with the integrating capacitor, and the integrating capacitor is connected in parallel with the amplifier;
    所述第七开关的一端接电源电压,所述第七开关的另一端连接所述屏蔽电容器的一端以及所述第八开关的一端;One end of the seventh switch is connected to the power supply voltage, and the other end of the seventh switch is connected to one end of the shielding capacitor and one end of the eighth switch;
    所述第八开关的另一端接所述电压缓冲器的输出端,所述电容缓冲器的输出电压为所述参考电压。The other end of the eighth switch is connected to the output end of the voltage buffer, and the output voltage of the capacitor buffer is the reference voltage.
  10. 根据权利要求9所述的电容检测电路,其特征在于,在所述电荷清零阶段和所述第一充放电阶段之间还包括完全充电阶段,在所述完全充电阶段,所述检测电容器、所述校准电容器、所述屏蔽电容器和所述第一电容器的一端被充电至电源电压。The capacitance detection circuit according to claim 9, characterized in that, between the charge zero phase and the first charging and discharging phase, it further comprises a full charging phase, and in the full charging phase, the detection capacitor, One end of the calibration capacitor, the shielding capacitor, and the first capacitor is charged to a power supply voltage.
  11. 根据权利要求10所述的电容检测电路,其特征在于,在所述电荷清零阶段,所述第六开关闭合,所述第一开关、所述第二开关、所述第三开关、所述第四开关、所述第五开关、第七开关和第八开关都断开,清零所述积分电容器上存储的电荷;The capacitance detection circuit according to claim 10, wherein in the charge zero phase, the sixth switch is closed, and the first switch, the second switch, the third switch, and the The fourth switch, the fifth switch, the seventh switch, and the eighth switch are all turned off, and the charge stored on the integrating capacitor is cleared;
    在所述完全充电阶段,所述第三开关、第四开关和第七开关闭合,所述 第一开关、所述第二开关、所述第五开关、所述第六开关和第八开关都断开,所述检测电容器、所述校准电容器、所述屏蔽电容器和所述第一电容器上的电压都被充电至所述电源电压;In the full charging phase, the third switch, the fourth switch, and the seventh switch are closed, and the first switch, the second switch, the fifth switch, the sixth switch, and the eighth switch are all closed. When disconnected, the voltages on the detection capacitor, the calibration capacitor, the shielding capacitor, and the first capacitor are all charged to the power supply voltage;
    在所述第一充放电阶段,所述第八开关闭合,所述第一开关、所述第二开关、所述第三开关、所述第四开关、所述第五开关、第六开关和所述第七开关都断开,所述电容缓冲器对所述检测电容器、所述屏蔽电容器和所述第一电容器进行放电;In the first charging and discharging stage, the eighth switch is closed, the first switch, the second switch, the third switch, the fourth switch, the fifth switch, the sixth switch, and the The seventh switches are all turned off, and the capacitance buffer discharges the detection capacitor, the shielding capacitor, and the first capacitor;
    在所述第二充放电阶段,所述第一开关、所述第二开关和所述第八开关闭合,所述第三开关、所述第四开关、所述第五开关、第六开关和第七开关都断开,所述检测电容器上的电压从所述电源电压被放电至所述参考电压,在所述检测电容器上的电压被放电至所述参考电压之后,所述第一开关和所述第二开关断开;In the second charging and discharging stage, the first switch, the second switch, and the eighth switch are closed, and the third switch, the fourth switch, the fifth switch, and the sixth switch are closed. The seventh switch is all turned off, the voltage on the detection capacitor is discharged from the power supply voltage to the reference voltage, and after the voltage on the detection capacitor is discharged to the reference voltage, the first switch and The second switch is off;
    在所述电荷转移阶段,所述第五开关闭合,所述第一开关、所述第二开关、所述第三开关、所述第四开关、所述第六开关、第七开关和第八开关都断开,所述校准电容器上的部分电荷转移到所述积分电容器。In the charge transfer phase, the fifth switch is closed, and the first switch, the second switch, the third switch, the fourth switch, the sixth switch, the seventh switch, and the eighth switch are closed. The switches are all turned off, and part of the charge on the calibration capacitor is transferred to the integrating capacitor.
  12. 根据权利要求11所述的电容检测电路,其特征在于,在所述第二放电阶段和所述电荷转移阶段之间还包括第一缓冲阶段,在所述电荷转移阶段之后还包括第二缓冲阶段,所述第一缓冲阶段和所述第二缓冲阶段用于保持所述检测电容器、所述校准电容器,所述第一电容器和所述第二电容器和所述积分电容上的电荷不变;The capacitance detection circuit according to claim 11, wherein a first buffer stage is further included between the second discharge stage and the charge transfer stage, and a second buffer stage is further included after the charge transfer stage. , The first buffer stage and the second buffer stage are used to keep the charge on the detection capacitor, the calibration capacitor, the first capacitor, the second capacitor, and the integration capacitor unchanged;
    其中,在所述第一缓冲阶段和所述第二缓冲阶段,所述第一开关、所述第二开关、所述第三开关、所述第四开关、所述第五开关,所述第六开关,第七开关和第八开关都断开。Wherein, in the first buffer stage and the second buffer stage, the first switch, the second switch, the third switch, the fourth switch, the fifth switch, and the first switch The sixth switch, the seventh switch and the eighth switch are all off.
  13. 根据权利要求12所述的电容检测电路,其特征在于,所述控制模块还用于:The capacitance detection circuit according to claim 12, wherein the control module is further configured to:
    控制所述充放电开关组、所述积分开关组和所述清零开关组多次重复执行从所述充放电阶段至所述第二缓冲阶段中的操作。The charge and discharge switch group, the integral switch group, and the clear switch group are controlled to repeatedly perform operations from the charge and discharge stage to the second buffer stage for multiple times.
  14. 根据权利要求13所述的电容检测电路,其特征在于,所述积分器的输出电压V out为: The capacitance detection circuit according to claim 13, wherein the output voltage V out of the integrator is:
    Figure PCTCN2020078259-appb-100002
    Figure PCTCN2020078259-appb-100002
    其中,V R为所述参考电压,所述ΔC x为所述检测电容器相对于参考电容值的变化量,所述C S为所述积分电容器的电容值,所述I 1为所述第一电流源的电流值,所述I 2为所述第二电流源的电流值,所述V DD为所述电源电压,所述N为所述充放电阶段至所述第二缓冲阶段的执行次数。 Wherein, V R is the reference voltage, the detecting capacitor ΔC x is the amount of change to the reference capacitance, the C S is the capacitance value of the integration capacitor, said I 1 is the first The current value of the current source, the I 2 is the current value of the second current source, the V DD is the power supply voltage, and the N is the number of executions from the charge-discharge stage to the second buffer stage .
  15. 根据权利要求1至14中任一项所述的电容检测电路,其特征在于,所述电容检测电路还包括比较器,所述比较器的第一输入端连接所述检测电容器,所述比较器的第二输入端用于输入所述参考电压,所述比较器的输出端连接所述控制模块;The capacitance detection circuit according to any one of claims 1 to 14, wherein the capacitance detection circuit further comprises a comparator, the first input terminal of the comparator is connected to the detection capacitor, and the comparator The second input terminal is used to input the reference voltage, and the output terminal of the comparator is connected to the control module;
    在所述检测电容器的电压达到所述参考电压时,所述比较器的输出信号发生翻转,所述控制模块控制所述充放电模块停止对所述检测电容器和所述校准电容器进行充电或放电。When the voltage of the detection capacitor reaches the reference voltage, the output signal of the comparator is inverted, and the control module controls the charging and discharging module to stop charging or discharging the detection capacitor and the calibration capacitor.
  16. 根据权利要求1至15中任一项所述的电容检测电路,其特征在于,所述电容检测电路还包括处理模块,用于根据所述积分器的输出电压确定所述检测电容器的电容值相对于所述检测电容器的基础电容的变化量。The capacitance detection circuit according to any one of claims 1 to 15, wherein the capacitance detection circuit further comprises a processing module for determining the relative capacitance of the detection capacitor according to the output voltage of the integrator The amount of change in the basic capacitance of the detection capacitor.
  17. 根据权利要求1至16中任一项所述的电容检测电路,其特征在于,所述校准电容器用于在所述检测电容器的电容值为参考电容值时使得所述积分器的输出电压为参考电压,其中,所述参考电容值和所述校准电容器的电容值的比值等于所述第一电流源的电流值和所述第二电流源的电流值的比值。The capacitance detection circuit according to any one of claims 1 to 16, wherein the calibration capacitor is used to make the output voltage of the integrator a reference when the capacitance value of the detection capacitor is a reference capacitance value Voltage, wherein the ratio of the reference capacitance value to the capacitance value of the calibration capacitor is equal to the ratio of the current value of the first current source to the current value of the second current source.
  18. 根据权利要求1至17中任一项所述的电容检测电路,其特征在于,所述第一电流源的电流值大于所述第二电流源的电流值。The capacitance detection circuit according to any one of claims 1 to 17, wherein the current value of the first current source is greater than the current value of the second current source.
  19. 根据权利要求1至18中任一项所述的电容检测电路,其特征在于,所述电容检测电路应用于电容传感器中,所述检测电容器为所述电容传感器的传感器电容,未操作所述电容传感器时所述传感器电容的电容值为参考电容值。The capacitance detection circuit according to any one of claims 1 to 18, wherein the capacitance detection circuit is applied to a capacitance sensor, the detection capacitor is the sensor capacitance of the capacitance sensor, and the capacitance is not operated. The capacitance value of the sensor capacitance in the sensor is the reference capacitance value.
  20. 一种触控装置,其特征在于,包括:A touch device is characterized in that it comprises:
    如权利要求1至19中任一项所述的电容检测电路。The capacitance detection circuit according to any one of claims 1 to 19.
  21. 一种终端设备,其特征在于,包括:A terminal device, characterized in that it comprises:
    如权利要求1至19中任一项所述的电容检测电路。The capacitance detection circuit according to any one of claims 1 to 19.
PCT/CN2020/078259 2020-03-06 2020-03-06 Capacitive detection circuit, touch device, and terminal apparatus WO2021174543A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2020/078259 WO2021174543A1 (en) 2020-03-06 2020-03-06 Capacitive detection circuit, touch device, and terminal apparatus
CN202080001582.9A CN111801584B (en) 2020-03-06 2020-03-06 Capacitance detection circuit, touch device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/078259 WO2021174543A1 (en) 2020-03-06 2020-03-06 Capacitive detection circuit, touch device, and terminal apparatus

Publications (1)

Publication Number Publication Date
WO2021174543A1 true WO2021174543A1 (en) 2021-09-10

Family

ID=72834284

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/078259 WO2021174543A1 (en) 2020-03-06 2020-03-06 Capacitive detection circuit, touch device, and terminal apparatus

Country Status (2)

Country Link
CN (1) CN111801584B (en)
WO (1) WO2021174543A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115981507A (en) * 2023-03-20 2023-04-18 上海海栎创科技股份有限公司 Touch sensing system
CN116317545A (en) * 2023-05-11 2023-06-23 上海泰矽微电子有限公司 Negative-pressure charge transfer circuit and capacitive touch detection circuit

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112505427B (en) * 2020-11-17 2023-04-07 上海美仁半导体有限公司 Capacitance measuring circuit and measuring method
CN114640335A (en) * 2022-05-09 2022-06-17 深圳市航顺芯片技术研发有限公司 Button waterproof circuit, button and electronic equipment
CN114755573B (en) * 2022-06-16 2022-08-23 南京沁恒微电子股份有限公司 Multi-touch key detection method and module, MCU and computer storage medium thereof
CN115601795B (en) * 2022-12-05 2023-04-21 深圳市汇顶科技股份有限公司 Capacitive fingerprint detection circuit, capacitive fingerprint detection device and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030016849A1 (en) * 2001-04-27 2003-01-23 Andrade Thomas L. Capacitive sensor system with improved capacitance measuring sensitivity
CN104808880A (en) * 2014-01-29 2015-07-29 辛纳普蒂克斯显像装置株式会社 Touch detecting circuit and semiconductor integrated circuit using the same
US9151792B1 (en) * 2014-05-29 2015-10-06 Cyress Semiconductor Corporation High-voltage, high-sensitivity self-capacitance sensing
CN105372514A (en) * 2014-07-18 2016-03-02 商升特公司 Measuring circuit and measuring method for a capacitive touch-sensitive panel
CN107346196A (en) * 2017-06-08 2017-11-14 深圳信炜科技有限公司 Capacitance-type sensing device and electronic equipment
CN208013309U (en) * 2018-01-24 2018-10-26 深圳市汇顶科技股份有限公司 Capacitive detection circuit, touch device and terminal device
CN109960441A (en) * 2017-12-26 2019-07-02 广州派高智能科技有限公司 Touch detection circuit and the semiconductor integrated circuit for having the touch detection circuit
CN110596465A (en) * 2019-10-24 2019-12-20 深圳市汇顶科技股份有限公司 Capacitance detection circuit, touch device and terminal equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030016849A1 (en) * 2001-04-27 2003-01-23 Andrade Thomas L. Capacitive sensor system with improved capacitance measuring sensitivity
CN104808880A (en) * 2014-01-29 2015-07-29 辛纳普蒂克斯显像装置株式会社 Touch detecting circuit and semiconductor integrated circuit using the same
US9151792B1 (en) * 2014-05-29 2015-10-06 Cyress Semiconductor Corporation High-voltage, high-sensitivity self-capacitance sensing
CN105372514A (en) * 2014-07-18 2016-03-02 商升特公司 Measuring circuit and measuring method for a capacitive touch-sensitive panel
CN107346196A (en) * 2017-06-08 2017-11-14 深圳信炜科技有限公司 Capacitance-type sensing device and electronic equipment
CN109960441A (en) * 2017-12-26 2019-07-02 广州派高智能科技有限公司 Touch detection circuit and the semiconductor integrated circuit for having the touch detection circuit
CN208013309U (en) * 2018-01-24 2018-10-26 深圳市汇顶科技股份有限公司 Capacitive detection circuit, touch device and terminal device
CN110596465A (en) * 2019-10-24 2019-12-20 深圳市汇顶科技股份有限公司 Capacitance detection circuit, touch device and terminal equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115981507A (en) * 2023-03-20 2023-04-18 上海海栎创科技股份有限公司 Touch sensing system
CN115981507B (en) * 2023-03-20 2023-06-02 上海海栎创科技股份有限公司 Touch sensing system
CN116317545A (en) * 2023-05-11 2023-06-23 上海泰矽微电子有限公司 Negative-pressure charge transfer circuit and capacitive touch detection circuit
CN116317545B (en) * 2023-05-11 2023-08-08 上海泰矽微电子有限公司 Negative-pressure charge transfer circuit and capacitive touch detection circuit

Also Published As

Publication number Publication date
CN111801584B (en) 2022-05-03
CN111801584A (en) 2020-10-20

Similar Documents

Publication Publication Date Title
WO2021174543A1 (en) Capacitive detection circuit, touch device, and terminal apparatus
CN110300897B (en) Capacitance detection circuit, touch device and terminal equipment
CN208013309U (en) Capacitive detection circuit, touch device and terminal device
US10627972B2 (en) Capacitance detecting device, touch device and terminal device
KR102267365B1 (en) Multi-step incremental switching scheme
US10949032B2 (en) Circuit, touch chip, and electronic device for capacitance detection
US10921938B2 (en) Capacitance detecting circuit, touch detecting device and terminal device
US10641805B2 (en) Capacitance detection method and capacitance detection apparatus using the same
CN105183248B (en) Capacitance detection circuit, touch detection circuit, and semiconductor integrated circuit including the same
US8436263B2 (en) Noise resistant capacitive sensor
US20120256869A1 (en) Active integrator for a capacitive sense array
WO2017113760A1 (en) Integrator circuit and capacitance sensing circuit
US20140004905A1 (en) Directional capacitive proximity sensor with bootstrapping
CN111399679B (en) Capacitance detection device
KR101844848B1 (en) Touch Detection Method and Touch Detection Apparatus
CN109073692A (en) Capacitive detection circuit, touch detecting apparatus and terminal device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20922866

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20922866

Country of ref document: EP

Kind code of ref document: A1