Page 1 of 1

question about the oscillators

Posted: Mon May 22, 2017 8:25 am
by whateverever
In the esp32 datasheet (https://espressif.com/sites/default/fil ... eet_en.pdf) are 4 oscillators:
Internal 8 MHz oscillator with calibration
Internal RC oscillator with calibration
External 2 MHz to 40 MHz crystal oscillator
External 32 kHz crystal oscillator for RTC with calibration

But in the datasheet of the esp32 wroom (https://www.espressif.com/sites/default ... eet_en.pdf) there are only 3 oscillators: The Internal 8 MHz oscillator with calibration is missing there (page 7-8).

Also in the esp32 wroom datasheet there is the following text
"The frequencies of the main crystal oscillator supported include 40 MHz, 26 MHz and 24 MHz"
But in the esp32 datasheet there is "External 2 MHz to 40 MHz crystal oscillator".

I'm a little confused now.

Re: question about the oscillators

Posted: Mon May 22, 2017 9:15 am
by ESP_igrr
Internal 8 MHz oscillator with calibration
Internal RC oscillator with calibration
External 32 kHz crystal oscillator for RTC with calibration
External 2 MHz to 40 MHz crystal oscillator
All of these are indeed supported by the ESP32. Note that while the chip can run from any crystal from 2MHz to 40MHz, we only support some values when it comes enabling PLLs. PLLs must be used to produce 80MHz clock required for WiFi/BT to work properly.

The values supported in the SDK now include 26MHz and 40MHz. 24 MHz support is possible but hasn't been included yet.

Re: question about the oscillators

Posted: Mon May 22, 2017 7:04 pm
by whateverever
So the internal 8 MHz oscillator with calibration is supported.

.. and also included in the esp 32 wroom?

Re: question about the oscillators

Posted: Mon May 22, 2017 7:25 pm
by WiFive
I'm not sure how you would remove an internal oscillator ;)

Re: question about the oscillators

Posted: Mon May 22, 2017 7:27 pm
by whateverever
Touché. That was stupid question.

Re: question about the oscillators

Posted: Tue May 23, 2017 2:50 am
by ESP_igrr
8MHz is used by default as RTC_FAST_CLK.

Re: question about the oscillators

Posted: Thu Nov 23, 2017 3:34 pm
by dipankarpanda
Guys, Can you please let me know the accuracy of the external crystal as well as internal RC oscillator used in dev board. For my application I need to make a fine tune timer interrupt. Where timer ISR should Run in every 0.0039064 sec or 3.9064 mili sec.

I have tried to achieve this but I couldn't get that much accurate value. I have tried with 1.25 / 2.5 / 5 / 10 / 20 / 40 MHz frequency but couldn't get the exact value. Even I observed that at high frequency the error is increased instead of decreasing. The result was like this -

at 5 MHz -- error value 1.4 micro Sec
at 10 MHz --- error value 1.8 micro sec
at 20 MHz --- error value 1.95 micro sec
at 40 MHz --- error value 1.97 micro sec All are for the same piece of code.

So, can you please let me know whether 0.0039064 sec accurately can be measured by ESP32 timer?

Thanks
Dipankar

Re: question about the oscillators

Posted: Fri Nov 24, 2017 8:30 am
by ESP_Sprite
How do you measure this? Sounds like you're not accounting for the overhead of the ISR being called.

Re: question about the oscillators

Posted: Mon Dec 11, 2017 11:50 am
by dipankarpanda
i measured using a simple oscilloscope....

Re: question about the oscillators

Posted: Thu Feb 15, 2024 7:09 pm
by chevymn1964
Hi all!
I would like to use a 40MHz external oscillator instead of a crystal, what pin would osc. connect to?