Abstract:
A capacitance measuring device incorporates the integrating analog-digital converter circuit of a handheld meter. The capacitance measuring device charges an unknown capacitance with a constant current until the voltage across the unknown capacitor reaches a predetermined voltage. At the same time, a reference voltage is applied to the input lead of an integrating circuit of the integrating analog-digital converter such that a corresponding proportional charge is stored in the feedback capacitor of the integrating circuit. The negative of the reference voltage is then applied to the integrating circuit so that charge is removed from the feedback capacitor at the same rate as the feedback capacitor was charged. A counter is used to determine the number of clock pulses it took to completely discharge the feedback capacitor and hence a reading of the unknown capacitance can be determined from the equation C X  =I CHARGE  *T 2  /V TRIP .

Description:
FIELD OF THE INVENTION 
     This invention relates to circuits that measure capacitance, and more particularly, to circuits for use in handheld meters that measure capacitance. 
     BACKGROUND INFORMATION 
     Capacitance values have conventionally been measured using methods that employ instruments that are bulky, complicated and expensive. Examples are capacitance bridges, impedance meters, oscillator circuits, and other precision instruments, which are typically stand-alone &#34;benchtop&#34; instruments. 
     Most users, however, prefer to have an instrument that is portable, self-powered, lightweight, inexpensive, and simple to operate. For example, handheld meters that measure electrical properties such as resistance, voltage, and current are available. Such meters are portable, self-powered, lightweight, inexpensive, simple to use and, hence, very popular. It is desirable to have a method and apparatus for measuring capacitance that can be inexpensively incorporated in handheld meters. 
     FIG. 1 (Prior Art) shows a schematic diagram of an integrating circuit used in the analog-digital converter of a typical handheld meter. This integrating circuit can be incorporated into a capacitance measuring device in accordance with the present invention. Integrating circuit 100 includes an amplifier 110, a R INT  resistor 120, and a C INT  capacitor 130 (sometimes referred to as the feedback capacitor). The output signal of integrating circuit 100 is well known to be given by the equation: ##EQU1## where Vout(t) is the voltage at an output terminal 140 as a function of voltage Vin(t) applied to an input terminal 150. Vin(0) is the initial voltage across C INT  capacitor 130. 
     SUMMARY 
     According to one embodiment of the present invention, a capacitance measuring device incorporates the integrating analog-digital converter circuit of a handheld meter. The capacitance measuring device includes a current source which charges an unknown capacitance with a known constant current I CHARGE  until the voltage across the unknown capacitor reaches a predetermined voltage threshold. 
     At substantially the same time that the unknown capacitor begins charging, a reference voltage is applied as the input signal to the integrating circuit of the integrating analog-digital converter so that the feedback capacitor of the integrating circuit begins charging at substantially the same time. 
     A comparator is used to detect when the voltage across the unknown capacitance reaches the voltage threshold. At this point, a control and timing logic receives the output of the comparator and controls the current source to stop charging the unknown capacitance. The control and timing logic also causes the input lead of the integrating circuit to be coupled to a source of ground potential so that the feedback capacitor of the integrating circuit no longer accumulates charge. 
     The control and timing logic then causes the negative of the reference voltage to be supplied to the integrating circuit&#39;s input so that charge is removed from the feedback capacitor of the integrating circuit at the same rate as the feedback capacitor was charged. At substantially the same time, a switch is closed to short circuit the terminals of the unknown capacitance so as to completely discharge it. A counter is used to determine the number of clock pulses needed to completely discharge the feedback capacitor, and the counter&#39;s output can be used to determine the value of the unknown capacitance. 
     In another embodiment of the present invention, a scalable current source is used to charge the unknown capacitor. The scalable current source is implemented using the reference resistors employed for resistor measurement and, thus, does not require extensive additional components. With a scalable current source, the capacitance measuring device can measure a wide range of capacitance. 
     Thus, a device according to the present invention adds the much needed function of capacitance measuring to a handheld meter with a minimal increase in cost, weight and size by using the integrating analog-digital converter circuit already present in a typical handheld meter. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 (Prior Art) shows a schematic diagram of an integrating circuit used in the analog-digital converter of a typical handheld meter. 
     FIG. 2 shows a schematic diagram of a capacitance measuring device according to one embodiment of the present invention, incorporating the integrating circuit of FIG. 1. 
     FIGS. 3a and 3b show a schematic diagram of a capacitance measurement device according to another embodiment of the present invention. 
    
    
     DETAILED DESCRIPTION OF THE INVENTION 
     FIG. 2 shows a schematic diagram of a capacitance measuring device according to one embodiment of the present invention, incorporating the integrating circuit of FIG. 1. In a preferred embodiment, capacitance measuring device 200 incorporates integrating circuit 100 already present in a handheld meter. It is appreciated that capacitance measuring device 200 can be incorporated into any type of measuring device and is not limited to handheld meters. Capacitance measuring device 200 operates in charge/integrate, zero-input-integrate, and discharge/deintegrate cycles. 
     In the charge/integrate cycle, a current source 210 is used to charge unknown capacitance C X . Before charging, a control and timing logic 215 closes a switch 211, thereby discharging unknown capacitance C X . Thus, the voltage at a node 213 is substantially 0 volts. After unknown capacitance C X  is discharged, control and timing logic 215 opens switch 211 and the charging cycle begins. 
     Current source 210 provides a predetermined constant current I CHARGE  to node 213 to charge the unknown capacitance at a substantially constant rate. Thus, capacitance C X  is charged more linearly than by using a resistive pullup coupled to a constant voltage source. A comparator 220 coupled to node 213 has a very high input impedance and, thus, conducts substantially no current from node 213. The voltage V CX  at node 213 is detected by comparator 220 at a positive input lead 221 and compared to a voltage V TRIP  impressed at a negative input lead 223 of comparator 220. The output signal of comparator 220 is received by control and timing logic 215. 
     While unknown capacitance C X  is charging and the voltage at node 213 remains below voltage V TRIP  comparator 220 outputs a logic zero signal. In response to this logic zero signal, control and timing logic 215 closes a switch 234 in switch network 230, thereby causing a voltage V REF  to be applied at a positive input lead 242 of buffer 240. Control and timing logic 215 also controls a switch 238 to be opened. 
     In response to voltage V REF , buffer 240 generates a voltage substantially equal to voltage V REF , which is applied to input terminal 150 of integrating circuit 100. As a result, a substantially constant current equal to V REF  /R INT  begins to charge C INT  capacitor 130. Consequently, C INT  capacitor 130 begins charging at substantially the same time as unknown capacitance C X  begins charging. 
     The zero-input-integrate cycle begins when voltage V CX  at node 213 rises above voltage V TRIP . As a result, comparator 220 outputs a logic one signal, which causes control and timing logic 215 to open switch 234 and close switch 232. The closing of switch 232 grounds input lead 242 of buffer 240. Buffer 240 then also outputs a 0 V signal, which causes input terminal 150 to be at 0 V, thereby stopping the charging (or discharging) of C INT  capacitor 130. At substantially the same time, control and timing logic 215 controls current source 210 to stop charging unknown capacitance C X . Thus, C INT  capacitor 130 is charged for substantially the same amount of time that unknown capacitance C X  is charged. 
     At this point, the charge Q X  stored in the unknown capacitance C X  is computed using the equation: 
     
         Q.sub.X =C.sub.X *·V.sub.TRIP                     (1) 
    
     where C X  * is the value of unknown capacitance C X . 
     The charge stored in the unknown capacitance can also be computed using the equation: 
     
         Q.sub.X =I.sub.CHARGE ·T.sub.1                    (2) 
    
     where T 1  is the time it takes for the voltage at node VCX to ramp up from 0 V to voltage V TRIP . Combining equations (1) and (2) results in: 
     
         C.sub.X *=I.sub.CHARGE ·T.sub.1 /V.sub.TRIP       (3) 
    
     Because C INT  capacitor 130 is charged for substantially the same time as the capacitance C X , the charge Q INT  stored in the C INT  capacitor 130 can be calculated from the equation: 
     
         Q.sub.INT =(V.sub.REF /R.sub.INT)·T.sub.1         (4) 
    
     At the beginning of the discharge/deintegrate cycle, control and timing logic 215 opens switch 232 and closes switch 238. Switch 234 remains opened. Because a voltage -V REF  is applied to input terminal 150 of integrating circuit 100, C INT  capacitor 130 is discharged at the same rate it was charged and, thus, the time T 2  to completely discharge C INT  capacitor 130 is substantially equal to the charging time T 1 . 
     By employing the digital circuitry 250 used in the handheld meter&#39;s integrating analog-digital converter, a counter 252 can be used to determined the number of clock cycles needed to completely discharge C INT  capacitor 130. Thus: 
     
         C.sub.X *=I.sub.CHARGE ·T.sub.2 /V.sub.TRIP       (5) 
    
     By adjusting I CHARGE  and V TRIP , the counter output provides the input to a logic circuit 254 to compute the value C X  * of unknown capacitance C X . The computed value C X   *  of unknown capacitance C X  may then be shown on a display. Thus, capacitance measuring device 200 can easily be adapted to measure either T 1  or T 2  to compute the value C X  * of capacitance C X . 
     FIG. 3 shows a schematic diagram of a capacitance measurement device according to another embodiment of the present invention. Capacitance measuring device 300 is similar to capacitance measuring device 200 (FIG. 2) except that a scalable constant current source 310 replaces current source 210. 
     Scalable current source 310 includes resistor/switch groups 301-303, each group having a resistor and two FET switches. When a switch group is selected, the two switches in the resistor/switch group are both closed. Conversely, when a resistor/switch group is not selected, both switches are open. Preferably, only one resistor/switch group is selected during a charge/integrate cycle. 
     The operation of resistor/switch group 301 is described below. It is understood that this description also applies to resistor/switch groups 302 and 303. 
     When resistor/switch group 301 is selected during a charge/integrate cycle, switches SWR1A and SWR1B and SWCHARG are closed by control and timing logic 215. The voltage divider consisting of resistors RDIV1 and RDIV2 is coupled to a voltage source 320 supplying a voltage V CREF . As a result, a predetermined voltage drop (V RDIV1 ) appears across resistor RDIV1. Because node 340 is coupled to the positive input lead 331 of amplifier 330, the voltage at input lead 331 is equal to the voltage drop across RDIV2. 
     Amplifier 330 operates to maintain a &#34;virtual short circuit&#34; across its input leads when configured with a negative feedback loop. In this embodiment, a PMOS FET M1 provides a feedback loop as follows. When the voltage across resistor R1 (V R1 ) is less than voltage V RDIV1 , amplifier 330 outputs a lower voltage, which causes PMOS FET M1 to become more conductive. Consequently, more current is drawn from voltage source 320, which causes voltage V R1  to increase. 
     Conversely, when voltage V R1  is greater than voltage V RDIV1 , amplifier 330 outputs a higher voltage, which causes PMOS FET M1 to become less conductive. Thus, less current is drawn from voltage source 320, which causes voltage V R1  to decrease. The loop stabilizes when V RDIV1  is substantially equal to voltage V R1 . Because of the loop, voltage VRDIV1 develops across resistor R1. Thus, a constant charging current (I CHARGE ) is given by: 
     
         I.sub.CHARGE =(V.sub.RDIV1)/R1*                            (6) 
    
     where R1* is the value of resistor R1. Further, voltage V RDIV1  is given by the voltage divider equation: ##EQU2## where RDIV1* is the value of resistor RDIV1 and RDIV2* is the value of resistor RDIV2. Combining equations (6) and (7) results in ##EQU3## Current I CHARGE  flows into unknown capacitance C X  via FET M1, switch SWCHARG, and a resistor R P . 
     By selecting resistor/switch groups 302 (or 303), switches SWR2A and SWR2B (or SWR3A and SWR3B) are closed in place of SWR1A and SWR1B. Charging current I CHARGE  is scaled because resistor R1 is replaced by resistor R2 (or R3) in the equation above. 
     In a preferred embodiment, resistors R1, R2, and R3 are part of the resistor network typically present in handheld meters. The resistors in the resistor network are used as references for resistance measurement. The values of resistors R1-R3 generally are multiples of 10 of the smallest value. Thus charging current I CHARGE  can be scaled in multiples of 10 to allow measurement of a wide range of capacitance values. 
     The rest of the circuitry of capacitance measuring device 300 operates in the same manner as device 200 described above in conjunction with FIG. 2. 
     In another embodiment (not shown), integrating circuit 100 in capacitance measuring device 300 is replaced by the integrating circuit disclosed in the contemporaneously filed application &#34;Integrating Circuit With Variable Gain Feedback&#34;, application Ser. No. 08/316,283, by Zhong Heng Mo, which is incorporated herein by reference. With the integrating circuit described therein, it is advantageous for capacitance measuring device 300 to measure the deintegrate time T 2  because the integrating circuit has a X10 mode (used for other functions of the handheld meter) where the deintegrate time is measured. Thus, the capacitance measuring device, to measure time T 2 , can simply use the circuitry for measuring the deintegrate time in the X10 mode, which is already present in the integrating circuit. 
     The foregoing has described the principles and preferred embodiments of the present invention. However, the invention should not be construed as being limited to the particular embodiments described. For example, more than three resistors may be used in the resistor network of scalable current source 310. Also, the switches may be implemented in bipolar or other transistor technology. Further, buffer 240 may be implemented as disclosed in the contemporaneously filed application &#34;Switched High-Slew Rate Buffer&#34;, application Ser. No. 08/316,161, by Zhong Heng Mo, which is incorporated herein by reference. Thus, the above-described embodiments should be regarded as illustrative rather than restrictive. Variations can be made to those embodiments by workers skilled in the art without departing from the scope of the present invention as defined by the following claims.