Field of Invention
The invention relates to electrical signal detectors and more specifically to a circuitry and a method utilizing synchronous techniques for detecting and determining the magnitude of a signal synchronous with a reference frequency and whose phase relationship to the reference frequency is either known or unknown or a signal which is near but not synchronous with the reference frequency.
Background Art
The synchronous detector, also known as a coherent detector, phase detector, or balanced demodulator, provides a means for detecting synchronous signals in the presence of noise and other interfering signals. The term "synchronous signal" is meant to mean a signal which is synchronous with a reference frequency. The synchronous detector can be configured for extremely narrow bandwidths, which is equivalent to very high Q's, without the sensitive circuits usually required for analog filters at the signal frequency. The synchronous detector is indeed a detector and a filter.
The basic synchronous detector has many implementations. One implementation is shown in FIG. 1. Here the input signal is fed to an inverting amplifier with a gain of one, such that given that the input signal is s(t) the output of the inverter is -s(t). The signal and its inverse are switched by an analog switch driven at the same or synchronous frequency. The analog switch is such that when the digital reference signal is low the inverse is connected to the input of the low-pass filter and when the digital reference signal is high the signal is connected directly to the input of the low-pass filter. The resulting waveform is shown at the output of the switch. For these conditions, the result resembles a fullwave rectified waveform. The switch output waveform is the result of the frequency and phase relationship between the digital reference signal and the input signal. The switch output signal is passed through a low pass filter. The low-pass filter removes the AC components of the waveform giving the average value as a DC voltage at the output. In this case the output is a DC voltage whose magnitude is 0.636 times the peak value of the input wave.
FIG. 2 shows the waveform for various values of the phase angle. In general, if the relative phase of the input signal to the reference is "a" degrees then the output is given by:
For a quick look at synchronous detection bandwidth, the process of synchronous detection involves multiplying the incoming signal with a squarewave. The result of this product are the sum and difference frequencies of the squarewave and the input signal which includes, for synchronous frequency inputs, a DC term. The low-pass filter, given that the corner is properly set and the input is synchronous, removes all but the DC term.
The corner frequency is defined as that frequency where the signal at the output is attenuated by 3 dB. The filter is said to pass frequencies below the corner and to reject frequencies above the corner. For non-synchronous signals, products below the low pass filter corner are seen in the output. Therefore, the corner of the low-pass filter determines the bandwidth of the detector. The detector rejects all frequencies in the input spectra whose difference from the reference frequency is greater than one half the bandwidth. This can result in some very narrow bandwidths. For example, consider a reference frequency of 100 KHz and a low-pass filter corner of 1 Hz. This results in a detector with a bandwidth of 2 Hz at 100 KHz and something like a Q of 50000. The detector is stable at this Q level because the circuit is not dependent on critically tuned elements. High quality, stable low-pass filters are simple to construct and maintain.
For simplicity, an anti-aliasing prefilter has not been included in FIG. 1. The anti-aliasing filter is used to prevent interference signals whose frequency is near one of the harmonics of the reference frequency from giving an output. Typically the anti-aliasing filter is a low-pass filter with a corner between the reference frequency and its first harmonic. This would be necessary since the synchronous detector also has DC terms for the odd harmonics of the reference signal. The requirements of the prefilter are not severe.
A useful expansion of the synchronous detector circuit shown in FIG. 1 adds another synchronous detector driven by the reference plus 90 degrees. This is shown in FIG. 3. This allows COS (Cosine) and SIN (Sine) outputs whose relation to each other is as follows:
The synchronous detector has been implemented in many forms and in many products over a long period of time. However, there remains a need for a simple method for detecting and determining the magnitude of either a synchronous frequency signal whose phase relationship to a reference frequency is unknown or a non-synchronous signal near the reference frequency. For a synchronous signal whose phase relationship to the reference signal is unknown or variable there is little meaning to the output of the two detectors illustrated in FIG. 3 without further processing. One method of further processing is to compute the root-mean-square (RMS) of the COS Output and the SIN Output. Dynamically, this method is cumbersome and slow using a computer or inaccurate and tricky using analog multipliers. Thus, what is needed is a fast, accurate system and method which can be employed dynamically and which becomes the primary object of the invention. Other objects will become apparent as the description proceeds.
Summary of Invention
The invention provides circuitry and a method of detecting and determining dynamically, i.e. in real time, the magnitude of either a synchronous frequency whose phase relationship to a reference frequency is known or unknown or a non-synchronous signal near the reference frequency. The circuitry uses two synchronous detectors followed by a chopper followed by an RMS detector from which the output signal is obtained. One synchronous detector develops a COS Output and the other synchronous detector develops a SIN Output. The chopper alternately switches between the COS Output and the SIN Output.
Description of Drawings
FIG. 1 illustrates for background a prior art synchronous detector.
FIG. 2 shows the waveform for various values of the phase angle in the output of the FIG. 1 circuitry.
FIG. 3 illustrates for additional background another prior art synchronous detector circuit driven by both a reference signal and a reference plus 90 degrees signal.
FIG. 4 illustrates a circuit and method according to the invention providing means for detecting and determining the magnitude of either a synchronous frequency signal whose phase relationship to a reference frequency is unknown or a non-synchronous signal near the reference frequency.
Description of Preferred Embodiment
The invention circuitry is shown by way of example in FIG. 4.
Making reference to FIG. 4, two synchronous detectors 10, 12 are connected as in FIG. 4 followed by a chopper analog switch 14 followed by a RMS detector 16 connected to output 18. Detector 10 comprises that circuitry enclosed in dashed line 10' of FIG. 3 and detector 12 comprises that circuitry enclosed in dashed line 12' of FIG. 3. The chopper switch 14 alternately switches between the COS Output of synchronous detector 10 and the SIN Output of synchronous detector 12 at a frequency well above the highest frequency expected from the COS or SIN outputs. The chop signal is a square wave whose frequency is much higher than the highest frequency passed by the low-pass filters in the respective synchronous detectors 10, 12. A design value would be between 10 and 100 times the corner of each respective low-pass filter. Recognizing that a square wave gives equal periods, it is thus important both that the chop signal be square and that its frequency be much higher than that of the COS and SIN outputs of the respective synchronous detectors 10, 12.
The square wave shape adjustable reference signal 20 is fed to the synchronous detector 10 and the square wave shape adjustable reference plus 90 degrees signal 22 is fed to the synchronous detector 12. The square wave shape of the reference signal 20 combined with the analog switch 14 provide almost perfect multiplication of the input signal 24 by the reference signal 20 which is essential for the desired results. The input signal 24 to be detected is illustrated being fed to both synchronous detectors 10 and 12. The output of chopper switch 14 feeds to the RMS detector 16 which in turn feeds to output 18 which may be a visual display such as a meter or a connection into another system for further processing.
While illustrated as separate signal sources, a single signal source may be employed to provide both reference signal 20 and the reference plus 90.degree. signal 22 as separate outputs of a suitably designed single signal source.
Since the chop frequency is well above the frequency of the respective COS and SIN outputs of synchronous detectors 10, 12, it can be shown that the RMS value of the waveform fed to RMS detector 16 is proportional to the magnitude of the input synchronous signal 24. It also turns out that the RMS value of the waveform fed to RMS detector 16 is also dynamically proportional to the magnitude of near synchronous signals. "Near" is defined here as those signals whose difference from the reference frequency is within the passband of the low-pass filter of the respective synchronous detectors 10, 12. In this case, the respective COS Output and the SIN Output of synchronous detectors 10, 12 are varying at that difference frequency. As previously stated, the chop signal is a square wave whose frequency is higher than the highest frequency passed by the low-pass filters of detectors 10, 12. The RMS value of the chopped waveforms thus represents the dynamic magnitude of the incoming signal. By "dynamic magnitude" is meant that the analog of the magnitude is available in real time following the change in the input signal magnitude. This means that what may be referred to as the pseudo-synchronous detector of the invention performs the function of demodulation of synchronous and near synchronous signals. This process retains all of the desirable characteristics of the basic synchronous detector.
A number of RMS detectors are available to perform the RMS function. These range all the way from the balanced thermal types to specialized integrated circuit implementations. There are several available integrated circuit true RMS detectors which have a wide dynamic range and high accuracy. It is thus relatively easy to construct a low frequency "pseudo" synchronous detector according to the invention with a dynamic range approaching 70 dB and an accuracy of +/-1 dB over that range. Thus, what I refer to here as the pseudo-synchronous detector of the invention allows the demodulation of signals over a narrow band with enormous rejection of unwanted signals. Also to be noted is that adjustability of the reference frequencies enables the center frequency of the pseudo-synchronous detector of the invention to be quickly changed.