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

    LoPy - oscillator frequency

    Scheduled Pinned Locked Moved LoPy
    lopy4oscillatorfrequency
    5 Posts 2 Posters 834 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.
    • M Offline
      m.toriello
      last edited by

      Hi there,
      is there any chance to set in code the internal oscillator frequency of the LoPy4?

      Thanks in advance

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jmarcelino @m.toriello
        last edited by

        Hi @m-toriello
        Which internal oscillator do you mean exactly?

        Thanks

        1 Reply Last reply Reply Quote 0
        • M Offline
          m.toriello
          last edited by

          Hi @jmarcelino ,
          I mean the microcontroller's oscillator. For example the Microchip PICs hve some registers to set the internal oscillator properly (typically it's called INTOSC). I was wondering if there is something like this in LoPy.

          Thank you

          J 1 Reply Last reply Reply Quote 0
          • J Offline
            jmarcelino @m.toriello
            last edited by

            Thanks @m-toriello

            The LoPy4 uses a ESP32 microcontroller where the clock is driven from an external crystal. If you program it directly in C (using ESP-IDF) you can select different clock speeds at configuration (80, 160, 240 Mhz) but - because of the many timing critical peripherals implemented - in MicroPython this isn't currently supported and the clock is fixed at 160Mhz.

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              m.toriello @jmarcelino
              last edited by

              @jmarcelino
              Ok, thank you!

              Best regards

              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