02-17-2009
05:05 PM
- last edited on
05-06-2024
03:16 PM
by
Content Cleaner
Please post feedback, questions, and comments on the JTAG Digital Waveform Library in this thread.
- David
(posted by Christian on behalf of David)
05-04-2009 01:47 PM
Hi Christian,
A customer of mine is looking into a low cost, efficient test platfform to deploy and test embedded systems through JTAG. Questions: is it really possible to implement such solution using one of our M Series device with clocked DIO? Is there any example showing the integration between this library and the DAQmx driver API?
I'm sort of new to JTAG, so any info would be really appreciated.
Thanks
05-07-2009
01:30 PM
- last edited on
05-06-2024
03:17 PM
by
Content Cleaner
Hi all -
I've published a new Reference Application that should prove useful when working with the IDW, JDW, and SDW libraries: Serial Protocol Communication with Digital Waveform Devices. It explains how to configure an NI-HSDIO or NI-DAQmx based device to work with one of these libraries. Check it out, and please rate it!
06-17-2009 01:22 PM
Hi,
My company has an NI PXI system with 2 PXI- 6509 DIO controllers. We would like to perform JTAG and SPI with these devices to test various systems.
The speed is not terribly important (we understand that the 6509 is has slower switching time), but would like a JTAG and SPI VI library that supports this 6509 board.
Can JTAG Digitial Waveform Library work in this environment, or can you recommend a different approach.
Thanks
Aaron
06-17-2009 01:32 PM
Hi Aaron -
That exact same question -- using a 6509 for serial protocol communication -- was asked over in the SDW thread. You can read the dialogue I had with "sugeo" there. In short, the JDW library is designed to work with a hardware-clocked DIO device and can't be used with the 6509. You'll have to write code to toggle the I/O lines manually from your software application, similar to TomW [DE]'s SPI hack.
11-13-2009 01:26 PM
Hello,
I'm wondering what speeds are reachable with this solution..
Let's say I use a NI-PCIe6535 (10MHz HDSIO), well it is in the HSDIO section but it actually uses DAQ drivers if I understood correctly.
What is the data/clock rate I can reach while using the JDW.
Is this the max clock speed of the 6535?
And for the SPI/I2C Waveform libs?
11-13-2009 01:50 PM - edited 11-13-2009 01:55 PM
Hi AintLifeGrand -
You can actually figure this out without needing any hardware. Just open up any JDW or SDW example program and enter the smallest delays possible in the "timing (ns)" cluster. (A 10 MHz sample clock has a period of 100 ns, so this is your smallest value.) Then step the serial clock (TCK or SCLK) frequency up to the maximum value you can get without throwing an error. I found that JDW can create a 5 MHz JTAG waveform with a 10 MHz sampling device.
You can't use IDW with the 6535. Only the 6547/8 and 6551/2 can be used with IDW. These devices support per-cycle tristating.
Remember also that you'll have to remove the "TDO" channel from the waveform when you use JDW with a 6535 device (or "MISO", in SDW).
11-13-2009 02:12 PM
Hmm, I am reading these pages for a couple of weeks now, and I believe that I previously did see examples of I2C 'emulated' with the 6535? Has the waveform library, or the "reference manual" been changed in the meantime?
PS. Can't I read in the TDO data? Or do I just have to remove from the waveform because it is using the hardware compare option?
11-13-2009
02:25 PM
- last edited on
05-06-2024
03:18 PM
by
Content Cleaner
Hi AintLifeGrand-
The only edit was to remove the 6533/4 from the list of compatible devices after discovering that it lacks the necessary trigger/event routing capability. Other than that, only grammatical changes have been made to date. IDW relies wholly on per-cycle tristating to create an open-drain output. You can't have bidirectional communication on an I2C bus without it. The 6535 doesn't have this feature, so it can't be used with IDW.
P.S. You just have to remove the TDO channel from the waveform because it uses HWC bit states (X, L, H). You can still configure the DI task to read in the data, though parsing through it won't be as easy or as computationally efficient as it is with HWC. See the reference programs in Serial Protocol Communication for an example.
11-13-2009 03:01 PM
Hello David,
Thanks for the quick response.
The I2C functionality I was talking about was in the IDW forum topic (The following is your text) Quote :
You may be able to edit the IDW source code to work with a DAQmx-based device, but you'll have to work with only a subset of the functionality. Here are some pitfalls and workarounds I can see:
It's not an impossible task, but it's largely simplified by the 655x's features.
So that is what I was talking about, so let's call it a glitch in my brains 'lookup table'.
Thnx for the quick response.
Kind Regards, Danny