Ffethod and measuring device for determining the capacitance of a capacitive electrical component connected to an integrated circuit.
DESCRIPTION The invention relates to a method and a measuring device for determining the capacitance of a capacitive electrical component connected to an integrated circuit, which circuit is provided with analog terminals which can be connected by means of switches to the component that is to be measured. In practice, printed circuit boards comprising integrated semiconductor circuits and discrete electrical components, for example, are very difficult to test. . Digital circuits can be tested by using "boundary scan" techniques, which are known in practice, provided that the integrated circuits are arranged for that purpose. To enable such testing, digital components forming a chain through which digital signals can be passed under the control of a suitable control module are connected between the external and internal terminals of an integrated circuit. Specific functions that the circuit on the printed circuit board is to perform are simulated and tested by means of said signals. This testing technique is also known by the name of IEEE Std. 1149.1 in practice. For testing analog signals, which may occur in mixed digital and analog integrated circuits, for example, i.e. integrated circuits comprising digital as well as analog components, the so-called "mixed signal circuits", e.g. for use in telecommunication systems, the well-known IEEE Standard 1149.1 has been extended with testing facilities for analog signals. This new standard is known by the acronym IEEE 1149.4, or simply "dot 4". This extension concerns the addition to the digital test facilities of an analog module provided with analog terminals, which can be connected to analog terminals of the integrated circuits via analog
switches, i.e. semiconductor switches, and to power supply terminals for supplying a suitable supply voltage to the integrated circuit. Furthermore, an analog test bus interface circuit has been provided, which can be connected to the analog terminals via switches. The whole is controlled by a test control circuit in the form of a so-called "test access port" (TAP) controller, as known per se from the IEEE Std. 1149.1. By suitably switching the switches in the integrated circuit, the connections between the analog terminals and the components of the integrated circuit, the so-called "core", can be broken and test signals can be supplied via the analog test bus interface circuit to the electrical component or components connected to the integrated circuit, and signal measurements can be carried out on the component or components in question. A number of techniques for measuring the capacitance of capacitive electrical components are known in practice. With the so- called "roll -off point" or -3dB method, the capacitive component to be measured is connected, via the switches, into an RC low-pass filter configuration, to the input of which an adjustable frequency AC voltage is presented. The -3dB point of the RC filter is found by varying the frequency of the AC voltage and measuring the effective value of the voltage across the unknown capacitive electrical component that is to be measured. The accuracy of said measurement strongly depends on the accuracy of the available information regarding the contact resistance values of the various switches and the wiring, which partially determine the resistance of the RC filter, and on parasitic capacitances and the stray capacitance of the measuring environment, in this case the printed circuit board. In particular in the case of small capacitances in the order of less than 100 pF, the measuring accuracy is less than 10%, which is unacceptable for practical applications. Another technique that is known in practice is the so-
called I-V method, in which the capacitive component to be measured is connected in series with a known resistive element via the switches and the test bus interface circuit. The voltage across the resistive element can be calculated from the applied voltage and the measured voltage across the capacitive component to be measured. In the case of a- purely capacitive component, the voltage across the resistive element and the voltage across the capacitive component include an angle of 90°. Subsequently, the voltage across the resistive element can be calculated by means of a simple vector calculation, and because the resistance value in- question is known, the current through the capacitor can be determined therefrom. Since the frequency of the applied AC voltage is known, the voltage across the capacitor is measured and the current through the capacitor can be determined from the aforesaid vector calculation, it is possible to calculate the capacitance of the capacitive component from said data. This measuring method, too, suffers from the fact that variations occur in the contact resistance values of the switches and the analog test bus, which variations seriously affect the accuracy of the measurement, in particular in the case of relatively small capacitance values. Furthermore, the frequency of the applied AC voltage must be carefully selected on account of bandwidth limitations in the switches and in the integrated circuit itself. Consequently it is the object of the invention to provide a novel and improved method for determining the capacitance of a capacitive electrical component connected to an integrated circuit, which circuit is provided with analog terminals that can be connected by means of switches to the component to be measured . According to the invention, this object is accomplished in that the switches are switched for exchanging electric charge via the analog terminals between the component to be measured and a capacitive electrical reference component having a known capacitance, until the
voltage across the component to be measured and the voltage across the reference component are substantially equal, and subsequently measuring the voltage across the reference component, wherein the capacitance of the component to be measured is determined from the known capacitance of the reference component and the measured voltage across the reference component. The invention is based on the perception that the influence of unknown resistive elements in the chain between the capacitive components, such as contact resistances of the switches, resistances of the terminals and the wiring, can be effectively eliminated by effecting a transfer of charge between the capacitive components in question until the voltages across the components have equal values. When said values are equal or substantially equal, no current will flow through the resistive elements in question, or a current that is negligible to the extent that the voltage loss across said resistive elements is zero or negligibly small. Consequently, the resistances in question do not affect the eventual transfer of charge between the capacitive components, so that the voltage across the capacitive components in question is only a function of their capacitance. Since the voltage across the reference component can be calculated very accurately by means of techniques that are known in practice, the novel method according to the invention makes it possible to measure capacitances of capacitive electrical components in the order of 10 pF or higher with a ery high degree of accuracy (> 95%). In a preferred embodiment, the method according to the invention is characterized by the steps of: a) charging the component to be measured from an electrical voltage source to a voltage that is substantially equal to as the voltage of the voltage source; b) transferring charge from the component to be measured to the reference component until the voltage across the component to be
measured and the voltage across the reference component are substantially equal; c) measuring the voltage across the reference component; and d) calculating the capacitance of the component to be measured from the product of the known capacitance and the measured voltage divided by the difference between the voltage of the voltage source and the measured voltage. Charging of the capacitive component to be measured to the voltage of the voltage source, so that contact resistances in the connection between the voltage source and the component to be measured will not affect the amount of charge that is eventually stored in the component to be measured, is advantageously used in this embodiment as well. In another embodiment, the method according to the invention is characterized by the steps of : a) charging the reference component to a predetermined reference voltage from an electrical power supply source; b) transferring charge from the reference component to the component to be measured, until the voltage across the component to be measured and the voltage across the reference component are substantially equal ; c) measuring the voltage across the reference component; and d) calculating the capacitance of the component to be measured from the product of the known capacitance and the measured voltage divided by the difference between the reference voltage and the measured voltage. This embodiment has the advantage that the reference component can be fed both from an electric voltage source and from an electric current source, as in the latter case the reference voltage
across the capacitive reference component can be measured with a sufficient degree of accuracy by means of a suitable high-ohmic measuring circuit. When an electric voltage source is used, the reference component in question can also be charged until the voltage across the reference component is equal to the voltage of the electric voltage source, so that the influence of contact resistances on the amount of charge that is transferred can be effectively eliminated again. Preferably, the one component from which charge is transferred to the other component has a lower capacitance than the other component. In practice this means that in the preferred embodiment the reference component preferably has a higher capacitance than the component to be measured. In the further embodiment, in which the reference component is charged first, the reference component will preferably have a lower capacitance than the component to be measured. If, in the case of a single transfer of charge from one component to the other, the proportion or ratio between the capacitance of the one component and that of the other component is too large, the voltage across the other component will be small, and this voltage will be difficult to measure. In yet another embodiment of the method according to the invention, in order to obtain a sufficiently accurate measurement in such a situation, the steps of charging the one component and transferring charge to the other component are repeated a number of times if the ratio between the capacitance of the one component, from which charge is transferred, wherein the capacitance of the other component is relatively small, and the capacitance of the component to be measured is calculated from the voltage that is measured after charge has been transferred a number of times and from the number of times that charge has been transferred. It will be understood that the larger the ratio between the capacitance of the one component and that of the other component, the
larger the number of times that charge is transferred will be. A sufficiently long period of time for transfer of charge will have to be reserved for equalising the voltages across the capacitive components in question in accordance with the inventive idea. In yet another embodiment of the method according to the invention, the period of time for transferring charge is determined from the RC time constants of the capacitive components in question and the contact resistance values of the switches, the terminals and the wiring in the charge transfer chain. According to yet another embodiment of the method according to the invention, the RC time constants of the component are estimated from one or more tests measurements of the capacitance of the component to be measured if the contact resistance values are unknown. The RC time constants thus determined provide an adequate perception of the period of time that is required for transferring charge for the purpose of equalising the voltages across the components. An adequate estimate of the RC time constants is necessary because the switches must not be switched to a charge transfer position for such a long period of time that charge starts to leak from one component, or from both, which will introduce an inaccuracy into the measurement. Since the switches are controlled in the rhythm of a clock or timer that is connected to the IEEE Std. 1149.1 control circuit, the clock frequency thereof must be selected such that there will be sufficient time for the transfer of charge between the components in question. In a preferred embodiment, in which the analog test bus interface circuit has a first ATI bus and a second AT2 bus, the reference component is connected to the AT2 bus. The invention also provides a measuring device for determining the capacitance of the capacitive electrical component connected to an integrated circuit, which circuit is provided with analog
terminals which can be connected to the component to be measured by means of switches, characterized in that the measuring device is arranged for switching the switches for exchanging electric charge via the analog terminals between the component to be measured and a capacitive electrical reference component having a known capacitance, until the voltage across the component to be measured and the voltage across the reference component are substantially equal, and furthermore comprises means for measuring the voltage across the reference component and means for calculating the capacitance of the component to be measured from the known capacitance of the reference component and the measured voltage across the reference component. In a preferred embodiment, the measuring device is arranged for controlling the switches of an IEEE Std. 1149.4 test circuit. The invention also provides control software for use in a measuring device arranged for controlling the switches of an IEEE Std. 1149.4 test circuit, which device is provided with a suitable control processor. The invention also provides a printed circuit board provided with one or more integrated circuits and at least one reference capacitor having a known capacitance for use in the method and measuring device as described in the foregoing. The invention in particular provides a printed circuit board provided with at least one integrated circuit comprising an IEEE Std. 1149.1 test circuit, in which the reference capacitor is directly connected to the test bus interface circuit. The invention will be explained in more detail hereinafter with reference to the appended drawings. Fig. 1 schematically shows an integrated circuit provided with a boundary-scan test circuit according to the IEEE Standard 1149.4. Fig. 2 schematically shows part of the structure of an analog boundary-scan module of the circuit that is shown in Fig. 1.
Fig. 3 schematically shows an embodiment of a measurement of the capacitance of a capacitive electrical component connected to the integrated circuit of Fig. 1. Fig. 4 shows a simplified diagram of the circuit that is shown in Fig. 3. Fig. 5 schematically and graphically shows the repeated performance of the method according to the invention. Fig. 6 schematically shows a printed circuit board and the measuring device according to the invention that is connected thereto. The invention will be explained hereinafter on the basis of an application in an integrated circuit provided with a boundary-scan test circuit according to IEEE Std. 1149.4. Detailed information about this standard are to be found in "IEEE Standard for Mixed-Signal Test
Bus", IEEE Standard 1149.4-1999, IEEE 1999. It will be understood that the invention is not limited to use thereof with integrated circuits provided with such a boundary-scan test circuit, but that it can be used essentially with any integrated circuit provided with analog terminals that can be connected by means of switches to a capacitive electrical component to be measured and to a capacitive electrical reference component. For a clear understanding of the invention, an integrated circuit provided with a boundary-scan test circuit according to IEEE Std.
1149.4 will be briefly discussed first. In Fig. 1, numeral 1 indicates an integrated semiconductor circuit comprising a so-called core 2, in which the electrical components, such as transistors, resistors and the like that are needed to enable the integrated circuit 1 to perform its functions are present. Numeral 3 indicates a number of digital input and output ports, which are connected to the corresponding input and output terminals of the core 2 via so-called "Digital Boundary Modules" (DBM) 4. Besides digital input and output terminals, the integrated circuit 1 also comprises two analog input and output terminals 7, 8 in the illustrated
embodiment, which are connected to the corresponding digital input and output terminals of the core 2 via Analog Boundary Modules (ABM) 5, 6, respectively. In practice circuits having fewer or more DBM's and ABM's may occur. The ABMs 5, 6 are connected to an analog Test Bus Interface
Circuit (TBIC) 9 via an internal test bus 10. The test bus interface circuit 9 is accessible from outside the integrated circuit 1 via an Analog Test Access Port (ATAP) 11 comprising terminals ATI and AT2, respectively. The DBMs 4, the ABMs 5, 6 and the test bus interface circuit 9 connect to Test Control Circuitry 12 via a so-called boundary- scan pad 13. A so-called Test Access Port (TAP) 14 is provided for supplying suitable control signals to the test control circuitry 12, said port comprising terminals TD1, TDO, TMS and TCK, which are accessible from outside the integrated circuit 1. The test control circuitry 12 inter alia comprises a TAP-controller, an instruction register and a decoder for supplying test signals to the core 2 of the integrated circuit 1 across the boundary-scan pad 13. More detailed information about the test control circuit 12 and the TAP 14 is to be found in the "IEEE Standard Access Port and Boundary-scan Architecture", IEEE Standard 1149.1a-1993, IEEE 1993. Fig. 2 is a schematic, more detailed view of a part of an ABM 5, 6, which shows only those components that are necessary for a clear understanding of the invention. The ABMs 5, 6 comprise a number of switches, in particular semiconductor switches, that can be controlled by the test control circuitry 12, which switches are represented as mechanical switches in Fig. 2 for the sake of simplicity. The switch SD functions to make and break the connection between the analog terminal 7 and the core 2. The switches SB1 and SB1 function to connect the analog terminal 7 to the conductors AB1 and AB2, respectively, of the internal test bus 10.
The test bus interface circuit 9 is provided with switches S5 and S6, amongst other components, via which the terminals ATI and AT2 can be connected to the conductors AB1 and AB2 of the internal test bus 10. It is noted that the test bus interface circuit has several other switching possibilities, which are not relevant for a clear understanding of the invention, however. The terminal 7 can be connected to a first power supply terminal VH of the integrated circuit 1, for example a positive supply voltage, via a switch SH, and to a second power supply terminal VL, for example the signal earth of the integrated circuit 1, via the switch SL. The switch SG provides a possibility for measuring voltage on the terminal 7 via a terminal VG. Fig. 3 shows an electric diagram based on the circuitry of Fig. 2 for determining, in accordance with the invention, the capacitance of a capacitive electrical component Cx connected between the analog terminals 7, 8 of the integrated circuit 1. In accordance with the invention, a capacitive electrical reference component CR connects to the signal earth 15 of the circuit at the terminal AT2. In practice, said reference component CR is a capacitor having a precisely defined capacitance value. The capacitive component Cx to be measured is connected to the positive supply voltage VH of the circuit via the terminal 7 by means of the switch SH5, i.e. the switch SH associated with the ABM 5. The capacitive component Cx is connected to the signal earth 15 via the switch SH6, i.e. the switch SH of the ABM 6. It is assumed in this connection that the circuit 1 is connected to a supply voltage, the terminal VL of which is connected to the signal earth 15. The capacitive component Tx can be connected to the capacitive reference component CR via the switch SB25, i.e. the switch SB2 of the ABM 6, and the switch S6 of the test bus interface circuit 9. The other switches of the ABM 5, 6 and the test bus interface circuit 9 are in the non-conducting or open
position for carrying out the method according to the invention. The connection between the terminals 7, 8 and the core 2 is interrupted via the respective switches SD. Fig. 4 shows a simplified diagram of the circuit of Fig. 3, which is used for explaining the preferred embodiment of the method according to the invention. Numeral 16 indicates a voltage source having a voltage VH, whilst numeral 17 indicates a measuring instrument for measuring the voltage across the capacitive reference component CR. Although the measuring instrument 17, for example a high-ohmic voltmeter, is shown to be directly connected to the reference component CR, it will be apparent to those skilled in the art that the measuring instrument 17 only needs to be connected to the reference component in question during the time that voltages are actually being measured. In accordance with the preferred embodiment of the method according to the invention, the capacitive component Cx to be measured is charged to the voltage VH from the voltage source 16 by closing the switch SH5 with the switch SB15 in the open position. Note that once Cx has been charged to the voltage VH, no current will flow through the switch SH5 and the associated wiring and terminals any more, ■ so that contact resistances in the switch and the wiring will not affect the eventual charge or the voltage across the capacitive component Cx. The charge Qx stored in Cx equals:
Qx (1)
wherein: Cx = the capacitance of Cx After Cx has been charged, the switch SH5 is opened, i.e. the connection with the voltage source 16 is broken, and the switch SB16 is closed for transferring charge from the capacitive component Cx to be measured to the capacitive reference component CR. The transfer of charge from Cx to CR will continue until
the voltages across CR and Cx have equal values. No current will flow through the switch SB16, the wiring and the terminals at that point, so that the contact resistance in the switch and in the wiring will not affect the transfer of charge. Assuming that an amount of charge Qt is transferred from Cx to CR, the following obtains with regard to the voltage Vx across Cx and the voltage Vr across CR:
(Qx - Qt)/Cx = Qt/Cr = Vr = Vx (2)
wherein: Qt = the amount of transferred charge from Cx to CR Cr = the capacitance of CR From (1) and (2) the unknown capacitance Cx of the capacitive component Cx can now be obtained from:
Cx - Cr • Vr/ (VH - Vr) (3)
By measuring the voltage Vr across the reference component CR after the transfer of charge between Cx and CR has been completed, the capacitance Cx of the capacitive component Cx to be measured can be calculated from the measured voltage Vr, the known voltage VH and the known capacitance Cr of the reference component CR by means of equation (3). Instead of first charging the component Cx to be measured, it is also possible to carry out the method according to the invention by first charging the reference component CR to a predetermined reference voltage. In the circuit of Fig. 3, the reference component CR can be charged by closing the switches SH5, SB26 and S6, with the switch SH6 in the open (non-conducting) position, of course. Subsequently, charge can be transferred from the reference component CR to the component Cx to be measured by opening the switch SH5 and closing the switch SH5- In the same
manner as explained above, the unknown capacitance Cx of the component Cx to be measured can be calculated from:
Cx = Cr • (V„ - Vr)/ Vr (4)
Instead of using a voltage source for charging the reference component, it is also possible to use a current source, in which case the voltage across CR is measured with the measuring instrument 17 prior to the transfer of charge from CR to Cx. In equation (4), the value of the measured voltage will take the place of VH in that case. When using the method according to the invention, the one capacitive component, which receives charge from the other capacitive component, preferably has a capacitance value which is lower than the capacitance value of the other component. If charge is transferred from
Cx to CR, Cx must have a lower capacitance than CR. Conversely, when charge is transferred from CR to Cx, Cx will preferably have a higher capacitance than CR. If the ratio between the smallest and the largest capacitance value is very large, only a relatively low voltage will remain across the two capacitive components after the transfer of charge, which voltage will be difficult to measure, at least in an accurate manner. In such a situation the method according to the invention can be carried out a repeated number n of times. That is, the one component is charged from the power supply source and subsequently transfers charge to the other component. For the circuit as shown in Fig. 4 it obtains that the voltage across the reference component CR will increase in steps in that case, as is schematically shown in Fig. 5. After n steps, the voltage across the reference component CR will reach a value close to a final value. For the circuit as shown in Fig. 4, it obtains now that
after n repetitions the voltage vr(n) across the reference component is in accordance with:
v» C. +C v» + c-+ vr(n-l) (5)
vr(n + 1) = V C„ + C H + c +E—c. vr(n) (6)
Subtraction of the equations (7) and (6) provides the following numerical equivalent of the differential equation:
vr(n + 1) - vr(n - 1) = 2 • ^ (8) dn
dvr(n) 1 , Cx Cx . , . 1 ,CX Cx . — L - + - - ( -^ + — ) • v (n) = - • (— + — ) • Vu (9) dn 2 Cr Cx + Cr Λ i 2 ^Cr Cx + Cr H [ }
Which is of the standard type: y'+p(x) • y = r(x) (10)
which provides a solution when the voltage at point in time t = 0 is likewise 0, which is the case with the method according to the invention, because the component Cx to be measured is supposed to be uncharged when the measurement is started. Consequently, the following applies:
vr(n) = (1 - e "* ^^ " ) • VH (ii)
From which Cx can be deduced, resulting in:
It will be understood that if the reference component is charged first, a similar formula for calculating the capacitance of the component to be measured can be derived upon repeated transfer of charge from the reference component to the component to be measured. Although contact resistances in the switches, the terminals and the wiring do not affect the accuracy of the measurement when the method according to the invention is used, it will be apparent to those skilled in the art that on the other hand the accuracy of the measurement is influenced by the resistance paths to the signal earth, which cause leakage of charge stored in Cx and CR. Consequently, switching must take place as soon as possible after the transfer of charge has been completed, that is, transfer of charge from the power supply source to a respective capacitive component and transfer of charge between the respective capacitive components themselves. In practice the point in time at which the transfer of charge., for example from Cx to CR, is complete must be determined from the RC time constants of the respective capacitive components and the contact resistances of the switches, the terminals and the wiring in the charge transfer chain. If said time constants are unknown, an idea of the RC time constants can be formed by means of a number of test measurements, and the time for completing the transfer of charge can be roughly estimated therefrom. In the case of integrated circuits comprising boundary-scan
modules, the duration of a charge transfer is determined by the length of the boundary-scan chain and the TCK clock rate. It is best therefore, to gear the clock rate to the time required for transferring charge. Fig. 6 schematically shows a measuring device 18 for carrying out the method according to the invention, which measuring device comprises a control processor 19 and a measuring instrument 17, for example a high-ohmic voltmeter or other suitable high-ohmic measuring instrument for measuring voltages, known to those skilled in the art. In the illustrated embodiment, the measuring instrument 18 is arranged for carrying out the method according to the invention with a circuit assembly consisting of a number of integrated circuits 1, one or more capacitive components Cx, resistors R and, if necessary, inductances L, on the printed circuit board 20, which components Cx, R and L are discrete components connected to one or more of the integrated circuits 1. The integrated circuits 1 are of the type provided with a boundary- scan test circuit IEEE Std. 1149.4 comprising a TAP 14 and an ATAP 11 connected to the measuring device 18. The reference component CR may be directly connected to the printed circuit board 20, for example as a fixed component, for carrying out the method according to the invention, and/or be incorporated in the measuring instrument 18. In most practical applications, a capacitance value in the order of 1 μF will suffice for the reference component for carrying out the preferred method according to Fig. 4, depending on the capacitance value of the component to be measured. Depending on the magnitude of parasitic capacitances in the circuit, capacitances of up to 10 pF can be determined with an accuracy level of more than 95%, and capacitances of up to 100 pF can be determined with an accuracy level of 99% or higher. The invention also relates to software for enabling the measuring device 18 to deliver suitable control commands to the test control circuit 12 for controlling the switches of the ABM 5, 6 and the
test bus interface circuit 9, which software can be loaded into the control processor 19.