cancel
Showing results for 
Search instead for 
Did you mean: 

LSM303AGR Strange behaviour in magnetometer single mode

RJasz
Associate II

Hi,

I am using LSM303AGR reading accelerometer as well as magnetometer in the single mode. The problem is that sometimes I get wrong data and it seems like time between a single measurement request and measurement is changing. I could not find any details in the datasheet about latency in single mode. I request single measurement, wait 40ms, and check status register. If OVR or ZYXDA are set, I read a buffer. Sometimes these flags are not checked, even when I wait longer than 40ms or the buffer contains inappropriate values (like one of the samples before).

Any ideas or reference how to use the single mode in a right way?

0 REPLIES 0