AFAICT, they recommend to synchronize reads with /INT because otherwise the sensor may update values mid-read, resulting in incorrect readings.
Using a dual-function pin
-
- Posts: 1708
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: Using a dual-function pin
Re: Using a dual-function pin
perfectly acceptableMicroController wrote: ↑Wed Dec 13, 2023 12:34 pmAFAICT, they recommend to synchronize reads with /INT because otherwise the sensor may update values mid-read, resulting in incorrect readings.
https://www.infineon.com/dgdl/Infineon- ... 5721903dddIn the simplest case, periodic read-out of I2C causes a re-run of a new measurement cycle. It only needs to be
ensured that the read-out time is larger than the time for the I2C read frame plus the sensor conversion time.
and if there is a need to connect several sensors on 1 bus I don't see an option to use INT
for one sensor the task can be solved in both polling mode and interrupt mode - depending on what sensor polling speed is needed.
Who is online
Users browsing this forum: No registered users and 100 guests