This application claims the benefit of Taiwan application Serial No. 98139380, filed Nov. 19, 2009, the subject matter of which is incorporated therein by reference.
The disclosure relates in general to a capacitance measurement circuit and a method thereof, and more particularly to a capacitance measurement circuit which uses conversion unit and operates without coupling capacitor and a method thereof.
Conventionally, the user control interface is normally implemented by a mechanical switch. The conventional mechanical device may be damaged easily. Currently, touch switch such as capacitive switch is already provided.
To further improve the convenience of use, the touch panel or the display touch panel (with both the display function and the touch control function) capable of receiving user's input and clicking is provided. The touch panel or the display touch panel can be used in various electronic devices such as mobile phone. Thus, the user can operate an electronic device by touching images displayed on the touch panel or the display touch panel, so that the operation is made more convenient and friendly. The touch panel or the display touch panel has many varieties such as capacitive touch panel and capacitive display touch panel.
When the user operates the capacitive touch panel, the capacitive display touch panel, or the capacitive switch, the capacitance of the sensor capacitor therein varies with the user's operation. Therefore, if the capacitance of the sensor capacitor and its change can be detected, the user's operation will be detected (sensed). Thus, how to provide a capacitance measurement circuit, capable of effectively detecting the capacitance of the sensor capacitor and its change so as to improve the function of the capacitive touch panel, the capacitive display touch panel, or the capacitive switch, has become a prominent task for the industries.
However, the conventional capacitance measurement circuit requires coupling capacitors in addition to a conversion unit, making it difficult to decrease the circuit area or reduce the circuit cost.
The disclosure is directed to a capacitance measurement circuit and a method thereof. Since the capacitance measurement circuit can measure without additional coupling capacitors, the circuit area is decreased and the circuit cost reduced.
According to a first example of the present disclosure, a capacitance measurement circuit includes: a reference capacitor having a first terminal and a second terminal, the first terminal selectively connected to a first reference voltage or a second reference voltage; a sensor capacitor having a first terminal and a second terminal, the first terminal selectively connected to the first reference voltage or the second reference voltage; an operation amplifier having a first input terminal, a second input terminal and an output terminal, the first input terminal connected to the second terminal of the reference capacitor and the second terminal of the sensor capacitor, and the second input terminal connected to a third reference voltage; an approximation unit having an input terminal and an output terminal, the input terminal connected to the output terminal of the operation amplifier; and a conversion unit having an input terminal and an output terminal, the input terminal connected to the output terminal of the approximation unit, and the output terminal is directly connected to the first input terminal of the operation amplifier. The reference capacitor and the sensor capacitor respectively couple a first charge amount and a second charge amount to the first input terminal of the operational amplifier to conduct an input voltage at the first input terminal of the operational amplifier. The conversion unit directly couples a third charge amount to the first input terminal of the operation amplifier or the conversion unit charges or discharges the first input terminal of the operation amplifier, until the input voltage at the first input terminal of the operation amplifier approximates the third reference voltage.
According to a second example of the present disclosure, a capacitance measurement method includes: initializing an operation amplifier; selectively switching a reference capacitor to a first reference voltage or a second reference voltage to couple a first charge amount to a first input terminal of the operation amplifier, wherein a second input terminal of the operation amplifier is connected to a third reference voltage; selectively switching a sensor capacitor to the first reference voltage or the second reference voltage to couple a second charge amount to the first input terminal of the operation amplifier; comparing an input voltage at the first input terminal of the operation amplifier with the third reference voltage; and directly coupling a third charge amount to the first input terminal of the operation amplifier or charging/discharging the first input terminal of the operation amplifier according to the comparison result by successive approximation until the input voltage approximates the third reference voltage, wherein a successive approximation result reflects a capacitance of the sensor capacitor.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosed embodiments, as claimed.
Referring to
The reference capacitor CR is connected between the switch S1 and an inverse input terminal of the operation amplifier 110. The capacitance of the reference capacitor CR is known. The sensor capacitor CS is connected between the switch S2 and the inverse input terminal of the operation amplifier 110. The capacitance of the sensor capacitor CS is unknown, and varies with the user's operation (such as pressing). In other possible embodiments of the disclosure, the reference capacitor CR and the sensor capacitor CS can be both connected to a non-inverse input terminal of the operation amplifier 110.
The inverse input terminal of the operation amplifier 110 is connected to the reference capacitor CR and the sensor capacitor CS. The non-inverse input terminal of the operation amplifier 110 is connected to the reference voltage VREF3. An output terminal of the operation amplifier 110 is connected to the SAR 120. The SAR 120 receives an analog output voltage from the operation amplifier 110, and accordingly outputs a digital signal to the DAC 130. The DAC 130 receives the digital signal outputted from the SAR 120, and accordingly couples charges to the inverse input terminal of the operation amplifier 110.
One terminal of the switch S1 is connected to the reference capacitor CR, and the other terminal of the switch S1 is selectively connected to one of the reference voltages VREF1 and VREF2. Basically, the reference voltages VREF1 and VREF2 are different. One terminal of the switch S2 is connected to the sensor capacitor CS, and the other terminal of the switch S2 is selectively connected to one of the reference voltages VREF1 and VREF2. One terminal of the switch SC is connected to the inverse input terminal of the operation amplifier 110, and the other terminal of the switch SC is connected to the output terminal of the operation amplifier 110 (in other possible embodiments of the disclosure, the other terminal of the switch SC is connected to the reference voltage VREF3). The reference voltage VREF1 is such as an operation voltage. The reference voltage VREF2 is such as a ground voltage. For the convenience of design, the reference voltage VREF3 is such as the operating voltage or the ground voltage, but the present embodiment of the disclosure is not limited to the above exemplification.
The principles of the operation of the capacitance measurement circuit 100 of the present embodiment of the disclosure are disclosed below. Firstly, in an initial state, the switch S1 is connected to the reference voltage VREF2; the switch S2 is connected to the reference voltage VREF1; and the switch SC is connected to the third reference voltage VREF3 or the output terminal of the operation amplifier 110 so that the inverse input terminal of the operation amplifier is charged/discharged to the reference voltage VREF3. Meanwhile, the operation amplifier can be regarded as a unity gain amplifier whose input voltages and output voltage are basically equal. In the disclosure below, VX denotes a node as well as a node voltage thereof. The above operation is for initializing the operation amplifier. In greater details, the voltage at the inverse input terminal and the voltage at the non-inverse input terminal are initialized so that the two terminal voltages are equal. However, the present embodiment and other possible embodiments of the disclosure are not limited thereto. Besides, in the following embodiments and other possible embodiments of the disclosure, two input voltages of the operation amplifier equal through the initialization process.
Next, when measurement begins, the switch S1 is switched to the reference voltage VREF1 from the reference voltage VREF2, the switch S2 is switched to the reference voltage VREF2 from the reference voltage VREF1, and the switch SC is turned-off. Since the switch S1 is switched to the reference voltage VREF1 from the reference voltage VREF2, the reference capacitor CR couples a charge amount QR to the node VX through the coupling effect of the reference capacitor CR. The charge amount QR is expressed as formula (1):
QR=(VREF1−VREF2)*CR (1)
Likewise, since the switch S2 is switched to the reference voltage VREF2 from the reference voltage VREF1, the sensor capacitor CS couples a charge amount QS to the node VX through the coupling effect of the sensor capacitor CS. The charge amount QS is expressed as formula (2):
QS=(VREF2−VREF1)*CS (2)
If the sensor capacitor CS and the reference capacitor CR have different capacitances, then the node voltage VX is not equal to the reference voltage VREF3. The operation amplifier 110, used as a voltage comparer, compares the node voltages VX to the reference voltage VREF3, and further transmits a voltage difference to the SAR 120. According to an analog output voltage from the operation amplifier 110, the SAR 120 approximates the digital output signal, and further transmits the adjusted digital output signal to the DAC 130. After that, the DAC 130 directly couples a charge amount QC to the inverse input terminal of the operation amplifier 110 according to the digital output signal from the SAR 120; or the DAC 130 charges or discharges the node voltage VX. Particularly, if the capacitance of the reference capacitor CR is larger than the sensor capacitor CS and VREF1>VREF2, then VX>VREF3, and vice versa.
Through the successive approximation of the SAR 120, the node voltage VX is close to the reference voltage VREF3. Thus, the output digital signal from the SAR 120 reflects the capacitance difference between the sensor capacitor CS and the reference capacitor CR to calculate the capacitance of the sensor capacitor CS.
Furthermore, in other possible embodiments of the disclosure, the operation of the switches S1 and S2 can be changed as follows. In an initial state, the switch S1 is connected to the reference voltage VREF1, and the switch S2 is connected to the reference voltage VREF2. When the measurement begins, the switch S1 is switched to the reference voltage VREF2 from the reference voltage VREF1, and the switch S2 is switched to the reference voltage VREF1 from the reference voltage VREF2. That is, in the initial state, the switches S1 and S2 are connected to different voltages. When the measurement begins, the switches S1 and S2 are connected to different voltages. When measurement begins, the switches S1 and S2 are switched to different voltages so as to couple respective charge amounts to the node VX.
DAC 130 can have many implementations disclosed below.
The DAC 130A is such as a binary-array charge-redistribution DAC. From
QC=VREF*(b1*2NC+b2*2N−1C+ . . . +bN*C) (3)
If bi=1 (i=1˜N), this implies that the switch is switched to the reference voltage VREF1 from the reference voltage VREF2; if bi=−1, this implies that the switch is switched to the reference voltage VREF2 from the reference voltage VREF1; and if bi=0, this implies that the switch is not switched. After successive approximation, the node voltage VX is close to 0; and the control signals bN˜b1 (outputted from SAR 120) reflect the capacitance difference between the sensor capacitor CS and the reference capacitor CR to calculate the capacitance of the sensor capacitor CS.
The DAC 130B is such as a binary weighted resistor DAC.
That is, the DAC 130B charges or discharges the node voltage VX, so that the node voltage VX approximates the reference voltage VREF3. Particularly, under VREF1>VREF2, if VX<VREF3 (that is, CR<CS), the DAC 130B charges the node voltage VX to be close to the reference voltage VREF3; and if VX>VREF3 (that is, CR>CS), the DAC 130B discharges the node voltage VX to be close to the reference voltage VREF3.
After successive approximation, the node voltage VX is close to the reference voltage VREF3; and the control signals bN˜b1 (outputted from SAR 120) reflect the capacitance difference between the sensor capacitor CS and the reference capacitor CR to calculate the capacitance of the sensor capacitor CS.
The DAC 130C is such as a binary current DAC. From
QC=Δt*(b1*I+b2*(I/2)+ . . . +bN*(I/2N−1)} (4)
Δt denotes unit time. If bi=1, this implies that the switch is connected to the current source 1_2, 2_2, . . . N_2; If bi=−1, this implies that the switch is switched to the current sinks 1_1, 2_1, . . . N_1; If bi=0, this implies that the switch is floating.
That is, through the operation of charging or discharging the node voltage VX by the DAC 130C, the node voltage VX approximates the reference voltage VREF3. Particularly, under VREF1>VREF2, if VX<VREF3 (that is, CR<CS), the DAC 130C charges the node voltage VX to be close to the reference voltage VREF3; and to the contrary, if VX>VREF3 (that is, CR>CS), the DAC 130C discharges the node voltage VX to be close to the reference voltage VREF3.
After successive approximation, the node voltage VX is close to the reference voltage VREF3. The control signals bN˜b1 (outputted from the SAR 120) reflect the capacitance difference between the sensor capacitor CS and the reference capacitor CR to calculate the capacitance of the sensor capacitor CS.
The capacitance measurement circuit disclosed in the above respective embodiment of the disclosure has many advantages. For example, since the capacitance measurement circuit can measure without additional coupling capacitors, the circuit area is decreased and the circuit cost reduced.
It will be appreciated by those skilled in the art that changes could be made to the disclosed embodiments described above without departing from the broad inventive concept thereof. It is understood, therefore, that the disclosed embodiments are not limited to the particular examples disclosed, but is intended to cover modifications within the spirit and scope of the disclosed embodiments as defined by the claims that follow.
Number | Date | Country | Kind |
---|---|---|---|
98139380 | Nov 2009 | TW | national |