Using SPI. Steps?

Hello, im kinda new to FPGA programming and have a PYNQ-Z2 that i would like to use to read data from an SPI Accelerometer (a normal arduino accelerometer)

Im kinda confused yet whether how to proceed in PYNQ to use the SPI device. I know that one way is through the PMODB/A and also there is a dedicated SPI port on the board. Which shoud i use?

For the PMODB i should see which pin is which pin and then after conection i need to create a custom overlay for the microblaze procesor and there in C i configure how do i read from my specific device? Or how do i access?

Any advice or link that can provide would be very helpfull to setup my sensor.

The PMOD pins are ideal for your application.

Are you using SPI LVDS or LVTTL for your sensor interface?

After your hw issue gets solved, we will move onto sw doubts about overlay and microblaze.

2 Likes