LIS2DH questions
I have a project with LIS2DH accelerometer and I want to measure values each 20 seconds, turning LIS2DH off between measurements.
So, I tried to turn power on, wait 5ms, write 0x10 to CTRL_REG3 (turn on DRDY on INT1), then 0x1F to CTRL_REG1.
Then I wait for pulse in INT1 (and getting it almost immediately) and read data from OUT_X_L to OUT_Z_H. But - all data is zeroes. Writing registers in different direction, i.e. from REG1 to REG6 gives same result.
Datasheet for LIS2DH gives no information about how DRDY works (and, for example, which is minimum time allowed between two SPI reads/writes, but I read in datasheet for LIS2DH12 (newer accelerometer), that "In order to be sure to have the first DRDY rising edge synchronous with the selected ODR (avoid condition in Figure 2: "DRDY signal synchronization") set the I1_ ZYXDA bit to ‘1’ before enabling the ODR."
No luck.
Can you give me an advice how to read valid data from LIS2DH in a minimum time from powering it up?
Thank you in advance!
