cancel
Showing results for 
Search instead for 
Did you mean: 

Lis2dw12 - fifo read & write

Msaga.1
Associate II

HI :) , I want to exploit the option (if exists) to read the fifo buffer and write to it simultaneously .

meaning the device writes to the buffer and gets to the 11th sample (for ex.) , when I ask to read the data I will get the 0-11 samples and meanwhile the device will keep writing the 12th sample and on..

can I do it?

10 REPLIES 10
Eleon BORLINI
ST Employee

Yes, your SPI master. You should be able to change the communication frequency increasing it up to 10MHz.

If you read 32 data with that speed, the reading will take 32*16 bit *1/10MHz = 50 us << 1/12.5Hz = 80ms which is the speed of your ODR / FIFO filling rate.

-Eleon