Quantcast
Channel: Digital I/O topics
Viewing all articles
Browse latest Browse all 2167

SPI Communication using PXIe-6556

$
0
0

I routinely have to communicate with various ASICs using mostly the SPI interface and occasionally the I2C bus.  Typical usage would be to write to programming registers in the ASIC or reading back the register values to update fields in my LabVIEW code.  I have built LabVIEW software to do this using the HSDIO driver VIs.  The software is rather complex, and I was looking for a way to simplify it when I came across the SPI Digital Waveform Reference Library. 

 

It was pretty easy and straightforward to put together a VI to write the bits out to the ASIC.  My problem is that I don't see a way to read back the register values from the ASIC and post the values.  The Swap.vi can handle full duplex communication, but does not seem to return the waveform read back from the ASIC.   Nor does the Receive.vi.  Using the HSDIO driver I setup a generation and acquisition session, and program the ASIC for a read operation.  The acquisition session is triggered from the generation session, and then fetches the waveform data from the 6556 memory.  From there I can parse the bits and ascertain what the individual register values are. 

 

My question then is how do I do this using the SPI library?


Viewing all articles
Browse latest Browse all 2167

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>