Technical Field
The present invention concerns improvements in or relating to phase comparator lock detect circuits and synthesisers using the same. More particularly, it relates to an in-phase-lock detect circuit suitable for use in a digital phase-lock-loop synthesiser of the kind which comprises a phase comparator responsive to a reference frequency and to a frequency derived via a variable divider from a variable frequency oscillator (VFO) for providing frequency `up` and frequency `down` error signals and a loop amplifier responsive to these error signals and by which means a control signal is fed to the VFO, to control the frequency thereof.
The invention has application to frequency synthesis circuit design in general, and to UHF/VHF heterodyne tuning circuits in particular.
Background Art
In television receivers, and the like, it is common practice to employ a digital phase-lock-loop (PLL) frequency synthesiser as part of the front-end tuning circuit. It is a problem, in these receivers, that tuning can be relatively coarse, especially where the implementation is of a low-cost simple construction.
Also due to component drift with ageing the comparison reference frequency may drift or become noisy so causing errors in the synthesised local oscillator frequency.
A further problem arises with these systems when they are used to demodulate r.f. signals from a low quality source, where the actual frequency may be time dependant.
A known improvement upon the aforesaid incorporates a combination of digital and analogue control circuits, employed in tandem. In this arrangement the local oscillator frequency is controlled by a digital P.L.L. until it comes within capture range of the analogue circuit. Subsequently, the variable frequency oscillator is controlled by the latter circuit. A lock detect circuit has been used thus to monitor the performance of the digital PLL and to transfer control to the analogue circuit once `in-lock` has been attained.
Hitherto, such lock-detect circuits have not been without shortcomings. In particular, such lock detect circuits used in phase comparators can be inherently poor indicators of lock being achieved since in general they:
(i) do not accurately define the lock window;
(ii) in variable reference frequency (f ref) systems the actual lock varies with f ref;
(iii) they are prone to producing spurious `in-lock` signals when the system is in fact out of lock unless external circuitry (hence extra device pins) is used to correct this fault;
(iv) Analogue lock detect circuits are inherently complex in their operation and also require external components, and,
(v) in some digital systems the lock window is highly process dependant.
Disclosure of the Invention
The present invention is intended to obviate the above shortcomings. It shall prove advantageous in that
(i) it has an accurately defined lock window;
(ii) the lock window can be designed to be independant of f ref;
(iii) under normal operating conditions, it can be designed so as not to produce spurious `in lock` signals;
(iv) it will not require any external circuitry; and
(v) the lock window is process independant.
It is observed that in the digital phase-lock-loop synthesiser of the kind aforesaid, when phase-lock condition is obtained, frequency `down` signals, only, are produced to compensate for leakage current in the loop amplifier and these will be of known magnitude to compensate for leakage current in the loop amplifier. As discussed herein, the frequency `up` and the frequency `down` signals are thus monitored by a logic circuit to detect this particular condition and to provide an `in lock` indication signal.
In accordance with the present invention there is thus provided a phase comparator lock detect circuit, for use in a digital synthesiser of the kind aforesaid, this circuit including logic gates responsive to the frequency `up` and frequency `down` signals during a predetermined period derived in dependance upon signal fed to the phase comparator from the variable divider, the gates being arranged for generating an `in-lock` indication signal when frequency `up` or frequency `down` signals exclusively are detected for this predetermined period.
Brief Introduction of the Drawings
In the drawings accompanying this specification:
FIG. 1 is a block circuit diagram of a digital phase lock loop frequency synthesiser of known configuration;
FIG. 2 is a circuit diagram of an active loop filter utilised in the synthesiser above, also of known configuration;
FIG. 3 is a circuit diagram of a phase comparator lock detect circuit, an embodiment of the present invention; and,
FIGS. 4 (a) to (e) are pulse waveforms of signals utilised and/or derived in the circuits shown above.
Description of Preferred Embodiments
So that the present invention may be better understood, embodiments thereof will now be described, with reference to the accompanying drawings. The description that follows is given by way of example only.
A conventional, single loop, digital phase lock loop synthesiser is shown in FIG. 1. The loop consists of a variable frequency oscillator (VFO) 1, a programmable variable-ratio divider 3, a phase comparator 5 and a loop filter 7. The ratio N of the divider 3 is preset by means of a tuning selection control unit 9. The VFO output signal, at frequency f.sub.out, is divided down and the signal output from the divider 3, at reduced frequency, f.sub.N, is compared with a signal of stable reference frequency, f.sub.ref. This latter is derived from a crystal controlled oscillator 11, a fixed ratio divider 13 and a buffer amplifier 15. Error voltage signal V.sub.E derived from the phase comparator 5, maintains the VFO on frequency.
The active loop filter 7 of the synthesiser is shown in detail in FIG. 2. It comprises a pair of current sources, frequency-down and frequency-up current sources, 21 and 23, respectively, connected to the input of a loop amplifier 25. The output of this amplifier 25 is derived across a load impedance 27 (R.sub.L) and is fed back to the amplifier input via a filter 20 characterised by its transfer function (H(s)). The output signal V.sub.E of the amplifier 25, is used as error signal for controlling the variable frequency oscillator 1. The latter may be of the voltage controlled kind (VCO), the varactor of which is controlled by the error voltage V.sub.E. The current sources 23 and 21, as shown, are controlled by frequency-up and frequency-down signals, C.sub.U and C.sub.D, respectively, each provided at corresponding outputs of the phase comparator 5.
When phase-lock is attained, the phase comparator 5 will normally be outputting pulses C.sub.D from the frequency-down output to correct for leakage current i.sub.B in the following loop amplifier 25. The attainment of lock is therefore indicated when frequency-down pulses exclusively are present.
However this condition also exists over a large number of cycles when the varactor tunes from a high to low voltage, therefore the duration of each frequency down pulse must be compared with a lock window time period and should any of the coupled pulses be of longer duration than this lock window period then the loop is deemed to be out of lock.
The subject lock detect circuit (FIG. 3) relies on digital processing of the frequency-up and frequency-down output signals C.sub.U, C.sub.D from the phase comparator 5, combined with the phase comparator input signals f.sub.N.
The pulse comparator input and output signals, at lock are shown in FIGS. 4(a) to (e). The waveforms as shown are those for:
(a) the divided down signal f.sub.N ;
(b) a derived signal f.sub.N, corresponding to signal f.sub.N delayed a period .tau..sub.D ;
(c) the divided down reference signal f.sub.ref ;
(d) the frequency-down pulsed signal C.sub.D where .tau..sub.E is related to i.sub.B ; and,
(e) the frequency-up pulsed signal C.sub.U.
As can be seen, over the two reference cycles shown, two frequency-down pulses, each of width .tau..sub.E occur during this period, whilst the frequency-up pulse signal C.sub.U is quiescent.
The divided down signal f.sub.N is passed through a delay unit 31 (FIG. 3) providing the derived signal f.sub.N. After inversion 33, the derived signal f.sub.N is presented to an AND-gate 35 together with the frequency-down signal C.sub.D. This provides an error signal f.sub.E =f'.sub.N . C.sub.D for subsequent correlation.
Now if .tau..sub.D =.tau..sub.E and, over two f.sub.ref cycles,
then the loop can be seen empirically to be `in-lock`.
Now if .tau..sub.D =.tau..sub.E and, over (K+1)f.sub.ref cycles,
then the loop can be deduced to be `in-lock`, and, the lock window defined, has the value .tau..sub.E.
A positive window lock-detect circuit for performing comparison and correlation of the derived error signal f.sub.E and the frequency-up signal C.sub.U, and for generating an `in-lock` indication signal S, is shown in FIG. 3. This circuit comprises a cascade of (K+1) series connected D-type, flip-flops 37, three of which are depicted in the figure. These flip-flops 37 perform correlation over (K+1)f.sub.ref cycles, and are all clocked synchronously by means of a common line clock input which receives the frequency-down output signals C.sub.D provided by the phase comparator 5. A common error signal f'.sub.E is applied to the reset ports R of each of the flip-flops 37 and a logic "1" level signal applied to the input port D of the first of the flip-flops 37. This error signal f'.sub.E is derived from the frequency-up signal C.sub.U and the logic derives error signal f.sub.E =f'.sub.N.C.sub.D by means of an OR-gate 39:
The output signal from the output port Q of each flip-flop 37 is referred to a common AND-gate 41 so to derive an `in-lock` indication signal S at the output of this gate 41.
It will be apparent to those of skill in this art that other arrangements of logic components may be utilised to derive the logic functions described above. It is not intended, therefore, that the invention as defined herein be construed to cover only that circuit given here by way of example only.
For any practical system the worst case maximum i.sub.B and hence .tau.E can be calculated. Therefore if the loop is critically- or over-damped and the delay .tau..sub.D is chosen to be integer related to .tau..sub.E i.e. .tau..sub.D =K.tau..sub.E and sampling is over (K+1)f.sub.ref cycles then it can be seen that the lock detect circuit will only indicate `in-lock` when steady state condition is reached. Consider thus a circuit using five flip-flops 37 (K=4) and a delay .tau..sub.d digitally defined as 4.tau..sub.E. The error window thus provided is then .tau..sub.E.
However in many applications the loop may be under-damped. In this situation the inserted delay can be modified to give an error window of n.tau..sub.E where n is an integer with coupling over K/.eta.+1 f.sub.ref cycles. The output S of FIG. 3 is then used to set a latched lock window indicator, the latch 43 being reset by a controller when a new frequency is required or loss of signal is sensed. Consider thus the same circuit using five flip-flops 37 (K/.eta.=4) but with the delay .tau..sub.D now digitally defined as 8.tau..sub.E. The error window now provided is 2.tau..sub.E (K=8,n=2).
The circuit described (FIG. 3) could also be modified to set the in-lock latch by comparing the C.sub.U pulses with a predetermined lock window period over a predetermined number of cycles in a similar manner to that in which the C.sub.D pulses are processed - i.e. to define instead a negative lock window. Thus in FIG. 3 the signals C.sub.D, C.sub.U would instead be applied to inputs labelled C.sub.U, C.sub.D.
The positive and negative window circuits thus can then be combined in tandem--e.g. with OR-gate at their output.