I'm using a CSS811 air quality sensor that apparently needs HI2C clock stretching.
Is this the correct command I should use: #define HI2CITSCLWaitPeriod 70
to set the clock stretching?
I can help.
Which microcongtroller? Where did HI2CITSCLWaitPeriod come from?
I'm using the 18F4550.
The HI2CITSCLWaitPeriod came from the GCB Help file in the HI2C Overview in the "Rleevant Constants:" table.
HI2CITSCLWaitPeriod is not applicable to your microcontroller.
Clock stretching is controlled by the slave where the slave holds the clock line low. So, there is nothing to be set in the host microcontroller.
Thanks for your help!
Log in to post a comment.
I'm using a CSS811 air quality sensor that apparently needs HI2C clock stretching.
Is this the correct command I should use:
#define HI2CITSCLWaitPeriod 70
to set the clock stretching?
I can help.
Which microcongtroller?
Where did HI2CITSCLWaitPeriod come from?
I'm using the 18F4550.
The HI2CITSCLWaitPeriod came from the GCB Help file in the HI2C Overview in the "Rleevant Constants:" table.
HI2CITSCLWaitPeriod is not applicable to your microcontroller.
Clock stretching is controlled by the slave where the slave holds the clock line low. So, there is nothing to be set in the host microcontroller.
Thanks for your help!