FAQ_BlueNRG-x 如何使用外部低速时钟
[复制链接]
本文作者:ST工程师Joshua Zhu
点击下载pdf文档查看:
FAQ_BlueNRG-x如何使用外部低速时钟 .pdf
(309.75 KB, 下载次数: 5)
关键字:BlueNRG-1/-2, low crystal
问题: 一些客户不想使用内部RC 也不想外加32khz low crystal , 客户想知道如何使用外部32khz时钟源,如何使用?
ST工程师解答:
1. 正确的输入PIN脚应该是 SXTAL0 pin, 时钟源的要求如下:
1) 提供0到1.2V的方波:
In this case the internal xtal circuit will be disable (less power consumption). The firmware configuration LS_SOURCE=LS_SOURCE_EXTERNAL_32KHZ should be used and, in addition to this, a modification on the file system_bluenrg1.c is needed, that is
.
.
cold_start_config[11] = (1 << 1); / <<<<<<<<<<< New line added /
/ Cold start configuration device /
BLUE_CTRL->RADIO_CONFIG = 0x10000U | (uint16_t)((uint32_t)cold_start_config & 0x0000FFFFU);
while ((BLUE_CTRL->RADIO_CONFIG & 0x10000) != 0);
.
.
.
2) 提供从0 到1.2 Vpp 的周期波形:
In this case the configuration LS_SOURCE=LS_SOURCE_EXTERNAL_32KHZ should be used without further modification.
|