Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    I2C support clock stretching ?

    Scheduled Pinned Locked Moved MicroPython
    micropythonpycomlopysipywipy i2c
    5 Posts 2 Posters 1.3k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      Jiemde Pybytes Beta
      last edited by

      Does the Pycom ( wipy, lopy, sipy etc )I2C support clock stretching?

      L 1 Reply Last reply Reply Quote 0
      • L Offline
        livius @Jiemde
        last edited by

        @jiemde
        should, with current firmware and bus 0 or 1 yes
        with bus 2 (which is software based) no

        think about people first, then computers

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          Jiemde Pybytes Beta @livius
          last edited by

          Hi @livius, many thanks for your rapid answer.
          Could you explain the difference between direct write to registers and via mailboxes ?
          Jiemde

          L 1 Reply Last reply Reply Quote 0
          • L Offline
            livius @Jiemde
            last edited by

            @jiemde
            mailboxes ?

            think about people first, then computers

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              Jiemde Pybytes Beta @livius
              last edited by

              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

              1 Reply Last reply Reply Quote 0

              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
              • 1 / 1
              • First post
                Last post

              Pycom on Twitter

              Pycom