CN101666830A - Capacitance value measuring circuit and electronic device using same - Google Patents

Capacitance value measuring circuit and electronic device using same Download PDF

Info

Publication number
CN101666830A
CN101666830A CN200810213973A CN200810213973A CN101666830A CN 101666830 A CN101666830 A CN 101666830A CN 200810213973 A CN200810213973 A CN 200810213973A CN 200810213973 A CN200810213973 A CN 200810213973A CN 101666830 A CN101666830 A CN 101666830A
Authority
CN
China
Prior art keywords
capacitor
voltage
coupled
switch
circuit
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN200810213973A
Other languages
Chinese (zh)
Other versions
CN101666830B (en
Inventor
光宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Raydium Semiconductor Corp
Original Assignee
Raydium Semiconductor Corp
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 Raydium Semiconductor Corp filed Critical Raydium Semiconductor Corp
Priority to CN 200810213973 priority Critical patent/CN101666830B/en
Publication of CN101666830A publication Critical patent/CN101666830A/en
Application granted granted Critical
Publication of CN101666830B publication Critical patent/CN101666830B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Measurement Of Resistance Or Impedance (AREA)

Abstract

The invention relates to a capacitance value measuring circuit, comprising: the device comprises a capacitive voltage division circuit, an analog-to-digital converter (ADC) and a processing module. The capacitive voltage-dividing circuit includes: a switch circuit, a known capacitor and a capacitor to be measured. The switch circuit is controlled by the first and second clock signals. The conducting state of the switch circuit enables the voltage variation of the first end of the known capacitor to be coupled to the first end of the capacitor to be measured. The analog-digital converter converts the voltage of the first end of the capacitor to be measured into a digital signal. The processing module detects the capacitance value and the variable quantity of the capacitor to be detected according to the digital signal of the analog-digital converter and the parameters of the analog-digital converter. The invention also relates to an electronic device applying the capacitance value measuring circuit, which is used for measuring the capacitance value of the capacitor to be measured.

Description

电容值测量电路及应用其的电子装置 Capacitance value measuring circuit and electronic device using it

技术领域 technical field

本发明涉及一种电容值测量电路与应用其的电子装置,其用于测量待测电容的电容值。The invention relates to a capacitance value measuring circuit and an electronic device using the same, which are used for measuring the capacitance value of a capacitor to be measured.

背景技术 Background technique

传统上,大多以机械式开关来实现使用者控制界面。由于使用者需直接接触到传统机械开关,传统机械开关才可响应使用者的控制指令而进行操作,传统机械式装置容易在使用者操作过程中发生损坏。目前,已发展出触控式开关。触控式开关例如是电容式开关等。Traditionally, mechanical switches are mostly used to realize the user control interface. Since the user needs to directly touch the traditional mechanical switch, the traditional mechanical switch can operate in response to the user's control command, and the traditional mechanical device is easy to be damaged during the user's operation. At present, a touch switch has been developed. The touch switch is, for example, a capacitive switch or the like.

为了提升使用上的便利性,已研发出触控面板(touch panel)或显示触控面板(同时具有显示与触控的功能)。触控面板或显示触控面板可接受使用者的输入、点选等操作。触控面板或显示触控面板可应用于各种电子装置中,例如移动电话中。这样,可使使用者直接在触控面板或显示触控面板上点选画面来进行操作,由此提供更为便捷且人性化的操作模式。触控面板或显示触控面板有多种,电容式触控面板或显示触控面板是其中的一种。In order to improve the convenience of use, a touch panel (touch panel) or a display touch panel (having both display and touch functions) has been developed. The touch panel or display touch panel can accept user's input, click and other operations. The touch panel or display touch panel can be applied in various electronic devices, such as mobile phones. In this way, the user can directly click on the screen on the touch panel or the display touch panel to perform operations, thereby providing a more convenient and humanized operation mode. There are many types of touch panels or display touch panels, and capacitive touch panels or display touch panels are one of them.

当使用者操作电容式触控面板、电容式显示触控面板、或电容式开关时,其内部的待测电容的电容值会随使用者操作而发生变化。由此,可检测到使用者的操作。然而,如何设计出可有效地检测待测电容的电容值变化的电容值测量电路,以提升电容式触控面板、电容式显示触控面板、或电容式开关的性能是本领域不断致力的方向之一。When the user operates the capacitive touch panel, the capacitive display touch panel, or the capacitive switch, the capacitance value of the internal capacitor to be measured will change according to the user's operation. Thereby, the user's operation can be detected. However, how to design a capacitance measurement circuit that can effectively detect the capacitance change of the capacitor to be measured, so as to improve the performance of capacitive touch panels, capacitive display touch panels, or capacitive switches is a direction that is constantly being worked on in this field. one.

发明内容 Contents of the invention

本发明涉及一种电容值测量电路,与传统电容值测量电路相比,该电容值测量电路可更准确地测量出待测电容的电容值与其电容值变化量。The invention relates to a capacitance value measuring circuit. Compared with the traditional capacitance value measuring circuit, the capacitance value measuring circuit can more accurately measure the capacitance value and the variation of the capacitance value of the capacitor to be measured.

本发明涉及一种电子装置,其内部的触控屏幕与传感器可共享同一个模拟数字转换器(ADC),以减少该电子装置的电路面积与成本。The invention relates to an electronic device, in which a touch screen and a sensor can share the same analog-to-digital converter (ADC), so as to reduce the circuit area and cost of the electronic device.

本发明提供一种电容值测量电路,包括:电容式分压电路,其包括:开关电路、第一电容与第二电容,开关电路耦接至第一与第二电容,开关电路受控于第一时钟信号与第二时钟信号,第二时钟信号为第一时钟信号的反相信号,开关电路的导通状态使得第一电容的第一端的电压变化量耦合至第二电容的第一端;模拟数字转换器,耦接至电容式分压电路,模拟数字转换器将第二电容的第一端的电压转换成第一数字信号;以及处理模块,耦接至模拟数字转换器,处理模块根据模拟数字转换器的第一数字信号与模拟数字转换器的参数,以检测出第二电容的电容值及其变化量。The present invention provides a capacitance measurement circuit, comprising: a capacitive voltage divider circuit, which includes: a switch circuit, a first capacitor and a second capacitor, the switch circuit is coupled to the first capacitor and the second capacitor, and the switch circuit is controlled by the first capacitor A clock signal and a second clock signal, the second clock signal is an inversion signal of the first clock signal, and the conduction state of the switch circuit makes the voltage change at the first end of the first capacitor coupled to the first end of the second capacitor An analog-to-digital converter, coupled to the capacitive voltage divider circuit, the analog-to-digital converter converts the voltage at the first end of the second capacitor into a first digital signal; and a processing module, coupled to the analog-to-digital converter, the processing module According to the first digital signal of the analog-to-digital converter and the parameters of the analog-to-digital converter, the capacitance value of the second capacitor and its variation are detected.

在本发明的电容值测量电路中,在一种实施方式中,该电容式分压电路的开关电路包括:第一开关,其第一端耦接至第一电压源,其第二端耦接至该第二电容的第一端,该第一开关的导通受控于第一时钟信号;第二开关,其第一端耦接至第一电压源,其第二端耦接至该第一电容的第一端,该第二开关的导通受控于第一时钟信号;以及第三开关,其第一端耦接至第二电压源,其第二端耦接至该第一电容的第一端,该第三开关的导通受控于该第二时钟信号;其中,该第一电容的第二端耦接至第二电容的该第一端,该第二电容的第二端耦接至第三电压源。In the capacitance measuring circuit of the present invention, in one embodiment, the switch circuit of the capacitive voltage divider circuit includes: a first switch, the first end of which is coupled to the first voltage source, and the second end of which is coupled to To the first end of the second capacitor, the conduction of the first switch is controlled by the first clock signal; the first end of the second switch is coupled to the first voltage source, and the second end is coupled to the first a first terminal of a capacitor, the conduction of the second switch is controlled by the first clock signal; and a third switch, the first terminal of which is coupled to the second voltage source, and the second terminal of which is coupled to the first capacitor The first end of the third switch is controlled by the second clock signal; wherein, the second end of the first capacitor is coupled to the first end of the second capacitor, and the second end of the second capacitor The terminal is coupled to a third voltage source.

本发明的电容值测量电路,在一种实施方式中,该模拟数字转换器的参数包括该模拟数字转换器的分辨率与转换电压区间;以及该处理模块进一步依据该第一电压源的电压值、该第二电压源的电压值与该第一电容的电容值、该模拟数字转换器的分辨率、该模拟数字转换器的该转换电压区间与该模拟数字转换器的第一数字信号,以检测出该第二电容的电容值及其变化量。In the capacitance measuring circuit of the present invention, in one embodiment, the parameters of the analog-to-digital converter include the resolution and conversion voltage range of the analog-to-digital converter; and the processing module is further based on the voltage value of the first voltage source , the voltage value of the second voltage source and the capacitance value of the first capacitor, the resolution of the analog-to-digital converter, the converted voltage range of the analog-to-digital converter and the first digital signal of the analog-to-digital converter, to The capacitance value of the second capacitor and its variation are detected.

本发明的电容值测量电路,在一种实施方式中,进一步包括偏压电路,耦接至该电容式分压电路与该模拟数字转换器,该偏压电路用于施加偏压至第一节点上,使得该第一节点的电压与该偏压与该第二电容的第一端的电压有关。In one embodiment, the capacitance measurement circuit of the present invention further includes a bias circuit coupled to the capacitive voltage divider circuit and the analog-to-digital converter, and the bias circuit is used to apply a bias voltage to the first node , so that the voltage of the first node is related to the bias voltage and the voltage of the first terminal of the second capacitor.

本发明的电容值测量电路,在一种实施方式中,该模拟数字转换器包括:开关-取样-电容电路、操作放大器、比较器、锁存器(栓锁器,latch)、反相器、计数器以及开关-电容电路,其中,开关-取样-电容电路具有耦接至该电容式分压电路的该第二电容的第一端的第一输入端以及输出端,该开关-取样-电容电路受控于该第一时钟信号与该第二时钟信号,以取样该电容式分压电路的该第二电容的该第一端的电压;操作放大器具有耦接至该开关-取样电容电路的输出端的第一输入端、第二输入端、第一输出端和第二输出端;比较器具有耦接至该操作放大器的第一输出端的第一输入端、耦接至该操作放大器的第二输出端的第二输入端,以及输出第二数字信号的输出端;锁存器,接收比较器所输出的第二数字信号,在该第一时钟信号的触发下,该锁存器将第二数字信号输出成第三数字信号;将第三数字信号反相的反相器;计数器,计数该第三数字信号,以产生第一数字信号;以及开关-电容电路,其耦接至该操作放大器的第二输入端,受控于第一时钟信号、第二时钟信号、第三数字信号与第三数字信号的反相信号。The capacitance measuring circuit of the present invention, in one embodiment, the analog-to-digital converter includes: a switch-sampling-capacitance circuit, an operational amplifier, a comparator, a latch (latch, latch), an inverter, A counter and a switch-capacitor circuit, wherein the switch-sampling-capacitance circuit has a first input terminal and an output terminal coupled to the first terminal of the second capacitor of the capacitive voltage divider circuit, and the switch-sampling-capacitance circuit controlled by the first clock signal and the second clock signal to sample the voltage at the first terminal of the second capacitor of the capacitive voltage divider circuit; the operational amplifier has an output coupled to the switch-sampling capacitor circuit A first input terminal, a second input terminal, a first output terminal and a second output terminal of the terminal; the comparator has a first input terminal coupled to the first output terminal of the operational amplifier, a second output terminal coupled to the operational amplifier The second input end of the terminal, and the output end of the second digital signal; the latch receives the second digital signal output by the comparator, and under the trigger of the first clock signal, the latch converts the second digital signal to output as a third digital signal; an inverter that inverts the third digital signal; a counter that counts the third digital signal to generate a first digital signal; and a switch-capacitor circuit that is coupled to the first digital signal of the operational amplifier. The two input terminals are controlled by the first clock signal, the second clock signal, the third digital signal and the inversion signal of the third digital signal.

本发明还提供一种电子装置,包括:待测电容,用于输出待测电压;传感器,用于输出感测信号;多工器,耦接至待测电容与传感器,以输出待测电压与感测信号之一;以及模拟数字转换器,耦接至多工器,用于将待测电压或感测信号转换成数字输出信号,数字输出信号代表待测电容的电容值及其变化量,或者代表该传感器的感测结果。The present invention also provides an electronic device, including: a capacitor to be measured, used to output a voltage to be measured; a sensor, used to output a sensing signal; a multiplexer, coupled to the capacitor to be measured and the sensor, to output the voltage to be measured and the sensor. One of the sensing signals; and an analog-to-digital converter coupled to the multiplexer for converting the voltage to be measured or the sensing signal into a digital output signal, the digital output signal representing the capacitance value of the capacitor to be measured and its variation, or Represents the sensing result of the sensor.

本发明的电子装置,在一种实施方式中进一步包括触控屏幕,其中,该待测电容位于触控屏幕内。In one embodiment, the electronic device of the present invention further includes a touch screen, wherein the capacitance to be measured is located in the touch screen.

为使本发明的上述内容能够更加明显易懂,下文特别列举实施例,并结合附图,作详细说明如下:In order to make the above-mentioned contents of the present invention more obvious and understandable, the embodiments are specifically listed below, and in conjunction with the accompanying drawings, the detailed description is as follows:

附图说明 Description of drawings

图1示出了根据本发明第一实施例的电容值测量电路的电路示意图。FIG. 1 shows a schematic circuit diagram of a capacitance measurement circuit according to a first embodiment of the present invention.

图2示出了图1的相关波形图。FIG. 2 shows the relevant waveform diagram of FIG. 1 .

图3示出了根据本发明第二实施例的电容值测量电路的电路示意图。FIG. 3 shows a schematic circuit diagram of a capacitance measurement circuit according to a second embodiment of the present invention.

图4示出了图3的相关波形图。FIG. 4 shows the relevant waveform diagram of FIG. 3 .

图5示出了根据本发明第三实施例的电子装置的功能模块示意图。Fig. 5 shows a schematic diagram of functional modules of an electronic device according to a third embodiment of the present invention.

具体实施方式 Detailed ways

根据本发明实施例的电容值测量电路可用于测量待测电容的电容值,并将电容值转换成数字输出信号。这样,即可检测出待测电容的电容值是否有变化。此外,根据本发明实施例的电子装置,其内部的触控屏幕与传感器可共享同一个ADC,以减少该电子装置的电路面积与成本。The capacitance value measuring circuit according to the embodiment of the present invention can be used to measure the capacitance value of the capacitor to be measured, and convert the capacitance value into a digital output signal. In this way, it can be detected whether the capacitance value of the capacitor to be tested changes. In addition, according to the electronic device of the embodiment of the present invention, the internal touch screen and the sensor can share the same ADC, so as to reduce the circuit area and cost of the electronic device.

[第一实施例][first embodiment]

图1示出了根据本发明第一实施例的电容值测量电路的电路示意图。图2示出了图1的相关波形图。FIG. 1 shows a schematic circuit diagram of a capacitance measurement circuit according to a first embodiment of the present invention. FIG. 2 shows the relevant waveform diagram of FIG. 1 .

如图1所示,该电容值测量电路包括:模拟数字转换器110、电容式分压电路120与处理模块130。该模拟数字转换器110例如是具有取样-保持(S/H)功能的三角积分模拟数字转换器(sigma-deltaADC)。电容式分压电路120包括:开关121~123、电容Cs与Cx。在本实施例中,V1、V2与Vc为电压源,且假设V1<V2,且时钟信号ph1与ph2互为反相。As shown in FIG. 1 , the capacitance measurement circuit includes: an analog-to-digital converter 110 , a capacitive voltage divider circuit 120 and a processing module 130 . The analog-to-digital converter 110 is, for example, a delta-sigma-delta analog-to-digital converter (sigma-deltaADC) with a sample-and-hold (S/H) function. The capacitive voltage divider circuit 120 includes: switches 121 - 123 , capacitors Cs and Cx. In this embodiment, V1, V2, and Vc are voltage sources, and it is assumed that V1<V2, and the clock signals ph1 and ph2 are mutually inverse.

开关121的一端耦接至电压源V2,其另一端耦接至节点nx。节点nx的电压为Vx。开关121的导通状态受控于时钟信号ph1。比如,当时钟信号ph1为高电位时,开关121为导通;反之亦然。当开关121导通时,节点电压Vx等于V2。One terminal of the switch 121 is coupled to the voltage source V2, and the other terminal is coupled to the node nx. The voltage of node nx is Vx. The conduction state of the switch 121 is controlled by the clock signal ph1. For example, when the clock signal ph1 is at a high potential, the switch 121 is turned on; and vice versa. When the switch 121 is turned on, the node voltage Vx is equal to V2.

开关122的一端耦接至电压源V2,其另一端耦接至节点ns。节点ns的电压为Vs。开关122的导通状态受控于时钟信号ph1。比如,当时钟信号ph1为高电位时,开关122为导通;反之亦然。当开关122导通时,节点电压Vs等于V2。One terminal of the switch 122 is coupled to the voltage source V2, and the other terminal is coupled to the node ns. The voltage of node ns is Vs. The conduction state of the switch 122 is controlled by the clock signal ph1. For example, when the clock signal ph1 is high, the switch 122 is turned on; and vice versa. When the switch 122 is turned on, the node voltage Vs is equal to V2.

开关123的一端耦接至电压源V1,其另一端耦接至节点ns。开关123的导通状态受控于时钟信号ph2。比如,当时钟信号ph2为高电位时,开关123为导通;反之亦然。当开关123导通时,节点电压Vs等于V1。One terminal of the switch 123 is coupled to the voltage source V1, and the other terminal is coupled to the node ns. The conduction state of the switch 123 is controlled by the clock signal ph2. For example, when the clock signal ph2 is high, the switch 123 is turned on; and vice versa. When the switch 123 is turned on, the node voltage Vs is equal to V1.

电容Cs耦接于节点ns与nx之间。电容Cs的电容值则是已知的。电容Cx耦接于节点nx与电压源Vc之间。电容Cx的电容值是未知的,此电容值测量电路可用于测量电容Cx的电容值。The capacitor Cs is coupled between the nodes ns and nx. The capacitance value of the capacitor Cs is known. The capacitor Cx is coupled between the node nx and the voltage source Vc. The capacitance value of the capacitor Cx is unknown, and the capacitance measuring circuit can be used to measure the capacitance value of the capacitor Cx.

现在请同时参照图1与图2,以了解第一实施例的电容值测量电路的操作。Now please refer to FIG. 1 and FIG. 2 simultaneously to understand the operation of the capacitance measurement circuit of the first embodiment.

当时钟信号ph1为高电位时(也就是时钟信号ph2为低电位),开关121与122均为导通,使得节点电压Vx与Vs均等于V2。When the clock signal ph1 is at a high potential (that is, the clock signal ph2 is at a low potential), the switches 121 and 122 are both turned on, so that the node voltages Vx and Vs are both equal to V2.

当时钟信号ph1由高电位转态为低电位时(也就是时钟信号ph2由低电位转态为高电位),开关123会导通,使得节点电压Vs等于V1。这样,将使得电容Cs的一端(也为节点电压Vs)的电压变化为(V1-V2)。该电压变化量(V1-V2)将通过电容Cs而耦接至接点nx,使得节点电压Vx发生变化。节点电压Vx的电压变化量如以下公式(1)所示:When the clock signal ph1 changes from high to low (that is, the clock signal ph2 changes from low to high), the switch 123 is turned on, so that the node voltage Vs is equal to V1. In this way, the voltage at one end of the capacitor Cs (also the node voltage Vs) will change to (V1-V2). The voltage change (V1-V2) will be coupled to the node nx through the capacitor Cs, so that the node voltage Vx will change. The voltage variation of the node voltage Vx is shown in the following formula (1):

(( VV 11 -- VV 22 )) &CenterDot;&Center Dot; CsCs (( CsCs ++ CxCx )) -- -- -- (( 11 ))

在时钟信号ph1发生转态前的一瞬间,节点电压Vx为V2。在时钟信号ph1发生转态后的一瞬间,节点电压Vx如以下公式(2)所示:The moment before the clock signal ph1 transitions, the node voltage Vx is V2. Immediately after the transition of the clock signal ph1, the node voltage Vx is as shown in the following formula (2):

VxVx == VV 22 ++ (( VV 11 -- VV 22 )) &CenterDot;&Center Dot; CsCs (( CsCs ++ CxCx )) -- -- -- (( 22 ))

节点电压Vx经过ADC 120的取样并保持后,再转换成数字输出值BOUT[N:1]。数字输出值BOUT[N:1]的十进制值表示为DOUT。After the node voltage Vx is sampled and held by the ADC 120, it is converted into a digital output value BOUT[N:1]. The decimal value of the digital output value BOUT[N:1] is represented as DOUT.

根据DOUT、电容Cs的电容值、V1、V2、ADC 120的转换电压区间(Full Scale)及分辨率,处理模块130可计算出电容Cx的电容值及其变化量。According to DOUT, the capacitance of the capacitor Cs, V1, V2, the conversion voltage range (Full Scale) and resolution of the ADC 120, the processing module 130 can calculate the capacitance of the capacitor Cx and its variation.

例如,如果ADC 120的转换电压区间为V2至V1,其分辨率(resolution)为n位(n为正整数),则Cx、V1、V2、Cs、DOUT及n间的关系如公式(3)所示:For example, if the conversion voltage range of ADC 120 is V2 to V1, and its resolution (resolution) is n bits (n is a positive integer), then the relationship between Cx, V1, V2, Cs, DOUT and n is as formula (3) Shown:

VV 22 ++ (( VV 11 -- VV 22 )) &CenterDot;&Center Dot; CsCs (( CsCs ++ CxCx )) &cong;&cong; DOUTDOUT 22 nno &CenterDot;&Center Dot; (( VV 11 -- VV 22 )) -- -- -- (( 33 ))

将公式(3)简化后可得Cx如公式(4)所示:After simplifying formula (3), Cx can be obtained as shown in formula (4):

CxCx &cong;&cong; DOUTDOUT 22 nno (( VV 11 -- VV 22 )) -- VV 11 VV 22 -- DOUTDOUT 22 nno (( VV 11 -- VV 22 )) &CenterDot;&Center Dot; CsCs -- -- -- (( 44 ))

这样,即可求得电容Cx的电容值。In this way, the capacitance value of the capacitor Cx can be obtained.

第一实施例的电容值测量电路可应用于电容式开关、电容式触控面板、电容式显示触控面板等。当使用者操作电容式开关时,其内部的待测电容Cx的电容值会随着使用者的操作而改变;通过电容值测量电路来测量电容Cx的电容值与其变化量,即可得知使用者是否按下电容式开关。此外,当使用者操作电容式触控面板或电容式显示触控面板时,其内部的待测电容Cx的电容值会随着使用者的按下而改变;通过电容值测量电路来测量电容Cx的电容值与其变化量,即可得知使用者的按压位置。The capacitance measuring circuit of the first embodiment can be applied to capacitive switches, capacitive touch panels, capacitive display touch panels, and the like. When the user operates the capacitive switch, the capacitance value of the internal capacitor Cx to be measured will change with the user's operation; by measuring the capacitance value of the capacitance Cx and its variation through the capacitance value measurement circuit, the user can know or whether the capacitive switch is pressed. In addition, when the user operates the capacitive touch panel or the capacitive display touch panel, the capacitance value of the internal capacitance Cx to be measured will change as the user presses down; the capacitance Cx is measured by the capacitance measurement circuit The capacitance value and its change amount can be used to know the pressing position of the user.

[第二实施例][Second embodiment]

图3示出了根据本发明第二实施例的电容值测量电路的电路示意图。图4示出了图3的相关波形图。FIG. 3 shows a schematic circuit diagram of a capacitance measurement circuit according to a second embodiment of the present invention. FIG. 4 shows the relevant waveform diagram of FIG. 3 .

如图1所示,该电容值测量电路包括:模拟数字转换器(ADC)305、电容式分压电路380与偏压电路390。该模拟数字转换器(ADC)305例如是具有取样-保持(S/H)功能的三角积分模拟数字转换器(sigma-delta ADC)。As shown in FIG. 1 , the capacitance measurement circuit includes: an analog-to-digital converter (ADC) 305 , a capacitive voltage divider circuit 380 and a bias circuit 390 . The analog-to-digital converter (ADC) 305 is, for example, a delta-sigma-delta analog-to-digital converter (sigma-delta ADC) with a sample-and-hold (S/H) function.

ADC 305包括:操作放大器(OP)310、比较器(CMP)320、锁存器330、反相器340、计数器350、开关361~370、电容371~375。The ADC 305 includes: an operational amplifier (OP) 310, a comparator (CMP) 320, a latch 330, an inverter 340, a counter 350, switches 361-370, and capacitors 371-375.

操作放大器310具有:正输入端inp,耦接至开关368与电容374;负输入端inn,耦接至开关370与电容373;正输出端outp,耦接至比较器320的正输入端与电容373;以及负输出端outn,耦接至比较器320的负输入端与电容374。The operational amplifier 310 has: a positive input terminal inp coupled to the switch 368 and the capacitor 374; a negative input terminal inn coupled to the switch 370 and the capacitor 373; a positive output terminal outp coupled to the positive input terminal of the comparator 320 and the capacitor 373 ; and the negative output terminal outn, coupled to the negative input terminal of the comparator 320 and the capacitor 374 .

比较器320具有:正输入端,耦接至操作放大器310的正输出端outp;负输入端,耦接至操作放大器310的负输出端outn;以及输出端,耦接至锁存器330。比较器320的输出信号C_OUT输入至锁存器330。The comparator 320 has: a positive input terminal coupled to the positive output terminal outp of the operational amplifier 310 ; a negative input terminal coupled to the negative output terminal outn of the operational amplifier 310 ; and an output terminal coupled to the latch 330 . The output signal C_OUT of the comparator 320 is input to the latch 330 .

锁存器330接收比较器320的输出信号C_OUT,以输出数字信号D1。锁存器330受控于时钟信号ph1。The latch 330 receives the output signal C_OUT of the comparator 320 to output the digital signal D1. The latch 330 is controlled by the clock signal ph1.

反相器340将数字信号D1反相成另一数字信号D1B。也就是,数字信号D1与D1B互为反相。The inverter 340 inverts the digital signal D1 into another digital signal D1B. That is, the digital signals D1 and D1B are inverse phases of each other.

计数器350对数字信号D1计数,以产生计数结果BOUT[N:1]。The counter 350 counts the digital signal D1 to generate a counting result BOUT[N:1].

开关361的一端耦接至电压源(V1+V2)/2,其另一端耦接至电容371与开关362。开关361的导通状态受控于时钟信号ph1。One terminal of the switch 361 is coupled to the voltage source ( V1 +V2 )/2 , and the other terminal is coupled to the capacitor 371 and the switch 362 . The conduction state of the switch 361 is controlled by the clock signal ph1.

开关362的一端耦接至电压源V2,其另一端耦接至电容371与开关361。开关362的导通状态受控于时钟信号ph2。One terminal of the switch 362 is coupled to the voltage source V2 , and the other terminal is coupled to the capacitor 371 and the switch 361 . The conduction state of the switch 362 is controlled by the clock signal ph2.

开关363的一端耦接至电压源(V1+V2)/2,其另一端耦接至电容372与开关366。开关363的导通状态受控于时钟信号ph1。One terminal of the switch 363 is coupled to the voltage source ( V1 +V2 )/2 , and the other terminal is coupled to the capacitor 372 and the switch 366 . The conduction state of the switch 363 is controlled by the clock signal ph1.

开关364的一端耦接至电压源V1,其另一端耦接至开关365与366。开关364的导通状态受控于数字信号D1B。One terminal of the switch 364 is coupled to the voltage source V1 , and the other terminal is coupled to the switches 365 and 366 . The conduction state of the switch 364 is controlled by the digital signal D1B.

开关365的一端耦接至电压源V2,其另一端耦接至开关364与366。开关365的导通状态受控于数字信号D1。One terminal of the switch 365 is coupled to the voltage source V2 , and the other terminal is coupled to the switches 364 and 366 . The conduction state of the switch 365 is controlled by the digital signal D1.

开关366的一端耦接至电容372与开关363,其另一端耦接至开关364与365。开关366的导通状态受控于时钟信号ph2。开关364~366用于将电压源V1与V2之一传送至电容372。One terminal of the switch 366 is coupled to the capacitor 372 and the switch 363 , and the other terminal is coupled to the switches 364 and 365 . The conduction state of the switch 366 is controlled by the clock signal ph2. The switches 364 - 366 are used to transmit one of the voltage sources V1 and V2 to the capacitor 372 .

开关367的一端耦接至电压源V3,其另一端耦接至开关368、电容371与372。开关367的导通状态受控于时钟信号ph1。One terminal of the switch 367 is coupled to the voltage source V3 , and the other terminal is coupled to the switch 368 and capacitors 371 and 372 . The conduction state of the switch 367 is controlled by the clock signal ph1.

开关368的一端耦接至开关367、电容371与372,其另一端耦接至操作放大器310的正输入端inp与电容374。开关368的导通状态受控于时钟信号ph2。此外,开关361~368以及电容371~372也可称为开关-电容电路,其耦接至操作放大器310的输入端inp。该开关-电容电路受控于时钟信号ph1、时钟信号ph2、数字信号D1与D1B。One terminal of the switch 368 is coupled to the switch 367 and capacitors 371 and 372 , and the other terminal is coupled to the positive input terminal inp of the operational amplifier 310 and the capacitor 374 . The conduction state of the switch 368 is controlled by the clock signal ph2. In addition, the switches 361 - 368 and the capacitors 371 - 372 can also be referred to as switch-capacitor circuits, which are coupled to the input terminal inp of the operational amplifier 310 . The switch-capacitor circuit is controlled by a clock signal ph1, a clock signal ph2, and digital signals D1 and D1B.

开关369的一端耦接至电压源V3,其另一端耦接至节点nr。开关369的导通状态受控于时钟信号ph1。One terminal of the switch 369 is coupled to the voltage source V3, and the other terminal is coupled to the node nr. The conduction state of the switch 369 is controlled by the clock signal ph1.

开关370的一端耦接至节点nr,其另一端耦接至操作放大器310的负输入端inn与电容373。开关370的导通状态受控于时钟信号ph2。One terminal of the switch 370 is coupled to the node nr, and the other terminal is coupled to the negative input terminal inn of the operational amplifier 310 and the capacitor 373 . The conduction state of the switch 370 is controlled by the clock signal ph2.

电容371的一端耦接至开关361与362,其另一端耦接至开关367、368与电容372。One terminal of the capacitor 371 is coupled to the switches 361 and 362 , and the other terminal is coupled to the switches 367 , 368 and the capacitor 372 .

电容372的一端耦接至开关363与366,其另一端耦接至开关367、368与电容371。One terminal of the capacitor 372 is coupled to the switches 363 and 366 , and the other terminal is coupled to the switches 367 , 368 and the capacitor 371 .

电容373耦接于操作放大器310的负输入端inn与正输出端outp之间,以作为回授电路。The capacitor 373 is coupled between the negative input terminal inn and the positive output terminal outp of the operational amplifier 310 to serve as a feedback circuit.

电容374耦接于操作放大器310的正输入端inp与负输出端outn之间,以作为回授电路。The capacitor 374 is coupled between the positive input terminal inp and the negative output terminal outn of the operational amplifier 310 to serve as a feedback circuit.

电容375的一端耦接于节点nx,其另一端耦接至开关369、370。One terminal of the capacitor 375 is coupled to the node nx, and the other terminal is coupled to the switches 369 and 370 .

电容371,372与375的电容值为C1;而电容373与374的电容值为C2。The capacitance values of the capacitors 371, 372 and 375 are C1; and the capacitance values of the capacitors 373 and 374 are C2.

此外,电容375与开关369~370也可称为开关-取样-电容电路,其具有:输入端,耦接至电容式分压电路380的Cs电容的一端nx;以及输出端,耦接至操作放大器的输入端inn。该开关-取样-电容电路受控于时钟信号ph1与ph2,以取样电容Cx的端点电压Vx。In addition, the capacitor 375 and the switches 369-370 can also be referred to as a switch-sampling-capacitor circuit, which has: an input terminal coupled to one terminal nx of the Cs capacitor of the capacitive voltage divider circuit 380; and an output terminal coupled to the operation Amplifier input inn. The switch-sampling-capacitor circuit is controlled by the clock signals ph1 and ph2 to sample the terminal voltage Vx of the capacitor Cx.

电容式分压电路380包括:开关381~383与电容Cs与Cx。电容式分压电路380相同或相似于第一实施例的电容式分压电路120,因而在本文中省略其细节。The capacitive voltage divider circuit 380 includes: switches 381 - 383 and capacitors Cs and Cx. The capacitive voltage dividing circuit 380 is the same or similar to the capacitive voltage dividing circuit 120 of the first embodiment, and thus its details are omitted herein.

偏压电路390用于产生电荷变化量(V2-V1)C1,以将该电荷变化量耦合到节点nr上。也就是,在一个完整的时钟周期时间后,电容式分压电路380和偏压电路390会将(Vx-V1)C1的电荷变化量耦合至节点nr。偏压电路390包括:开关391~392,以及电容393。电容393的电容值为C1。The bias circuit 390 is used to generate a charge variation (V2-V1) C1 to couple the charge variation to the node nr. That is, after a complete clock cycle time, the capacitive voltage divider circuit 380 and the bias circuit 390 will couple the charge variation of (Vx-V1)C1 to the node nr. The bias circuit 390 includes: switches 391 - 392 , and a capacitor 393 . The capacitance value of the capacitor 393 is C1.

开关391的一端耦接至电压源V1,其另一端耦接至电容393。开关391的导通状态受控于时钟信号ph1。One terminal of the switch 391 is coupled to the voltage source V1 , and the other terminal is coupled to the capacitor 393 . The conduction state of the switch 391 is controlled by the clock signal ph1.

开关392的一端耦接至电压源V2,其另一端耦接至电容393。开关392的导通状态受控于时钟信号ph2。One terminal of the switch 392 is coupled to the voltage source V2 , and the other terminal is coupled to the capacitor 393 . The conduction state of the switch 392 is controlled by the clock signal ph2.

电容393的一端耦接至开关391与392,其另一端耦接至节点电压Vr。One terminal of the capacitor 393 is coupled to the switches 391 and 392, and the other terminal is coupled to the node voltage Vr.

现在请同时参照图3与图4,以了解本实施例的电容值测量电路的操作。Now please refer to FIG. 3 and FIG. 4 simultaneously to understand the operation of the capacitance measurement circuit of this embodiment.

在本实施例中,开关的切换会导致电压Vx产生变化。电压Vx输入至ADC 305以得到数字值BOUT[N:1]。由此得知待测电容Cx的电容值。In this embodiment, the switching of the switch will cause the voltage Vx to change. The voltage Vx is input to the ADC 305 to obtain the digital value BOUT[N:1]. Thus, the capacitance value of the capacitor Cx to be measured is obtained.

现在将说明如何得知输入至ADC 305的电压值Vx。How to know the voltage value Vx input to the ADC 305 will now be described.

在时钟信号ph1转态前后(也就是时钟信号ph2转态前后),节点nx的电荷应相等。因此,节点nx的电荷满足公式(5):Before and after the transition of the clock signal ph1 (that is, before and after the transition of the clock signal ph2), the charge of the node nx should be equal. Therefore, the charge of node nx satisfies formula (5):

(V2-V3)C1+(V2-V2)Cs+(V2-Vc)Cx=(Vx(s)-V3)C1+(Vx(s)-V1)Cs+(Vx(s)-Vc)Cx  (5)(V2-V3)C1+(V2-V2)Cs+(V2-Vc)Cx=(Vx(s)-V3)C1+(Vx(s)-V1)Cs+(Vx(s)-Vc)Cx (5)

在公式(5)中,等式左边代表的是时钟信号ph1转态前在节点nx的电荷,而等式右边代表的是时钟信号ph1转态后在节点nx的电荷。其中,Vx(s)代表当时钟信号ph2为致能时的电压Vx。也即,当时钟信号ph2为致能时,在本实施例中,ADC 305会对电压Vx进行取样-保持,以得到电压Vx(s)。Vx(s)如公式(6)所表示:In formula (5), the left side of the equation represents the charge at the node nx before the clock signal ph1 transitions, and the right side of the equation represents the charge at the node nx after the clock signal ph1 transitions. Wherein, Vx(s) represents the voltage Vx when the clock signal ph2 is enabled. That is, when the clock signal ph2 is enabled, in this embodiment, the ADC 305 samples and holds the voltage Vx to obtain the voltage Vx(s). Vx(s) is represented by formula (6):

VxVx (( sthe s )) == VV 22 (( CxCx ++ CC 11 )) ++ VV 11 CsCs CxCx ++ CsCs ++ CC 11 -- -- -- (( 66 ))

当比较器320的输出信号C_OUT为0时,数字信号D1为非致能(低电位),且数字信号D1B为致能(高电位)。当比较器320的输出信号C_OUT为0时,在时钟信号ph1转态前后(也即时钟信号ph2转态前后),操作放大器310的输入端inn的电荷应相等。因而输入端inn的电荷可表示为公式(7):When the output signal C_OUT of the comparator 320 is 0, the digital signal D1 is disabled (low potential), and the digital signal D1B is enabled (high potential). When the output signal C_OUT of the comparator 320 is 0, the charge at the input terminal inn of the operational amplifier 310 should be equal before and after the transition of the clock signal ph1 (that is, before and after the transition of the clock signal ph2 ). Therefore, the charge at the input terminal inn can be expressed as formula (7):

[V3-voutp((i-0.5))]C2+(V3-V1)C1+(V3-V2)C1[V3-voutp((i-0.5))]C2+(V3-V1)C1+(V3-V2)C1

                                                (7)(7)

=[V3-voutp(i)]C2+(V3-V2)C1+[V3-Vx(s)]C1=[V3-voutp(i)]C2+(V3-V2)C1+[V3-Vx(s)]C1

其中,voutp(i-0.5)与voutp(i)分别代表在第(i-0.5)个时钟与第i个时钟的节点电压voutp。Wherein, voutp(i-0.5) and voutp(i) respectively represent the node voltage voutp of the (i-0.5)th clock and the i-th clock.

相似地,当比较器320的输出信号C_OUT为0时,在时钟信号ph1转态前后(也即时钟信号ph2转态前后),操作放大器310的输入端inp的电荷应相等。因此输入端inp的电荷可表示为公式(8):Similarly, when the output signal C_OUT of the comparator 320 is 0, the charge at the input terminal inp of the operational amplifier 310 should be equal before and after the transition of the clock signal ph1 (that is, before and after the transition of the clock signal ph2 ). Therefore, the charge at the input terminal inp can be expressed as formula (8):

[[ VV 33 -- voutnvoutn (( (( ii -- 0.50.5 )) )) ]] CC 22 ++ [[ VV 33 -- (( VV 11 ++ VV 22 )) 22 ]] CC 11 ++ [[ VV 33 -- (( VV 11 ++ VV 22 )) 22 ]] CC 11

== [[ VV 33 -- voutnvoutn (( ii )) ]] CC 22 ++ (( VV 33 -- VV 22 )) CC 11 ++ (( VV 33 -- VV 11 )) CC 11 -- -- -- (( 88 ))

其中,voutn(i-0.5)与voutn(i)分别代表在第(i-0.5)个时钟与第i个时钟的节点电压voutn。Wherein, voutn(i-0.5) and voutn(i) respectively represent the node voltage voutn of the (i-0.5)th clock and the i-th clock.

将(7)和(8)两式相减后得到公式(9):After subtracting the two formulas (7) and (8), the formula (9) is obtained:

{{ [[ voutpvoutp (( ii )) -- voutnvoutn (( ii )) ]] -- [[ voutpvoutp (( (( ii -- 0.50.5 )) )) -- voutnvoutn (( (( ii -- 0.50.5 )) )) ]] }} == (( VV 11 -- VxVx (( sthe s )) )) CC 11 CC 22 -- -- -- (( 99 ))

因为操作放大器310的差动输出电压vout为正输出电压voutp和负输出电压voutn的差值,公式(9)可改写成公式(10):Because the differential output voltage vout of the operational amplifier 310 is the difference between the positive output voltage voutp and the negative output voltage voutn, formula (9) can be rewritten as formula (10):

&Delta;vout&Delta;vout (( ++ )) == [[ voutvout (( ii )) -- voutvout (( (( ii -- 0.50.5 )) )) ]] == (( VV 11 -- VxVx (( sthe s )) )) CC 11 CC 22 -- -- -- (( 1010 ))

其中,Δvout(+)代表当D1=0时的操作放大器310的输出电压vout的电压变化量。由公式(10)可知,Δvout(+)为正值(因为V1>Vx(s))。也即,当D1=0时,输出电压vout会变高。Wherein, Δvout(+) represents the voltage variation of the output voltage vout of the operational amplifier 310 when D1 =0. It can be seen from formula (10) that Δvout(+) is a positive value (because V1>Vx(s)). That is, when D1=0, the output voltage vout will become high.

同理,可推得当D1=1时的操作放大器310的输出电压vout的电压变化量Δvout(-)如公式(11)所示:Similarly, it can be deduced that the voltage variation Δvout(-) of the output voltage vout of the operational amplifier 310 when D1=1 is shown in formula (11):

&Delta;vout&Delta;vout (( -- )) == (( VV 22 -- VxVx (( sthe s )) )) CC 11 CC 22 -- -- -- (( 1111 ))

由公式(11)可知,Δvout(-)为负值(因为V2<Vx(s))。也即,当D1=1时,输出电压vout会变低。It can be seen from formula (11) that Δvout(-) is a negative value (because V2<Vx(s)). That is, when D1=1, the output voltage vout will become lower.

在k个时钟周期(k为正整数)内,若数字信号D1为1的时钟周期数为m而D1为0的时钟周期数为n(m+n=k,m与n均为正整数),则操作放大器310的差动输出电压vout可表示为公式(12):Within k clock cycles (k is a positive integer), if the digital signal D1 is 1, the number of clock cycles is m and the number of D1 is 0 clock cycles is n (m+n=k, m and n are both positive integers) , then the differential output voltage vout of the operational amplifier 310 can be expressed as formula (12):

vout(k)=n·Δvout(+)+mΔvout(-)+vout(0)      (12)vout(k)=n·Δvout(+)+mΔvout(-)+vout(0) (12)

此时操作放大器310的差动输出电压vout(k)也可表示为原始电压vout(0)加上差值电压verr,如公式(13)所示:At this time, the differential output voltage vout(k) of the operational amplifier 310 can also be expressed as the original voltage vout(0) plus the difference voltage verr, as shown in formula (13):

vout(k)=vout(0)+verr                         (13)vout(k)=vout(0)+verr (13)

将公式(10)和(11)代入公式(12),解公式(12)和(13)可得:Substituting formulas (10) and (11) into formula (12), and solving formulas (12) and (13), we can get:

VxVx (( sthe s )) == nVnV 11 ++ mVmV 22 nno ++ mm ++ verrCverrC 22 (( mm ++ nno )) CC 11 -- -- -- (( 1414 ))

Figure A20081021397300182
则Vx(s)可近似于like
Figure A20081021397300182
Then Vx(s) can be approximated as

VxVx (( sthe s )) &cong;&cong; nVnV 11 ++ mVmV 22 nno ++ mm -- -- -- (( 1515 ))

将公式(6)代入公式(15),可得待测电容Cx、已知电容Cs、n、m和C1的关系式如下:Substituting formula (6) into formula (15), the relationship between the measured capacitance Cx, known capacitance Cs, n, m and C1 can be obtained as follows:

CxCx == mm nno CsCs -- CC 11 -- -- -- (( 1616 ))

这样,本实施例的电容值测量电路可根据数值m、n及已知电容Cs、C1,而测量出待测电容Cx及其变化量。In this way, the capacitance measurement circuit of this embodiment can measure the capacitance Cx to be measured and its variation according to the values m, n and the known capacitances Cs, C1.

在图4中,Tclk代表时钟信号周期,而(i-0.5)Tclk与(i)Tclk分别代表第(i-0.5)个时钟周期与第(i)个时钟周期。当时钟信号ph2为致能时,会对电压Vx进行取样。该取样结果会对操作放大器310的输出电压vout产生影响。当时钟信号ph2为致能时,电压Vx会变大,并将电荷变化量(Vx-V2)C1耦合到节点nr,同时偏压电路390也将电荷变化量(V2-V1)C1耦合到节点nr上。也就是,节点nr在一个完整的时钟周期时间后被耦合的电荷变化量为(Vx-V1)C1。因为V1>Vx,所以,节点nr的节点电荷变化量为负值,电压Vr会变小。因而,当时钟信号ph2为致能时,输出电压vout会有正积分效应(也即升高)以维持节点nr的电荷守恒,如图4的时序点410与420所示。时序点410代表对电压Vx进行取样,而时序点420则代表输出电压vout被升高(其电压变化量为Δvout(+))。In FIG. 4 , Tclk represents the period of the clock signal, and (i-0.5)Tclk and (i)Tclk represent the (i-0.5)th clock period and the (i)th clock period, respectively. When the clock signal ph2 is enabled, the voltage Vx is sampled. The sampling result will affect the output voltage vout of the operational amplifier 310 . When the clock signal ph2 is enabled, the voltage Vx will increase, and the charge change (Vx-V2) C1 will be coupled to the node nr, and the bias circuit 390 will also couple the charge change (V2-V1) C1 to the node on nr. That is, the change amount of charge coupled to node nr after a complete clock cycle time is (Vx-V1)C1. Since V1>Vx, the amount of change in the node charge of the node nr is a negative value, and the voltage Vr will become smaller. Therefore, when the clock signal ph2 is enabled, the output voltage vout has a positive integral effect (that is, increases) to maintain the charge conservation of the node nr, as shown in timing points 410 and 420 in FIG. 4 . The timing point 410 represents sampling the voltage Vx, and the timing point 420 represents the output voltage vout being boosted (the voltage variation is Δvout(+)).

当操作放大器310的输出电压vout高于临界值(0V)时,将使得比较器320的输出信号C_OUT变为1,如时序点430所示。由于比较器320的输出信号C_OUT变为1,所以,锁存器的输出信号D1也会变为1,如时序点440所示。由于输出信号D1为1(输出信号D1B为0),如上述那样,输出电压vout会降低(其电压变化量为Δvout(-)),且会小于0,如时序点450所示。When the output voltage vout of the operational amplifier 310 is higher than the critical value (0V), the output signal C_OUT of the comparator 320 becomes 1, as shown at timing point 430 . Since the output signal C_OUT of the comparator 320 becomes 1, the output signal D1 of the latch also becomes 1, as shown at timing point 440 . Since the output signal D1 is 1 (the output signal D1B is 0), as mentioned above, the output voltage vout will decrease (the voltage variation is Δvout(−)), and will be less than 0, as shown at timing point 450 .

由于在时序点450时,输出电压vout会小于0,所以,随后,比较器320的输出信号C_OUT会转态为0而数字信号D1也转态为0,使得输出电压vout再次被正积分。依此方式,即可得知数字信号D1为1的时钟周期数与数字信号D1为0的时钟周期数,并从而推出电容Cx的电容值。Since the output voltage vout is less than 0 at the timing point 450 , subsequently, the output signal C_OUT of the comparator 320 turns to 0 and the digital signal D1 also turns to 0, so that the output voltage vout is positively integrated again. In this way, the number of clock cycles in which the digital signal D1 is 1 and the number of clock cycles in which the digital signal D1 is 0 can be known, and thus the capacitance value of the capacitor Cx can be deduced.

第二实施例的电容值测量电路可应用于电容式开关、电容式触控面板、电容式显示触控面板等。当使用者操作电容式开关时,其内部的待测电容Cx的电容值会随着使用者的操作而改变;通过电容值测量电路来测量电容Cx的电容值变化,即可得知使用者是否按下电容式开关。此外,当使用者操作电容式触控面板或电容式显示触控面板时,其内部的待测电容Cx的电容值会随着使用者的按下而改变;通过电容值测量电路来测量电容Cx的电容值变化,即可得知使用者的按压位置。The capacitance measurement circuit of the second embodiment can be applied to capacitive switches, capacitive touch panels, capacitive display touch panels, and the like. When the user operates the capacitive switch, the capacitance value of the internal capacitor Cx to be tested will change with the operation of the user; by measuring the capacitance value change of the capacitor Cx through the capacitance value measuring circuit, it can be known whether the user is Press the capacitive switch. In addition, when the user operates the capacitive touch panel or the capacitive display touch panel, the capacitance value of the internal capacitance Cx to be measured will change as the user presses down; the capacitance Cx is measured by the capacitance value measurement circuit The capacitance value changes, and the user's pressing position can be known.

此外,在本发明第一与第二实施例中,由于三角积分ADC具有取样-保持的功能,因而,在本发明第一与第二实施例的电容值测量电路中,并不需要取样-保持电路。然而,本发明并不局限于此。如果电容值测量电路所用的ADC并不具有取样-保持的功能,则在电容值测量电路中,需要取样-保持电路。该取样-保持电路对电压Vx(或是电压V1-Vx)取样-保持后,将取样-保持结果送至ADC。In addition, in the first and second embodiments of the present invention, since the delta-sigma ADC has a sample-hold function, therefore, in the capacitance value measuring circuits of the first and second embodiments of the present invention, there is no need for sample-hold circuit. However, the present invention is not limited thereto. If the ADC used in the capacitance value measurement circuit does not have a sample-hold function, a sample-hold circuit is required in the capacitance value measurement circuit. The sample-hold circuit samples-holds the voltage Vx (or the voltage V1-Vx), and then sends the sample-hold result to the ADC.

此外,在本发明第一与第二实施例中,由于操作放大器为差动放大器,因此可抑制共模噪声(common noise)。In addition, in the first and second embodiments of the present invention, since the operational amplifier is a differential amplifier, common noise can be suppressed.

[第三实施例][Third embodiment]

图5示出了根据本发明第三实施例的电子装置的功能模块示意图。该电子装置例如但不局限于,具有触控屏幕的数码相机。该电子装置包括:传感器510、多工器520与ADC 530。Fig. 5 shows a schematic diagram of functional modules of an electronic device according to a third embodiment of the present invention. The electronic device is, for example but not limited to, a digital camera with a touch screen. The electronic device includes: a sensor 510, a multiplexer 520 and an ADC 530.

传感器510例如但不限于,光传感器、倾斜传感器(tilt sensor)、温度传感器与湿度传感器。传感器510可感测外界环境,并将其转换为模拟电压。该模拟电压通过ADC 530转换成数字信号,再由后端的处理模块判断该如何依据ADC的输出信号来控制电子装置。The sensor 510 is, for example but not limited to, a light sensor, a tilt sensor, a temperature sensor and a humidity sensor. The sensor 510 can sense the external environment and convert it into an analog voltage. The analog voltage is converted into a digital signal by the ADC 530, and then the back-end processing module determines how to control the electronic device according to the output signal of the ADC.

例如,传感器510包括光传感器。如果光传感器感测到外界光源为黑暗,则后端处理模块可令电子装置进入低耗量模式。但当光传感器感测到外界光源为明亮时,光传感器的输出电压有变化,因此,后端处理模块可使电子装置进入正常操作模式。For example, sensor 510 includes a light sensor. If the light sensor detects that the external light source is dark, the back-end processing module can make the electronic device enter a low power consumption mode. However, when the light sensor detects that the external light source is bright, the output voltage of the light sensor changes. Therefore, the back-end processing module can make the electronic device enter a normal operation mode.

再例如,传感器510包括倾斜传感器。如果倾斜传感器感测到电子装置被倾斜/旋转某个角度(比如,使用者将电子装置倾斜/旋转90度),则其所输出的电压会有所变化,则后端处理模块可使电子装置的屏幕显示画面配合该倾斜/旋转角度,以方便使用者观看屏幕显示画面。For another example, the sensor 510 includes a tilt sensor. If the tilt sensor senses that the electronic device is tilted/rotated by a certain angle (for example, the user tilts/rotates the electronic device by 90 degrees), the output voltage will change, and the back-end processing module can make the electronic device The on-screen display picture matches the tilt/rotation angle so that the user can watch the on-screen display picture conveniently.

又例如,传感器510包括温度传感器或湿度传感器。根据温度传感器或湿度传感器对外界环境的感测结果,后端处理模块可令电子装置进行最佳化调整。For another example, the sensor 510 includes a temperature sensor or a humidity sensor. According to the sensing result of the external environment by the temperature sensor or the humidity sensor, the back-end processing module can optimize the adjustment of the electronic device.

可根据需要,将所需的传感器加入到电子装置内。这样,电子装置具有智能(smart)操作的优点。The required sensors can be incorporated into the electronic device as required. In this way, the electronic device has the advantage of smart operation.

多工器520用于从电压Vx或传感器的输出信号中择一地输出给ADC 530。The multiplexer 520 is used to selectively output the voltage Vx or the output signal of the sensor to the ADC 530.

ADC 530可相同或相似于第一实施例或第二实施例的ADC,因而在此不重述其细节。在第三实施例中,Vx即为第一或第二实施例的待测电容Cx的电压,其可用于检测使用者的触控点位置。在本发明第三实施例中,由于触控屏幕与传感器共享ADC,因而,电子装置具有电路面积缩小的优点。The ADC 530 may be the same or similar to the ADC of the first embodiment or the second embodiment, and thus details thereof will not be repeated here. In the third embodiment, Vx is the voltage of the capacitor Cx to be tested in the first or second embodiment, which can be used to detect the position of the user's touch point. In the third embodiment of the present invention, since the touch screen and the sensor share the ADC, the electronic device has the advantage of reducing the circuit area.

此外,第一实施例或第二实施例的电容值测量电路的内部元件可根据情况需要而加入至第三实施例的电子装置内,这些均在本发明范围内。In addition, the internal components of the capacitance measuring circuit of the first embodiment or the second embodiment can be added to the electronic device of the third embodiment according to the situation, and these are all within the scope of the present invention.

综上所述,虽然本发明已以实施例披露如上,然而其并非用于限定本发明。本发明所属技术领域中普通技术人员,在不脱离本发明的精神和范围内,应当可作各种变化与修改。因此,本发明的保护范围应当以所附权利要求限定的范围为准。To sum up, although the present invention has been disclosed by the embodiments above, they are not intended to limit the present invention. Those skilled in the art to which the present invention belongs should be able to make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention should be determined by the scope defined by the appended claims.

主要组件符号说明Explanation of main component symbols

110:模拟数字转换器            120:电容式分压电路110: Analog-to-digital converter 120: Capacitive voltage divider circuit

121~123:开关                 130:处理模块121~123: switch 130: processing module

Cs、Cx:电容               305:模拟数字转换器Cs, Cx: capacitance 305: analog-to-digital converter

310:操作放大器            320:比较器310: Operational Amplifier 320: Comparator

330:锁存器                340:反相器330: Latch 340: Inverter

350:计数器                361~370:开关350: Counter 361~370: Switch

371~375:电容             380:电容式分压电路371~375: capacitor 380: capacitive voltage divider circuit

381~383:开关             390:偏压电路381~383: switch 390: bias circuit

391~392:开关             393:电容391~392: switch 393: capacitor

410~450:时序点           510:传感器410~450: timing point 510: sensor

520:多工器                530:ADC。520: Multiplexer 530: ADC.

Claims (7)

1.一种电容值测量电路,包括:1. A capacitance measurement circuit, comprising: 电容式分压电路,包括:开关电路、第一电容与第二电容,所述开关电路耦接至所述第一电容与所述第二电容,所述开关电路受控于第一时钟信号与第二时钟信号,所述第二时钟信号为所述第一时钟信号的反相信号,所述开关电路的导通状态使得所述第一电容的第一端的电压变化量耦合至所述第二电容的第一端;A capacitive voltage divider circuit, comprising: a switch circuit, a first capacitor and a second capacitor, the switch circuit is coupled to the first capacitor and the second capacitor, the switch circuit is controlled by the first clock signal and the second capacitor A second clock signal, the second clock signal is an inversion signal of the first clock signal, and the conduction state of the switch circuit makes the voltage variation of the first terminal of the first capacitor coupled to the first the first terminal of the second capacitor; 模拟数字转换器,耦接至所述电容式分压电路,所述模拟数字转换器将所述第二电容的第一端的电压转换成第一数字信号;以及an analog-to-digital converter coupled to the capacitive voltage divider circuit, the analog-to-digital converter converts the voltage at the first terminal of the second capacitor into a first digital signal; and 处理模块,耦接至所述模拟数字转换器,所述处理模块根据所述模拟数字转换器的第一数字信号与所述模拟数字转换器的参数,以检测出所述第二电容的电容值及其变化量。a processing module, coupled to the analog-to-digital converter, the processing module detects the capacitance value of the second capacitor according to the first digital signal of the analog-to-digital converter and the parameters of the analog-to-digital converter and its variation. 2.根据权利要求1所述的电容值测量电路,其中,所述电容式分压电路的所述开关电路包括:2. The capacitance measuring circuit according to claim 1, wherein the switch circuit of the capacitive voltage divider circuit comprises: 第一开关,其第一端耦接至第一电压源,其第二端耦接至所述第二电容的第一端,所述第一开关的导通受控于所述第一时钟信号;A first switch, the first end of which is coupled to the first voltage source, and the second end of which is coupled to the first end of the second capacitor, the conduction of the first switch is controlled by the first clock signal ; 第二开关,其第一端耦接至所述第一电压源,其第二端耦接至所述第一电容的第一端,所述第二开关的导通受控于所述第一时钟信号;以及The first end of the second switch is coupled to the first voltage source, the second end is coupled to the first end of the first capacitor, and the conduction of the second switch is controlled by the first clock signal; and 第三开关,其第一端耦接至第二电压源,其第二端耦接至所述第一电容的第一端,所述第三开关的导通受控于所述第二时钟信号;A third switch, the first end of which is coupled to the second voltage source, the second end of which is coupled to the first end of the first capacitor, and the conduction of the third switch is controlled by the second clock signal ; 其中,所述第一电容的第二端耦接至所述第二电容的第一端,所述第二电容的所述第二端耦接至第三电压源。Wherein, the second terminal of the first capacitor is coupled to the first terminal of the second capacitor, and the second terminal of the second capacitor is coupled to a third voltage source. 3.根据权利要求2所述的电容值测量电路,其中:3. The capacitance measuring circuit according to claim 2, wherein: 所述模拟数字转换器的参数包括:所述模拟数字转换器的分辨率与转换电压区间;以及The parameters of the analog-to-digital converter include: the resolution and conversion voltage range of the analog-to-digital converter; and 所述处理模块进一步依据所述第一电压源的电压值、所述第二电压源的电压值与所述第一电容的电容值、所述模拟数字转换器的分辨率、所述模拟数字转换器的转换电压区间与所述模拟数字转换器的第一数字信号,以检测出所述第二电容的电容值及其变化量。The processing module is further based on the voltage value of the first voltage source, the voltage value of the second voltage source and the capacitance value of the first capacitor, the resolution of the analog-to-digital converter, the analog-to-digital conversion Converting the voltage range of the converter and the first digital signal of the analog-to-digital converter to detect the capacitance value of the second capacitor and its variation. 4.根据权利要求1所述的电容值测量电路,进一步包括:4. The capacitance measuring circuit according to claim 1, further comprising: 偏压电路,耦接至所述电容式分压电路与所述模拟数字转换器,所述偏压电路用于施加偏压至第一节点上,使得所述第一节点的电压与所述偏压与所述第二电容的第一端的电压有关。a bias voltage circuit, coupled to the capacitive voltage divider circuit and the analog-to-digital converter, the bias voltage circuit is used to apply a bias voltage to the first node, so that the voltage of the first node is the same as the bias voltage The voltage is related to the voltage of the first terminal of the second capacitor. 5.根据权利要求1所述的电容值测量电路,其中,所述模拟数字转换器包括:5. The capacitance measuring circuit according to claim 1, wherein the analog-to-digital converter comprises: 开关-取样-电容电路,具有:第一输入端,耦接至所述电容式分压电路的所述第二电容的第一端;以及输出端;所述开关-取样-电容电路受控于所述第一时钟信号与所述第二时钟信号,以取样所述电容式分压电路的所述第二电容的第一端的电压;A switch-sampling-capacitor circuit has: a first input end coupled to the first end of the second capacitor of the capacitive voltage divider circuit; and an output end; the switch-sampling-capacitance circuit is controlled by The first clock signal and the second clock signal are used to sample the voltage at the first end of the second capacitor of the capacitive voltage divider circuit; 操作放大器,具有:第一输入端,耦接至所述开关-取样电容电路的输出端;第二输入端;第一输出端与第二输出端;The operational amplifier has: a first input terminal coupled to the output terminal of the switch-sampling capacitor circuit; a second input terminal; a first output terminal and a second output terminal; 比较器,具有:第一输入端,耦接至所述操作放大器的第一输出端;第二输入端,耦接至所述操作放大器的第二输出端;以及输出端,输出第二数字信号;The comparator has: a first input terminal coupled to the first output terminal of the operational amplifier; a second input terminal coupled to the second output terminal of the operational amplifier; and an output terminal outputting a second digital signal ; 锁存器,接收所述比较器所输出的所述第二数字信号,在所述第一时钟信号的触发下,所述锁存器将所述第二数字信号输出成第三数字信号;a latch, configured to receive the second digital signal output by the comparator, and under the trigger of the first clock signal, the latch outputs the second digital signal into a third digital signal; 反相器,将所述第三数字信号反相;an inverter, inverting the third digital signal; 计数器,计数所述第三数字信号,以产生所述第一数字信号;以及a counter counting the third digital signal to generate the first digital signal; and 开关-电容电路,耦接至所述操作放大器的第二输入端,受控于所述第一时钟信号、所述第二时钟信号、所述第三数字信号与所述第三数字信号的反相信号。A switch-capacitor circuit, coupled to the second input terminal of the operational amplifier, controlled by the first clock signal, the second clock signal, the third digital signal and the inverse of the third digital signal phase signal. 6.一种电子装置,包括:6. An electronic device comprising: 待测电容,用于输出待测电压;The capacitance to be measured is used to output the voltage to be measured; 传感器,用于输出感测信号;a sensor for outputting a sensing signal; 多工器,耦接至所述待测电容与所述传感器,以输出所述待测电压与所述感测信号之一;以及a multiplexer, coupled to the capacitor under test and the sensor, to output one of the voltage under test and the sensing signal; and 模拟数字转换器,耦接至所述多工器,用于将所述待测电压或所述感测信号转换成数字输出信号,所述数字输出信号代表所述待测电容的电容值及其变化量,或者代表所述传感器的感测结果。An analog-to-digital converter, coupled to the multiplexer, for converting the voltage to be measured or the sensing signal into a digital output signal, the digital output signal representing the capacitance value of the capacitor to be measured and its The variation, or represents the sensing result of the sensor. 7.根据权利要求6所述的电子装置,进一步包括:7. The electronic device according to claim 6, further comprising: 触控屏幕,其中,所述待测电容位于所述触控屏幕内。A touch screen, wherein the capacitance to be measured is located in the touch screen.
CN 200810213973 2008-09-01 2008-09-01 Capacitance value measuring circuit and electronic device using it Expired - Fee Related CN101666830B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810213973 CN101666830B (en) 2008-09-01 2008-09-01 Capacitance value measuring circuit and electronic device using it

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810213973 CN101666830B (en) 2008-09-01 2008-09-01 Capacitance value measuring circuit and electronic device using it

Publications (2)

Publication Number Publication Date
CN101666830A true CN101666830A (en) 2010-03-10
CN101666830B CN101666830B (en) 2013-01-02

Family

ID=41803534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810213973 Expired - Fee Related CN101666830B (en) 2008-09-01 2008-09-01 Capacitance value measuring circuit and electronic device using it

Country Status (1)

Country Link
CN (1) CN101666830B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101556297B (en) * 2008-04-08 2011-05-18 瑞鼎科技股份有限公司 Capacitance measuring circuit and method thereof
CN102299716A (en) * 2010-06-22 2011-12-28 君曜科技股份有限公司 Sample-and-hold circuit and touch sensing device thereof
TWI413781B (en) * 2010-06-09 2013-11-01 Zeitec Semiconductor Co Ltd Sample and hold circuit and touch sensing device using the same
CN105528977A (en) * 2016-02-04 2016-04-27 京东方科技集团股份有限公司 Detection circuit, drive integrated circuit and detection method thereof
CN105652099A (en) * 2016-02-22 2016-06-08 西安电子科技大学 Micro capacitance difference detection method based on switching circuit
WO2017021798A1 (en) * 2015-08-03 2017-02-09 珠海艾派克微电子有限公司 Fingerprint identification sensor capable of quickly identifying
CN106840216A (en) * 2015-12-04 2017-06-13 财团法人交大思源基金会 Impedance-to-digital converter, impedance-to-digital conversion device and method
CN107977119A (en) * 2016-10-24 2018-05-01 瑞鼎科技股份有限公司 Mutual capacitance touch sensing circuit and noise suppression method
CN108614161A (en) * 2018-07-27 2018-10-02 青岛澳科仪器有限责任公司 A kind of capacitance measurement system
CN108780372A (en) * 2017-01-12 2018-11-09 深圳市汇顶科技股份有限公司 Capacitive sensing circuit and touch terminal
CN109253725A (en) * 2017-07-13 2019-01-22 深迪半导体(上海)有限公司 A kind of signal processing system of MEMS gyroscope
CN109828159A (en) * 2019-03-07 2019-05-31 上海申矽凌微电子科技有限公司 Measure the circuit of capacitance size
CN111999565A (en) * 2020-08-12 2020-11-27 广州大学 A capacitance measuring circuit
CN115343515A (en) * 2022-10-17 2022-11-15 基合半导体(宁波)有限公司 Analog front end circuit, capacitance measuring circuit, chip and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6891531B2 (en) * 2002-07-05 2005-05-10 Sentelic Corporation Sensing an object with a plurality of conductors
CN101655524B (en) * 2008-08-20 2012-09-05 瑞鼎科技股份有限公司 Capacitance value measuring circuit and method thereof

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101556297B (en) * 2008-04-08 2011-05-18 瑞鼎科技股份有限公司 Capacitance measuring circuit and method thereof
TWI413781B (en) * 2010-06-09 2013-11-01 Zeitec Semiconductor Co Ltd Sample and hold circuit and touch sensing device using the same
CN102299716A (en) * 2010-06-22 2011-12-28 君曜科技股份有限公司 Sample-and-hold circuit and touch sensing device thereof
WO2017021798A1 (en) * 2015-08-03 2017-02-09 珠海艾派克微电子有限公司 Fingerprint identification sensor capable of quickly identifying
CN106840216A (en) * 2015-12-04 2017-06-13 财团法人交大思源基金会 Impedance-to-digital converter, impedance-to-digital conversion device and method
US10283077B2 (en) 2016-02-04 2019-05-07 Boe Technology Group Co., Ltd. Detection circuit, driver integrated circuit and detection method thereof
CN105528977A (en) * 2016-02-04 2016-04-27 京东方科技集团股份有限公司 Detection circuit, drive integrated circuit and detection method thereof
CN105652099A (en) * 2016-02-22 2016-06-08 西安电子科技大学 Micro capacitance difference detection method based on switching circuit
CN105652099B (en) * 2016-02-22 2018-10-12 西安电子科技大学 A kind of micro- capacitance difference detection method based on switching circuit
CN107977119A (en) * 2016-10-24 2018-05-01 瑞鼎科技股份有限公司 Mutual capacitance touch sensing circuit and noise suppression method
CN107977119B (en) * 2016-10-24 2020-01-21 瑞鼎科技股份有限公司 Mutual capacitance touch sensing circuit and noise suppression method
CN108780372A (en) * 2017-01-12 2018-11-09 深圳市汇顶科技股份有限公司 Capacitive sensing circuit and touch terminal
CN108780372B (en) * 2017-01-12 2021-08-10 深圳市汇顶科技股份有限公司 Capacitance sensing circuit and touch terminal
CN109253725A (en) * 2017-07-13 2019-01-22 深迪半导体(上海)有限公司 A kind of signal processing system of MEMS gyroscope
CN108614161A (en) * 2018-07-27 2018-10-02 青岛澳科仪器有限责任公司 A kind of capacitance measurement system
CN108614161B (en) * 2018-07-27 2024-04-16 青岛澳科仪器有限责任公司 Capacitance measuring system
CN109828159A (en) * 2019-03-07 2019-05-31 上海申矽凌微电子科技有限公司 Measure the circuit of capacitance size
CN111999565A (en) * 2020-08-12 2020-11-27 广州大学 A capacitance measuring circuit
WO2022033466A1 (en) * 2020-08-12 2022-02-17 广州大学 Capacitance measurement circuit
CN111999565B (en) * 2020-08-12 2022-05-10 广州大学 A capacitance measuring circuit
CN115343515A (en) * 2022-10-17 2022-11-15 基合半导体(宁波)有限公司 Analog front end circuit, capacitance measuring circuit, chip and electronic equipment
CN115343515B (en) * 2022-10-17 2023-03-07 基合半导体(宁波)有限公司 Analog front-end circuits, capacitance measurement circuits, chips and electronic equipment

Also Published As

Publication number Publication date
CN101666830B (en) 2013-01-02

Similar Documents

Publication Publication Date Title
TWI402513B (en) Capacitance evaluation circuit
CN101666830A (en) Capacitance value measuring circuit and electronic device using same
TWI438672B (en) Sensing method and driving circuit of capacitive touch screen
TWI409468B (en) Apparatus and method for measuring a long time
TWI472165B (en) Integration and analog to digital conversion circuit with common capacitors and operating method thereof
CN106656185B (en) Monoclinic analog-to-digital converter with digital double sampling function, chip and terminal
CN109696186B (en) Readout circuit for resistive and capacitive sensors
TW201029336A (en) Voltage-to-digital converting device and voltage-to-time converter
CN101738544A (en) Capacitance measuring circuit and capacitance measuring method thereof
US20120112817A1 (en) Method and apparatus for capacitance sensing
CN101825694B (en) Offset capacitance automatic calibration circuit and method
WO2019144305A1 (en) Capacitance detection circuit, touch detection apparatus and terminal device
CN102163109B (en) Touch sensing system, capacitance sensing device and capacitance sensing method
CN108124474A (en) Detect the device, electronic equipment and the device for detecting pressure of capacitance
TW201601040A (en) Capacitive voltage information sensing circuit and related anti-noise touch circuit
CN112986694A (en) Current injection compensation capacitance detection circuit and method
CN1687730A (en) Circuit of testing capacitance and capacitance type pressure transmitter
JP2011137716A (en) Magnetic detection apparatus
JP2972552B2 (en) Detection circuit and detection method for capacitive sensor
KR101430402B1 (en) Measuring method for measuring capacitance and capacitive touch switch using the same
Bruschi et al. A low-power capacitance to pulse width converter for MEMS interfacing
CN108551344B (en) Double-sampling analog-to-digital conversion circuit
CN109073692B (en) Capacitance detection circuit, touch detection device and terminal equipment
CN115996056A (en) Nanopower Architecture Enhancements
JP2001027655A (en) Signal-processing circuit of capacitive sensor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130102

Termination date: 20190901

CF01 Termination of patent right due to non-payment of annual fee