03-13-2018 08:00 AM - edited 03-13-2018 08:01 AM
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
03-14-2018 07:51 PM
Hey Arnau,
What specifically are you having trouble with? The FPGA compiles successfully and no errors are given, so is the data not coming through? Are you not able to establish a connection? Is there a specific function or section of the code that's not acting the way you think it should?
There's nothing specific to go off of, and especially with FPGA code taking time to compile and the likelihood that no one here has an RHD 2132 just ready to go, you would probably get a better response from the community if you asked more specific questions.
Bdog