2021-08-12 12:31 AM
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?
Solved! Go to Solution.
2021-08-12 01:46 AM
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
2021-08-12 01:46 AM
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
2021-08-12 07:16 AM
Thanks Tom for your comment.