Time measurement system

Abstract: A time measurement system for measuring time accurately with an inaccurate clock, in which two clock oscillators are compared and the momentary error of the slower clock oscillator is measured. When the error change rate of the slower clock oscillator is slow enough the fast clock oscillator can be switched off for longer time intervals. With the help of this apparatus and method of operation power can be saved in portable equipment which requires accurate time measurement.

Description: This invention relates to a time measurement system and in particular to an apparatus for and a method of producing pulses utilising both a relatively high frequency clock signal and a relatively low frequency clock signal. In radio telephone systems, for example in the CD500 GSM (Group Speciale Mobile) terminal (i.e. radio telephone), the required clock accuracy is 0.1 - 0.5 ppm (parts per million). A typical prior art radio telephone system which has such a clock accuracy is described with reference to the accompanying Figure 1. Figure 1 describes a prior art solution for accurate time measurement. The solution involves a fast clock oscillator 1 and a counter 2. The fast clock oscillator 1 is in use continuously and the oscillator pulses are measured by the counter 2. To reach the required accuracy it is required to have an Automatic Frequency Control (AFC) function based on the reference of the signal transmitted by the system (i.e. transmitted by the base station) (cf. e.g. EP-A-0 354 986). Both the clock oscillator 1 and the counter 2 consume a considerable amount of current at high frequencies. At least some of the foregoing problems and drawbacks are addressed by the following invention a first aspect of which provides an apparatus for producing pulses comprising a first clock oscillator for outputting a relatively high frequency signal f 1 and a second clock oscillator for outputting a relatively low frequency signal f 2 , an error calibrating means for measuring a deviation of the relatively low frequency signal from a predetermined frequency, and control means for selectively coupling the relatively high frequency signal and the relatively low frequency signal to a counter means for outputting said pulses, wherein the control means couples the relatively high frequency signal to the counter means for a time period dependant upon the deviation of the relatively low frequency signal from the predetermined frequency and controls the counter means according to the signal coupled thereto. According to a second aspect of the present invention there is provided a method of producing pulses wherein a relatively high frequency signal and a relatively low frequency signal output from a first clock oscillator and a second clock oscillator respectively are compared for detecting a deviation of the relatively low frequency signal from a predetermined frequency and selectively coupled to a counter means for respective time periods dependant upon the deviation of the relatively low frequency signal from the predetermined frequency, and wherein the counter means is controlled according to the signal coupled thereto. The apparatus and method have the advantage that they facilitate accurate time measurement and reduce power consumption in an apparatus since the fast clock is not activated all the time. In a preferred embodiment of the invention the relatively low frequency signal is coupled to the counter means for a predetermined number of cycles. This has the advantage that less computation is needed to set the time period for which the relatively high frequency signal will be coupled to the counter as all that is required is to compensate for any drift or error in the relatively low frequency signal. Embodiments of the invention will now be described in more detail, by way of example, and with reference to the accompanying drawings in which: Figure 1 depicts a prior art solution for accurate time measurement; Figure 2 describes a solution for accurate time measurement in accordance with the present invention; Figure 3 presents an error calibration pulse diagram in accordance with the present invention; and Figure 4 presents a measurement control pulse diagram in accordance with the present invention. Figure 1 has been described above. The solution in accordance with the invention is described below with reference to Figures 2-4, which present an embodiment of the present invention. The diagram shown in Figure 2 describes a means of accurate time measurement in accordance with the present invention. The means comprises two separate clock oscillators, a faster clock oscillator 1 and a slower clock oscillator 3. A selector 4 selects which of the clock oscillators 1, 3 is to be coupled to the counter 2. The output pulses of the clock oscillators 1, 3 are compared in an error calibration block 5 and functioning of the counter 2 and the selector 4 is controlled in a measurement control block 6. Figure 3 shows an error calibration pulse diagram in accordance with the present invention. With the help of the method of the present invention the accuracy of the clock oscillator 1 is transferred to be the momentary accuracy of the clock oscillator 3 by comparing the output pulses of the clock oscillators 1, 3 in the error calibration block 5. The number of pulses generated by the clock oscillators 1, 3 during a time interval T err is calculated as follows: T err = n * (1/f 1 ) = nT 1 = m * (1/f 2 ) = mT 2 This results in: T 1 = m * T 2 / n The error calibration is repeated after certain time intervals T err rep . The calibration is carried out by measuring how much the internal clock oscillator 3 of the phone deviates from the synchronized signal sent by the base station due to the frequency error between clock oscillator 3 and clock oscillator 1. If the phone detects a timing error D during the time period n*T, the pulse period T 2 of the clock oscillator 3 has changed by D/n. Figure 4 shows a measurement control pulse diagram in accordance with the present invention. The functioning of the selector 4 is controlled in the measurement control block 6. The selector 4 selects which of the clock oscillators 1, 3 is to be coupled to the counter 2. The time interval T is measured in three parts n 1 pulses with clock frequency f 1 T 11 n 2 pulses with clock frequency f 2 T 21 n 3 pulses with clock frequency f 1 T 31 The counter 2 transmits pulses having the length of the time interval T. During the time interval T 21 the fast clock oscillator 1 is switched off to save power. With the help of the method in accordance with the present invention time can be measured accurately by transferring the accuracy of the fast and accurate clock oscillator 1 to the lower and less accurate clock oscillator 3. The accuracy transfer is carried out by comparing the two clock oscillators 1, 3 and by measuring the momentary error of the slower clock oscillator 3. If the error change rate of the slower clock oscillator 3 is slow compared to the time needed for measurement or calibration, the faster clock oscillator 1 can be switched off for longer time intervals. Depending upon the scale of the deviation or error in the frequency generated by the internal clock oscillator 3, the period T 21 for which clock oscillator 3 is coupled to the counter 2 can be made longer or shorter. Of course, if the deviation is large, approaching an internal clock oscillator 3 cycle, then the period T 21 will have to be relatively short because a relatively large number of cycles of oscillator 1 will be required. However, if the error is relatively small then T 21 can be made longer since fewer cycles of the fast clock oscillator 1 would be necessary to compensate for the error in the internal clock oscillator 3 and maintain the accuracy of the output pulses. Alternatively, the number of cycles of the internal clock oscillator 3 used to produce each pulse from the counter 2 could be made constant. Thus, the only adjustment necessary in the system due to errors in the internal clock oscillator 3 output, is in the number of fast clock oscillator 1 cycles used either side of the time period T 21 for which the internal clock oscillator 3 is coupled to the counter 2. The fast and accurate clock oscillator 1 consumes considerably more power than the slower clock oscillator 3. Utilising the present invention power or current can be saved especially in portable equipment which require accurate time measurement. Apparatus or a method in accordance with the foregoing can be used to save power in portable cellular phones. The invention is suitable for systems where the phone switches to a power saving mode at certain time intervals, but where time has to be measured accurately. Such systems include for example GSM-, DCS-1800-, JDC- and ADC-systems which operate in a discontinuous receive mode (DRX). In view of the foregoing description it will be evident to a person skilled in the art that various modifications may be made within the scope of the claims.

Claims: An apparatus for producing pulses comprising a first clock oscillator (1) for outputting a relatively high frequency signal (f 1 ) and a second clock oscillator (3) for outputting a relatively low frequency signal (f 2 ), an error calibrating means (5) for measuring a deviation of the relatively low frequency signal (f 2 ) from a predetermined frequency, and control means (6) for selectively coupling the relatively high frequency signal (f 1 ) and the relatively low frequency signal (f 2 ) to a counter means (2) for outputting said pulses, wherein the control means (6) couples the relatively high frequency signal to the counter means (2) for a time period (T 11 ,T 31 ) dependant upon the deviation of the relatively low frequency signal (f 2 ) from the predetermined frequency and controls the counter means (2) according to the signal (f 1 ,f 2 ) coupled thereto. An apparatus as claimed in claim 1, wherein the relatively low frequency signal (f 2 ) is coupled to the counter means (2) for a predetermined number of cycles. An apparatus as claimed in claim 1 or claim 2, wherein the error calculating means (5) measures the deviation of the relatively low frequency signal (f 2 ) by periodically comparing the relatively low frequency signal (f 2 ) with the relatively high frequency signal (f 1 ). An apparatus as claimed in claim 3, wherein the relatively low frequency signal (f 2 ) is compared with the relatively high frequency signal (f 1 ) for a time period T err such that T err = n / f 1 = m / f 2 , where n and m are the number of cycles of the relatively high and relatively low frequency signals (f 1 ,f 2 ) respectively. An apparatus as claimed in claim 4, wherein T err is a minimum time period for measuring the deviation. An apparatus as claimed in any preceding claim, wherein the first clock oscillator (1) is controllable by an Automatic Frequency Control (AFC)means responsive to an Automatic Frequency Control (AFC) signal. An apparatus as claimed in any preceding claim, wherein said pulses output from the counter means (2) have a time period T derived from the relatively high frequency signal (f 1 ) being respectively coupled to the counter means (2) for time periods T 11 and T 31 at one or other end of the time period T and the relatively low frequency signal (f 2 ) being coupled to the counter means (2) for a time period T 21 such that a pulse width T=T 11 +T 21 +T 31 . An apparatus as claimed in any preceding claim, wherein the first clock oscillator (1) is turned off when not required by the counter means (2) or the error calculating means (5). An apparatus as claimed in claim 7, wherein the first clock oscillator is turned off during the time interval T 21 . An apparatus as claimed in any one of claims 6 to 9, wherein the AFC signal is derivable from a signal transmitted by a base station of a radio telephone network. A radio telephone comprising apparatus as claimed in any preceding claim. An apparatus as claimed in claim 7, wherein during the time interval T 21 the first clock oscillator (1) is switched off from a high frequency oscillator, from fast dividers of the counter means (2) and from a D/A converter, the clock oscillator (1) being AFC-controlled. An apparatus as claimed in claim 12, wherein during the time interval T 21 , part of the fast dividers and the D/A converter required by the AFC-function are switched off. A method of producing pulses wherein a relatively high frequency signal (f 1 ) and a relatively low frequency signal (f 2 ) output from a first clock oscillator (1) and a second clock oscillator (2) respectively are compared for detecting a deviation of the relatively low frequency signal (f 2 ) from a predetermined frequency and selectively coupled to a counter means (2) for respective time periods dependant upon the deviation of the relatively low frequency signal (f 2 ) from the predetermined frequency, and wherein the counter means (2) is controlled according to the signal (f 1 ,f 2 ) coupled thereto.

Inventors: JOKINEN HARRI, JORRI SAKARI, JOKINEN, HARRI, JORRI, SAKARI
Applicants: NOKIA MOBILE PHONES LTD, NOKIA MOBILE PHONES LTD.
Application year: 1993
Main classification: G04G3
IPC codes: G04G7, G04G3, H04L7, H04W52