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

How Can I Communicate With I2C, SPI, JTAG Devices Using National Instruments Digital I/O Device ?

Hardware: Digital I/O (DIO)>>High-Speed>>PXIe-6552

Problem:
How Can I Communicate With I2C, SPI, JTAG Devices Using National Instruments Digital I/O Device?

Solution:
You can use any National Instruments hardware-timed digital I/O device to communicate with SPI and JTAG devices. To communicate with I2C devices, the digital I/O device needs additional per-cycle tri-stating feature to generate the waveform, like 655X series.

There are two steps to realize such application in LabVIEW. Firstly, you need to generate the protocol packets in software, and then use digital I/O devices to generate the waveform of packets in real-world. NI Systems Engineering group has developed some reference application for these three common protocols. You can use the linked Digital Waveform Libraries to generate the packets and then generate the waveform by NI-HSDIO or NI-DAQ devices. In the linked Serial Protocol Communication Reference Design for Digital Waveform Devices, there are examples for generating protocol packets using NI-HSDIO and NI-DAQ devices.

In Addition, the 655X digital I/O solution for these protocols communication does not support the recognition and response of the acknowledge in hardware. However, this feature is not typically required in testing setups. For recognition and response in hardware of the acknowledge bit, you will need to look at one of our R series cards with a programmable FPGA.

Related Links:
Developer Zone Example: Serial Protocol Communication with Digital Waveform Devices
Developer Zone Example: I2C Digital Waveform (IDW) Library
Developer Zone Example: SPI Digital Waveform (SDW) Library
Developer Zone Example: JTAG Digital Waveform (JDW) Library


Attachments:





Report Date: 05/21/2009
Last Updated: 06/04/2009
Document ID: 4XKLJB31

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