40 MHz Crystal mandatory?
40 MHz Crystal mandatory?
Per the hardware design guide, they are recommending a 40MHz crystal.
However, all the designs and dev boards I see use a 26MHz crystal. Can someone explain this?
Notes: I am using the D2WD chip.
However, all the designs and dev boards I see use a 26MHz crystal. Can someone explain this?
Notes: I am using the D2WD chip.
- Attachments
-
- Capture.JPG (79.25 KiB) Viewed 19993 times
Re: 40 MHz Crystal mandatory?
I read that thread, it didn't really answer any questions. Unless I missed something. I know that the menuconfig has the option to support 26MHz too... is it better to use the 40MHz? I would rather use the 26MHz....
-
- Posts: 9757
- Joined: Thu Nov 26, 2015 4:08 am
Re: 40 MHz Crystal mandatory?
I think the design guidelines are outdated; I'll ask the documentation team if they can update them.
Edit: one of the things that does come to mind is that if you want to have low-power operations but WiFi/BT enabled, with 40MHz, you can run the CPU at crystal speed without needing the PLL. WiFi etc won't function at 26MHz, so with a crystal like that you're forced to use the next step up, which is 80MHz from the internal PLL. Not true, WiFi/BT need the 80MHz APB to be up.
More edit: We do have support for 26MHz crystals, but it's not used much yet, so there may be issues. Can I ask where you saw those ESP32 boards that use 26MHz crystals?
Edit: one of the things that does come to mind is that if you want to have low-power operations but WiFi/BT enabled, with 40MHz, you can run the CPU at crystal speed without needing the PLL. WiFi etc won't function at 26MHz, so with a crystal like that you're forced to use the next step up, which is 80MHz from the internal PLL. Not true, WiFi/BT need the 80MHz APB to be up.
More edit: We do have support for 26MHz crystals, but it's not used much yet, so there may be issues. Can I ask where you saw those ESP32 boards that use 26MHz crystals?
Re: 40 MHz Crystal mandatory?
SparkFun ESP32 Thing and some Widora Air clones uses 26MHz crystans...ESP_Sprite wrote:Can I ask where you saw those ESP32 boards that use 26MHz crystals?
I've had no issues with them (yet).
-
- Posts: 9757
- Joined: Thu Nov 26, 2015 4:08 am
Re: 40 MHz Crystal mandatory?
Fyi, 26MHz crystals can work (as the Sparkfun Thing etc demonstrate) but may have a somewhat more limited operation range, which is why we advise the 40MHz crystals. I'll ask my colleagues for more details and I'll post them as soon as I know them.
Re: 40 MHz Crystal mandatory?
Are you referring to the WiFi range? I've actually noticed worse WiFi performance on ESP32 Thing compared to ESP-WROVER-KIT...ESP_Sprite wrote:...but may have a somewhat more limited operation range...
-
- Posts: 9757
- Joined: Thu Nov 26, 2015 4:08 am
Re: 40 MHz Crystal mandatory?
I meant more wrt temperature, supply voltage etc, but it may also affect the WiFi range for all I know. I'm still talking to the HW/RF engineers to figure out what the exact issue is, if any.
Re: 40 MHz Crystal mandatory?
Thanks ESP_SPRITE
I will wait for your feedback
For now I will assume, 40MHz is superior
I will wait for your feedback
For now I will assume, 40MHz is superior
-
- Posts: 9757
- Joined: Thu Nov 26, 2015 4:08 am
Re: 40 MHz Crystal mandatory?
To come back to this: It seems that the issue is that our phy code from a while back (=end of 2016) had an issue where some ESP32s failed to lock their PLL when conencted to a 26MHz crystal. The end result would be that you'd have no BL/WiFi connectivity: you would see no WiFi APs and BT communications would always fail. We have fixed that issue in the phy code and from what I can tell esp-idf v2.0 and later should have this fix. The reason why we still advise 40MHz is that we haven't properly verified it: it looks like 26MHz works perfectly fine but before we tell people it is safe to use, we need to see if we do not see issues over the entire voltage and temperature range.
Who is online
Users browsing this forum: No registered users and 167 guests