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

NI's SPI FPGA IP interfaced with an ADC slave

$
0
0

I have been following two forum threads to convert NI's SPI FPGA implementation to the myRIO-1950 microcontroller. Tutorial 1 gives the example code written for the compactRIO architecture. Tutorial 2 explains how to utilize it in different microcontrollers such as the myRIO family.

So far the FPGA build compiles successfully and no errors are given at run time.

The micro-controller is interfaced with one Intan technologies RHD 2132 (32-channel ADC) with 16-bit frame SPI. CPHA and CPOL are both 0 (SPI mode 0), most significant bit first.

I have been struggling for the past days to use the IP. The READ_SOMETHING VI includes the way I'm trying to initialize communication with the IC. Does anyone with experience with this IP have any pointers or examples on how to initialise a two way communication with an SPI slave device?

 

Thanks

Arnau

 


Viewing all articles
Browse latest Browse all 2183

Trending Articles



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