WO2018085972A1 - Capacitor detection circuit and control method therefor - Google Patents

Capacitor detection circuit and control method therefor Download PDF

Info

Publication number
WO2018085972A1
WO2018085972A1 PCT/CN2016/105002 CN2016105002W WO2018085972A1 WO 2018085972 A1 WO2018085972 A1 WO 2018085972A1 CN 2016105002 W CN2016105002 W CN 2016105002W WO 2018085972 A1 WO2018085972 A1 WO 2018085972A1
Authority
WO
WIPO (PCT)
Prior art keywords
capacitor
reference voltage
capacitance
comparator
amplifier
Prior art date
Application number
PCT/CN2016/105002
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/CN2016/105002 priority Critical patent/WO2018085972A1/en
Priority to CN201680001494.2A priority patent/CN106796259B/en
Publication of WO2018085972A1 publication Critical patent/WO2018085972A1/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
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D5/00Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable
    • G01D5/12Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means
    • G01D5/14Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means influencing the magnitude of a current or voltage
    • G01D5/24Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means influencing the magnitude of a current or voltage by varying capacitance

Definitions

  • Embodiments of the present invention relate to the field of electronic technologies, and in particular, to a capacitance detecting circuit and a control method thereof.
  • capacitive sensors are commonly used as input devices and are widely used in a variety of electronic systems to provide information about the input (such as position, motion, force, duration, etc.) to the electronic system.
  • the user generates a capacitive effect by sensing (eg, approaching, contacting, pressing, sliding, etc.) one or more sensing regions of the capacitive sensor, and by measuring the capacitive effect, the user's operation can be determined.
  • the capacitance detection circuit is the core of the capacitive sensor, and its circuit design directly affects the overall cost and power consumption of the capacitive sensor.
  • Figure 1 shows the existing capacitance detection circuit diagram, including the capacitor C x to be detected, the integrator F x and the analog-to-digital converter ADC.
  • the first end of the capacitor C x to be detected is connected to the analog-to-digital converter ADC through an integrator F x
  • the second end of the capacitor C x to be detected is grounded to GND 0 .
  • the integrator F x converts the capacitive effect into a voltage amount, and then samples and quantizes it into a digital quantity through an analog-to-digital converter ADC, thereby performing capacitance detection.
  • the inventors have found that the prior art has the following problems: the existing capacitance detecting circuit is relatively complicated, and the analog to digital converter ADC is used, resulting in a very large area and power consumption of the capacitance detecting circuit. It is very disadvantageous for capacitive sensors.
  • An object of embodiments of the present invention is to provide a capacitance detecting circuit and a controller thereof
  • the method simplifies the circuit structure and directly converts the capacitance value into a digital quantity, which greatly reduces the area and power consumption of the capacitance detecting circuit.
  • an embodiment of the present invention provides a capacitance detecting circuit, including: a switched capacitor amplifier, a comparator, and a timing control unit; the switched capacitor amplifier includes an N capacitor branch connected to a capacitor to be detected Variable capacitance array; wherein N is a natural number and N>1; a first input of the comparator is coupled to an output of the switched capacitor amplifier, and a second input of the comparator is coupled to a first reference a voltage; an input of the timing control unit is coupled to an output of the comparator, an output of the timing control unit is coupled to a capacitance adjustment terminal of the variable capacitor array; wherein, in N clock cycles, The timing control unit sequentially disables N capacitor branches in the variable capacitor array, and the output of the comparator sequentially outputs N digital quantities for characterizing the capacitance to be detected.
  • the embodiment of the present invention further provides a method for controlling a capacitance detecting circuit, which is applied to the above-mentioned capacitance detecting circuit, and the control method includes: controlling the switched capacitor amplifier to enter the first non in the i+1th clock cycle An overlap phase; in the non-overlap phase, discharging the switched capacitor amplifier, and when i+1 ⁇ 2, if the comparator outputs the ith number in the ith clock cycle The quantity is 0, enabling the Nith capacitor branch in the variable capacitor array; controlling the switched capacitor amplifier to enter a reset phase; in the reset phase, charging the switched capacitor amplifier; controlling the The switched capacitor amplifier enters a second non-overlapping phase; in the second non-overlapping phase, the N-(i+1)th capacitive branch in the variable capacitor array is disabled; and the switched capacitor is controlled
  • an embodiment of the present invention provides a capacitance detecting circuit including a switched capacitor amplifier, a comparator, and a timing control unit.
  • the switched capacitor amplifier includes a variable capacitor array with N capacitive branches (N is a natural number and N > 1). Timing control in N clock cycles
  • the unit sequentially disables the N capacitor branches in the variable capacitor array, and the output ends of the comparator sequentially output N digital quantities for characterizing the capacitor to be detected; that is, the analog-to-digital converter ADC is omitted in the embodiment of the present invention, and
  • the capacitance value of the capacitor to be detected is directly converted into a digital quantity by successive approximation, which simplifies the circuit structure and greatly reduces the area and power consumption of the capacitance detecting circuit.
  • the first reference voltage is greater than the third reference voltage and smaller than the second reference voltage
  • the first input end and the second input end of the comparator are a non-inverting input end and an inverting input end, respectively.
  • a connection mode of the switched capacitor amplifier and the comparator is provided.
  • the first reference voltage is greater than the second reference voltage and smaller than the third reference voltage
  • the first input end and the second input end of the comparator are respectively an inverting input end and a non-inverting input end.
  • another connection mode of the switched capacitor amplifier and the comparator is provided.
  • the first reference voltage is half of a sum of the second reference voltage and the third reference voltage.
  • a value manner of the first reference voltage is provided, so that the circuit reduces the calculation amount and saves power consumption.
  • the timing control unit is a timing control circuit; or the timing control unit is a control chip. In this embodiment, two implementations of the timing control unit are provided.
  • FIG. 1 is a schematic diagram of a capacitance detecting circuit in the background art
  • FIG. 2 is a schematic diagram of a capacitance detecting circuit of the first embodiment
  • FIG. 3 is a schematic diagram of a variable capacitor array in the first embodiment
  • FIG. 4 is a schematic diagram showing timing control of a capacitance detecting circuit in a third embodiment
  • FIG. 5 is a schematic diagram of the capacitance detecting circuit in the first non-overlapping phase in the third embodiment
  • FIG. 6 is a schematic diagram of the capacitance detecting circuit of the third embodiment in a reset phase
  • FIG. 7 is a schematic diagram of the capacitance detecting circuit of the third embodiment in a second non-overlapping phase
  • Fig. 8 is a schematic view showing the capacitance detecting circuit of the third embodiment in an amplification stage.
  • a first embodiment of the invention relates to a capacitance detecting circuit.
  • the capacitance detecting circuit includes a switched capacitor amplifier, a comparator C omp, and a timing control unit H.
  • the first input of the comparator C omp is connected to the output of the switched capacitor amplifier, and the second input of the comparator C omp is connected to the first reference voltage V cm .
  • the switched capacitor amplifier is connected to the capacitor to be detected is C x, which has N comprising a variable capacitance array capacitor branch C c, the operational amplifier O p, feedback capacitor C f, and the first to fifth switches S 0 ⁇ S 4 ; wherein N is a natural number and N>1.
  • the first end of the capacitor C x to be detected is connected to the second reference voltage V refp through the first switch S 0 , and the second end of the capacitor C x to be detected is grounded to GND 0 .
  • the first end of the variable capacitor array C c is connected to the third reference voltage V refn through the second switch S 1 , and is connected to the first end and the fourth switch S 3 of the capacitor C x to be detected through the third switch S 2 ;
  • the second end of the variable capacitance array C c is connected to the third reference voltage V refn .
  • Inverting input terminal of the operational amplifier O p is connected through a fourth switch S 3 to be detected the capacitance C x of the first terminal and the third switch S 2, the operational amplifier O p-inverting input terminal is connected to a first reference voltage V cm .
  • a feedback capacitor C f S 4 and the fifth switch are connected across the inverting input terminal and the output terminal of the operational amplifier O p.
  • the variable capacitor array C c in this embodiment includes N capacitor branches, and each capacitor branch includes a capacitor C i and a branch switch S c,i .
  • each capacitor branch includes a capacitor C i and a branch switch S c,i .
  • branch switch S c,i is turned on, indicating that the capacitor C i is connected to the variable capacitor array C c ; the switch S c,i is disconnected, indicating that the capacitor C i is removed from the variable capacitor array C c .
  • the present embodiment does not impose any limitation on the capacitance of each capacitor branch, and can be set by a person skilled in the art according to actual needs.
  • the timing control unit H is configured to generate a control signal of the variable capacitance array C c and the first to fifth switches (S 0 to 4 ).
  • the input of the timing control unit H is connected to the output D of the comparator C omp , and the output of the timing control unit H is connected to the capacitance regulating terminal of the variable capacitor array C c .
  • the timing control unit H includes first to fourth control terminals.
  • the first control end is connected to the first switch S 0 and the second switch S 1 ; the second control end is connected to the third switch S 2 and the fourth switch S 3 ; the third control end is connected to the fifth switch S 4 ;
  • the control terminal ie, the output of the timing control unit H is connected to the capacitance regulating terminal of the variable capacitance array C c .
  • the timing control unit H can be understood as a timing control unit comprising a successive approximation register (SAR); the successive approximation register is used to generate a control signal of the variable capacitance array C c from the output signal of the comparator C omp .
  • SAR successive approximation register
  • the timing control unit H is a timing control circuit; that is, a control signal is generated by hardware.
  • the timing control unit H is a control chip; that is, the timing control signal is generated by software; however, the specific implementation manner of the timing control unit H is not limited in this embodiment, and may be specifically designed according to actual conditions.
  • the first reference voltage V cm is between the second reference voltage V refp and the third reference voltage V refn .
  • the first reference voltage V cm is greater than the third reference voltage V refn and smaller than the second reference voltage V refp .
  • the first input end and the second input end of the comparator C omp are the positive phase input end and the opposite end respectively. Phase input.
  • the first reference voltage V cm can be set to be half of the sum of the second reference voltage V refp and the third reference voltage V refn ; thereby reducing the calculation amount of the circuit and saving power consumption;
  • the set value of the test voltage V cm is not limited as long as it satisfies between the second reference voltage V refp and the third reference voltage V refn .
  • the one-time detecting process for the capacitance detecting circuit substantially includes N clock cycles; in N clock cycles, the timing control unit H sequentially disables the N capacitor branches in the variable capacitor array C c
  • the output terminal D of the comparator C omp sequentially outputs N digital quantities d N-1 ⁇ 0 for characterizing the capacitance C x to be detected. That is, the capacitance value of the capacitor Cx to be detected is directly converted into N digital quantities by successive approximation.
  • the converted N digital quantities also change; therefore, By continuously detecting multiple times and comparing the changes of N digital quantities, the change of the capacitance to be detected can be detected in real time.
  • Embodiments of the present invention provide a capacitance detecting circuit including a switched capacitor amplifier, a comparator, and a timing control unit with respect to the prior art.
  • the switched capacitor amplifier includes a variable capacitor array with N capacitive branches (N is a natural number and N > 1).
  • the timing control unit disables the N capacitor branches in the variable capacitor array in descending order of capacitance values, and the output terminals of the comparator sequentially output N capacitors for characterizing the capacitor to be detected.
  • the digital quantity that is, the existing analog-to-digital converter ADC is omitted in the embodiment of the present invention, and the circuit value is simplified by directly converting the capacitance value of the capacitor to be detected into a digital quantity by a binary search algorithm or the like, thereby simplifying the circuit structure.
  • the area of the capacitance detecting circuit and the power consumption are greatly reduced.
  • a second embodiment of the present invention relates to a capacitance detecting circuit.
  • the second embodiment is substantially the same as the first embodiment.
  • the main difference is that in the first embodiment, the first reference voltage is greater than the third reference voltage and smaller than the second reference voltage, and the first input end of the comparator
  • the two input terminals are a positive phase input terminal and an inverting input terminal, respectively.
  • the first reference voltage is greater than the second reference voltage and less than the third reference voltage, and the first input end and the second input end of the comparator They are the inverting input and the positive input.
  • Embodiments of the present invention provide another way of connecting a switched capacitor amplifier to a comparator with respect to the first embodiment.
  • a third embodiment of the present invention relates to a method of controlling a capacitance detecting circuit, which is applied to a capacitance detecting circuit in the first embodiment or the second embodiment.
  • the control method of this embodiment can be understood as performing continuous multiple detections on the capacitance to be detected.
  • the one-time detection process of the detection capacitor essentially includes N clock cycles. In each clock cycle, the comparator outputs a digital quantity; that is, the N digital quantities sequentially output by the comparator are used to characterize the capacitance to be detected.
  • the primary circuit detecting process includes N clock cycles.
  • the first control terminal of the timing control unit H generates a clock signal ⁇ 1 to control the first switch S0 and the second switch S1
  • the second control terminal generates a clock signal ⁇ 2 to control the third switch S2 and the fourth switch S3
  • the third control terminal generates a signal ⁇ 3 to control the fifth switch S4
  • the fourth control terminal generates a signal ⁇ c,0 to control the branch switch Sc,0.
  • ⁇ 1 and ⁇ 2 are two-phase non-overlapping clocks
  • clk is the system clock
  • T1 is the first conversion (T1 to N indicate the first to Nth conversions); when the rising edge of the start signal comes, the detection process starts.
  • the timing control unit has similar control signals to the switched capacitor amplifier output; as follows:
  • the switched-capacitor amplifier is controlled to enter the first non-overlapping phase.
  • the switched capacitor amplifier discharges, and when i+1 ⁇ 2, if the ith digital quantity output by the comparator in the ith clock cycle is 0, the variable capacitor is enabled.
  • the Ni-th capacitor branch in the array if the ith digital quantity output by the comparator in the ith clock cycle is 0, the variable capacitor is enabled.
  • the switched-capacitor amplifier is controlled to enter the reset phase. During the reset phase, the switched capacitor amplifier is charged.
  • the switched-capacitor amplifier is controlled to enter a second non-overlapping phase.
  • the N-th (i+1)th capacitor branch in the variable capacitor array is disabled.
  • the switched-capacitor amplifier is controlled to enter the amplification phase.
  • the comparator outputs the i+1th digital quantity.
  • the switched capacitor amplifier is controlled to enter the first non-overlapping phase A 1 .
  • the feedback capacitor C f is discharged.
  • the switched capacitor amplifier is controlled to enter the reset phase B.
  • the switches S 0 ⁇ 1 are closed; the capacitance C x to be measured is charged, and the variable capacitance array C c is discharged.
  • the amount of charge in the variable capacitor array C c is zero before entering the reset phase B, there is no charge flow between the ends of the variable capacitor array C c after entering the reset phase B (not After experiencing the actual discharge process); if the voltage at one end of the variable capacitor array C c is greater than the voltage at the other end before entering the reset phase B, the voltage in the variable capacitor array C c is higher after entering the reset phase B One end of the capacitor discharges to the lower voltage end until the amount of charge in the variable capacitor array C c is zero. At this time, the voltage across the variable capacitor array C c is V refn ; that is, at the end of the reset phase B, The amount of charge in the variable capacitance array C c is zero.
  • the switched capacitor amplifier is controlled to enter the second non-overlapping phase A 2 .
  • the switched capacitor amplifier is controlled to enter the amplification phase C.
  • V out ⁇ V cm
  • the process of the first cycle is repeated N times.
  • the capacitance detection is completed; that is, the capacitors C N-2 , C N-3 , . . . , C 0 are sequentially removed from the variable capacitor.
  • the capacitance value of the capacitor C x to be detected can be expressed as:
  • the embodiment of the present invention applies the capacitance detecting circuit provided by the embodiment of the present invention to detect the change of the capacitance in real time, and performs corresponding control on the stage of the switched capacitor amplifier in each clock cycle. (including a first non-overlapping phase, a reset phase, a second non-overlapping phase, and an amplifying phase), so that the comparator sequentially outputs N digital quantities to correspond to the capacitance to be detected. Capacitance value.
  • the present embodiment is an embodiment of the method corresponding to the first and second embodiments, and the present embodiment can be implemented in cooperation with the first and second embodiments.
  • the related technical details mentioned in the first and second embodiments are still effective in the present embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related technical details mentioned in the present embodiment can also be applied to the first and second embodiments.
  • a program instructing related hardware may be completed by a program instructing related hardware, and the program is stored in a storage medium, and includes a plurality of instructions for making a device (which may be a single chip microcomputer). , a chip, etc. or a processor performs all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Abstract

A capacitor detection circuit and a control method therefor, which relate to the technical field of electronics. The capacitor detection circuit comprises: a switch capacitor amplifier, a comparator (Comp), and a sequential control unit (H). The switch capacitor amplifier comprises a variable capacitor array (Cc) that is connected to a to-be-detected capacitor and that has N capacitor branches, N being an integer and N being greater than 1. A first input end of the comparator (Comp) is connected to an output end of the switch capacitor amplifier, and a second input end of the comparator (Comp) is connected to a first reference voltage (Vcm). An input end of the sequential control unit (H) is connected to an output end (D)_of the comparator (Comp), and an output end of the sequential control unit (H) is connected to a capacitor adjustment end of the variable capacitor array (Cc). By means of the capacitor detection circuit, the structure of a circuit is simplified, and a capacitance value is directly converted into a digital value, thereby greatly reducing the area and the power consumption of the capacitor detection circuit.

Description

电容检测电路及其控制方法Capacitance detecting circuit and control method thereof 技术领域Technical field
本发明实施例涉及电子技术领域,特别涉及一种电容检测电路及其控制方法。Embodiments of the present invention relate to the field of electronic technologies, and in particular, to a capacitance detecting circuit and a control method thereof.
背景技术Background technique
目前,电容型传感器通常用作输入设备,广泛应用于多种电子系统中,为电子系统提供关于输入的信息(诸如位置、运动、作用力以及持续时间等)。一般的,用户通过操作(例如靠近、接触、按压以及滑动等)电容型传感器的一个或者多个传感区域,与传感区域产生电容效应,通过将电容效应进行量化,就可以判断用户的操作。其中,电容检测电路是电容型传感器的核心,其电路设计直接影响着电容型传感器的整体成本与功耗。Currently, capacitive sensors are commonly used as input devices and are widely used in a variety of electronic systems to provide information about the input (such as position, motion, force, duration, etc.) to the electronic system. Generally, the user generates a capacitive effect by sensing (eg, approaching, contacting, pressing, sliding, etc.) one or more sensing regions of the capacitive sensor, and by measuring the capacitive effect, the user's operation can be determined. . Among them, the capacitance detection circuit is the core of the capacitive sensor, and its circuit design directly affects the overall cost and power consumption of the capacitive sensor.
如图1所示为现有的电容检测电路图,包括待检测电容Cx、积分器Fx和模拟数字转换器ADC。待检测电容Cx的第一端通过积分器Fx连接于模拟数字转换器ADC,待检测电容Cx的第二端接地GND0。其中,积分器Fx将电容效应转换成电压量,然后经过模拟数字转换器ADC采样量化成数字量,从而完成电容检测。Figure 1 shows the existing capacitance detection circuit diagram, including the capacitor C x to be detected, the integrator F x and the analog-to-digital converter ADC. The first end of the capacitor C x to be detected is connected to the analog-to-digital converter ADC through an integrator F x , and the second end of the capacitor C x to be detected is grounded to GND 0 . Among them, the integrator F x converts the capacitive effect into a voltage amount, and then samples and quantizes it into a digital quantity through an analog-to-digital converter ADC, thereby performing capacitance detection.
然而,在实现本发明的过程中,发明人发现现有技术中存在如下问题:现有的电容检测电路比较复杂,并且使用到模拟数字转换器ADC,导致电容检测电路的面积以及功耗非常大,对电容型传感器非常不利。However, in the process of implementing the present invention, the inventors have found that the prior art has the following problems: the existing capacitance detecting circuit is relatively complicated, and the analog to digital converter ADC is used, resulting in a very large area and power consumption of the capacitance detecting circuit. It is very disadvantageous for capacitive sensors.
发明内容Summary of the invention
本发明实施例实施方式的目的在于提供一种电容检测电路及其控制方 法,简化了电路结构,且将电容值直接转换成数字量的方式,极大的降低了电容检测电路的面积以及功耗。An object of embodiments of the present invention is to provide a capacitance detecting circuit and a controller thereof The method simplifies the circuit structure and directly converts the capacitance value into a digital quantity, which greatly reduces the area and power consumption of the capacitance detecting circuit.
为解决上述技术问题,本发明的实施例提供了一种电容检测电路,包括:开关电容放大器、比较器以及时序控制单元;所述开关电容放大器包括与待检测电容连接的具有N条电容支路的可变电容阵列;其中,N为自然数且N>1;所述比较器的第一输入端连接至所述开关电容放大器的输出端,所述比较器的第二输入端连接至第一参考电压;所述时序控制单元的输入端连接至所述比较器的输出端,所述时序控制单元的输出端连接至所述可变电容阵列的电容调节端;其中,在N个时钟周期中,所述时序控制单元依次禁能所述可变电容阵列中的N条电容支路,所述比较器的输出端依次输出用于表征所述待检测电容的N个数字量。To solve the above technical problem, an embodiment of the present invention provides a capacitance detecting circuit, including: a switched capacitor amplifier, a comparator, and a timing control unit; the switched capacitor amplifier includes an N capacitor branch connected to a capacitor to be detected Variable capacitance array; wherein N is a natural number and N>1; a first input of the comparator is coupled to an output of the switched capacitor amplifier, and a second input of the comparator is coupled to a first reference a voltage; an input of the timing control unit is coupled to an output of the comparator, an output of the timing control unit is coupled to a capacitance adjustment terminal of the variable capacitor array; wherein, in N clock cycles, The timing control unit sequentially disables N capacitor branches in the variable capacitor array, and the output of the comparator sequentially outputs N digital quantities for characterizing the capacitance to be detected.
本发明的实施例还提供了一种电容检测电路的控制方法,应用于上述的电容检测电路,所述控制方法包括:第i+1个时钟周期中,控制所述开关电容放大器进入第一非交叠阶段;在所述非交叠阶段中,对所述开关电容放大器进行放电,并且,当i+1≥2时,若所述比较器在第i个时钟周期中输出的第i个数字量为0,使能所述可变电容阵列中的第N-i条电容支路;控制所述开关电容放大器进入复位阶段;在所述复位阶段中,对所述开关电容放大器进行充电;控制所述开关电容放大器进入第二非交叠阶段;在所述第二非交叠阶段中,禁能所述可变电容阵列中的第N-(i+1)条电容支路;控制所述开关电容放大器进入放大阶段;在所述放大阶段中,所述比较器输出第i+1个数字量;其中,i=0,1,2,…..N-1;在N个时钟周期中,所述比较器依次输出的N个数字量用于表征所述待检测电容。The embodiment of the present invention further provides a method for controlling a capacitance detecting circuit, which is applied to the above-mentioned capacitance detecting circuit, and the control method includes: controlling the switched capacitor amplifier to enter the first non in the i+1th clock cycle An overlap phase; in the non-overlap phase, discharging the switched capacitor amplifier, and when i+1≥2, if the comparator outputs the ith number in the ith clock cycle The quantity is 0, enabling the Nith capacitor branch in the variable capacitor array; controlling the switched capacitor amplifier to enter a reset phase; in the reset phase, charging the switched capacitor amplifier; controlling the The switched capacitor amplifier enters a second non-overlapping phase; in the second non-overlapping phase, the N-(i+1)th capacitive branch in the variable capacitor array is disabled; and the switched capacitor is controlled The amplifier enters an amplification phase; in the amplification phase, the comparator outputs an i+1th digital quantity; wherein, i=0, 1, 2, .....N-1; in N clock cycles, The N digital quantities sequentially output by the comparator are used to characterize the waiting Measuring capacitance.
本发明实施例相对于现有技术而言,提供了一种电容检测电路,包括开关电容放大器、比较器以及时序控制单元。开关电容放大器包括具有N条电容支路的可变电容阵列(N为自然数且N>1)。在N个时钟周期中,时序控 制单元依次禁能可变电容阵列中的N条电容支路,比较器的输出端依次输出用于表征待检测电容的N个数字量;即本发明实施例省去模拟数字转换器ADC,而采用逐次逼近的方式将待检测电容的电容值直接转换成数字量,简化了电路结构,极大的降低了电容检测电路的面积以及功耗。Compared with the prior art, an embodiment of the present invention provides a capacitance detecting circuit including a switched capacitor amplifier, a comparator, and a timing control unit. The switched capacitor amplifier includes a variable capacitor array with N capacitive branches (N is a natural number and N > 1). Timing control in N clock cycles The unit sequentially disables the N capacitor branches in the variable capacitor array, and the output ends of the comparator sequentially output N digital quantities for characterizing the capacitor to be detected; that is, the analog-to-digital converter ADC is omitted in the embodiment of the present invention, and The capacitance value of the capacitor to be detected is directly converted into a digital quantity by successive approximation, which simplifies the circuit structure and greatly reduces the area and power consumption of the capacitance detecting circuit.
另外,第一参考电压大于所述第三参考电压且小于所述第二参考电压,所述比较器的第一输入端与第二输入端分别为正相输入端与反相输入端。本实施例中,提供了开关电容放大器与比较器的一种连接方式。In addition, the first reference voltage is greater than the third reference voltage and smaller than the second reference voltage, and the first input end and the second input end of the comparator are a non-inverting input end and an inverting input end, respectively. In this embodiment, a connection mode of the switched capacitor amplifier and the comparator is provided.
另外,第一参考电压大于所述第二参考电压且小于所述第三参考电压,所述比较器的第一输入端与第二输入端分别为反相输入端与正相输入端。本实施例中,提供了开关电容放大器与比较器的另一种连接方式。In addition, the first reference voltage is greater than the second reference voltage and smaller than the third reference voltage, and the first input end and the second input end of the comparator are respectively an inverting input end and a non-inverting input end. In this embodiment, another connection mode of the switched capacitor amplifier and the comparator is provided.
另外,第一参考电压为所述第二参考电压与所述第三参考电压之和的一半。本实施例中,提供了第一参考电压的一种取值方式,使得电路减少计算量,节省功耗。In addition, the first reference voltage is half of a sum of the second reference voltage and the third reference voltage. In this embodiment, a value manner of the first reference voltage is provided, so that the circuit reduces the calculation amount and saves power consumption.
另外,时序控制单元为时序控制电路;或者,所述时序控制单元为控制芯片。本实施例中,提供了时序控制单元的两种实现方式。In addition, the timing control unit is a timing control circuit; or the timing control unit is a control chip. In this embodiment, two implementations of the timing control unit are provided.
附图说明DRAWINGS
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。The one or more embodiments are exemplified by the accompanying drawings in the accompanying drawings, and FIG. The figures in the drawings do not constitute a scale limitation unless otherwise stated.
图1是背景技术中的电容检测电路的示意图;1 is a schematic diagram of a capacitance detecting circuit in the background art;
图2是第一实施方式的电容检测电路的示意图;2 is a schematic diagram of a capacitance detecting circuit of the first embodiment;
图3是第一实施方式中可变电容阵列的示意图;3 is a schematic diagram of a variable capacitor array in the first embodiment;
图4是第三实施方式中电容检测电路的时序控制示意图; 4 is a schematic diagram showing timing control of a capacitance detecting circuit in a third embodiment;
图5是第三实施方式中电容检测电路处于第一非交叠阶段的示意图;5 is a schematic diagram of the capacitance detecting circuit in the first non-overlapping phase in the third embodiment;
图6是第三实施方式的电容检测电路处于复位阶段的示意图;6 is a schematic diagram of the capacitance detecting circuit of the third embodiment in a reset phase;
图7是第三实施方式的电容检测电路处于第二非交叠阶段的示意图;7 is a schematic diagram of the capacitance detecting circuit of the third embodiment in a second non-overlapping phase;
图8是第三实施方式的电容检测电路处于放大阶段的示意图。Fig. 8 is a schematic view showing the capacitance detecting circuit of the third embodiment in an amplification stage.
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明的各实施方式进行详细的阐述。然而,本领域的普通技术人员可以理解,在本发明各实施方式中,为了使读者更好地理解本申请而提出了许多技术细节。但是,即使没有这些技术细节和基于以下各实施方式的种种变化和修改,也可以实现本申请所要求保护的技术方案。In order to make the objects, technical solutions, and advantages of the present invention more apparent, the embodiments of the present invention will be described in detail below. However, it will be apparent to those skilled in the art that, in the various embodiments of the present invention, numerous technical details are set forth in order to provide the reader with a better understanding of the present application. However, the technical solutions claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
本发明的第一实施方式涉及一种电容检测电路。如图2所示,电容检测电路包括:开关电容放大器、比较器Comp以及时序控制单元H。A first embodiment of the invention relates to a capacitance detecting circuit. As shown in FIG. 2, the capacitance detecting circuit includes a switched capacitor amplifier, a comparator C omp, and a timing control unit H.
本实施方式中,比较器Comp的第一输入端连接至开关电容放大器的输出端,比较器Comp的第二输入端连接至第一参考电压VcmIn this embodiment, the first input of the comparator C omp is connected to the output of the switched capacitor amplifier, and the second input of the comparator C omp is connected to the first reference voltage V cm .
本实施方式中,开关电容放大器连接至待检测电容Cx,其包括具有N条电容支路的可变电容阵列Cc、运算放大器Op、反馈电容Cf以及第一至第五开关S0~S4;其中,N为自然数且N>1。具体而言,待检测电容Cx的第一端通过第一开关S0连接至第二参考电压Vrefp,待检测电容Cx的第二端接地GND0。可变电容阵列Cc的第一端通过第二开关S1连接至第三参考电压Vrefn,且通过第三开关S2连接至待检测电容Cx的第一端与第四开关S3;可变电容阵列Cc的第二端连接至第三参考电压Vrefn。运算放大器Op的反相输入端通过第四开关S3连接至待检测电容Cx的第一端与第三开关S2,运算放大器Op的正相输入端连接至第一参考电压Vcm。反馈电容Cf与第五开关S4分别跨接 在运算放大器Op的反相输入端与输出端之间。In the present embodiment, the switched capacitor amplifier is connected to the capacitor to be detected is C x, which has N comprising a variable capacitance array capacitor branch C c, the operational amplifier O p, feedback capacitor C f, and the first to fifth switches S 0 ~S 4 ; wherein N is a natural number and N>1. Specifically, the first end of the capacitor C x to be detected is connected to the second reference voltage V refp through the first switch S 0 , and the second end of the capacitor C x to be detected is grounded to GND 0 . The first end of the variable capacitor array C c is connected to the third reference voltage V refn through the second switch S 1 , and is connected to the first end and the fourth switch S 3 of the capacitor C x to be detected through the third switch S 2 ; The second end of the variable capacitance array C c is connected to the third reference voltage V refn . Inverting input terminal of the operational amplifier O p is connected through a fourth switch S 3 to be detected the capacitance C x of the first terminal and the third switch S 2, the operational amplifier O p-inverting input terminal is connected to a first reference voltage V cm . A feedback capacitor C f S 4 and the fifth switch are connected across the inverting input terminal and the output terminal of the operational amplifier O p.
如图3所示,本实施例中的可变电容阵列Cc包括N条电容支路,每条电容支路包括电容Ci与支路开关Sc,i。在第i条电容支路中,电容Ci与支路开关Sc,i串联。支路开关Sc,i导通,表示电容Ci接入到可变电容阵列Cc中;开关Sc,i断开,表示电容Ci移除出可变电容阵列Cc。其中,第i条电容支路的电容可表示为:Ci=2iCu,i=0,1,2,……N-1;其中,Ci表示第i条电容支路的电容,Cu表示单位电容,其大小可根据需要选取;根据公式可以看出,电容Ci至CN-i的电容值依次增大。然本实施方式对各条电容支路的电容不作任何限制,本领域技术人员可以根据实际需要设定。As shown in FIG. 3, the variable capacitor array C c in this embodiment includes N capacitor branches, and each capacitor branch includes a capacitor C i and a branch switch S c,i . In the i-th capacitor branch, and branch switching capacitor C i S c, i series. The branch switch S c,i is turned on, indicating that the capacitor C i is connected to the variable capacitor array C c ; the switch S c,i is disconnected, indicating that the capacitor C i is removed from the variable capacitor array C c . Wherein, the capacitance of the ith capacitor branch can be expressed as: C i = 2 i C u , i = 0, 1, 2, ..., N-1; wherein C i represents the capacitance of the ith capacitor branch, C u represents the unit capacitance, and its size can be selected according to the need; according to the formula, the capacitance values of the capacitors C i to C Ni increase sequentially. However, the present embodiment does not impose any limitation on the capacitance of each capacitor branch, and can be set by a person skilled in the art according to actual needs.
本实施方式中,时序控制单元H用于产生可变电容阵列Cc与第一至第五开关(S0~4)的控制信号。时序控制单元H的输入端连接至比较器Comp的输出端D,时序控制单元H的输出端连接至可变电容阵列Cc的电容调节端。具体的,时序控制单元H包括第一至第四控制端。第一控制端连接至第一开关S0与第二开关S1;第二控制端连接至第三开关S2与第四开关S3;第三控制端连接至第五开关S4;第四控制端(即,时序控制单元H的输出端)连接至可变电容阵列Cc的电容调节端。In the present embodiment, the timing control unit H is configured to generate a control signal of the variable capacitance array C c and the first to fifth switches (S 0 to 4 ). The input of the timing control unit H is connected to the output D of the comparator C omp , and the output of the timing control unit H is connected to the capacitance regulating terminal of the variable capacitor array C c . Specifically, the timing control unit H includes first to fourth control terminals. The first control end is connected to the first switch S 0 and the second switch S 1 ; the second control end is connected to the third switch S 2 and the fourth switch S 3 ; the third control end is connected to the fifth switch S 4 ; The control terminal (ie, the output of the timing control unit H) is connected to the capacitance regulating terminal of the variable capacitance array C c .
实际上,时序控制单元H可以理解为包括逐次逼近寄存器(SAR)的时序控制单元;逐次逼近寄存器用于根据比较器Comp的输出信号产生可变电容阵列Cc的控制信号。In fact, the timing control unit H can be understood as a timing control unit comprising a successive approximation register (SAR); the successive approximation register is used to generate a control signal of the variable capacitance array C c from the output signal of the comparator C omp .
本实施方式中,时序控制单元H为时序控制电路;即,由硬件产生控制信号。或者,时序控制单元H为控制芯片;即,由软件产生时序控制信号;然本实施方式对时序控制单元H的具体实现方式不作任何限制,可根据实际情况具体设计。In the present embodiment, the timing control unit H is a timing control circuit; that is, a control signal is generated by hardware. Alternatively, the timing control unit H is a control chip; that is, the timing control signal is generated by software; however, the specific implementation manner of the timing control unit H is not limited in this embodiment, and may be specifically designed according to actual conditions.
本实施方式中,第一参考电压Vcm介于第二参考电压Vrefp和第三参考电压Vrefn之间。具体的,第一参考电压Vcm大于第三参考电压Vrefn且小于第二 参考电压Vrefp,此时,比较器Comp的第一输入端与第二输入端分别为正相输入端与反相输入端。较佳的,第一参考电压Vcm可以设定为第二参考电压Vrefp与第三参考电压Vrefn之和的一半;从而可以减少电路的计算量,节省功耗;然本实施方式对第一考电压Vcm的设定值不作任何限制,只要满足介于第二参考电压Vrefp与第三参考电压Vrefn之间即可。In this embodiment, the first reference voltage V cm is between the second reference voltage V refp and the third reference voltage V refn . Specifically, the first reference voltage V cm is greater than the third reference voltage V refn and smaller than the second reference voltage V refp . At this time, the first input end and the second input end of the comparator C omp are the positive phase input end and the opposite end respectively. Phase input. Preferably, the first reference voltage V cm can be set to be half of the sum of the second reference voltage V refp and the third reference voltage V refn ; thereby reducing the calculation amount of the circuit and saving power consumption; The set value of the test voltage V cm is not limited as long as it satisfies between the second reference voltage V refp and the third reference voltage V refn .
本实施方式的电容检测电路,对电容检测电路的一次检测过程实质上包括N个时钟周期;在N个时钟周期中,时序控制单元H依次禁能可变电容阵列Cc中的N条电容支路,比较器Comp的输出端D依次输出用于表征待检测电容Cx的N个数字量dN-1~0。即,采用逐次逼近的方式将待检测电容Cx的电容值直接转换成N个数字量,当待检测电容Cx的电容值发生改变时,转换出来的N个数字量亦发生改变;因此,通过连续多次检测,比较N个数字量的变化,可以实时检测出待检测电容的变化。In the capacitance detecting circuit of the present embodiment, the one-time detecting process for the capacitance detecting circuit substantially includes N clock cycles; in N clock cycles, the timing control unit H sequentially disables the N capacitor branches in the variable capacitor array C c The output terminal D of the comparator C omp sequentially outputs N digital quantities d N-1 ~ 0 for characterizing the capacitance C x to be detected. That is, the capacitance value of the capacitor Cx to be detected is directly converted into N digital quantities by successive approximation. When the capacitance value of the capacitor Cx to be detected changes, the converted N digital quantities also change; therefore, By continuously detecting multiple times and comparing the changes of N digital quantities, the change of the capacitance to be detected can be detected in real time.
本发明的实施例相对于现有技术而言,提供了一种电容检测电路,包括开关电容放大器、比较器以及时序控制单元。开关电容放大器包括具有N条电容支路的可变电容阵列(N为自然数且N>1)。在N个时钟周期中,时序控制单元按照电容值从大到小的顺序依次禁能可变电容阵列中的N条电容支路,比较器的输出端依次输出用于表征待检测电容的N个数字量;即本发明实施例省去现有的模拟数字转换器ADC,通过二进制搜索算法等,采用逐次逼近的方式将待检测电容的电容值直接转换成数字量的方式,简化了电路结构,极大的降低了电容检测电路的面积以及功耗。Embodiments of the present invention provide a capacitance detecting circuit including a switched capacitor amplifier, a comparator, and a timing control unit with respect to the prior art. The switched capacitor amplifier includes a variable capacitor array with N capacitive branches (N is a natural number and N > 1). In N clock cycles, the timing control unit disables the N capacitor branches in the variable capacitor array in descending order of capacitance values, and the output terminals of the comparator sequentially output N capacitors for characterizing the capacitor to be detected. The digital quantity; that is, the existing analog-to-digital converter ADC is omitted in the embodiment of the present invention, and the circuit value is simplified by directly converting the capacitance value of the capacitor to be detected into a digital quantity by a binary search algorithm or the like, thereby simplifying the circuit structure. The area of the capacitance detecting circuit and the power consumption are greatly reduced.
本发明的第二实施方式涉及一种电容检测电路。第二实施方式与第一实施方式大致相同,主要区别之处在于:在第一实施方式中,第一参考电压大于第三参考电压且小于第二参考电压,比较器的第一输入端与第二输入端分别为正相输入端与反相输入端。而在本发明第二实施方式中,第一参考电压大于第二参考电压且小于第三参考电压,比较器的第一输入端与第二输入端 分别为反相输入端与正相输入端。A second embodiment of the present invention relates to a capacitance detecting circuit. The second embodiment is substantially the same as the first embodiment. The main difference is that in the first embodiment, the first reference voltage is greater than the third reference voltage and smaller than the second reference voltage, and the first input end of the comparator The two input terminals are a positive phase input terminal and an inverting input terminal, respectively. In the second embodiment of the present invention, the first reference voltage is greater than the second reference voltage and less than the third reference voltage, and the first input end and the second input end of the comparator They are the inverting input and the positive input.
本发明的实施例相对于第一实施方式而言,提供了开关电容放大器与比较器的另一种连接方式。Embodiments of the present invention provide another way of connecting a switched capacitor amplifier to a comparator with respect to the first embodiment.
本发明第三实施方式涉及一种电容检测电路的控制方法,应用于第一实施方式或第二实施方式中的电容检测电路。本实施例的控制方法,可以理解为对待检测电容进行连续多次检测。对待检测电容的一次检测过程实质上包括N个时钟周期,每一个时钟周期中,比较器输出一个数字量;即,比较器依次输出的N个数字量用于表征待检测电容。A third embodiment of the present invention relates to a method of controlling a capacitance detecting circuit, which is applied to a capacitance detecting circuit in the first embodiment or the second embodiment. The control method of this embodiment can be understood as performing continuous multiple detections on the capacitance to be detected. The one-time detection process of the detection capacitor essentially includes N clock cycles. In each clock cycle, the comparator outputs a digital quantity; that is, the N digital quantities sequentially output by the comparator are used to characterize the capacitance to be detected.
如图4所示,为本实施方式中的电容检测电路的时序控制图,一次电路检测过程包括N个时钟周期。在每个时钟周期中,时序控制单元H的第一控制端产生时钟信号φ1控制第一开关S0与第二开关S1,第二控制端产生时钟信号φ2控制第三开关S2与第四开关S3,第三控制端产生信号φ3控制第五开关S4,第四控制端产生信号φc,0控制支路开关Sc,0。其中,φ1、φ2为两相非交叠时钟,clk为系统时钟,T1表示第1次转换(T1~N表示第1~N次转换);当start信号上升沿来临时,开始检测过程。As shown in FIG. 4, in the timing control diagram of the capacitance detecting circuit in the present embodiment, the primary circuit detecting process includes N clock cycles. In each clock cycle, the first control terminal of the timing control unit H generates a clock signal φ1 to control the first switch S0 and the second switch S1, and the second control terminal generates a clock signal φ2 to control the third switch S2 and the fourth switch S3, The third control terminal generates a signal φ3 to control the fifth switch S4, and the fourth control terminal generates a signal φc,0 to control the branch switch Sc,0. Among them, φ1 and φ2 are two-phase non-overlapping clocks, clk is the system clock, and T1 is the first conversion (T1 to N indicate the first to Nth conversions); when the rising edge of the start signal comes, the detection process starts.
在每个时钟周期中,时序控制单元对开关电容放大器输出的控制信号相似;具体如下:In each clock cycle, the timing control unit has similar control signals to the switched capacitor amplifier output; as follows:
在第i+1个时钟周期中:In the i+1th clock cycle:
首先,控制开关电容放大器进入第一非交叠阶段。在第一非交叠阶段中,开关电容放大器进行放电,并且,当i+1≥2时,若比较器在第i个时钟周期中输出的第i个数字量为0,使能可变电容阵列中的第N-i条电容支路。First, the switched-capacitor amplifier is controlled to enter the first non-overlapping phase. In the first non-overlapping phase, the switched capacitor amplifier discharges, and when i+1 ≥ 2, if the ith digital quantity output by the comparator in the ith clock cycle is 0, the variable capacitor is enabled. The Ni-th capacitor branch in the array.
其次,控制开关电容放大器进入复位阶段。在复位阶段中,对开关电容放大器进行充电。Second, the switched-capacitor amplifier is controlled to enter the reset phase. During the reset phase, the switched capacitor amplifier is charged.
再次,控制开关电容放大器进入第二非交叠阶段。在第二非交叠阶段中, 禁能可变电容阵列中的第N-(i+1)条电容支路。Again, the switched-capacitor amplifier is controlled to enter a second non-overlapping phase. In the second non-overlapping phase, The N-th (i+1)th capacitor branch in the variable capacitor array is disabled.
最后,控制开关电容放大器进入放大阶段。在放大阶段中,比较器输出第i+1个数字量。Finally, the switched-capacitor amplifier is controlled to enter the amplification phase. In the amplification phase, the comparator outputs the i+1th digital quantity.
其中,i=0,1,2,…..N-1;在N个时钟周期中,比较器依次输出的N个数字量用于表征待检测电容。Wherein, i=0, 1, 2, .....N-1; in N clock cycles, the N digital quantities sequentially output by the comparator are used to characterize the capacitance to be detected.
以下以i=0为例进行说明,即以第一个时钟周期为例进行说明。The following takes i=0 as an example for description, that is, the first clock cycle is taken as an example for description.
首先,φ1=0、φ2=0时,控制开关电容放大器进入第一非交叠阶段A1。此时,φ3=1,φc,N-1~0=1,如图5所示,开关S0~3断开,开关S4、Sc,N-1~0闭合,开关电容放大器中的反馈电容Cf进行放电。First, when φ 1 =0 and φ 2 =0, the switched capacitor amplifier is controlled to enter the first non-overlapping phase A 1 . At this time, φ 3 =1, φ c, N-1 ~ 0 =1, as shown in FIG. 5, the switches S 0 ~3 are turned off, the switches S 4 , S c , N-1 ~ 0 are closed, and the switched capacitor amplifier is turned off. The feedback capacitor C f is discharged.
接着,φ1=1和φ2=0时,控制开关电容放大器进入复位阶段B。此时,φ3=1、φc,N-1~0=1,如图6所示,开关S0~1闭合;对待测电容Cx进行充电、对可变电容阵列Cc进行放电,并继续对反馈电容Cf进行放电,此时开关电容放大器的输出端电压Vout等于第一参考电压Vcm(即,Vout=Vcm)。Next, when φ 1 =1 and φ 2 =0, the switched capacitor amplifier is controlled to enter the reset phase B. At this time, φ 3 =1, φ c, N-1 ~ 0 =1, as shown in FIG. 6 , the switches S 0 ~1 are closed; the capacitance C x to be measured is charged, and the variable capacitance array C c is discharged. And continue to discharge the feedback capacitor C f , at which time the output voltage V out of the switched capacitor amplifier is equal to the first reference voltage V cm (ie, V out = V cm ).
于实际上,若在进入复位阶段B之前,可变电容阵列Cc中的电荷量为零,则在进入复位阶段B之后,可变电容阵列Cc的两端之间无电荷流动(不会经历实际的放电过程);若在进入复位阶段B之前,可变电容阵列Cc的其中一端的电压大于另一端的电压,则在进入复位阶段B之后,可变电容阵列Cc中电压较高的一端向电压较低的一端放电,直至可变电容阵列Cc中的电荷量为零,此时可变电容阵列Cc的两端的电压均为Vrefn;即,复位阶段B结束时,可变电容阵列Cc中的电荷量为零。In fact, if the amount of charge in the variable capacitor array C c is zero before entering the reset phase B, there is no charge flow between the ends of the variable capacitor array C c after entering the reset phase B (not After experiencing the actual discharge process); if the voltage at one end of the variable capacitor array C c is greater than the voltage at the other end before entering the reset phase B, the voltage in the variable capacitor array C c is higher after entering the reset phase B One end of the capacitor discharges to the lower voltage end until the amount of charge in the variable capacitor array C c is zero. At this time, the voltage across the variable capacitor array C c is V refn ; that is, at the end of the reset phase B, The amount of charge in the variable capacitance array C c is zero.
再接着,φ1=0、φ2=0时,控制开关电容放大器进入第二非交叠阶段A2。此时,φ3=0、φc,N-1=0、φc,N-2~0=1,如图7所示,开关S0~4、Sc,N-1断开,开关Sc,N-2~0闭合;将CN-1移除出可变电容阵列Cc,即,禁能电容CN-1Then, when φ 1 =0 and φ 2 =0, the switched capacitor amplifier is controlled to enter the second non-overlapping phase A 2 . At this time, φ 3 =0, φ c, N-1 =0, φ c, N-2 ~ 0 =1, as shown in Fig. 7, the switches S 0 to 4 , S c, N-1 are off, the switch S c, N-2 ~ 0 is closed; C N-1 is removed from the variable capacitor array Cc, that is, the disable capacitor C N-1 .
最后,φ1=0、φ2=1时,控制开关电容放大器进入放大阶段C。此时,φ3=0、 φc,N-1=0、φc,N-2~0=1,如图8所示,开关S2~3闭合;待测电容Cx与可变电容阵列Cc进行电荷再分配,并经过放大器进行放大;开关电容放大器的输出端电压Vout=Vcm+[((Vcm-Vrefn)Cc+(Vcm-Vrefp)Cx)/Cf]。Finally, when φ 1 =0 and φ 2 =1, the switched capacitor amplifier is controlled to enter the amplification phase C. At this time, φ 3 =0, φ c, N-1 =0, φ c, N-2 ~ 0 =1, as shown in Fig. 8, the switches S 2 ~ 3 are closed; the capacitance to be measured C x and the variable capacitance C c for charge redistribution array, and amplified via the amplifier; switched capacitor amplifier output terminal voltage Vout = Vcm + [((Vcm -Vrefn) Cc + (Vcm-Vrefp) Cx) / Cf].
本实施方式中,通过比较器Comp与共模电压(本实施例中,第一参考电压Vcm作为共模电压)的比较,判定该位电容是否重新接入到可变电容阵列Cc中;即,通过比较器Comp比较Vout与Vcm的大小。若Vout≥Vcm,比较器Comp的输出端D输出数字量dN-1=1,保持将CN-1移除出可变电容阵列Cc。若Vout<Vcm,比较器Comp的输出端D输出数字量dN-1=0,则在下一时钟周期中,当电路处于非交叠状态A1时,将CN-1重新接入到可变电容阵列Cc中(即保持接入至可变电容阵列Cc);比较完成后,第一周期结束。In this embodiment, it is determined whether the bit capacitance is re-connected into the variable capacitor array C c by comparing the comparator C omp with the common mode voltage (in the present embodiment, the first reference voltage V cm is used as the common mode voltage); That is, the magnitudes of V out and V cm are compared by the comparator C omp . If V out ≥ V cm , the output D of the comparator C omp outputs a digital quantity d N-1 =1, keeping C N-1 removed from the variable capacitance array C c . If V out <V cm , the output D of the comparator C omp outputs a digital quantity d N-1 =0, then in the next clock cycle, when the circuit is in the non-overlapping state A 1 , the C N-1 is reconnected. It enters the variable capacitor array C c (ie, remains connected to the variable capacitor array C c ); after the comparison is completed, the first period ends.
本实施方式中,重复第一周期的过程N次,当电容C0判定完毕,电容检测完毕;即,依次将电容CN-2,CN-3,…,C0移除出可变电容阵列Cc,通过比较器Comp比较得到N位数字量D=dN-1dN-2…d1d0,N位数字量(D=dN-1dN-2…d1d0)对应了待检测电容Cx的电容值。In this embodiment, the process of the first cycle is repeated N times. When the capacitance C 0 is determined, the capacitance detection is completed; that is, the capacitors C N-2 , C N-3 , . . . , C 0 are sequentially removed from the variable capacitor. The array C c is compared by the comparator C omp to obtain an N-bit digital quantity D=d N-1 d N-2 ... d 1 d 0 , N-bit digital quantity (D=d N-1 d N-2 ...d 1 d 0 ) corresponds to the capacitance value of the capacitor C x to be detected.
本实施方式中,待检测电容Cx的电容值即可表示为:
Figure PCTCN2016105002-appb-000001
当Ci=2iCu(i=0,1,2,……N-1)时,则待检测电容Cx的电容值可表示为
Figure PCTCN2016105002-appb-000002
以上述N位数字量为基准D0,当待检测电容Cx发生改变时,得到另一组N位数字量D1,那么待检测电容的变化量ΔCx可以表示为:ΔCx=[(Vcm-Vrefn)/(Vrefp-Vcm)]*(D1-D0)*Cu。
In this embodiment, the capacitance value of the capacitor C x to be detected can be expressed as:
Figure PCTCN2016105002-appb-000001
When C i =2 i C u (i=0, 1, 2, ... N-1), the capacitance value of the capacitance C x to be detected can be expressed as
Figure PCTCN2016105002-appb-000002
Taking the above-mentioned N-bit digital quantity as the reference D 0 , when the capacitance C x to be detected changes, another set of N-bit digital quantity D 1 is obtained , and the change amount ΔC x of the capacitance to be detected can be expressed as: ΔCx=[(Vcm -Vrefn) / (Vrefp - Vcm)] * (D 1 - D 0 ) * Cu.
本发明的实施例相对于现有技术而言,应用了本发明实施例提供的电容检测电路,实时检测电容的变化,在每个时钟周期内,对开关电容放大器所处的阶段进行对应的控制(包括第一非交叠阶段、复位阶段、第二非交叠阶段以及放大阶段),从而比较器依次输出N个数字量,以对应待检测电容的 电容值。Compared with the prior art, the embodiment of the present invention applies the capacitance detecting circuit provided by the embodiment of the present invention to detect the change of the capacitance in real time, and performs corresponding control on the stage of the switched capacitor amplifier in each clock cycle. (including a first non-overlapping phase, a reset phase, a second non-overlapping phase, and an amplifying phase), so that the comparator sequentially outputs N digital quantities to correspond to the capacitance to be detected. Capacitance value.
上面各种方法的步骤划分,只是为了描述清楚,实现时可以合并为一个步骤或者对某些步骤进行拆分,分解为多个步骤,只要包括相同的逻辑关系,都在本专利的保护范围内;对算法中或者流程中添加无关紧要的修改或者引入无关紧要的设计,但不改变其算法和流程的核心设计都在该专利的保护范围内。The steps of the above various methods are divided for the sake of clear description. The implementation may be combined into one step or split into certain steps and decomposed into multiple steps. As long as the same logical relationship is included, it is within the protection scope of this patent. The addition of insignificant modifications to an algorithm or process, or the introduction of an insignificant design, without changing the core design of its algorithms and processes, is covered by this patent.
不难发现,本实施方式为与第一、第二实施方式相对应的方法实施例,本实施方式可与第一、第二实施方式互相配合实施。第一、第二实施方式中提到的相关技术细节在本实施方式中依然有效,为了减少重复,这里不再赘述。相应地,本实施方式中提到的相关技术细节也可应用在第一、第二实施方式中。It is not difficult to find that the present embodiment is an embodiment of the method corresponding to the first and second embodiments, and the present embodiment can be implemented in cooperation with the first and second embodiments. The related technical details mentioned in the first and second embodiments are still effective in the present embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related technical details mentioned in the present embodiment can also be applied to the first and second embodiments.
本领域技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。Those skilled in the art can understand that all or part of the steps of implementing the above embodiments may be completed by a program instructing related hardware, and the program is stored in a storage medium, and includes a plurality of instructions for making a device (which may be a single chip microcomputer). , a chip, etc. or a processor performs all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
本领域的普通技术人员可以理解,上述各实施方式是实现本发明的具体实施例,而在实际应用中,可以在形式上和细节上对其作各种改变,而不偏离本发明的精神和范围。 A person skilled in the art can understand that the above embodiments are specific embodiments for implementing the present invention, and various changes can be made in the form and details without departing from the spirit and scope of the present invention. range.

Claims (8)

  1. 一种电容检测电路,其特征在于,包括:开关电容放大器、比较器以及时序控制单元;A capacitance detecting circuit, comprising: a switched capacitor amplifier, a comparator, and a timing control unit;
    所述开关电容放大器包括与待检测电容连接的具有N条电容支路的可变电容阵列;其中,N为自然数且N>1;The switched capacitor amplifier includes a variable capacitor array having N capacitor branches connected to a capacitor to be detected; wherein N is a natural number and N>1;
    所述比较器的第一输入端连接至所述开关电容放大器的输出端,所述比较器的第二输入端连接至第一参考电压;a first input of the comparator is coupled to an output of the switched capacitor amplifier, and a second input of the comparator is coupled to a first reference voltage;
    所述时序控制单元的输入端连接至所述比较器的输出端,所述时序控制单元的输出端连接至所述可变电容阵列的电容调节端;An input end of the timing control unit is connected to an output end of the comparator, and an output end of the timing control unit is connected to a capacitance adjustment end of the variable capacitor array;
    其中,在N个时钟周期中,所述时序控制单元依次禁能所述可变电容阵列中的N条电容支路,所述比较器的输出端依次输出用于表征所述待检测电容的N个数字量。Wherein, in the N clock cycles, the timing control unit sequentially disables the N capacitor branches in the variable capacitor array, and the output of the comparator sequentially outputs N for characterizing the capacitor to be detected. A digital quantity.
  2. 根据权利要求1所述的电容检测电路,其特征在于,所述开关电容放大器还包括运算放大器、反馈电容以及第一至第五开关;The capacitance detecting circuit according to claim 1, wherein the switched capacitor amplifier further comprises an operational amplifier, a feedback capacitor, and first to fifth switches;
    所述待检测电容的第一端通过所述第一开关连接至第二参考电压,所述待检测电容的第二端接地;The first end of the capacitor to be detected is connected to the second reference voltage through the first switch, and the second end of the capacitor to be detected is grounded;
    所述可变电容阵列的第一端通过所述第二开关连接至第三参考电压,且通过所述第三开关连接至所述待检测电容的第一端;所述可变电容阵列的第二端连接至所述第三参考电压;其中,所述第一参考电压介于所述第二参考电压和所述第三参考电压之间;The first end of the variable capacitor array is connected to the third reference voltage through the second switch, and is connected to the first end of the capacitor to be detected through the third switch; The two ends are connected to the third reference voltage; wherein the first reference voltage is between the second reference voltage and the third reference voltage;
    所述运算放大器的反相输入端通过所述第四开关连接至所述待检测电容的第一端,所述运算放大器的正相输入端连接至所述第一参考电压;The inverting input terminal of the operational amplifier is connected to the first end of the capacitor to be detected through the fourth switch, and the non-inverting input terminal of the operational amplifier is connected to the first reference voltage;
    所述反馈电容与所述第五开关分别跨接在所述运算放大器的反相输入 端与输出端;The feedback capacitor and the fifth switch are respectively connected across an inverting input of the operational amplifier End and output;
    所述时序控制单元包括第一至第四控制端,所述第一控制端连接至第一开关与第二开关,所述第二控制端连接至第三开关与第四开关;所述第三控制端连接至第五开关,所述第四控制端连接至所述可变电容阵列的电容调节端。The timing control unit includes first to fourth control terminals, the first control terminal is connected to the first switch and the second switch, and the second control terminal is connected to the third switch and the fourth switch; The control terminal is connected to the fifth switch, and the fourth control terminal is connected to the capacitance regulating end of the variable capacitor array.
  3. 根据权利要求2所述的电容检测电路,其特征在于,所述第一参考电压大于所述第三参考电压且小于所述第二参考电压,所述比较器的第一输入端与第二输入端分别为正相输入端与反相输入端。The capacitance detecting circuit according to claim 2, wherein the first reference voltage is greater than the third reference voltage and smaller than the second reference voltage, the first input and the second input of the comparator The terminals are a positive phase input terminal and an inverting input terminal, respectively.
  4. 根据权利要求2所述的电容检测电路,其特征在于,所述第一参考电压大于所述第二参考电压且小于所述第三参考电压,所述比较器的第一输入端与第二输入端分别为反相输入端与正相输入端。The capacitance detecting circuit according to claim 2, wherein the first reference voltage is greater than the second reference voltage and smaller than the third reference voltage, and the first input and the second input of the comparator The terminals are an inverting input and a positive input.
  5. 根据权利要求2所述的电容检测电路,其特征在于,所述第一参考电压为所述第二参考电压与所述第三参考电压之和的一半。The capacitance detecting circuit according to claim 2, wherein the first reference voltage is half of a sum of the second reference voltage and the third reference voltage.
  6. 根据权利要求1所述的电容检测电路,其特征在于,所述时序控制单元为时序控制电路;或者,所述时序控制单元为控制芯片。The capacitance detecting circuit according to claim 1, wherein the timing control unit is a timing control circuit; or the timing control unit is a control chip.
  7. 根据权利要求1所述的电容检测电路,其特征在于,所述可变电容阵列中第i条电容支路的电容可表示为:The capacitance detecting circuit according to claim 1, wherein the capacitance of the ith capacitor branch in the variable capacitor array is expressed as:
    Ci=2iCu,i=0,1,2,……N-1;C i =2 i C u ,i=0,1,2,...N-1;
    其中,Ci表示第i条电容支路的电容,Cu表示单位电容。Where C i represents the capacitance of the ith capacitor branch and Cu represents the unit capacitance.
  8. 一种电容检测电路的控制方法,其特征在于,应用于权利要求1至7中任意一项所述的电容检测电路,所述控制方法包括:A method of controlling a capacitance detecting circuit, which is characterized by being applied to the capacitance detecting circuit according to any one of claims 1 to 7, wherein the control method comprises:
    第i+1个时钟周期中,In the i+1th clock cycle,
    控制所述开关电容放大器进入第一非交叠阶段;在所述非交叠阶段中,对所述开关电容放大器进行放电,并且,当i+1≥2时,若所述比较器在第i 个时钟周期中输出的第i个数字量为0,使能所述可变电容阵列中的第N-i条电容支路;Controlling the switched capacitor amplifier to enter a first non-overlapping phase; in the non-overlapping phase, discharging the switched capacitor amplifier, and when i+1≥2, if the comparator is at the The i-th digital quantity outputted in one clock cycle is 0, enabling the N-ith capacitive branch in the variable capacitance array;
    控制所述开关电容放大器进入复位阶段;在所述复位阶段中,对所述开关电容放大器进行充电;Controlling the switched capacitor amplifier to enter a reset phase; in the reset phase, charging the switched capacitor amplifier;
    控制所述开关电容放大器进入第二非交叠阶段;在所述第二非交叠阶段中,禁能所述可变电容阵列中的第N-(i+1)条电容支路;Controlling the switched capacitor amplifier to enter a second non-overlapping phase; in the second non-overlapping phase, disabling the N-(i+1)th capacitive branch in the variable capacitor array;
    控制所述开关电容放大器进入放大阶段;在所述放大阶段中,所述比较器输出第i+1个数字量;Controlling the switched capacitor amplifier to enter an amplification phase; in the amplification phase, the comparator outputs an i+1th digital quantity;
    其中,i=0,1,2,…..N-1;在N个时钟周期中,所述比较器依次输出的N个数字量用于表征所述待检测电容。 Wherein, i=0, 1, 2, . . . , N-1; in N clock cycles, the N digital quantities sequentially output by the comparator are used to characterize the capacitance to be detected.
PCT/CN2016/105002 2016-11-08 2016-11-08 Capacitor detection circuit and control method therefor WO2018085972A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2016/105002 WO2018085972A1 (en) 2016-11-08 2016-11-08 Capacitor detection circuit and control method therefor
CN201680001494.2A CN106796259B (en) 2016-11-08 2016-11-08 Capacitive detection circuit and its control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/105002 WO2018085972A1 (en) 2016-11-08 2016-11-08 Capacitor detection circuit and control method therefor

Publications (1)

Publication Number Publication Date
WO2018085972A1 true WO2018085972A1 (en) 2018-05-17

Family

ID=58952919

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/105002 WO2018085972A1 (en) 2016-11-08 2016-11-08 Capacitor detection circuit and control method therefor

Country Status (2)

Country Link
CN (1) CN106796259B (en)
WO (1) WO2018085972A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220200588A1 (en) * 2020-12-17 2022-06-23 Realtek Semiconductor Corporation Current steering comparator and capacitor control method
CN117572090A (en) * 2024-01-16 2024-02-20 北京全路通信信号研究设计院集团有限公司 Signal detection circuit, detection method and detection equipment of capacitive sensor

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106796259B (en) * 2016-11-08 2019-10-15 深圳市汇顶科技股份有限公司 Capacitive detection circuit and its control method
EP3480607B1 (en) 2017-09-11 2020-03-18 Shenzhen Goodix Technology Co., Ltd. Capacitance detection circuit, capacitance detection method, touch detection device and terminal device
CN109496273B (en) * 2018-01-24 2021-05-11 深圳市汇顶科技股份有限公司 Capacitance detection circuit, touch detection device and terminal equipment
WO2019241968A1 (en) * 2018-06-21 2019-12-26 深圳市汇顶科技股份有限公司 Method for eliminating button base, capacitive button detection circuit and intelligent terminal
CN108599739A (en) * 2018-07-19 2018-09-28 重庆湃芯入微科技有限公司 A kind of integrating circuit based on non-overlapping clock charge transfer technology
CN111257673A (en) * 2020-02-17 2020-06-09 广东博智林机器人有限公司 Capacitor fault detection circuit, detection method and servo drive circuit
EP4024702A4 (en) * 2020-09-02 2022-11-02 Shenzhen Goodix Technology Co., Ltd. Capacitor array circuit, charging and discharging circuit, and rc oscillation circuit
CN113031081A (en) * 2021-03-10 2021-06-25 维沃移动通信有限公司 Proximity sensing detection circuit, capacitance calibration method and device and electronic equipment
CN113411085B (en) * 2021-06-29 2023-11-10 成都信息工程大学 Successive approximation type capacitance detection circuit

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1773442A (en) * 2004-11-09 2006-05-17 夏普株式会社 An apparatus for measuring capacitance and sensor array
JP4990198B2 (en) * 2008-03-14 2012-08-01 日立オートモティブシステムズ株式会社 Sensor output device
CN105954596A (en) * 2016-04-21 2016-09-21 上海华力微电子有限公司 Circuit and method for small capacitor mismatching detection and absolute value measurement
CN106796259A (en) * 2016-11-08 2017-05-31 深圳市汇顶科技股份有限公司 Capacitive detection circuit and its control method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1773442A (en) * 2004-11-09 2006-05-17 夏普株式会社 An apparatus for measuring capacitance and sensor array
JP4990198B2 (en) * 2008-03-14 2012-08-01 日立オートモティブシステムズ株式会社 Sensor output device
CN105954596A (en) * 2016-04-21 2016-09-21 上海华力微电子有限公司 Circuit and method for small capacitor mismatching detection and absolute value measurement
CN106796259A (en) * 2016-11-08 2017-05-31 深圳市汇顶科技股份有限公司 Capacitive detection circuit and its control method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220200588A1 (en) * 2020-12-17 2022-06-23 Realtek Semiconductor Corporation Current steering comparator and capacitor control method
US11482994B2 (en) * 2020-12-17 2022-10-25 Realtek Semiconductor Corporation Current steering comparator and capacitor control method
CN117572090A (en) * 2024-01-16 2024-02-20 北京全路通信信号研究设计院集团有限公司 Signal detection circuit, detection method and detection equipment of capacitive sensor
CN117572090B (en) * 2024-01-16 2024-03-19 北京全路通信信号研究设计院集团有限公司 Signal detection circuit, detection method and detection equipment of capacitive sensor

Also Published As

Publication number Publication date
CN106796259B (en) 2019-10-15
CN106796259A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
WO2018085972A1 (en) Capacitor detection circuit and control method therefor
US7271758B2 (en) Gain adjust for SAR ADC
JP4153026B2 (en) AD converter and AD conversion method
US20110068810A1 (en) Sensing method and driving circuit of capacitive touch screen
US20140368222A1 (en) Capacitive Proximity Detection Using Delta-Sigma Conversion
US10326464B2 (en) Self-oscillating multi-ramp converter and method for converting a capacitance into a digital signal
US10742228B2 (en) Successive approximation register (SAR) analog to digital converter (ADC) with overlapping reference voltage ranges
EP3324331B1 (en) Capacitive sensing circuit
CN109379082B (en) Successive approximation analog-to-digital converter
US10608656B2 (en) Sensing an external stimulus using a group of continuous-time Nyquist rate analog-to-digital converters in a round-robin manner
US20140218223A1 (en) Multiplexed sigma delta modulator
US20180083649A1 (en) Analog/digital conversion with analog filtering
CN102158229A (en) Offset voltage and charge injection elimination technology for ADC (analog-to-digital converter)
KR101912383B1 (en) Fingerprint detection circuit and electronic device
JP2003198372A (en) A/d converter
CN115981507B (en) Touch sensing system
WO2018036303A1 (en) Method and device for controlling charging and discharging of capacitor module and display device
CN112513598A (en) Method and circuit for temperature sensing, temperature sensor and electrical appliance
WO2019227846A1 (en) Successive approximation register (sar) analog to digital converter (adc) with switchable reference voltage
JP2017118180A (en) A/d converter
US9912898B2 (en) Amplifier, electric circuit, and image sensor
CN110460326B (en) Touch key interface circuit and touch key monitoring system
KR102508035B1 (en) Capacitance-to-digital converters, integrated sensor interfaces and sensor devices
JP2006339013A (en) Electrostatic capacity type proximity sensor
EP3296709B1 (en) Temperature-to-digital converter

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: 16921440

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: 16921440

Country of ref document: EP

Kind code of ref document: A1