IMPROVEMENTS IN AND RELATING TO SIGNAL GENERATORS

Abstract: A signal generator and method of control thereof for producing a desired output frequency, the generator having coarse and fine tuning controls (34, 36) capable of producing frequency changes over a limited range, wherein in accordance with the invention the output of the device is combined in a mixing device (40) with a multi-component reference signal produced from an oscillatory generator circuit (42, 44, 46), a beat signal is detected by processing circuitry (48, 50, 52) as the frequency controls are adjusted and the values of the fre­ quencies of the control signals occurring on such detection are stored, and using a look-up table or algorithm the value of a cor­ rection signal is determined which, when combined with the stored values, will cause the output frequency of the device to be adjusted to the desired value via the fine tuner.

Description: Field of invention. This invention concerns signal generators particularly stablised signal generators capable of operating in the GHz range either in continuous wave (CW) mode or Swept frequency mode and typically used in transmission/reflection analysers. Background to the invention. Various source oscillators are available for generating very high frequency electrical signals but all suffer to a greater or lesser extent from drift introduced by environmental changes such as temperature, power supply fluctuations and variation in electrical components associated with the oscillatory source. Typical sources for very high frequency applications utilise a YIG oscillator or a Varactor tuned oscillator. Techniques for improving frequency stability fall under two headings; a) techniques for unlocked sources, and b) techniques for locked (usually phase-locked) sources. In the case of unlocked systems, an open loop form of correction is normally incorporated with some form of linearisation circuit. This type of approach can vary from simple diode shaping networks which are common with Varactor tuned circuits to more complex PROM data correction incorporated into microprocessor controlled signal generators. Because the circuits are open loop, no correction is possible for frequency shifts with time or mismatch errors. By using a temperature sensing thermistor, a correction signal can be generated to assist in correcting the source frequency for temperature drift. However, in all other respects the arrangement is essentially open loop. With locked systems, a signal is derived from the high frequency source using a Down-Conversion principle so as to obtain a signal having a lower frequency than the source, and this Down-Converted signal is compared with a Reference Signal normally derived from a crystal controlled oscillator. The comparison occurs in a phase detector the output of which is a voltage proportional to the phase error of the two signals. The correction voltage is applied to the tuning port of the high frequency source oscillator to correct for frequency shifts and by the nature of the system remarkably high levels of accuracy can be achieved. Thus whilst open loop systems typically have an accuracy which will allow the generated signal to lie within a range of +/- 5 MHz in a signal approaching 2000 MHz, closed loop phase locked systems can achieve accuracies of better than 1 KHz in 2000 MHz. As would be expected, closed loop phase locked systems are complex and more expensive than the relatively more simple open loop unlocked systems. Both types of source can be configured to produce either a CW output or a Swept output. In the case of an open loop source, frequency sweeping is achieved by adjusting the frequency determining component to a start frequency and then applying an increasing (or decreasing) tuning signal (usually a varying voltage) to the tuning port of the oscillatory device. This may be achieved by generating a ramp voltage which may be derived using analogue circuits or may be derived from a digital signal using a digital to analogue converter (DAC). Where the latter approach is used a microprocessor is conventionally employed to control the generation of the ramp voltage. Whatever type of ramp signal is used (either analogue or digitally derived) the oscillator has a varying level of frequency inaccuracy due largely to the non-linearity of the tuning port of the oscillator and temperature changes. In the case of a phase-locked system, two approaches are possible. In one arrangemnt the start frequency at the beginning of each sweep is phase-locked, using a phase detector, to relate the required output frequency to a reference frequency. The source is ramped in an open loop manner, the swept range being achieved in the same way as in a normal open loop case. However the accuracy is greater in that the frequency at the start of each sweep is phase-locked. Alternatively not only the start frequency is phase-locked but a fully synthesized sweep is produced by digitally moving up (or down) in frequency by a series of steps and phase locking to each frequency step and only moving onto the next frequency step after phase locking has been achieved. Of these two arrangements, the first offers a fast sweep update time but relatively poor frequency accuracy across the swept band whilst the second offers a much higher level of frequency accuracy during each sweep, but a slower sweep update time. With either of the phase locked versions, any frequency drift due to time, temperature or output mis-match will be corrected-for, either instantly, or at least before each sweep. No such correction is possible within an open loop swept frequency generator. Because of the very considerable cost of phase locked systems, various attempts have been made to improve the accuracy of open loop systems. One approach has been to generate so-called "BIRDI markers" and provide a visual display associated with the signal generator, on which the electrically generated marker signals can be displayed. Such systems operate by producing from a crystal controlled signal, a so-called "comb" (or harmonic series) of frequencies each of which is a multiple of the frequency of the original crystal controlled signal. The generator output signal is sampled, and the sample signal is mixed with the "comb" signal. A beat or "BIRDI" is produced between components of the "comb" signal which are closest in frequency to the frequency of the output signal. Using low pass filters, the beat (or "BIRDI") signal can be separated from the higher frequency signals and can be amplified and displayed on a CRT or similar display device. Frequency correction is achieved by the user manually adjusting the master oscillator to correct for any frequency drift which will be seen as a shift of the "BIRDI" display on the screen. Whilst a system utilising such a display has the configuration of a closed loop (when the user is considered) the accuracy achievable is far less than that of a phase-locked loop system and apart from the time delay inherent in such systems, they possess other disadvantages relative to conventional open loop systems namely:- a) If the amplitude of the output signal is reduced, the beat signal is also reduced in amplitude and eventually can become lost within the electrical noise within the system. At this stage visual correction becomes very difficult. b) If a very frequency selective component is tested having a very steep response curve, the beat signal can be lost in the steep component characteristic making frequency correction again very difficult. On the other hand the generation of a beat signal from a crystal controlled source represents a simple method of generating a feedback signal and it is an object of the present invention to provide a closed loop system which is simpler and cheaper than a conventional phase-locked loop system and which derives the feedback information for frequency control from a beat signal. US A-3 427 561 (Hamer) shows a frequency synthesiser in which the output frequency of a voltage controlled amplifier is locked onto a selected one of a comb of harmonics in a reference signal. Summary of the invention. According to one aspect of the present invention there is proposed a method of setting up a signal generating device according to Claim 1. Typically the calibration procedure and the frequency shifting, null point detection, signal storage and addition is under the control of a microprocessor. According to another aspect of the present invention there is proposed a signal generating device according to Claim 3. The beat signal of interest may be selected from the large number of sum and difference signals by separation on a frequency selective basis using a low pass filter. Typically the crystal controlled oscillator is set to operate at a frequency of the order of 25MHz if the master oscillator is to operate at frequencies in the range 1MHz upwards. According to another aspect of the invention Claim 4 proposes a a method of controlling the frequency of oscillation of a master oscillator in a signal generating device. It will be seen that after the calibration procedure has been effected, the frequency of the master oscillator will be correct and thereafter remain so depending on the quality of any open loop correction incorporated into the signal generator such as to compensate for thermal drift and the like. When the master oscillator is called upon to sweep through a range of frequencies, the method according to the invention preferably includes the steps of: (1) varying the computed control signal using the corrected control signal as a starting point, the variation being in accordance with an algorithm linking the frequency of oscillation with value of the control signal, (2) when the final target frequency of the sweep has been reached, thereafter inhibiting the output of the signal generator, and (3) thereafter repeating the correction process involving the aforementioned method until a beat signal is detected once again whereafter the sweep process can again be initiated. The reference signal may be a so-called harmonic spectrum signal typically derived from a crystal controlled source. by means of a step recovery diode or the like. It will be seen that with this form of correction, the linearity of the sweep frequency will be dictated inter alia by the accuracy of the algorithm linking the oscillator frequency to the control signals therefor. If the algorithm is an imperfect description of the frequency versus control signal relationship or if the particular master oscillator is relatively non-linear and the algorithm is a theoretical description of the performance of a more linear version of such a device, then the resulting sweep will not be particularly linear. Unless sweep time does not permit, a preferred method according to the invention involves the steps of: (1) identifying a series of key frequencies throughout the range which is to be swept and starting with either the lowest or the highest, making corrections to the control signal supplied to the master oscillator until a beat signal is produced by the interaction of the master oscillator output signal and a component of the reference signal, (2) modifying the corrected control signal in accordance with the known algorithm to produce a control signal for obtaining frequencies in between the first frequency and the next target frequency, (3) when the next target frequency is approached, repeating the calibration process for the oscillator control signal before continuing to alter the frequency of the oscillator through the next range of frequencies to the next target frequency. In this way the frequency of the master oscillator is corrected at each of a series of steps throughout the range and if high accuracy is required, a correspondingly large number of steps may be employed. Typically digital signals are generated by the microprocessor and digital to analogue converters (DAC's) serve to convert the digital signals to voltages or currents which can be used to control the frequency of the master oscillator. Selection of the appropriate beat signal is most conviently achieved using a low pass filter set to transmit signals in the range d.c. to f (where f may for example lie in the range of 500KHz to 5MHz). In view of the attenuation effect of a low pass filter, signal amplifying and pulse conditioning circuit means is preferably provided after the low pass filter and before the microprocessor. Typically the high accuracy fixed frequency oscillatory source is a crystal controlled oscillator. High levels of accuracy are achievable by determining from the width of the beat signal pulse the precise mid-position of the selected beat signal pulse, which corresponds to the null frequency or DC content within the beat signal. Thus the microprocessor is preferably programed to seek out the mid-position of any beat signal pulse detected thereby and to use the determined mid-position of the pulse as the target. Where the stored information is in digital form and alteration to this information is in the form of a digital error signal which is produced by the microprocessor, both the stored information and the error signal can be converted to analogue signals to enable them to be summed more easily than would otherwise be the case. In a Sweep mode, i.e. where tie generator produces a signal whose frequency varies with time from a first frequency (f1) to a second frequency (f2) defining a Swept Band, conveniently two items of information are entered into a memory associated with the miroprocessor namely; 1. the Sweep Width (i.e. F2 - F1), and 2. the Centre of the Swept Range (i.e. ½(F2 + F1)). The process of finding the start of the Swept Range involves the steps of:- 1. from the Sweep Width and the Centre information a microprocessor is programmed to compute a control signal so that digital to analogue converter means initialised by the microprocessor produces one or more analogue signals which should theoretically cause the master oscillator to generate the start frequency 2. simultaneously an error DAC (whose output is combined with the first mentioned DAC means) is set to mid-range; 3. a correction in the error signal is then produced by the microprocessor so as to alter the output from the error DAC until a beat or difference signal is detected. 4. the total correction to the value of the error signal required to produce a beat signal pulse is stored in a buffer memory for subsequent reference. 5. an adjustment in the control signals supplied to the master oscillator is effected according to the frequency/control signal characteristic of the master oscillator, using the stored values in the buffer as a starting point, to obtain a new frequency of operation of the master oscillator corresponding to the Start frequency (f1) of the Sweep. 6. a Sweep is effected by the microprocessor producing a varying output signal which is applied to the frequency controlling element of the master oscillator so as to produce the desired sweep in the output frequency thereof from f1 to f2. At the end of each Sweep, the microprocessor reverts to a search routine to locate the beat signal to recalibrate the oscillator, so that the latter is corrected at the beginning of each Sweep. Preferably the master oscillator includes two frequency controlling elements, a first one for effecting large changes in frequency and a second for effecting smaller changes in frequency, each having an input, and the control device such as a microprocessor driven controller is adapted to produce a first control signal for the first input and a second control signal for the second input. Where an error signal is generated by the control device, this may be added to or subtracted from the value of the said second control signal. For high frequency applications the master oscillator is preferably a YIG oscillator having a main tuning coil for wide range tuning and a smaller FM coil for fine range tuning. Alternatively a Varactor tuned oscillator may be employed. Description of drawings. The invention will now be described by way of example with reference to the accompanying drawings in which:- Figure 1 illustrates diagrammatically an open loop oscillator with temperature correction, Figure 2 illustrates a closed loop oscillator or synthesizer. Figure 3 is a block circuit diagram of a crystal controlled beat signal (marker) generating circuit for frequency calibration of a master oscillator embodying the present invention, Figure 4a and Figure 4b illustrate a typical marker pulse structure, Figure 5 is a block circuit diagram of an RF source with drive circuitry and beat signal (marker) locking loop, embodying the invention, Figure 6 is a schematic diagram of an alternative system embodying the invention but without a programmed microprocessor as required in Figure 5, and Figure 7 shows a double down conversion system based on the circuit of Figure 3, by which the RF range can reach as high as 30GHz. Figure 1 does not illustrate an embodiment of the present invention but indicates how temperature correction can be applied to an oscillator. It is anticipated that correction of this nature could be included in embodiments of the present invention. Thus in Figure 1 a YIG oscillator 10 has a coarse tuning port 12 associated with the main tuning coil and a fine tuning port 14 associated with the FM coil. Signal amplifiers 16 and 18 serve to supply control signals to ports 12 and 14 respectively. Coarse frequency adjustment typically in the form of a potentiometer is not shown but the fine frequency drive input is shown as having been derived from an amplifier 20 the input of which includes a temperature correction resistor or thermistor 22. By positioning the latter to sense changes in temperature of oscillator 10, so a compensating error signal can be fed back via amplifiers 20 and 18 to the input 14 to correct for temperature drift. The output frequency on line 24 will thus be better stabilised than without the temperature correction. Figure 2 illustrates a more complex, closed loop phase locked oscillator. Similar reference numerals have been used to denote parts in common with Figure 1. The primary difference between the two circuits is that a closed loop is formed between the output 24 and the fine frequency drive amplifier 18 input at 26. The loop is closed by means of a programmable divider 28 feeding a low frequency signal to a phase detector 30 to which a reference signal is supplied at 32 typically from a crystal controlled oscillator. Any minute change in frequency between the sub-multiple of the output frequency on line 24 and the crystal controlled frequency on input 32 will be seen as a phase difference, and an error signal generated by the phase detector is supplied to the fine tuning port 14 via amplifier 18. Very high levels of accuracy can be attained using this type of circuit. The complexities and cost however of such circuits particularly at very high frequencies means that there is a place for an alternative approach in accordance with the present invention. Figure 3 is a block circuit diagram of an embodiment of the present invention. As before common parts have been identified by reference numerals already used in Figures 1 and 2. The invention is primarily directed to very high frequency signal generators (although it is not limited to such applications) and in particular to signal generators for generating signals in the range 1 MHz to 2000 MHz. In accordance with the invention digital signals from a microprocessor (not shown) are supplied via DAC 34 to amplfier 16 and via DAC 36 to the input of amplifiers 18. DAC 38 supplies an error signal combination with the output DAC 36. The sampled signal from line 24 is applied as one input to a mixer or sampler 40 the other input of which comprises a signal derived from a crystal controlled oscillator 42, operating typically at 25 MHz, the output of which is amplified in a power amplifier 44 and is then applied via a step recovery diode 46 to produce a so-called "comb" signal or harmonic spectrum signal, in which the lowest frequency is 25 MHz and the highest is dictated inter alia by the bandwidth of the circuitry. The conversion of the 25 MHz fixed frequency signal into the harmonic spectrum signal ensures a large number of so-called "BIRDI" markers are generated, with which the sample signal can be compared. The comparison is effected by a mixing technique which results in sum and difference signals in the output of the mixer device 40. A low pass filter 48 eleminates all but the most useful beat signal pulses and to this end is a low pass filter having a 1 MHz cut-off. The attenuated output is amplified by amplifier 50 and supplied via pulse conditioning circuit 52 to a microprocessor. Reference to Figures 4a and 4b will better indicate the nature of the pulses in the output of conditioner 52. At Figure 4a can be seen the output pulses from the low pass filter, to a small scale, which is generated whenever the oscillator frequency passes through a harmonic component of the 25 MHz reference signal each such pulse is itself made up of a number of pulses (see Figure 4b) the repetition frequency of which varies from a relatively high level near the edges of the pulse to a d.c. level (in theory) in the middle of the pulse. Edge regions are denoted by reference numerals 54 and 56 in Figures 4a and 4b and the central d.c. zone is denoted by reference numeral 58. Since the pulses such as 60 as shown in Figure 4a, are relatively narrow, to a first approximation the leading edge (or the trailing edge) of each said pulse can be detected and used to denote the arrival of a beat signal. According to a preferred aspect of the invention, apparatus is provided for determining the mid-point of each such pulse 60 so that the true DC or null frequency zone is used to determine the actual presence of the pulse. Figure 5 illustrates a development of the system shown in Figure 3 and includes in a general sense a microprocessor control system not previously shown. Where components are commmon to the preceding Figures, the same reference numerals have been employed. Thus a YIG oscillator 10 provides an RF output along line 24 and the content of the elements 40, 42, 44, 46, 48, 50 and 52 are for convenience shown as a single element in Figure 5 identified by reference numeral 62. One output from this element comprises the RF output socket 64 and the other output comprises the so-called marker output at which electrical pulses comprising the beat signal pulses or markers are produced by the interaction of the output from the YIG oscillator and the harmonics derived from the output from the local crystal controlled oscillator 42 of Figure 3. The individual pulses are referred to as markers and in the insert within Figure 5 is shown a plurality of such marker pulses 66 and an enlarged view of the first one. It will be seen fromm the enlargement that this is made up of a plurality of individual pulses of varying amplitude and frequency including a central region having essentially zero frequency, ie DC, denoted by reference numeral 68. By virtue of the manner in which the pulses such as 66 are generated, the presence of the DC level within the pulse 66 indicates a particular relationship between the output of the YIG oscillator and the output of the crystal controlled oscillator 42 and is also indicative of the values of the control signals which are for the time being supplied to the YIG oscillator. The determination of the existence of a null frequency zone or DC level within the pulses such as 66 is most simply achieved using a microprocessor controlled pulse analysing circuit generally designated 70 and a marker pulse interface unit 72 (part of which is incorporated in the pulse conditioning circuit 52 of Figure 3), is required between the output from the mixer and low pulse filter of the circuitry contained within item 62 and the input to the microprocessor control system 70. The latter determines the width of the first marker pulse 66 and the half-way point which corresponds to the point at which there is a one to one relationship between the YIG oscillator frequency and the frequency of the crystal controlled oscillator 42 of Figure 3. The microprocessor control system includes a keyboard or other data input device such as 74 and the latter may be dedicated to the instrument so as to include dedicated controls such as Start/Stop and Centre/Width keys. The signal generator of Figure 5 is normally used in a Sweep mode of operation and in relation to much of the further description of the operation of the circuit, it will be assumed that this is the mode of operation which has been selected. Initial presetting of the Sweep Width (scaling) and Centre is determined by the required Start and Stop frequencies that the source is to sweep over. The YIG oscillator 10 has thus to be driven between a Start and Stop frequency by controlling the electric signals supplied to two different frequency controlling elements within the oscillator as described in relation to Figure 3. However, in order to give a greater control over the setting up of the sweep, three Digital to Analogue converters are provided in place of the two described with reference to Figure 3. Thus a first DAC 76 determines the Centre of the sweep, a second DAC produces a ramp voltage which must be supplied to one or other of the drive amplifiers 16 and 18 via a scaling DAC 80 and a third DAC 82 provides error signal conversion as an input to the second driver amplifier 18 for correcting for drift and controlling the tuning of the source. A selector switch 84 enables the output from the scaling DAC 80 to be supplied as an input to either amplifier 16 or amplifier 18. A common source 86 provides the reference signals for the three DACs 76, 78 and 82 and the Data BUS from the microprocessor driven control system 70 is supplied as a main data input to each of the DACs. The data highway 88 supplies information relating to the tuning of the YIG oscillator 10 and also the Sweep parameters such as Start and Stop frequencies, and the Sweep Width information for DAC 80, Sweep DAC 78 and Centre DAC 76. During each sweep, the sweep DAC is the only converter that needs to be altered dynamically. Information supplied via data highway 88 and 92 causes 78 to produce a fixed ramp signal the actual shape and amplitude of which is determined by parameters within the microprocessor. The actual amplitude of the ramp signal is then scaled by the converter 80 again using information from the microprocessor 70 to cover the appropriate sweep width dictated by information supplied via the data input keyboard 74. The function of the Error DAC is to "nudge" the frequency produced by the YIG oscillator 10 by up to +/- 25 MHz under the control of the microprocessor. This is used to shift the frequency of the signal produced by the YIG oscillator 10 until it becomes a whole number multiple of one of the harmonic components of the comb signal from circuit element 46. The response of the Error DAC must be calibrated, stable and fast so that the frequency of the YIG oscillator can be rapidly altered with precision anywhere within the range of the 50 MHz governed by the nudge facility. In this way, as long as a beat signal can be located at some point within the 50 MHz band, the YIG oscillator can be calibrated to a frequency within +/- 25 MHz of the desired final frequency thereby enabling the YIG oscillator to be shifted subsequently to the desired frequency by the application of an additional "error" signal, via DAC 82, to the frequency controlling signals already supplied to the oscillator during calibration. The nudging action of the microprocessor and Error DAC 82 thus serves two purposes:- During calibration of the YIG oscillator at the beginning of each sweep, the nudge facility enables the YIG oscillator frequency to be shifted quickly and accurately throughout a 50 MHz band in order to find at least one (and preferably two) beat signals (normally referred to as markers), and after calibration, the same two components (ie microprocessor 70 and Error DAC 82) serve to generate the DC shift signal required to shift the frequency of the YIG oscillator to the desired frequency called for by the input information fed to the microprocessor. The process of locating a beat signal or marker pulse such as 66 involves the following: 1. From the selection of a frequency span, the Centre, Sweep Width and Sweep DACs are all initialised and the Error DAC 82 is adjusted to mid-range under the control of the microprocessor 70. 2. As the sweep is about to commence, a search routine is instigated by the microprocessor in which the Error DAC 82 is adjusted first in one direction (typically down) until a marker pulse 66 is detected by the marker interface 72. Typically this is set to look for a change in amplitude with a transition from high frequency content through to DC and back to high frequency content in the amplitude excursion concerned. The position of the null point or DC level within the detected pulse 66 is noted and the value of the error signal or nudge required to produce that particular beat signal is stored in the microprocessor memory. 3. Having established the signal required on the FM coil of the YIG oscillator to produce the marker pulse, the oscillator has effectively been calibrated. It is now a simple matter for the microprocessor to compute the additional signal to be added to (or subtracted from) the signal known to produce the same frequency as the identified comb signal component, in order to achieve the desired frequency. Where it happens that the desired frequency is that of the marker (comb signal component), no addition orsubtraction is required. In the more general case where the desired Start frequency is not equal to one of the comb components, an algorithm or a look-up table is employed to determine the signal correction required to acheive the desired frequency from the calibration frequency. The algorithm or look-up table may be stored in the microprocessor memory (or in a ROM or entered into the machine memory via a keyboard), and describes the frequency response of the YIG oscillator 10 for different signals supplied to the main and subsidiary frequency determining coils. Where very high accuracy is required, the microprocessor search routine includes steps necessary to identify the high frequency edge regions of the identified marker pulse 66 identified in Figure 5 by 94 and 96, and the microprocessor is further programmed to interpolate between these two edges of the marker pulse so as to find the mid position between the two edges 94 and 96. Since the pulse 66 is produced as the YIG oscillator frequency moves from above to below one of the comb frequencies (or in the reverse direction) the mid point 68 corresponds to when the frequency of the YIG oscillator 10 is precisely equal to the comb frequency with which it is being mixed. By incorporating this additional computation process in the microprocessor search programme, so a unique and precise signal paramter can be dictated by the processor 70 for the output from the Error DAC 82 so as to produce from the YIG oscillator 10 a signal having exactly the same frequency as that of the comb component derived from the crystal controlled oscillator 42. Currently open loop signal generators attain frequency accuracies of the order of +/- 5MHz. Apparatus embodying the invention has achieved accuracies of +/- 100 KHz in 2000 MHz. If the YIG oscillator 10 has good linearity and predictable frequency response for changes in control signals from 16 and 18, a very precise sweep can be obtained using such a system as shown in Figure 5. If CW operation is required, the Sweep Width is set to zero and the frequency of operation of the YIG oscillator 10 is determined by the Centre DAC 76. By setting the Error DAC 82 to mid range and then instigating the microprocessor search routine, the YIG oscillator 10 is calibrated by finding the nearest marker pulse such as 66 (and the mid position of that if that level of accuracy is required) and then computing the necessary error signal or nudge signal, required to shift the actual frequency of the YIG oscillator 10 to the desired frequency which the source 10 is to produce. Drift particularly due to thermal considerations during CW operation may be controlled by a thermal compensation circuit such as described in relation to Figure 1. If the CW operation can be interrupted at regular intervals, the microprocessor 70 is conveniently programmed to do this and perform a further search and calibration routine during each dead interval before switching the RF back on again. To reduce transients and switching problems, the YIG oscillator 10 is preferably not turned on and off but the RF circuitry 62 includes a suitable attenuator for attenuating the output signal during the initial calibrating and subsequent calibrating intervals. Such an attenuator is also preferably incorporated into a Sweep Mode of operation so as to attenuate the RF signal during the calibration at the beginning of each sweep. Figure 6 shows a hardware implementation not incorporating a microprocessor but which is limited to the accuracy associated with merely detecting the presence of a marker pulse such as 66. Here the marker interface comprises a pulse presence detector 114 which by any convenient means detects either the leading or trailing edge of a pulse such as shown at 66. Frequencies corresponding to the required sweep are entered via front panel 98 and a FREQUENCY INSTRUCTION circuit 100 calculates the appropriate drive signals to set up the sweep - digital data for the driving DAC's 76 etc, or analog voltages for the drive amplifiers 16, 18. It also generates a voltage corresponding to the distance the required START frequency is away from a calibration point. This is referred to as the NUDGE SIGNAL and can be switched in or out with the switch 81. Thus if the required START is 57 MHz and a calibration point is available at 50 MHz then a signal corresponding to +7 MHz is generated. If 42 MHz is the required START point, then a signal corresponding to -8 MHz must be generated. A NULL signal (0 volts) is generated for a start frequency equalling a calibration point. This will apply where the start frequency is a multiple of 25 MHz. The FREQUENCY INSTRUCTION circuit 100 thus sets up the drive circuits such that the START frequency is a multiple of the calibration points, and after calibration, the required START frequency is achieved by switching in the NUDGE SIGNAL and adding it to the signals set up by 100. A SWEEP RAMP GENERATOR 102 provides a fixed ramp which drives the oscillator 10 via the drive electronics 78, 80 over the requested range. This generator starts the ramp in response to a signal on the TRIGGER input. When the ramp has finished 102 indicates this by providing a signal at the SWEEP END output 104. A further section of hardware, LOCK CONTROL 108, provides a secondary ramp covering a small frequency range sufficient to cover the maximum errors expected. When requested by a signal at the START LOCK RAMP input 110, a ramp is started from its minimum point, and stopped when demanded by the STOP LOCK RAMP input 112. The RF output is supplied to the MARKER PRESENCE DETECTOR 114 (already referred to) whose output is latched by a latch circuit 116. LOCK CONTROL 108 operates so that in the presence of a marker pulse 66 (corresponding to a calibration point) a STOP LOCK RAMP signal is generated for input 112 and the ramp value from 108 is held in a SAMPLE & HOLD circuit 118. The sequence of events during a typical sweep under the control of the signals from the timing circuit 120 is as follows: (a) The frequency parameters are entered via controls on the front panel 98. The frequency instruction circuit 100 frequency to the desired stop frequency. It will be appreciated that the nudge signal must be removed whilst the YIG oscillator 10 is being calibrated at the begining and ending of each sweep. It is for this reason that switch S1 is provided. If higher accuracy is required, the detector 114 can be a more complex device to interpolate from the width of the pulse 66 and generate information corresponding to the null point 68 of the detected marker pulse as described with reference to Figure 5. Figure 7 represents a double down conversion system based on Figure 3 but which will allow the software locking to reach 30 GHz and beyond by suitable choice of the two drive frequencies. The design and operation of the system follows similar lines to Figure 3, and similar reference numerals are employed where appropriate. A sample of the RF output frequency is routed to a first down conversion stage comprising a sampler or mixer 126. To this sampler is applied a drive comb derived from a high frequency reference source 128 (eg a 500 MHz SAW oscillator), power amplifier 130 and a step recovery diode 132. The low frequency down conversion signal is then amplified and filtered by 134, 136 to provide a wideband drive signal to a second down conversion stage comprising a sampler or mixer 138 (corresponding to the sampler or mixer 40 of Figure 3). This mixer 138 is driven with a drive signal having much lower frequency than that for the sampler or mixer 126. Conveniently the drive reference signal for 138 is obtained from a divided down signal from the first reference signal (ie the 500 MHz SAW source), by use of a divider 140. The remainder of the circuit functions in general as described with reference to Figure 3. To allow for the greater non linearity and pointing inaccuracy that will occur at such high frequencies in the initial tuning of the output frequency, both the low frequency and the high frequency pulses are processed. To this end a second processing line 48', 50' & 52' is provided for the output of 136. In use the YIG oscillator 10 is tuned approximately and the nearest relevent 500 MHz marker is searched for. Once found this can be referenced to the related 25 MHz marker on the low frequency marker output. From then on, for that output frequency range, only reference to the 25 MHz markers is needed. Only if the output frequency is to be shifted by a large amount (eg greater than say 3 GHz) would reference back to the 500 MHz marker output be needed. There now follows a listing and general description of a programme which may be used in conjunction with a suitable microprocessor to perform the various frequency establishing steps and calibration steps of the apparatus herein described. Marker Locking Source Code The one entry point is the procedure LOCK_START. This assumes that the sweeper has been set up to approximately the correct frequency and that only calibration to a 25.MHz marker is now required. It is assumed that the nearest marker will be the correct one for locking to. This implies that the maximum error in placing the frequency is less than 12.5 MHz. Call lock start when the calling procedure is ready to start a sweep, the values for the NUDGE after lock must already have been calculated (in another module) from the required start frequency. In essence this is a simple algorithm to find the remainder after multiple subtraction of 25 MHz :- REMAINDER = START- ([START / 25 MHz ] * 25 MHz) IF REMAINDER > 12.5 MHz then REMAINDER = REMAINDER - 25 MHz Where START is the required start frequency, "/" denotes integer division. REMAINDER is then scaled according to hardware to provide the value ERROR_ DAC_NUJ which is the value to be summed in to achieve the required start frequency after locking. The structure of the module is as follows:- LOCK START Procedure This is the main procedure, returning when calibration has been achieved, and the nudge has been added to achieve the required start frequency. This calls two main routines SEARCH_UP and SEARCH_DOWN. SEARCH UP, SEARCH DOWN Procedures These perform complete searches up and down (in frequency) looking for markers and locating their center points. The values corresponding to these points are stored in stores E1 and E2. These routines use primitive routines NUD,NDD. NUD,NDD Procedure These routines are N udge U p and D etect and N udge D own and D etect. These set up the error_dac as requested and wait to search for a marker at the frequency generated. They include some intelligence to ensure that the reported status of marker present/not present takes into account the possible hole in the center of the marker. These routines use WAIT_FOR_MARKER. WAIT FOR MARKER Procedure This is a primitive routine which simply takes into account hardware delays after setting up the error_dac, and then tests for the presence of a marker at that one frequency point. TEST TO 12M5 This routine simply returns a flag indicating if the found lock point is valid due to distance away from the uncalibrated point

Claims: A method of setting up a signal generating device to enable it to deliver an output frequency which may lie anywhere in a range extending up to hundreds and thousands of MHz, and which includes coarse and fine frequency controlling elements (12,14) fed with coarse and fine frequency controlling signals, wherein the fine frequency control is capable of producing linear changes in output frequency for corresponding changes in the value of an electrical signal supplied thereto, but only over a small range of N + MHz; characterised in that: the output of the device is combined with a multicomponent reference signal containing at least a known component having a frequency of L MHz, which is within N MHz of any desired frequency F MHz, the values of the coarse and fine frequency controlling signals supplied to the device are adjusted to yield an output signal having a frequency also within N MHz of the desired frequency F MHz, the parameter of the electrical signal controlling the fine frequency controlling element (36) is then adjusted until a beat signal is detected, at which point the device can be calibrated since the beat signal indicates a one to one relationship of the output signal and the known reference signal component L MHz and the values of the fine frequency controlling signals at which beat signals are detected are stored for calibration purposes, whereby using an algorithm or look-up table the value of a correction signal required by the fine frequency controlling element to shift the frequency of the device by (F-L) MHz can be determined and an output signal of F MHz can be obtained by using the stored calibration values of the control signals for L MHz and by adding the correction signal to the stored fine frequency signal and using the combined signal as the fine frequency controlling signal for the device. A method according to claim 1, wherein the calibration procedure and the frequency shifting, beat signal detection, signal storage and addition is under the control of a microprocessor. A signal generating device whose output frequency is to be set at a frequency F, including a master oscillator (10) having an output at which a radio frequency signal appears when the oscillator is operating and having associated therewith a large bandwidth frequency controlling element and a small bandwidth frequency controlling element by which linear changes in the output frequency over the small band of frequencies can be obtained by making corresponding changes in a parameter of an electrical signal supplied thereto, characterised by:- (1) a control system adapted to generate, from information entered therein, electrical signals for controlling the frequency of the master oscillator, (2) means for deriving a sample signal from the output of the master oscillator, (3) a stable fixed frequency oscillatory signal source (42) for producing a reference signal F(ref), (4) circuit means (44,46) for producing from the reference signal F(ref) a harmonic spectrum or "comb" of signals F(ref); 2F(ref); 3F(ref) ...n.F(ref), + referred to as a harmonic spectrum signal, at least one component of which is within the said small band of frequencies from F, (5) mixing or sampling circuit means (40) for combining the sampled signal with the harmonic spectrum signal to produce beat signals, i.e. signals having frequencies which are inter alia the arithmetic difference between the frequency of the sample signal and the component in the said harmonic spectrum signal, and (6) beat signal detector circuit means (48, 50, 52) responsive to the output of the mixing circuit means and adapted to identify when a beat signal pulse is occurring; and by the provision of the following elements for the purpose of frequency calibration: a programmed control system to alter the frequency controlling signals supplied to the master oscillator tuning controls until a beat signal is produced caused by the interaction of the master oscillator output signal and a component N.F(ref) of the harmonic spectrum signal; means for detecting a beat signal at which point the values of the frequency controlling signals supplied to the master oscillator are known to be producing a frequency of N.F(ref); and means storing an algorithm or look-up table which describes the frequency response of the master oscillator to control signals supplied to the frequency controlling elements thereof, wherein said programmed control means includes means for computing new values for the control signals supplied to the small band width frequency controlling element using the algorithm or look-up table and the values of the frequency controlling signals which produce the detected beat frequency with the N.F(ref) signal, the said new values causing the master oscillator to shift in frequency from N.F(ref) to the desired frequency F. A method of controlling the frequency of oscillation of a master oscillator in a signal generating device in which a linear frequency controlling element (36) responsive to a control signal has a restricted frequency sweep capability, characterised by the steps of:- (1) generating frequency control signals which will produce a signal in the output of the master oscillator which if not equal to F is close thereto, and applying same to the oscillator, (2) combining a sample of the master oscillator output signal with a reference signal having a component which is sufficiently close to the desired frequency F as to be within the said restricted frequency sweep from the frequency of oscillation F, of the master oscillator; (3) adjusting the value of the signal supplied to the linear frequency control until a beat signal is detected between the master oscillator output signal and the reference signal component, and (4) adjusting the value of the control signal for the linear frequency controlling element from the value corresponding to the value at which the beat signal is detected to a new value computed using an algorithm or look-up table relating the frequency response of the master oscillator to the values of the frequency control signals therefor, so as to shift the master oscillator ouput to the desired frequency F. A method according to claim 4, wherein, when the master oscillator is called upon to sweep through a range of frequencies, the method is charactersied by the steps of: (1) varying the computed control signal using the corrected control signal as a starting point, the variation being in accordance with an algorithm linking the frequency of oscillation with value of the control signal, (2) when the final target frequency of the sweep has been reached, thereafter inhibiting the output of the signal generator, and (3) thereafter repeating the correction process involving the aforementioned method until a beat signal is detected once again whereafter the seep process can again be initiated. A method according to claim 5, characterised in that the reference signal is an harmonic spectrum signal, and characterised by (1) identifying a series of key frequencies throughout the range which is to be swept and starting with either the lowest or the highest, making corrections to the control signal supplied to the master oscillator until a beat signal is produced by the interaction of the master oscillator output signal and a component of the reference signal, (2) modifying the corrected control signal in accordance with the known algorthim to produce a control signal for obtaining frequencies in between the first frequency and the next target frequency, (3) when the next target frequency is approached, repeating the calibration process for the oscillator control signal before continuing to alter the frequency of the oscillator through the next range of frequencies to the next target frequency. A signal generating device or method of operation thereof according to any preceding claim characterised by a microprocessor adapted to control the signal generating device or to perform the method, and wherein digital signals are generated by the microprocessor and digital to analogue converters (DAC's) (34, 36, 38) serve to convert the digital signals to voltages or currents which can be used to control the frequency of the master oscillator. A signal generating device or method according to any preceding claim, characterised in that selection of the beat signal is achieved by means of a low pass filter (48) set to transmit signals in the range d.c. to f, where f typically lies in the range 500 kHz to 5 MHz, and in that signal amplifying means (50) and pulse conditioning circuit means (52) is provided after the low pass filter and before the microprocessor. A signal generating device or method according to any preceding claim, characterised by a microprocessor adapted to control the signal generating device or to perform the method and also to determine from the width of the beat signal pulse the precise mid-position of the selected beat signal pulse, which corresponds to the null frequency or DC content of the beat signal, the microprocessor being programmed to seek out the mid-position of any beat signal pulse detected thereby and to use the determined mid-position of the pulse to target the frequency controlling signal value corresponding thereto. A signal generating device or method having microprocessor control according to any preceding claim, characterised in that, for operation in the sweep mode, i.e. where the generating device produces a signal whose frequency varies with time from a first frequency (f1) to a second frequency (f2) defining a swept band, two items of information are entered into a memory associated with the microprocessor namely: (a) the sweep width (i.e. F2 - F1), and (b) the centre of the swept range, i.e. 1/2(F2 + F1), and in that the start of the swept range is found by the following steps:- (1) from the sweep width and the centre range information a microprocessor is programmed to compute a control signal so that digital to analogue converter means, DAC, initialised by the microprocessor produces one or more analogue signals which should theoretically cause the master oscillator to generate the start frequency, (2) simultaneously an error DAC, whose output is combined with the first mentioned DAC means, is set to mid-range, (3) a correction in the error signal is then produced by the microprocessor so as to alter the output from the error DAC until a beat or difference signal is detected, (4) the total correction to the value of the error signal required to produce a beat signal pulse is stored in a buffer memory for subsequent reference, (5) an adjustment in the control signals supplied to the master oscillator is effected according to the frequency/control signal characteristic of the master oscillator, using the stored values in the buffer as a starting point, to obtain a new frequency of operation of the master oscillator corresponding to the start frequency (f1) of the sweep, (6) a sweep is effected by the microprocessor producing a varying output signal which is applied to the frequency controlling element of the master oscillator so as to produce the desired sweep in the output frequency thereof from f1 to f2.

Inventors: HURST, GEOFFREY JOHN, TURL, CHRISTOPHER BRIAN D.
Applicants: WILTRON MEASUREMENTS LIMITED
Application year: 1986
Main classification: H03L7
IPC codes: H03L7