cancel
Showing results for 
Search instead for 
Did you mean: 

Data storing in FIFO LIS3DSH

chaitanya chippada
Associate II

Hi ,

I got a doubt in stream mode in LIS3DSH, if we are using stream mode , if you read the FIFO buffer when it is filled with only 20 samples of 32 ,next sample will be stored in 21 st index of buffer or 0th index of FIFO buffer ???

Thanks for your support,

Regards,

Chaitanya

4 REPLIES 4
Miroslav BATEK
ST Employee

If you read all stored samples in FIFO after the 20th samples was stored, next sample will be stored at 0th index.

chaitanya chippada
Associate II

That means if data is read from FIFO buffer ,buffer index of writing vibration data restarts to 0th index ?

Thanks for your Quick support

Regards,

Chaitanya

Miroslav BATEK
ST Employee

If you read one data set (X, Y, Z) the index decrease by 1, so if you read all data sets stored in FIFO (the number of data sets is available in FIFO_SRC (2Fh) register), the index will be 0.

chaitanya chippada
Associate II

Understood, Great support.