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.

CC2640: Deep Sleep without 32kHz crystal example

Part Number: CC2640

Is there example code that will put the CC2640 into deep sleep and then wake it up on a button press but without the 32kHz crystal? I have seen the normal example of this with the crystal but not without.

  • Hi,

    All you need to do is to change the SCLK_LF to run on RCOSCLF.

    This can be done through ccfg file.

    Can you elaborate which example you are running? Then we can better assist you.
  • Christin,
    There is one in the SDK example code. I have tried modifying as per above but it does not work. There is a document that says there is a lot more you have to do to get it to work. (www.ti.com/.../swra499b.pdf)
    It shows the code that has to also change but after making these modifications the chip will not wake up. So I can't tell if it is going to sleep or crashing.

    I am using SDK version 1.40.00.45

    Thanks,
    Charles
  • Hi,

    The document you are referring to is to run BLE examples using the RCOSCLF as sleep clock source. Most of the modification is for it to pass the BLE regulation(SCA 500ppm).

    Just to clarify, when you say deep sleep, do you mean shutdown or standby?

    Which one is the example you are referring to? pinShutdown or pinStandby?
  • I was looking at the pinShutdown example. I want to get to the lowest current draw I can. Desire is to have this with BLE peripheral mode.
  • The software I used is: tirtos_cc13xx_cc26xx_2_21_00_06 , and pinShutdown example

    I modified the ccfg.c to set uo the SCLK_LF source to be RCOSC_LF

    //#####################################
    // Clock settings
    //#####################################
    
    #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

    which can be found her: C:\ti\tirtos_cc13xx_cc26xx_2_21_00_06\products\cc26xxware_2_24_03_17272\startup_files

    The procedure in the application note is only applicable with BLE examples, not for TIDriver examples. 

  • Christin,

    Thanks but I'm looking for an example with BLE as per the application note.  Is this available or can it be made available to a customer?

    Thanks,

    Charles

  • Hi Charles,

    Several of the BLE examples in the SDK, SimplePeripheral for example, has a dedicated build config for using the RC oscillator. Changing the build config will ensure all the required configurations are taken care of (ccfg, calibration, etc.).

    Regards,
    Fredrik