There are many situations in which it may be necessary to determine the real and imaginary components of an alternating current (AC) response received from a device under test (DUT). One situation is the characterization of an impedance of a DUT. For example, to determine the value of a capacitor, an analog stimulus-response unit (ASRU) may 1) apply an alternating current (AC) stimulus to the capacitor, 2) receive an AC response from the capacitor (e.g., a time-varying voltage across the capacitor), 3) use the AC response to determine the real and imaginary components of the AC response, and then 4) determine the value of the capacitor from the imaginary component of the AC response.
To properly determine the real and imaginary components of an AC response, it is often necessary to remove certain periodic waveforms, or noise, from the AC response. One periodic waveform that often needs to be removed is the line frequency (sometimes called “power line frequency”) of a test system's power mains. As described herein, line frequency rejection (i.e., removal of the effects of a line frequency from an AC response) is usually performed in the time domain.
Illustrative embodiments of the invention are illustrated in the drawings, in which:
As a preliminary manner, it is noted that, in the following description, like reference numbers appearing in different drawing figures refer to like elements/features.
By way of example, the DUT 106 could be a discrete component, such as a resistor, capacitor or inductor. Alternately, and by way of further example, the DUT 106 could be a network of impedances, a signal path such as a wire or printed circuit board trace, or an input or output of a more complex device such as an integrated circuit. In some embodiments, the DUT 106 may stand apart from other components, as would be the case of testing a discrete resistor. In other embodiments, the DUT 106 may be embedded in, or connected to, other circuitry that is not under test. In the latter case, the ASRU 100 or other equipment may take steps to condition or guard the “other circuitry” during test of the DUT 106.
In one embodiment, the ASRU 100 can be implemented as the HP3253 ASRU. The HP3253 was originally offered by Hewlett-Packard Company, but is now offered by Agilent Technologies, Inc. of Santa Clara, Calif. The HP3253 determines the complex components (real and imaginary components) of an AC voltage response by means of integration. For example, the HP3253 determines the “real” component of an AC response by integrating the AC response over the first half-cycle of a sinusoidal test frequency, f, and then adding to this quantity a negative integration of the AC response over the second half-cycle of the test frequency. Mathematically, this can be written as:
where √{square root over (2)}A is the peak amplitude of the AC response, where f is the test frequency in Hertz, and where
is a constant necessary to convert an average value to a root-mean-square (RMS) value, VRMS.
Eq. 1 is represented by the MATLAB® software (offered by The Mathworks of Natick, Mass.) as follows:
If T is chosen to be the period of the test frequency, then the above equation simplifies to VRMS=A.
Delaying the integration of the AC response by T/4 with respect to the integration performed for the “real” component returns the “imaginary” component of the AC response. With a knowledge of the real and imaginary components of the AC response, and by way of example, the values of components such as inductors and capacitors, and the effective impedances of networks, can be determined as is known in the art.
Line frequency rejection can be achieved for the measurements made in Eq. 1 or Eq. 2 by integrating for a full line cycle. This method is employed in the Agilent 3070 Board Test System, which integrates multiple half-cycles of the test frequency, f, and then averages the result of the integration over the full period of a line cycle. The averaged result, Ave, is:
When Eq. 3 is evaluated for any phase, Φ, of the AC response, and for M=17 (the value of M used by the Agilent 3070 for an ˜1 KHz stimulus), the result is Ave=0. This provides line frequency rejection for a 60 Hz line while making an accurate measurement of the test frequency, f.
The above-described method may be used to reject (remove) line frequency from both the real and imaginary components of an AC response.
The above-described embodiments of the ASRU 100 determine the real and imaginary components of an AC response in the time domain. Another way to determine the complex components of an AC response is in the frequency domain, by sampling the AC response of the DUT 106 and processing the samples through a discrete Fourier transform (DFT). If the samples are acquired at discrete time intervals, the AC response can also be expressed at discrete frequencies. That is, the DFT can be expressed as follows:
where N is the number of samples, V(n) are the measured voltages, and k is the number of the discrete frequency response. If the DUT 106 is stimulated using a sine wave with frequency ω=kΔω, then the DFT of the AC voltage response, V(kΔω), returns the real and imaginary components of the AC response.
Sampling an AC response and applying a DFT provides the same result as can achieved by integrating half-cycles of the AC response. Higher values of k require sampling to occur over a longer time.
Little attention has been paid to the frequency response of the DFT at signal frequencies other than ω=kΔω. The analysis (shown below) shows that certain restrictions on M and k will provide line frequency rejection, but with improved properties. The first restriction is that an AC stimulus having a test frequency, ftest, be applied to the DUT 106 as an integer multiple, M, of the line frequency, f, of the ASRU 100 (i.e., f=M*ftest). The second restriction is that the AC response of the DUT 106 be sampled at an interval, Δt, of k/ftestN (i.e., Δt=k/(ftestN)), where N is the number of samples taken. With these restrictions, Eq. 4 is represented by the MATLAB® software as follows:
When a further restriction on M is applied, such that M=2k, line frequency rejection can be attained. For example, choosing k=9 and M=18 makes a test frequency of approximately 1 KHz. Evaluating Eq. 5 at these values of M and k yields a result of DFT=0. This demonstrates that, under the stated restrictions, line frequency rejection is achieved for any arbitrary phase, Φ, of line frequency.
Given the previously-recited restrictions on M and k,
Turning now to
The method 300 may further comprise the step of applying the AC stimulus to the DUT, at the test frequency, ftest (at block 302).
In many cases, the periodic frequency rejected by the method 300 may be a power line frequency. However, the periodic frequency could also be another source of noise that might interfere with the AC response of a DUT.
Typically, the acquired samples will be voltage samples.
In some embodiments of the method 300, k and M may be selected such that k=9 and M=18, although many other combinations of values are possible.
The method 300 may in some cases be implemented by the system 400 shown in
The components 402, 406, 408 of the system 400 may be implemented in various ways. For example, the components 402, 406, 408 may be integrated within a single integrated circuit, on a single printed circuit board, or on multiple integrated circuits and/or printed circuit boards. Some or all of the components 402, 406, 408 may be implemented via a microprocessor or field-programmable gate array (FPGA). The components 402, 406, 408 may also be implemented via hardware, or via a combination of hardware and software (or firmware).
In some cases, the system 400 shown in
One advantage to using the methods 300 or systems 400, 500 described herein is that they provide line frequency rejection, or rejection of a predetermined period frequency, at one-half the period of a line cycle (or at one-half the period of a periodic noise signal). In contrast, previous methods and systems took one full cycle of the line frequency to reject the frequency. That is, using the methods 300 or systems 400, 500 described herein, a periodic frequency, f, can be rejected after a sample period, tsample, of T/2. Put another way,
where T=1/f.
Providing rejection at twice the rate of past methods and systems can provide a significant advantage when testing DUTs such as printed circuit (PC) boards using analog in-circuit test methods. PC board throughput directly affects the cost of a PC board. Reducing the time required to test a component on a PC board provides a significant cost advantage for manufacture of the PC board.