10-18-2006 03:43 PM
10-19-2006
01:44 PM
- last edited on
02-12-2025
01:43 PM
by
Content Cleaner
Hey Dean,
I believe using this device for SPI will not be easy. Although I am including some workaround on the problems you mention you might want to consider using the USB-8451 (https://www.ni.com/en-us/support/model.usb-8451.html) or directly FPGA.
First the strobe IS available for acquisition but not generation. You can confirm this on the help file (located in Start»All Programs»National Instruments»NI-HSDIO»Documentation»NI Digital Waveform help) on the clock sources of the device section.
To control this clock with the PFI line you will need to use triggering and retrigger each time you stop it. This can be done with scripting.
Can you provide more information in why this need to be implemented with HSDIO?
Regards,
Yardov
10-23-2006 07:34 AM
10-23-2006 09:29 AM
10-23-2006 10:10 AM
10-23-2006 10:42 AM
Dean,
Unfortunately, you have to get the ADE involved in order to do the deserialization. If you run the acquisition using just a 2 MHz clock, for example, you'll sample the data ~4 times for each SCK period (could get 3, may get 5 depending on frequency mismatch between 500k and 2M). Since the timing error would be generated on the first or last of these samples, you can throw them away and only analyze the middle sample(s) since we can guarantee that they will be correct. If you capture the SCK as data, you can then use this to qualify the data further.
Once you deserialize and interprete the data, you can use the "niHSDIO Configure Waveform To Generate" function to specify which predownloaded waveform you need to generate as a response.