US20030030469A1 - Circuits and methods for generating an accurate digital representation of a sinusoidal wave - Google Patents
Circuits and methods for generating an accurate digital representation of a sinusoidal wave Download PDFInfo
- Publication number
- US20030030469A1 US20030030469A1 US09/893,054 US89305401A US2003030469A1 US 20030030469 A1 US20030030469 A1 US 20030030469A1 US 89305401 A US89305401 A US 89305401A US 2003030469 A1 US2003030469 A1 US 2003030469A1
- Authority
- US
- United States
- Prior art keywords
- samples
- digital representation
- frequency
- sinusoidal wave
- recited
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03B—GENERATION OF OSCILLATIONS, DIRECTLY OR BY FREQUENCY-CHANGING, BY CIRCUITS EMPLOYING ACTIVE ELEMENTS WHICH OPERATE IN A NON-SWITCHING MANNER; GENERATION OF NOISE BY SUCH CIRCUITS
- H03B28/00—Generation of oscillations by methods not covered by groups H03B5/00 - H03B27/00, including modification of the waveform to produce sinusoidal oscillations
Definitions
- the present invention relates to numerically controlled oscillators. More specifically, the invention relates to a numerically controlled oscillator for accurately outputting digital representations of sinusoidal waves.
- NCOs Numerically controlled oscillators
- an NCO receives a digital input called a “frequency word” 0 from which the desired output frequency may be determined.
- the maximum output frequency of NCOs has been limited to half of the sampling frequency.
- a conventional NCO with a system clock (which is used as a measure of the maximum sampling rate) operating at 130 MHz could not accurately generate a sinusoidal wave having a frequency greater than 65 MHz.
- FIG. 1 illustrates the structure of a conventional NCO that generates a digital representation of a sinusoidal wave.
- sample phase generator 100 includes delay 101 , summer 102 , and bit select 103 .
- Sample phase generator 100 receives system clock 105 and frequency word 106 as inputs.
- System clock 105 operates at a certain frequency, which is the maximum sampling frequency of the NCO.
- Frequency word 106 is a configurable parameter used to specify the desired output frequency.
- summer 102 receives frequency word 106 and the previous value from delay 101 as inputs. Each time system clock 105 clocks, the output from summer 102 is input into bit select 103 and back into delay 101 . Bit select 103 outputs the 8 most significant bits of the signal output from summer 102 .
- the output from bit select 103 would be a stepped saw tooth waveform with a frequency equal to the selected output frequency.
- An example of this is saw tooth waveform 107 .
- a saw tooth waveform is typically not useful, and most NCOs include circuitry, such as conversion circuitry 104 , that converts saw tooth waveform data into data that may be used to generate a more useful repeated waveform.
- the value output from the sample phase generator 100 represents the phase value of the more useful repeated waveform.
- the conversion circuitry 104 then generates the value of the repeated waveform at that phase value.
- Such conversion circuitry may convert saw tooth waveform data into digital sinusoidal waveform data (represented generally by sinusoidal waveform 108 ), which represents the output of the NCO.
- sinusoidal waveform 108 represents the output of the NCO.
- the output of the conversion circuitry 104 is sent to a DAC, the DAC will output a stepwise approximation of a sinusoidal wave at the desired output frequency.
- Conversion circuitry 104 may be, for example, a sine/cosine lookup table.
- conversion circuitry 104 would include a series of entries that correspond to samples of a sinusoidal wave.
- the eight-bit output from sample phase generator 100 may have 256 (i.e., 2 8 ) possible phase values.
- the lookup table would have 256 possible output values corresponding to the 256 possible input values. Limiting the lookup table to 256 possible output values decreases the size of the NCO as compared to NCOs that have lookup tables of more refined resolution.
- the conversion circuitry 104 would need to handle 2 17 (i.e., 131,072) different input permutations using 131,072 different entries. This kind of lookup table would typically be too large to be practical.
- the output repeated waveform has a frequency spectrum with a strong line at the desired output frequency, but also includes lines that are separated from multiples of the clock frequency by plus or minus the desired output frequency. For example, if an NCO with a system clock of 130 MHz were used to generate a sinusoidal wave at 15 MHz, the output would also include a strong frequency component at 15 MHz.
- frequency components at 145 MHz i.e., 130 MHz plus 15 MHz
- 115 MHz i.e., 130 MHz minus 15 MHz
- smaller frequency components at 275 MHz i.e., 2 times 130 MHz plus 15 MHz
- 245 MHz i.e., 2 times 130 MHz minus 15 MHz
- spurious frequency components may be removed using a low pass filter with a sharp cutoff below half of the clock frequency.
- the unwanted frequency that occurs at the clock frequency minus the desired output frequency draws closer to the desired output frequency.
- the clock frequency was 130 MHz and the desired output frequency was 60 MHz
- there would be a spurious frequency component at 70 MHz i.e., 130 MHz minus 60 MHz.
- the desired output frequency and the lowest spurious frequency component meet when the desired output frequency equals half of the clock frequency.
- a low pass filter with a very sharp cutoff cannot be used to remove spurious frequency components, because such a filter would remove desired frequency components as well.
- a digital representation of a sinusoidal wave at half the clock frequency or greater will not be sufficiently accurate.
- an NCO receives data representing digital samples of a sinusoidal wave at the desired output frequency.
- a digital representation of a sinusoidal wave is to be generated at a desired output frequency that is near to or greater than one half the sampling rate.
- the samples are calculated over multiple cycles of the sinusoidal wave.
- the calculated samples are then stored in a circular shift register. The number of samples to be taken and the number of cycles over which the samples are accumulated are calculated using the sampling rate (system clock frequency) and the desired output frequency.
- a greatest common factor of the sampling rate and specified frequency is calculated. For instance, if the sampling rate was 130 MHz and the specified frequency was 100 MHz, the greatest common factor would be 10. The number of samples that are to be buffered is calculated by dividing the sampling rate by the greatest common factor. In the given example, if the sampling rate was 130 MHz and the greatest common factor was 10, the number of samples would be thirteen. Also, the number of cycles over which the samples will be accumulated is calculated by dividing the desired output frequency by the greatest common factor. Returning to the example, if the desired output frequency is 100 MHz and the greatest common factor is 10, it will take ten cycles for the thirteen samples to be accumulated.
- thirteen samples will be calculated over a period of ten cycles and the thirteen samples will be stored in a circular shift register.
- the value of samples from subsequent groups of ten cycles would be identical to those values sampled from the first ten cycles assuming no change in the desired output frequency. Since the sample values would be identical, once the first thirteen sample values are stored, no other sampling need be done.
- the thirteen stored values would be sequentially output to generate a sinusoidal waveform at the desired output frequency. This may continue until the NCO detects a change in the desired output frequency.
- the present invention uses a system clock with a circular shift register.
- the values stored in the circular shift register may be pre-calculated and stored in the circular shift register, thus eliminating the requirement for a sample phase generator and conversion circuitry.
- the principles of the present invention significantly reducing the complexity and size requirements of an NCO as compared to the conventional NCO implementation, while allowing for reliable generation of sinusoidal waves at greater than one half the sampling frequency.
- FIG. 1 is a block diagram illustrating some of the components and functionality of a conventional Numerically Controlled Oscillator.
- FIG. 2 is a block diagram illustrating some of the components and functionality that may be included in a Numerically Controlled Oscillator that embodies the present invention.
- FIG. 3 is a flow diagram illustrating a method whereby a digital representation of a sinusoidal wave may be generated.
- FIG. 4 illustrates a simulation plot of frequency spectrum generated by the Numerically Controlled Oscillator of FIG. 2.
- the present invention extends to both circuits and methods for accurately generating a digital representation of a sinusoidal wave even where the desired output frequency is greater than one half of the sampling frequency.
- FIG. 2 is block diagram illustrating one embodiment of the present invention
- FIG. 3 is a flow diagram illustrating a method whereby a digital representation of a sinusoidal wave may be generated in accordance with the present invention.
- FIG. 2 is block diagram illustrating one embodiment of the present invention
- FIG. 3 is a flow diagram illustrating a method whereby a digital representation of a sinusoidal wave may be generated in accordance with the present invention.
- While illustrated embodiments of the present invention refer specifically to sinusoidal waves, it should be recognized that the present invention might also be used to generate digital representations of other types of repeating waveforms. Examples of such repeating waveforms include saw tooth waves, square waves, triangle waves, or any other waveform in which a series of values is repeated within a finite period of time.
- FIG. 2 illustrates some of the components that may be included in an NCO, which embodies the present invention.
- the NCO includes a circular shift register 210 that stores a number of sequential samples of a sinusoidal waveform.
- the NCO receives system clock signal 205 and outputs one sample every clock cycle.
- the value of the samples may be calculated using the desired output frequency of the sinusoidal waveform, and the sample frequency (in this case, the system clock frequency).
- the sample values are pre-calculated as described below with respect to act 301 , act 302 and act 303 of FIG. 3.
- the method calculates a number of samples (act 301 ) and a number of cycles over which the number of samples will be accumulated (act 302 ).
- the number of samples may be calculated by dividing the sampling rate, which may be the frequency of system clock 205 , by the greatest common factor of the sampling rate and a desired output frequency.
- the number of cycles needed to accumulate the number of samples may be calculated by dividing the desired output frequency by the greatest common factor of the sampling rate and the desired output frequency. For example, in an NCO including system clock 205 operating at 130 MHz, assume that the NCO of FIG. 2 is to generate a desired output frequency of 100 MHz. The greatest common factor between 100 MHz and 130MHz is 10 MHz. Dividing 130 MHz by 10 MHz results in 13. This means that 13 samples will need to be taken. Dividing 100 MHz by 10 MHz results in 10. This means that 10 cycles are needed to accumulate the 13 samples.
- the method generates the number of samples within the time span represented by the number of cycles. This may be accomplished, for example, by determining the total phase of the cycles over which samples are to be taken and dividing by the number of samples. For example, if there were ten cycles, the total phase would be 20 ⁇ radians (i.e., 10 cycles times 2 ⁇ radians/cycle). Thus, the division would be 20 ⁇ radians divided by 13 samples resulting in a phase change of approximately 1.538 ⁇ radians per sample. Then, the sine values for the corresponding phases are calculated. Table 1 shows the samples that would be calculated when a system with a 130 MHz clock is used to generate a desired output frequency of 100 MHz.
- the memory location column represents the corresponding memory location in circular shift register 210 .
- the phase values are the phase of the calculated sample.
- the first sample number is assumed to have a phase of zero.
- samples are stored in a memory location (act 304 ) such as memory locations A 1 through A 13 of circular shift register 210 .
- the NCO is configured to output the digital representation of the sinusoidal wave at the desired output frequency. Specifically, one sample is output every clock cycle starting with the value in memory location A 1 , then A 2 and so on until A 13 , at which point the output returns back to A 1 to repeat the process (see sinusoidal waveform data 208 of FIG. 2). In this manner, the samples are output to generate an accurate representation of a sinusoidal wave (act 305 ).
- “ph” is a vector of phase values in which the thirteen relative phase values of Table 1 are repeated every ten cycles of the repeated waveform.
- Line 1 initializes 2100 sample values of the vector “ph” to zero.
- Line 2 assigns the first thirteen values of vector “ph” to the thirteen relative phase values from Table 1.
- Line 3 through line 10 assigns the remaining values of the phase vector “ph” so that the thirteen values are repeated in accordance with the principles of the present invention.
- Line 11 through line 13 assigns a corresponding sine value for each phase value of the vector “ph” to form a sine value vector “ysin”.
- Line 14 assigns an 8-bit quantized version of each sine value for the vector “ysin” to a new vector “ysin — 8”.
- Line 15 assigns a corresponding discrete Fourier transform value of the vector “ysin — 8”to new vector “ysin — 8_fft” that represents the frequency components of the vector “ysin — 8”.
- Line 16 normalizes the vector “y_sin_fft” to a new normalized frequency vector “ysin — 8_norm”.
- Lines 18 through 23 assign frequency values to a vector “f”.
- Line 24 plots the normalized frequency spectrum in decibels represented by “ysin — 8_norm” on the vertical axis with frequency in Hz on the horizontal axis.
- the plot generated by line 24 is illustrated by the plot 400 of FIG. 4.
- FIG. 4 there is a strong frequency component exactly at 100 MHz, the desired output frequency, despite having a sampling frequency of only 130 MHz. As one varies from the desired output frequency, the signal power substantially diminishes.
- the anomalies at 402 a through 402 j are generated by the 8-bit quantization of the sine values.
- FIG. 4 makes clear that by sampling a fixed number of cycles a fixed number of times, the NCO of FIG. 2 may obtain a clear sinusoidal signal at 100 MHz, well over half the clock frequency of 130 MHz.
- the principles of the present invention also allow for a much smaller design of the NCO. Essentially, all of the components of the conventional NCO are replaced with a circular shift register coupled to a clock input signal and having specially calculated values stored in the circular shift register.
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Theoretical Computer Science (AREA)
- Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)
Abstract
Description
- 1. The Field of the Invention
- The present invention relates to numerically controlled oscillators. More specifically, the invention relates to a numerically controlled oscillator for accurately outputting digital representations of sinusoidal waves.
- 2. Background and Related Art
- Numerically controlled oscillators (NCOs) are used to output digital representations of sinusoidal waves at a specified output frequency. Typically, an NCO receives a digital input called a “frequency word”0 from which the desired output frequency may be determined. Historically, the maximum output frequency of NCOs has been limited to half of the sampling frequency. For example, a conventional NCO with a system clock (which is used as a measure of the maximum sampling rate) operating at 130 MHz could not accurately generate a sinusoidal wave having a frequency greater than 65 MHz.
- FIG. 1 illustrates the structure of a conventional NCO that generates a digital representation of a sinusoidal wave. As shown in FIG. 1,
sample phase generator 100 includesdelay 101,summer 102, and bit select 103.Sample phase generator 100 receivessystem clock 105 andfrequency word 106 as inputs.System clock 105 operates at a certain frequency, which is the maximum sampling frequency of the NCO.Frequency word 106 is a configurable parameter used to specify the desired output frequency. - In operation,
summer 102 receivesfrequency word 106 and the previous value fromdelay 101 as inputs. Each time system clock 105 clocks, the output fromsummer 102 is input into bit select 103 and back intodelay 101. Bit select 103 outputs the 8 most significant bits of the signal output fromsummer 102. - If coupled to a conventional digital-to-analog converter (DAC), the output from bit select103, as plotted with time, would be a stepped saw tooth waveform with a frequency equal to the selected output frequency. An example of this is saw
tooth waveform 107. However, a saw tooth waveform is typically not useful, and most NCOs include circuitry, such asconversion circuitry 104, that converts saw tooth waveform data into data that may be used to generate a more useful repeated waveform. The value output from thesample phase generator 100 represents the phase value of the more useful repeated waveform. Theconversion circuitry 104 then generates the value of the repeated waveform at that phase value. Such conversion circuitry may convert saw tooth waveform data into digital sinusoidal waveform data (represented generally by sinusoidal waveform 108), which represents the output of the NCO. When the output of theconversion circuitry 104 is sent to a DAC, the DAC will output a stepwise approximation of a sinusoidal wave at the desired output frequency. -
Conversion circuitry 104 may be, for example, a sine/cosine lookup table. In this instance,conversion circuitry 104 would include a series of entries that correspond to samples of a sinusoidal wave. In FIG. 1, the eight-bit output fromsample phase generator 100 may have 256 (i.e., 28) possible phase values. Accordingly, the lookup table would have 256 possible output values corresponding to the 256 possible input values. Limiting the lookup table to 256 possible output values decreases the size of the NCO as compared to NCOs that have lookup tables of more refined resolution. For example, if all 17 bits of the output fromsummer 102 were provided to theconversion circuitry 104, the conversion circuitry would need to handle 217 (i.e., 131,072) different input permutations using 131,072 different entries. This kind of lookup table would typically be too large to be practical. - The output repeated waveform has a frequency spectrum with a strong line at the desired output frequency, but also includes lines that are separated from multiples of the clock frequency by plus or minus the desired output frequency. For example, if an NCO with a system clock of 130 MHz were used to generate a sinusoidal wave at 15 MHz, the output would also include a strong frequency component at 15 MHz. However, there would also be frequency components at 145 MHz (i.e., 130 MHz plus 15 MHz) and 115 MHz (i.e., 130 MHz minus 15 MHz) and smaller frequency components at 275 MHz (i.e., 2 times 130 MHz plus 15 MHz) and 245 MHz (i.e., 2 times 130 MHz minus 15 MHz), and so forth. Typically, such spurious frequency components may be removed using a low pass filter with a sharp cutoff below half of the clock frequency.
- As the desired output frequency rises, the unwanted frequency that occurs at the clock frequency minus the desired output frequency draws closer to the desired output frequency. For example, if the clock frequency was 130 MHz and the desired output frequency was 60 MHz, there would be a spurious frequency component at 70 MHz (i.e., 130 MHz minus 60 MHz). The desired output frequency and the lowest spurious frequency component meet when the desired output frequency equals half of the clock frequency. In the example of an NCO with a system clock of 130 MHz, this would occur when the desired output frequency was 65 MHz. When this occurs, even a low pass filter with a very sharp cutoff cannot be used to remove spurious frequency components, because such a filter would remove desired frequency components as well. Thus, a digital representation of a sinusoidal wave at half the clock frequency or greater will not be sufficiently accurate.
- Current technology limits clock rates on NCOs to around 200 MHz. This limits the output frequency of accurately generated sinusoidal waves to around 100 MHz. However, in many instances, it would be of benefit to accurately generate a digital representation of a sinusoidal wave with an output frequency higher than 100 MHz. In the case of NCOs, which do not employ the latest technology, and thus have slower clock rates, it would also be of benefit to accurately generate digital representations of sinusoidal waves at greater than one half the frequency of the clock frequency. For example, one might want to generate a 100 MHz sinusoidal wave using an NCO with a system clock of 130 MHz.
- Therefore, what are desired are systems and methods for accurately generating a digital representation of a sinusoidal wave at greater than half the frequency of the sampling or clock frequency.
- In accordance with the present invention, an NCO receives data representing digital samples of a sinusoidal wave at the desired output frequency. When a digital representation of a sinusoidal wave is to be generated at a desired output frequency that is near to or greater than one half the sampling rate, the samples are calculated over multiple cycles of the sinusoidal wave. The calculated samples are then stored in a circular shift register. The number of samples to be taken and the number of cycles over which the samples are accumulated are calculated using the sampling rate (system clock frequency) and the desired output frequency.
- First, a greatest common factor of the sampling rate and specified frequency is calculated. For instance, if the sampling rate was 130 MHz and the specified frequency was 100 MHz, the greatest common factor would be 10. The number of samples that are to be buffered is calculated by dividing the sampling rate by the greatest common factor. In the given example, if the sampling rate was 130 MHz and the greatest common factor was 10, the number of samples would be thirteen. Also, the number of cycles over which the samples will be accumulated is calculated by dividing the desired output frequency by the greatest common factor. Returning to the example, if the desired output frequency is 100 MHz and the greatest common factor is 10, it will take ten cycles for the thirteen samples to be accumulated.
- In the example, thirteen samples will be calculated over a period of ten cycles and the thirteen samples will be stored in a circular shift register. In the example, since ten is a whole number, the value of samples from subsequent groups of ten cycles would be identical to those values sampled from the first ten cycles assuming no change in the desired output frequency. Since the sample values would be identical, once the first thirteen sample values are stored, no other sampling need be done. To output digital representations of a sinusoidal wave at 100 MHz, the thirteen stored values would be sequentially output to generate a sinusoidal waveform at the desired output frequency. This may continue until the NCO detects a change in the desired output frequency.
- Using the present invention, digital representations of sinusoidal waves may be accurately generated even when the desired output frequency is greater than one half of the sampling frequency. Also, the present invention is beneficial because it does not require many of the circuitries used in the conventional NCO implementation. Instead, the NCO in accordance with the present invention may use a system clock with a circular shift register. The values stored in the circular shift register may be pre-calculated and stored in the circular shift register, thus eliminating the requirement for a sample phase generator and conversion circuitry. In this manner, the principles of the present invention significantly reducing the complexity and size requirements of an NCO as compared to the conventional NCO implementation, while allowing for reliable generation of sinusoidal waves at greater than one half the sampling frequency.
- Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention. The features and advantages of the invention may be realized and obtained by means of the instruments and combinations particularly pointed out in the appended claims. These and other features of the present invention will become more fully apparent from the following description and appended claims, or may be learned by the practice of the invention as set forth hereinafter.
- In order to describe the manner in which the above-recited and other advantages and features of the invention can be obtained, a more particular description of the invention briefly described above will be rendered by reference to specific embodiments thereof which are illustrated in the appended drawings. Understanding that these drawings depict only typical embodiments of the invention and are not therefore to be considered to be limiting of its scope, the invention will be described and explained with additional specificity and detail through the use of the accompanying drawings in which:
- FIG. 1 is a block diagram illustrating some of the components and functionality of a conventional Numerically Controlled Oscillator.
- FIG. 2 is a block diagram illustrating some of the components and functionality that may be included in a Numerically Controlled Oscillator that embodies the present invention.
- FIG. 3 is a flow diagram illustrating a method whereby a digital representation of a sinusoidal wave may be generated.
- FIG. 4 illustrates a simulation plot of frequency spectrum generated by the Numerically Controlled Oscillator of FIG. 2.
- The present invention extends to both circuits and methods for accurately generating a digital representation of a sinusoidal wave even where the desired output frequency is greater than one half of the sampling frequency.
- Referring now to the figures, FIG. 2 is block diagram illustrating one embodiment of the present invention and FIG. 3 is a flow diagram illustrating a method whereby a digital representation of a sinusoidal wave may be generated in accordance with the present invention. In the following description of the present invention, reference will be frequently made to both FIG. 2 and FIG. 3.
- While illustrated embodiments of the present invention refer specifically to sinusoidal waves, it should be recognized that the present invention might also be used to generate digital representations of other types of repeating waveforms. Examples of such repeating waveforms include saw tooth waves, square waves, triangle waves, or any other waveform in which a series of values is repeated within a finite period of time.
- FIG. 2 illustrates some of the components that may be included in an NCO, which embodies the present invention. The NCO includes a
circular shift register 210 that stores a number of sequential samples of a sinusoidal waveform. The NCO receivessystem clock signal 205 and outputs one sample every clock cycle. The value of the samples may be calculated using the desired output frequency of the sinusoidal waveform, and the sample frequency (in this case, the system clock frequency). In one embodiment, the sample values are pre-calculated as described below with respect to act 301, act 302 and act 303 of FIG. 3. - In FIG. 3, as illustrated in
acts system clock 205, by the greatest common factor of the sampling rate and a desired output frequency. - The number of cycles needed to accumulate the number of samples may be calculated by dividing the desired output frequency by the greatest common factor of the sampling rate and the desired output frequency. For example, in an NCO including
system clock 205 operating at 130 MHz, assume that the NCO of FIG. 2 is to generate a desired output frequency of 100 MHz. The greatest common factor between 100 MHz and 130MHz is 10 MHz. Dividing 130 MHz by 10 MHz results in 13. This means that 13 samples will need to be taken. Dividing 100 MHz by 10 MHz results in 10. This means that 10 cycles are needed to accumulate the 13 samples. - In
act 303, the method generates the number of samples within the time span represented by the number of cycles. This may be accomplished, for example, by determining the total phase of the cycles over which samples are to be taken and dividing by the number of samples. For example, if there were ten cycles, the total phase would be 20π radians (i.e., 10 cycles times 2π radians/cycle). Thus, the division would be 20π radians divided by 13 samples resulting in a phase change of approximately 1.538π radians per sample. Then, the sine values for the corresponding phases are calculated. Table 1 shows the samples that would be calculated when a system with a 130 MHz clock is used to generate a desired output frequency of 100 MHz.TABLE 1 Memory Locations and Values of Samples as Received Memory Sample Sine Location Number Absolute Phase Relative Phase Value A1 1 0 0 0 A2 2 (10/13) * 2π = 1.538π −0.993 1.538π A3 3 (20/13) * 2π = (3.077π − 2π) = −0.239 3.077π 1.077π A4 4 (30/13) * 2π = (4.615π − 4π) = +0.935 4.615π 0.615π A5 5 (40/13) * 2π = (6.154π − 6π) = +0.465 6.154π 0.154π A6 6 (50/13) * 2π = (7.692π − 6π) = −0.823 7.692π 1.692π A7 7 (60/13) * 2π = (9.231π − 8π) = −0.663 9.231π 1.231π A8 8 (70/13) * 2π = (10.769π − 10π) = +0.663 10.769π 0.769π A9 9 (80/13) * 2π = (12.308π − 12π) = +0.823 12.308π 0.308π A10 10 (90/13) * 2π = (13.846π − 12π) = −0.465 13.846π 1.846π A11 11 (100/13) * 2π = (15.385π − 14π) = −0.935 15.385π 1.385π A12 12 (110/13) * 2π = (16.923π − 16π) = +0.239 16.923π 0.923π A13 13 (120/13) * 2π = (18.462π − 18π) = +0.993 18.462π 0.462π - Referring to Table 1, the memory location column represents the corresponding memory location in
circular shift register 210. The phase values are the phase of the calculated sample. The first sample number is assumed to have a phase of zero. After samples are calculated, they are stored in a memory location (act 304) such as memory locations A1 through A13 ofcircular shift register 210. - Once these values are stored, the NCO is configured to output the digital representation of the sinusoidal wave at the desired output frequency. Specifically, one sample is output every clock cycle starting with the value in memory location A1, then A2 and so on until A13, at which point the output returns back to A1 to repeat the process (see
sinusoidal waveform data 208 of FIG. 2). In this manner, the samples are output to generate an accurate representation of a sinusoidal wave (act 305). - By repeating the sampled output in this manner, a surprising result is obtained. Specifically, the forced repetition of the sampled values results in an output waveform that has strong frequency components at the desired output frequency. The following is the text of a MATLAB® program that illustrates this principle.
1) ph(1:2100)=0; 2) ph(1:13)=pi*[0 1.538 1.077 0.615 0.154 1.692 1.231 0.769 0.308 1.846 1.385 0.923 0.462]; 3) for i=14:2100 4) m=mod(i,13); 5) if m==0 6) ph(i)=ph(13); 7) else 8) ph(i)=ph(mod(i,13)); 9) end 10) end 11) for k=1:2100 12) ysin(k)=sin(ph(k)); 13) end 14) ysin_8=round(ysin.*2 8); 15) ysin_8_fft=fft(ysin_8,2048); 16) ysin_8_norm=10*log((abs(ysin_8_fft))/max(abs(ysin_8_fft))); 17) for i=1:2048 18) if i<=2048/2 19) f(i)=(i−1)*(130e6/(2048*pi)); 20) else 21) f(i)=i*(130e6/(2048*pi))−130e6/pi; 22) end 23) end 24) plot(f,ysin_8_norm,‘b-’); - In this program, “ph” is a vector of phase values in which the thirteen relative phase values of Table 1 are repeated every ten cycles of the repeated waveform.
Line 1 initializes 2100 sample values of the vector “ph” to zero.Line 2 assigns the first thirteen values of vector “ph” to the thirteen relative phase values from Table 1. Line 3 throughline 10 assigns the remaining values of the phase vector “ph” so that the thirteen values are repeated in accordance with the principles of the present invention. Line 11 through line 13 assigns a corresponding sine value for each phase value of the vector “ph” to form a sine value vector “ysin”. Line 14 assigns an 8-bit quantized version of each sine value for the vector “ysin” to a new vector “ysin —8”. Line 15 assigns a corresponding discrete Fourier transform value of the vector “ysin —8”to new vector “ysin—8_fft” that represents the frequency components of the vector “ysin —8”. Line 16 normalizes the vector “y_sin_fft” to a new normalized frequency vector “ysin—8_norm”. Lines 18 through 23 assign frequency values to a vector “f”. Line 24 plots the normalized frequency spectrum in decibels represented by “ysin—8_norm” on the vertical axis with frequency in Hz on the horizontal axis. - The plot generated by line24 is illustrated by the
plot 400 of FIG. 4. As illustrated in FIG. 4, there is a strong frequency component exactly at 100 MHz, the desired output frequency, despite having a sampling frequency of only 130 MHz. As one varies from the desired output frequency, the signal power substantially diminishes. The anomalies at 402 a through 402 j are generated by the 8-bit quantization of the sine values. FIG. 4 makes clear that by sampling a fixed number of cycles a fixed number of times, the NCO of FIG. 2 may obtain a clear sinusoidal signal at 100 MHz, well over half the clock frequency of 130 MHz. - In addition to producing an accurate sinusoidal wave at more than one half of the sampling frequency, the principles of the present invention also allow for a much smaller design of the NCO. Essentially, all of the components of the conventional NCO are replaced with a circular shift register coupled to a clock input signal and having specially calculated values stored in the circular shift register.
- The present invention may be embodied in other specific forms without departing from its spirit or essential characteristics. The described embodiments are to be considered in all respects only as illustrative and not restrictive. The scope of the invention is, therefore, indicated by the appended claims rather than by the foregoing description. All changes, which come within the meaning and range of equivalency of the claims, are to be embraced within their scope.
- What is claimed and desired to be secured by United States Letters Patent is:
Claims (20)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US09/893,054 US6518802B1 (en) | 2001-06-27 | 2001-06-27 | Circuits and methods for generating an accurate digital representation of a sinusoidal wave |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US09/893,054 US6518802B1 (en) | 2001-06-27 | 2001-06-27 | Circuits and methods for generating an accurate digital representation of a sinusoidal wave |
Publications (2)
Publication Number | Publication Date |
---|---|
US6518802B1 US6518802B1 (en) | 2003-02-11 |
US20030030469A1 true US20030030469A1 (en) | 2003-02-13 |
Family
ID=25400948
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US09/893,054 Expired - Lifetime US6518802B1 (en) | 2001-06-27 | 2001-06-27 | Circuits and methods for generating an accurate digital representation of a sinusoidal wave |
Country Status (1)
Country | Link |
---|---|
US (1) | US6518802B1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040230414A1 (en) * | 2003-05-12 | 2004-11-18 | International Business Machines Corporation | Method for verification of hardware designs with multiple asynchronous frequency domains |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6774832B1 (en) * | 2003-03-25 | 2004-08-10 | Raytheon Company | Multi-bit output DDS with real time delta sigma modulation look up from memory |
US7653146B2 (en) * | 2005-09-06 | 2010-01-26 | Liquid Xstream Systems Inc. | System and method for delivery of video, content on demand and IP packets |
US7765453B2 (en) * | 2006-12-13 | 2010-07-27 | Nortel Networks Limited | Early termination controller for iterative FEC decoders and method therefor |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5363443A (en) * | 1993-12-08 | 1994-11-08 | At&T Bell Laboratories | Differing frequency sine wave generation from a look-up table |
US5936438A (en) * | 1997-10-01 | 1999-08-10 | Ford Motor Company | Digital oscillator using lookup table with multiple cycles |
US6167102A (en) * | 1998-08-03 | 2000-12-26 | Telefonaktiebolaget Lm Ericsson (Publ) | System and method employing a reduced NCO lookup table |
-
2001
- 2001-06-27 US US09/893,054 patent/US6518802B1/en not_active Expired - Lifetime
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040230414A1 (en) * | 2003-05-12 | 2004-11-18 | International Business Machines Corporation | Method for verification of hardware designs with multiple asynchronous frequency domains |
Also Published As
Publication number | Publication date |
---|---|
US6518802B1 (en) | 2003-02-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH03253108A (en) | Direct digital synthesizer and signal generation | |
US5459680A (en) | Method and apparatus for spur-reduced digital sinusoid synthesis | |
US6337643B1 (en) | Method and device for generating a random signal and digital-to-analog converting systems using same | |
EP1828867B1 (en) | A digital frequency synthesiser and a method for producing a frequency sweep | |
US8732510B2 (en) | Digital forced oscilation by direct digital synthesis to generate pulse stream having frequency relative to a reference clock signal and to eliminate an off-chip filter | |
AU625793B2 (en) | Phase accumulator with dithered incrementing of accumulation due to fine phase components | |
EP0462714A2 (en) | Generation of phase related waveforms | |
US6518802B1 (en) | Circuits and methods for generating an accurate digital representation of a sinusoidal wave | |
US5619535A (en) | Digital frequency synthesizer | |
EP0391524B1 (en) | Phase accumulation dual tone multiple frequency generator | |
US5053982A (en) | Variable modulus digital synthesizer | |
Vankka | A direct digital synthesizer with a tunable error feedback structure | |
US7209937B2 (en) | Method and apparatus for generation of arbitrary mono-cycle waveforms | |
US5952876A (en) | Filter device | |
WO2003027847A1 (en) | Method and apparatus for direct digital synthesis of frequency signals | |
KR100656318B1 (en) | Numerically controlled oscillating method and apparatus for generating a digital sine waveform | |
EP1126359B1 (en) | Frequency synthesizer and gaussian noise generator using the same | |
Xiao et al. | An algorithm for selecting sampling rate in arbitrary waveform generator | |
Lim et al. | A numerically controlled oscillator with a fine phase tuner and a rounding processor | |
US7321911B2 (en) | Method of generating sinusoidal signal | |
CN1797955B (en) | Multi-stage digital counting oscillator | |
JP2004282612A (en) | Data processor and data processing method | |
EP0084562A1 (en) | Multi-tone signal generator. | |
JPH09261015A (en) | Frequency variable pulse waveform generating circuit | |
JPH05283985A (en) | Digital frequency synthesizer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: WEBTV NETWORKS, INC. (MICROSOFT), CALIFORNIA Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:TU, DAN Q.;COFFIN, LOUIS F., III;REEL/FRAME:011947/0404 Effective date: 20010622 |
|
STCF | Information on status: patent grant |
Free format text: PATENTED CASE |
|
CC | Certificate of correction | ||
FPAY | Fee payment |
Year of fee payment: 4 |
|
FPAY | Fee payment |
Year of fee payment: 8 |
|
AS | Assignment |
Owner name: MICROSOFT CORPORATION, WASHINGTON Free format text: MERGER;ASSIGNOR:WEBTV NETWORKS, INC.;REEL/FRAME:033025/0867 Effective date: 20020628 |
|
FPAY | Fee payment |
Year of fee payment: 12 |
|
AS | Assignment |
Owner name: MICROSOFT TECHNOLOGY LICENSING, LLC, WASHINGTON Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:MICROSOFT CORPORATION;REEL/FRAME:034541/0001 Effective date: 20141014 |