cancel
Showing results for 
Search instead for 
Did you mean: 

Data rate vs Data reading rate in mems sensors

ssena.1514
Associate III

Hi,

I am configuring the mems sensor data rate as 30hz,So what should be the data reading rate in this case. I mean is it necessary to put a delay after configuring the sensor for reading data continously Or we have to check the status of data ready status register bit each time for getting new data,which one is appropriate method? Please explain?

1 ACCEPTED SOLUTION

Accepted Solutions
TBomb.1
Senior II

Hi, the appropriate reading method depends on the specific application, but in general a synchronous method is better than an asynchronous one. You can poll the data looping on XLDA=1 (accelerometer fata available, STATUS_REG (1Eh) register), or use the physical interrupt enabling the INT1_ DRDY_XL bit of the INT1_CTRL (0Dh) that routes the DRDY interrupt on INT1. Moreover, you should enable the BDU bit of CTRL3_C (12h) register to be sure you are always reading the full data on the output.

Tom

View solution in original post

2 REPLIES 2
TBomb.1
Senior II

Hi, the appropriate reading method depends on the specific application, but in general a synchronous method is better than an asynchronous one. You can poll the data looping on XLDA=1 (accelerometer fata available, STATUS_REG (1Eh) register), or use the physical interrupt enabling the INT1_ DRDY_XL bit of the INT1_CTRL (0Dh) that routes the DRDY interrupt on INT1. Moreover, you should enable the BDU bit of CTRL3_C (12h) register to be sure you are always reading the full data on the output.

Tom

ssena.1514
Associate III

Thanks Tom for your comment.​