cancel
Showing results for 
Search instead for 
Did you mean: 

LSM303D Magnetic interrupt mechanism

enricoricci51
Associate II
Posted on April 02, 2016 at 14:33

Hi all!

I've been testing for a few days the behaviour of the magnetic sensor and its interrupt capabilities. Offset registers simply are subtracted to the magnetic field measured on all of three axis and threshold register is the value after which the interrupt rises. If the chip has enabled interrupts on three axis the recognition interrupt rises only for the first magnetic field that exceed the threshold and once this happens others axis are ignored. If the interrupt rises for the z-axis, for example, the field on the x-axis can exceed threshold and interrupt don't rises.

question 2: if i set single conversion and enable data ready interrupt, the status_m register is always read as 0 (not in continuous conversion). I'm excepting that data ready on x, y, z bit of the status_m register are set when conversion finished and interrupt rise (interrupt rise correctly). Why?

#lsm303d-interrupt
0 REPLIES 0