08-24-2023 03:27 AM
Hi everyone,
I am using LabVIEW FPGA module version 2019 with sbRIO 9631 board.
I am trying to get data from Pmod Gyro (L3G4200D) sensor using SPI protocol but I am facing a really trying problem is that the write/read VI always return 255 value.
Using multiport SPI example with little customization to fit my application and host APIs and make my own host.vi to fit the application.
The register addresses for x,y and z rates are available in sensor datasheet which are from 40 to 45 in decimal and also some configuration registers' addresses are used as shown in the project attached
project is attached below.
please any one can tell me where the problem is ?
Thanks in advance.
08-24-2023 03:48 AM
I noticed that sometimes the execution holds into configure.vi waiting for SPI_cmd to return to idle from FPGA
Also sometimes holds into write/read.vi as shown in attached pics