Chapter 4 Arb Operation
DAQArb 5411 User Manual 4-10
©
National Instruments Corporation
Frequency Resolution and Lookup MemoryFor DDS-based waveform generation, you must first load one cycle of
the desired waveform into the lookup memory. The size of the DDS
lookup memory is 16,384 samples. Each sample is 16 bits wide.
Note: One cycle of the waveform buffer loaded into the memory should be exactly
equal to the size of the DDS lookup memory.
Fc = update clock for the accumulator
Set the DAQArb 5411 at Fc = 40 MHz.
Fa = desired frequency of the output signal
N = accumulator size in bits
Set the DAQArb 5411 at N = 32.
FCW = frequency control word to be loaded into the accumulator
to generate Fa.
This is calculated using the formula:
FCW = (2N * Fa) / Fc
The frequency resolution is then given by:
frequency resolution = Fc / 2N = (40 x 106) / 232 = 9.31322 mHz
For example, if you need to generate a frequency of 10 MHz, then the
FCW is (232 * 10E6)/40E6, which equals 1,073,741,824. If you need to
generate a frequency of 1 Hz, then the FCW is (232 * 1)/40E6, which
equals 107.
Note: On the DAQArb 5411, the maximum frequenc y of a si ne wa ve you ca n
generate reliably is limited to 16 MHz. Other waveforms like square or
triangular waves are limited to 1 MHz.
You can also synthesize arbitrary waveforms using DDS. Generating
arbitrary waveforms this way will be very limited; you are restricted to
a single buffer, and this buffer should be exactly equal to the size of the
lookup memory.
To update every next sample of an arbitrary waveform in lookup
memory at the maximum clock rate of 40 MHz, write an FCW value of
2(N-L), where N is the size of the accumulator and L is the number of
address bits of lookup memory (L = 14 bits for the AT-5411 and the
PCI-5411). Thus, the FCW value for the DAQArb 5411 equals 262,144.