Hi,
As well know, nRF52832 TWI interface can support clock stretch function.
Can I disable "clock stretch function" function?
How to do this job?
Thank you
Hi,
As well know, nRF52832 TWI interface can support clock stretch function.
Can I disable "clock stretch function" function?
How to do this job?
Thank you
Hi
Clock stretching is a feature that the TWIM supports, and it is up to the connected TWI slave device to perform this operation. Please note that not all slaves perform clock stretching. I would recommend checking the specification of your connected sensor for its timing details if you are seeing excessive clock stretching.
Could you explain the issues you're seeing with clock stretching?
Kind regards,
Håkon
Hi,
Thank you for your explanation.
What I want to do has nothing to do with the type of Slave.
The test I want to do is: I want the waveform sent by the TWI interface not to have the stretch function to verify whether the slave device can accept non-stretch TWI signals.
Therefore, I want to turn off the stretch function of the nRF52832 TWI interface.
Thank you
Clock stretching happens when the slave pulls the SCL line low. As long as your external device does not do this, then it is OK.
Kind regards,
Håkon
Hi,
Under normal circumstances, since the twi of nRF52832 belongs to the I2C master, when the I2C slave pulls SCL Low, the twi of nrf52832 will generate Clock stretch.
What I want to do is: twi does not detect whether SCL is pulled Low by the I2C-Slave device, but continues to send data
Thank you
Hi,
Under normal circumstances, since the twi of nRF52832 belongs to the I2C master, when the I2C slave pulls SCL Low, the twi of nrf52832 will generate Clock stretch.
What I want to do is: twi does not detect whether SCL is pulled Low by the I2C-Slave device, but continues to send data
Thank you
Hi,
Thank you for explaining your scenario in detail.
Unfortunately, it is not possible to turn off clock stretching feature in hardware.
Kind regards,
Håkon