2025-01-19 10:03 PM
I am trying to read the data of the accelerometer and gyroscope of the LSM6DSV16B with an FPGA. I build a 4 wire SPI-Interface. I am able to write data to the chip and the chip is capable to give data out. But sometimes the output of the chip gets driven for a fraction of the clock cycle. This creates the spikes which you can see in the picture. Nothing other than the chip is driving the dataline. The FPGA is configured as an input and just reads the high or low state at the rising edge of the clock. As you can see in the screenshot sometimes I get a voltage spike an the data out line, sometimes the pin gets driven normally from falling edge to falling edge. Is this behavior normal or expected? Or is something wrong with the chip. I used the STEVAL-MKI241KA development board. The issue arises one the square board aswell as the earphone board.