# Patent

## Title
Feedback enhanced sensor, alternating magnetic field detector

## Abstract

A SQUID system provides for tracking small input signals to a SQUID. A digital flux tracking loop provides for independently providing orthogonal error signal for signal and modulation feedback errors effective to form a flux tracking loop with the SQUID. A current source biases the SQUID with a current effective to cause the SQUID to output a periodic junction voltage V.sub.j having a period .PHI..sub.o, the V.sub.j having an amplitude as a function of magnetic flux .PHI. within the SQUID. A first processor modulates the magnetic flux within the SQUID to output at least three junction voltages. A second processor combines the at least three junction voltages and outputs first and second signals functionally related to flux tracking errors arising from the signal and modulation lock errors, respectively, the first and second signals forming feedback signals effective to form a flux tracking loop with the SQUID. In one embodiment, the signal flux errors are integrated to output a digital signal functionally related to the input signal to the SQUID.

## Background
A portion of the disclosure of this patent document contains material which is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent disclosure, as it appears in the Patent and Trademark Office patent files or records, but otherwise reserves all copyright rights whatsoever.

This invention relates to detecting the output signal from a dc superconducting quantum interference device (dc-SQUID) and, more particularly, to the application of digital signal processing to detecting the output signal from a dc-SQUID.

A dc-SQUID is a sensitive device that is used to detect and quantify very weak magnetic signals, e.g., human or animal brain signals for magnetoencephalography studies. It will be appreciated that the magnetic field strength of a brain is on the order of 10.sup.-13 Teslas (T), while background magnetic fields from the earth are on the order of 10.sup.-5 T. Thus, the general background noise level is eight orders of magnitude greater than the signal sought to be detected.

In one approach to reducing the noise to signal conditions, dc-SQUID are used in magnetically shielded rooms. Adequately shielded rooms are complex to design and maintain and are not suitable for routine use of a dc-SQUID. Other techniques have included the use of superconducting coils arranged to cancel the input of extraneous magnetic noise and the use of superconducting surfaces to deflect the fields of distant magnetic sources away from the signal detection coils of the dc-SQUID. These techniques are relatively complex and the efficacy is subject to mechanical features and variations thereof.

Yet another problem with a dc-SQUID is the need to provide for signal tracking over a wide dynamic range. With conventional analog circuits, the range of measurable signals can be increased by selecting or adjusting the gain of that circuit. However, decreasing the gain of a circuit to allow measurement of larger signals will decrease its sensitivity to weak signals. In the gain selection method, the percentage error and the noise floor are some fraction of the peak signal allowed by any given range. That is, the dynamic range is usually some constant for all ranges. Further, the dynamic range of analog measuring systems is limited to the ratio of the peak signal allowed by the electronics to its noise floor.

Still another problem with conventional dc-SQUID signal circuits is maintaining linearity over a wide dynamic range. The operation of a dc-SQUID is well known, that is, the dc-SQUID has a bias current to bias the dc-SQUID in a transition region between a superconducting and normal conducting state, wherein the dc-SQUID outputs a periodic junction voltage as a function of applied magnetic flux, .PHI., where the period is .PHI..sub.o (defined as one flux quantum or  /2e). A conventional analog circuit flux locked loop (FLL) holds flux within the SQUID to a constant value, i.e., the loop feedback current is used to cancel changes in flux induced by the input current. When the feedback current exceeds the maximum than can be supplied by the feedback circuit, flux lock is lost; the flux lock loop must be reset to a new lock point. A flux lock error can cause the lock point magnitude to be reset to the nearest multiple of .PHI..sub.o /2. If the lock is moved to an adjacent flux cycle, there will be a gap between the flux lock points with a concomitant accumulation of errors in the output signal.

In accordance with my invention a digital flux-tracking loop (dFTL) is provided with a novel modulation-demodulation technique for extending the usable measurement range of the dc-SQUID by many orders of magnitude without compromising accuracy or resolution. As hereinafter used, the term "SQUID" means dc-SQUID.

Accordingly, one object of the present invention is to achieve a large dynamic range for the SQUID through continuous tracking of the flux quanta over the entire magnetic flux range of SQUID operation.

Another object of the present invention is to provide linearity for the dFTL through accurate determination of .PHI..sub.o in a modulation feedback loop.

Still another object of the present invention is to provide independent orthogonal feedback for maintaining flux tracking and modulation lock.

Additional objects, advantages and novel features of the invention will be set forth in part in the description which follows, and in part will become apparent to those skilled in the art upon examination of the following or may be learned by practice of the invention. The objects and advantages of the invention may be realized and attained by means of the instrumentalities and combinations particularly pointed out in the appended claims.

To achieve the foregoing and other objects, and in accordance with the purposes of the present invention, as embodied and broadly described herein, the apparatus of the present invention may comprise a digital flux tracking loop (dFTL) for tracking input signals to a SQUID. Current means biases the SQUID with a current effective to cause the SQUID to output a periodic junction voltage V.sub.j having a period .PHI..sub.o, the V.sub.j having an amplitude as a function of magnetic flux .PHI. within the SQUID. First processor means modulates the magnetic flux within the SQUID to output at least three junction voltages. Second processor means combines the at least three junction voltages and outputs first and second signals functionally related to flux tracking errors arising from the signal and modulation lock errors, respectively, the first and second signals forming feedback signals effective to form a flux tracking loop with the SQUID.

In another characterization of the present invention, a method enables tracking input flux signals to a SQUID using a digital flux tracking loop (dFTL). A bias current is established in the SQUID effective to cause the SQUID to output a periodic junction voltage V.sub.j having a period .PHI..sub.o, V.sub.j having an amplitude as a function of magnetic flux .PHI. within the SQUID. The magnetic flux .PHI. in the SQUID is modulated with a feedback magnetic flux having values of .PHI..sub.F, .PHI..sub.F+ .PHI..sub.n /2, .PHI..sub.F- .PHI..sub.n /2, and where .PHI..sub.F is the flux feedback signal and .PHI..sub.n approximates .PHI..sub.o, to output at least three junction voltages. The at least three junction voltages are combined to output first and second signals, where the first signal is a flux tracking error signal for determining an instantaneous value of .PHI..sub.F for the subsequent modulation cycle and the second signal signal is a modulation amplitude error representing the deviation of .PHI..sub.n  from .PHI..sub.o, for correcting .PHI..sub.n, where the first and second signals are feedback signals effective to form a flux-locked loop with the SQUID.

The accompanying drawings, which are incorporated in and form a part of the specification, illustrate embodiments of the present invention and, together with the description, serve to explain the principles of the invention. In the drawings:

FIG. 1 is a circuit diagram, in block diagram form, of one embodiment of a SQUID digital flux tracking loop in accordance with the present invention.

FIG. 2 graphically depicts the flux tracking and modulation lock errors determined by the circuit shown in FIG. 1.

FIG. 3 is a processor flow diagram for computing a feedback signal.

FIG. 4 graphically depicts the modulation offset obtained by the present invention to maintain modulation within the system dynamic range.

FIG. 5 is a processor flow diagram for initiating modulation detection of detector values.

FIG. 6 graphically depicts an open loop SQUID gain determination during closed loop operation according to the present invention.

FIG. 7 is a functional block diagram of a digital signal processor for use in one embodiment of the present invention.

In accordance with my invention, a digital flux-tracking loop (dFTL) for a SQUID includes a novel modulation-demodulation system and technique for extending the usable range of the SQUID by many orders of magnitude, without compromising accuracy or resolution. The dFTL tracks the magnetic flux in the SQUID by operating as a null detector. That is, the dFTL adjusts the modulation points and amplitudes so as to follow the changes of flux within the SQUID. The flux within the SQUID is therefore not maintained at a constant value. When the flux within the SQUID exceeds the limits that the digital-to-analog (D/A) system can track, the dFTL finds a new null, within the D/A range, that is offset by .PHI..sub.o /2 to provide a seamless transition.

Referring now to FIG. 1, there is shown a circuit schematic in block diagram form for one embodiment of the dFTL according to the present invention. SQUID 10 is biased by bias current I.sub.b 12 to an operating point within one of the symmetrical superconducting-non superconducting transition regions. In this region, if I.sub.b is maintained constant by bias digital-to-analog (D/A) converter 14, the output junction voltage V.sub.i of SQUID 10 is a periodic function of the magnetic flux .PHI. within SQUID 10. The period of the function is one magnetic flux quantum .PHI..sub.o, as explained above.

Input signal 16, e.g., a current induced by a small magnetic field, such as produced by a human brain, produces an input signal magnetic flux through coil 18 to SQUID 10. The signal magnetic flux causes a variation in junction voltage V.sub.j across SQUID 10 with a concomitant signal current that may be inductively coupled 20 to low noise preamplifier 24, whose output is input to analog-to-digital (A/D) converter 26. Digital output 28 from A/D converter 26 is input to digital signal processor (DSP) 30. DSP 30 processes the digital signal 28 to determine a feedback value, which is combined with a modulation valve, also determined by DSP 35, to form (and modulate) signal 32 through feedback modulation D/A 34. Feedback digital signal 32 results in a current output from D/A converter 34 that is input to coil 36 to modulate and track the magnetic flux in SQUID 10. The magnetic flux in SQUID 10 is the sum of flux from coils 18 and 36. DSP 30 also outputs digital signal 38, which is a numerical value corresponding to input signal 16.

In a preferred embodiment, bias D/A converter 14 trims over the production range of the selected SQUID device, e.g., +20% about the critical current. An 8-bit D/A converter 14 designed for low-frequency operation is usually adequate. If bias-reversal modulation, explained below, is needed for reduction of 1/f noise, a wider range of D/A converter 14 may be needed to directly generate the bias modulation. Independent values of positive and negative SQUID bias current 12 to bias SQUID 10 in opposite transition regions can be generated, so that balanced, symmetrical operating points can be used.

SQUID signal A/D converter 26 preferably has a resolution in the range of 8 to 12 bits. The operating speed of converter 26 is greater than a factor equal to the number of modulation levels per unit time of the SQUID modulation. D/A converter 34 provides both modulation and feedback current through coil 36 to couple a corresponding magnetic flux to SQUID 10. D/A converter 34 has a current range effective to provide a magnetic flux range greater than 1.5 .PHI..sub.o. D/A converter 34 preferably has 16 or more bits of resolution, high linearity, and is temperature stable. Again, the minimum conversion rate is a factor equal to the number of modulation levels per unit time.

Digital signal processor (DSP) controller 30 is conventional and contains RAM, ROM, and timer circuitry. DSP 30 implements the algorithms necessary for dFTL operation, e.g., modulation, detection, tune-up, and the like, as set out in the Program Listing Appendix. Tracking routines and flux-skipping routines (FIGS. 3 and 5) are interrupt-driven by a digital clock within DSP 30. These routines require little processing time in DSP 30, leaving adequate time for additional signal processing routines, e.g., bandpass equalization and adaptive cancellation of interference, that may be incorporated to improve signal quality.

In one significant aspect of my invention, three points in the V.sub.j -.PHI. transfer function of the SQUID are modulated by a four-phase modulation current, as shown in FIG. 2, to measure orthogonal, i.e., independent, flux tracking and modulation lock errors. When biased at a critical current, I.sub.b, SQUID junction voltage V.sub.j (neglecting SQUID noise) is described by:

where V is the average junction voltage.

The phase modulation scheme can be visualized as alternating cycles of .PHI. .sub.n /2 amplitude square waves of opposite phase, modulating two adjacent half-quantum flux periods, where .PHI..sub.n approximates .PHI..sub.o within the modulation error, described below. At lock the flux corresponding to each of the three modulation points is:

When the dFTL is operating, let the flux error at lock be denoted by .delta..sub..phi. and the modulation error by .delta..sub.M. The SQUID junction voltages, measured during each of the four modulation phases, for small values of error are: ]).apprxeq.Vk(.delta..sub..phi. +.delta..sub.M), ]).apprxeq.V+k(.delta..sub..phi. -.delta..sub.M),

Looking at the modulation for each of the alternating .PHI..sub.n /2 peak-to-peak square waves, each half contains both flux and modulation error terms:

By combining all four phases, i.e., taking the sum and difference of the above two-phase errors, two orthogonal detection channels are obtained for measuring the flux tracking and modulation amplitude errors: (3)]=-4k.delta..sub..phi., and (3)]=-2k.delta..sub.M.

The feedback signal for tracking the flux is derived by integrating the flux error signal:

where g.sub..phi. is the flux feedback gain. Since the dFTL feedback .PHI..sub.F (t) tracks the flux changes within the SQUID rather than holding the flux at a constant value, the flux feedback gain is selected to exactly compensate for the flux change predicted by the error signal. A flux slipping (tracking) algorithm, described below in FIGS. 3 and 5, permits lock to be maintained within the D/A converter range, while counting the number of .PHI..sub.o /2 periodicities that have been slipped beyond the dynamic range of the current supplied by D/A converter 34. The total instantaneous flux represented numerically within DSP 30 is equal to the sum of the feedback signal 32 and the total flux that has slipped beyond the dynamic range of D/A converter 34.

The digital feedback gain of the flux detector is computed from the SQUID output voltage and the gain and resolution of the A/D 26 and D/A 34 converters (FIG. 1 ). For small signal excursions, the A/D 26 transfer function ha(.PHI. o/LSB), where LSB is the value of the converter least significant bit, is:

where Vpp is the peak-to-peak SQUID voltage, V.sub.a is the A/D converter 26 voltage input range (rail-to-rail), and N is the number of bits of resolution of A/D converter 26. The factor of four in the denominator appears due to summation over four modulation phases. D/A converter 34 transfer function h.sub.b (LSB/.PHI..sub.o) is given by:

where M is the number of bits of resolution of D/A converter 34, and .PHI..sub.pp is the D/A converter 34 output range in magnetic flux quanta. Combining these two equations, the required feedback gain g is: 2.sup.N).

This is the feedback gain for small error signals that precisely compensates the corresponding input flux change. The gain for larger error signals declines as a cos(2.pi..delta..sub..phi. /.PHI..sub.o) function. This decline can be compensated for by an inverse function that increases gain in proportion to the error signal (proportional feedback), making the flux feedback equation: ##EQU1## The limit of .PHI..sub.o /4, for which the detector gain falls to zero, must be avoided by use of a discriminator algorithm.

Since the dFTL algorithm must lock the modulation current amplitude to .PHI. .sub.o /2, the modulation gain g.sub.M is selected to minimize the effects of SQUID noise on the modulation lock point. The modulation amplitude A.sub.M is:

The maximum available slew rate, i.e., signal change rate, of a digital SQUID controller can be estimated from the maximum error signal and the sample clock rate. Since the maximum error signal per sample is .PHI..sub.o /4, the maximum slew rate will be given by:

where f is the acquisition rate in samples/second. The theoretical slew rate limit assumes that the combination of SQUID, preamplifier, and A/D converter have no phase delay, and are noiseless. For a proposed application using a 500 kSample/s rate, the theoretical slew rate limit is 125,000 .PHI..sub.o /s. In a test simulation (using.sub.proportional feedback) with 5 .mu..PHI..sub.o -Hz.sup.-1/2 SQUID noise and 500 kSamples/s, a slew rate limit of 111,000 .PHI..sub.o /s was obtained.

The operation of the flux-tracking error and modulation lock tracking process is shown by reference to FIGS. 1 and 2. A modulation current amplitude of .PHI..sub.n peak-to-peak is generated by feedback/modulation D/A converter 34. The modulation is a square-wave, having three operating points at amplitudes of .PHI..sub.F .+-..PHI..sub.n /2 in 4 clock phases. As used herein, .PHI..sub.F denotes the amplitude of the feedback current with a flux error component; .PHI..sub.n is a modulation amplitude that approaches .PHI..sub.o. SQUID A/D converter 26 reads the junction voltage V.sub.j at each of the modulation phases into separate memory registers in DSP 30. Modulation transition-to-detection phase delays, imposed by the characteristics of SQUID matching transformer 20 and preamplifier 24, are implemented in software through the use of a time delay between the modulation interrupt routine and the detection interrupt routine (see FIGS. 3 and 5). SQUID junction voltages from the detection phases are processed into two orthogonal error components, discussed above.

In an exemplary embodiment with four modulation steps, a flux error value .delta..sub..phi. is generated by combining A/D converter 26 values of V.sub.j for detection phases (0-1)+(2-3) or (1-0)+(3-2), as needed to maintain a negative feedback polarity. It should be noted that, in the flux error determination, the modulation appears to be a simple square wave with a .PHI..sub.n /2 peak-to-peak amplitude, i.e., two of the four phases of modulation are folded into the same amplitude. DSP 30 integrates the output of the flux error detection channel; the error signal corrects .PHI..sub.F and is fed back through D/A converter 34 to produce a null output from SQUID 10. Integration is performed by summing the scaled error signal to the total signal value.

The modulation error .delta..sub.M is generated by combining the V.sub.j detector phases (0-1)-(2-3). The modulation error is a deviation of .PHI..sub.n /2 from the nominal .PHI..sub.o /2 amplitude of the alternating square waves. This error is orthogonal to the flux error .delta..sub..phi., i.e., the error is sensitive to changes in modulation amplitude but not to changes in flux. The modulation error is null when the modulation amplitude is exactly .PHI..sub.o peak-to-peak. Modulation error signals appear as copies of the original four-phase modulation, with polarity depending upon the sign of the error. DSP 30 is programmed to account for the portion of the signal coupled from the modulation coil 36 to SQUID preamplifier 24, the portion of the signal arising from imbalances, and other signal errors arising from the dFTL. The amplitude of any coupling is determined during the SQUID tune-up with bias current removed from the SQUID. The determined quantity is used during operation of the dFTL to subtract the coupling error from the modulation signal. The modulation error signal is integrated to yield an accurate and increasingly refined value of .PHI..sub.n /2 for subsequent modulation-detection cycles, i.e., .PHI..sub.n approaches .PHI..sub.o.

A table of modulation values .PHI..sub.n, indexed by 1/2 the flux quantum intervals and direction, is maintained in memory in DSP 30. Initially, the table contains the same current (D/A) value for each flux quantum. As input signal 16 sweeps over the range for SQUID 10, the values are refined to reflect an accurate value of current per flux quantum. The table may then be used to compensate for the hysteretic characteristics of SQUID 10, as can occur when flux is allowed to change within SQUID 10.

The overall detection scheme is graphically depicted in FIG. 2, for which, by way of example, the modulation points deviate from the null conditions for both flux errors and modulation errors. By way of example for the relative junction voltages depicted, error .delta..sub..phi. is calculated from the voltages in phases (0-1)+(2-3)=(34-40)+(34-48)=-20; the modulation error is (0-1)-(2-3)=(34-40)-(34-48)=8.

The error processing routine is more particularly shown in FIG. 3, which uses the following nomenclature: greater number, truncated to the D/A resolution). bit or greater number). MOD[n.PHI..sub.o /2, sign (d.PHI./dt)]is maintained in a DSP 30 table (a 32 bit or greater number which may be truncated to the D/A resolution). of four modulation phases. closed-loop damping. closed-loop damping. discriminator thresholds; EMAX is used to represent both.

When a detector timer interrupt 100 is generated, a modulation phase is identified 102 and the digital value output from D/A converter 26 (FIG. 1 ) is stored: D0 104, D1 106, D2 108, and D3 110. The polarity of the modulation (see discussion of FIG. 5) is checked and the flux error is determined as (D0-D1)+(D2-D3) 114 or as (D1-D0)+(D3-D2) 116. The modulation error is then determined as (D0-D1)-(D2-D3) 118. The errors are compared 122 against a selected maximum error that might be expected. If the errors exceed the maximum error, no new feedback signal is computed, feedback is maintained constant, and the routine returns from the error detection interrupt. If the errors are within the error limits, then the flux error signal and modulation error signal are computed and a combined feedback signal SIG 124 is generated.

A particular improvement provided by the process of this invention is to track magnetic flux generated by current signal 16 seamlessly across .PHI..sub.o /2 boundaries, as graphically shown in FIG. 4. As a result, the dynamic range of the system is not limited by the range of D/A amplifier 34. When the sum of feedback and modulation values 52 requires that D/A converter 34 generate a modulation current beyond its positive 54 or negative 56 limits, the dFTL process described herein offsets the feedback .PHI..sub.F 58 of D/A 34 by the current value of .PHI. .sub.n /2 in the opposite direction from the limit being reached and the modulation polarity is inverted to reset modulation point 62 within the limits of D/A converter 34. The offset is added to or subtracted from the integrated signal, as appropriate, and the portion of the integrated signal with the range of D/A converter 34 is used to continue tracking flux. If the D/A current corresponding to one magnetic flux quantum has been accurately determined, the flux slip results in no error signal, i.e., the flux tracking is seamless.

A flux-slip of .PHI..sub.n /2 can be generated on modulation phases 1 or 3, i.e., when the numeric value of the modulation pulses, corresponding to plus or minus .PHI..sub.n /2, are tested for D/A limits prior to conversion. If a D/A limit is reached, a flux slip of .PHI..sub.n /2 is executed, as shown in FIG. 5 and discussed below. During the modulation polarity transition, SQUID junction voltage V.sub.j, saved in DSP 30 from the previous four phases, may be incorrect, since the transition did not occur at modulation phase 0. Subsequent modulation cycles are unaffected by the transition phase error until the next flux-slip transition occurs. Correct error detection following a flux-slip transition requires that new error values be estimated from the previous four detection values, e.g., by averaging the values of adjacent phases. Use of this correction assumes that only flux error dominates:

The symbols D0 through D3 refer to the output values from detector SQUID 10/preamplifier 26 stored for the previous four phases. The primed symbols refer to the updated detector values.

FIG. 5 depicts a flow chart for maintaining the current of D/A converter 34 with its upper and lower rail limits. The following variables are identified in addition to the variables identified for FIG. 3: modulation and feedback applied to SQUID 10).

Modulation timer interrupt 60 initiates the sequence. The polarity of the modulation is checked 62 to determine the routing 64 or 66 of the modulation phase values. The DAV is determined for phases 1 and 3 at .+-..PHI..sub.n /2 72, 74 prior to their conversion and compared with the maximum 78 and minimum 82 rail values. Phases 0 and 2 are set 68 to their FSIG value. If an upper or lower rail value is found in comparisons 78 or 82, a flux slip of .PHI..sub.n /2 is executed 84 or 86. Since the polarity of the modulation will then be inverted, the polarity of the flux error detection process must also be inverted 92 or 94 so that negative feedback is maintained. The polarity of the modulation error algorithm is independent of the modulation polarity and remains unchanged. If the D/A signal 32 is within the rail limits, the values are converted 76 to analog values for feedback to SQUID 10 and the routine is returned 96 from the interrupt through delay timer 88.

The D/A converter 34 digital value for modulation current, corresponding to .PHI..sub.n /2, must be known precisely so that there is no error in the digitally measured values, when slipping flux in half-quanta intervals. The presence of errors in the D/A value for the magnetic flux quantum will correspond to measurement errors.

Initially, only a nominal value of the D/A 34 current corresponding to one half flux-quantum .PHI..sub.n /2 is known. Since this error corresponds to a modulation error, the feedback loop will refine this value to the nearest LSB on the D/A ladder. In fact, .PHI..sub.n /2 can approach .PHI..sub.o /2 to better than one LSB, because the modulation error signal is integrated over time. Since the D/A current per half flux-quantum can change, as flux changes in SQUID 10 (note that flux is not conserved in this flux-tracking scheme), a new digital value for .PHI..sub.n /2 is needed for each flux-quantum period in the input-output transfer function. However, as noted above, DSP 30 maintains a table, numbered in half flux-quantum intervals, of the refined digital values (to smaller than the D/A LSB). The tables are preferably directional (d.PHI./dt), accounting for hysteresis within SQUID 10. The values within the table are constantly refined as each half flux-quantum is sampled by the modulation so that the dFTL is automatically maintained in a linear state.

In yet another feature of the present invention, a maximum slew rate, i.e., rate of signal change, is maintained by measuring the open loop gain of SQUID 10 and preamplifier 24 while in the closed loop condition. This gain is then used conventionally to adaptively set critical loop damping to assure that the maximum slew rate is available without compromising loop stability. In convention flux-locked loops, slew rate is either fixed or is switch selectable to maintain a lock on rapidly changing signals or to compensate for unlocking from rf interference.

In order to measure open loop SQUID/preamplifier gain, modulation values of .PHI..sub.n /4 from the null point are periodically introduced, e.g., in 1 out of 100 cycles or 1% of the modulation cycles. As shown graphically in FIG. 6, this change of modulation value provides a peak-to-valley measure of the input junction voltage V.sub.j, i.e., a measure of the SQUID/preamplifier gain. The measured value of SQUID/preamplifier gain is then used to adaptively set the integration time constant to assure loop stability. DSP 30 may then output a value 42 (FIG. 1) of the available slew rate.

A preferred embodiment of the dFTL shown in FIG. 1 may include several additional features, described below. Further, the operation of DSP 30 in performing the processes described above for forming the modulation pulses, flux-slipping, error detection procedure and determining open loop gain for SQUID 10 and preamplifier 24 is more particularly set out in the software listing of the Program Listing Appendix attached to and incorporated in this Description.

Coupling transformer 20 and preamplifier 24 used to measure SQUID 10 junction voltage V.sub.j may not have flat frequency and phase response. DSP 30 may then perform a real time inverse filtering operation on the amplified SQUID junction signals, prior to detection, minimizing the phase and amplitude errors in measuring the instantaneous junction voltage. This digital filtering may also shape the bandpass to minimize out-of-band signals from being detected. In addition to equalizing the bandpass, interference that is unrelated to the modulation frequency or its sidebands may be suppressed by a real time adaptive digital filter (not shown), prior to detection.

As discussed above, the dFTL tracks the magnetic flux in SQUID 10 by operating as a null detector. That is, the dFTL adjusts the modulation amplitude .PHI..sub.n /2 and feedback amplitude .PHI..sub.F so as to follow the changes of flux within SQUID 10. The flux within SQUID 10 is therefore not maintained at a constant value. When the flux within SQUID 10 exceeds the limits that D/A converter 34 can track, the dFTL find a new null, with the range of D/A converter 3-4, that is offset by .PHI..sub.n /2, as discussed above for FIG. 5. By contrast, an analog flux-locked-loop (FLL) holds flux within the SQUID to a constant value, where the FLL feedback current is used to cancel the changes in flux induced by the input circuit. When the feedback current needed to maintain cancellation of the flux change exceeds the maximum that can be supplied by the feedback circuit, flux lock is lost and the FLL must be reset to a new lock point.

Because the dFTL allows the magnetic flux within SQUID 10 to change, the modulation current per unit flux can also change. This occurs because the inductance of SQUID 10 may change as magnetic flux penetrates the superconducting material making up SQUID 10. The change of inductance is very small for superconducting coils of large area, but can be significant for SQUIDs. The area of the SQUID inductor is on the order of several square micrometers, and flux penetration causes a significant change in the effective inductor area. In addition, high-Tc SQUIDs can also exhibit considerable hysteresis with respect to how flux changes with modulation current. The dFTL, however, is measuring the current required to track the changes in magnetic flux within the SQUID. If the mutual inductance between the SQUID input coil 18 and SQUID 10, itself, were identical to that of the modulation/feedback coil 36 to SQUID 10, then changes in current within the input circuit would be precisely measured by the corresponding tracking current in the modulation/feedback circuit. In this manner, the dFTL can maintain linear measurement of current (not flux) in SQUID 10 input circuit 18, despite the nonlinearity of flux with respect to current.

In yet another enhancement, D/A converter 14 may be used to establish the optimum bias point for SQUID 10 while operating in the presence of low-frequency large-amplitude ambient input signals. DSP controller 30 enables the generation of a current sweep ramp, using the feedback/modulation D/A converter 34, to signal average the resulting V.sub.j, measured by A/D converter 24, and determine its peak-to-valley amplitude to adjust the bias trim of D/A converter 14 for maximum junction amplitude.

The proposed method for establishing the correct bias uses the feedback/modulation D/A converter 34 to simultaneously generate two non-harmonically related sine waves of about .PHI..sub.o peak-to-peak flux. The frequencies are chosen to be above the 1/f knee for ambient magnetic signals, and not harmonically related to the power line frequency. The SQUID junction voltage time-series is measured by A/D converter 26. The predicted intermodulation (mixer) frequency of the two tones is detected through a narrow-band filter (FFT), and SQUID 10 dc bias 1:2 is adjusted to maximize one of the expected heterodyne frequencies. The SQUID "mixer" output will be maximum at the critical current. The procedure may use saved bias values as a starting point, and to determine junction behavior, i.e., flux trapping. If bias reversal modulation is used, independent values of bias current are determined for the positive and negative polarities, assuring symmetry.

Impulse noise discrimination may also be included in DSP controller 30 between the error detection and the integrators for flux and modulation amplitude. The discriminator prevents large error signals from perturbing the lock points. Large error signals may result from EMI transients appearing at the input circuit to the SQUID. A high amplitude noise spike of short duration might transiently change the lock point by some multiple of .PHI..sub.o /2. However, if the transient d.PHI..sub.o /dt exceeds the maximum allowable value, it is preferable that the current value of the feedback and signal not be changed.

Referring now to FIG. 7, there is shown a functional block diagram of DSP 30 (FIG. 1) which may be implemented to hardware or software. A hardware implementation may be in either discrete components providing the stated functions or in an integrated circuit depending on the specific application of the SQUID apparatus. A software embodiment is particularly set out in the Program Appendix Listing. Internal signals are denoted by A,. B, and C. Components that are identical to the components referred to in FIG. 1 are identified by the same reference numbers.

An input analog signal, SQUID junction voltage V.sub.j, is digitized by A/D converter 26 and input to an equalization/bandpass filter 132 to minimize phase and amplitude error. Filtered signals are then input to 4-phase demodulator 134 and gain probe demodulator 136. The operation of DSP 30 is controlled by clock 138. Clock 138 outputs a modulation clock A and clocks gain probe clock 142 to output a gain probe clock signal B every N modulation cycles.

Generation of the orthogonal flux and modulation errors is performed by error discriminator 144 using the clocked output from 4-phase demodulator 134 to perform the routine set out in FIG. 3. The flux error and modulation error are provided to flux integrator 148 and modulation integrator 146, respectively. Corrected feedback signals to produce a "null flux" and a .PHI..sub.n /2 modulation are input to 4-phase flux-slip modulator 152. Flux-slip modulator 152 performs the routine set out in FIG. 5 and outputs a combined feedback signal to D/A converter 34 to generate the modulated feedback signal amplitudes, .PHI..sub.F, .PHI..sub.F +.PHI. .sub.n /2, .PHI..sub.F -.PHI..sub.n /2. An output signal from flux integrator 148 is input to bandpass filter 154 to form digitized output signal 38 (see also FIG. 1 ) that is functionally related to the flux value of input signal 16 in SQUID 10.

When an open loop gain is desired, as discussed above, gain probe modulator 162 is clocked by clock signals A and B to periodically modulate the SQUID flux at a phase appropriate to output a junction voltage to gain probe demodulator 136 to output a signal to open loop gain predictor 166. The predicted open loop gain is input to modulation and flux integrators 146, 148 to update the integration factors therein.

DSP 30 may incorporate bias reversal modulation wherein the bias current polarity is periodically reversed to switch between opposite transition regions. It will be understood that the transition regions are not exactly symmetrical and a skew error may be introduced during the switching. Bias clock 156 clocks the bias modulator 164 to switch the bias current 12 and clocks skew integrator 158, which outputs a flux error correction to modulator 152 to correct for bias reversal errors.

An implementation of DSP 30 in software is set out in the Program Appendix Listing. The program listing and the functional description shown in FIG. 7 will enable the invention to be performed in many different embodiments.

The foregoing description of the preferred embodiments of the invention have been presented for purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise form disclosed, and obviously many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the invention and its practical application to thereby enable others skilled in the art to best utilize the invention in various embodiments and with various modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the claims appended hereto. ##SPC1##

## Claims

1. A digital flux tracking loop (dFTL) for tracking input signals to a SQUID comprising: SQUID to output a periodic junction voltage V.sub.j having a period .PHI..sub.o, said V.sub.j having an amplitude as a function of magnetic flux .PHI. within said SQUID; by a four-phase modulation current to output at least three junction voltages containing information indicative of flux tracking and modulation lock errors; and and outputting first and second signals functionally related to said flux tracking and modulation lock errors, respectively, said first and second signals forming feedback signals effective to form a flux tracking loop with said SQUID.

2. A dFTL according to claim 1, wherein said first processor means includes a D/A converter inductively coupled to said SQUID for applying a flux error and modulation signal across said SQUID and a A/D converter for receiving modulate junction voltages from said SQUID and outputting digital values of said modulated junction voltages to said second processor.

3. A dFTL according to claim 2, wherein said D/A converter has an operating range at least slightly greater that 1.5.PHI..sub.o.

4. A dFTL according to claim 2, wherein said D/A converter and said A/D converter each have a conversion rate at least the number of modulation steps for said modulating said periodic junction voltage.

5. A method for tracking input flux signals to a Squid using a digital flux tracking loop (dFTL), comprising the steps of: output a periodic junction voltage V.sub.j having a period .PHI..sub.o, said V.sub.j having an amplitude as a function of magnetic flux .PHI. within said SQUID; flux having values of .PHI..sub.F, .PHI..sub.F +.PHI..sub.n /2, .PHI..sub.F -.PHI..sub.n /2, where .PHI..sub.F is the flux feedback signal and .PHI..sub.n approximates .PHI..sub.o, to output at least three junction voltages; signals, said first signal is a flux tracking error signal for determining an instantaneous value of .PHI..sub.F and said second signal is a modulation amplitude error representing the deviation of .PHI..sub.n from .PHI..sub.o, for correcting .PHI..sub.n, where said first and second signals are feedback signals effective to form a flux-locked loop with said SQUID.

6. A method according to claim 5, where said first and second signals are mutually orthogonal.

7. A method according to claim 5, further including the step of testing the magnitude of said .PHI..sub.F +.PHI..sub.n /2 modulations against the range of a D/A converter converting said feedback signals to analog form for application to said SQUID and slipping said feedback by plus or minus .PHI..sub.n /2 to maintain said feedback to said D/A converter within a defined linear range.

8. A method according to claim 5, further including the step of maintaining a table of values for .PHI..sub.n that is updated by said modulation lock errors to provide a current value of the value .PHI..sub.n for said dFTL as an approximation to .PHI..sub.o.

9. A method according to claim 5, further including the step of adjusting said phases for modulating said junction voltage by .PHI..sub.n /4 at selected intervals to obtain an output signal functionally related to the open circuit gain for said SQUID and preamplifier circuitry receiving an output signal from said SQUID for use in establishing stable operation of said dFTL.

10. A SQUID system for measuring a small input signal, comprising: said SQUID functionally related to said input signal; SQUID to output a periodic junction voltage V.sub.j having a period .PHI..sub.o, said V.sub.j having an amplitude as a function of magnetic flux .PHI. within said SQUID; by a four-phase modulation current to output at least three junction voltages containing information indicative of flux tracking and modulation lock errors; and outputting first and second signals functionally related to said flux tracking and modulation lock errors, respectively, said first and second signals forming feedback signals effective to form a flux tracking loop with said SQUID; and digital signal functionally related to said input signal.

11. A SQUID system according to claim 10, wherein said first processor means includes a D/A converter inductively coupled to said SQUID for applying a flux error and modulation signal across said SQUID and a A/D converter for receiving modulated junction voltages from said SQUID and outputting digital values of said modulated junction voltages to said second processor.

12. A SQUID system according to claim 11, wherein said D/A converter has an operating range at least slightly greater than 1.5.PHI..sub.o.

13. A SQUID system according to claim 11, wherein said D/A converter and said A/D converter each have a conversion rate at least the number of modulation steps for said modulating said periodic junction voltage.