Method and device for estimating the frequency of a digital signal

Information

  • Patent Grant
  • 6407684
  • Patent Number
    6,407,684
  • Date Filed
    Wednesday, July 11, 2001
    22 years ago
  • Date Issued
    Tuesday, June 18, 2002
    21 years ago
Abstract
A frequency estimator for estimating the frequency of a digital input signal (x(k)) includes a phase detection device (2) for determining the phase (φ(k)) of the input signal (x(k)), a differentiator (3) for generating the phase difference (φdiff1(k)) between adjacent samples of the phase (φ(k), φ(k-1)) and a filter (4) for averaging the phase difference (φdiff(k)) and having a trapezoidal pulse response (hM(k)). The trapezoidal pulse response (hM(k)) is generated by superimposing a first triangular pulse response with a second triangular pulse response which is offset in time with respect to the first triangular pulse response.
Description




This patent application claims priority of German Patent Application No. 100 33 575.6, filed on Jul. 11, 2000. The entire contents of the German Patent Application are hereby incorporated by reference.




BACKGROUND OF THE INVENTION




1. Field of the Invention




This invention relates to a method and a device for estimating the frequency of a digital signal.




2. Related Art




A method for frequency estimation is disclosed by J. K. Wolf and J. W. Schwartz in “Comparison of Estimators for Frequency Offset,” IEEE Transactions on Communications, vol. 38, no. 1, January 1990, pages 124-127. In this article, it is proposed that the phase of the complex digital input signal be differentiated and the differentiated phase be sent to an averaging filter. It is demonstrated in this article that the ideal pulse response of the averaging filter is parabolic. The parabolic curve of the pulse response of the averaging filter can be approximated relatively well by a trapezoidal curve with an increasing range, a constant range and a descending range. The standard deviation of the estimation error increases by only about 6% in comparison with the use of an ideal averaging filter with a parabolic pulse response. Therefore, this can be called a suboptimal frequency estimator.




If the filter with a trapezoidal pulse response mentioned in the article cited above were to be implemented directly, a relatively large number of multiplications would have to be performed because each sample within the observation interval would have to be multiplied by a corresponding coefficient.




SUMMARY OF THE INVENTION




Therefore, the object of the present invention is to provide a method and a device for estimating the frequency of a digital input signal, where the trapezoidal pulse response of the averaging filter is generated easily, preferably without a gate-intensive multiplier.




This object is achieved with regard to the method by the features of claim


1


and with regard to the device by the features of claim


6


. Advantageous refinements of this invention are characterized in the subordinate claims.




The present invention makes use of the finding that the trapezoidal pulse response can be generated by superimposing two time-offset triangular pulse responses. Triangular pulse responses can be generated by folding two square-wave pulse responses, where the second triangular pulse response which is offset in time with respect to the first triangular pulse response can be generated by folding with a Dirac pulse. Square-wave pulse responses can be generated by a combination of an integrator and a differentiator, where the differentiator has a reduced sampling rate whose sampling period corresponds to the period of the square-wave pulse response, i.e., one third of the observation period. Therefore, the differentiator subtracts the initial value of the integrator from the end value of the integrator. The amplitude of the square-wave pulse response corresponds to one third of the resulting trapezoidal pulse response.




Further scope of applicability of the present invention will become apparent from the detailed description given hereinafter. However, it should be understood that the detailed description and specific examples, while indicating preferred embodiments of the invention, are given by way of illustration only, since various changes and modifications within the spirit and scope of the invention will become apparent to those skilled in the art from this detailed description.











BRIEF DESCRIPTION OF THE DRAWINGS




The present invention will become more fully understood from the detailed description given hereinbelow and the accompanying drawings which are given by way of illustration only, and thus are not limitative of the present invention, and wherein:





FIG. 1

is a block diagram of an embodiment of the frequency estimator according to the present invention;





FIG. 2

is a detailed block diagram of an averaging filter of the frequency estimator according to this invention as illustrated in

FIG. 1

;





FIG. 3

is the ideal pulse response of the averaging filter;





FIG. 4

is the approximated trapezoidal pulse response of the averaging filter;





FIGS. 5 and 6

are two time-offset triangular pulse responses for generation of the trapezoidal pulse response shown in

FIG. 1

; and





FIG. 7

is two square-wave pulse responses whose folding yields the triangular pulse response shown in FIG.


5


.











DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS





FIG. 1

shows a block diagram of an embodiment of the frequency estimator according to the present invention. Let it be assumed that the digital input signal x(k) is composed of a noise-free input signal y(k), where








y


(


k


)={square root over (C·e


j(2πƒ·kT







ul















0




+L )}  (1)






and an uncorrelated noise signal n(k) with a Gaussian distribution by addition in an adder


1


. In equation (1), f denotes the frequency to be estimated, k is the counting index for the samples, T


al


is the sampling period and φ


0


is a constant phase shift.




The noise-free component y(k) has a power C and the noise component n(k) has a power N, with N/2 for the real component and N/2 for the imaginary component. The signal-to-noise ratio is thus C/N.




The input signal x(k) is sent to a phase detection device 2 which determines the phase component of the complex signal x(k) by using the arg function. Phase φ(k)/π standardized to π is available at the output of the phase detection device


2


. The difference between two adjacent samples φ(k)/π and φ(k−1)/π of the phase is calculated in a downstream differentiator


3


. A differentiator with wrap arithmetic can be used here, its value range being between −1 and 1, so that 2π phase shifts are corrected automatically. The phase difference values φ


diff1


(k)/π which are generated at the output of differentiator


3


are sent to a filter


4


which has a pulse response h


M


(k) and is described in greater detail below. Above filter


4


, the ideal pulse response h


id


(k) of filter


4


is shown with an unbroken line. A trapezoidal pulse response h


M


(k) of a filter


4


approximating it as used within the scope of this invention is shown with a broken line. In filter


4


, the phase difference values φ


diff1


(k)/π are averaged over an observation period T


a2


taking into account the weighting that results from the pulse response h(k). Weighting is performed over a predetermined number of samples (e.g., 60 in FIGS.


3


and


4


).




After the observation period T


a3


an averaged phase difference value φ


diff2


(k)/π is to be output. Therefore, in a sample converter


5


, the samples are reduced by the ratio of the observation period T


a2


to the sampling period T


a1


. This is appropriate because otherwise the estimation errors would correlate with one another. This is also indicated in

FIG. 1

by working with a sampling rate or clock frequency of f


a1


=1/T


a1


in the sample converter


5


and with a sampling rate or clock frequency of f


a2


=1/T


a2


after the sample converter


5


.




Phase difference values φ


diff1


(k)/π standardized to π that are available at the output of the sample converter 5 differ from the frequency f to be estimated by the factor 1/(2·T


a1


) or ½ f


a1


. Therefore, it must be multiplied by a constant factor ½ f


a1


in a multiplier 6 to provide the estimates {circumflex over (ƒ)}(k).




The present invention relates to an improvement in the arithmetic of filter


4


. Before discussing the arithmetic in greater detail on the basis of

FIG. 2

, the basic concept will first be explained on the basis of

FIGS. 3-7

.




In the article by J. K. Wolf and J. W. Schwartz “Comparison of Estimators for Frequency Offset,” IEEE Transactions on Communications, vol. 38, no. 1, January 1990, pages 124-127, it is shown that the filter


4


must have the following ideal pulse response h


id


(k) for a so-called maximum likelihood estimator, i.e., a frequency estimator in which the variance of the phase error Δ


φdiff2


(k) is optimally low:











h
id



(
k
)


=


6


k
·

(


Down
Freq

-
k

)





(


Down
Freq

-
1

)

·

Down
Freq

·

(


Down
Freq

+
1

)







(
2
)













where Down


Freq


=f


a1


/f


a2


.




This ideal pulse response h


id


(k) is shown graphically in

FIG. 3

for the observation period T


a2


=60·T


a1


. This yields a parabolic curve of the pulse response h


id


(k).




A direct implementation of equation (2) requires a considerable gate complexity. It is therefore proposed in the article cited above that the ideal pulse response h


id


(k) shown in

FIG. 3

be approximated by a trapezoidal pulse response h


M


(k) as shown in FIG.


4


. The approximated pulse response h


M


(k) is as follows:








h




m


(


k


)=const·└δ


−1


(


k


)−δ


−1


(


k−Down




Freq


/3)┘* └δ


−1


(


k


)−δ


−1


(


k


−2


·Down




Freq


/3)┘  (3)






where δ


−1


is the jump function. When using this pulse response h


M


(k) a suboptimal frequency estimator is obtained, where the standard deviation of the estimation error is only approx. 6% greater in comparison with a frequency estimator using a filter with the ideal pulse response h


id


(k) shown in

FIG. 3

, so that almost the optimum frequency estimate {circumflex over (ƒ)} which is theoretically possible is achieved.




A direct implementation of equation (3) is still associated with a considerable gate complexity because of the numerous multiplications required, making the implementation of the hardware difficult under realtime conditions. This is where the present invention begins by proposing a simple method of generating the trapezoidal pulse response h


M


(k) illustrated in FIG.


4


.




It is proposed according to the present invention that the trapezoidal pulse response h


M


(k) shown in

FIG. 4

be generated by superimposing two triangular pulse responses h


1


(k) and h


2


(k) of the length ⅔ T


a2


as shown in

FIGS. 5 and 6

. The second triangular pulse response h


2


(k) is offset by ⅓ T


a2


in comparison with the first triangular pulse response h


1


(k), so that the trapezoidal pulse response h


M


(k) shown in

FIG. 4

is obtained by adding these two pulse responses. The time offset and the addition of the second triangular pulse response h


2


(k) and the first triangular pulse response h


1


(k) can be generated by folding with a Dirac pulse by using a suitable averaging filter.




The triangular pulse response shown in

FIG. 5

can be generated by folding two square-wave pulse responses h


3


(k) and h


4


(k) of the period ⅓ T


a2


shown in FIG.


7


. The amplitude of the pulse responses h


3


(k) and h


4


(k) amounts to:






{square root over (Amplitude


Dreieck


+L /(N/2+L ))}






where Amplitude


Dreieck


(amplitude


triangle


) denotes the amplitude of the pulse responses h


1


(k) and h


2


(k) (0.025 in the example) and N denotes the samples of pulse responses h


1


(k) and h


2


(k) (20 in the example).




A preferred implementation of the concept presented on the basis of

FIGS. 3 through 7

for generation of the trapezoidal pulse response h


M


(k) will now be described in greater detail on the basis of an embodiment of filter


4


shown in FIG.


2


and the sample converter


5


.




At the input


8


of filter


4


, there is a multiplier


7


which multiplies the phase difference values φ


diff1


(k)/π times the constant mult


in


. The function of this multiplication is to compensate for the gain factor of the downstream filter stages, which is much greater than 1, so that the resulting gain factor will be 1. This multiplier can be implemented by an arithmetic shift. Only a slight gate complexity is required.




A first integrator


9


and a second integrator


10


are connected to multiplier


7


. The sample converter shown in

FIG. 1

is divided into two sample converters


5




a


and


5




b


in the embodiment illustrated in FIG.


2


. In the first sample converter


5




a


, the sampling rate is first reduced by the factor Down


HDF


=Down


Freq


/3=f


a1


/3f


a2


. This is necessary because the square-wave pulse responses h


3


(k) and h


4


(k) shown in

FIG. 7

have the period ⅓ T


a2


.




A first differentiator


11


and a second differentiator


12


are connected to the first sample converter


5




a


. The integrator and the differentiator are followed by an averaging filter


13


which has the function of adding the output sequence of the delayed triangular pulse responses h


1


(k) and h


2


(k).




A second sample converter


5




b


connected to the averaging filter


13


reduces the sampling rate or the clock frequency by the remaining factor 3 to achieve a reduction in sampling rate or clock frequency by the Down


Freq


=f


a1


/f


a2


ratio on the whole.




In the filters, a two's complement arithmetic with a limited word length is used. The word length must be of a dimension such that there is no overflow in the second differentiator


12


. There are overflows in the two integrators


9


,


10


and the first differentiator


11


, although they do not lead to any computation errors due to the two's complement arithmetics.




In the embodiment illustrated here, integrators


9


and


10


have the transfer function H(z)=z/(z−1), differentiators


11


and


12


have the transfer function H(z)=1−z


−1


, and averaging filter


13


has the transfer function ½ (1+z


−1


).




Integrator


9


adds up the incoming phase difference values φ


diff1


(k)/π endlessly in order. The respective differentiator


11


subtracts the starting value of integrator


9


, which was present previously, by the interval ⅓ T


a2


(the value of integrator


9


which occurred 20 sampling times previously in the embodiment illustrated in

FIG. 7

) from the end value of the integration. The differentiation is thus performed over time increments of ⅓ T


a2


. This is achieved by the first sample converter


5




a


upstream. This results on the whole in the square-wave pulse response h


3


(k) shown in FIG.


7


.




Due to the two-step design of the series connection of two integrators


9


,


10


with two differentiators


11


,


12


, the square-wave pulse response is generated twice (h


3


(k) and h


4


(k)), and square-wave pulse responses (h


3


(k) and h


4


(k)) are folded together so that the elements


9


,


10


,


5




a


,


11


,


12


generate the triangular pulse response h


1


(k) shown in

FIG. 5

on the whole. By sending the output signal of the second differentiator


12


to the averaging filter


13


, there is a folding with the Dirac pulses of the pulse response of the averaging filter


13


, so that the triangular pulse response h


1


(k) is added to the triangular sequence offset by the period ⅓ T


a2


(offset by 40 sampling times in the embodiment illustrated in FIGS.


5


and


6


). The two overlapping triangular pulse responses h


1


(k) and h


2


(k) shown in

FIGS. 5 and 6

then yield the desired resulting trapezoidal pulse response h


M


(k) shown in FIG.


4


.




The block diagrams shown in

FIGS. 1 and 2

serve only to illustrate one embodiment of this invention. Elements


1


through


13


are preferably implemented in the circuitry (as hardware). However, implementation in the form of program steps (as software) is also conceivable.



Claims
  • 1. A method of estimating a frequency {circumflex over (ƒ)} of a digital input signal (x(k)), comprising the steps of:determining (2) a phase (φ(k)=arg(x(k)) of the input signal (x(k)), generating (3) a phase difference (φdiff1(k)) between adjacent samples of a phase (φ(k), φ(k−1)), averaging the phase difference (φdiff1(k)) by using a filter (4) which has a trapezoidal pulse response (hM(k)), wherein the trapezoidal pulse response (hM(k)) is generated by superimposing a first triangular pulse response (h1(k)) on a second triangular pulse response (h2(k)) which is offset in time in comparison with the first triangular pulse response (h1(k)).
  • 2. The method according to claim 1, wherein the first triangular pulse response (h1(k)) is generated by folding two square-wave pulse responses (h3(k), h4(k)).
  • 3. The method according to claim 2, wherein the second triangular pulse response (h2(k)) is generated by folding the first triangular pulse responses (h1(k)).
  • 4. The method according to claim 3, wherein the square-wave pulse responses (h3(k), h4(k)) are generated by integration (9, 10) and subsequent differentiation (11, 12), where a sampling rate (fa1) is reduced between integration (9) and differentiation (11) to one third of the inverse of the period (fa1=⅓·1/Ta2) of the trapezoidal pulse response (hM(k)) of the filter (4).
  • 5. The method according to claim 4, wherein the square-wave pulse responses (h3(k), h4(k)) are folded by performing the integration (9, 10) and differentiation (11, 12) each in two stages.
  • 6. A device for estimating the frequency ({circumflex over (ƒ)}) of a digital input signal (x(k)), comprising:a phase determination device (2) for determining a phase (φ(k)=arg(x(k)) of the input signal (x(k)), a differentiator (3) for generating a phase difference (φdiff1(k)) between adjacent samples of a phase (φ(k), φ(k−1)), a filter (4) which has a trapezoidal pulse response (hM(k)) and averages the phase difference (φdiff(k)), wherein the filter (4) has a first integrator (9), a second integrator (10) downstream from the first integrator (9), a sample converter (5a) downstream from the second integrator (10), a first differentiator (11) downstream from the sample converter (5a), a second differentiator (12) downstream from the first differentiator (11), and an averaging filter (13) downstream from the second differentiator (12).
  • 7. The device according to claim 6, wherein a sampling rate (fa1) is reduced in the sample converter (5a) to one third of the inverse of the period (fa1=⅓·1/Ta2) of the trapezoidal pulse response (hM(k)) of the filter (4).
  • 8. The device according to claim 6, wherein a transfer function HK(Z) of the averaging filter (13) amounts to:HK(Z)=½(1+Z−1).
Priority Claims (1)
Number Date Country Kind
100 33 575 Jul 2000 DE
US Referenced Citations (9)
Number Name Date Kind
3766545 Hikosaka Oct 1973 A
3789393 Tripp Jan 1974 A
5134397 Eyerly et al. Jul 1992 A
5754130 Sakayori May 1998 A
5835390 Trager Nov 1998 A
5907298 Kiriyama et al. May 1999 A
6049297 Ducharme et al. Apr 2000 A
6229471 Goode et al. Apr 2001 B1
6236343 Patapoutian May 2001 B1
Foreign Referenced Citations (4)
Number Date Country
A1-4-302679 Aug 1994 DE
A1-19-534262 Mar 1996 DE
A1-19-516449 Nov 1996 DE
A1-19-808874 Sep 1999 DE
Non-Patent Literature Citations (3)
Entry
Chu, IEEE Transactions on Circuits, and Systems, vol. CAS-31, No. 11, pp. 913-924 (1984).
Wolf, IEEE Transactions on Communications, vol. 38, No. 1, pp. 124, (1990).
Hagiwara et al., Electronics and Communications in Japan, vol. 67-B, No. 10, pp. 66-74 (1984).