This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to modify SensorTag software to support all internal HF & LF oscillator?

Other Parts Discussed in Thread: CC2650

Hi All, 

I found the CC2650 already has HF & LF oscillator embedded inside, but I think the SensorTag is using the Crystals on the board. Why not use the internal oscillator directly, it may save board space and energy. Do you know how to modify the code to change the clock source?

I have found in the ccfg.c (in tirtos folder), there is a place to change the LF option as below, but no HF. Any one can help? Thanks very much. 

//**************************************************
// SCLK LF option
//**************************************************
// #define SET_CCFG_MODE_CONF_SCLK_LF_OPTION 0x0 // Low frequency clock derived from High Frequency XOSC
// #define SET_CCFG_MODE_CONF_SCLK_LF_OPTION 0x1 // TBD: Digital input from AON (selects XOSC_LF as source and XOSC_LF_DIG_BYPASS=1)
#define SET_CCFG_MODE_CONF_SCLK_LF_OPTION 0x2 // Low frequency XOSC
// #define SET_CCFG_MODE_CONF_SCLK_LF_OPTION 0x3 // Low frequency RCOSC

  • Hi Shilong,

    The radio needs the HF XTAL to be able to transmit at the correct frequency (40ppm accuracy needed) as well as an LF sleep clock within 500ppm accuracy to be able to stay in sync with the other side of a connection.

    Switching to the internal RC oscillator will cause timing to break down in a connection but we are working on adding support for using the internal LF oscillator in the July release of the BLE stack + RTOS. Note that the current chip revision has issues with the LF RC oscillator (see device errata).

    .:svend
  • Thanks very much and looking forward to seeing the release