Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Tutorial
NI Supported: Yes
Publish Date: Nov 15, 2007

Advanced Features of NI-HSDIO: Double Data Rate

0 ratings | 0.00 out of 5
Print

Introduction

As clock speeds and data rates continue to increase, designers of digital integrated circuits are creating new ways to maximize the rate of data being sent into and out of digital devices. One such method is known as double data rate (DDR). With single data rate (SDR) devices, data is latched on either the rising or falling edges of the Sample clock. A DDR device latches data on both the rising and falling edges of the Sample clock, effectively doubling the data transfer rate without increasing the clock speed. This document describes DDR and its use with National Instruments digital waveform generator/analyzer devices.

DDR

When the data rate multiplier is configured for DDR operation, NI digital waveform generator/analyzer devices generate or acquire data twice per Sample clock period. The digital waveform generator/analyzer trades channel count for data rate by generating or acquiring samples on half the number of channels but at twice the rate. The phase relationship of the data to the Sample clock is determined by the data position. While you can configure the data rate multiplier for acquisition and generation separately, you cannot have both SDR channels and DDR channels in the same direction.

As noted above, when using DDR, the main consideration is data width. Data width is a function of your data rate multiplier. Since data width refers to how large your sample is in bytes, using DDR mode effectively halves your allowable data width. For example, on a device with 16 channels, you can generate or acquire data on all 16 channels when using SDR. For the same device with its data rate multiplier configured for DDR, you can generate on only eight channels (channels 0-7) and acquire on the other eight (8-15).

The following figure shows a comparison of SDR and DDR:

Notice how the data output is generated on both the rising and falling edges of the clock when in DDR mode.

Configuring DDR on NI 656x Devices

Native DDR is currently only available on NI 656x devices. For information about setting up a non-native DDR acquisition or generation with NI 654x and NI 655x devices, refer to the following Application Note:

Developer Zone Tutorial: Generating Double Data Rate Waveforms with NI Digital Waveform Generator/Analyzers

To configure the NI 656x device for DDR generation or acquisition in LabVIEW, use the NI-HSDIO property node and select Advanced >> Data Rate Multiplier and set it to Double Data Rate or when using the device in a C/C++ environment set the NIHSDIO_ATTR_DATA_RATE_MULTIPLIER attribute to 2.

For additional information on using DDR, refer to the NI Digital Waveform Generator/Analyzer Help.

    
0 ratings | 0.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This tutorial (this "tutorial") was developed by National Instruments ("NI"). Although technical support of this tutorial may be made available by National Instruments, the content in this tutorial may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this content with each new revision of related products and drivers. THIS TUTORIAL IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).