HTS221 - datas keep being stuck in not ready state
Hello,
My company is using since more than one year the HTS221 component, in several thousands of units.
On really few parts, we observe that the HTS221 sensor is stuck in a not ready state: we request its status before reading its output data registers to make sure the sensor has new measured values to send. We have not identified any specific environmental pattern that would produce such a bug.
Here is the configuration:
- CTRL_REG1: BDU =1 and ODR1,ODR2 = 11 (12.5Hz)
- All other configuration registers are in default configuration state (we do not configure them, only CTRL_REG1 is initialized).
We measure thanks to an interruption the output registers every second (yes, than why a 12.5Hz outpute data rate ? I will change it to 1Hz but this shouldn't be the reason of the stuck issue, shouldn't it ?)
And if the sensor has not any data ready (status register H_DA and T_DAT are equals to 0), we send every millisecond a new reading command to its status register. After 800 iterations (about 800ms), we raised an error.
Is this status reading state frequency too high for him to let him have the time to make new measurements ?
Honestly, I was not in charge of the firmware developpment and I would have done differently but still, there shouldn't be any bug with it, so I am trying to find why there is.
Any idea ?
Extra questions:
- what happens if in BDU = 1 mode, we do not read MSB and LSB ? there is no new acquisition launched by the sensor and then no more update of the output data registers?
- If output data rate is 12.5Hz and an average made on 2 samples (AV_CONF), it means every 12.5Hz, the sensor will launch 2 acquisitions which will be averaged ? What is the time between these 2 acquisitions?
Thank you in advance,
