2024-05-20 06:10 AM
Hi
I am trying to configure the accelerometer sensor to read the data polling as the example suggested in github
When I try to read
/* Read output only if new value is available */
lis2dw12_flag_data_ready_get(&dev_ctx, ®);
At initial the drdy will be high after that I am reading the lis2dw12_acceleration_raw_get(&dev_ctx, data_raw_acceleration); once reading this register the drdy value must be 0 but it is high and its reading this continuously.
is there any register I have to check and we have placed this sensor with different MCU and I am new to STM community.
Thanks,
Solved! Go to Solution.
2024-05-23 05:38 AM
Hi @M4n0j ,
Welcome to ST Community!
Read samples in polling mode means that you have no interrupt, the DRDY signal is latched and is not refreshed until you read all the output registers. Otherwise, set to '0' the LIR bit of register 22h to disable the latched interrupt.
2024-05-23 05:38 AM
Hi @M4n0j ,
Welcome to ST Community!
Read samples in polling mode means that you have no interrupt, the DRDY signal is latched and is not refreshed until you read all the output registers. Otherwise, set to '0' the LIR bit of register 22h to disable the latched interrupt.
2024-05-23 11:32 PM
Ok let me check Thanks @Federica Bossi