Device and method for frequency generation

Abstract: The invention relates to a device for reducing unwanted frequency components in digital frequency generation, comprising an accumulator device (4, 5) for generating output signals depending on an input code (F) corresponding to a desired frequency, the accumulator device (4, 5) being connected to at least one memory unit (6, 7) which comprises codes corresponding to wave shapes, and further comprising a generator (1) for generating a random code (P) and a digital/analog converter (9) for generating analog wave shapes. The invention is characterized in that it comprises modulation means (2, 3) for generating a first modulated signal (F r1 ) constituting the sum of the input code (F) and the random code (P) and for generating a second modulated signal (F r2 ) constituting the difference between the input code (F) and the random code (P), and a calculation unit (8) for regenerating a code corresponding to said input code (F). The invention provides a reduction of unwanted frequency components, so-called spurious components.

Description: TECHNICAL FIELD: The present invention relates to a device for frequency generation in accordance with the preamble of claim 1. The invention also relates to a method in accordance with the preamble of claim 6. In particular, the invention can be applied in frequency generation for radio communication in which a so-called direct digital synthesizer is utilized. The invention is intended to be used for reducing unwanted frequency components, so-called spurious components. BACKGROUND OF THE INVENTION: In the field of radio communication, various devices for frequency generation are known. In applications which demand a quick switching between different frequencies, this can be accomplished by means of a so-called direct digital synthesizer (below referred to as DDS). A DDS has a very high frequency resolution and can change the frequency of the signal in a manner which is continuous with respect to the phase, as opposed to frequency generators which for example use a so-called phase-locked loop, which have to wait for phase transients in order to lock during switching of the frequency. A DDS is based on digital technology and may be of insignificant size, weight and power consumption. A DDS may comprise a counter which addresses a digital reference table containing samples of a desired wave shape. The output signal from the reference table is supplied to a digital/analog converter which generates the desired wave shape in an analog form. However, this method is inflexible due to the fact that the only way to change the frequency of the wave shape is to change the clock frequency to the counter. In order to solve this problem, a so-called phase accumulator can be used in a DDS to generate the address to the reference table. The input parameters to such a DDS are a frequency control word, which can be generated by a digital processor, and the clock frequency of the system. A phase accumulator comprises a register and a digital adder with a hold-circuit on its output. The hold circuit addresses the reference table and is connected back to one of the inputs of the adder. The frequency control word of the device is supplied to the other input of the adder. The phase accumulator rotates a vector around a phase circle in discrete steps with a constant clock rate. The frequency control word determines the size of the step by which the sum of the phase accumulator is increased. The size of the steps determines the frequency of the wave shape according to the equation F 0 = M * F c /2 N in which F o is the frequency of the output signal, M is the size of the frequency step stored in the register, F c is the clock frequency and N is the number of bits in the phase accumulator. In the above-mentioned DDS device, both the frequency resolution and the phase resolution are determined by the word length in the phase accumulator. If a high resolution is desired, many bits are required in the phase accumulator. For example, a phase accumulator with a resolution of 8 bits provides 256 discrete phase steps. When analyzing the spectrum of the output signal it will be apparent that the spectrum comprises three general sources of distortion. The first source, ε P , originates from the truncation of the bits of the phase accumulator before the reference table is addressed. The second source of distorsion, ε T , is due to the finite word length of the wave shape which is stored in the reference table. The third source of distortion, ε DA , is due to noise in the digital/analog conversion. The first error source, ε P , is the most serious one, since it is an exponential function of the address length of the reference table. An analysis shows that the output signal consists of a sine signal having the desired frequency and a cosine signal which is modulated with an error sequence ε P (n) which depends on the above-mentioned error source ε P . This error sequence has a repeating progression, which implies that the spectrum of the output signal comprises the desired frequency as well as unwanted frequency components, so-called spuriuos components, which appear at distinct frequencies. A diagram of the spectrum (i.e. the relation between the frequency and the output power) of the output signal from such a DDS is illustrated in Fig. 1, from which it is apparent that the spurious components occur at distinct frequencies in the spectrum. A device for reducing unwanted spurious components in a DDS is previously known from US 5014231. In this regard, random numbers are generated and added to the word in a reference table. In this manner, the spurious components are distributed randomly over the entire frequency spectrum. A device for reducing spurious components by introducing an "offset" in the frequency word supplied to an accumulator is previously known from US 4951237. SUMMARY OF THE INVENTION: A main object of the present invention is to provide an improved method and device in connection with a so-called direct digital synthesizer (DDS) in order to eliminate unwanted frequency components in the form of spurious components at distinct frequencies. This is achieved by means of a device as initially mentioned, the features of which will become apparent from the characterizing portion of claim 1. The invention is based on the principle that a pseudo-random code is generated. By means of this code, the input code which corresponds to a desired frequency can be modulated. In accordance with the invention, a code corresponding to said input code is regenerated in a calculation unit. The regeneration of the input code is carried out in a manner so that the pseudo-random code does not influence the desired frequency. By using a first and a second phase accumulator, to which signals constituting the sum and the difference respectively of an input code and a random code are supplied, the error sequence which is present in the output signal will not be of a periodical but instead of a random nature. In this manner, unwanted frequency components will be greatly reduced. BRIEF DESCRIPTION OF THE DRAWINGS: The invention will be described in greater detail in the following with reference to the annexed drawings, in which Fig. 1 shows a spectrum of a conventional DDS, Fig. 2 shows schematically a device according to the present invention, and Fig. 3 shows a spectrum of the device according to the invention. PREFERRED EMBODIMENT: Fig. 2 shows, in the form of a block diagram, a device according to the present invention. In accordance with a preferred embodiment, the device comprises a code generator 1 for generating a pseudo-random code P. This pseudocode P is added to a desired frequency word in an adder 2 so as to produce an output signal F r1 = F + P. Furthermore, the pseudocode P is subtracted from the frequency word F in a subtractor 3. In this manner, a further output signal F r2 = F - P is produced. The output signal F r1 from the adder 2 is supplied to the input of a first phase accumulator 4, whereas the output signal F r2 from the subtractor 3 is supplied to the input of a second phase accumulator 5. The output signal from the first phase accumulator 4 is supplied to a first reference table 6, i.e. a memory, which comprises a cosine wave as well as a sine wave, i.e. the cosine wave phase shifted 90°. These two curves can be regarded as the real part and the imaginary part, respectively, of the cosine wave. The output signals from the first reference table 6 are constituted by a real part cos 1 and an imaginary part sin 1 . In a corresponding manner, the output signal from the second phase accumulator 5 is supplied to a second reference table 7 of a type which corresponds to the first reference table 6. In a corresponding manner, the output signals from the second reference table 7 are constituted by a real part cos 2 and an imaginary part sin 2 . The four output signals cos 1 , sin 1 , cost and sin 2 from the reference tables 6, 7 are supplied to a complex multiplying unit 8 which performs the operation (a 1 +jb 1 )(a 2 +jb 2 ) = a 1 a 2 -b 1 b 2 +j(a 1 b 2 +a 2 b 1 ) where a 1 = cos(F r1 ), b 1 = sin(F r1 ), a 2 = cos(F r2 ) and b 2 = sin(F r2 ). Only the real part R is used from the complex multiplying unit 8, which real part can be written as R = cos(F r1 )cos(F r2 ) - sin(F r1 )sin(F r2 ) = = 1/2[cos(F r1 -F r2 ) + cos(F r1 +F r2 )] - - 1/2[cos(F r1 -F r2 ) - cos(F r1 +F r2 )] = cos(F r1 +F r2 ). Since F r1 = F+P and F r2 = F-P, it follows that R = cos(F r1 +F r2 ) = cos(F+P+F-P) = cos(2F) In this manner, the desired frequency is obtained from a suitable selection of F. Finally, the output signal from the complex multiplying unit is supplied to a digital/analog converter 9 for generating an output analog wave shape. As is apparent, the pseudocode P does not influence the output frequency. Instead, it provides a random contribution to the frequency word F in the form of the words F r1 and F r2 . Fig. 3 shows a diagram of a spectrum (the output power as a function of the frequency) of the output signal according to the present invention. In conventional DDS devices, a problem is present in that the phase accumulator is repeatedly supplied with the same input data, which implies that the output signal is modulated with a periodical error sequence. In the device according to the invention, the input data to the phase accumulators 4, 5 is changed each clock pulse due to the fact that the pseudo-random code P is used. In this manner, the error sequence of the output signal is not periodical but instead has a random character, which is illustrated in Fig. 3. In order to further reduce the spurious components which may occur due to quantizing errors due to truncation of the number of bits to the digital/analog converter 9, in accordance with the invention a noise component in the form of an equally distributed random number S can be inserted in the reference table 6. Thus, if the component a 1 =cos(F r1 ) is replaced with S+cos(F r1 ), in accordance with that which has been mentioned above, it follows that R noise = (S+cos(F r1 ))cos(F r2 ) - sin(F r1 )sin(F r2 ) = = Scos(F r2 ) + cos(F r1 )cos(F r2 ) - sin(F r1 )sin(F r2 )= = Scos(F r2 ) + cos(F r1 +F r2 ) It will thus be apparent that the additional term Scos(F r2 ) will be added to the signal R, which additional term is chosen in a random manner, both with respect to its freqency and amplitude. This provides an additional noise which to a great extent will further reduce the influence of unwanted spurious components. The invention is not limited to the described embodiments, but may be varied freely within the scope of the appended claims. For example, different types of algorithms may be used in order to generate an contribution to the input code F.

Claims: Device for reducing unwanted frequency components in digital frequency generation, comprising an accumulator device (4, 5) for generating output signals depending on an input code (F) corresponding to a desired frequency, the accumulator device (4, 5) being connected to at least one memory unit (6, 7) which comprises codes corresponding to wave shapes, and further comprising a generator (1) for generating a random code(P), characterized i n that it comprises modulation means (2, 3) for generating a first modulated signal (F r1 ) constituting the sum of the input code (F) and the random code (P) and for generating a second modulated signal (F r2 ) constituting the difference between the input code (F) and the random code (P), said accumulator device (4, 5) comprising a first phase accumulator (4) to which said first modulated signal (F r1 ) is supplied, and a second phase accumulator (5) to which said second modulated signal (F r2 ) is supplied, and a calculation unit (8) for regenerating a code corresponding to said input code (F) by combining signals related to the first modulated signal (F r1 ) and the second modulated signal (F r2 ), the signals to be combined being obtained from said at least one memory unit (6, 7), in a manner so that said random code (P) does not influence the desired frequency. Device according to claim 1, characterized i n that said memory unit (6, 7) comprises a cosine table and a sine table. Device according to any one of the preceding claims, characterized in that said calculation unit (8) comprises a complex multiplying unit (8) which is arranged after said memory unit (6, 7). Method for reducing unwanted frequency components in digital frequency generation, wherein an input code (F) corresponding to a desired frequency is generated and supplied to an accumulator device (4, 5) and an output code from the accumulator device (4, 5) is supplied to a memory unit (6, 7) which contains codes corresponding to wave shapes, and wherein a random code (P) is generated, characterized in that a first signal (F r1 ) which is the sum of the input code (F) and the random code (P) and a second signal (F r2 ) which is the difference between the input code (F) and the random code (P) are generated, that said first and second signals (F r1 , F r2 ) are supplied to a first phase accumulator (4) and a second phase accumulator (5), respectively, forming part of said accumulator device (4, 5), and that the input code (F) is regenerated from the signal being supplied from the memory unit (6, 7) by combining signals related to the first signal (F r1 ) and the second signal (F r2 ), the signals to be combined being obtained from said at least one memory unit (6, 7), in a manner so that said random code (P) does not influence the desired frequency. Method according to claim 4, characterized i n that said input code (F) is regenerated by means of a complex multiplication of signals supplied from said memory unit (6, 7).

Inventors: ERHAGE LARS INGEMAR, ERHAGE, LARS INGEMAR
Applicants: ERICSSON TELEFON AB L M, TELEFONAKTIEBOLAGET LM ERICSSON
Application year: 1995
Main classification: G06F1
IPC codes: G06F1