Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 rating:
 1 out of 5     Rate this Document

Toggling Rates for Digital Devices

Hardware: Digital I/O (DIO)

Problem:
The specifications for my digital device state that the maximum clock rate of my device is 50 MHz. However, when I output a toggled signal (0, 1, 0, 1, …), the frequency that I’m seeing on my oscilloscope is only half of that maximum clock rate. Why is this so?

Solution:
Two key terms to differentiate right away are the clock rate and toggle rate. They are defined in the context of digital outputs as follows:

  • Clock rate: clock rate is the frequency of the clock on which a device updates the value (i.e. high or low) on a channel.
  • Toggle rate: is the frequency of the generated signal if the data written to the channel toggles every sample.
For example, suppose you are running a PCIe-6537 at its maximum clock rate, 50 MHz. You write a digital pattern to the channel of 0, 1, 0, 1, etc. Since toggling a line requires two samples, one low and one high, the maximum toggling rate will be half of the maximum clock rate. In this case, the maximum toggle rate of the PCIe-6537 is 25 MHz. This is demonstrated below:

The important thing to remember is the difference between the clock rate and the toggle rate. If you are trying to generate clock signals on the digital data lines, the maximum toggle rate (one half of maximum clock rate) will be the maximum toggle rate.  Keep in mind, you can export your sample clock to another device using the DAQmx Export Signal.vi or niHSDIO Export Signal.vi to export the sample clock to a PFI line or another valid terminal. 

For more information on the High Speed Digital I/O product line, please refer to the product pages linked below:


Related Links:
High Speed Digital I/O


Attachments:


togglerate.JPG - togglerate.JPG
togglerate1.JPG - togglerate1.JPG


Report Date: 12/01/2006
Last Updated: 12/04/2006
Document ID: 440HJLJQ

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit