Hi, I'm using SPI from Zynq PS (XSPIPS). I'm looking for a C code example in order to use the SPI controller.
Thanks!
Hi, I'm using SPI from Zynq PS (XSPIPS). I'm looking for a C code example in order to use the SPI controller.
Thanks!
Hi dannna,
Have you taken a look at the example code provided with the SPIPS driver under SDK? For SDK 2014.4, those examples are located in the following folder:
C:XilinxSDK2014.4dataembeddedswXilinxProcessorIPLibdriversspips_v1_06_aexamples
Regards,
-Kevin
You may also want to take a look at the code in the Maxim Santa Fe reference design (MAXREFDES#5) for the MicroZed Board:
http://www.maximintegrated.com/en/design/reference-design-center/system-board/5561.html/tb_tab2
It has code for the PS SPI controller.
I will also mention that, depending on your application, you may want to consider using the AXI Quad SPI controller. It is more flexible than the PS SPI controller if you have the space in your Programmable Logic section.
-Gary