Sorry, you need to enable JavaScript to visit this website.

Need help in writing C code for SPI controller

Unsolved
2 posts / 0 new
rishucoding
Junior(0)
Need help in writing C code for SPI controller

Hello,
I have been doing a project. I am using Vivado 2016.4 and Zedboard. 
In my project, I have to use the SPI port of Zynq as a master and this to be interfaced with the Slave ADC AD7193 ( Analog Devices).
I am responsible to write the code for SPI communication between Zedboard and AD7193. I am trying my best to do this job, but not able to get results.
In Vivado, I have enabled  UART1  and SPI 1 with default settings.
Then I validated my block design and exported it to SDK.
In SDK, I have to write a simple code to make SPI controller of zynq as Master and AD7193 as Slave, and make communication happen between the two.
I have read the xspips_slave_polled_example.c and xspips_selftest_example.c
Please someone help me, how to start with this?
Thanks

JFoster
Moderator(67)
Hello,

Hello,

Please ask this question over at the analog devices forum,

Thank you,

Josh