LSM6DS3 FTH or FIFO_FULL flags used as ISR
Hi,
I am using steval MKI160V1 coupled with pybv1.0 under microphyton (spi speed 525000bits/s).
I'd like to get every samples from gyro and accel at 1666 hertz speed using interruption.
I have configured lsm6ds3( whoami = 69h) to do so, but while I am flushing every samples reading fifo_status1 n 2 registers to know the entire of unread words in fifo, there sometimes a "rebound like" of interruption coming next to the previous one !
Why is the documentation saying (page 31/112 5.4.3. continuous mode) that it is possible to route FIFO_STATUS2 (3Bh) (FTH) to the INT1 pin by writing in register INT1_CTRL (0Dh) (INT1_FTH) = ‘1
FIFO_STATUS2 is only one byte long while FTH can contain size of 2^12 words of data ?
I am not sure of the correct use of FTH neither interruption for this project ?
To have a better look at what appends I have reduced odr to 26hertz...
Thx for your help
I have set INT2 to be active if Fifo is full.
When Py Board line rise the irq then I decide to read FIFO Status Registers to know how much data are available in FIFO...that might be 0 and flags of fifo full set but absolutly not !!!
INT2 rises while registers says that there are 3836 words in FIFO and FIFO_STATUS2 (3Bh) most quartet is 10d so that FTH bit and FIFO_FULL bit are sets !!!!!
How is that possible ?
