I2C support clock stretching ?
-
Does the Pycom ( wipy, lopy, sipy etc )I2C support clock stretching?
-
@jiemde
should, with current firmware and bus 0 or 1 yes
with bus 2 (which is software based) no -
Hi @livius, many thanks for your rapid answer.
Could you explain the difference between direct write to registers and via mailboxes ?
Jiemde -
@jiemde
mailboxes ? -
Hi @livius, yes mailbox! here is the text in the documentation of the CCS811 chip:
Programming Model:
For flexibility and software driver maintenance simplification the CCS811 does not support direct addressing of registers over the I2C bus. Instead it supports single byte mailboxes identifiers that behave as proxies for registers with specific functionality and data sizes.
To access a register an I2C transaction must be issued with the target address on the CCS811 being equal to the intended mailbox, this by way of proxy opens access to the register's functionality. In this manner the programming model is rigidy fixed while allowing the underlying firmware to be inherently flexible, extensible and configurable.That's chinese for me!
Jiemde
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login