我正在花最长时间寻找有关在我的 esp32 项目中使用外部石英 32khz 晶体的可靠文档。我正在使用 ESP-IDF。
我的外部 32khz 晶体连接到 IO32 和 IO33(这些应该是正确的引脚)。
我目前使用的是 ESP-IDF 4.4.3。
我已经进入了
menuconfig
并打开了我能想到的所有东西。这是我所做的更改...
======== The settings changes I made in menuconfig ========
The `>` notation shows how I navigated the menus.
> Component Config
> ESP32-specific
> RTC clock source
* set to `External 32kHz crystal`
> Component Config
> ESP32-specific
> Additional current for external 32kHz crystal
* left at `none`
> Component Config
> Bluetooth
* Enable Bluetooth
> Component Config
> Bluetooth
> Bluetooth controller
> MODEM SLEEP Options
> Bluetooth low power clock
* set to `External 32kHz crystal`
> Component Config
> Bluetooth
> Bluetooth Host
* select `nimBLE - BLE only`
当我用示波器观察晶体时,仍然没有得到振荡信号。
我需要用 C++ 做什么来启用我的外部 32khz 晶体吗?初始化它?正确设置引脚以使用晶体?文档仅讨论 menuconfig 中的设置更改,我没有看到任何我应该使用的代码。
你看到我遗漏了什么了吗?
==============
为了回应下面的
hcheung
,这是我们石英设置的示意图......
我发现较旧的 ESP32-WROOM-32 模块(带 r1 处理器)无需并联负载电阻即可工作,但对于较新的模块(带 r3 处理器),如果没有 2-10M 并联电阻,XO 将无法启动。