LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Slave implementations of SPI and I2C for FPGA?

I've ported the I2C and SPI examples from IP NET to the 7842R FPGA.  However, there is no slave implementation of either I2C or SPI in the included code.  Where can I find slave implementations of I2C and SPI for the FPGA?  While a free NI solution is preferable, a for-pay 3rd party option would be acceptable.

 

Thanks!

0 Kudos
Message 1 of 6
(3,863 Views)

Hi Ster, 

 

Please refer to the following links on how to develop master/slave structures using I2C and SPI. 

http://zone.ni.com/devzone/cda/epd/p/id/6163

http://zone.ni.com/devzone/cda/epd/p/id/6080

There are many helpful resources at ni.com that will help you develop your own code. However, if you are looking for a packaged code, our Alliance partners would be happy to assist you with this. More information can be found at http://www.ni.com/alliance/overview.htm. Good luck and have a great day!


Regards,

Jackie

DAQ Product Marketing Engineer
National Instruments
0 Kudos
Message 2 of 6
(3,837 Views)

Thanks Jackie,

 

Unfortunately, those links provide no insight into the slave implementation of I2C or SPI.  That was my original question.

 

It's great NI provides master implementations of SPI and I2C - but unfortunately that's only half of the equation.  Anyone else out there have a working slave implementation of I2C or SPI?  Did you use a 3rd party vendor?

0 Kudos
Message 3 of 6
(3,827 Views)

Hi Ster, 

While this example doesn't use your exact hardware, you should be able to change that in the project explorer and drag all the files over to your target. 

http://zone.ni.com/devzone/cda/epd/p/id/3458

 

Once you download, extract, and open that project, you'll see that it includes a vi for slave, and master.  

I hope this helps. 

 

Dave T. 

National Instruments
FlexRIO & R-Series Product Support Engineer
0 Kudos
Message 4 of 6
(3,812 Views)

Hello,

 

I have the same request here.

SPI slave implementation have additional challenges comparing to Maste mode.

 

 

Best Regards,

Marwen.

0 Kudos
Message 5 of 6
(3,204 Views)

Hi Marwen!

 

The thread that you have posted on here is a few years old.  You'll get a better response from the community if you create a new thread and post your question.

 

Thanks!

Tucker
Applications Engineering
National Instruments
0 Kudos
Message 6 of 6
(3,176 Views)