ArticleslgStudy

science

Numerically controlled oscillator

Numerically controlled oscillator is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Numerically controlled oscillator rather than just read about it. In short: A numerically controlled oscillator (NCO) is a digital signal generator which creates a synchronous (i.e., clocked), discrete-time, discrete-valued representation of a waveform, usually sinusoidal. NCOs are often used in conjunction with a digital-to-analog converter (DAC) at the output to create a direct digital synthesizer (DDS).

Numerically controlled oscillator — main illustration
Numerically controlled oscillator — illustration

Key takeaways

  • Numerically controlled oscillator belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Numerically controlled oscillator to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Numerically controlled oscillator from memory before moving on to harder problems.

Reference excerpt

A numerically controlled oscillator (NCO) is a digital signal generator which creates a synchronous (i.e., clocked), discrete-time, discrete-valued representation of a waveform, usually sinusoidal. NCOs are often used in conjunction with a digital-to-analog converter (DAC) at the output to create a direct digital synthesizer (DDS). Numerically controlled oscillators offer several advantages over other types of oscillators in terms of agility, accuracy, stability and reliability. NCOs are used in many communications systems including digital up/down converters used in 3G wireless and software radio systems, digital phase-locked loops, radar systems, drivers for optical or acoustic transmissions, and multilevel FSK/PSK modulators/demodulators.

Operation An NCO generally consists of two parts:

A phase accumulator (PA), which sums an input frequency control word to its stored output value (the "phase word") every clock cycle. A phase-to-amplitude converter (PAC), which maps the phase word to a corresponding amplitude value. This mapping is typically implemented by using the phase word as an address for a waveform look-up table (LUT). Sometimes interpolation is used with the look-up table to provide better accuracy and reduce phase error noise. Other mapping methods, including mathematical algorithms such as power series may be used, particularly in software NCOs.

When clocked, the phase accumulator (PA) outputs a sequence of samples from a modulo-2N sawtooth waveform, which are converted by the phase-to-amplitude converter (PAC) to sinusoid samples, 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 address width of the PAC look-up table. For a PAC address width of M, the PA output word must be truncated to M bits as shown in Figure 1. However, the truncated bits can be used for interpolation. Truncation of the phase output word does not affect frequency accuracy, but it does produce a time-varying, periodic phase error, which is a primary source of spurious products. Spurious products also result from the finite word length of the PAC output (amplitude) word. The frequency accuracy relative to the clock frequency is limited only by the precision of the arithmetic used to compute the phase. NCOs are phase- and frequency-agile, and can be trivially modified to produce a phase-modulated or frequency-modulated output by summation at the appropriate node, or provide quadrature outputs as shown in the figure.

Phase accumulator A binary phase accumulator consists of an N-bit binary adder and a register configured as shown in Figure 1. Each clock cycle produces a new N-bit output consisting of the previous output obtained from the register summed with the frequency control word (FCW) which is constant for a given output frequency. The resulting output waveform is a staircase with step size ΔF, the integer value of the FCW. In some configurations the phase output is taken from the output of the register, which introduces a one clock cycle latency but allows the adder to operate at a higher clock rate.

The adder is designed to overflow when the sum of the absolute value of its operands exceeds its capacity (2N−1). The overflow bit is discarded so the output word width is always equal to its input word width. The remainder ϕn, called the residual, is stored in the register and the cycle repeats, starting this time from ϕn (see figure 2). Since a phase accumulator is a finite-state machine, eventually the residual at some sample K must return to the initial value ϕ0. The interval K is referred to as the grand repetition rate (GRR) given by

GRR=2NGCD(ΔF,2N) where GCD is the greatest common divisor function. The GRR represents the true periodicity for a given ΔF which for a high resolution NCO can be very long. Usually we are more interested in the operating frequency determined by the average overflow rate, given by

Fout=ΔF2NFclock (1) The frequency resolution, defined as the smallest possible incremental change in frequency, is given by

Fres=Fclock2N (2) Equation (1) shows that the phase accumulator can be thought of as a programmable non-integer frequency divider of divide ratio ΔF/2N.

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 2M 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, trigonometric approximations and methods which take advantage of the quadrature symmetry exhibited by sinusoids. Alternatively, the PAC may consist of random access memory which can be filled as desired to create an arbitrary waveform generator.

Spurious products Spurious products are the result of harmonic or non-harmonic distortion in the creation of the output waveform due to non-linear numerical effects in the signal processing chain. Only numerical errors are covered here. For other distortion mechanisms created in the digital-to-analog converter, see the corresponding section in the direct-digital synthesizer article.

Phase truncation spurs The number of phase accumulator bits of an NCO (N) is usually between 16 and 64. If the PA output word were used directly to index the PAC look-up table, an untenably high storage capacity in the ROM would be required. As such, the PA output word must be truncated to span a reasonable memory space. Truncation of the phase word causes phase modulation of the output sinusoid, which introduces non-harmonic distortion in proportion to the number of bits truncated. The number of spurious products created by this distortion is given by:

nW=2WGCD(ΔF,2W)−1 (3) where W is the number of bits truncated. In calculating the spurious-free dynamic range, we are interested in the spurious product with the largest amplitude relative to the carrier output level given by:

ζmax=2−MπGCD(ΔF,2W)sin⁡(π⋅2−PGCD(ΔF,2W)) where P is the size of the phase-to-amplitude converter's lookup table in bits, i.e., M in Figure 1. For W > 4,

… excerpt ends here. Continue reading the full article.

Illustrations

Numerically controlled oscillator: Figure 2: Normalized phase accumulator output
Figure 2: Normalized phase accumulator output

Worked examples

Example 1 — a first encounter with Numerically controlled oscillator

Start with the simplest possible case. Write down what Numerically controlled oscillator claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Numerically controlled oscillator before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Numerically controlled oscillator ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Numerically controlled oscillator

In research
Numerically controlled oscillator appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Numerically controlled oscillator in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Numerically controlled oscillator is common in secondary-school and first-year university syllabi. It links to neighbouring topics Digital electronics, Digital signal processing, Electronic oscillators, so understanding it makes those chapters shorter.
In everyday life
Look for Numerically controlled oscillator outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Numerically controlled oscillator” →

How to study Numerically controlled oscillator in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Numerically controlled oscillator means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Numerically controlled oscillator out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Numerically controlled oscillator in simple terms?

A numerically controlled oscillator (NCO) is a digital signal generator which creates a synchronous (i.e., clocked), discrete-time, discrete-valued representation of a waveform, usually sinusoidal. NCOs are often used in conjunction with a digital-to-analog converter (DAC) at the output to create a…

Why does Numerically controlled oscillator matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Numerically controlled oscillator?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Numerically controlled oscillator.

Tags

  • Digital electronics
  • Digital signal processing
  • Electronic oscillators
  • Synthesizers

Keep exploring