cancel
Showing results for 
Search instead for 
Did you mean: 

IIS3DWB - FIFO timestamp decimation issue

DSaci.2
Associate II

Hi,

    I am using the IIS3DWB sensors' FIFO with the following setup:


/* Set Output Data Rate */
err = iis3dwb_xl_data_rate_set(&dev_ctx, IIS3DWB_XL_ODR_26k7Hz);

/* Set full scale */
err = iis3dwb_xl_full_scale_set(&dev_ctx, IIS3DWB_16g);

iis3dwb_fifo_watermark_set(&dev_ctx, WATERMARK_LEVEL);
iis3dwb_fifo_stop_on_wtm_set(&dev_ctx, 1);

iis3dwb_fifo_xl_batch_set(&dev_ctx, IIS3DWB_XL_BATCHED_AT_26k7Hz);

iis3dwb_fifo_mode_set(&dev_ctx, IIS3DWB_STREAM_MODE);
iis3dwb_fifo_timestamp_decimation_set(&dev_ctx, IIS3DWB_DEC_1);

iis3dwb_timestamp_set(&dev_ctx, PROPERTY_ENABLE);

iis3dwb_pin_int2_route_t int2_route;
int2_route.fifo_th = 1;
int2_route.fifo_ovr = 1;
int2_route.fifo_full = 1;
int2_route.fifo_bdr = 1;
int2_route.wake_up = 1;
int2_route.drdy_xl = 1;
int2_route.sleep_status = 1;
iis3dwb_pin_int2_route_set(&dev_ctx, &int2_route);


/* Configure filtering chain(No aux interface)
* Accelerometer low pass filter path
*/
err = iis3dwb_xl_filter_lp2_set(&dev_ctx, IIS3DWB_LP_ODR_DIV_100);

 

I am successfully reading the accelerometer and timestamp values but the number of timestamps compared with IIS3DWB_DEC_1 ( a decimation of 1) is not equal. My understanding is I should see a timestamp entry with every accelerometer entry. Here are my entries with the different decimation values:

timestamp decimation 1 number of timestamp entries = 244; number of accelerometer entries=12
timestamp decimation 8 number of timestamp entries = 32; number of accelerometer entries=224
timestamp decimation 32 number of timestamp entries = 6; number of accelerometer entries=250

Also, what is the meaning of the TAG_CNTs?

DSaci2_0-1727435915154.png

thanks for any help 

1 REPLY 1
Andrew Neil
Evangelist III