Clock Stretching

cancel
Showing results for 
Search instead for 
Did you mean: 

Clock Stretching

256 Views
perharaldhelges
Contributor II

I`m trying to do some clock streching by using th I2C_LDD componenet but the clock stretching option doesn`t seem to be avalable ?

0 Kudos
3 Replies

49 Views
perharaldhelges
Contributor II

No, I`m using Kinetis KL26Z as master. The I2C_LDD component has an option for clock streching but it is not possible to mark it.

0 Kudos

49 Views
egoodii
Senior Contributor III

Well, I don't know what to tell you.  Per the I2C standard, 'clock stretching' is strictly a function FROM a slave BACK to a master to 'pace' the transaction.  Master-side I2C is, of course, totally 'in control' of its own pacing.  Thus the I2C_LDD component doesn't enable 'clock stretching' as an option in master-mode.

0 Kudos

49 Views
egoodii
Senior Contributor III

I presume you are speaking of a mode where the Kinetis is an I2C slave.  In that case, the 'clock stretching' is an automatic hardware function, where the clock line will be held after a byte is received until the I2C register has been cleared by firmware, thus making it available for the next byte to be clocked-in.

0 Kudos