Content deleted Content added
lighter correction |
m compound modifier |
||
(6 intermediate revisions by 5 users not shown) | |||
Line 1:
{{short description|Digital signal generator}}
A '''numerically
Numerically
==Operation==
Line 11:
*A ''phase-to-amplitude converter'' (PAC), which uses the phase accumulator output word (phase word) usually as an index into a waveform [[look-up table]] (LUT) to provide a corresponding amplitude sample. Sometimes [[linear interpolation|interpolation]] is used with the look-up table to provide better accuracy and reduce phase error noise. Other methods of converting phase to amplitude, including mathematical algorithms such as [[power series]] can be used, particularly in a software NCO.
[[Image:Generic NCO.png|frame|Figure 1: Numerically
When clocked, the phase accumulator (PA) creates a [[modulo operation|modulo]]-2<sup>N</sup> [[sawtooth wave]]form which is then converted by the phase-to-amplitude converter (PAC) to a sampled sinusoid, where N is the number of bits carried in the phase accumulator. N sets the NCO frequency resolution and is normally much larger than the number of bits defining the memory space of the PAC [[look-up table]]. If the PAC capacity is 2<sup>M</sup>, the PA output word must be truncated to M bits as shown in Figure 1. However, the truncated bits can be used for interpolation. The truncation of the phase output word does not affect the frequency accuracy but produces a time-varying periodic phase error which is a primary source of spurious products. Another spurious product generation mechanism is finite word length effects of the PAC output (amplitude) word.<ref name="kroupa">{{cite book |last=Kroupa |first=V. F. |title=Direct Digital Frequency Synthesizers |publisher=IEEE Press |year=1999 |isbn=0-7803-3438-8}}</ref>
Line 22:
[[Image:Phase Accum Graph.png|frame|Figure 2: Normalized phase accumulator output]]
The adder is designed to overflow when the sum of the [[absolute value]] of its operands exceeds its capacity (2<sup>N</sup>−1). The overflow bit is discarded so the output word width is always equal to its input word width. The remainder <math>\phi _n</math>, called the residual, is stored in the register and the cycle repeats, starting this time from <math>\phi _n</math> (see figure 2).<ref name="Grzeg"/> Since a phase accumulator is a [[finite
:<math>\mbox{GRR}=\frac{2^N}{\mbox{GCD}(\Delta F,2^N)}</math>
Line 35:
==Phase-to-amplitude converter==
The phase-amplitude converter creates the sample-___domain waveform from the truncated phase output word received from the PA. The PAC can be a simple [[read only memory]] containing 2<sup>M</sup> contiguous samples of the desired output waveform which typically is a sinusoid. Often though, various tricks are employed to reduce the amount of memory required. This include various trigonometric expansions,<ref>{{ cite patent | inventor-last = Miller | inventor-first = B. M. | issue-date = October 14, 2008 | title = Numerically controlled oscillator and method of operation | country-code = US | patent-number = 7437391 }}</ref> trigonometric approximations<ref name="Grzeg">{{
==Spurious products==
Line 66:
==See also==
* [[Direct digital synthesis]] (DDS)▼
* [[Digital-to-analog converter]] (DAC)
* [[Digitally controlled oscillator]] (DCO)
▲* [[Direct digital synthesis]] (DDS)
==References==
Line 75:
{{good article}}
{{DEFAULTSORT:Numerically
[[Category:Digital signal processing]]
[[Category:Synthesizers]]
|