Part Number: CC1350
Other Parts Discussed in Thread: CC2650, CC2640
Tool/software: Code Composer Studio
Hi,
I am testing drift of internal LF_RCOSC, and than decide the calibration interval.
I am using CC1350 (reversion 2.1) launchpad.
I use empty example from SDK, and make following modifications.
(1). change the setting in ccfg.c to use LF_RCOSC as follow.
#ifndef SET_CCFG_MODE_CONF_SCLK_LF_OPTION
// #define SET_CCFG_MODE_CONF_SCLK_LF_OPTION 0x0 // LF clock derived from High Frequency XOSC
// #define SET_CCFG_MODE_CONF_SCLK_LF_OPTION 0x1 // External LF clock
// #define SET_CCFG_MODE_CONF_SCLK_LF_OPTION 0x2 // LF XOSC
#define SET_CCFG_MODE_CONF_SCLK_LF_OPTION 0x3 // LF RCOSC
#endif
(2). output 32k signal to IO as follow.
IOCPortConfigureSet(IOID_6, IOC_PORT_AON_CLK32K, IOC_STD_OUTPUT);
AONIOC32kHzOutputEnable();
(3). use both automatically and manually calibrations
besides automatic calibration, I also explicitly trigger RC oscillator calibration by calling PowerCC26XX_injectCalibration() every 500ms.
Finally, I test the output signal with a frequency spectrograph.
I test on two lauchpad, and the frequency of output signals are 32.693kHz and 32.678kHz.
The frequency drift more 2000 ppm.
In another test, I disable automatically calibration and comment out the explicitly trigger PowerCC26XX_injectCalibration(). The frequency of the output signals remain the same. It seems the calibration is not working.
Can you help to explain this or point out the error in my test.
Thanks.