How can I understand “the average of four measurements” of PRES Pin asserted?
I guess it must be four consecutive samples "high"? is it right?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Fabio,
This is likely related to the 1 second report time. In normal mode, the devices takes measurements every 250ms, but it will report every 1 second. So, 4*250ms = 1sec.
It takes the average of the four samples in one second and it reports the average.
Regards,
Jose Couso
But PRE is only 0 or 1. It is not like voltage or current.
How could this be averaged?
Hi Fabio,
This is a better explanation. It looks like it does not take an average. If it is low for 4 samples (one second), the PRES flag is set.
Looking at the FW code, the best practice is to rely on the last sample within the second. The function is called four times in a second. The last time it is called, it will determine the true status of the PRES pin. The function primarily looks for the falling edge, if the pin is down, it will set PRES flag.
Regards,
Jose Couso
Looking at the FW code, the best practice is to rely on the last sample within the second.
So if the first three samples are 1, only the last sample is 0. It will also change the PRES pin status?
i guess it must be continuous four samples.
Hi Fabio,
The last sample should be 1, if not the PRES bit will clear.
Regards,
Jose Couso