CC2530 内部RC低速K晶振 外部32.768K晶振 取舍的问题

来源:互联网 发布:青少年人工智能大赛 编辑:程序博客网 时间:2024/05/22 06:47

使用内部RC晶振:

        优点:

成本低;少个晶振能低0.5-1元。

                电路板可以做的更小;不要外部低速晶振可以让线路板变窄1.5mm,更高的集成度。

缺点:

                晶振频率会随着温度变化而变化。CC2530晶振变化频率0.4%/℃,极端情况下可能会漂移20%。晶振频率漂移会带来睡眠定时器计时不准。

CC2530校准机制:

When the 32-kHz RC oscillator is enabled, it is calibrated when a switch from the 16-MHz RC oscillator to the 32-MHz crystal oscillator
is performed while SLEEPCMD.OSC32K_CALDIS is 0.

The calibrated 32-kHz RC oscillator frequency is the 32-MHz XTAL frequency divided by 977.

如果使能SLEEPCMD.OSC32K_CALDIS=0,则使能校准。当系统切换到外部32M晶振时候,均会对内部RC晶振校准。