2021-06-29 04:23 AM
Hi I want to use the continues mode feature, so I can read and write from the buffer simultaneously. I have trued to find an example, do you have anything that help?
Solved! Go to Solution.
2021-07-01 06:12 AM
2021-06-29 06:39 AM
Hi @Msaga.1 ,
did you already check the C example on Github that implements the FIFO mode for the LIS2DW12? --> lis2dw12_read_fifo.c
Starting from this example, and referring to the AN5038 application note at p.39:
Follow these steps for FIFO Continuous configuration which sets a threshold to generate an interrupt to trigger a read by the application processor:
1. Set FTH[4:0] to 31 #watermark level at full scale
2. Set INT1_FTH to ‘1’ #enable FIFO threshold interrupt
3. Activate Continuous mode by setting the FMode[2:0] field to 110b in the FIFO_CTRL register (2Eh) #when the FTH interrupt is generated, data is read from the accelerometer output registers.
Can this operating mode fit your target application?
-Eleon
2021-06-30 01:07 AM
yes i did this , however will this enable me to read and write from the accelerometer buffer at the same time?
for example - I want to be able to read before the buffer is full ( so less then 32 samples) and at the same time the next samples will be writen.
2021-07-01 06:12 AM